@databricks/sdk-uc-secrets 0.0.0-dev → 0.1.0-dev.2

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.
@@ -0,0 +1,158 @@
1
+ import { Temporal } from '@js-temporal/polyfill';
2
+ import { FieldMask } from '@databricks/sdk-core/wkt';
3
+ import { z } from 'zod';
4
+ /** Request message for CreateSecret. */
5
+ export interface CreateSecretRequest {
6
+ /**
7
+ * The secret object to create. The **name**, **catalog_name**, **schema_name**, and **value**
8
+ * fields are required.
9
+ */
10
+ secret?: Secret | undefined;
11
+ }
12
+ /** Request message for DeleteSecret. */
13
+ export interface DeleteSecretRequest {
14
+ /**
15
+ * The three-level (fully qualified) name of the secret
16
+ * (for example, **catalog_name.schema_name.secret_name**).
17
+ */
18
+ fullName?: string | undefined;
19
+ }
20
+ /** Request message for GetSecret. */
21
+ export interface GetSecretRequest {
22
+ /**
23
+ * The three-level (fully qualified) name of the secret
24
+ * (for example, **catalog_name.schema_name.secret_name**).
25
+ */
26
+ fullName?: string | undefined;
27
+ /**
28
+ * Whether to include secrets in the response for which you only have the **BROWSE** privilege,
29
+ * which limits access to metadata.
30
+ */
31
+ includeBrowse?: boolean | undefined;
32
+ }
33
+ /** Request message for ListSecrets. */
34
+ export interface ListSecretsRequest {
35
+ /**
36
+ * The name of the catalog under which to list secrets. Both **catalog_name** and
37
+ * **schema_name** must be specified together.
38
+ */
39
+ catalogName?: string | undefined;
40
+ /**
41
+ * The name of the schema under which to list secrets. Both **catalog_name** and
42
+ * **schema_name** must be specified together.
43
+ */
44
+ schemaName?: string | undefined;
45
+ /**
46
+ * Whether to include secrets in the response for which you only have the **BROWSE** privilege,
47
+ * which limits access to metadata.
48
+ */
49
+ includeBrowse?: boolean | undefined;
50
+ /**
51
+ * Opaque pagination token to go to the next page based on previous query. The maximum page length
52
+ * is determined by a server configured value.
53
+ */
54
+ pageToken?: string | undefined;
55
+ /**
56
+ * Maximum number of secrets to return.
57
+ *
58
+ * - If not specified, at most 10000 secrets are returned.
59
+ * - If set to a value greater than 0, the page length is the minimum of this value and 10000.
60
+ * - If set to 0, the page length is set to 10000.
61
+ * - If set to a value less than 0, an invalid parameter error is returned.
62
+ */
63
+ pageSize?: number | undefined;
64
+ }
65
+ /** Response message for ListSecrets. */
66
+ export interface ListSecretsResponse {
67
+ /** An array of secret objects. */
68
+ secrets?: Secret[] | undefined;
69
+ /**
70
+ * Opaque token to retrieve the next page of results. Absent if there are no more pages.
71
+ * **page_token** should be set to this value for the next request.
72
+ */
73
+ nextPageToken?: string | undefined;
74
+ }
75
+ /**
76
+ * A secret stored in Unity Catalog. Secrets are three-level namespace objects
77
+ * (catalog.schema.secret) that securely store sensitive credential data such as
78
+ * passwords, tokens, and keys.
79
+ */
80
+ export interface Secret {
81
+ /** The name of the secret, relative to its parent schema. */
82
+ name?: string | undefined;
83
+ /**
84
+ * The owner of the secret. Defaults to the creating principal on creation. Can be updated to
85
+ * transfer ownership of the secret to another principal.
86
+ */
87
+ owner?: string | undefined;
88
+ /**
89
+ * The effective owner of the secret, which may differ from the directly-set **owner** due to
90
+ * inheritance.
91
+ */
92
+ effectiveOwner?: string | undefined;
93
+ /** Unique identifier of the metastore hosting the secret. */
94
+ metastoreId?: string | undefined;
95
+ /** The time at which this secret was created. */
96
+ createTime?: Temporal.Instant | undefined;
97
+ /** The principal that created the secret. */
98
+ createdBy?: string | undefined;
99
+ /** The time at which this secret was last updated. */
100
+ updateTime?: Temporal.Instant | undefined;
101
+ /** The principal that last updated the secret. */
102
+ updatedBy?: string | undefined;
103
+ /** User-provided free-form text description of the secret. */
104
+ comment?: string | undefined;
105
+ /** The three-level (fully qualified) name of the secret, in the form of **catalog_name.schema_name.secret_name**. */
106
+ fullName?: string | undefined;
107
+ /** The name of the catalog where the schema and the secret reside. */
108
+ catalogName?: string | undefined;
109
+ /** The name of the schema where the secret resides. */
110
+ schemaName?: string | undefined;
111
+ /**
112
+ * The secret value to store. This field is input-only and is not returned in responses — use
113
+ * the **effective_value** field (via GetSecret with **include_value** set to true) to read the
114
+ * secret value. The maximum size is 60 KiB (pre-encryption). Accepted content includes
115
+ * passwords, tokens, keys, and other sensitive credential data.
116
+ */
117
+ value?: string | undefined;
118
+ /**
119
+ * The secret value. Only populated in responses when you have the **READ_SECRET**
120
+ * privilege and **include_value** is set to true in the request. The maximum size is 60 KiB.
121
+ */
122
+ effectiveValue?: string | undefined;
123
+ /**
124
+ * Indicates whether the principal is limited to retrieving metadata for the associated object
125
+ * through the **BROWSE** privilege when **include_browse** is enabled in the request.
126
+ */
127
+ browseOnly?: boolean | undefined;
128
+ /**
129
+ * User-provided expiration time of the secret. This field indicates when the secret should no
130
+ * longer be used and may be displayed as a warning in the UI. It is purely informational and
131
+ * does not trigger any automatic actions or affect the secret's lifecycle.
132
+ */
133
+ expireTime?: Temporal.Instant | undefined;
134
+ externalSecretId?: string | undefined;
135
+ }
136
+ /** Request message for UpdateSecret. */
137
+ export interface UpdateSecretRequest {
138
+ /**
139
+ * The three-level (fully qualified) name of the secret
140
+ * (for example, **catalog_name.schema_name.secret_name**).
141
+ */
142
+ fullName?: string | undefined;
143
+ /**
144
+ * The secret object containing the fields to update. Only fields specified in **update_mask**
145
+ * will be updated.
146
+ */
147
+ secret?: Secret | undefined;
148
+ /**
149
+ * The field mask specifying which fields of the secret to update. Supported fields: **value**,
150
+ * **comment**, **owner**, **expire_time**.
151
+ */
152
+ updateMask?: FieldMask<Secret> | undefined;
153
+ }
154
+ export declare const unmarshalListSecretsResponseSchema: z.ZodType<ListSecretsResponse>;
155
+ export declare const unmarshalSecretSchema: z.ZodType<Secret>;
156
+ export declare const marshalSecretSchema: z.ZodType;
157
+ export declare function secretFieldMask(...paths: string[]): FieldMask<Secret>;
158
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/v1/model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,QAAQ,EAAC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,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CASvE,CAAC;AAER,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CA+C/C,CAAC;AAEN,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,OA+C/B,CAAC;AAsBN,wBAAgB,eAAe,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC,MAAM,CAAC,CAErE"}
@@ -0,0 +1,132 @@
1
+ // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
+ import { Temporal } from '@js-temporal/polyfill';
3
+ import { FieldMask } from '@databricks/sdk-core/wkt';
4
+ import { z } from 'zod';
5
+ export const unmarshalListSecretsResponseSchema = z
6
+ .object({
7
+ secrets: z.array(z.lazy(() => unmarshalSecretSchema)).optional(),
8
+ next_page_token: z.string().optional(),
9
+ })
10
+ .transform(d => ({
11
+ secrets: d.secrets,
12
+ nextPageToken: d.next_page_token,
13
+ }));
14
+ export const unmarshalSecretSchema = z
15
+ .object({
16
+ name: z.string().optional(),
17
+ owner: z.string().optional(),
18
+ effective_owner: z.string().optional(),
19
+ metastore_id: z.string().optional(),
20
+ create_time: z
21
+ .string()
22
+ .transform(s => Temporal.Instant.from(s))
23
+ .optional(),
24
+ created_by: z.string().optional(),
25
+ update_time: z
26
+ .string()
27
+ .transform(s => Temporal.Instant.from(s))
28
+ .optional(),
29
+ updated_by: z.string().optional(),
30
+ comment: z.string().optional(),
31
+ full_name: z.string().optional(),
32
+ catalog_name: z.string().optional(),
33
+ schema_name: z.string().optional(),
34
+ value: z.string().optional(),
35
+ effective_value: z.string().optional(),
36
+ browse_only: z.boolean().optional(),
37
+ expire_time: z
38
+ .string()
39
+ .transform(s => Temporal.Instant.from(s))
40
+ .optional(),
41
+ external_secret_id: z.string().optional(),
42
+ })
43
+ .transform(d => ({
44
+ name: d.name,
45
+ owner: d.owner,
46
+ effectiveOwner: d.effective_owner,
47
+ metastoreId: d.metastore_id,
48
+ createTime: d.create_time,
49
+ createdBy: d.created_by,
50
+ updateTime: d.update_time,
51
+ updatedBy: d.updated_by,
52
+ comment: d.comment,
53
+ fullName: d.full_name,
54
+ catalogName: d.catalog_name,
55
+ schemaName: d.schema_name,
56
+ value: d.value,
57
+ effectiveValue: d.effective_value,
58
+ browseOnly: d.browse_only,
59
+ expireTime: d.expire_time,
60
+ externalSecretId: d.external_secret_id,
61
+ }));
62
+ export const marshalSecretSchema = z
63
+ .object({
64
+ name: z.string().optional(),
65
+ owner: z.string().optional(),
66
+ effectiveOwner: z.string().optional(),
67
+ metastoreId: z.string().optional(),
68
+ createTime: z
69
+ .any()
70
+ .transform((d) => d.toString())
71
+ .optional(),
72
+ createdBy: z.string().optional(),
73
+ updateTime: z
74
+ .any()
75
+ .transform((d) => d.toString())
76
+ .optional(),
77
+ updatedBy: z.string().optional(),
78
+ comment: z.string().optional(),
79
+ fullName: z.string().optional(),
80
+ catalogName: z.string().optional(),
81
+ schemaName: z.string().optional(),
82
+ value: z.string().optional(),
83
+ effectiveValue: z.string().optional(),
84
+ browseOnly: z.boolean().optional(),
85
+ expireTime: z
86
+ .any()
87
+ .transform((d) => d.toString())
88
+ .optional(),
89
+ externalSecretId: z.string().optional(),
90
+ })
91
+ .transform(d => ({
92
+ name: d.name,
93
+ owner: d.owner,
94
+ effective_owner: d.effectiveOwner,
95
+ metastore_id: d.metastoreId,
96
+ create_time: d.createTime,
97
+ created_by: d.createdBy,
98
+ update_time: d.updateTime,
99
+ updated_by: d.updatedBy,
100
+ comment: d.comment,
101
+ full_name: d.fullName,
102
+ catalog_name: d.catalogName,
103
+ schema_name: d.schemaName,
104
+ value: d.value,
105
+ effective_value: d.effectiveValue,
106
+ browse_only: d.browseOnly,
107
+ expire_time: d.expireTime,
108
+ external_secret_id: d.externalSecretId,
109
+ }));
110
+ const secretFieldMaskSchema = {
111
+ browseOnly: { wire: 'browse_only' },
112
+ catalogName: { wire: 'catalog_name' },
113
+ comment: { wire: 'comment' },
114
+ createTime: { wire: 'create_time' },
115
+ createdBy: { wire: 'created_by' },
116
+ effectiveOwner: { wire: 'effective_owner' },
117
+ effectiveValue: { wire: 'effective_value' },
118
+ expireTime: { wire: 'expire_time' },
119
+ externalSecretId: { wire: 'external_secret_id' },
120
+ fullName: { wire: 'full_name' },
121
+ metastoreId: { wire: 'metastore_id' },
122
+ name: { wire: 'name' },
123
+ owner: { wire: 'owner' },
124
+ schemaName: { wire: 'schema_name' },
125
+ updateTime: { wire: 'update_time' },
126
+ updatedBy: { wire: 'updated_by' },
127
+ value: { wire: 'value' },
128
+ };
129
+ export function secretFieldMask(...paths) {
130
+ return FieldMask.build(paths, secretFieldMaskSchema);
131
+ }
132
+ //# sourceMappingURL=model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/v1/model.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AA+JtB,MAAM,CAAC,MAAM,kCAAkC,GAC7C,CAAC;KACE,MAAM,CAAC;IACN,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC;KACD,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACf,OAAO,EAAE,CAAC,CAAC,OAAO;IAClB,aAAa,EAAE,CAAC,CAAC,eAAe;CACjC,CAAC,CAAC,CAAC;AAER,MAAM,CAAC,MAAM,qBAAqB,GAAsB,CAAC;KACtD,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,C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AAU,eAAe,CAAC,GAAG,KAAe;IAChD,OAAO,SAAS,CAAC,KAAK,CAAS,KAAK,EAAE,qBAAqB,CAAC,CAAC;AAC/D,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { HttpClient } from '@databricks/sdk-core/http';
2
+ import type { ClientOptions } from '@databricks/sdk-options/client';
3
+ /** Creates a new HTTP client with the given options. */
4
+ export declare function newHttpClient(options?: ClientOptions): HttpClient;
5
+ //# sourceMappingURL=transport.d.ts.map
@@ -0,0 +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;AAEnC,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAElE,wDAAwD;AACxD,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,UAAU,CAwBjE"}
@@ -0,0 +1,57 @@
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
+ /** Creates a new HTTP client with the given options. */
5
+ export function newHttpClient(options) {
6
+ const opts = options ?? {};
7
+ // If an HTTP client is provided, use it as-is. Throw if other options are
8
+ // also set, since they would be silently ignored.
9
+ if (opts.httpClient !== undefined) {
10
+ if (opts.credentials !== undefined || opts.timeout !== undefined) {
11
+ throw new Error('httpClient cannot be combined with credentials or timeout');
12
+ }
13
+ return opts.httpClient;
14
+ }
15
+ const credentials = opts.credentials ?? defaultCredentials();
16
+ const base = newFetchHttpClient();
17
+ let client = new AuthHttpClient(base, credentials);
18
+ if (opts.timeout !== undefined) {
19
+ client = new TimeoutHttpClient(client, opts.timeout);
20
+ }
21
+ return client;
22
+ }
23
+ /** Wraps an HttpClient and adds authentication headers to requests. */
24
+ class AuthHttpClient {
25
+ base;
26
+ credentials;
27
+ constructor(base, credentials) {
28
+ this.base = base;
29
+ this.credentials = credentials;
30
+ }
31
+ async send(request) {
32
+ const authHeaders = await this.credentials.authHeaders();
33
+ // Do not modify the original request.
34
+ const headers = new Headers(request.headers);
35
+ for (const h of authHeaders) {
36
+ headers.set(h.key, h.value);
37
+ }
38
+ return this.base.send({ ...request, headers });
39
+ }
40
+ }
41
+ /** Wraps an HttpClient and applies a default timeout to requests. */
42
+ class TimeoutHttpClient {
43
+ base;
44
+ timeout;
45
+ constructor(base, timeout) {
46
+ this.base = base;
47
+ this.timeout = timeout;
48
+ }
49
+ async send(request) {
50
+ const timeoutSignal = AbortSignal.timeout(this.timeout);
51
+ const signal = request.signal !== undefined
52
+ ? AbortSignal.any([request.signal, timeoutSignal])
53
+ : timeoutSignal;
54
+ return this.base.send({ ...request, signal });
55
+ }
56
+ }
57
+ //# sourceMappingURL=transport.js.map
@@ -0,0 +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;AAG7D,wDAAwD;AACxD,MAAM,UAAU,aAAa,CAAC,OAAuB;IACnD,MAAM,IAAI,GAAG,OAAO,IAAI,EAAE,CAAC;IAE3B,0EAA0E;IAC1E,kDAAkD;IAClD,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;QAClC,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YACjE,MAAM,IAAI,KAAK,CACb,2DAA2D,CAC5D,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,IAAI,kBAAkB,EAAE,CAAC;IAE7D,MAAM,IAAI,GAAG,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W,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"}
@@ -0,0 +1,21 @@
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;
9
+ }
10
+ /**
11
+ * Translates public CallOptions to the internal Options shape accepted by
12
+ * execute(). Even though the shapes match today, this isolates the public
13
+ * API from the executor's internal type so they can diverge.
14
+ */
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;
21
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +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,UAAU,CAAC,CA2BrB;AAED,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,WAAW,EACpB,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC,UAAU,CAAC,GACzC,WAAW,CASb;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAI1E;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,GAAG,MAAM,CAEvE;AAED,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,eAAe,GACtB,IAAI,CAuBN"}
@@ -0,0 +1,113 @@
1
+ // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
+ import { execute } from '@databricks/sdk-core/ops';
3
+ import { ApiError } from '@databricks/sdk-core/apierror';
4
+ import JSONBig from 'json-bigint';
5
+ // JSON codec that preserves int64 precision. On the way in, large integer
6
+ // literals come back as bigint instead of being rounded to JS Number. On the
7
+ // way out, bigint values are emitted as raw JSON number digits.
8
+ const jsonBigint = JSONBig({ useNativeBigInt: true });
9
+ /**
10
+ * Translates public CallOptions to the internal Options shape accepted by
11
+ * execute(). Even though the shapes match today, this isolates the public
12
+ * API from the executor's internal type so they can diverge.
13
+ */
14
+ export async function executeCall(call, options) {
15
+ const opts = {
16
+ ...(options?.retrier !== undefined && { retrier: options.retrier }),
17
+ ...(options?.rateLimiter !== undefined && {
18
+ rateLimiter: options.rateLimiter,
19
+ }),
20
+ ...(options?.timeout !== undefined && { timeout: options.timeout }),
21
+ };
22
+ return execute(options?.signal, call, opts);
23
+ }
24
+ async function readAll(body) {
25
+ if (body === null) {
26
+ return new Uint8Array(0);
27
+ }
28
+ const reader = body.getReader();
29
+ const chunks = [];
30
+ for (;;) {
31
+ const { done, value } = await reader.read();
32
+ if (done) {
33
+ break;
34
+ }
35
+ chunks.push(value);
36
+ }
37
+ const totalLength = chunks.reduce((acc, chunk) => acc + chunk.length, 0);
38
+ const result = new Uint8Array(totalLength);
39
+ let offset = 0;
40
+ for (const chunk of chunks) {
41
+ result.set(chunk, offset);
42
+ offset += chunk.length;
43
+ }
44
+ return result;
45
+ }
46
+ export async function executeHttpCall(opts) {
47
+ opts.logger.debug('HTTP request', {
48
+ method: opts.request.method,
49
+ url: opts.request.url,
50
+ });
51
+ let resp;
52
+ try {
53
+ resp = await opts.httpClient.send(opts.request);
54
+ }
55
+ catch (e) {
56
+ opts.logger.debug('HTTP request failed');
57
+ throw e;
58
+ }
59
+ const body = await readAll(resp.body);
60
+ opts.logger.debug('HTTP response', {
61
+ statusCode: resp.statusCode,
62
+ body: new TextDecoder().decode(body),
63
+ });
64
+ const apiErr = ApiError.fromHttpError(resp.statusCode, resp.headers, body);
65
+ if (apiErr !== undefined) {
66
+ throw apiErr;
67
+ }
68
+ return body;
69
+ }
70
+ export function buildHttpRequest(method, url, headers, signal, body) {
71
+ const req = { url, method, headers };
72
+ if (body !== undefined) {
73
+ req.body = body;
74
+ }
75
+ if (signal !== undefined) {
76
+ req.signal = signal;
77
+ }
78
+ return req;
79
+ }
80
+ export function parseResponse(body, schema) {
81
+ const text = new TextDecoder().decode(body);
82
+ const parsed = jsonBigint.parse(text);
83
+ return schema.parse(parsed);
84
+ }
85
+ export function marshalRequest(data, schema) {
86
+ return jsonBigint.stringify(schema.parse(data));
87
+ }
88
+ export function flattenQueryParams(prefix, value, params) {
89
+ if (value === null || value === undefined) {
90
+ return;
91
+ }
92
+ if (Array.isArray(value)) {
93
+ // arrays of objects are not yet supported
94
+ for (const item of value) {
95
+ params.append(prefix, String(item));
96
+ }
97
+ }
98
+ else if (typeof value === 'object') {
99
+ for (const [key, val] of Object.entries(value)) {
100
+ flattenQueryParams(`${prefix}.${key}`, val, params);
101
+ }
102
+ }
103
+ else if (typeof value === 'string' ||
104
+ typeof value === 'number' ||
105
+ typeof value === 'boolean' ||
106
+ typeof value === 'bigint') {
107
+ params.append(prefix, String(value));
108
+ }
109
+ else {
110
+ throw new Error(`Unsupported query parameter type: ${typeof value}`);
111
+ }
112
+ }
113
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/v1/utils.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAG/E,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAC,QAAQ,EAAC,MAAM,+BAA+B,CAAC;AAQvD,OAAO,OAAO,MAAM,aAAa,CAAC;AAGlC,0EAA0E;AAC1E,6EAA6E;AAC7E,gEAAgE;AAChE,MAAM,UAAU,GAAG,OAAO,CAAC,EAAC,eAAe,EAAE,IAAI,EAAC,CAAC,CAAC;AAQpD;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAC/B,IAA6C,EAC7C,OAAqB;IAErB,MAAM,IAAI,GAAY;QACpB,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,SAAS,IAAI,EAAC,OAAO,EAAE,OAAO,CAAC,OAAO,EAAC,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1B,OAAO,KAAK,KAAK,QAAQ,EACzB,CAAC;QACD,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACvC,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CAAC,qCAAqC,OAAO,KAAK,EAAE,CAAC,CAAC;IACvE,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,41 @@
1
1
  {
2
2
  "name": "@databricks/sdk-uc-secrets",
3
- "version": "0.0.0-dev",
4
- "description": "Bootstrap placeholder; real contents in a later release.",
5
- "main": "index.js",
6
- "license": "Apache-2.0"
3
+ "version": "0.1.0-dev.2",
4
+ "description": "",
5
+ "type": "module",
6
+ "exports": {
7
+ "./v1": {
8
+ "types": "./dist/v1/index.d.ts",
9
+ "import": "./dist/v1/index.js"
10
+ }
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "src",
15
+ "LICENSE"
16
+ ],
17
+ "scripts": {
18
+ "build": "tsc -b",
19
+ "lint": "eslint src --ext .ts",
20
+ "lint:fix": "eslint src --ext .ts --fix",
21
+ "format": "prettier --write \"src/**/*.ts\"",
22
+ "format:check": "prettier --check \"src/**/*.ts\"",
23
+ "typecheck": "tsc --noEmit",
24
+ "clean": "rm -rf dist tsconfig.tsbuildinfo",
25
+ "test": "echo 'no tests'",
26
+ "test:browser": "echo 'no tests'"
27
+ },
28
+ "author": "Databricks",
29
+ "license": "Apache-2.0",
30
+ "dependencies": {
31
+ "@databricks/sdk-auth": ">=0.1.0-dev.3 <1.0.0",
32
+ "@databricks/sdk-core": ">=0.1.0-dev.4 <1.0.0",
33
+ "@databricks/sdk-options": ">=0.1.0-dev.3 <1.0.0",
34
+ "@js-temporal/polyfill": "^0.5.0",
35
+ "json-bigint": "^1.0.0",
36
+ "zod": "^4.3.6"
37
+ },
38
+ "engines": {
39
+ "node": ">=22.0.0"
40
+ }
7
41
  }