@databricks/sdk-tokens 0.34.0 → 0.35.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.
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/v1/model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB;;;;;GAKG;AAEH,eAAO,MAAM,cAAc;;;;;;;;CAQjB,CAAC;AACX,MAAM,MAAM,cAAc,GACtB,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,GACpD,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC9B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACxC;AAED,MAAM,WAAW,mBAAmB;IAClC,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,yCAAyC;IACzC,SAAS,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;CACzC;AAGD,MAAM,WAAW,iBAAiB;CAAG;AAErC,MAAM,WAAW,kBAAkB;IACjC,sCAAsC;IACtC,UAAU,CAAC,EAAE,eAAe,EAAE,GAAG,SAAS,CAAC;CAC5C;AAED,MAAM,WAAW,eAAe;IAC9B,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,+FA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AA,CAAQ,eAAA;AAAA,cA4B1C,kCAAA,EAAoC,CAAA,CAAE,OAAA,CAAQ,mBAAA;AAAA,cAG9C,kCAAA,EAAoC,CAAA,CAAE,OAAA,CAAQ,mBAAA;AAAA,cAG9C,+BAAA,EAAiC,CAAA,CAAE,OAAA;AAAA,cAcnC,4BAAA,EAA8B,CAAA,CAAE,OAAA;AAAA,cAsBhC,+BAAA,EAAiC,CAAA,CAAE,OAAA;AAAA,cAQnC,+BAAA,EAAiC,CAAA,CAAE,OAAA;AAAA,iBA0BhC,wBAAA,CAAA,GACX,KAAA,aACF,SAAA,CAAU,eAAA"}
package/dist/v1/model.js CHANGED
@@ -1,135 +1,105 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- import { FieldMask } from '@databricks/sdk-core/wkt';
3
- import { z } from 'zod';
1
+ import { FieldMask } from "@databricks/sdk-core/wkt";
2
+ import { z } from "zod";
3
+
4
+ //#region src/v1/model.ts
4
5
  /**
5
- * State of inferred scope collection (autoscope) for an external PAT.
6
- * Mirrored in databricks.identity.AutoscopeState in common/principal-context/api/proto/tokendetails.proto.
7
- * Token store and token management proto can depend on this.
8
- * Principal context proto should NOT depend on this proto definitions because too many services depend on the principal context proto.
9
- */
10
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.
11
- export const AutoscopeState = {
12
- AUTOSCOPE_STATE_UNSPECIFIED: 'AUTOSCOPE_STATE_UNSPECIFIED',
13
- AUTOSCOPE_STATE_DISABLED: 'AUTOSCOPE_STATE_DISABLED',
14
- AUTOSCOPE_STATE_RUNNING: 'AUTOSCOPE_STATE_RUNNING',
15
- AUTOSCOPE_STATE_COMPLETED: 'AUTOSCOPE_STATE_COMPLETED',
16
- AUTOSCOPE_STATE_BACKFILLED: 'AUTOSCOPE_STATE_BACKFILLED',
17
- AUTOSCOPE_STATE_USER_SELECTED: 'AUTOSCOPE_STATE_USER_SELECTED',
18
- AUTOSCOPE_STATE_API_NOT_COVERED: 'AUTOSCOPE_STATE_API_NOT_COVERED',
6
+ * State of inferred scope collection (autoscope) for an external PAT.
7
+ * Mirrored in databricks.identity.AutoscopeState in common/principal-context/api/proto/tokendetails.proto.
8
+ * Token store and token management proto can depend on this.
9
+ * Principal context proto should NOT depend on this proto definitions because too many services depend on the principal context proto.
10
+ */
11
+ const AutoscopeState = {
12
+ AUTOSCOPE_STATE_UNSPECIFIED: "AUTOSCOPE_STATE_UNSPECIFIED",
13
+ AUTOSCOPE_STATE_DISABLED: "AUTOSCOPE_STATE_DISABLED",
14
+ AUTOSCOPE_STATE_RUNNING: "AUTOSCOPE_STATE_RUNNING",
15
+ AUTOSCOPE_STATE_COMPLETED: "AUTOSCOPE_STATE_COMPLETED",
16
+ AUTOSCOPE_STATE_BACKFILLED: "AUTOSCOPE_STATE_BACKFILLED",
17
+ AUTOSCOPE_STATE_USER_SELECTED: "AUTOSCOPE_STATE_USER_SELECTED",
18
+ AUTOSCOPE_STATE_API_NOT_COVERED: "AUTOSCOPE_STATE_API_NOT_COVERED"
19
19
  };
20
- export const unmarshalCreateTokenResponseSchema = z
21
- .object({
22
- token_value: z.string().optional(),
23
- token_info: z.lazy(() => unmarshalPublicTokenInfoSchema).optional(),
24
- })
25
- .transform(d => ({
26
- tokenValue: d.token_value,
27
- tokenInfo: d.token_info,
20
+ const unmarshalCreateTokenResponseSchema = z.object({
21
+ token_value: z.string().optional(),
22
+ token_info: z.lazy(() => unmarshalPublicTokenInfoSchema).optional()
23
+ }).transform((d) => ({
24
+ tokenValue: d.token_value,
25
+ tokenInfo: d.token_info
28
26
  }));
29
- export const unmarshalListTokensResponseSchema = z
30
- .object({
31
- token_infos: z
32
- .array(z.lazy(() => unmarshalPublicTokenInfoSchema))
33
- .optional(),
34
- })
35
- .transform(d => ({
36
- tokenInfos: d.token_infos,
27
+ const unmarshalListTokensResponseSchema = z.object({ token_infos: z.array(z.lazy(() => unmarshalPublicTokenInfoSchema)).optional() }).transform((d) => ({ tokenInfos: d.token_infos }));
28
+ const unmarshalPublicTokenInfoSchema = z.object({
29
+ token_id: z.string().optional(),
30
+ creation_time: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
31
+ expiry_time: z.union([z.number(), z.bigint()]).transform((v) => BigInt(v)).optional(),
32
+ comment: z.string().optional(),
33
+ scopes: z.array(z.string()).optional(),
34
+ autoscope_state: z.string().optional(),
35
+ inferred_scopes: z.array(z.string()).optional(),
36
+ backfill_scopes: z.array(z.string()).optional()
37
+ }).transform((d) => ({
38
+ tokenId: d.token_id,
39
+ creationTime: d.creation_time,
40
+ expiryTime: d.expiry_time,
41
+ comment: d.comment,
42
+ scopes: d.scopes,
43
+ autoscopeState: d.autoscope_state,
44
+ inferredScopes: d.inferred_scopes,
45
+ backfillScopes: d.backfill_scopes
37
46
  }));
38
- export const unmarshalPublicTokenInfoSchema = z
39
- .object({
40
- token_id: z.string().optional(),
41
- creation_time: z
42
- .union([z.number(), z.bigint()])
43
- .transform(v => BigInt(v))
44
- .optional(),
45
- expiry_time: z
46
- .union([z.number(), z.bigint()])
47
- .transform(v => BigInt(v))
48
- .optional(),
49
- comment: z.string().optional(),
50
- scopes: z.array(z.string()).optional(),
51
- autoscope_state: z.string().optional(),
52
- inferred_scopes: z.array(z.string()).optional(),
53
- backfill_scopes: z.array(z.string()).optional(),
54
- })
55
- .transform(d => ({
56
- tokenId: d.token_id,
57
- creationTime: d.creation_time,
58
- expiryTime: d.expiry_time,
59
- comment: d.comment,
60
- scopes: d.scopes,
61
- autoscopeState: d.autoscope_state,
62
- inferredScopes: d.inferred_scopes,
63
- backfillScopes: d.backfill_scopes,
47
+ const unmarshalRevokeTokenResponseSchema = z.object({});
48
+ const unmarshalUpdateTokenResponseSchema = z.object({});
49
+ const marshalCreateTokenRequestSchema = z.object({
50
+ lifetimeSeconds: z.bigint().optional(),
51
+ comment: z.string().optional(),
52
+ scopes: z.array(z.string()).optional(),
53
+ autoscopeEnabled: z.boolean().optional()
54
+ }).transform((d) => ({
55
+ lifetime_seconds: d.lifetimeSeconds,
56
+ comment: d.comment,
57
+ scopes: d.scopes,
58
+ autoscope_enabled: d.autoscopeEnabled
64
59
  }));
65
- export const unmarshalRevokeTokenResponseSchema = z.object({});
66
- export const unmarshalUpdateTokenResponseSchema = z.object({});
67
- export const marshalCreateTokenRequestSchema = z
68
- .object({
69
- lifetimeSeconds: z.bigint().optional(),
70
- comment: z.string().optional(),
71
- scopes: z.array(z.string()).optional(),
72
- autoscopeEnabled: z.boolean().optional(),
73
- })
74
- .transform(d => ({
75
- lifetime_seconds: d.lifetimeSeconds,
76
- comment: d.comment,
77
- scopes: d.scopes,
78
- autoscope_enabled: d.autoscopeEnabled,
60
+ const marshalPublicTokenInfoSchema = z.object({
61
+ tokenId: z.string().optional(),
62
+ creationTime: z.bigint().optional(),
63
+ expiryTime: z.bigint().optional(),
64
+ comment: z.string().optional(),
65
+ scopes: z.array(z.string()).optional(),
66
+ autoscopeState: z.string().optional(),
67
+ inferredScopes: z.array(z.string()).optional(),
68
+ backfillScopes: z.array(z.string()).optional()
69
+ }).transform((d) => ({
70
+ token_id: d.tokenId,
71
+ creation_time: d.creationTime,
72
+ expiry_time: d.expiryTime,
73
+ comment: d.comment,
74
+ scopes: d.scopes,
75
+ autoscope_state: d.autoscopeState,
76
+ inferred_scopes: d.inferredScopes,
77
+ backfill_scopes: d.backfillScopes
79
78
  }));
80
- export const marshalPublicTokenInfoSchema = z
81
- .object({
82
- tokenId: z.string().optional(),
83
- creationTime: z.bigint().optional(),
84
- expiryTime: z.bigint().optional(),
85
- comment: z.string().optional(),
86
- scopes: z.array(z.string()).optional(),
87
- autoscopeState: z.string().optional(),
88
- inferredScopes: z.array(z.string()).optional(),
89
- backfillScopes: z.array(z.string()).optional(),
90
- })
91
- .transform(d => ({
92
- token_id: d.tokenId,
93
- creation_time: d.creationTime,
94
- expiry_time: d.expiryTime,
95
- comment: d.comment,
96
- scopes: d.scopes,
97
- autoscope_state: d.autoscopeState,
98
- inferred_scopes: d.inferredScopes,
99
- backfill_scopes: d.backfillScopes,
100
- }));
101
- export const marshalRevokeTokenRequestSchema = z
102
- .object({
103
- tokenId: z.string().optional(),
104
- })
105
- .transform(d => ({
106
- token_id: d.tokenId,
107
- }));
108
- export const marshalUpdateTokenRequestSchema = z
109
- .object({
110
- tokenId: z.string().optional(),
111
- token: z.lazy(() => marshalPublicTokenInfoSchema).optional(),
112
- updateMask: z
113
- .any()
114
- .transform((m) => m.toString())
115
- .optional(),
116
- })
117
- .transform(d => ({
118
- token_id: d.tokenId,
119
- token: d.token,
120
- update_mask: d.updateMask,
79
+ const marshalRevokeTokenRequestSchema = z.object({ tokenId: z.string().optional() }).transform((d) => ({ token_id: d.tokenId }));
80
+ const marshalUpdateTokenRequestSchema = z.object({
81
+ tokenId: z.string().optional(),
82
+ token: z.lazy(() => marshalPublicTokenInfoSchema).optional(),
83
+ updateMask: z.any().transform((m) => m.toString()).optional()
84
+ }).transform((d) => ({
85
+ token_id: d.tokenId,
86
+ token: d.token,
87
+ update_mask: d.updateMask
121
88
  }));
122
89
  const publicTokenInfoFieldMaskSchema = {
123
- autoscopeState: { wire: 'autoscope_state' },
124
- backfillScopes: { wire: 'backfill_scopes' },
125
- comment: { wire: 'comment' },
126
- creationTime: { wire: 'creation_time' },
127
- expiryTime: { wire: 'expiry_time' },
128
- inferredScopes: { wire: 'inferred_scopes' },
129
- scopes: { wire: 'scopes' },
130
- tokenId: { wire: 'token_id' },
90
+ autoscopeState: { wire: "autoscope_state" },
91
+ backfillScopes: { wire: "backfill_scopes" },
92
+ comment: { wire: "comment" },
93
+ creationTime: { wire: "creation_time" },
94
+ expiryTime: { wire: "expiry_time" },
95
+ inferredScopes: { wire: "inferred_scopes" },
96
+ scopes: { wire: "scopes" },
97
+ tokenId: { wire: "token_id" }
131
98
  };
132
- export function publicTokenInfoFieldMask(...paths) {
133
- return FieldMask.build(paths, publicTokenInfoFieldMaskSchema);
99
+ function publicTokenInfoFieldMask(...paths) {
100
+ return FieldMask.build(paths, publicTokenInfoFieldMaskSchema);
134
101
  }
102
+
103
+ //#endregion
104
+ export { AutoscopeState, marshalCreateTokenRequestSchema, marshalPublicTokenInfoSchema, marshalRevokeTokenRequestSchema, marshalUpdateTokenRequestSchema, publicTokenInfoFieldMask, unmarshalCreateTokenResponseSchema, unmarshalListTokensResponseSchema, unmarshalPublicTokenInfoSchema, unmarshalRevokeTokenResponseSchema, unmarshalUpdateTokenResponseSchema };
135
105
  //# sourceMappingURL=model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/v1/model.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB;;;;;GAKG;AACH,4FAA4F;AAC5F,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,2BAA2B,EAAE,6BAA6B;IAC1D,wBAAwB,EAAE,0BAA0B;IACpD,uBAAuB,EAAE,yBAAyB;IAClD,yBAAyB,EAAE,2BAA2B;IACtD,0BAA0B,EAAE,4BAA4B;IACxD,6BAA6B,EAAE,+BAA+B;IAC9D,+BAA+B,EAAE,iCAAiC;CAC1D,CAAC;AAgFX,MAAM,CAAC,MAAM,kCAAkC,GAC7C,CAAC;KACE,MAAM,CAAC;IACN,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC,CAAC,QAAQ,EAAE;CACpE,CAAC;KACD,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACf,UAAU,EAAE,CAAC,CAAC,WAAW;IACzB,SAAS,EAAE,CAAC,CAAC,UAAU;CACxB,CAAC,CAAC,CAAC;AAER,MAAM,CAAC,MAAM,iCAAiC,GAC5C,CAAC;KACE,MAAM,CAAC;IACN,WAAW,EAAE,C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AAG,EAAE,CAAC,4BAA4B,CAAC,CAAC,QAAQ,EAAE;IAC5D,UAAU,EAAE,CAAC;SACV,GAAG,EAAE;SACL,SAAS,CAAC,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;SACzC,QAAQ,EAAE;CACd,CAAC;KACD,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACf,QAAQ,EAAE,CAAC,CAAC,OAAO;IACnB,KAAK,EAAE,CAAC,CAAC,KAAK;IACd,WAAW,EAAE,CAAC,CAAC,UAAU;CAC1B,CAAC,CAAC,CAAC;AAEN,MAAM,8BAA8B,GAAoB;IACtD,cAAc,EAAE,EAAC,IAAI,EAAE,iBAAiB,EAAC;IACzC,cAAc,EAAE,EAAC,IAAI,EAAE,iBAAiB,EAAC;IACzC,OAAO,EAAE,EAAC,IAAI,EAAE,SAAS,EAAC;IAC1B,YAAY,EAAE,EAAC,IAAI,EAAE,eAAe,EAAC;IACrC,UAAU,EAAE,EAAC,IAAI,EAAE,aAAa,EAAC;IACjC,cAAc,EAAE,EAAC,IAAI,EAAE,iBAAiB,EAAC;IACzC,MAAM,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAC;IACxB,OAAO,EAAE,EAAC,IAAI,EAAE,UAAU,EAAC;CAC5B,CAAC;AAEF,MAAM,UAAU,wBAAwB,CACtC,GAAG,KAAe;IAElB,OAAO,SAAS,CAAC,KAAK,CACpB,KAAK,EACL,8BAA8B,CAC/B,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"model.js","names":[],"sources":["../../src/v1/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {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,CACz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C,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"}
@@ -1,23 +1,25 @@
1
- import type { HttpClient } from '@databricks/sdk-core/http';
2
- import type { ClientOptions } from '@databricks/sdk-options/client';
1
+ import { HttpClient } from "@databricks/sdk-core/http";
2
+ import { ClientOptions } from "@databricks/sdk-options/client";
3
+
4
+ //#region src/v1/transport.d.ts
3
5
  /**
4
6
  * The configuration a client needs to issue requests, resolved from
5
7
  * {@link ClientOptions} and a configuration profile.
6
8
  */
7
- export interface ResolvedClientConfig {
8
- /** Host with any trailing slash removed. */
9
- host: string;
10
- /**
11
- * Default account ID for account-level paths that contain an account_id
12
- * segment. A request's own accountId still wins.
13
- */
14
- accountId?: string;
15
- /**
16
- * Workspace ID used to route workspace-level calls on unified hosts (SPOG).
17
- */
18
- workspaceId?: string;
19
- /** HTTP client with authentication, and any configured timeout, applied. */
20
- httpClient: HttpClient;
9
+ interface ResolvedClientConfig {
10
+ /** Host with any trailing slash removed. */
11
+ host: string;
12
+ /**
13
+ * Default account ID for account-level paths that contain an account_id
14
+ * segment. A request's own accountId still wins.
15
+ */
16
+ accountId?: string;
17
+ /**
18
+ * Workspace ID used to route workspace-level calls on unified hosts (SPOG).
19
+ */
20
+ workspaceId?: string;
21
+ /** HTTP client with authentication, and any configured timeout, applied. */
22
+ httpClient: HttpClient;
21
23
  }
22
24
  /**
23
25
  * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
@@ -29,5 +31,7 @@ export interface ResolvedClientConfig {
29
31
  *
30
32
  * @throws if host is neither provided nor present in the resolved profile.
31
33
  */
32
- export declare function resolveClientConfig(options: ClientOptions): Promise<ResolvedClientConfig>;
34
+ declare function resolveClientConfig(options: ClientOptions): Promise<ResolvedClientConfig>;
35
+ //#endregion
36
+ export { ResolvedClientConfig, resolveClientConfig };
33
37
  //# sourceMappingURL=transport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/v1/transport.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,UAAU,EAGX,MAAM,2BAA2B,CAAC;AAInC,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAElE;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,4EAA4E;IAC5E,UAAU,EAAE,UAAU,CAAC;CACxB;AAED;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,oBAAoB,CAAC,CA4B/B"}
1
+ {"version":3,"file":"transport.d.ts","names":[],"sources":["../../src/v1/transport.ts"],"mappings":";;;;;;AAkBA;;UAAiB,oBAAA;EAgBO;EAdtB,IAAA;EAMA;;;;EAAA,SAAA;EAQsB;AAaxB;;EAhBE,WAAA;EAiBS;EAdT,UAAA,EAAY,UAAA;AAAA;;;;;;;;;;;iBAaQ,mBAAA,CACpB,OAAA,EAAS,aAAA,GACR,OAAA,CAAQ,oBAAA"}
@@ -1,74 +1,65 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- import { defaultCredentials } from '@databricks/sdk-auth/credentials';
3
- import { newFetchHttpClient } from '@databricks/sdk-core/http';
4
- import { resolve } from '@databricks/sdk-core/profiles';
1
+ import { defaultCredentials } from "@databricks/sdk-auth/credentials";
2
+ import { newFetchHttpClient } from "@databricks/sdk-core/http";
3
+ import { resolve } from "@databricks/sdk-core/profiles";
4
+
5
+ //#region src/v1/transport.ts
5
6
  /**
6
- * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
7
- *
8
- * A configuration profile is always resolved from the config file and
9
- * environment variables (per options.profileOptions); it supplies host,
10
- * accountId, workspaceId, and credentials wherever the caller did not set them
11
- * explicitly. Explicit options always take precedence.
12
- *
13
- * @throws if host is neither provided nor present in the resolved profile.
14
- */
15
- export async function resolveClientConfig(options) {
16
- const profile = await resolve(options.profileOptions);
17
- const host = options.host ?? profile.host;
18
- if (host === undefined) {
19
- throw new Error('Host is required.');
20
- }
21
- // The provided httpClient (or the default fetch client) is the base wire;
22
- // authentication and the optional timeout are layered on top of it. The
23
- // default credential chain reuses the profile resolved above so that the
24
- // same profileOptions govern host and authentication alike.
25
- const base = options.httpClient ?? newFetchHttpClient();
26
- const credentials = options.credentials ?? defaultCredentials({ profile });
27
- let httpClient = new AuthHttpClient(base, credentials);
28
- if (options.timeout !== undefined) {
29
- httpClient = new TimeoutHttpClient(httpClient, options.timeout);
30
- }
31
- const accountId = options.accountId ?? profile.accountId;
32
- const workspaceId = options.workspaceId ?? profile.workspaceId;
33
- return {
34
- host: host.replace(/\/$/, ''),
35
- httpClient,
36
- ...(accountId !== undefined && { accountId }),
37
- ...(workspaceId !== undefined && { workspaceId }),
38
- };
7
+ * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
8
+ *
9
+ * A configuration profile is always resolved from the config file and
10
+ * environment variables (per options.profileOptions); it supplies host,
11
+ * accountId, workspaceId, and credentials wherever the caller did not set them
12
+ * explicitly. Explicit options always take precedence.
13
+ *
14
+ * @throws if host is neither provided nor present in the resolved profile.
15
+ */
16
+ async function resolveClientConfig(options) {
17
+ const profile = await resolve(options.profileOptions);
18
+ const host = options.host ?? profile.host;
19
+ if (host === void 0) throw new Error("Host is required.");
20
+ let httpClient = new AuthHttpClient(options.httpClient ?? newFetchHttpClient(), options.credentials ?? defaultCredentials({ profile }));
21
+ if (options.timeout !== void 0) httpClient = new TimeoutHttpClient(httpClient, options.timeout);
22
+ const accountId = options.accountId ?? profile.accountId;
23
+ const workspaceId = options.workspaceId ?? profile.workspaceId;
24
+ return {
25
+ host: host.replace(/\/$/, ""),
26
+ httpClient,
27
+ ...accountId !== void 0 && { accountId },
28
+ ...workspaceId !== void 0 && { workspaceId }
29
+ };
39
30
  }
40
31
  /** Wraps an HttpClient and adds authentication headers to requests. */
41
- class AuthHttpClient {
42
- base;
43
- credentials;
44
- constructor(base, credentials) {
45
- this.base = base;
46
- this.credentials = credentials;
47
- }
48
- async send(request) {
49
- const authHeaders = await this.credentials.authHeaders();
50
- // Do not modify the original request.
51
- const headers = new Headers(request.headers);
52
- for (const h of authHeaders) {
53
- headers.set(h.key, h.value);
54
- }
55
- return this.base.send({ ...request, headers });
56
- }
57
- }
32
+ var AuthHttpClient = class {
33
+ constructor(base, credentials) {
34
+ this.base = base;
35
+ this.credentials = credentials;
36
+ }
37
+ async send(request) {
38
+ const authHeaders = await this.credentials.authHeaders();
39
+ const headers = new Headers(request.headers);
40
+ for (const h of authHeaders) headers.set(h.key, h.value);
41
+ return this.base.send({
42
+ ...request,
43
+ headers
44
+ });
45
+ }
46
+ };
58
47
  /** Wraps an HttpClient and applies a default timeout to requests. */
59
- class TimeoutHttpClient {
60
- base;
61
- timeout;
62
- constructor(base, timeout) {
63
- this.base = base;
64
- this.timeout = timeout;
65
- }
66
- async send(request) {
67
- const timeoutSignal = AbortSignal.timeout(this.timeout);
68
- const signal = request.signal !== undefined
69
- ? AbortSignal.any([request.signal, timeoutSignal])
70
- : timeoutSignal;
71
- return this.base.send({ ...request, signal });
72
- }
73
- }
48
+ var TimeoutHttpClient = class {
49
+ constructor(base, timeout) {
50
+ this.base = base;
51
+ this.timeout = timeout;
52
+ }
53
+ async send(request) {
54
+ const timeoutSignal = AbortSignal.timeout(this.timeout);
55
+ const signal = request.signal !== void 0 ? AbortSignal.any([request.signal, timeoutSignal]) : timeoutSignal;
56
+ return this.base.send({
57
+ ...request,
58
+ signal
59
+ });
60
+ }
61
+ };
62
+
63
+ //#endregion
64
+ export { resolveClientConfig };
74
65
  //# sourceMappingURL=transport.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"transport.js","sourceRoot":"","sources":["../../src/v1/transport.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAG/E,OAAO,EAAC,kBAAkB,EAAC,MAAM,kCAAkC,CAAC;AAMpE,OAAO,EAAC,kBAAkB,EAAC,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAAC,OAAO,EAAC,MAAM,+BAA+B,CAAC;AA0BtD;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CACvC,OAAsB;IAEtB,MAAM,OAAO,GAAY,MAAM,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;IAE/D,MAAM,IAAI,GAAG,OAA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AAE,CAAC;QACzD,sCAAsC;QACtC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,MAAM,CAAC,IAAI,WAAW,EAAE,CAAC;YAC5B,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC;QACD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAC,GAAG,OAAO,EAAE,OAAO,EAAC,CAAC,CAAC;IAC/C,CAAC;CACF;AAED,qEAAqE;AACrE,MAAM,iBAAiB;IAEF;IACA;IAFnB,YACmB,IAAgB,EAChB,OAAe;QADf,SAAI,GAAJ,IAAI,CAAY;QAChB,YAAO,GAAP,OAAO,CAAQ;IAC/B,CAAC;IAEJ,KAAK,CAAC,IAAI,CAAC,OAAoB;QAC7B,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxD,MAAM,MAAM,GACV,OAAO,CAAC,MAAM,KAAK,SAAS;YAC1B,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;YAClD,CAAC,CAAC,aAAa,CAAC;QACpB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAC,GAAG,OAAO,EAAE,MAAM,EAAC,CAAC,CAAC;IAC9C,CAAC;CACF"}
1
+ {"version":3,"file":"transport.js","names":[],"sources":["../../src/v1/transport.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport type {Credentials} from '@databricks/sdk-auth';\nimport {defaultCredentials} from '@databricks/sdk-auth/credentials';\nimport type {\n HttpClient,\n HttpRequest,\n HttpResponse,\n} from '@databricks/sdk-core/http';\nimport {newFetchHttpClient} from '@databricks/sdk-core/http';\nimport type {Profile} from '@databricks/sdk-core/profiles';\nimport {resolve} from '@databricks/sdk-core/profiles';\nimport type {ClientOptions} from '@databricks/sdk-options/client';\n\n/**\n * The configuration a client needs to issue requests, resolved from\n * {@link ClientOptions} and a configuration profile.\n */\nexport interface ResolvedClientConfig {\n /** Host with any trailing slash removed. */\n host: string;\n\n /**\n * Default account ID for account-level paths that contain an account_id\n * segment. A request's own accountId still wins.\n */\n accountId?: string;\n\n /**\n * Workspace ID used to route workspace-level calls on unified hosts (SPOG).\n */\n workspaceId?: string;\n\n /** HTTP client with authentication, and any configured timeout, applied. */\n httpClient: HttpClient;\n}\n\n/**\n * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.\n *\n * A configuration profile is always resolved from the config file and\n * environment variables (per options.profileOptions); it supplies host,\n * accountId, workspaceId, and credentials wherever the caller did not set them\n * explicitly. Explicit options always take precedence.\n *\n * @throws if host is neither provided nor present in the resolved profile.\n */\nexport async function resolveClientConfig(\n options: ClientOptions\n): Promise<ResolvedClientConfig> {\n const profile: Profile = await resolve(options.profileOptions);\n\n const host = options.host ?? profile.host;\n if (host === undefined) {\n throw new Error('Host is required.');\n }\n\n // The provided httpClient (or the default fetch client) is the base wire;\n // authentication and the optional timeout are layered on top of it. The\n // default credential chain reuses the profile resolved above so that the\n // same profileOptions govern host and authentication alike.\n const base = options.httpClient ?? newFetchHttpClient();\n const credentials = options.credentials ?? defaultCredentials({profile});\n let httpClient: HttpClient = new AuthHttpClient(base, credentials);\n if (options.timeout !== undefined) {\n httpClient = new TimeoutHttpClient(httpClient, options.timeout);\n }\n\n const accountId = options.accountId ?? profile.accountId;\n const workspaceId = options.workspaceId ?? profile.workspaceId;\n\n return {\n host: host.replace(/\\/$/, ''),\n httpClient,\n ...(accountId !== undefined && {accountId}),\n ...(workspaceId !== undefined && {workspaceId}),\n };\n}\n\n/** Wraps an HttpClient and adds authentication headers to requests. */\nclass AuthHttpClient implements HttpClient {\n constructor(\n private readonly base: HttpClient,\n private readonly credentials: Credentials\n ) {}\n\n async send(request: HttpRequest): Promise<HttpResponse> {\n const authHeaders = await this.credentials.authHeaders();\n // Do not modify the original request.\n const headers = new Headers(request.headers);\n for (const h of authHeaders) {\n headers.set(h.key, h.value);\n }\n return this.base.send({...request, headers});\n }\n}\n\n/** Wraps an HttpClient and applies a default timeout to requests. */\nclass TimeoutHttpClient implements HttpClient {\n constructor(\n private readonly base: HttpClient,\n private readonly timeout: number\n ) {}\n\n async send(request: HttpRequest): Promise<HttpResponse> {\n const timeoutSignal = AbortSignal.timeout(this.timeout);\n const signal =\n request.signal !== undefined\n ? AbortSignal.any([request.signal, timeoutSignal])\n : timeoutSignal;\n return this.base.send({...request, signal});\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AA+CA,eAAsB,oBACpB,SAC+B;CAC/B,MAAM,UAAmB,MAAM,QAAQ,QAAQ,eAAe;CAE9D,MAAM,OAAO,QAAQ,QAAQ,QAAQ;AACrC,KAAI,SAAS,OACX,OAAM,IAAI,MAAM,oBAAoB;CAStC,IAAI,aAAyB,IAAI,eAFpB,QAAQ,cAAc,oBAAoB,EACnC,QAAQ,eAAe,mBAAmB,EAAC,SAAQ,CAAC,CACN;AAClE,KAAI,QAAQ,YAAY,OACtB,cAAa,IAAI,kBAAkB,YAAY,QAAQ,QAAQ;CAGjE,MAAM,YAAY,QAAQ,aAAa,QAAQ;CAC/C,MAAM,cAAc,QAAQ,eAAe,QAAQ;AAEnD,QAAO;EACL,MAAM,KAAK,QAAQ,OAAO,GAAG;EAC7B;EACA,GAAI,cAAc,UAAa,EAAC,WAAU;EAC1C,GAAI,gBAAgB,UAAa,EAAC,aAAY;EAC/C;;;AAIH,IAAM,iBAAN,MAA2C;CACzC,YACE,AAAiB,MACjB,AAAiB,aACjB;EAFiB;EACA;;CAGnB,MAAM,KAAK,SAA6C;EACtD,MAAM,cAAc,MAAM,KAAK,YAAY,aAAa;EAExD,MAAM,UAAU,IAAI,QAAQ,QAAQ,QAAQ;AAC5C,OAAK,MAAM,KAAK,YACd,SAAQ,IAAI,EAAE,KAAK,EAAE,MAAM;AAE7B,SAAO,KAAK,KAAK,KAAK;GAAC,GAAG;GAAS;GAAQ,CAAC;;;;AAKhD,IAAM,oBAAN,MAA8C;CAC5C,YACE,AAAiB,MACjB,AAAiB,SACjB;EAFiB;EACA;;CAGnB,MAAM,KAAK,SAA6C;EACtD,MAAM,gBAAgB,YAAY,QAAQ,KAAK,QAAQ;EACvD,MAAM,SACJ,QAAQ,WAAW,SACf,YAAY,IAAI,CAAC,QAAQ,QAAQ,cAAc,CAAC,GAChD;AACN,SAAO,KAAK,KAAK,KAAK;GAAC,GAAG;GAAS;GAAO,CAAC"}
@@ -1,21 +1,25 @@
1
- import type { HttpClient, HttpRequest } from '@databricks/sdk-core/http';
2
- import type { Logger } from '@databricks/sdk-core/logger';
3
- import type { CallOptions } from '@databricks/sdk-options/call';
4
- import type { z } from 'zod';
5
- export interface HttpCallOptions {
6
- readonly request: HttpRequest;
7
- readonly httpClient: HttpClient;
8
- readonly logger: Logger;
1
+ import { Logger } from "@databricks/sdk-core/logger";
2
+ import { HttpClient, HttpRequest } from "@databricks/sdk-core/http";
3
+ import { z } from "zod";
4
+ import { CallOptions } from "@databricks/sdk-options/call";
5
+
6
+ //#region src/v1/utils.d.ts
7
+ interface HttpCallOptions {
8
+ readonly request: HttpRequest;
9
+ readonly httpClient: HttpClient;
10
+ readonly logger: Logger;
9
11
  }
10
12
  /**
11
13
  * Translates public CallOptions to the internal Options shape accepted by
12
14
  * execute(). Even though the shapes match today, this isolates the public
13
15
  * API from the executor's internal type so they can diverge.
14
16
  */
15
- export declare function executeCall(call: (signal?: AbortSignal) => Promise<void>, options?: CallOptions): Promise<void>;
16
- export declare function executeHttpCall(opts: HttpCallOptions): Promise<Uint8Array>;
17
- export declare function buildHttpRequest(method: string, url: string, headers: Headers, signal?: AbortSignal, body?: string | ReadableStream<Uint8Array>): HttpRequest;
18
- export declare function parseResponse<T>(body: Uint8Array, schema: z.ZodType<T>): T;
19
- export declare function marshalRequest(data: unknown, schema: z.ZodType): string;
20
- export declare function flattenQueryParams(prefix: string, value: unknown, params: URLSearchParams): void;
17
+ declare function executeCall(call: (signal?: AbortSignal) => Promise<void>, options?: CallOptions): Promise<void>;
18
+ declare function executeHttpCall(opts: HttpCallOptions): Promise<Uint8Array>;
19
+ declare function buildHttpRequest(method: string, url: string, headers: Headers, signal?: AbortSignal, body?: string | ReadableStream<Uint8Array>): HttpRequest;
20
+ declare function parseResponse<T>(body: Uint8Array, schema: z.ZodType<T>): T;
21
+ declare function marshalRequest(data: unknown, schema: z.ZodType): string;
22
+ declare function flattenQueryParams(prefix: string, value: unknown, params: URLSearchParams): void;
23
+ //#endregion
24
+ export { HttpCallOptions, buildHttpRequest, executeCall, executeHttpCall, flattenQueryParams, marshalRequest, parseResponse };
21
25
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/v1/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EAEZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AAE9D,OAAO,KAAK,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAO3B,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAC/B,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,EAC7C,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,IAAI,CAAC,CASf;AA2BD,wBAAsB,eAAe,CACnC,IAAI,EAAE,eAAe,GACpB,OAAO,CAAC,UA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