@databricks/sdk-budgets 0.39.0 → 0.41.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.39.0";
3
+ var version = "0.41.0";
4
4
 
5
5
  //#endregion
6
6
  export { name, version };
@@ -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,kCAAA,WACA,kCAAA,eAAiD,kCAAA;AAAA,UAG5C,mBAAA;;EAEf,qBAAA;EA/BuC;EAiCvC,UAAA,GAAa,uBAAA;EAhCH;EAkCV,MAAA;AAAA;AAAA,UAGe,kBAAA;;EAEf,oBAAA;;EAEA,UAAA,GAAa,4BAAA;EA1Be;EA4B5B,WAAA,GAAc,6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AA,CAAE,OAAA,CAAQ,yBAAA;AAAA,cAgBpD,+CAAA,EAAiD,CAAA,CAAE,OAAA,CAAQ,gCAAA;AAAA,cAY3D,kDAAA,EAAoD,CAAA,CAAE,OAAA,CAAQ,mCAAA;AAAA,cAc9D,0DAAA,EAA4D,CAAA,CAAE,OAAA,CAAQ,2CAAA;AAAA,cAiBtE,gDAAA,EAAkD,CAAA,CAAE,OAAA,CAAQ,iCAAA;AAAA,cAS5D,gDAAA,EAAkD,CAAA,CAAE,OAAA,CAAQ,iCAAA;AAAA,cAG5D,6CAAA,EAA+C,CAAA,CAAE,OAAA,CAAQ,8BAAA;AAAA,cASzD,+CAAA,EAAiD,CAAA,CAAE,OAAA,CAAQ,gCAAA;AAAA,cAa3D,gCAAA,EAAkC,CAAA,CAAE,OAAA,CAAQ,iBAAA;AAAA,cAa5C,gDAAA,EAAkD,CAAA,CAAE,OAAA,CAAQ,iCAAA;AAAA,cAS5D,gCAAA,EAAkC,CAAA,CAAE,OAAA;AAAA,cAYpC,+BAAA,EAAiC,CAAA,CAAE,OAAA;AAAA,cA0BnC,sCAAA,EAAwC,CAAA,CAAE,OAAA;AAAA,cAe1C,6CAAA,EAA+C,CAAA,CAAE,OAAA;AAAA,cAWjD,gDAAA,EAAkD,CAAA,CAAE,OAAA;AAAA,cAapD,wDAAA,EAA0D,CAAA,CAAE,OAAA;AAAA,cAW5D,4CAAA,EAA8C,CAAA,CAAE,OAAA;AAAA,cAwBhD,6CAAA,EAA+C,CAAA,CAAE,OAAA;AAAA,cAUjD,8BAAA,EAAgC,CAAA,CAAE,OAAA;AAAA,cAUlC,4CAAA,EAA8C,CAAA,CAAE,OAAA;AAAA,cAwBhD,6CAAA,EAA+C,CAAA,CAAE,OAAA"}
package/dist/v1/model.js CHANGED
@@ -54,8 +54,16 @@ const unmarshalAlertConfigurationSchema = z.object({
54
54
  const unmarshalBudgetConfigurationSchema = z.object({
55
55
  budget_configuration_id: z.string().optional(),
56
56
  account_id: z.string().optional(),
57
- create_time: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
58
- update_time: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
57
+ create_time: z.union([
58
+ z.number(),
59
+ z.bigint(),
60
+ z.string()
61
+ ]).transform((v) => BigInt(v)).optional(),
62
+ update_time: z.union([
63
+ z.number(),
64
+ z.bigint(),
65
+ z.string()
66
+ ]).transform((v) => BigInt(v)).optional(),
59
67
  alert_configurations: z.array(z.lazy(() => unmarshalAlertConfigurationSchema)).optional(),
60
68
  filter: z.lazy(() => unmarshalBudgetConfigurationFilterSchema).optional(),
61
69
  display_name: z.string().optional(),
@@ -93,7 +101,11 @@ const unmarshalBudgetConfigurationFilter_TagClauseSchema = z.object({
93
101
  }));
94
102
  const unmarshalBudgetConfigurationFilter_WorkspaceIdClauseSchema = z.object({
95
103
  operator: z.string().optional(),
96
- values: z.array(z.union([z.number(), z.bigint()]).transform((v) => BigInt(v))).optional()
104
+ values: z.array(z.union([
105
+ z.number(),
106
+ z.bigint(),
107
+ z.string()
108
+ ]).transform((v) => BigInt(v))).optional()
97
109
  }).transform((d) => ({
98
110
  operator: d.operator,
99
111
  values: d.values
@@ -109,7 +121,11 @@ const unmarshalListBudgetConfigurationsResponseSchema = z.object({
109
121
  nextPageToken: d.next_page_token
110
122
  }));
111
123
  const unmarshalPrincipalOverrideSchema = z.object({
112
- principal_id: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
124
+ principal_id: z.union([
125
+ z.number(),
126
+ z.bigint(),
127
+ z.string()
128
+ ]).transform((v) => BigInt(v)).optional(),
113
129
  override_threshold: z.string().optional()
114
130
  }).transform((d) => ({
115
131
  principalId: d.principal_id,
@@ -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()])\n .transform(v => BigInt(v))\n .optional(),\n update_time: z\n .union([z.number(), z.bigint()])\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(z.union([z.number(), z.bigint()]).transform(v => BigInt(v)))\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()])\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,QAA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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> 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":";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AAM;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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/sdk-budgets",
3
- "version": "0.39.0",
3
+ "version": "0.41.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.39.0 <1.0.0",
37
- "@databricks/sdk-core": ">=0.39.0 <1.0.0",
38
- "@databricks/sdk-options": ">=0.39.0 <1.0.0",
36
+ "@databricks/sdk-auth": ">=0.41.0 <1.0.0",
37
+ "@databricks/sdk-core": ">=0.41.0 <1.0.0",
38
+ "@databricks/sdk-options": ">=0.41.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"