@databricks/sdk-budgets 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-budgets";
3
- var version = "0.49.0";
3
+ var version = "0.51.0";
4
4
 
5
5
  //#endregion
6
6
  export { name, version };
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","names":[],"sources":["../../src/v1/client.ts"],"mappings":";;;;;cA+Ca,aAAA;EAAA,iBACM,OAAA;EAAA,iBACA,MAAA;EAAA,iBAIA,SAAA;EAAA,QAIT,MAAA;cAEI,OAAA,EAAS,aAAA;EAAA,QAUb,aAAA;EAQI;EAFN,yBAAA,CACJ,GAAA,EAAK,gCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,iCAAA;EAAR;EA8BG,yBAAA,CACJ,GAAA,EAAK,gCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,iCAAA;EADC;EA2BN,sBAAA,CACJ,GAAA,EAAK,6BAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,8BAAA;EA7BR;EA6DG,wBAAA,CACJ,GAAA,EAAK,+BAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,gCAAA;EAwCJ,4BAAA,CACL,GAAA,EAAK,+BAAA,EACL,OAAA,GAAU,WAAA,GACT,cAAA,CAAe,mBAAA;EA9EP;EA6FL,yBAAA,CACJ,GAAA,EAAK,gCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,iCAAA;AAAA"}
1
+ {"version":3,"file":"client.d.ts","names":[],"sources":["../../src/v1/client.ts"],"mappings":";;;;;cA+Ca,aAAA;EAAA,iBACM,OAAA;EAAA,iBACA,MAAA;EAAA,iBAIA,SAAA;EAAA,QAIT,MAAA;cAEI,OAAA,EAAS,aAAA;EAAA,QAUb,aAAA;EAQI;EAFN,yBAAA,CACJ,GAAA,EAAK,gCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,iCAAA;EAAR;EA8BG,yBAAA,CACJ,GAAA,EAAK,gCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,iCAAA;EADC;EA2BN,sBAAA,CACJ,GAAA,EAAK,6BAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,8BAAA;EA7BR;EAuDG,wBAAA,CACJ,GAAA,EAAK,+BAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,gCAAA;EA+BJ,4BAAA,CACL,GAAA,EAAK,+BAAA,EACL,OAAA,GAAU,WAAA,GACT,cAAA,CAAe,mBAAA;EA/DP;EA8EL,yBAAA,CACJ,GAAA,EAAK,gCAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,iCAAA;AAAA"}
package/dist/v1/client.js CHANGED
@@ -72,16 +72,12 @@ var BudgetsClient = class {
72
72
  async getBudgetConfiguration(req, options) {
73
73
  const { host, accountId, httpClient } = await this.resolveConfig();
74
74
  const url = `${host}/api/2.1/accounts/${req.accountId ?? accountId ?? ""}/budgets/${req.budgetId ?? ""}`;
75
- const params = new URLSearchParams();
76
- if (req.includeSpendStatus !== void 0) params.append("include_spend_status", String(req.includeSpendStatus));
77
- const query = params.toString();
78
- const fullUrl = query !== "" ? `${url}?${query}` : url;
79
75
  let resp;
80
76
  const call = async (callSignal) => {
81
77
  const headers = new Headers();
82
78
  headers.set("User-Agent", this.userAgent);
83
79
  resp = parseResponse(await executeHttpCall({
84
- request: buildHttpRequest("GET", fullUrl, headers, callSignal),
80
+ request: buildHttpRequest("GET", url, headers, callSignal),
85
81
  httpClient,
86
82
  logger: this.logger
87
83
  }), unmarshalGetBudgetConfigurationResponseSchema);
@@ -96,8 +92,6 @@ var BudgetsClient = class {
96
92
  const url = `${host}/api/2.1/accounts/${req.accountId ?? accountId ?? ""}/budgets`;
97
93
  const params = new URLSearchParams();
98
94
  if (req.pageToken !== void 0) params.append("page_token", req.pageToken);
99
- if (req.includeSpendStatus !== void 0) params.append("include_spend_status", String(req.includeSpendStatus));
100
- if (req.includeWorkspaceBudgets !== void 0) params.append("include_workspace_budgets", String(req.includeWorkspaceBudgets));
101
95
  const query = params.toString();
102
96
  const fullUrl = query !== "" ? `${url}?${query}` : url;
103
97
  let resp;
@@ -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 BudgetConfiguration,\n CreateBudgetConfigurationRequest,\n CreateBudgetConfigurationResponse,\n DeleteBudgetConfigurationRequest,\n DeleteBudgetConfigurationResponse,\n GetBudgetConfigurationRequest,\n GetBudgetConfigurationResponse,\n ListBudgetConfigurationsRequest,\n ListBudgetConfigurationsResponse,\n UpdateBudgetConfigurationRequest,\n UpdateBudgetConfigurationResponse,\n} from './model';\nimport {\n marshalCreateBudgetConfigurationRequestSchema,\n marshalUpdateBudgetConfigurationRequestSchema,\n unmarshalCreateBudgetConfigurationResponseSchema,\n unmarshalDeleteBudgetConfigurationResponseSchema,\n unmarshalGetBudgetConfigurationResponseSchema,\n unmarshalListBudgetConfigurationsResponseSchema,\n unmarshalUpdateBudgetConfigurationResponseSchema,\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 BudgetsClient {\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 /** Create a new budget configuration for an account. For full details, see https://docs.databricks.com/en/admin/account-settings/budgets.html. */\n async createBudgetConfiguration(\n req: CreateBudgetConfigurationRequest,\n options?: CallOptions\n ): Promise<CreateBudgetConfigurationResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/accounts/${req.budget?.accountId ?? accountId ?? ''}/budgets`;\n const body = marshalRequest(\n req,\n marshalCreateBudgetConfigurationRequestSchema\n );\n let resp: CreateBudgetConfigurationResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('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 unmarshalCreateBudgetConfigurationResponseSchema\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 /** Deletes a budget configuration for an account. Both account and budget configuration are specified by ID. This cannot be undone. */\n async deleteBudgetConfiguration(\n req: DeleteBudgetConfigurationRequest,\n options?: CallOptions\n ): Promise<DeleteBudgetConfigurationResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/accounts/${req.accountId ?? accountId ?? ''}/budgets/${req.budgetId ?? ''}`;\n let resp: DeleteBudgetConfigurationResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalDeleteBudgetConfigurationResponseSchema\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 /** Gets a budget configuration for an account. Both account and budget configuration are specified by ID. */\n async getBudgetConfiguration(\n req: GetBudgetConfigurationRequest,\n options?: CallOptions\n ): Promise<GetBudgetConfigurationResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/accounts/${req.accountId ?? accountId ?? ''}/budgets/${req.budgetId ?? ''}`;\n const params = new URLSearchParams();\n if (req.includeSpendStatus !== undefined) {\n params.append('include_spend_status', String(req.includeSpendStatus));\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: GetBudgetConfigurationResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalGetBudgetConfigurationResponseSchema\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 /** Gets all budgets associated with this account. */\n async listBudgetConfigurations(\n req: ListBudgetConfigurationsRequest,\n options?: CallOptions\n ): Promise<ListBudgetConfigurationsResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/accounts/${req.accountId ?? accountId ?? ''}/budgets`;\n const params = new URLSearchParams();\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n if (req.includeSpendStatus !== undefined) {\n params.append('include_spend_status', String(req.includeSpendStatus));\n }\n if (req.includeWorkspaceBudgets !== undefined) {\n params.append(\n 'include_workspace_budgets',\n String(req.includeWorkspaceBudgets)\n );\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListBudgetConfigurationsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalListBudgetConfigurationsResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listBudgetConfigurationsIter(\n req: ListBudgetConfigurationsRequest,\n options?: CallOptions\n ): AsyncGenerator<BudgetConfiguration> {\n const pageReq: ListBudgetConfigurationsRequest = {...req};\n for (;;) {\n const resp = await this.listBudgetConfigurations(pageReq, options);\n for (const item of resp.budgets ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Updates a budget configuration for an account. Both account and budget configuration are specified by ID. */\n async updateBudgetConfiguration(\n req: UpdateBudgetConfigurationRequest,\n options?: CallOptions\n ): Promise<UpdateBudgetConfigurationResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/accounts/${req.budget?.accountId ?? accountId ?? ''}/budgets/${req.budgetId ?? ''}`;\n const body = marshalRequest(\n req,\n marshalUpdateBudgetConfigurationRequestSchema\n );\n let resp: UpdateBudgetConfigurationResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalUpdateBudgetConfigurationResponseSchema\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"],"mappings":";;;;;;;;;AA0CA,MAAM,kBAAkB;CACtB,KAAK,iBAAyB,QAAQ,iBAAiB,GAAG;CAC1D,OAAOA;CACR;AAED,IAAa,gBAAb,MAA2B;CACzB,AAAiB;CACjB,AAAiB;CAIjB,AAAiB;CAIjB,AAAQ;CAER,YAAY,SAAwB;AAClC,OAAK,UAAU;AACf,OAAK,SAAS,QAAQ,UAAU,IAAI,YAAY;AAKhD,OAAK,YAJQ,eAAe,CACzB,KAAK,gBAAgB,CACrB,KAAK;GAAC,KAAK;GAAe,OAAOC;GAAa,CAAC,CAC/C,KAAK;GAAC,KAAK;GAAQ,OAAO,QAAQ,aAAa,MAAM,IAAI;GAAU,CAAC,CACjD,UAAU;;CAGlC,AAAQ,gBAA+C;AACrD,OAAK,WAAW,oBAAoB,KAAK,QAAQ;AACjD,SAAO,KAAK;;;CAId,MAAM,0BACJ,KACA,SAC4C;EAC5C,MAAM,EAAC,MAAM,WAAW,eAAc,MAAM,KAAK,eAAe;EAChE,MAAM,MAAM,GAAG,KAAK,oBAAoB,IAAI,QAAQ,aAAa,aAAa,GAAG;EACjF,MAAM,OAAO,eACX,KACA,8CACD;EACD,IAAI;EACJ,MAAM,OAAO,OAAO,eAA4C;GAC9D,MAAM,UAAU,IAAI,QAAQ,EAAC,gBAAgB,oB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,WAAW,EAAE,CACnC,OAAM;AAER,OAAI,KAAK,kBAAkB,UAAa,KAAK,kBAAkB,GAC7D;AAEF,WAAQ,YAAY,KAAK;;;;CAK7B,MAAM,0BACJ,KACA,SAC4C;EAC5C,MAAM,EAAC,MAAM,WAAW,eAAc,MAAM,KAAK,eAAe;EAChE,MAAM,MAAM,GAAG,KAAK,oBAAoB,IAAI,QAAQ,aAAa,aAAa,GAAG,WAAW,IAAI,YAAY;EAC5G,MAAM,OAAO,eACX,KACA,8CACD;EACD,IAAI;EACJ,MAAM,OAAO,OAAO,eAA4C;GAC9D,MAAM,UAAU,IAAI,QAAQ,EAAC,gBAAgB,oBAAmB,CAAC;AACjE,WAAQ,IAAI,cAAc,KAAK,UAAU;AAOzC,UAAO,cALU,MAAM,gBAAgB;IACrC,SAFc,iBAAiB,OAAO,KAAK,SAAS,YAAY,KAAK;IAGrE;IACA,QAAQ,KAAK;IACd,CAAC,EAGA,iDACD;;AAEH,QAAM,YAAY,MAAM,QAAQ;AAChC,MAAI,SAAS,OACX,OAAM,IAAI,MAAM,wCAAwC;AAE1D,SAAO"}
1
+ {"version":3,"file":"client.js","names":["pkgJson.version","AUTH_VERSION"],"sources":["../../src/v1/client.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {VERSION as AUTH_VERSION} from '@databricks/sdk-auth';\nimport {createDefault} from '@databricks/sdk-core/clientinfo';\nimport type {Logger} from '@databricks/sdk-core/logger';\nimport {NoOpLogger} from '@databricks/sdk-core/logger';\nimport type {CallOptions} from '@databricks/sdk-options/call';\nimport type {ClientOptions} from '@databricks/sdk-options/client';\nimport type {ResolvedClientConfig} from './transport';\nimport {resolveClientConfig} from './transport';\nimport {\n buildHttpRequest,\n executeCall,\n executeHttpCall,\n marshalRequest,\n parseResponse,\n} from './utils';\nimport pkgJson from '../../package.json' with {type: 'json'};\nimport type {\n BudgetConfiguration,\n CreateBudgetConfigurationRequest,\n CreateBudgetConfigurationResponse,\n DeleteBudgetConfigurationRequest,\n DeleteBudgetConfigurationResponse,\n GetBudgetConfigurationRequest,\n GetBudgetConfigurationResponse,\n ListBudgetConfigurationsRequest,\n ListBudgetConfigurationsResponse,\n UpdateBudgetConfigurationRequest,\n UpdateBudgetConfigurationResponse,\n} from './model';\nimport {\n marshalCreateBudgetConfigurationRequestSchema,\n marshalUpdateBudgetConfigurationRequestSchema,\n unmarshalCreateBudgetConfigurationResponseSchema,\n unmarshalDeleteBudgetConfigurationResponseSchema,\n unmarshalGetBudgetConfigurationResponseSchema,\n unmarshalListBudgetConfigurationsResponseSchema,\n unmarshalUpdateBudgetConfigurationResponseSchema,\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 BudgetsClient {\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 /** Create a new budget configuration for an account. For full details, see https://docs.databricks.com/en/admin/account-settings/budgets.html. */\n async createBudgetConfiguration(\n req: CreateBudgetConfigurationRequest,\n options?: CallOptions\n ): Promise<CreateBudgetConfigurationResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/accounts/${req.budget?.accountId ?? accountId ?? ''}/budgets`;\n const body = marshalRequest(\n req,\n marshalCreateBudgetConfigurationRequestSchema\n );\n let resp: CreateBudgetConfigurationResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('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 unmarshalCreateBudgetConfigurationResponseSchema\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 /** Deletes a budget configuration for an account. Both account and budget configuration are specified by ID. This cannot be undone. */\n async deleteBudgetConfiguration(\n req: DeleteBudgetConfigurationRequest,\n options?: CallOptions\n ): Promise<DeleteBudgetConfigurationResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/accounts/${req.accountId ?? accountId ?? ''}/budgets/${req.budgetId ?? ''}`;\n let resp: DeleteBudgetConfigurationResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalDeleteBudgetConfigurationResponseSchema\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 /** Gets a budget configuration for an account. Both account and budget configuration are specified by ID. */\n async getBudgetConfiguration(\n req: GetBudgetConfigurationRequest,\n options?: CallOptions\n ): Promise<GetBudgetConfigurationResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/accounts/${req.accountId ?? accountId ?? ''}/budgets/${req.budgetId ?? ''}`;\n let resp: GetBudgetConfigurationResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalGetBudgetConfigurationResponseSchema\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 /** Gets all budgets associated with this account. */\n async listBudgetConfigurations(\n req: ListBudgetConfigurationsRequest,\n options?: CallOptions\n ): Promise<ListBudgetConfigurationsResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/accounts/${req.accountId ?? accountId ?? ''}/budgets`;\n const params = new URLSearchParams();\n if (req.pageToken !== undefined) {\n params.append('page_token', req.pageToken);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\n let resp: ListBudgetConfigurationsResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalListBudgetConfigurationsResponseSchema\n );\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n async *listBudgetConfigurationsIter(\n req: ListBudgetConfigurationsRequest,\n options?: CallOptions\n ): AsyncGenerator<BudgetConfiguration> {\n const pageReq: ListBudgetConfigurationsRequest = {...req};\n for (;;) {\n const resp = await this.listBudgetConfigurations(pageReq, options);\n for (const item of resp.budgets ?? []) {\n yield item;\n }\n if (resp.nextPageToken === undefined || resp.nextPageToken === '') {\n return;\n }\n pageReq.pageToken = resp.nextPageToken;\n }\n }\n\n /** Updates a budget configuration for an account. Both account and budget configuration are specified by ID. */\n async updateBudgetConfiguration(\n req: UpdateBudgetConfigurationRequest,\n options?: CallOptions\n ): Promise<UpdateBudgetConfigurationResponse> {\n const {host, accountId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.1/accounts/${req.budget?.accountId ?? accountId ?? ''}/budgets/${req.budgetId ?? ''}`;\n const body = marshalRequest(\n req,\n marshalUpdateBudgetConfigurationRequestSchema\n );\n let resp: UpdateBudgetConfigurationResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(\n respBody,\n unmarshalUpdateBudgetConfigurationResponseSchema\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"],"mappings":";;;;;;;;;AA0CA,MAAM,kBAAkB;CACtB,KAAK,iBAAyB,QAAQ,iBAAiB,GAAG;CAC1D,OAAOA;CACR;AAED,IAAa,gBAAb,MAA2B;CACzB,AAAiB;CACjB,AAAiB;CAIjB,AAAiB;CAIjB,AAAQ;CAER,YAAY,SAAwB;AAClC,OAAK,UAAU;AACf,OAAK,SAAS,QAAQ,UAAU,IAAI,YAAY;AAKhD,OAAK,YAJQ,eAAe,CACzB,KAAK,gBAAgB,CACrB,KAAK;GAAC,KAAK;GAAe,OAAOC;GAAa,CAAC,CAC/C,KAAK;GAAC,KAAK;GAAQ,OAAO,QAAQ,aAAa,MAAM,IAAI;GAAU,CAAC,CACjD,UAAU;;CAGlC,AAAQ,gBAA+C;AACrD,OAAK,WAAW,oBAAoB,KAAK,QAAQ;AACjD,SAAO,KAAK;;;CAId,MAAM,0BACJ,KACA,SAC4C;EAC5C,MAAM,EAAC,MAAM,WAAW,eAAc,MAAM,KAAK,eAAe;EAChE,MAAM,MAAM,GAAG,KAAK,oBAA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E,MAAM,MAAM,GAAG,KAAK,oBAAoB,IAAI,QAAQ,aAAa,aAAa,GAAG,WAAW,IAAI,YAAY;EAC5G,MAAM,OAAO,eACX,KACA,8CACD;EACD,IAAI;EACJ,MAAM,OAAO,OAAO,eAA4C;GAC9D,MAAM,UAAU,IAAI,QAAQ,EAAC,gBAAgB,oBAAmB,CAAC;AACjE,WAAQ,IAAI,cAAc,KAAK,UAAU;AAOzC,UAAO,cALU,MAAM,gBAAgB;IACrC,SAFc,iBAAiB,OAAO,KAAK,SAAS,YAAY,KAAK;IAGrE;IACA,QAAQ,KAAK;IACd,CAAC,EAGA,iDACD;;AAEH,QAAM,YAAY,MAAM,QAAQ;AAChC,MAAI,SAAS,OACX,OAAM,IAAI,MAAM,wCAAwC;AAE1D,SAAO"}
@@ -1,3 +1,3 @@
1
- import { ActionConfiguration, ActionConfigurationType, AlertConfiguration, AlertConfigurationQuantityType, AlertConfigurationScopeType, AlertConfigurationTimePeriod, AlertConfigurationTriggerType, BudgetConfiguration, BudgetConfigurationFilter, BudgetConfigurationFilter_Clause, BudgetConfigurationFilter_Operator, BudgetConfigurationFilter_TagClause, BudgetConfigurationFilter_WorkspaceIdClause, BudgetResourceType, CreateBudgetConfigurationBudget, CreateBudgetConfigurationRequest, CreateBudgetConfigurationResponse, DeleteBudgetConfigurationRequest, DeleteBudgetConfigurationResponse, GetBudgetConfigurationRequest, GetBudgetConfigurationResponse, ListBudgetConfigurationsRequest, ListBudgetConfigurationsResponse, PrincipalOverride, UpdateBudgetConfigurationBudget, UpdateBudgetConfigurationRequest, UpdateBudgetConfigurationResponse } from "./model.js";
1
+ import { ActionConfiguration, ActionConfigurationType, AlertConfiguration, AlertConfigurationQuantityType, AlertConfigurationScopeType, AlertConfigurationTimePeriod, AlertConfigurationTriggerType, BudgetConfiguration, BudgetConfigurationFilter, BudgetConfigurationFilter_Clause, BudgetConfigurationFilter_Operator, BudgetConfigurationFilter_TagClause, BudgetConfigurationFilter_WorkspaceIdClause, BudgetResourceType, CreateBudgetConfigurationBudget, CreateBudgetConfigurationBudgetActionConfigurations, CreateBudgetConfigurationBudgetAlertConfigurations, CreateBudgetConfigurationRequest, CreateBudgetConfigurationResponse, DeleteBudgetConfigurationRequest, DeleteBudgetConfigurationResponse, GetBudgetConfigurationRequest, GetBudgetConfigurationResponse, ListBudgetConfigurationsRequest, ListBudgetConfigurationsResponse, PrincipalOverride, UpdateBudgetConfigurationBudget, UpdateBudgetConfigurationRequest, UpdateBudgetConfigurationResponse } from "./model.js";
2
2
  import { BudgetsClient } from "./client.js";
3
- export { type ActionConfiguration, ActionConfigurationType, type AlertConfiguration, AlertConfigurationQuantityType, AlertConfigurationScopeType, AlertConfigurationTimePeriod, AlertConfigurationTriggerType, type BudgetConfiguration, type BudgetConfigurationFilter, type BudgetConfigurationFilter_Clause, BudgetConfigurationFilter_Operator, type BudgetConfigurationFilter_TagClause, type BudgetConfigurationFilter_WorkspaceIdClause, BudgetResourceType, BudgetsClient, type CreateBudgetConfigurationBudget, type CreateBudgetConfigurationRequest, type CreateBudgetConfigurationResponse, type DeleteBudgetConfigurationRequest, type DeleteBudgetConfigurationResponse, type GetBudgetConfigurationRequest, type GetBudgetConfigurationResponse, type ListBudgetConfigurationsRequest, type ListBudgetConfigurationsResponse, type PrincipalOverride, type UpdateBudgetConfigurationBudget, type UpdateBudgetConfigurationRequest, type UpdateBudgetConfigurationResponse };
3
+ export { type ActionConfiguration, ActionConfigurationType, type AlertConfiguration, AlertConfigurationQuantityType, AlertConfigurationScopeType, AlertConfigurationTimePeriod, AlertConfigurationTriggerType, type BudgetConfiguration, type BudgetConfigurationFilter, type BudgetConfigurationFilter_Clause, BudgetConfigurationFilter_Operator, type BudgetConfigurationFilter_TagClause, type BudgetConfigurationFilter_WorkspaceIdClause, BudgetResourceType, BudgetsClient, type CreateBudgetConfigurationBudget, type CreateBudgetConfigurationBudgetActionConfigurations, type CreateBudgetConfigurationBudgetAlertConfigurations, type CreateBudgetConfigurationRequest, type CreateBudgetConfigurationResponse, type DeleteBudgetConfigurationRequest, type DeleteBudgetConfigurationResponse, type GetBudgetConfigurationRequest, type GetBudgetConfigurationResponse, type ListBudgetConfigurationsRequest, type ListBudgetConfigurationsResponse, type PrincipalOverride, type UpdateBudgetConfigurationBudget, type UpdateBudgetConfigurationRequest, type UpdateBudgetConfigurationResponse };
@@ -111,16 +111,10 @@ interface BudgetConfigurationFilter_WorkspaceIdClause {
111
111
  values?: bigint[] | undefined;
112
112
  }
113
113
  interface CreateBudgetConfigurationBudget {
114
- /** <Databricks> budget configuration ID. */
115
- budgetConfigurationId?: string | undefined;
116
114
  /** <Databricks> account ID. */
117
115
  accountId?: string | undefined;
118
- /** Creation time of this budget configuration. */
119
- createTime?: bigint | undefined;
120
- /** Update time of this budget configuration. */
121
- updateTime?: bigint | undefined;
122
116
  /** Alerts to configure when this budget is in a triggered state. Budgets must have exactly one alert configuration. */
123
- alertConfigurations?: AlertConfiguration[] | undefined;
117
+ alertConfigurations?: CreateBudgetConfigurationBudgetAlertConfigurations[] | undefined;
124
118
  /**
125
119
  * Configured filters for this budget. These are applied to your account's usage to limit the scope of what is considered for this budget.
126
120
  * Leave empty to include all usage for this account. All provided filters must be matched for usage to be included.
@@ -131,6 +125,28 @@ interface CreateBudgetConfigurationBudget {
131
125
  /** The resource scope for this budget. Determines whether the budget tracks all resources or a specific resource. */
132
126
  resourceType?: BudgetResourceType | undefined;
133
127
  }
128
+ interface CreateBudgetConfigurationBudgetActionConfigurations {
129
+ /** The type of the action. */
130
+ actionType?: ActionConfigurationType | undefined;
131
+ /** Target for the action. For example, an email address. */
132
+ target?: string | undefined;
133
+ }
134
+ interface CreateBudgetConfigurationBudgetAlertConfigurations {
135
+ /** The time window of usage data for the budget. */
136
+ timePeriod?: AlertConfigurationTimePeriod | undefined;
137
+ /** The evaluation method to determine when this budget alert is in a triggered state. */
138
+ triggerType?: AlertConfigurationTriggerType | undefined;
139
+ /** The way to calculate cost for this budget alert. This is what `quantity_threshold` is measured in. */
140
+ quantityType?: AlertConfigurationQuantityType | undefined;
141
+ /** The threshold for the budget alert to determine if it is in a triggered state. The number is evaluated based on `quantity_type`. */
142
+ quantityThreshold?: string | undefined;
143
+ /** Configured actions for this alert. These define what happens when an alert enters a triggered state. */
144
+ actionConfigurations?: CreateBudgetConfigurationBudgetActionConfigurations[] | undefined;
145
+ /** How the alert threshold is evaluated. Determines whether spend is tracked in aggregate or per individual user. */
146
+ scopeType?: AlertConfigurationScopeType | undefined;
147
+ /** Per-principal threshold overrides for this alert. Only applies to per-user alerts (`scope_type` = `ALERT_CONFIGURATION_SCOPE_TYPE_PER_USER`); ignored for shared alerts. */
148
+ principalOverrides?: PrincipalOverride[] | undefined;
149
+ }
134
150
  interface CreateBudgetConfigurationRequest {
135
151
  /** Properties of the new budget configuration. */
136
152
  budget?: CreateBudgetConfigurationBudget | undefined;
@@ -155,7 +171,6 @@ interface GetBudgetConfigurationRequest {
155
171
  budgetId?: string | undefined;
156
172
  /** <Databricks> account ID. */
157
173
  accountId?: string | undefined;
158
- includeSpendStatus?: boolean | undefined;
159
174
  }
160
175
  interface GetBudgetConfigurationResponse {
161
176
  budget?: BudgetConfiguration | undefined;
@@ -168,8 +183,6 @@ interface ListBudgetConfigurationsRequest {
168
183
  * Requests first page if absent.
169
184
  */
170
185
  pageToken?: string | undefined;
171
- includeSpendStatus?: boolean | undefined;
172
- includeWorkspaceBudgets?: boolean | undefined;
173
186
  }
174
187
  interface ListBudgetConfigurationsResponse {
175
188
  budgets?: BudgetConfiguration[] | undefined;
@@ -188,10 +201,6 @@ interface UpdateBudgetConfigurationBudget {
188
201
  budgetConfigurationId?: string | undefined;
189
202
  /** <Databricks> account ID. */
190
203
  accountId?: string | undefined;
191
- /** Creation time of this budget configuration. */
192
- createTime?: bigint | undefined;
193
- /** Update time of this budget configuration. */
194
- updateTime?: bigint | undefined;
195
204
  /** Alerts to configure when this budget is in a triggered state. Budgets must have exactly one alert configuration. */
196
205
  alertConfigurations?: AlertConfiguration[] | undefined;
197
206
  /**
@@ -234,10 +243,12 @@ declare const marshalBudgetConfigurationFilter_ClauseSchema: z.ZodType;
234
243
  declare const marshalBudgetConfigurationFilter_TagClauseSchema: z.ZodType;
235
244
  declare const marshalBudgetConfigurationFilter_WorkspaceIdClauseSchema: z.ZodType;
236
245
  declare const marshalCreateBudgetConfigurationBudgetSchema: z.ZodType;
246
+ declare const marshalCreateBudgetConfigurationBudgetActionConfigurationsSchema: z.ZodType;
247
+ declare const marshalCreateBudgetConfigurationBudgetAlertConfigurationsSchema: z.ZodType;
237
248
  declare const marshalCreateBudgetConfigurationRequestSchema: z.ZodType;
238
249
  declare const marshalPrincipalOverrideSchema: z.ZodType;
239
250
  declare const marshalUpdateBudgetConfigurationBudgetSchema: z.ZodType;
240
251
  declare const marshalUpdateBudgetConfigurationRequestSchema: z.ZodType;
241
252
  //#endregion
242
- export { ActionConfiguration, ActionConfigurationType, AlertConfiguration, AlertConfigurationQuantityType, AlertConfigurationScopeType, AlertConfigurationTimePeriod, AlertConfigurationTriggerType, BudgetConfiguration, BudgetConfigurationFilter, BudgetConfigurationFilter_Clause, BudgetConfigurationFilter_Operator, BudgetConfigurationFilter_TagClause, BudgetConfigurationFilter_WorkspaceIdClause, BudgetResourceType, CreateBudgetConfigurationBudget, CreateBudgetConfigurationRequest, CreateBudgetConfigurationResponse, DeleteBudgetConfigurationRequest, DeleteBudgetConfigurationResponse, GetBudgetConfigurationRequest, GetBudgetConfigurationResponse, ListBudgetConfigurationsRequest, ListBudgetConfigurationsResponse, PrincipalOverride, UpdateBudgetConfigurationBudget, UpdateBudgetConfigurationRequest, UpdateBudgetConfigurationResponse, marshalActionConfigurationSchema, marshalAlertConfigurationSchema, marshalBudgetConfigurationFilterSchema, marshalBudgetConfigurationFilter_ClauseSchema, marshalBudgetConfigurationFilter_TagClauseSchema, marshalBudgetConfigurationFilter_WorkspaceIdClauseSchema, marshalCreateBudgetConfigurationBudgetSchema, marshalCreateBudgetConfigurationRequestSchema, marshalPrincipalOverrideSchema, marshalUpdateBudgetConfigurationBudgetSchema, marshalUpdateBudgetConfigurationRequestSchema, unmarshalActionConfigurationSchema, unmarshalAlertConfigurationSchema, unmarshalBudgetConfigurationFilterSchema, unmarshalBudgetConfigurationFilter_ClauseSchema, unmarshalBudgetConfigurationFilter_TagClauseSchema, unmarshalBudgetConfigurationFilter_WorkspaceIdClauseSchema, unmarshalBudgetConfigurationSchema, unmarshalCreateBudgetConfigurationResponseSchema, unmarshalDeleteBudgetConfigurationResponseSchema, unmarshalGetBudgetConfigurationResponseSchema, unmarshalListBudgetConfigurationsResponseSchema, unmarshalPrincipalOverrideSchema, unmarshalUpdateBudgetConfigurationResponseSchema };
253
+ export { ActionConfiguration, ActionConfigurationType, AlertConfiguration, AlertConfigurationQuantityType, AlertConfigurationScopeType, AlertConfigurationTimePeriod, AlertConfigurationTriggerType, BudgetConfiguration, BudgetConfigurationFilter, BudgetConfigurationFilter_Clause, BudgetConfigurationFilter_Operator, BudgetConfigurationFilter_TagClause, BudgetConfigurationFilter_WorkspaceIdClause, BudgetResourceType, CreateBudgetConfigurationBudget, CreateBudgetConfigurationBudgetActionConfigurations, CreateBudgetConfigurationBudgetAlertConfigurations, CreateBudgetConfigurationRequest, CreateBudgetConfigurationResponse, DeleteBudgetConfigurationRequest, DeleteBudgetConfigurationResponse, GetBudgetConfigurationRequest, GetBudgetConfigurationResponse, ListBudgetConfigurationsRequest, ListBudgetConfigurationsResponse, PrincipalOverride, UpdateBudgetConfigurationBudget, UpdateBudgetConfigurationRequest, UpdateBudgetConfigurationResponse, marshalActionConfigurationSchema, marshalAlertConfigurationSchema, marshalBudgetConfigurationFilterSchema, marshalBudgetConfigurationFilter_ClauseSchema, marshalBudgetConfigurationFilter_TagClauseSchema, marshalBudgetConfigurationFilter_WorkspaceIdClauseSchema, marshalCreateBudgetConfigurationBudgetActionConfigurationsSchema, marshalCreateBudgetConfigurationBudgetAlertConfigurationsSchema, marshalCreateBudgetConfigurationBudgetSchema, marshalCreateBudgetConfigurationRequestSchema, marshalPrincipalOverrideSchema, marshalUpdateBudgetConfigurationBudgetSchema, marshalUpdateBudgetConfigurationRequestSchema, unmarshalActionConfigurationSchema, unmarshalAlertConfigurationSchema, unmarshalBudgetConfigurationFilterSchema, unmarshalBudgetConfigurationFilter_ClauseSchema, unmarshalBudgetConfigurationFilter_TagClauseSchema, unmarshalBudgetConfigurationFilter_WorkspaceIdClauseSchema, unmarshalBudgetConfigurationSchema, unmarshalCreateBudgetConfigurationResponseSchema, unmarshalDeleteBudgetConfigurationResponseSchema, unmarshalGetBudgetConfigurationResponseSchema, unmarshalListBudgetConfigurationsResponseSchema, unmarshalPrincipalOverrideSchema, unmarshalUpdateBudgetConfigurationResponseSchema };
243
254
  //# sourceMappingURL=model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","names":[],"sources":["../../src/v1/model.ts"],"mappings":";;;;cAMa,uBAAA;EAAA,SAOH,kBAAA;EAAA;;;;EAAA,SAAA,WAAA;AAAA;AAAA,KACE,uBAAA,WACA,uBAAA,eAAsC,uBAAA;AAAA,cAIrC,8BAAA;EAAA,SAEH,sBAAA;AAAA;AAAA,KACE,8BAAA,WACA,8BAAA,eAA6C,8BAAA;;cAK5C,2BAAA;mEAOH,qCAAA,2CAbgC;EAAA,SAahC,uCAAA;AAAA;AAAA,KACE,2BAAA,WACA,2BAAA,eAA0C,2BAAA;AAAA,cAIzC,4BAAA;EAAA,SAEH,KAAA;AAAA;AAAA,KACE,4BAAA,WACA,4BAAA,eAA2C,4BAAA;AAAA,cAI1C,6BAAA;EAAA,SAEH,4BAAA;AAAA;AAAA,KACE,6BAAA,WACA,6BAAA,eAA4C,6BAAA;;;AAZxD;;cAoBa,kBAAA;EAlBH,oEAwBA,kCAAA,wCAvBE;EAAA,SAuBF,qCAAA;AAAA;AAAA,KACE,kBAAA,WACA,kBAAA,eAAiC,kBAAA;AAAA,cAIhC,kCAAA;EAAA,SAEH,EAAA;AAAA;AAAA,KAEE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D,CAAA,CAAE,OAAA;AAAA,cAapD,wDAAA,EAA0D,CAAA,CAAE,OAAA;AAAA,cAW5D,4CAAA,EAA8C,CAAA,CAAE,OAAA;AAAA,cAsBhD,gEAAA,EAAkE,CAAA,CAAE,OAAA;AAAA,cAWpE,+DAAA,EAAiE,CAAA,CAAE,OAAA;AAAA,cA8BnE,6CAAA,EAA+C,CAAA,CAAE,OAAA;AAAA,cAUjD,8BAAA,EAAgC,CAAA,CAAE,OAAA;AAAA,cAUlC,4CAAA,EAA8C,CAAA,CAAE,OAAA;AAAA,cAoBhD,6CAAA,EAA+C,CAAA,CAAE,OAAA"}
package/dist/v1/model.js CHANGED
@@ -189,24 +189,42 @@ const marshalBudgetConfigurationFilter_WorkspaceIdClauseSchema = z.object({
189
189
  values: d.values
190
190
  }));
191
191
  const marshalCreateBudgetConfigurationBudgetSchema = z.object({
192
- budgetConfigurationId: z.string().optional(),
193
192
  accountId: z.string().optional(),
194
- createTime: z.bigint().optional(),
195
- updateTime: z.bigint().optional(),
196
- alertConfigurations: z.array(z.lazy(() => marshalAlertConfigurationSchema)).optional(),
193
+ alertConfigurations: z.array(z.lazy(() => marshalCreateBudgetConfigurationBudgetAlertConfigurationsSchema)).optional(),
197
194
  filter: z.lazy(() => marshalBudgetConfigurationFilterSchema).optional(),
198
195
  displayName: z.string().optional(),
199
196
  resourceType: z.string().optional()
200
197
  }).transform((d) => ({
201
- budget_configuration_id: d.budgetConfigurationId,
202
198
  account_id: d.accountId,
203
- create_time: d.createTime,
204
- update_time: d.updateTime,
205
199
  alert_configurations: d.alertConfigurations,
206
200
  filter: d.filter,
207
201
  display_name: d.displayName,
208
202
  resource_type: d.resourceType
209
203
  }));
204
+ const marshalCreateBudgetConfigurationBudgetActionConfigurationsSchema = z.object({
205
+ actionType: z.string().optional(),
206
+ target: z.string().optional()
207
+ }).transform((d) => ({
208
+ action_type: d.actionType,
209
+ target: d.target
210
+ }));
211
+ const marshalCreateBudgetConfigurationBudgetAlertConfigurationsSchema = z.object({
212
+ timePeriod: z.string().optional(),
213
+ triggerType: z.string().optional(),
214
+ quantityType: z.string().optional(),
215
+ quantityThreshold: z.string().optional(),
216
+ actionConfigurations: z.array(z.lazy(() => marshalCreateBudgetConfigurationBudgetActionConfigurationsSchema)).optional(),
217
+ scopeType: z.string().optional(),
218
+ principalOverrides: z.array(z.lazy(() => marshalPrincipalOverrideSchema)).optional()
219
+ }).transform((d) => ({
220
+ time_period: d.timePeriod,
221
+ trigger_type: d.triggerType,
222
+ quantity_type: d.quantityType,
223
+ quantity_threshold: d.quantityThreshold,
224
+ action_configurations: d.actionConfigurations,
225
+ scope_type: d.scopeType,
226
+ principal_overrides: d.principalOverrides
227
+ }));
210
228
  const marshalCreateBudgetConfigurationRequestSchema = z.object({ budget: z.lazy(() => marshalCreateBudgetConfigurationBudgetSchema).optional() }).transform((d) => ({ budget: d.budget }));
211
229
  const marshalPrincipalOverrideSchema = z.object({
212
230
  principalId: z.bigint().optional(),
@@ -218,8 +236,6 @@ const marshalPrincipalOverrideSchema = z.object({
218
236
  const marshalUpdateBudgetConfigurationBudgetSchema = z.object({
219
237
  budgetConfigurationId: z.string().optional(),
220
238
  accountId: z.string().optional(),
221
- createTime: z.bigint().optional(),
222
- updateTime: z.bigint().optional(),
223
239
  alertConfigurations: z.array(z.lazy(() => marshalAlertConfigurationSchema)).optional(),
224
240
  filter: z.lazy(() => marshalBudgetConfigurationFilterSchema).optional(),
225
241
  displayName: z.string().optional(),
@@ -227,8 +243,6 @@ const marshalUpdateBudgetConfigurationBudgetSchema = z.object({
227
243
  }).transform((d) => ({
228
244
  budget_configuration_id: d.budgetConfigurationId,
229
245
  account_id: d.accountId,
230
- create_time: d.createTime,
231
- update_time: d.updateTime,
232
246
  alert_configurations: d.alertConfigurations,
233
247
  filter: d.filter,
234
248
  display_name: d.displayName,
@@ -243,5 +257,5 @@ const marshalUpdateBudgetConfigurationRequestSchema = z.object({
243
257
  }));
244
258
 
245
259
  //#endregion
246
- export { ActionConfigurationType, AlertConfigurationQuantityType, AlertConfigurationScopeType, AlertConfigurationTimePeriod, AlertConfigurationTriggerType, BudgetConfigurationFilter_Operator, BudgetResourceType, marshalActionConfigurationSchema, marshalAlertConfigurationSchema, marshalBudgetConfigurationFilterSchema, marshalBudgetConfigurationFilter_ClauseSchema, marshalBudgetConfigurationFilter_TagClauseSchema, marshalBudgetConfigurationFilter_WorkspaceIdClauseSchema, marshalCreateBudgetConfigurationBudgetSchema, marshalCreateBudgetConfigurationRequestSchema, marshalPrincipalOverrideSchema, marshalUpdateBudgetConfigurationBudgetSchema, marshalUpdateBudgetConfigurationRequestSchema, unmarshalActionConfigurationSchema, unmarshalAlertConfigurationSchema, unmarshalBudgetConfigurationFilterSchema, unmarshalBudgetConfigurationFilter_ClauseSchema, unmarshalBudgetConfigurationFilter_TagClauseSchema, unmarshalBudgetConfigurationFilter_WorkspaceIdClauseSchema, unmarshalBudgetConfigurationSchema, unmarshalCreateBudgetConfigurationResponseSchema, unmarshalDeleteBudgetConfigurationResponseSchema, unmarshalGetBudgetConfigurationResponseSchema, unmarshalListBudgetConfigurationsResponseSchema, unmarshalPrincipalOverrideSchema, unmarshalUpdateBudgetConfigurationResponseSchema };
260
+ export { ActionConfigurationType, AlertConfigurationQuantityType, AlertConfigurationScopeType, AlertConfigurationTimePeriod, AlertConfigurationTriggerType, BudgetConfigurationFilter_Operator, BudgetResourceType, marshalActionConfigurationSchema, marshalAlertConfigurationSchema, marshalBudgetConfigurationFilterSchema, marshalBudgetConfigurationFilter_ClauseSchema, marshalBudgetConfigurationFilter_TagClauseSchema, marshalBudgetConfigurationFilter_WorkspaceIdClauseSchema, marshalCreateBudgetConfigurationBudgetActionConfigurationsSchema, marshalCreateBudgetConfigurationBudgetAlertConfigurationsSchema, marshalCreateBudgetConfigurationBudgetSchema, marshalCreateBudgetConfigurationRequestSchema, marshalPrincipalOverrideSchema, marshalUpdateBudgetConfigurationBudgetSchema, marshalUpdateBudgetConfigurationRequestSchema, unmarshalActionConfigurationSchema, unmarshalAlertConfigurationSchema, unmarshalBudgetConfigurationFilterSchema, unmarshalBudgetConfigurationFilter_ClauseSchema, unmarshalBudgetConfigurationFilter_TagClauseSchema, unmarshalBudgetConfigurationFilter_WorkspaceIdClauseSchema, unmarshalBudgetConfigurationSchema, unmarshalCreateBudgetConfigurationResponseSchema, unmarshalDeleteBudgetConfigurationResponseSchema, unmarshalGetBudgetConfigurationResponseSchema, unmarshalListBudgetConfigurationsResponseSchema, unmarshalPrincipalOverrideSchema, unmarshalUpdateBudgetConfigurationResponseSchema };
247
261
  //# sourceMappingURL=model.js.map
@@ -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/** Type of action that a budget alert executes when its threshold is crossed. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ActionConfigurationType = {\n EMAIL_NOTIFICATION: 'EMAIL_NOTIFICATION',\n /**\n * Blocks further usage when the alert threshold is reached. Supported only on\n * AI Gateway budgets. No `target` is required for this action type.\n */\n BLOCK_USAGE: 'BLOCK_USAGE',\n} as const;\nexport type ActionConfigurationType =\n | (typeof ActionConfigurationType)[keyof typeof ActionConfigurationType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertConfigurationQuantityType = {\n LIST_PRICE_DOLLARS_USD: 'LIST_PRICE_DOLLARS_USD',\n} as const;\nexport type AlertConfigurationQuantityType =\n | (typeof AlertConfigurationQuantityType)[keyof typeof AlertConfigurationQuantityType]\n | (string & {});\n\n/** Evaluation scope for an alert configuration. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertConfigurationScopeType = {\n /** Alert evaluates aggregate spend across all users. */\n ALERT_CONFIGURATION_SCOPE_TYPE_SHARED:\n 'ALERT_CONFIGURATION_SCOPE_TYPE_SHARED',\n /** Alert evaluates spend per individual user identity. */\n ALERT_CONFIGURATION_SCOPE_TYPE_PER_USER:\n 'ALERT_CONFIGURATION_SCOPE_TYPE_PER_USER',\n} as const;\nexport type AlertConfigurationScopeType =\n | (typeof AlertConfigurationScopeType)[keyof typeof AlertConfigurationScopeType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertConfigurationTimePeriod = {\n MONTH: 'MONTH',\n} as const;\nexport type AlertConfigurationTimePeriod =\n | (typeof AlertConfigurationTimePeriod)[keyof typeof AlertConfigurationTimePeriod]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertConfigurationTriggerType = {\n CUMULATIVE_SPENDING_EXCEEDED: 'CUMULATIVE_SPENDING_EXCEEDED',\n} as const;\nexport type AlertConfigurationTriggerType =\n | (typeof AlertConfigurationTriggerType)[keyof typeof AlertConfigurationTriggerType]\n | (string & {});\n\n/**\n * Resource scope for a budget configuration. Determines whether the budget tracks all\n * resources or a specific resource.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const BudgetResourceType = {\n /** The budget applies to spending across all resources. */\n BUDGET_RESOURCE_TYPE_ALL_RESOURCES: 'BUDGET_RESOURCE_TYPE_ALL_RESOURCES',\n /** The budget applies only to Unity AI Gateway spending. */\n BUDGET_RESOURCE_TYPE_UNITY_AI_GATEWAY:\n 'BUDGET_RESOURCE_TYPE_UNITY_AI_GATEWAY',\n} as const;\nexport type BudgetResourceType =\n | (typeof BudgetResourceType)[keyof typeof BudgetResourceType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const BudgetConfigurationFilter_Operator = {\n IN: 'IN',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type BudgetConfigurationFilter_Operator =\n | (typeof BudgetConfigurationFilter_Operator)[keyof typeof BudgetConfigurationFilter_Operator]\n | (string & {});\n\nexport interface ActionConfiguration {\n /** <Databricks> action configuration ID. */\n actionConfigurationId?: string | undefined;\n /** The type of the action. */\n actionType?: ActionConfigurationType | undefined;\n /** Target for the action. For example, an email address. */\n target?: string | undefined;\n}\n\nexport interface AlertConfiguration {\n /** <Databricks> alert configuration ID. */\n alertConfigurationId?: string | undefined;\n /** The time window of usage data for the budget. */\n timePeriod?: AlertConfigurationTimePeriod | undefined;\n /** The evaluation method to determine when this budget alert is in a triggered state. */\n triggerType?: AlertConfigurationTriggerType | undefined;\n /** The way to calculate cost for this budget alert. This is what `quantity_threshold` is measured in. */\n quantityType?: AlertConfigurationQuantityType | undefined;\n /** The threshold for the budget alert to determine if it is in a triggered state. The number is evaluated based on `quantity_type`. */\n quantityThreshold?: string | undefined;\n /** Configured actions for this alert. These define what happens when an alert enters a triggered state. */\n actionConfigurations?: ActionConfiguration[] | undefined;\n /** How the alert threshold is evaluated. Determines whether spend is tracked in aggregate or per individual user. */\n scopeType?: AlertConfigurationScopeType | undefined;\n /** Per-principal threshold overrides for this alert. Only applies to per-user alerts (`scope_type` = `ALERT_CONFIGURATION_SCOPE_TYPE_PER_USER`); ignored for shared alerts. */\n principalOverrides?: PrincipalOverride[] | undefined;\n}\n\nexport interface BudgetConfiguration {\n /** <Databricks> budget configuration ID. */\n budgetConfigurationId?: string | undefined;\n /** <Databricks> account ID. */\n accountId?: string | undefined;\n /** Creation time of this budget configuration. */\n createTime?: bigint | undefined;\n /** Update time of this budget configuration. */\n updateTime?: bigint | undefined;\n /** Alerts to configure when this budget is in a triggered state. Budgets must have exactly one alert configuration. */\n alertConfigurations?: AlertConfiguration[] | undefined;\n /**\n * Configured filters for this budget. These are applied to your account's usage to limit the scope of what is considered for this budget.\n * Leave empty to include all usage for this account. All provided filters must be matched for usage to be included.\n */\n filter?: BudgetConfigurationFilter | undefined;\n /** Human-readable name of budget configuration. Max Length: 128 */\n displayName?: string | undefined;\n /** The resource scope for this budget. Determines whether the budget tracks all resources or a specific resource. */\n resourceType?: BudgetResourceType | undefined;\n}\n\nexport interface BudgetConfigurationFilter {\n /** If provided, usage must match with the provided <Databricks> workspace IDs. */\n workspaceId?: BudgetConfigurationFilter_WorkspaceIdClause | undefined;\n /**\n * A list of tag keys and values that will limit the budget to usage that includes those specific custom tags.\n * Tags are case-sensitive and should be entered exactly as they appear in your usage data.\n */\n tags?: BudgetConfigurationFilter_TagClause[] | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface BudgetConfigurationFilter_Clause {\n operator?: BudgetConfigurationFilter_Operator | undefined;\n values?: string[] | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface BudgetConfigurationFilter_TagClause {\n key?: string | undefined;\n value?: BudgetConfigurationFilter_Clause | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface BudgetConfigurationFilter_WorkspaceIdClause {\n operator?: BudgetConfigurationFilter_Operator | undefined;\n values?: bigint[] | undefined;\n}\n\nexport interface CreateBudgetConfigurationBudget {\n /** <Databricks> budget configuration ID. */\n budgetConfigurationId?: string | undefined;\n /** <Databricks> account ID. */\n accountId?: string | undefined;\n /** Creation time of this budget configuration. */\n createTime?: bigint | undefined;\n /** Update time of this budget configuration. */\n updateTime?: bigint | undefined;\n /** Alerts to configure when this budget is in a triggered state. Budgets must have exactly one alert configuration. */\n alertConfigurations?: AlertConfiguration[] | undefined;\n /**\n * Configured filters for this budget. These are applied to your account's usage to limit the scope of what is considered for this budget.\n * Leave empty to include all usage for this account. All provided filters must be matched for usage to be included.\n */\n filter?: BudgetConfigurationFilter | undefined;\n /** Human-readable name of budget configuration. Max Length: 128 */\n displayName?: string | undefined;\n /** The resource scope for this budget. Determines whether the budget tracks all resources or a specific resource. */\n resourceType?: BudgetResourceType | undefined;\n}\n\nexport interface CreateBudgetConfigurationRequest {\n /** Properties of the new budget configuration. */\n budget?: CreateBudgetConfigurationBudget | undefined;\n}\n\nexport interface CreateBudgetConfigurationResponse {\n /** The created budget configuration. */\n budget?: BudgetConfiguration | undefined;\n}\n\n/**\n * *\n * Delete budget\n */\nexport interface DeleteBudgetConfigurationRequest {\n /** The <Databricks> budget configuration ID. */\n budgetId?: string | undefined;\n /** <Databricks> account ID. */\n accountId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DeleteBudgetConfigurationResponse {}\n\nexport interface GetBudgetConfigurationRequest {\n /** The budget configuration ID */\n budgetId?: string | undefined;\n /** <Databricks> account ID. */\n accountId?: string | undefined;\n includeSpendStatus?: boolean | undefined;\n}\n\nexport interface GetBudgetConfigurationResponse {\n budget?: BudgetConfiguration | undefined;\n}\n\nexport interface ListBudgetConfigurationsRequest {\n /** <Databricks> account ID. */\n accountId?: string | undefined;\n /**\n * A page token received from a previous get all budget configurations call. This token can be used to retrieve the subsequent page.\n * Requests first page if absent.\n */\n pageToken?: string | undefined;\n includeSpendStatus?: boolean | undefined;\n includeWorkspaceBudgets?: boolean | undefined;\n}\n\nexport interface ListBudgetConfigurationsResponse {\n budgets?: BudgetConfiguration[] | undefined;\n /** Token which can be sent as `page_token` to retrieve the next page of results. If this field is omitted, there are no subsequent budgets. */\n nextPageToken?: string | undefined;\n}\n\n/** Per-principal threshold override on a PER_USER alert: bumps the alert's quantity_threshold for one principal_id. */\nexport interface PrincipalOverride {\n /** Account-level principal id (user, group, or service principal). */\n principalId?: bigint | undefined;\n /** Dollar amount that overrides the parent alert's quantity_threshold for this principal. */\n overrideThreshold?: string | undefined;\n}\n\nexport interface UpdateBudgetConfigurationBudget {\n /** <Databricks> budget configuration ID. */\n budgetConfigurationId?: string | undefined;\n /** <Databricks> account ID. */\n accountId?: string | undefined;\n /** Creation time of this budget configuration. */\n createTime?: bigint | undefined;\n /** Update time of this budget configuration. */\n updateTime?: bigint | undefined;\n /** Alerts to configure when this budget is in a triggered state. Budgets must have exactly one alert configuration. */\n alertConfigurations?: AlertConfiguration[] | undefined;\n /**\n * Configured filters for this budget. These are applied to your account's usage to limit the scope of what is considered for this budget.\n * Leave empty to include all usage for this account. All provided filters must be matched for usage to be included.\n */\n filter?: BudgetConfigurationFilter | undefined;\n /** Human-readable name of budget configuration. Max Length: 128 */\n displayName?: string | undefined;\n /** The resource scope for this budget. Determines whether the budget tracks all resources or a specific resource. */\n resourceType?: BudgetResourceType | undefined;\n}\n\nexport interface UpdateBudgetConfigurationRequest {\n /** The <Databricks> budget configuration ID. */\n budgetId?: string | undefined;\n /** The updated budget. This will overwrite the budget specified by the budget ID. */\n budget?: UpdateBudgetConfigurationBudget | undefined;\n}\n\nexport interface UpdateBudgetConfigurationResponse {\n /** The updated budget. */\n budget?: BudgetConfiguration | undefined;\n}\n\nexport const unmarshalActionConfigurationSchema: z.ZodType<ActionConfiguration> =\n z\n .object({\n action_configuration_id: z.string().optional(),\n action_type: z.string().optional(),\n target: z.string().optional(),\n })\n .transform(d => ({\n actionConfigurationId: d.action_configuration_id,\n actionType: d.action_type,\n target: d.target,\n }));\n\nexport const unmarshalAlertConfigurationSchema: z.ZodType<AlertConfiguration> =\n z\n .object({\n alert_configuration_id: z.string().optional(),\n time_period: z.string().optional(),\n trigger_type: z.string().optional(),\n quantity_type: z.string().optional(),\n quantity_threshold: z.string().optional(),\n action_configurations: z\n .array(z.lazy(() => unmarshalActionConfigurationSchema))\n .optional(),\n scope_type: z.string().optional(),\n principal_overrides: z\n .array(z.lazy(() => unmarshalPrincipalOverrideSchema))\n .optional(),\n })\n .transform(d => ({\n alertConfigurationId: d.alert_configuration_id,\n timePeriod: d.time_period,\n triggerType: d.trigger_type,\n quantityType: d.quantity_type,\n quantityThreshold: d.quantity_threshold,\n actionConfigurations: d.action_configurations,\n scopeType: d.scope_type,\n principalOverrides: d.principal_overrides,\n }));\n\nexport const unmarshalBudgetConfigurationSchema: z.ZodType<BudgetConfiguration> =\n z\n .object({\n budget_configuration_id: z.string().optional(),\n account_id: z.string().optional(),\n create_time: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n update_time: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n alert_configurations: z\n .array(z.lazy(() => unmarshalAlertConfigurationSchema))\n .optional(),\n filter: z.lazy(() => unmarshalBudgetConfigurationFilterSchema).optional(),\n display_name: z.string().optional(),\n resource_type: z.string().optional(),\n })\n .transform(d => ({\n budgetConfigurationId: d.budget_configuration_id,\n accountId: d.account_id,\n createTime: d.create_time,\n updateTime: d.update_time,\n alertConfigurations: d.alert_configurations,\n filter: d.filter,\n displayName: d.display_name,\n resourceType: d.resource_type,\n }));\n\nexport const unmarshalBudgetConfigurationFilterSchema: z.ZodType<BudgetConfigurationFilter> =\n z\n .object({\n workspace_id: z\n .lazy(() => unmarshalBudgetConfigurationFilter_WorkspaceIdClauseSchema)\n .optional(),\n tags: z\n .array(z.lazy(() => unmarshalBudgetConfigurationFilter_TagClauseSchema))\n .optional(),\n })\n .transform(d => ({\n workspaceId: d.workspace_id,\n tags: d.tags,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalBudgetConfigurationFilter_ClauseSchema: z.ZodType<BudgetConfigurationFilter_Clause> =\n z\n .object({\n operator: z.string().optional(),\n values: z.array(z.string()).optional(),\n })\n .transform(d => ({\n operator: d.operator,\n values: d.values,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalBudgetConfigurationFilter_TagClauseSchema: z.ZodType<BudgetConfigurationFilter_TagClause> =\n z\n .object({\n key: z.string().optional(),\n value: z\n .lazy(() => unmarshalBudgetConfigurationFilter_ClauseSchema)\n .optional(),\n })\n .transform(d => ({\n key: d.key,\n value: d.value,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalBudgetConfigurationFilter_WorkspaceIdClauseSchema: z.ZodType<BudgetConfigurationFilter_WorkspaceIdClause> =\n z\n .object({\n operator: z.string().optional(),\n values: z\n .array(\n z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n )\n .optional(),\n })\n .transform(d => ({\n operator: d.operator,\n values: d.values,\n }));\n\nexport const unmarshalCreateBudgetConfigurationResponseSchema: z.ZodType<CreateBudgetConfigurationResponse> =\n z\n .object({\n budget: z.lazy(() => unmarshalBudgetConfigurationSchema).optional(),\n })\n .transform(d => ({\n budget: d.budget,\n }));\n\nexport const unmarshalDeleteBudgetConfigurationResponseSchema: z.ZodType<DeleteBudgetConfigurationResponse> =\n z.object({});\n\nexport const unmarshalGetBudgetConfigurationResponseSchema: z.ZodType<GetBudgetConfigurationResponse> =\n z\n .object({\n budget: z.lazy(() => unmarshalBudgetConfigurationSchema).optional(),\n })\n .transform(d => ({\n budget: d.budget,\n }));\n\nexport const unmarshalListBudgetConfigurationsResponseSchema: z.ZodType<ListBudgetConfigurationsResponse> =\n z\n .object({\n budgets: z\n .array(z.lazy(() => unmarshalBudgetConfigurationSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n budgets: d.budgets,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalPrincipalOverrideSchema: z.ZodType<PrincipalOverride> = z\n .object({\n principal_id: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n override_threshold: z.string().optional(),\n })\n .transform(d => ({\n principalId: d.principal_id,\n overrideThreshold: d.override_threshold,\n }));\n\nexport const unmarshalUpdateBudgetConfigurationResponseSchema: z.ZodType<UpdateBudgetConfigurationResponse> =\n z\n .object({\n budget: z.lazy(() => unmarshalBudgetConfigurationSchema).optional(),\n })\n .transform(d => ({\n budget: d.budget,\n }));\n\nexport const marshalActionConfigurationSchema: z.ZodType = z\n .object({\n actionConfigurationId: z.string().optional(),\n actionType: z.string().optional(),\n target: z.string().optional(),\n })\n .transform(d => ({\n action_configuration_id: d.actionConfigurationId,\n action_type: d.actionType,\n target: d.target,\n }));\n\nexport const marshalAlertConfigurationSchema: z.ZodType = z\n .object({\n alertConfigurationId: z.string().optional(),\n timePeriod: z.string().optional(),\n triggerType: z.string().optional(),\n quantityType: z.string().optional(),\n quantityThreshold: z.string().optional(),\n actionConfigurations: z\n .array(z.lazy(() => marshalActionConfigurationSchema))\n .optional(),\n scopeType: z.string().optional(),\n principalOverrides: z\n .array(z.lazy(() => marshalPrincipalOverrideSchema))\n .optional(),\n })\n .transform(d => ({\n alert_configuration_id: d.alertConfigurationId,\n time_period: d.timePeriod,\n trigger_type: d.triggerType,\n quantity_type: d.quantityType,\n quantity_threshold: d.quantityThreshold,\n action_configurations: d.actionConfigurations,\n scope_type: d.scopeType,\n principal_overrides: d.principalOverrides,\n }));\n\nexport const marshalBudgetConfigurationFilterSchema: z.ZodType = z\n .object({\n workspaceId: z\n .lazy(() => marshalBudgetConfigurationFilter_WorkspaceIdClauseSchema)\n .optional(),\n tags: z\n .array(z.lazy(() => marshalBudgetConfigurationFilter_TagClauseSchema))\n .optional(),\n })\n .transform(d => ({\n workspace_id: d.workspaceId,\n tags: d.tags,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalBudgetConfigurationFilter_ClauseSchema: z.ZodType = z\n .object({\n operator: z.string().optional(),\n values: z.array(z.string()).optional(),\n })\n .transform(d => ({\n operator: d.operator,\n values: d.values,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalBudgetConfigurationFilter_TagClauseSchema: z.ZodType = z\n .object({\n key: z.string().optional(),\n value: z\n .lazy(() => marshalBudgetConfigurationFilter_ClauseSchema)\n .optional(),\n })\n .transform(d => ({\n key: d.key,\n value: d.value,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalBudgetConfigurationFilter_WorkspaceIdClauseSchema: z.ZodType =\n z\n .object({\n operator: z.string().optional(),\n values: z.array(z.bigint()).optional(),\n })\n .transform(d => ({\n operator: d.operator,\n values: d.values,\n }));\n\nexport const marshalCreateBudgetConfigurationBudgetSchema: z.ZodType = z\n .object({\n budgetConfigurationId: z.string().optional(),\n accountId: z.string().optional(),\n createTime: z.bigint().optional(),\n updateTime: z.bigint().optional(),\n alertConfigurations: z\n .array(z.lazy(() => marshalAlertConfigurationSchema))\n .optional(),\n filter: z.lazy(() => marshalBudgetConfigurationFilterSchema).optional(),\n displayName: z.string().optional(),\n resourceType: z.string().optional(),\n })\n .transform(d => ({\n budget_configuration_id: d.budgetConfigurationId,\n account_id: d.accountId,\n create_time: d.createTime,\n update_time: d.updateTime,\n alert_configurations: d.alertConfigurations,\n filter: d.filter,\n display_name: d.displayName,\n resource_type: d.resourceType,\n }));\n\nexport const marshalCreateBudgetConfigurationRequestSchema: z.ZodType = z\n .object({\n budget: z\n .lazy(() => marshalCreateBudgetConfigurationBudgetSchema)\n .optional(),\n })\n .transform(d => ({\n budget: d.budget,\n }));\n\nexport const marshalPrincipalOverrideSchema: z.ZodType = z\n .object({\n principalId: z.bigint().optional(),\n overrideThreshold: z.string().optional(),\n })\n .transform(d => ({\n principal_id: d.principalId,\n override_threshold: d.overrideThreshold,\n }));\n\nexport const marshalUpdateBudgetConfigurationBudgetSchema: z.ZodType = z\n .object({\n budgetConfigurationId: z.string().optional(),\n accountId: z.string().optional(),\n createTime: z.bigint().optional(),\n updateTime: z.bigint().optional(),\n alertConfigurations: z\n .array(z.lazy(() => marshalAlertConfigurationSchema))\n .optional(),\n filter: z.lazy(() => marshalBudgetConfigurationFilterSchema).optional(),\n displayName: z.string().optional(),\n resourceType: z.string().optional(),\n })\n .transform(d => ({\n budget_configuration_id: d.budgetConfigurationId,\n account_id: d.accountId,\n create_time: d.createTime,\n update_time: d.updateTime,\n alert_configurations: d.alertConfigurations,\n filter: d.filter,\n display_name: d.displayName,\n resource_type: d.resourceType,\n }));\n\nexport const marshalUpdateBudgetConfigurationRequestSchema: z.ZodType = z\n .object({\n budgetId: z.string().optional(),\n budget: z\n .lazy(() => marshalUpdateBudgetConfigurationBudgetSchema)\n .optional(),\n })\n .transform(d => ({\n budget_id: d.budgetId,\n budget: d.budget,\n }));\n"],"mappings":";;;;AAMA,MAAa,0BAA0B;CACrC,oBAAoB;CAKpB,aAAa;CACd;AAMD,MAAa,iCAAiC,EAC5C,wBAAwB,0BACzB;;AAOD,MAAa,8BAA8B;CAEzC,uCACE;CAEF,yCACE;CACH;AAMD,MAAa,+BAA+B,EAC1C,OAAO,SACR;AAMD,MAAa,gCAAgC,EAC3C,8BAA8B,gCAC/B;;;;;AAUD,MAAa,qBAAqB;CAEhC,oCAAoC;CAEpC,uCACE;CACH;AAMD,MAAa,qCAAqC,EAChD,IAAI,MACL;AA0MD,MAAa,qCACX,EACG,OAAO;CACN,yBAAyB,EAAE,QAAQ,CAAC,UAAU;CAC9C,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC9B,CAAC,CACD,WAAU,OAAM;CACf,uBAAuB,EAAE;CACzB,YAAY,EAAE;CACd,QAAQ,EAAE;CACX,EAAE;AAEP,MAAa,oCACX,EACG,OAAO;CACN,wBAAwB,EAAE,QAAQ,CAAC,UAAU;CAC7C,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,cAAc,EAAE,QAAQ,CAAC,UAAU;CACnC,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,oBAAoB,EAAE,QAAQ,CAAC,UAAU;CACzC,uBAAuB,EACpB,MAAM,EAAE,WAAW,mCAAmC,CAAC,CACvD,UAAU;CACb,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,qBAAqB,EAClB,MAAM,EAAE,WAAW,iCAAiC,CAAC,CACrD,UAAU;CACd,CAAC,CACD,WAAU,OAAM;CACf,sBAAsB,EAAE;CACxB,YAAY,EAAE;CACd,aAAa,EAAE;CACf,cAAc,EAAE;CAChB,mBAAmB,EAAE;CACrB,sBAAsB,EAAE;CACxB,W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MAAa,iCAA4C,EACtD,OAAO;CACN,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,mBAAmB,EAAE,QAAQ,CAAC,UAAU;CACzC,CAAC,CACD,WAAU,OAAM;CACf,cAAc,EAAE;CAChB,oBAAoB,EAAE;CACvB,EAAE;AAEL,MAAa,+CAA0D,EACpE,OAAO;CACN,uBAAuB,EAAE,QAAQ,CAAC,UAAU;CAC5C,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,YAAY,EAAE,QAAQ,CAAC,UAAU;CACjC,qBAAqB,EAClB,MAAM,EAAE,WAAW,gCAAgC,CAAC,CACpD,UAAU;CACb,QAAQ,EAAE,WAAW,uCAAuC,CAAC,UAAU;CACvE,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,cAAc,EAAE,QAAQ,CAAC,UAAU;CACpC,CAAC,CACD,WAAU,OAAM;CACf,yBAAyB,EAAE;CAC3B,YAAY,EAAE;CACd,aAAa,EAAE;CACf,aAAa,EAAE;CACf,sBAAsB,EAAE;CACxB,QAAQ,EAAE;CACV,cAAc,EAAE;CAChB,eAAe,EAAE;CAClB,EAAE;AAEL,MAAa,gDAA2D,EACrE,OAAO;CACN,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,QAAQ,EACL,WAAW,6CAA6C,CACxD,UAAU;CACd,CAAC,CACD,WAAU,OAAM;CACf,WAAW,EAAE;CACb,QAAQ,EAAE;CACX,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/** Type of action that a budget alert executes when its threshold is crossed. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ActionConfigurationType = {\n EMAIL_NOTIFICATION: 'EMAIL_NOTIFICATION',\n /**\n * Blocks further usage when the alert threshold is reached. Supported only on\n * AI Gateway budgets. No `target` is required for this action type.\n */\n BLOCK_USAGE: 'BLOCK_USAGE',\n} as const;\nexport type ActionConfigurationType =\n | (typeof ActionConfigurationType)[keyof typeof ActionConfigurationType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertConfigurationQuantityType = {\n LIST_PRICE_DOLLARS_USD: 'LIST_PRICE_DOLLARS_USD',\n} as const;\nexport type AlertConfigurationQuantityType =\n | (typeof AlertConfigurationQuantityType)[keyof typeof AlertConfigurationQuantityType]\n | (string & {});\n\n/** Evaluation scope for an alert configuration. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertConfigurationScopeType = {\n /** Alert evaluates aggregate spend across all users. */\n ALERT_CONFIGURATION_SCOPE_TYPE_SHARED:\n 'ALERT_CONFIGURATION_SCOPE_TYPE_SHARED',\n /** Alert evaluates spend per individual user identity. */\n ALERT_CONFIGURATION_SCOPE_TYPE_PER_USER:\n 'ALERT_CONFIGURATION_SCOPE_TYPE_PER_USER',\n} as const;\nexport type AlertConfigurationScopeType =\n | (typeof AlertConfigurationScopeType)[keyof typeof AlertConfigurationScopeType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertConfigurationTimePeriod = {\n MONTH: 'MONTH',\n} as const;\nexport type AlertConfigurationTimePeriod =\n | (typeof AlertConfigurationTimePeriod)[keyof typeof AlertConfigurationTimePeriod]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AlertConfigurationTriggerType = {\n CUMULATIVE_SPENDING_EXCEEDED: 'CUMULATIVE_SPENDING_EXCEEDED',\n} as const;\nexport type AlertConfigurationTriggerType =\n | (typeof AlertConfigurationTriggerType)[keyof typeof AlertConfigurationTriggerType]\n | (string & {});\n\n/**\n * Resource scope for a budget configuration. Determines whether the budget tracks all\n * resources or a specific resource.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const BudgetResourceType = {\n /** The budget applies to spending across all resources. */\n BUDGET_RESOURCE_TYPE_ALL_RESOURCES: 'BUDGET_RESOURCE_TYPE_ALL_RESOURCES',\n /** The budget applies only to Unity AI Gateway spending. */\n BUDGET_RESOURCE_TYPE_UNITY_AI_GATEWAY:\n 'BUDGET_RESOURCE_TYPE_UNITY_AI_GATEWAY',\n} as const;\nexport type BudgetResourceType =\n | (typeof BudgetResourceType)[keyof typeof BudgetResourceType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const BudgetConfigurationFilter_Operator = {\n IN: 'IN',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type BudgetConfigurationFilter_Operator =\n | (typeof BudgetConfigurationFilter_Operator)[keyof typeof BudgetConfigurationFilter_Operator]\n | (string & {});\n\nexport interface ActionConfiguration {\n /** <Databricks> action configuration ID. */\n actionConfigurationId?: string | undefined;\n /** The type of the action. */\n actionType?: ActionConfigurationType | undefined;\n /** Target for the action. For example, an email address. */\n target?: string | undefined;\n}\n\nexport interface AlertConfiguration {\n /** <Databricks> alert configuration ID. */\n alertConfigurationId?: string | undefined;\n /** The time window of usage data for the budget. */\n timePeriod?: AlertConfigurationTimePeriod | undefined;\n /** The evaluation method to determine when this budget alert is in a triggered state. */\n triggerType?: AlertConfigurationTriggerType | undefined;\n /** The way to calculate cost for this budget alert. This is what `quantity_threshold` is measured in. */\n quantityType?: AlertConfigurationQuantityType | undefined;\n /** The threshold for the budget alert to determine if it is in a triggered state. The number is evaluated based on `quantity_type`. */\n quantityThreshold?: string | undefined;\n /** Configured actions for this alert. These define what happens when an alert enters a triggered state. */\n actionConfigurations?: ActionConfiguration[] | undefined;\n /** How the alert threshold is evaluated. Determines whether spend is tracked in aggregate or per individual user. */\n scopeType?: AlertConfigurationScopeType | undefined;\n /** Per-principal threshold overrides for this alert. Only applies to per-user alerts (`scope_type` = `ALERT_CONFIGURATION_SCOPE_TYPE_PER_USER`); ignored for shared alerts. */\n principalOverrides?: PrincipalOverride[] | undefined;\n}\n\nexport interface BudgetConfiguration {\n /** <Databricks> budget configuration ID. */\n budgetConfigurationId?: string | undefined;\n /** <Databricks> account ID. */\n accountId?: string | undefined;\n /** Creation time of this budget configuration. */\n createTime?: bigint | undefined;\n /** Update time of this budget configuration. */\n updateTime?: bigint | undefined;\n /** Alerts to configure when this budget is in a triggered state. Budgets must have exactly one alert configuration. */\n alertConfigurations?: AlertConfiguration[] | undefined;\n /**\n * Configured filters for this budget. These are applied to your account's usage to limit the scope of what is considered for this budget.\n * Leave empty to include all usage for this account. All provided filters must be matched for usage to be included.\n */\n filter?: BudgetConfigurationFilter | undefined;\n /** Human-readable name of budget configuration. Max Length: 128 */\n displayName?: string | undefined;\n /** The resource scope for this budget. Determines whether the budget tracks all resources or a specific resource. */\n resourceType?: BudgetResourceType | undefined;\n}\n\nexport interface BudgetConfigurationFilter {\n /** If provided, usage must match with the provided <Databricks> workspace IDs. */\n workspaceId?: BudgetConfigurationFilter_WorkspaceIdClause | undefined;\n /**\n * A list of tag keys and values that will limit the budget to usage that includes those specific custom tags.\n * Tags are case-sensitive and should be entered exactly as they appear in your usage data.\n */\n tags?: BudgetConfigurationFilter_TagClause[] | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface BudgetConfigurationFilter_Clause {\n operator?: BudgetConfigurationFilter_Operator | undefined;\n values?: string[] | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface BudgetConfigurationFilter_TagClause {\n key?: string | undefined;\n value?: BudgetConfigurationFilter_Clause | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport interface BudgetConfigurationFilter_WorkspaceIdClause {\n operator?: BudgetConfigurationFilter_Operator | undefined;\n values?: bigint[] | undefined;\n}\n\nexport interface CreateBudgetConfigurationBudget {\n /** <Databricks> account ID. */\n accountId?: string | undefined;\n /** Alerts to configure when this budget is in a triggered state. Budgets must have exactly one alert configuration. */\n alertConfigurations?:\n | CreateBudgetConfigurationBudgetAlertConfigurations[]\n | undefined;\n /**\n * Configured filters for this budget. These are applied to your account's usage to limit the scope of what is considered for this budget.\n * Leave empty to include all usage for this account. All provided filters must be matched for usage to be included.\n */\n filter?: BudgetConfigurationFilter | undefined;\n /** Human-readable name of budget configuration. Max Length: 128 */\n displayName?: string | undefined;\n /** The resource scope for this budget. Determines whether the budget tracks all resources or a specific resource. */\n resourceType?: BudgetResourceType | undefined;\n}\n\nexport interface CreateBudgetConfigurationBudgetActionConfigurations {\n /** The type of the action. */\n actionType?: ActionConfigurationType | undefined;\n /** Target for the action. For example, an email address. */\n target?: string | undefined;\n}\n\nexport interface CreateBudgetConfigurationBudgetAlertConfigurations {\n /** The time window of usage data for the budget. */\n timePeriod?: AlertConfigurationTimePeriod | undefined;\n /** The evaluation method to determine when this budget alert is in a triggered state. */\n triggerType?: AlertConfigurationTriggerType | undefined;\n /** The way to calculate cost for this budget alert. This is what `quantity_threshold` is measured in. */\n quantityType?: AlertConfigurationQuantityType | undefined;\n /** The threshold for the budget alert to determine if it is in a triggered state. The number is evaluated based on `quantity_type`. */\n quantityThreshold?: string | undefined;\n /** Configured actions for this alert. These define what happens when an alert enters a triggered state. */\n actionConfigurations?:\n | CreateBudgetConfigurationBudgetActionConfigurations[]\n | undefined;\n /** How the alert threshold is evaluated. Determines whether spend is tracked in aggregate or per individual user. */\n scopeType?: AlertConfigurationScopeType | undefined;\n /** Per-principal threshold overrides for this alert. Only applies to per-user alerts (`scope_type` = `ALERT_CONFIGURATION_SCOPE_TYPE_PER_USER`); ignored for shared alerts. */\n principalOverrides?: PrincipalOverride[] | undefined;\n}\n\nexport interface CreateBudgetConfigurationRequest {\n /** Properties of the new budget configuration. */\n budget?: CreateBudgetConfigurationBudget | undefined;\n}\n\nexport interface CreateBudgetConfigurationResponse {\n /** The created budget configuration. */\n budget?: BudgetConfiguration | undefined;\n}\n\n/**\n * *\n * Delete budget\n */\nexport interface DeleteBudgetConfigurationRequest {\n /** The <Databricks> budget configuration ID. */\n budgetId?: string | undefined;\n /** <Databricks> account ID. */\n accountId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface DeleteBudgetConfigurationResponse {}\n\nexport interface GetBudgetConfigurationRequest {\n /** The budget configuration ID */\n budgetId?: string | undefined;\n /** <Databricks> account ID. */\n accountId?: string | undefined;\n}\n\nexport interface GetBudgetConfigurationResponse {\n budget?: BudgetConfiguration | undefined;\n}\n\nexport interface ListBudgetConfigurationsRequest {\n /** <Databricks> account ID. */\n accountId?: string | undefined;\n /**\n * A page token received from a previous get all budget configurations call. This token can be used to retrieve the subsequent page.\n * Requests first page if absent.\n */\n pageToken?: string | undefined;\n}\n\nexport interface ListBudgetConfigurationsResponse {\n budgets?: BudgetConfiguration[] | undefined;\n /** Token which can be sent as `page_token` to retrieve the next page of results. If this field is omitted, there are no subsequent budgets. */\n nextPageToken?: string | undefined;\n}\n\n/** Per-principal threshold override on a PER_USER alert: bumps the alert's quantity_threshold for one principal_id. */\nexport interface PrincipalOverride {\n /** Account-level principal id (user, group, or service principal). */\n principalId?: bigint | undefined;\n /** Dollar amount that overrides the parent alert's quantity_threshold for this principal. */\n overrideThreshold?: string | undefined;\n}\n\nexport interface UpdateBudgetConfigurationBudget {\n /** <Databricks> budget configuration ID. */\n budgetConfigurationId?: string | undefined;\n /** <Databricks> account ID. */\n accountId?: string | undefined;\n /** Alerts to configure when this budget is in a triggered state. Budgets must have exactly one alert configuration. */\n alertConfigurations?: AlertConfiguration[] | undefined;\n /**\n * Configured filters for this budget. These are applied to your account's usage to limit the scope of what is considered for this budget.\n * Leave empty to include all usage for this account. All provided filters must be matched for usage to be included.\n */\n filter?: BudgetConfigurationFilter | undefined;\n /** Human-readable name of budget configuration. Max Length: 128 */\n displayName?: string | undefined;\n /** The resource scope for this budget. Determines whether the budget tracks all resources or a specific resource. */\n resourceType?: BudgetResourceType | undefined;\n}\n\nexport interface UpdateBudgetConfigurationRequest {\n /** The <Databricks> budget configuration ID. */\n budgetId?: string | undefined;\n /** The updated budget. This will overwrite the budget specified by the budget ID. */\n budget?: UpdateBudgetConfigurationBudget | undefined;\n}\n\nexport interface UpdateBudgetConfigurationResponse {\n /** The updated budget. */\n budget?: BudgetConfiguration | undefined;\n}\n\nexport const unmarshalActionConfigurationSchema: z.ZodType<ActionConfiguration> =\n z\n .object({\n action_configuration_id: z.string().optional(),\n action_type: z.string().optional(),\n target: z.string().optional(),\n })\n .transform(d => ({\n actionConfigurationId: d.action_configuration_id,\n actionType: d.action_type,\n target: d.target,\n }));\n\nexport const unmarshalAlertConfigurationSchema: z.ZodType<AlertConfiguration> =\n z\n .object({\n alert_configuration_id: z.string().optional(),\n time_period: z.string().optional(),\n trigger_type: z.string().optional(),\n quantity_type: z.string().optional(),\n quantity_threshold: z.string().optional(),\n action_configurations: z\n .array(z.lazy(() => unmarshalActionConfigurationSchema))\n .optional(),\n scope_type: z.string().optional(),\n principal_overrides: z\n .array(z.lazy(() => unmarshalPrincipalOverrideSchema))\n .optional(),\n })\n .transform(d => ({\n alertConfigurationId: d.alert_configuration_id,\n timePeriod: d.time_period,\n triggerType: d.trigger_type,\n quantityType: d.quantity_type,\n quantityThreshold: d.quantity_threshold,\n actionConfigurations: d.action_configurations,\n scopeType: d.scope_type,\n principalOverrides: d.principal_overrides,\n }));\n\nexport const unmarshalBudgetConfigurationSchema: z.ZodType<BudgetConfiguration> =\n z\n .object({\n budget_configuration_id: z.string().optional(),\n account_id: z.string().optional(),\n create_time: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n update_time: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n alert_configurations: z\n .array(z.lazy(() => unmarshalAlertConfigurationSchema))\n .optional(),\n filter: z.lazy(() => unmarshalBudgetConfigurationFilterSchema).optional(),\n display_name: z.string().optional(),\n resource_type: z.string().optional(),\n })\n .transform(d => ({\n budgetConfigurationId: d.budget_configuration_id,\n accountId: d.account_id,\n createTime: d.create_time,\n updateTime: d.update_time,\n alertConfigurations: d.alert_configurations,\n filter: d.filter,\n displayName: d.display_name,\n resourceType: d.resource_type,\n }));\n\nexport const unmarshalBudgetConfigurationFilterSchema: z.ZodType<BudgetConfigurationFilter> =\n z\n .object({\n workspace_id: z\n .lazy(() => unmarshalBudgetConfigurationFilter_WorkspaceIdClauseSchema)\n .optional(),\n tags: z\n .array(z.lazy(() => unmarshalBudgetConfigurationFilter_TagClauseSchema))\n .optional(),\n })\n .transform(d => ({\n workspaceId: d.workspace_id,\n tags: d.tags,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalBudgetConfigurationFilter_ClauseSchema: z.ZodType<BudgetConfigurationFilter_Clause> =\n z\n .object({\n operator: z.string().optional(),\n values: z.array(z.string()).optional(),\n })\n .transform(d => ({\n operator: d.operator,\n values: d.values,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalBudgetConfigurationFilter_TagClauseSchema: z.ZodType<BudgetConfigurationFilter_TagClause> =\n z\n .object({\n key: z.string().optional(),\n value: z\n .lazy(() => unmarshalBudgetConfigurationFilter_ClauseSchema)\n .optional(),\n })\n .transform(d => ({\n key: d.key,\n value: d.value,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const unmarshalBudgetConfigurationFilter_WorkspaceIdClauseSchema: z.ZodType<BudgetConfigurationFilter_WorkspaceIdClause> =\n z\n .object({\n operator: z.string().optional(),\n values: z\n .array(\n z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n )\n .optional(),\n })\n .transform(d => ({\n operator: d.operator,\n values: d.values,\n }));\n\nexport const unmarshalCreateBudgetConfigurationResponseSchema: z.ZodType<CreateBudgetConfigurationResponse> =\n z\n .object({\n budget: z.lazy(() => unmarshalBudgetConfigurationSchema).optional(),\n })\n .transform(d => ({\n budget: d.budget,\n }));\n\nexport const unmarshalDeleteBudgetConfigurationResponseSchema: z.ZodType<DeleteBudgetConfigurationResponse> =\n z.object({});\n\nexport const unmarshalGetBudgetConfigurationResponseSchema: z.ZodType<GetBudgetConfigurationResponse> =\n z\n .object({\n budget: z.lazy(() => unmarshalBudgetConfigurationSchema).optional(),\n })\n .transform(d => ({\n budget: d.budget,\n }));\n\nexport const unmarshalListBudgetConfigurationsResponseSchema: z.ZodType<ListBudgetConfigurationsResponse> =\n z\n .object({\n budgets: z\n .array(z.lazy(() => unmarshalBudgetConfigurationSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n budgets: d.budgets,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalPrincipalOverrideSchema: z.ZodType<PrincipalOverride> = z\n .object({\n principal_id: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n override_threshold: z.string().optional(),\n })\n .transform(d => ({\n principalId: d.principal_id,\n overrideThreshold: d.override_threshold,\n }));\n\nexport const unmarshalUpdateBudgetConfigurationResponseSchema: z.ZodType<UpdateBudgetConfigurationResponse> =\n z\n .object({\n budget: z.lazy(() => unmarshalBudgetConfigurationSchema).optional(),\n })\n .transform(d => ({\n budget: d.budget,\n }));\n\nexport const marshalActionConfigurationSchema: z.ZodType = z\n .object({\n actionConfigurationId: z.string().optional(),\n actionType: z.string().optional(),\n target: z.string().optional(),\n })\n .transform(d => ({\n action_configuration_id: d.actionConfigurationId,\n action_type: d.actionType,\n target: d.target,\n }));\n\nexport const marshalAlertConfigurationSchema: z.ZodType = z\n .object({\n alertConfigurationId: z.string().optional(),\n timePeriod: z.string().optional(),\n triggerType: z.string().optional(),\n quantityType: z.string().optional(),\n quantityThreshold: z.string().optional(),\n actionConfigurations: z\n .array(z.lazy(() => marshalActionConfigurationSchema))\n .optional(),\n scopeType: z.string().optional(),\n principalOverrides: z\n .array(z.lazy(() => marshalPrincipalOverrideSchema))\n .optional(),\n })\n .transform(d => ({\n alert_configuration_id: d.alertConfigurationId,\n time_period: d.timePeriod,\n trigger_type: d.triggerType,\n quantity_type: d.quantityType,\n quantity_threshold: d.quantityThreshold,\n action_configurations: d.actionConfigurations,\n scope_type: d.scopeType,\n principal_overrides: d.principalOverrides,\n }));\n\nexport const marshalBudgetConfigurationFilterSchema: z.ZodType = z\n .object({\n workspaceId: z\n .lazy(() => marshalBudgetConfigurationFilter_WorkspaceIdClauseSchema)\n .optional(),\n tags: z\n .array(z.lazy(() => marshalBudgetConfigurationFilter_TagClauseSchema))\n .optional(),\n })\n .transform(d => ({\n workspace_id: d.workspaceId,\n tags: d.tags,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalBudgetConfigurationFilter_ClauseSchema: z.ZodType = z\n .object({\n operator: z.string().optional(),\n values: z.array(z.string()).optional(),\n })\n .transform(d => ({\n operator: d.operator,\n values: d.values,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalBudgetConfigurationFilter_TagClauseSchema: z.ZodType = z\n .object({\n key: z.string().optional(),\n value: z\n .lazy(() => marshalBudgetConfigurationFilter_ClauseSchema)\n .optional(),\n })\n .transform(d => ({\n key: d.key,\n value: d.value,\n }));\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.\nexport const marshalBudgetConfigurationFilter_WorkspaceIdClauseSchema: z.ZodType =\n z\n .object({\n operator: z.string().optional(),\n values: z.array(z.bigint()).optional(),\n })\n .transform(d => ({\n operator: d.operator,\n values: d.values,\n }));\n\nexport const marshalCreateBudgetConfigurationBudgetSchema: z.ZodType = z\n .object({\n accountId: z.string().optional(),\n alertConfigurations: z\n .array(\n z.lazy(\n () => marshalCreateBudgetConfigurationBudgetAlertConfigurationsSchema\n )\n )\n .optional(),\n filter: z.lazy(() => marshalBudgetConfigurationFilterSchema).optional(),\n displayName: z.string().optional(),\n resourceType: z.string().optional(),\n })\n .transform(d => ({\n account_id: d.accountId,\n alert_configurations: d.alertConfigurations,\n filter: d.filter,\n display_name: d.displayName,\n resource_type: d.resourceType,\n }));\n\nexport const marshalCreateBudgetConfigurationBudgetActionConfigurationsSchema: z.ZodType =\n z\n .object({\n actionType: z.string().optional(),\n target: z.string().optional(),\n })\n .transform(d => ({\n action_type: d.actionType,\n target: d.target,\n }));\n\nexport const marshalCreateBudgetConfigurationBudgetAlertConfigurationsSchema: z.ZodType =\n z\n .object({\n timePeriod: z.string().optional(),\n triggerType: z.string().optional(),\n quantityType: z.string().optional(),\n quantityThreshold: z.string().optional(),\n actionConfigurations: z\n .array(\n z.lazy(\n () =>\n marshalCreateBudgetConfigurationBudgetActionConfigurationsSchema\n )\n )\n .optional(),\n scopeType: z.string().optional(),\n principalOverrides: z\n .array(z.lazy(() => marshalPrincipalOverrideSchema))\n .optional(),\n })\n .transform(d => ({\n time_period: d.timePeriod,\n trigger_type: d.triggerType,\n quantity_type: d.quantityType,\n quantity_threshold: d.quantityThreshold,\n action_configurations: d.actionConfigurations,\n scope_type: d.scopeType,\n principal_overrides: d.principalOverrides,\n }));\n\nexport const marshalCreateBudgetConfigurationRequestSchema: z.ZodType = z\n .object({\n budget: z\n .lazy(() => marshalCreateBudgetConfigurationBudgetSchema)\n .optional(),\n })\n .transform(d => ({\n budget: d.budget,\n }));\n\nexport const marshalPrincipalOverrideSchema: z.ZodType = z\n .object({\n principalId: z.bigint().optional(),\n overrideThreshold: z.string().optional(),\n })\n .transform(d => ({\n principal_id: d.principalId,\n override_threshold: d.overrideThreshold,\n }));\n\nexport const marshalUpdateBudgetConfigurationBudgetSchema: z.ZodType = z\n .object({\n budgetConfigurationId: z.string().optional(),\n accountId: z.string().optional(),\n alertConfigurations: z\n .array(z.lazy(() => marshalAlertConfigurationSchema))\n .optional(),\n filter: z.lazy(() => marshalBudgetConfigurationFilterSchema).optional(),\n displayName: z.string().optional(),\n resourceType: z.string().optional(),\n })\n .transform(d => ({\n budget_configuration_id: d.budgetConfigurationId,\n account_id: d.accountId,\n alert_configurations: d.alertConfigurations,\n filter: d.filter,\n display_name: d.displayName,\n resource_type: d.resourceType,\n }));\n\nexport const marshalUpdateBudgetConfigurationRequestSchema: z.ZodType = z\n .object({\n budgetId: z.string().optional(),\n budget: z\n .lazy(() => marshalUpdateBudgetConfigurationBudgetSchema)\n .optional(),\n })\n .transform(d => ({\n budget_id: d.budgetId,\n budget: d.budget,\n }));\n"],"mappings":";;;;AAMA,MAAa,0BAA0B;CACrC,oBAAoB;CAKpB,aAAa;CACd;AAMD,MAAa,iCAAiC,EAC5C,wBAAwB,0BACzB;;AAOD,MAAa,8BAA8B;CAEzC,uCACE;CAEF,yCACE;CACH;AAMD,MAAa,+BAA+B,EAC1C,OAAO,SACR;AAMD,MAAa,gCAAgC,EAC3C,8BAA8B,gCAC/B;;;;;AAUD,MAAa,qBAAqB;CAEhC,oCAAoC;CAEpC,uCACE;CACH;AAMD,MAAa,qCAAqC,EAChD,IAAI,MACL;AAyND,MAAa,qCACX,EACG,OAAO;CACN,yBAAyB,EAAE,QAAQ,CAAC,UAAU;CAC9C,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC9B,CAAC,CACD,WAAU,OAAM;CACf,uBAAuB,EAAE;CACzB,YAAY,EAAE;CACd,QAAQ,EAAE;CACX,EAAE;AAEP,MAAa,oCACX,EACG,OAAO;CACN,wBAAwB,EAAE,QAAQ,CAAC,UAAU;CAC7C,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,cAAc,EAAE,QAAQ,CAAC,UAAU;CACnC,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,oBAAoB,EAAE,QAAQ,CAAC,UAAU;CACzC,uBAAuB,EACpB,MAAM,EAAE,WAAW,mCAAmC,CAAC,CACvD,UAAU;CACb,YAAY,EAAE,QAAQ,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AAM;CACf,yBAAyB,EAAE;CAC3B,YAAY,EAAE;CACd,sBAAsB,EAAE;CACxB,QAAQ,EAAE;CACV,cAAc,EAAE;CAChB,eAAe,EAAE;CAClB,EAAE;AAEL,MAAa,gDAA2D,EACrE,OAAO;CACN,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,QAAQ,EACL,WAAW,6CAA6C,CACxD,UAAU;CACd,CAAC,CACD,WAAU,OAAM;CACf,WAAW,EAAE;CACb,QAAQ,EAAE;CACX,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.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
+ {"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-budgets",
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/budgets"
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"