@databricks/sdk-uc-workspacebindings 0.38.0 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.js CHANGED
@@ -1,6 +1,6 @@
1
1
  //#region package.json
2
2
  var name = "@databricks/sdk-uc-workspacebindings";
3
- var version = "0.38.0";
3
+ var version = "0.40.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,WAAA;EAAA;;;;KAKD,WAAA,WACA,WAAA,eAA0B,WAAA;AAAA,UAGrB,kCAAA;;EAEf,WAAA;AAAA;AAAA,UAGe,mCAAA;EATM;EAWrB,UAAA;AAAA;AAAA,UAGe,2BAAA;EAVA;EAYf,aAAA;;EAEA,iBAAA;EAZW;AAGb;;;;;AAKA;EAYE,UAAA;;EAEA,SAAA;AAAA;AAAA,UAGe,4BAAA;EALf;EAOA,QAAA,GAAW,oBAAA;EALF;;AAGX;;EAOE,aAAA;AAAA;AAAA,UAGe,qCAAA;EARJ;EAUX,WAAA;EALa;EAOb,gBAAA;EAJe;EAMf,kBAAA;AAAA;AAAA,UAGe,sCAAA;EAPf;EASA,UAAA;AAAA;AAAA,UAGe,8BAAA;EARG;EAUlB,aAAA;EAPqD;EASrD,iBAAA;EAPA;;AAGF;;;EAUE,GAAA,GAAM,oBAAA;EARN;EAUA,MAAA,GAAS,oBAAA;AAAA;;UAIM,+BAAA;EAJN;EAMT,QAAA,GAAW,oBAAA;AAAA;AAAA,UAGI,oBAAA;EAL+B;EAO9C,WAAA;EALA;EAOA,WAAA,GAAc,WAAA;AAAA;AAAA,cAGH,kDAAA,EAAoD,CAAA,CAAE,OAAA,CAAQ,mCAAA;AAAA,cAW9D,2CAAA,EAA6C,CAAA,CAAE,OAAA,CAAQ,4BAAA;AAAA,cAavD,qDAAA,EAAuD,CAAA,CAAE,OAAA,CAA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E,8CAAA,EAAgD,CAAA,CAAE,OAAA,CAAQ,+BAAA;AAAA,cAW1D,mCAAA,EAAqC,CAAA,CAAE,OAAA,CAAQ,oBAAA;AAAA,cAc/C,kDAAA,EAAoD,CAAA,CAAE,OAAA;AAAA,cAYtD,2CAAA,EAA6C,CAAA,CAAE,OAAA;AAAA,cAc/C,iCAAA,EAAmC,CAAA,CAAE,OAAA"}
package/dist/v1/model.js CHANGED
@@ -7,7 +7,11 @@ const BindingType = {
7
7
  BINDING_TYPE_READ_WRITE: "BINDING_TYPE_READ_WRITE",
8
8
  BINDING_TYPE_READ_ONLY: "BINDING_TYPE_READ_ONLY"
9
9
  };
