@databricks/sdk-tokens 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 +1 -1
- package/dist/v1/model.js +10 -2
- package/dist/v1/model.js.map +1 -1
- package/package.json +4 -4
package/dist/package.js
CHANGED
package/dist/v1/model.js
CHANGED
|
@@ -27,8 +27,16 @@ const unmarshalCreateTokenResponseSchema = z.object({
|
|
|
27
27
|
const unmarshalListTokensResponseSchema = z.object({ token_infos: z.array(z.lazy(() => unmarshalPublicTokenInfoSchema)).optional() }).transform((d) => ({ tokenInfos: d.token_infos }));
|
|
28
28
|
const unmarshalPublicTokenInfoSchema = z.object({
|
|
29
29
|
token_id: z.string().optional(),
|
|
30
|
-
creation_time: z.union([
|
|
31
|
-
|
|
30
|
+
creation_time: z.union([
|
|
31
|
+
z.number(),
|
|
32
|
+
z.bigint(),
|
|
33
|
+
z.string()
|
|
34
|
+
]).transform((v) => BigInt(v)).optional(),
|
|
35
|
+
expiry_time: z.union([
|
|
36
|
+
z.number(),
|
|
37
|
+
z.bigint(),
|
|
38
|
+
z.string()
|
|
39
|
+
]).transform((v) => BigInt(v)).optional(),
|
|
32
40
|
comment: z.string().optional(),
|
|
33
41
|
scopes: z.array(z.string()).optional(),
|
|
34
42
|
autoscope_state: z.string().optional(),
|
package/dist/v1/model.js.map
CHANGED
|
@@ -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 {FieldMask} from '@databricks/sdk-core/wkt';\nimport type {FieldMaskSchema} from '@databricks/sdk-core/wkt';\nimport {z} from 'zod';\n\n/**\n * State of inferred scope collection (autoscope) for an external PAT.\n * Mirrored in databricks.identity.AutoscopeState in common/principal-context/api/proto/tokendetails.proto.\n * Token store and token management proto can depend on this.\n * Principal context proto should NOT depend on this proto definitions because too many services depend on the principal context proto.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AutoscopeState = {\n AUTOSCOPE_STATE_UNSPECIFIED: 'AUTOSCOPE_STATE_UNSPECIFIED',\n AUTOSCOPE_STATE_DISABLED: 'AUTOSCOPE_STATE_DISABLED',\n AUTOSCOPE_STATE_RUNNING: 'AUTOSCOPE_STATE_RUNNING',\n AUTOSCOPE_STATE_COMPLETED: 'AUTOSCOPE_STATE_COMPLETED',\n AUTOSCOPE_STATE_BACKFILLED: 'AUTOSCOPE_STATE_BACKFILLED',\n AUTOSCOPE_STATE_USER_SELECTED: 'AUTOSCOPE_STATE_USER_SELECTED',\n AUTOSCOPE_STATE_API_NOT_COVERED: 'AUTOSCOPE_STATE_API_NOT_COVERED',\n} as const;\nexport type AutoscopeState =\n | (typeof AutoscopeState)[keyof typeof AutoscopeState]\n | (string & {});\n\nexport interface CreateTokenRequest {\n /**\n * The lifetime of the token, in seconds.\n *\n * If the lifetime is not specified, this token remains valid for 2 years.\n */\n lifetimeSeconds?: bigint | undefined;\n /** Optional description to attach to the token. */\n comment?: string | undefined;\n /** Optional scopes of the token. */\n scopes?: string[] | undefined;\n /**\n * Whether to enable autoscoping for this token. When true, the token will\n * automatically collect inferred API path scopes as it is used.\n */\n autoscopeEnabled?: boolean | undefined;\n}\n\nexport interface CreateTokenResponse {\n /** The value of the new token. */\n tokenValue?: string | undefined;\n /** The information for the new token. */\n tokenInfo?: PublicTokenInfo | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface ListTokensRequest {}\n\nexport interface ListTokensResponse {\n /** The information for each token. */\n tokenInfos?: PublicTokenInfo[] | undefined;\n}\n\nexport interface PublicTokenInfo {\n /** The ID of this token. */\n tokenId?: string | undefined;\n /** Server time (in epoch milliseconds) when the token was created. */\n creationTime?: bigint | undefined;\n /** Server time (in epoch milliseconds) when the token will expire, or -1 if not applicable. */\n expiryTime?: bigint | undefined;\n /** Comment the token was created with, if applicable. */\n comment?: string | undefined;\n /** Scope of the token was created with, if applicable. */\n scopes?: string[] | undefined;\n /** Output only. The autoscope state of this token. */\n autoscopeState?: AutoscopeState | undefined;\n /** Output only. Inferred API path scopes collected for this token when autoscope is enabled. */\n inferredScopes?: string[] | undefined;\n /** Output only. Scopes inferred from offline backfill processing. */\n backfillScopes?: string[] | undefined;\n}\n\nexport interface RevokeTokenRequest {\n /** The ID of the token to be revoked. */\n tokenId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface RevokeTokenResponse {}\n\n/**\n * For the list of supported token scopes, see\n * https://docs.databricks.com/api/workspace/api/scopes.\n */\nexport interface UpdateTokenRequest {\n /** The SHA-256 hash of the token to be updated. */\n tokenId?: string | undefined;\n token?: PublicTokenInfo | undefined;\n /** A list of field name under token, For example, {\"update_mask\": \"comment,scopes\"} */\n updateMask?: FieldMask<PublicTokenInfo> | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface UpdateTokenResponse {}\n\nexport const unmarshalCreateTokenResponseSchema: z.ZodType<CreateTokenResponse> =\n z\n .object({\n token_value: z.string().optional(),\n token_info: z.lazy(() => unmarshalPublicTokenInfoSchema).optional(),\n })\n .transform(d => ({\n tokenValue: d.token_value,\n tokenInfo: d.token_info,\n }));\n\nexport const unmarshalListTokensResponseSchema: z.ZodType<ListTokensResponse> =\n z\n .object({\n token_infos: z\n .array(z.lazy(() => unmarshalPublicTokenInfoSchema))\n .optional(),\n })\n .transform(d => ({\n tokenInfos: d.token_infos,\n }));\n\nexport const unmarshalPublicTokenInfoSchema: z.ZodType<PublicTokenInfo> = z\n .object({\n token_id: z.string().optional(),\n creation_time: z\n .union([z.number(), z.bigint()])\n .transform(v => BigInt(v))\n .optional(),\n expiry_time: z\n .union([z.number(), z.bigint()])\n .transform(v => BigInt(v))\n .optional(),\n comment: z.string().optional(),\n scopes: z.array(z.string()).optional(),\n autoscope_state: z.string().optional(),\n inferred_scopes: z.array(z.string()).optional(),\n backfill_scopes: z.array(z.string()).optional(),\n })\n .transform(d => ({\n tokenId: d.token_id,\n creationTime: d.creation_time,\n expiryTime: d.expiry_time,\n comment: d.comment,\n scopes: d.scopes,\n autoscopeState: d.autoscope_state,\n inferredScopes: d.inferred_scopes,\n backfillScopes: d.backfill_scopes,\n }));\n\nexport const unmarshalRevokeTokenResponseSchema: z.ZodType<RevokeTokenResponse> =\n z.object({});\n\nexport const unmarshalUpdateTokenResponseSchema: z.ZodType<UpdateTokenResponse> =\n z.object({});\n\nexport const marshalCreateTokenRequestSchema: z.ZodType = z\n .object({\n lifetimeSeconds: z.bigint().optional(),\n comment: z.string().optional(),\n scopes: z.array(z.string()).optional(),\n autoscopeEnabled: z.boolean().optional(),\n })\n .transform(d => ({\n lifetime_seconds: d.lifetimeSeconds,\n comment: d.comment,\n scopes: d.scopes,\n autoscope_enabled: d.autoscopeEnabled,\n }));\n\nexport const marshalPublicTokenInfoSchema: z.ZodType = z\n .object({\n tokenId: z.string().optional(),\n creationTime: z.bigint().optional(),\n expiryTime: z.bigint().optional(),\n comment: z.string().optional(),\n scopes: z.array(z.string()).optional(),\n autoscopeState: z.string().optional(),\n inferredScopes: z.array(z.string()).optional(),\n backfillScopes: z.array(z.string()).optional(),\n })\n .transform(d => ({\n token_id: d.tokenId,\n creation_time: d.creationTime,\n expiry_time: d.expiryTime,\n comment: d.comment,\n scopes: d.scopes,\n autoscope_state: d.autoscopeState,\n inferred_scopes: d.inferredScopes,\n backfill_scopes: d.backfillScopes,\n }));\n\nexport const marshalRevokeTokenRequestSchema: z.ZodType = z\n .object({\n tokenId: z.string().optional(),\n })\n .transform(d => ({\n token_id: d.tokenId,\n }));\n\nexport const marshalUpdateTokenRequestSchema: z.ZodType = z\n .object({\n tokenId: z.string().optional(),\n token: z.lazy(() => marshalPublicTokenInfoSchema).optional(),\n updateMask: z\n .any()\n .transform((m: FieldMask) => m.toString())\n .optional(),\n })\n .transform(d => ({\n token_id: d.tokenId,\n token: d.token,\n update_mask: d.updateMask,\n }));\n\nconst publicTokenInfoFieldMaskSchema: FieldMaskSchema = {\n autoscopeState: {wire: 'autoscope_state'},\n backfillScopes: {wire: 'backfill_scopes'},\n comment: {wire: 'comment'},\n creationTime: {wire: 'creation_time'},\n expiryTime: {wire: 'expiry_time'},\n inferredScopes: {wire: 'inferred_scopes'},\n scopes: {wire: 'scopes'},\n tokenId: {wire: 'token_id'},\n};\n\nexport function publicTokenInfoFieldMask(\n ...paths: string[]\n): FieldMask<PublicTokenInfo> {\n return FieldMask.build<PublicTokenInfo>(\n paths,\n publicTokenInfoFieldMaskSchema\n );\n}\n"],"mappings":";;;;;;;;;;AAaA,MAAa,iBAAiB;CAC5B,6BAA6B;CAC7B,0BAA0B;CAC1B,yBAAyB;CACzB,2BAA2B;CAC3B,4BAA4B;CAC5B,+BAA+B;CAC/B,iCAAiC;CAClC;AAgFD,MAAa,qCACX,EACG,OAAO;CACN,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,YAAY,EAAE,WAAW,+BAA+B,CAAC,UAAU;CACpE,CAAC,CACD,WAAU,OAAM;CACf,YAAY,EAAE;CACd,WAAW,EAAE;CACd,EAAE;AAEP,MAAa,oCACX,EACG,OAAO,EACN,aAAa,EACV,MAAM,EAAE,WAAW,+BAA+B,CAAC,CACnD,UAAU,EACd,CAAC,CACD,WAAU,OAAM,EACf,YAAY,EAAE,aACf,EAAE;AAEP,MAAa,iCAA6D,EACvE,OAAO;CACN,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,eAAe,EACZ,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,CAC/B,WAAU,MAAK,OAAO,EAAE,CAAC,CACzB,UAAU;CACb,aAAa,EACV,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC,CAC/B,WAAU,MAAK,OAAO,EAAE,CAAC,CACzB,UAAU;CACb,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC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,UAAU,EAAE;CACZ,eAAe,EAAE;CACjB,aAAa,EAAE;CACf,SAAS,EAAE;CACX,QAAQ,EAAE;CACV,iBAAiB,EAAE;CACnB,iBAAiB,EAAE;CACnB,iBAAiB,EAAE;CACpB,EAAE;AAEL,MAAa,kCAA6C,EACvD,OAAO,EACN,SAAS,EAAE,QAAQ,CAAC,UAAU,EAC/B,CAAC,CACD,WAAU,OAAM,EACf,UAAU,EAAE,SACb,EAAE;AAEL,MAAa,kCAA6C,EACvD,OAAO;CACN,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,OAAO,EAAE,WAAW,6BAA6B,CAAC,UAAU;CAC5D,YAAY,EACT,KAAK,CACL,WAAW,MAAiB,EAAE,UAAU,CAAC,CACzC,UAAU;CACd,CAAC,CACD,WAAU,OAAM;CACf,UAAU,EAAE;CACZ,OAAO,EAAE;CACT,aAAa,EAAE;CAChB,EAAE;AAEL,MAAM,iCAAkD;CACtD,gBAAgB,EAAC,MAAM,mBAAkB;CACzC,gBAAgB,EAAC,MAAM,mBAAkB;CACzC,SAAS,EAAC,MAAM,WAAU;CAC1B,cAAc,EAAC,MAAM,iBAAgB;CACrC,YAAY,EAAC,MAAM,eAAc;CACjC,gBAAgB,EAAC,MAAM,mBAAkB;CACzC,QAAQ,EAAC,MAAM,UAAS;CACxB,SAAS,EAAC,MAAM,YAAW;CAC5B;AAED,SAAgB,yBACd,GAAG,OACyB;AAC5B,QAAO,UAAU,MACf,OACA,+BACD"}
|
|
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 {FieldMask} from '@databricks/sdk-core/wkt';\nimport type {FieldMaskSchema} from '@databricks/sdk-core/wkt';\nimport {z} from 'zod';\n\n/**\n * State of inferred scope collection (autoscope) for an external PAT.\n * Mirrored in databricks.identity.AutoscopeState in common/principal-context/api/proto/tokendetails.proto.\n * Token store and token management proto can depend on this.\n * Principal context proto should NOT depend on this proto definitions because too many services depend on the principal context proto.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const AutoscopeState = {\n AUTOSCOPE_STATE_UNSPECIFIED: 'AUTOSCOPE_STATE_UNSPECIFIED',\n AUTOSCOPE_STATE_DISABLED: 'AUTOSCOPE_STATE_DISABLED',\n AUTOSCOPE_STATE_RUNNING: 'AUTOSCOPE_STATE_RUNNING',\n AUTOSCOPE_STATE_COMPLETED: 'AUTOSCOPE_STATE_COMPLETED',\n AUTOSCOPE_STATE_BACKFILLED: 'AUTOSCOPE_STATE_BACKFILLED',\n AUTOSCOPE_STATE_USER_SELECTED: 'AUTOSCOPE_STATE_USER_SELECTED',\n AUTOSCOPE_STATE_API_NOT_COVERED: 'AUTOSCOPE_STATE_API_NOT_COVERED',\n} as const;\nexport type AutoscopeState =\n | (typeof AutoscopeState)[keyof typeof AutoscopeState]\n | (string & {});\n\nexport interface CreateTokenRequest {\n /**\n * The lifetime of the token, in seconds.\n *\n * If the lifetime is not specified, this token remains valid for 2 years.\n */\n lifetimeSeconds?: bigint | undefined;\n /** Optional description to attach to the token. */\n comment?: string | undefined;\n /** Optional scopes of the token. */\n scopes?: string[] | undefined;\n /**\n * Whether to enable autoscoping for this token. When true, the token will\n * automatically collect inferred API path scopes as it is used.\n */\n autoscopeEnabled?: boolean | undefined;\n}\n\nexport interface CreateTokenResponse {\n /** The value of the new token. */\n tokenValue?: string | undefined;\n /** The information for the new token. */\n tokenInfo?: PublicTokenInfo | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface ListTokensRequest {}\n\nexport interface ListTokensResponse {\n /** The information for each token. */\n tokenInfos?: PublicTokenInfo[] | undefined;\n}\n\nexport interface PublicTokenInfo {\n /** The ID of this token. */\n tokenId?: string | undefined;\n /** Server time (in epoch milliseconds) when the token was created. */\n creationTime?: bigint | undefined;\n /** Server time (in epoch milliseconds) when the token will expire, or -1 if not applicable. */\n expiryTime?: bigint | undefined;\n /** Comment the token was created with, if applicable. */\n comment?: string | undefined;\n /** Scope of the token was created with, if applicable. */\n scopes?: string[] | undefined;\n /** Output only. The autoscope state of this token. */\n autoscopeState?: AutoscopeState | undefined;\n /** Output only. Inferred API path scopes collected for this token when autoscope is enabled. */\n inferredScopes?: string[] | undefined;\n /** Output only. Scopes inferred from offline backfill processing. */\n backfillScopes?: string[] | undefined;\n}\n\nexport interface RevokeTokenRequest {\n /** The ID of the token to be revoked. */\n tokenId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface RevokeTokenResponse {}\n\n/**\n * For the list of supported token scopes, see\n * https://docs.databricks.com/api/workspace/api/scopes.\n */\nexport interface UpdateTokenRequest {\n /** The SHA-256 hash of the token to be updated. */\n tokenId?: string | undefined;\n token?: PublicTokenInfo | undefined;\n /** A list of field name under token, For example, {\"update_mask\": \"comment,scopes\"} */\n updateMask?: FieldMask<PublicTokenInfo> | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface UpdateTokenResponse {}\n\nexport const unmarshalCreateTokenResponseSchema: z.ZodType<CreateTokenResponse> =\n z\n .object({\n token_value: z.string().optional(),\n token_info: z.lazy(() => unmarshalPublicTokenInfoSchema).optional(),\n })\n .transform(d => ({\n tokenValue: d.token_value,\n tokenInfo: d.token_info,\n }));\n\nexport const unmarshalListTokensResponseSchema: z.ZodType<ListTokensResponse> =\n z\n .object({\n token_infos: z\n .array(z.lazy(() => unmarshalPublicTokenInfoSchema))\n .optional(),\n })\n .transform(d => ({\n tokenInfos: d.token_infos,\n }));\n\nexport const unmarshalPublicTokenInfoSchema: z.ZodType<PublicTokenInfo> = z\n .object({\n token_id: z.string().optional(),\n creation_time: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n expiry_time: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n comment: z.string().optional(),\n scopes: z.array(z.string()).optional(),\n autoscope_state: z.string().optional(),\n inferred_scopes: z.array(z.string()).optional(),\n backfill_scopes: z.array(z.string()).optional(),\n })\n .transform(d => ({\n tokenId: d.token_id,\n creationTime: d.creation_time,\n expiryTime: d.expiry_time,\n comment: d.comment,\n scopes: d.scopes,\n autoscopeState: d.autoscope_state,\n inferredScopes: d.inferred_scopes,\n backfillScopes: d.backfill_scopes,\n }));\n\nexport const unmarshalRevokeTokenResponseSchema: z.ZodType<RevokeTokenResponse> =\n z.object({});\n\nexport const unmarshalUpdateTokenResponseSchema: z.ZodType<UpdateTokenResponse> =\n z.object({});\n\nexport const marshalCreateTokenRequestSchema: z.ZodType = z\n .object({\n lifetimeSeconds: z.bigint().optional(),\n comment: z.string().optional(),\n scopes: z.array(z.string()).optional(),\n autoscopeEnabled: z.boolean().optional(),\n })\n .transform(d => ({\n lifetime_seconds: d.lifetimeSeconds,\n comment: d.comment,\n scopes: d.scopes,\n autoscope_enabled: d.autoscopeEnabled,\n }));\n\nexport const marshalPublicTokenInfoSchema: z.ZodType = z\n .object({\n tokenId: z.string().optional(),\n creationTime: z.bigint().optional(),\n expiryTime: z.bigint().optional(),\n comment: z.string().optional(),\n scopes: z.array(z.string()).optional(),\n autoscopeState: z.string().optional(),\n inferredScopes: z.array(z.string()).optional(),\n backfillScopes: z.array(z.string()).optional(),\n })\n .transform(d => ({\n token_id: d.tokenId,\n creation_time: d.creationTime,\n expiry_time: d.expiryTime,\n comment: d.comment,\n scopes: d.scopes,\n autoscope_state: d.autoscopeState,\n inferred_scopes: d.inferredScopes,\n backfill_scopes: d.backfillScopes,\n }));\n\nexport const marshalRevokeTokenRequestSchema: z.ZodType = z\n .object({\n tokenId: z.string().optional(),\n })\n .transform(d => ({\n token_id: d.tokenId,\n }));\n\nexport const marshalUpdateTokenRequestSchema: z.ZodType = z\n .object({\n tokenId: z.string().optional(),\n token: z.lazy(() => marshalPublicTokenInfoSchema).optional(),\n updateMask: z\n .any()\n .transform((m: FieldMask) => m.toString())\n .optional(),\n })\n .transform(d => ({\n token_id: d.tokenId,\n token: d.token,\n update_mask: d.updateMask,\n }));\n\nconst publicTokenInfoFieldMaskSchema: FieldMaskSchema = {\n autoscopeState: {wire: 'autoscope_state'},\n backfillScopes: {wire: 'backfill_scopes'},\n comment: {wire: 'comment'},\n creationTime: {wire: 'creation_time'},\n expiryTime: {wire: 'expiry_time'},\n inferredScopes: {wire: 'inferred_scopes'},\n scopes: {wire: 'scopes'},\n tokenId: {wire: 'token_id'},\n};\n\nexport function publicTokenInfoFieldMask(\n ...paths: string[]\n): FieldMask<PublicTokenInfo> {\n return FieldMask.build<PublicTokenInfo>(\n paths,\n publicTokenInfoFieldMaskSchema\n );\n}\n"],"mappings":";;;;;;;;;;AAaA,MAAa,iBAAiB;CAC5B,6BAA6B;CAC7B,0BAA0B;CAC1B,yBAAyB;CACzB,2BAA2B;CAC3B,4BAA4B;CAC5B,+BAA+B;CAC/B,iCAAiC;CAClC;AAgFD,MAAa,qCACX,EACG,OAAO;CACN,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,YAAY,EAAE,WAAW,+BAA+B,CAAC,UAAU;CACpE,CAAC,CACD,WAAU,OAAM;CACf,YAAY,EAAE;CACd,WAAW,EAAE;CACd,EAAE;AAEP,MAAa,oCACX,EACG,OAAO,EACN,aAAa,EACV,MAAM,EAAE,WAAW,+BAA+B,CAAC,CACnD,UAAU,EACd,CAAC,CACD,WAAU,OAAM,EACf,YAAY,EAAE,aACf,EAAE;AAEP,MAAa,iCAA6D,EACvE,OAAO;CACN,UAAU,EAAE,QAAQ,CAAC,UAAU;CAC/B,eAAe,EACZ,MAAM;EAAC,EAAE,QAAQ;EAAE,EAAE,QAAQ;EAAE,EAAE,QAAQ;EAAC,CAAC,CAC3C,WAAU,MAAK,OAAO,EAAE,CAAC,CACzB,UAAU;CACb,aAAa,EACV,MAAM;EAAC,EAAE,QAAQ;EAAE,EAAE,QAAQ;EAAE,EAAE,QAAQ;EAAC,CAAC,CAC3C,WAA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,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU;CAC/C,CAAC,CACD,WAAU,OAAM;CACf,UAAU,EAAE;CACZ,eAAe,EAAE;CACjB,aAAa,EAAE;CACf,SAAS,EAAE;CACX,QAAQ,EAAE;CACV,iBAAiB,EAAE;CACnB,iBAAiB,EAAE;CACnB,iBAAiB,EAAE;CACpB,EAAE;AAEL,MAAa,kCAA6C,EACvD,OAAO,EACN,SAAS,EAAE,QAAQ,CAAC,UAAU,EAC/B,CAAC,CACD,WAAU,OAAM,EACf,UAAU,EAAE,SACb,EAAE;AAEL,MAAa,kCAA6C,EACvD,OAAO;CACN,SAAS,EAAE,QAAQ,CAAC,UAAU;CAC9B,OAAO,EAAE,WAAW,6BAA6B,CAAC,UAAU;CAC5D,YAAY,EACT,KAAK,CACL,WAAW,MAAiB,EAAE,UAAU,CAAC,CACzC,UAAU;CACd,CAAC,CACD,WAAU,OAAM;CACf,UAAU,EAAE;CACZ,OAAO,EAAE;CACT,aAAa,EAAE;CAChB,EAAE;AAEL,MAAM,iCAAkD;CACtD,gBAAgB,EAAC,MAAM,mBAAkB;CACzC,gBAAgB,EAAC,MAAM,mBAAkB;CACzC,SAAS,EAAC,MAAM,WAAU;CAC1B,cAAc,EAAC,MAAM,iBAAgB;CACrC,YAAY,EAAC,MAAM,eAAc;CACjC,gBAAgB,EAAC,MAAM,mBAAkB;CACzC,QAAQ,EAAC,MAAM,UAAS;CACxB,SAAS,EAAC,MAAM,YAAW;CAC5B;AAED,SAAgB,yBACd,GAAG,OACyB;AAC5B,QAAO,UAAU,MACf,OACA,+BACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databricks/sdk-tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"directory": "packages/tokens"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@databricks/sdk-auth": ">=0.
|
|
37
|
-
"@databricks/sdk-core": ">=0.
|
|
38
|
-
"@databricks/sdk-options": ">=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"
|