10
- const unmarshalGetCatalogWorkspaceBindingsResponseSchema = z.object({ workspaces: z.array(z.union([z.number(), z.bigint()]).transform((v) => BigInt(v))).optional() }).transform((d) => ({ workspaces: d.workspaces }));
10
+ const unmarshalGetCatalogWorkspaceBindingsResponseSchema = z.object({ workspaces: z.array(z.union([
11
+ z.number(),
12
+ z.bigint(),
13
+ z.string()
14
+ ]).transform((v) => BigInt(v))).optional() }).transform((d) => ({ workspaces: d.workspaces }));
11
15
  const unmarshalGetWorkspaceBindingsResponseSchema = z.object({
12
16
  bindings: z.array(z.lazy(() => unmarshalWorkspaceBindingInfoSchema)).optional(),
13
17
  next_page_token: z.string().optional()
@@ -15,10 +19,18 @@ const unmarshalGetWorkspaceBindingsResponseSchema = z.object({
15
19
  bindings: d.bindings,
16
20
  nextPageToken: d.next_page_token
17
21
  }));
18
- const unmarshalUpdateCatalogWorkspaceBindingsResponseSchema = z.object({ workspaces: z.array(z.union([z.number(), z.bigint()]).transform((v) => BigInt(v))).optional() }).transform((d) => ({ workspaces: d.workspaces }));
22
+ const unmarshalUpdateCatalogWorkspaceBindingsResponseSchema = z.object({ workspaces: z.array(z.union([
23
+ z.number(),
24
+ z.bigint(),
25
+ z.string()
26
+ ]).transform((v) => BigInt(v))).optional() }).transform((d) => ({ workspaces: d.workspaces }));
19
27
  const unmarshalUpdateWorkspaceBindingsResponseSchema = z.object({ bindings: z.array(z.lazy(() => unmarshalWorkspaceBindingInfoSchema)).optional() }).transform((d) => ({ bindings: d.bindings }));
20
28
  const unmarshalWorkspaceBindingInfoSchema = z.object({
21
- workspace_id: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
29
+ workspace_id: z.union([
30
+ z.number(),
31
+ z.bigint(),
32
+ z.string()
33
+ ]).transform((v) => BigInt(v)).optional(),
22
34
  binding_type: z.string().optional()
23
35
  }).transform((d) => ({
24
36
  workspaceId: d.workspace_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/** Using `BINDING_TYPE_` prefix here to avoid conflict with `TableOperation` enum in `credentials_common.proto`. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const BindingType = {\n BINDING_TYPE_UNSPECIFIED: 'BINDING_TYPE_UNSPECIFIED',\n BINDING_TYPE_READ_WRITE: 'BINDING_TYPE_READ_WRITE',\n BINDING_TYPE_READ_ONLY: 'BINDING_TYPE_READ_ONLY',\n} as const;\nexport type BindingType =\n | (typeof BindingType)[keyof typeof BindingType]\n | (string & {});\n\nexport interface GetCatalogWorkspaceBindingsRequest {\n /** The name of the catalog. */\n catalogName?: string | undefined;\n}\n\nexport interface GetCatalogWorkspaceBindingsResponse {\n /** A list of workspace IDs */\n workspaces?: bigint[] | undefined;\n}\n\nexport interface GetWorkspaceBindingsRequest {\n /** The type of the securable to bind to a workspace (catalog, storage_credential, credential, or external_location). */\n securableType?: string | undefined;\n /** The name of the securable. */\n securableFullName?: string | undefined;\n /**\n * Maximum number of workspace bindings to return.\n * - When set to 0, the page length is set to a server configured value (recommended);\n * - When set to a value greater than 0, the page length is the minimum of this value and a server configured value;\n * - When set to a value less than 0, an invalid parameter error is returned;\n * - If not set, all the workspace bindings are returned (not recommended).\n */\n maxResults?: number | undefined;\n /** Opaque pagination token to go to next page based on previous query. */\n pageToken?: string | undefined;\n}\n\nexport interface GetWorkspaceBindingsResponse {\n /** List of workspace bindings */\n bindings?: WorkspaceBindingInfo[] | undefined;\n /**\n * Opaque token to retrieve the next page of results. Absent if there are no more pages.\n * __page_token__ should be set to this value for the next request (for the next page of results).\n */\n nextPageToken?: string | undefined;\n}\n\nexport interface UpdateCatalogWorkspaceBindingsRequest {\n /** The name of the catalog. */\n catalogName?: string | undefined;\n /** A list of workspace IDs. */\n assignWorkspaces?: bigint[] | undefined;\n /** A list of workspace IDs. */\n unassignWorkspaces?: bigint[] | undefined;\n}\n\nexport interface UpdateCatalogWorkspaceBindingsResponse {\n /** A list of workspace IDs */\n workspaces?: bigint[] | undefined;\n}\n\nexport interface UpdateWorkspaceBindingsRequest {\n /** The type of the securable to bind to a workspace (catalog, storage_credential, credential, or external_location). */\n securableType?: string | undefined;\n /** The name of the securable. */\n securableFullName?: string | undefined;\n /**\n * List of workspace bindings to add. If a binding for the workspace already exists with a\n * different binding_type, adding it again with a new binding_type will update the existing\n * binding (e.g., from READ_WRITE to READ_ONLY).\n */\n add?: WorkspaceBindingInfo[] | undefined;\n /** List of workspace bindings to remove. */\n remove?: WorkspaceBindingInfo[] | undefined;\n}\n\n/** A list of workspace IDs that are bound to the securable */\nexport interface UpdateWorkspaceBindingsResponse {\n /** List of workspace bindings. */\n bindings?: WorkspaceBindingInfo[] | undefined;\n}\n\nexport interface WorkspaceBindingInfo {\n /** Required */\n workspaceId?: bigint | undefined;\n /** One of READ_WRITE/READ_ONLY. Default is READ_WRITE. */\n bindingType?: BindingType | undefined;\n}\n\nexport const unmarshalGetCatalogWorkspaceBindingsResponseSchema: z.ZodType<GetCatalogWorkspaceBindingsResponse> =\n z\n .object({\n workspaces: z\n .array(z.union([z.number(), z.bigint()]).transform(v => BigInt(v)))\n .optional(),\n })\n .transform(d => ({\n workspaces: d.workspaces,\n }));\n\nexport const unmarshalGetWorkspaceBindingsResponseSchema: z.ZodType<GetWorkspaceBindingsResponse> =\n z\n .object({\n bindings: z\n .array(z.lazy(() => unmarshalWorkspaceBindingInfoSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n bindings: d.bindings,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalUpdateCatalogWorkspaceBindingsResponseSchema: z.ZodType<UpdateCatalogWorkspaceBindingsResponse> =\n z\n .object({\n workspaces: z\n .array(z.union([z.number(), z.bigint()]).transform(v => BigInt(v)))\n .optional(),\n })\n .transform(d => ({\n workspaces: d.workspaces,\n }));\n\nexport const unmarshalUpdateWorkspaceBindingsResponseSchema: z.ZodType<UpdateWorkspaceBindingsResponse> =\n z\n .object({\n bindings: z\n .array(z.lazy(() => unmarshalWorkspaceBindingInfoSchema))\n .optional(),\n })\n .transform(d => ({\n bindings: d.bindings,\n }));\n\nexport const unmarshalWorkspaceBindingInfoSchema: z.ZodType<WorkspaceBindingInfo> =\n z\n .object({\n workspace_id: z\n .union([z.number(), z.bigint()])\n .transform(v => BigInt(v))\n .optional(),\n binding_type: z.string().optional(),\n })\n .transform(d => ({\n workspaceId: d.workspace_id,\n bindingType: d.binding_type,\n }));\n\nexport const marshalUpdateCatalogWorkspaceBindingsRequestSchema: z.ZodType = z\n .object({\n catalogName: z.string().optional(),\n assignWorkspaces: z.array(z.bigint()).optional(),\n unassignWorkspaces: z.array(z.bigint()).optional(),\n })\n .transform(d => ({\n catalog_name: d.catalogName,\n assign_workspaces: d.assignWorkspaces,\n unassign_workspaces: d.unassignWorkspaces,\n }));\n\nexport const marshalUpdateWorkspaceBindingsRequestSchema: z.ZodType = z\n .object({\n securableType: z.string().optional(),\n securableFullName: z.string().optional(),\n add: z.array(z.lazy(() => marshalWorkspaceBindingInfoSchema)).optional(),\n remove: z.array(z.lazy(() => marshalWorkspaceBindingInfoSchema)).optional(),\n })\n .transform(d => ({\n securable_type: d.securableType,\n securable_full_name: d.securableFullName,\n add: d.add,\n remove: d.remove,\n }));\n\nexport const marshalWorkspaceBindingInfoSchema: z.ZodType = z\n .object({\n workspaceId: z.bigint().optional(),\n bindingType: z.string().optional(),\n })\n .transform(d => ({\n workspace_id: d.workspaceId,\n binding_type: d.bindingType,\n }));\n"],"mappings":";;;;AAMA,MAAa,cAAc;CACzB,0BAA0B;CAC1B,yBAAyB;CACzB,wBAAwB;CACzB;AAoFD,MAAa,qDACX,EACG,OAAO,EACN,YAAY,EACT,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC,WAAU,MAAK,OAAO,EAAE,CAAC,CAAC,CAClE,UAAU,EACd,CAAC,CACD,WAAU,OAAM,EACf,YAAY,EAAE,YACf,EAAE;AAEP,MAAa,8CACX,EACG,OAAO;CACN,UAAU,EACP,MAAM,EAAE,WAAW,oCAAoC,CAAC,CACxD,UAAU;CACb,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACvC,CAAC,CACD,WAAU,OAAM;CACf,UAAU,EAAE;CACZ,eAAe,EAAE;CAClB,EAAE;AAEP,MAAa,wDACX,EACG,OAAO,EACN,YAAY,EACT,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC,WAAU,MAAK,OAAO,EAAE,CAAC,CAAC,CAClE,UAAU,EACd,CAAC,CACD,WAAU,OAAM,EACf,YAAY,EAAE,YACf,EAAE;AAEP,MAAa,iDACX,EACG,OAAO,EACN,UAAU,EACP,MAAM,EAAE,WAAW,oCAAoC,CAAC,CACxD,UAAU,EACd,CAAC,CACD,WAAU,OAAM,EACf,UAAU,EAAE,UACb,EAAE;AAEP,MAAa,sCACX,EACG,OAAO;CACN,cAAc,EACX,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,CAC/B,WAAU,MAAK,OAAO,EAAE,CAAC,CACzB,UAAU;CACb,cAAc,EAAE,QAAQ,CAAC,UAAU;CACpC,CAAC,CACD,WAAU,OAAM;CACf,aAAa,EAAE;CACf,aAAa,EAAE;CAChB,EAAE;AAEP,MAAa,qDAAgE,EAC1E,OAAO;CACN,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,kBAAkB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU;CAChD,oBAAoB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU;CACnD,CAAC,CACD,WAAU,OAAM;CACf,cAAc,EAAE;CAChB,mBAAmB,EAAE;CACrB,qBAAqB,EAAE;CACxB,EAAE;AAEL,MAAa,8CAAyD,EACnE,OAAO;CACN,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,mBAAmB,EAAE,QAAQ,CAAC,UAAU;CACxC,KAAK,EAAE,MAAM,EAAE,WAAW,kCAAkC,CAAC,CAAC,UAAU;CACxE,QAAQ,EAAE,MAAM,EAAE,WAAW,kCAAkC,CAAC,CAAC,UAAU;CAC5E,CAAC,CACD,WAAU,OAAM;CACf,gBAAgB,EAAE;CAClB,qBAAqB,EAAE;CACvB,KAAK,EAAE;CACP,QAAQ,EAAE;CACX,EAAE;AAEL,MAAa,oCAA+C,EACzD,OAAO;CACN,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,aAAa,EAAE,QAAQ,CAAC,UAAU;CACnC,CAAC,CACD,WAAU,OAAM;CACf,cAAc,EAAE;CAChB,cAAc,EAAE;CACjB,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/** Using `BINDING_TYPE_` prefix here to avoid conflict with `TableOperation` enum in `credentials_common.proto`. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const BindingType = {\n BINDING_TYPE_UNSPECIFIED: 'BINDING_TYPE_UNSPECIFIED',\n BINDING_TYPE_READ_WRITE: 'BINDING_TYPE_READ_WRITE',\n BINDING_TYPE_READ_ONLY: 'BINDING_TYPE_READ_ONLY',\n} as const;\nexport type BindingType =\n | (typeof BindingType)[keyof typeof BindingType]\n | (string & {});\n\nexport interface GetCatalogWorkspaceBindingsRequest {\n /** The name of the catalog. */\n catalogName?: string | undefined;\n}\n\nexport interface GetCatalogWorkspaceBindingsResponse {\n /** A list of workspace IDs */\n workspaces?: bigint[] | undefined;\n}\n\nexport interface GetWorkspaceBindingsRequest {\n /** The type of the securable to bind to a workspace (catalog, storage_credential, credential, or external_location). */\n securableType?: string | undefined;\n /** The name of the securable. */\n securableFullName?: string | undefined;\n /**\n * Maximum number of workspace bindings to return.\n * - When set to 0, the page length is set to a server configured value (recommended);\n * - When set to a value greater than 0, the page length is the minimum of this value and a server configured value;\n * - When set to a value less than 0, an invalid parameter error is returned;\n * - If not set, all the workspace bindings are returned (not recommended).\n */\n maxResults?: number | undefined;\n /** Opaque pagination token to go to next page based on previous query. */\n pageToken?: string | undefined;\n}\n\nexport interface GetWorkspaceBindingsResponse {\n /** List of workspace bindings */\n bindings?: WorkspaceBindingInfo[] | undefined;\n /**\n * Opaque token to retrieve the next page of results. Absent if there are no more pages.\n * __page_token__ should be set to this value for the next request (for the next page of results).\n */\n nextPageToken?: string | undefined;\n}\n\nexport interface UpdateCatalogWorkspaceBindingsRequest {\n /** The name of the catalog. */\n catalogName?: string | undefined;\n /** A list of workspace IDs. */\n assignWorkspaces?: bigint[] | undefined;\n /** A list of workspace IDs. */\n unassignWorkspaces?: bigint[] | undefined;\n}\n\nexport interface UpdateCatalogWorkspaceBindingsResponse {\n /** A list of workspace IDs */\n workspaces?: bigint[] | undefined;\n}\n\nexport interface UpdateWorkspaceBindingsRequest {\n /** The type of the securable to bind to a workspace (catalog, storage_credential, credential, or external_location). */\n securableType?: string | undefined;\n /** The name of the securable. */\n securableFullName?: string | undefined;\n /**\n * List of workspace bindings to add. If a binding for the workspace already exists with a\n * different binding_type, adding it again with a new binding_type will update the existing\n * binding (e.g., from READ_WRITE to READ_ONLY).\n */\n add?: WorkspaceBindingInfo[] | undefined;\n /** List of workspace bindings to remove. */\n remove?: WorkspaceBindingInfo[] | undefined;\n}\n\n/** A list of workspace IDs that are bound to the securable */\nexport interface UpdateWorkspaceBindingsResponse {\n /** List of workspace bindings. */\n bindings?: WorkspaceBindingInfo[] | undefined;\n}\n\nexport interface WorkspaceBindingInfo {\n /** Required */\n workspaceId?: bigint | undefined;\n /** One of READ_WRITE/READ_ONLY. Default is READ_WRITE. */\n bindingType?: BindingType | undefined;\n}\n\nexport const unmarshalGetCatalogWorkspaceBindingsResponseSchema: z.ZodType<GetCatalogWorkspaceBindingsResponse> =\n z\n .object({\n workspaces: 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 workspaces: d.workspaces,\n }));\n\nexport const unmarshalGetWorkspaceBindingsResponseSchema: z.ZodType<GetWorkspaceBindingsResponse> =\n z\n .object({\n bindings: z\n .array(z.lazy(() => unmarshalWorkspaceBindingInfoSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n bindings: d.bindings,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalUpdateCatalogWorkspaceBindingsResponseSchema: z.ZodType<UpdateCatalogWorkspaceBindingsResponse> =\n z\n .object({\n workspaces: 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 workspaces: d.workspaces,\n }));\n\nexport const unmarshalUpdateWorkspaceBindingsResponseSchema: z.ZodType<UpdateWorkspaceBindingsResponse> =\n z\n .object({\n bindings: z\n .array(z.lazy(() => unmarshalWorkspaceBindingInfoSchema))\n .optional(),\n })\n .transform(d => ({\n bindings: d.bindings,\n }));\n\nexport const unmarshalWorkspaceBindingInfoSchema: z.ZodType<WorkspaceBindingInfo> =\n z\n .object({\n workspace_id: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n binding_type: z.string().optional(),\n })\n .transform(d => ({\n workspaceId: d.workspace_id,\n bindingType: d.binding_type,\n }));\n\nexport const marshalUpdateCatalogWorkspaceBindingsRequestSchema: z.ZodType = z\n .object({\n catalogName: z.string().optional(),\n assignWorkspaces: z.array(z.bigint()).optional(),\n unassignWorkspaces: z.array(z.bigint()).optional(),\n })\n .transform(d => ({\n catalog_name: d.catalogName,\n assign_workspaces: d.assignWorkspaces,\n unassign_workspaces: d.unassignWorkspaces,\n }));\n\nexport const marshalUpdateWorkspaceBindingsRequestSchema: z.ZodType = z\n .object({\n securableType: z.string().optional(),\n securableFullName: z.string().optional(),\n add: z.array(z.lazy(() => marshalWorkspaceBindingInfoSchema)).optional(),\n remove: z.array(z.lazy(() => marshalWorkspaceBindingInfoSchema)).optional(),\n })\n .transform(d => ({\n securable_type: d.securableType,\n securable_full_name: d.securableFullName,\n add: d.add,\n remove: d.remove,\n }));\n\nexport const marshalWorkspaceBindingInfoSchema: z.ZodType = z\n .object({\n workspaceId: z.bigint().optional(),\n bindingType: z.string().optional(),\n })\n .transform(d => ({\n workspace_id: d.workspaceId,\n binding_type: d.bindingType,\n }));\n"],"mappings":";;;;AAMA,MAAa,cAAc;CACzB,0BAA0B;CAC1B,yBAAyB;CACzB,wBAAwB;CACzB;AAoFD,MAAa,qDACX,EACG,OAAO,EACN,YAAY,EACT,MACC,EACG,MAAM;CAAC,EAAE,QAAQ;CAAE,EAAE,QAAQ;CAAE,EAAE,QAAQ;CAAC,CAAC,CAC3C,WAAU,MAAK,OAAO,EAAE,CAAC,CAC7B,CACA,UAAU,EACd,CAAC,CACD,WAAU,OAAM,EACf,YAAY,EAAE,YACf,EAAE;AAEP,MAAa,8CACX,EACG,OAAO;CACN,UAAU,EACP,MAAM,EAAE,WAAW,oCAAoC,CAAC,CACxD,UAAU;CACb,iBAAiB,EAAE,QAAQ,CAAC,UAAU;CACvC,CAAC,CACD,WAAU,OAAM;CACf,UAAU,EAAE;CACZ,eAAe,EAAE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gBAAgB,EAAE;CAClB,qBAAqB,EAAE;CACvB,KAAK,EAAE;CACP,QAAQ,EAAE;CACX,EAAE;AAEL,MAAa,oCAA+C,EACzD,OAAO;CACN,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,aAAa,EAAE,QAAQ,CAAC,UAAU;CACnC,CAAC,CACD,WAAU,OAAM;CACf,cAAc,EAAE;CAChB,cAAc,EAAE;CACjB,EAAE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/sdk-uc-workspacebindings",
3
- "version": "0.38.0",
3
+ "version": "0.40.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -33,9 +33,9 @@
33
33
  "directory": "packages/uc/workspacebindings"
34
34
  },
35
35
  "dependencies": {
36
- "@databricks/sdk-auth": ">=0.38.0 <1.0.0",
37
- "@databricks/sdk-core": ">=0.38.0 <1.0.0",
38
- "@databricks/sdk-options": ">=0.38.0 <1.0.0",
36
+ "@databricks/sdk-auth": ">=0.40.0 <1.0.0",
37
+ "@databricks/sdk-core": ">=0.40.0 <1.0.0",
38
+ "@databricks/sdk-options": ">=0.40.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"