@databricks/sdk-uc-grants 0.52.0 → 0.53.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/v1/model.js CHANGED
@@ -1,58 +1,245 @@
1
+ import JSONBig from "json-bigint";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/v1/model.ts
5
+ const jsonBigint = JSONBig({ useNativeBigInt: true });
6
+ const jsonNumberText = JSONBig({ storeAsString: true });
7
+ function parseJson(text) {
8
+ const value = JSON.parse(text);
9
+ return /\d{16}/.test(text) ? withExactIntegers(value, jsonNumberText.parse(text)) : value;
10
+ }
11
+ function withExactIntegers(value, numberText) {
12
+ if (typeof value === "number") return !Number.isSafeInteger(value) && typeof numberText === "string" && /^-?\d+$/.test(numberText) ? BigInt(numberText) : value;
13
+ if (Array.isArray(value)) {
14
+ const items = numberText;
15
+ return value.map((item, i) => withExactIntegers(item, items[i]));
16
+ }
17
+ if (typeof value === "object" && value !== null) {
18
+ const fields = numberText;
19
+ return Object.fromEntries(Object.entries(value).map(([key, item]) => [key, withExactIntegers(item, fields[key])]));
20
+ }
21
+ return value;
22
+ }
4
23
  const unmarshalEffectivePrivilegeSchema = z.object({
5
- privilege: z.string().optional(),
6
- inherited_from_type: z.string().optional(),
7
- inherited_from_name: z.string().optional()
24
+ privilege: z.string().nullish().transform((v) => v ?? void 0),
25
+ inherited_from_type: z.string().nullish().transform((v) => v ?? void 0),
26
+ inherited_from_name: z.string().nullish().transform((v) => v ?? void 0)
8
27
  }).transform((d) => ({
9
28
  privilege: d.privilege,
10
29
  inheritedFromType: d.inherited_from_type,
11
30
  inheritedFromName: d.inherited_from_name
12
31
  }));
13
32
  const unmarshalEffectivePrivilegeAssignmentSchema = z.object({
14
- principal: z.string().optional(),
15
- privileges: z.array(z.lazy(() => unmarshalEffectivePrivilegeSchema)).optional()
33
+ principal: z.string().nullish().transform((v) => v ?? void 0),
34
+ privileges: z.array(z.lazy(() => unmarshalEffectivePrivilegeSchema)).nullish().transform((v) => v ?? void 0)
16
35
  }).transform((d) => ({
17
36
  principal: d.principal,
18
37
  privileges: d.privileges
19
38
  }));
39
+ const unmarshalGetEffectivePermissionsRequestSchema = z.object({
40
+ securable_type: z.string().nullish().transform((v) => v ?? void 0),
41
+ securable_full_name: z.string().nullish().transform((v) => v ?? void 0),
42
+ principal: z.string().nullish().transform((v) => v ?? void 0),
43
+ max_results: z.number().int().nullish().transform((v) => v ?? void 0),
44
+ page_token: z.string().nullish().transform((v) => v ?? void 0)
45
+ }).transform((d) => ({
46
+ securableType: d.securable_type,
47
+ securableFullName: d.securable_full_name,
48
+ principal: d.principal,
49
+ maxResults: d.max_results,
50
+ pageToken: d.page_token
51
+ }));
20
52
  const unmarshalGetEffectivePermissionsResponseSchema = z.object({
21
- next_page_token: z.string().optional(),
22
- privilege_assignments: z.array(z.lazy(() => unmarshalEffectivePrivilegeAssignmentSchema)).optional()
53
+ next_page_token: z.string().nullish().transform((v) => v ?? void 0),
54
+ privilege_assignments: z.array(z.lazy(() => unmarshalEffectivePrivilegeAssignmentSchema)).nullish().transform((v) => v ?? void 0)
23
55
  }).transform((d) => ({
24
56
  nextPageToken: d.next_page_token,
25
57
  privilegeAssignments: d.privilege_assignments
26
58
  }));
59
+ const unmarshalGetPermissionsRequestSchema = z.object({
60
+ securable_type: z.string().nullish().transform((v) => v ?? void 0),
61
+ securable_full_name: z.string().nullish().transform((v) => v ?? void 0),
62
+ principal: z.string().nullish().transform((v) => v ?? void 0),
63
+ max_results: z.number().int().nullish().transform((v) => v ?? void 0),
64
+ page_token: z.string().nullish().transform((v) => v ?? void 0)
65
+ }).transform((d) => ({
66
+ securableType: d.securable_type,
67
+ securableFullName: d.securable_full_name,
68
+ principal: d.principal,
69
+ maxResults: d.max_results,
70
+ pageToken: d.page_token
71
+ }));
27
72
  const unmarshalGetPermissionsResponseSchema = z.object({
28
- next_page_token: z.string().optional(),
29
- privilege_assignments: z.array(z.lazy(() => unmarshalPrivilegeAssignmentSchema)).optional()
73
+ next_page_token: z.string().nullish().transform((v) => v ?? void 0),
74
+ privilege_assignments: z.array(z.lazy(() => unmarshalPrivilegeAssignmentSchema)).nullish().transform((v) => v ?? void 0)
30
75
  }).transform((d) => ({
31
76
  nextPageToken: d.next_page_token,
32
77
  privilegeAssignments: d.privilege_assignments
33
78
  }));
79
+ const unmarshalListEffectivePrivilegeAssignmentsRequestSchema = z.object({
80
+ securable_type: z.string().nullish().transform((v) => v ?? void 0),
81
+ full_name: z.string().nullish().transform((v) => v ?? void 0),
82
+ principal: z.string().nullish().transform((v) => v ?? void 0),
83
+ page_size: z.number().int().nullish().transform((v) => v ?? void 0),
84
+ page_token: z.string().nullish().transform((v) => v ?? void 0)
85
+ }).transform((d) => ({
86
+ securableType: d.securable_type,
87
+ fullName: d.full_name,
88
+ principal: d.principal,
89
+ pageSize: d.page_size,
90
+ pageToken: d.page_token
91
+ }));
34
92
  const unmarshalListEffectivePrivilegeAssignmentsResponseSchema = z.object({
35
- effective_privilege_assignments: z.array(z.lazy(() => unmarshalEffectivePrivilegeAssignmentSchema)).optional(),
36
- next_page_token: z.string().optional()
93
+ effective_privilege_assignments: z.array(z.lazy(() => unmarshalEffectivePrivilegeAssignmentSchema)).nullish().transform((v) => v ?? void 0),
94
+ next_page_token: z.string().nullish().transform((v) => v ?? void 0)
37
95
  }).transform((d) => ({
38
96
  effectivePrivilegeAssignments: d.effective_privilege_assignments,
39
97
  nextPageToken: d.next_page_token
40
98
  }));
99
+ const unmarshalListPrivilegeAssignmentsRequestSchema = z.object({
100
+ securable_type: z.string().nullish().transform((v) => v ?? void 0),
101
+ full_name: z.string().nullish().transform((v) => v ?? void 0),
102
+ principal: z.string().nullish().transform((v) => v ?? void 0),
103
+ page_size: z.number().int().nullish().transform((v) => v ?? void 0),
104
+ page_token: z.string().nullish().transform((v) => v ?? void 0)
105
+ }).transform((d) => ({
106
+ securableType: d.securable_type,
107
+ fullName: d.full_name,
108
+ principal: d.principal,
109
+ pageSize: d.page_size,
110
+ pageToken: d.page_token
111
+ }));
41
112
  const unmarshalListPrivilegeAssignmentsResponseSchema = z.object({
42
- privilege_assignments: z.array(z.lazy(() => unmarshalPrivilegeAssignmentSchema)).optional(),
43
- next_page_token: z.string().optional()
113
+ privilege_assignments: z.array(z.lazy(() => unmarshalPrivilegeAssignmentSchema)).nullish().transform((v) => v ?? void 0),
114
+ next_page_token: z.string().nullish().transform((v) => v ?? void 0)
44
115
  }).transform((d) => ({
45
116
  privilegeAssignments: d.privilege_assignments,
46
117
  nextPageToken: d.next_page_token
47
118
  }));
119
+ const unmarshalPermissionsChangeSchema = z.object({
120
+ principal: z.string().nullish().transform((v) => v ?? void 0),
121
+ add: z.array(z.string()).nullish().transform((v) => v ?? void 0),
122
+ remove: z.array(z.string()).nullish().transform((v) => v ?? void 0)
123
+ }).transform((d) => ({
124
+ principal: d.principal,
125
+ add: d.add,
126
+ remove: d.remove
127
+ }));
48
128
  const unmarshalPrivilegeAssignmentSchema = z.object({
129
+ principal: z.string().nullish().transform((v) => v ?? void 0),
130
+ privileges: z.array(z.string()).nullish().transform((v) => v ?? void 0)
131
+ }).transform((d) => ({
132
+ principal: d.principal,
133
+ privileges: d.privileges
134
+ }));
135
+ const unmarshalUpdatePermissionsRequestSchema = z.object({
136
+ securable_type: z.string().nullish().transform((v) => v ?? void 0),
137
+ securable_full_name: z.string().nullish().transform((v) => v ?? void 0),
138
+ omit_permissions_in_response: z.boolean().nullish().transform((v) => v ?? void 0),
139
+ changes: z.array(z.lazy(() => unmarshalPermissionsChangeSchema)).nullish().transform((v) => v ?? void 0)
140
+ }).transform((d) => ({
141
+ securableType: d.securable_type,
142
+ securableFullName: d.securable_full_name,
143
+ omitPermissionsInResponse: d.omit_permissions_in_response,
144
+ changes: d.changes
145
+ }));
146
+ const unmarshalUpdatePermissionsResponseSchema = z.object({ privilege_assignments: z.array(z.lazy(() => unmarshalPrivilegeAssignmentSchema)).nullish().transform((v) => v ?? void 0) }).transform((d) => ({ privilegeAssignments: d.privilege_assignments }));
147
+ const marshalEffectivePrivilegeSchema = z.object({
148
+ privilege: z.string().optional(),
149
+ inheritedFromType: z.string().optional(),
150
+ inheritedFromName: z.string().optional()
151
+ }).transform((d) => ({
152
+ privilege: d.privilege,
153
+ inherited_from_type: d.inheritedFromType,
154
+ inherited_from_name: d.inheritedFromName
155
+ }));
156
+ const marshalEffectivePrivilegeAssignmentSchema = z.object({
49
157
  principal: z.string().optional(),
50
- privileges: z.array(z.string()).optional()
158
+ privileges: z.array(z.lazy(() => marshalEffectivePrivilegeSchema)).optional()
51
159
  }).transform((d) => ({
52
160
  principal: d.principal,
53
161
  privileges: d.privileges
54
162
  }));
55
- const unmarshalUpdatePermissionsResponseSchema = z.object({ privilege_assignments: z.array(z.lazy(() => unmarshalPrivilegeAssignmentSchema)).optional() }).transform((d) => ({ privilegeAssignments: d.privilege_assignments }));
163
+ const marshalGetEffectivePermissionsRequestSchema = z.object({
164
+ securableType: z.string().optional(),
165
+ securableFullName: z.string().optional(),
166
+ principal: z.string().optional(),
167
+ maxResults: z.number().int().optional(),
168
+ pageToken: z.string().optional()
169
+ }).transform((d) => ({
170
+ securable_type: d.securableType,
171
+ securable_full_name: d.securableFullName,
172
+ principal: d.principal,
173
+ max_results: d.maxResults,
174
+ page_token: d.pageToken
175
+ }));
176
+ const marshalGetEffectivePermissionsResponseSchema = z.object({
177
+ nextPageToken: z.string().optional(),
178
+ privilegeAssignments: z.array(z.lazy(() => marshalEffectivePrivilegeAssignmentSchema)).optional()
179
+ }).transform((d) => ({
180
+ next_page_token: d.nextPageToken,
181
+ privilege_assignments: d.privilegeAssignments
182
+ }));
183
+ const marshalGetPermissionsRequestSchema = z.object({
184
+ securableType: z.string().optional(),
185
+ securableFullName: z.string().optional(),
186
+ principal: z.string().optional(),
187
+ maxResults: z.number().int().optional(),
188
+ pageToken: z.string().optional()
189
+ }).transform((d) => ({
190
+ securable_type: d.securableType,
191
+ securable_full_name: d.securableFullName,
192
+ principal: d.principal,
193
+ max_results: d.maxResults,
194
+ page_token: d.pageToken
195
+ }));
196
+ const marshalGetPermissionsResponseSchema = z.object({
197
+ nextPageToken: z.string().optional(),
198
+ privilegeAssignments: z.array(z.lazy(() => marshalPrivilegeAssignmentSchema)).optional()
199
+ }).transform((d) => ({
200
+ next_page_token: d.nextPageToken,
201
+ privilege_assignments: d.privilegeAssignments
202
+ }));
203
+ const marshalListEffectivePrivilegeAssignmentsRequestSchema = z.object({
204
+ securableType: z.string().optional(),
205
+ fullName: z.string().optional(),
206
+ principal: z.string().optional(),
207
+ pageSize: z.number().int().optional(),
208
+ pageToken: z.string().optional()
209
+ }).transform((d) => ({
210
+ securable_type: d.securableType,
211
+ full_name: d.fullName,
212
+ principal: d.principal,
213
+ page_size: d.pageSize,
214
+ page_token: d.pageToken
215
+ }));
216
+ const marshalListEffectivePrivilegeAssignmentsResponseSchema = z.object({
217
+ effectivePrivilegeAssignments: z.array(z.lazy(() => marshalEffectivePrivilegeAssignmentSchema)).optional(),
218
+ nextPageToken: z.string().optional()
219
+ }).transform((d) => ({
220
+ effective_privilege_assignments: d.effectivePrivilegeAssignments,
221
+ next_page_token: d.nextPageToken
222
+ }));
223
+ const marshalListPrivilegeAssignmentsRequestSchema = z.object({
224
+ securableType: z.string().optional(),
225
+ fullName: z.string().optional(),
226
+ principal: z.string().optional(),
227
+ pageSize: z.number().int().optional(),
228
+ pageToken: z.string().optional()
229
+ }).transform((d) => ({
230
+ securable_type: d.securableType,
231
+ full_name: d.fullName,
232
+ principal: d.principal,
233
+ page_size: d.pageSize,
234
+ page_token: d.pageToken
235
+ }));
236
+ const marshalListPrivilegeAssignmentsResponseSchema = z.object({
237
+ privilegeAssignments: z.array(z.lazy(() => marshalPrivilegeAssignmentSchema)).optional(),
238
+ nextPageToken: z.string().optional()
239
+ }).transform((d) => ({
240
+ privilege_assignments: d.privilegeAssignments,
241
+ next_page_token: d.nextPageToken
242
+ }));
56
243
  const marshalPermissionsChangeSchema = z.object({
57
244
  principal: z.string().optional(),
58
245
  add: z.array(z.string()).optional(),
@@ -62,6 +249,13 @@ const marshalPermissionsChangeSchema = z.object({
62
249
  add: d.add,
63
250
  remove: d.remove
64
251
  }));
252
+ const marshalPrivilegeAssignmentSchema = z.object({
253
+ principal: z.string().optional(),
254
+ privileges: z.array(z.string()).optional()
255
+ }).transform((d) => ({
256
+ principal: d.principal,
257
+ privileges: d.privileges
258
+ }));
65
259
  const marshalUpdatePermissionsRequestSchema = z.object({
66
260
  securableType: z.string().optional(),
67
261
  securableFullName: z.string().optional(),
@@ -73,7 +267,78 @@ const marshalUpdatePermissionsRequestSchema = z.object({
73
267
  omit_permissions_in_response: d.omitPermissionsInResponse,
74
268
  changes: d.changes
75
269
  }));
270
+ const marshalUpdatePermissionsResponseSchema = z.object({ privilegeAssignments: z.array(z.lazy(() => marshalPrivilegeAssignmentSchema)).optional() }).transform((d) => ({ privilege_assignments: d.privilegeAssignments }));
271
+ /** Converts EffectivePrivilege messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */
272
+ const EffectivePrivilege = {
273
+ toJson: (message) => jsonBigint.stringify(marshalEffectivePrivilegeSchema.parse(message)),
274
+ fromJson: (json) => unmarshalEffectivePrivilegeSchema.parse(parseJson(json))
275
+ };
276
+ /** Converts EffectivePrivilegeAssignment messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */
277
+ const EffectivePrivilegeAssignment = {
278
+ toJson: (message) => jsonBigint.stringify(marshalEffectivePrivilegeAssignmentSchema.parse(message)),
279
+ fromJson: (json) => unmarshalEffectivePrivilegeAssignmentSchema.parse(parseJson(json))
280
+ };
281
+ /** Converts GetEffectivePermissionsRequest messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */
282
+ const GetEffectivePermissionsRequest = {
283
+ toJson: (message) => jsonBigint.stringify(marshalGetEffectivePermissionsRequestSchema.parse(message)),
284
+ fromJson: (json) => unmarshalGetEffectivePermissionsRequestSchema.parse(parseJson(json))
285
+ };
286
+ /** Converts GetEffectivePermissionsResponse messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */
287
+ const GetEffectivePermissionsResponse = {
288
+ toJson: (message) => jsonBigint.stringify(marshalGetEffectivePermissionsResponseSchema.parse(message)),
289
+ fromJson: (json) => unmarshalGetEffectivePermissionsResponseSchema.parse(parseJson(json))
290
+ };
291
+ /** Converts GetPermissionsRequest messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */
292
+ const GetPermissionsRequest = {
293
+ toJson: (message) => jsonBigint.stringify(marshalGetPermissionsRequestSchema.parse(message)),
294
+ fromJson: (json) => unmarshalGetPermissionsRequestSchema.parse(parseJson(json))
295
+ };
296
+ /** Converts GetPermissionsResponse messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */
297
+ const GetPermissionsResponse = {
298
+ toJson: (message) => jsonBigint.stringify(marshalGetPermissionsResponseSchema.parse(message)),
299
+ fromJson: (json) => unmarshalGetPermissionsResponseSchema.parse(parseJson(json))
300
+ };
301
+ /** Converts ListEffectivePrivilegeAssignmentsRequest messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */
302
+ const ListEffectivePrivilegeAssignmentsRequest = {
303
+ toJson: (message) => jsonBigint.stringify(marshalListEffectivePrivilegeAssignmentsRequestSchema.parse(message)),
304
+ fromJson: (json) => unmarshalListEffectivePrivilegeAssignmentsRequestSchema.parse(parseJson(json))
305
+ };
306
+ /** Converts ListEffectivePrivilegeAssignmentsResponse messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */
307
+ const ListEffectivePrivilegeAssignmentsResponse = {
308
+ toJson: (message) => jsonBigint.stringify(marshalListEffectivePrivilegeAssignmentsResponseSchema.parse(message)),
309
+ fromJson: (json) => unmarshalListEffectivePrivilegeAssignmentsResponseSchema.parse(parseJson(json))
310
+ };
311
+ /** Converts ListPrivilegeAssignmentsRequest messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */
312
+ const ListPrivilegeAssignmentsRequest = {
313
+ toJson: (message) => jsonBigint.stringify(marshalListPrivilegeAssignmentsRequestSchema.parse(message)),
314
+ fromJson: (json) => unmarshalListPrivilegeAssignmentsRequestSchema.parse(parseJson(json))
315
+ };
316
+ /** Converts ListPrivilegeAssignmentsResponse messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */
317
+ const ListPrivilegeAssignmentsResponse = {
318
+ toJson: (message) => jsonBigint.stringify(marshalListPrivilegeAssignmentsResponseSchema.parse(message)),
319
+ fromJson: (json) => unmarshalListPrivilegeAssignmentsResponseSchema.parse(parseJson(json))
320
+ };
321
+ /** Converts PermissionsChange messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */
322
+ const PermissionsChange = {
323
+ toJson: (message) => jsonBigint.stringify(marshalPermissionsChangeSchema.parse(message)),
324
+ fromJson: (json) => unmarshalPermissionsChangeSchema.parse(parseJson(json))
325
+ };
326
+ /** Converts PrivilegeAssignment messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */
327
+ const PrivilegeAssignment = {
328
+ toJson: (message) => jsonBigint.stringify(marshalPrivilegeAssignmentSchema.parse(message)),
329
+ fromJson: (json) => unmarshalPrivilegeAssignmentSchema.parse(parseJson(json))
330
+ };
331
+ /** Converts UpdatePermissionsRequest messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */
332
+ const UpdatePermissionsRequest = {
333
+ toJson: (message) => jsonBigint.stringify(marshalUpdatePermissionsRequestSchema.parse(message)),
334
+ fromJson: (json) => unmarshalUpdatePermissionsRequestSchema.parse(parseJson(json))
335
+ };
336
+ /** Converts UpdatePermissionsResponse messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */
337
+ const UpdatePermissionsResponse = {
338
+ toJson: (message) => jsonBigint.stringify(marshalUpdatePermissionsResponseSchema.parse(message)),
339
+ fromJson: (json) => unmarshalUpdatePermissionsResponseSchema.parse(parseJson(json))
340
+ };
76
341
 
77
342
  //#endregion
78
- export { marshalPermissionsChangeSchema, marshalUpdatePermissionsRequestSchema, unmarshalEffectivePrivilegeAssignmentSchema, unmarshalEffectivePrivilegeSchema, unmarshalGetEffectivePermissionsResponseSchema, unmarshalGetPermissionsResponseSchema, unmarshalListEffectivePrivilegeAssignmentsResponseSchema, unmarshalListPrivilegeAssignmentsResponseSchema, unmarshalPrivilegeAssignmentSchema, unmarshalUpdatePermissionsResponseSchema };
343
+ export { EffectivePrivilege, EffectivePrivilegeAssignment, GetEffectivePermissionsRequest, GetEffectivePermissionsResponse, GetPermissionsRequest, GetPermissionsResponse, ListEffectivePrivilegeAssignmentsRequest, ListEffectivePrivilegeAssignmentsResponse, ListPrivilegeAssignmentsRequest, ListPrivilegeAssignmentsResponse, PermissionsChange, PrivilegeAssignment, UpdatePermissionsRequest, UpdatePermissionsResponse, marshalEffectivePrivilegeAssignmentSchema, marshalEffectivePrivilegeSchema, marshalGetEffectivePermissionsRequestSchema, marshalGetEffectivePermissionsResponseSchema, marshalGetPermissionsRequestSchema, marshalGetPermissionsResponseSchema, marshalListEffectivePrivilegeAssignmentsRequestSchema, marshalListEffectivePrivilegeAssignmentsResponseSchema, marshalListPrivilegeAssignmentsRequestSchema, marshalListPrivilegeAssignmentsResponseSchema, marshalPermissionsChangeSchema, marshalPrivilegeAssignmentSchema, marshalUpdatePermissionsRequestSchema, marshalUpdatePermissionsResponseSchema, unmarshalEffectivePrivilegeAssignmentSchema, unmarshalEffectivePrivilegeSchema, unmarshalGetEffectivePermissionsRequestSchema, unmarshalGetEffectivePermissionsResponseSchema, unmarshalGetPermissionsRequestSchema, unmarshalGetPermissionsResponseSchema, unmarshalListEffectivePrivilegeAssignmentsRequestSchema, unmarshalListEffectivePrivilegeAssignmentsResponseSchema, unmarshalListPrivilegeAssignmentsRequestSchema, unmarshalListPrivilegeAssignmentsResponseSchema, unmarshalPermissionsChangeSchema, unmarshalPrivilegeAssignmentSchema, unmarshalUpdatePermissionsRequestSchema, unmarshalUpdatePermissionsResponseSchema };
79
344
  //# sourceMappingURL=model.js.map
@@ -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\nexport interface EffectivePrivilege {\n /** The privilege assigned to the principal. */\n privilege?: string | undefined;\n /**\n * The type of the object that conveys this privilege via inheritance.\n * This field is omitted when privilege is not inherited (it's assigned to the securable itself).\n */\n inheritedFromType?: string | undefined;\n /**\n * The full name of the object that conveys this privilege via inheritance.\n * This field is omitted when privilege is not inherited (it's assigned to the securable itself).\n */\n inheritedFromName?: string | undefined;\n}\n\nexport interface EffectivePrivilegeAssignment {\n /** The principal (user email address or group name). */\n principal?: string | undefined;\n /** The privileges conveyed to the principal (either directly or via inheritance). */\n privileges?: EffectivePrivilege[] | undefined;\n}\n\nexport interface GetEffectivePermissionsRequest {\n /** Type of securable. */\n securableType?: string | undefined;\n /** Full name of securable. */\n securableFullName?: string | undefined;\n /** If provided, only the effective permissions for the specified principal (user or group) are returned. */\n principal?: string | undefined;\n /**\n * Specifies the maximum number of privileges to return (page length).\n * Every EffectivePrivilegeAssignment present in a single page response is guaranteed to contain all the effective\n * privileges granted on (or inherited by) the requested Securable for the respective principal.\n *\n * If not set, all the effective permissions are returned.\n * If set to\n * - lesser than 0: invalid parameter error\n * - 0: page length is set to a server configured value\n * - lesser than 150 but greater than 0: invalid parameter error (this is to ensure that server is able to return at\n * least one complete EffectivePrivilegeAssignment in a single page response)\n * - greater than (or equal to) 150: page length is the minimum of this value and a server configured value\n */\n maxResults?: number | undefined;\n /** Opaque token for the next page of results (pagination). */\n pageToken?: string | undefined;\n}\n\nexport interface GetEffectivePermissionsResponse {\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 /** The privileges conveyed to each principal (either directly or via inheritance) */\n privilegeAssignments?: EffectivePrivilegeAssignment[] | undefined;\n}\n\nexport interface GetPermissionsRequest {\n /** Type of securable. */\n securableType?: string | undefined;\n /** Full name of securable. */\n securableFullName?: string | undefined;\n /** If provided, only the permissions for the specified principal (user or group) are returned. */\n principal?: string | undefined;\n /**\n * Specifies the maximum number of privileges to return (page length).\n * Every PrivilegeAssignment present in a single page response is guaranteed to contain all the privileges granted on\n * the requested Securable for the respective principal.\n *\n * If not set, all the permissions are returned.\n * If set to\n * - lesser than 0: invalid parameter error\n * - 0: page length is set to a server configured value\n * - lesser than 150 but greater than 0: invalid parameter error (this is to ensure that server is able to return at\n * least one complete PrivilegeAssignment in a single page response)\n * - greater than (or equal to) 150: page length is the minimum of this value and a server configured value\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 GetPermissionsResponse {\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 /** The privileges assigned to each principal */\n privilegeAssignments?: PrivilegeAssignment[] | undefined;\n}\n\nexport interface ListEffectivePrivilegeAssignmentsRequest {\n /** Type of securable. */\n securableType?: string | undefined;\n /** Full name of securable. */\n fullName?: string | undefined;\n /** If provided, only the effective permissions for the specified principal (user or group) are returned. */\n principal?: string | undefined;\n /**\n * Specifies the maximum number of privilege assignments to return (page length).\n * Every EffectivePrivilegeAssignment present in a single page response is guaranteed to contain all the effective\n * privileges granted on (or inherited by) the requested Securable for the respective principal.\n *\n * If not set, a server-configured default is used.\n * If set to\n * - lesser than 0: invalid parameter error\n * - 0: page length is set to a server configured value\n * - lesser than 150 but greater than 0: invalid parameter error (this is to ensure that server is able to return at\n * least one complete EffectivePrivilegeAssignment in a single page response)\n * - greater than (or equal to) 150: page length is the minimum of this value and a server configured value\n */\n pageSize?: number | undefined;\n /** Opaque pagination token to go to next page based on previous query. */\n pageToken?: string | undefined;\n}\n\nexport interface ListEffectivePrivilegeAssignmentsResponse {\n /** The effective privilege assignments for the securable (and optional principal). */\n effectivePrivilegeAssignments?: EffectivePrivilegeAssignment[] | 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 ListPrivilegeAssignmentsRequest {\n /** Type of securable. */\n securableType?: string | undefined;\n /** Full name of securable. */\n fullName?: string | undefined;\n /** If provided, only the permissions for the specified principal (user or group) are returned. */\n principal?: string | undefined;\n /**\n * Specifies the maximum number of privilege assignments to return (page length).\n * Every PrivilegeAssignment present in a single page response is guaranteed to contain all the privileges granted on\n * the requested Securable for the respective principal.\n *\n * If not set, page length is the server configured value.\n * If set to\n * - lesser than 0: invalid parameter error\n * - 0: page length is set to a server configured value\n * - lesser than 150 but greater than 0: invalid parameter error (this is to ensure that server is able to return at\n * least one complete PrivilegeAssignment in a single page response)\n * - greater than (or equal to) 150: page length is the minimum of this value and a server configured value\n */\n pageSize?: number | undefined;\n /** Opaque pagination token to go to next page based on previous query. */\n pageToken?: string | undefined;\n}\n\nexport interface ListPrivilegeAssignmentsResponse {\n privilegeAssignments?: PrivilegeAssignment[] | 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 PermissionsChange {\n /**\n * The principal whose privileges we are changing.\n * Only one of principal or principal_id should be specified, never both at the same time.\n */\n principal?: string | undefined;\n /** The set of privileges to add. */\n add?: string[] | undefined;\n /** The set of privileges to remove. */\n remove?: string[] | undefined;\n}\n\nexport interface PrivilegeAssignment {\n /**\n * The principal (user email address or group name).\n * For deleted principals, `principal` is empty while `principal_id` is populated.\n */\n principal?: string | undefined;\n /** The privileges assigned to the principal. */\n privileges?: string[] | undefined;\n}\n\nexport interface UpdatePermissionsRequest {\n /** Type of securable. */\n securableType?: string | undefined;\n /** Full name of securable. */\n securableFullName?: string | undefined;\n /** Optional, default false. Specifies whether all the permissions should be returned in the response. */\n omitPermissionsInResponse?: boolean | undefined;\n /** Array of permissions change objects. */\n changes?: PermissionsChange[] | undefined;\n}\n\nexport interface UpdatePermissionsResponse {\n /** The privileges assigned to each principal */\n privilegeAssignments?: PrivilegeAssignment[] | undefined;\n}\n\nexport const unmarshalEffectivePrivilegeSchema: z.ZodType<EffectivePrivilege> =\n z\n .object({\n privilege: z.string().optional(),\n inherited_from_type: z.string().optional(),\n inherited_from_name: z.string().optional(),\n })\n .transform(d => ({\n privilege: d.privilege,\n inheritedFromType: d.inherited_from_type,\n inheritedFromName: d.inherited_from_name,\n }));\n\nexport const unmarshalEffectivePrivilegeAssignmentSchema: z.ZodType<EffectivePrivilegeAssignment> =\n z\n .object({\n principal: z.string().optional(),\n privileges: z\n .array(z.lazy(() => unmarshalEffectivePrivilegeSchema))\n .optional(),\n })\n .transform(d => ({\n principal: d.principal,\n privileges: d.privileges,\n }));\n\nexport const unmarshalGetEffectivePermissionsResponseSchema: z.ZodType<GetEffectivePermissionsResponse> =\n z\n .object({\n next_page_token: z.string().optional(),\n privilege_assignments: z\n .array(z.lazy(() => unmarshalEffectivePrivilegeAssignmentSchema))\n .optional(),\n })\n .transform(d => ({\n nextPageToken: d.next_page_token,\n privilegeAssignments: d.privilege_assignments,\n }));\n\nexport const unmarshalGetPermissionsResponseSchema: z.ZodType<GetPermissionsResponse> =\n z\n .object({\n next_page_token: z.string().optional(),\n privilege_assignments: z\n .array(z.lazy(() => unmarshalPrivilegeAssignmentSchema))\n .optional(),\n })\n .transform(d => ({\n nextPageToken: d.next_page_token,\n privilegeAssignments: d.privilege_assignments,\n }));\n\nexport const unmarshalListEffectivePrivilegeAssignmentsResponseSchema: z.ZodType<ListEffectivePrivilegeAssignmentsResponse> =\n z\n .object({\n effective_privilege_assignments: z\n .array(z.lazy(() => unmarshalEffectivePrivilegeAssignmentSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n effectivePrivilegeAssignments: d.effective_privilege_assignments,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListPrivilegeAssignmentsResponseSchema: z.ZodType<ListPrivilegeAssignmentsResponse> =\n z\n .object({\n privilege_assignments: z\n .array(z.lazy(() => unmarshalPrivilegeAssignmentSchema))\n .optional(),\n next_page_token: z.string().optional(),\n })\n .transform(d => ({\n privilegeAssignments: d.privilege_assignments,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalPrivilegeAssignmentSchema: z.ZodType<PrivilegeAssignment> =\n z\n .object({\n principal: z.string().optional(),\n privileges: z.array(z.string()).optional(),\n })\n .transform(d => ({\n principal: d.principal,\n privileges: d.privileges,\n }));\n\nexport const unmarshalUpdatePermissionsResponseSchema: z.ZodType<UpdatePermissionsResponse> =\n z\n .object({\n privilege_assignments: z\n .array(z.lazy(() => unmarshalPrivilegeAssignmentSchema))\n .optional(),\n })\n .transform(d => ({\n privilegeAssignments: d.privilege_assignments,\n }));\n\nexport const marshalPermissionsChangeSchema: z.ZodType = z\n .object({\n principal: z.string().optional(),\n add: z.array(z.string()).optional(),\n remove: z.array(z.string()).optional(),\n })\n .transform(d => ({\n principal: d.principal,\n add: d.add,\n remove: d.remove,\n }));\n\nexport const marshalUpdatePermissionsRequestSchema: z.ZodType = z\n .object({\n securableType: z.string().optional(),\n securableFullName: z.string().optional(),\n omitPermissionsInResponse: z.boolean().optional(),\n changes: z.array(z.lazy(() => marshalPermissionsChangeSchema)).optional(),\n })\n .transform(d => ({\n securable_type: d.securableType,\n securable_full_name: d.securableFullName,\n omit_permissions_in_response: d.omitPermissionsInResponse,\n changes: d.changes,\n }));\n"],"mappings":";;;AA2MA,MAAa,oCACX,EACG,OAAO;CACN,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,qBAAqB,EAAE,QAAQ,CAAC,UAAU;CAC1C,qBAAqB,EAAE,QAAQ,CAAC,UAAU;CAC3C,CAAC,CACD,WAAU,OAAM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C,CAAC,CACD,WAAU,OAAM;CACf,WAAW,EAAE;CACb,YAAY,EAAE;CACf,EAAE;AAEP,MAAa,2CACX,EACG,OAAO,EACN,uBAAuB,EACpB,MAAM,EAAE,WAAW,mCAAmC,CAAC,CACvD,UAAU,EACd,CAAC,CACD,WAAU,OAAM,EACf,sBAAsB,EAAE,uBACzB,EAAE;AAEP,MAAa,iCAA4C,EACtD,OAAO;CACN,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU;CACnC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU;CACvC,CAAC,CACD,WAAU,OAAM;CACf,WAAW,EAAE;CACb,KAAK,EAAE;CACP,QAAQ,EAAE;CACX,EAAE;AAEL,MAAa,wCAAmD,EAC7D,OAAO;CACN,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,mBAAmB,EAAE,QAAQ,CAAC,UAAU;CACxC,2BAA2B,EAAE,SAAS,CAAC,UAAU;CACjD,SAAS,EAAE,MAAM,EAAE,WAAW,+BAA+B,CAAC,CAAC,UAAU;CAC1E,CAAC,CACD,WAAU,OAAM;CACf,gBAAgB,EAAE;CAClB,qBAAqB,EAAE;CACvB,8BAA8B,EAAE;CAChC,SAAS,EAAE;CACZ,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 JSONBig from 'json-bigint';\nimport {z} from 'zod';\n\n// JSON codec that writes a bigint as the digits of a JSON number, as in utils.ts.\nconst jsonBigint = JSONBig({useNativeBigInt: true});\n\n// JSON codec that reads a number of more than 15 characters as its text.\nconst jsonNumberText = JSONBig({storeAsString: true});\n\n// Reads JSON as JSON.parse does, except that it reads an integer that a double cannot hold\n// exactly as the bigint of its digits, which an int64 field reads exactly. Only text with\n// 16 digits in a row can hold such an integer.\nfunction parseJson(text: string): unknown {\n const value: unknown = JSON.parse(text);\n return /\\d{16}/.test(text)\n ? withExactIntegers(value, jsonNumberText.parse(text) as unknown)\n : value;\n}\n\n// Replaces each integer in value that a double cannot hold exactly by the bigint of its\n// digits in numberText, the same JSON as jsonNumberText reads it.\nfunction withExactIntegers(value: unknown, numberText: unknown): unknown {\n if (typeof value === 'number') {\n return !Number.isSafeInteger(value) &&\n typeof numberText === 'string' &&\n /^-?\\d+$/.test(numberText)\n ? BigInt(numberText)\n : value;\n }\n if (Array.isArray(value)) {\n const items = numberText as unknown[];\n return value.map((item: unknown, i) => withExactIntegers(item, items[i]));\n }\n if (typeof value === 'object' && value !== null) {\n const fields = numberText as Record<string, unknown>;\n return Object.fromEntries(\n Object.entries(value).map(([key, item]: [string, unknown]) => [\n key,\n withExactIntegers(item, fields[key]),\n ])\n );\n }\n return value;\n}\n\nexport interface EffectivePrivilege {\n /** The privilege assigned to the principal. */\n privilege?: string | undefined;\n /**\n * The type of the object that conveys this privilege via inheritance.\n * This field is omitted when privilege is not inherited (it's assigned to the securable itself).\n */\n inheritedFromType?: string | undefined;\n /**\n * The full name of the object that conveys this privilege via inheritance.\n * This field is omitted when privilege is not inherited (it's assigned to the securable itself).\n */\n inheritedFromName?: string | undefined;\n}\n\nexport interface EffectivePrivilegeAssignment {\n /** The principal (user email address or group name). */\n principal?: string | undefined;\n /** The privileges conveyed to the principal (either directly or via inheritance). */\n privileges?: EffectivePrivilege[] | undefined;\n}\n\nexport interface GetEffectivePermissionsRequest {\n /** Type of securable. */\n securableType?: string | undefined;\n /** Full name of securable. */\n securableFullName?: string | undefined;\n /** If provided, only the effective permissions for the specified principal (user or group) are returned. */\n principal?: string | undefined;\n /**\n * Specifies the maximum number of privileges to return (page length).\n * Every EffectivePrivilegeAssignment present in a single page response is guaranteed to contain all the effective\n * privileges granted on (or inherited by) the requested Securable for the respective principal.\n *\n * If not set, all the effective permissions are returned.\n * If set to\n * - lesser than 0: invalid parameter error\n * - 0: page length is set to a server configured value\n * - lesser than 150 but greater than 0: invalid parameter error (this is to ensure that server is able to return at\n * least one complete EffectivePrivilegeAssignment in a single page response)\n * - greater than (or equal to) 150: page length is the minimum of this value and a server configured value\n */\n maxResults?: number | undefined;\n /** Opaque token for the next page of results (pagination). */\n pageToken?: string | undefined;\n}\n\nexport interface GetEffectivePermissionsResponse {\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 /** The privileges conveyed to each principal (either directly or via inheritance) */\n privilegeAssignments?: EffectivePrivilegeAssignment[] | undefined;\n}\n\nexport interface GetPermissionsRequest {\n /** Type of the securable, such as `catalog`, `schema`, `table` or `volume`. The value is case-insensitive. */\n securableType?: string | undefined;\n /**\n * Full name of the securable. Tables, views, volumes and functions use the three-level name\n * `catalog.schema.object`; a metastore uses its metastore ID.\n */\n securableFullName?: string | undefined;\n /** If provided, only the permissions for the specified principal (user or group) are returned. */\n principal?: string | undefined;\n /**\n * Specifies the maximum number of privileges to return (page length).\n * Every PrivilegeAssignment present in a single page response is guaranteed to contain all the privileges granted on\n * the requested Securable for the respective principal.\n *\n * If not set, all the permissions are returned.\n * If set to\n * - lesser than 0: invalid parameter error\n * - 0: page length is set to a server configured value\n * - lesser than 150 but greater than 0: invalid parameter error (this is to ensure that server is able to return at\n * least one complete PrivilegeAssignment in a single page response)\n * - greater than (or equal to) 150: page length is the minimum of this value and a server configured value\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 GetPermissionsResponse {\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 /** The privileges assigned to each principal */\n privilegeAssignments?: PrivilegeAssignment[] | undefined;\n}\n\nexport interface ListEffectivePrivilegeAssignmentsRequest {\n /** Type of securable. */\n securableType?: string | undefined;\n /** Full name of securable. */\n fullName?: string | undefined;\n /** If provided, only the effective permissions for the specified principal (user or group) are returned. */\n principal?: string | undefined;\n /**\n * Specifies the maximum number of privilege assignments to return (page length).\n * Every EffectivePrivilegeAssignment present in a single page response is guaranteed to contain all the effective\n * privileges granted on (or inherited by) the requested Securable for the respective principal.\n *\n * If not set, a server-configured default is used.\n * If set to\n * - lesser than 0: invalid parameter error\n * - 0: page length is set to a server configured value\n * - lesser than 150 but greater than 0: invalid parameter error (this is to ensure that server is able to return at\n * least one complete EffectivePrivilegeAssignment in a single page response)\n * - greater than (or equal to) 150: page length is the minimum of this value and a server configured value\n */\n pageSize?: number | undefined;\n /** Opaque pagination token to go to next page based on previous query. */\n pageToken?: string | undefined;\n}\n\nexport interface ListEffectivePrivilegeAssignmentsResponse {\n /** The effective privilege assignments for the securable (and optional principal). */\n effectivePrivilegeAssignments?: EffectivePrivilegeAssignment[] | 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 ListPrivilegeAssignmentsRequest {\n /** Type of securable. */\n securableType?: string | undefined;\n /** Full name of securable. */\n fullName?: string | undefined;\n /** If provided, only the permissions for the specified principal (user or group) are returned. */\n principal?: string | undefined;\n /**\n * Specifies the maximum number of privilege assignments to return (page length).\n * Every PrivilegeAssignment present in a single page response is guaranteed to contain all the privileges granted on\n * the requested Securable for the respective principal.\n *\n * If not set, page length is the server configured value.\n * If set to\n * - lesser than 0: invalid parameter error\n * - 0: page length is set to a server configured value\n * - lesser than 150 but greater than 0: invalid parameter error (this is to ensure that server is able to return at\n * least one complete PrivilegeAssignment in a single page response)\n * - greater than (or equal to) 150: page length is the minimum of this value and a server configured value\n */\n pageSize?: number | undefined;\n /** Opaque pagination token to go to next page based on previous query. */\n pageToken?: string | undefined;\n}\n\nexport interface ListPrivilegeAssignmentsResponse {\n privilegeAssignments?: PrivilegeAssignment[] | 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 PermissionsChange {\n /** The principal whose privileges we are changing. */\n principal?: string | undefined;\n /** The set of privileges to add. */\n add?: string[] | undefined;\n /** The set of privileges to remove. */\n remove?: string[] | undefined;\n}\n\nexport interface PrivilegeAssignment {\n /** The principal (user email address or group name). */\n principal?: string | undefined;\n /** The privileges assigned to the principal. */\n privileges?: string[] | undefined;\n}\n\nexport interface UpdatePermissionsRequest {\n /** Type of the securable, such as `catalog`, `schema`, `table` or `volume`. The value is case-insensitive. */\n securableType?: string | undefined;\n /**\n * Full name of the securable. Tables, views, volumes and functions use the three-level name\n * `catalog.schema.object`; a metastore uses its metastore ID.\n */\n securableFullName?: string | undefined;\n /**\n * Whether to omit the privilege assignments from the response. When false, the response lists all direct privilege\n * assignments on the securable after the update.\n */\n omitPermissionsInResponse?: boolean | undefined;\n /** Array of permissions change objects. */\n changes?: PermissionsChange[] | undefined;\n}\n\nexport interface UpdatePermissionsResponse {\n /** The privileges assigned to each principal */\n privilegeAssignments?: PrivilegeAssignment[] | undefined;\n}\n\nexport const unmarshalEffectivePrivilegeSchema: z.ZodType<EffectivePrivilege> =\n z\n .object({\n privilege: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n inherited_from_type: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n inherited_from_name: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n })\n .transform(d => ({\n privilege: d.privilege,\n inheritedFromType: d.inherited_from_type,\n inheritedFromName: d.inherited_from_name,\n }));\n\nexport const unmarshalEffectivePrivilegeAssignmentSchema: z.ZodType<EffectivePrivilegeAssignment> =\n z\n .object({\n principal: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n privileges: z\n .array(z.lazy(() => unmarshalEffectivePrivilegeSchema))\n .nullish()\n .transform(v => v ?? undefined),\n })\n .transform(d => ({\n principal: d.principal,\n privileges: d.privileges,\n }));\n\nexport const unmarshalGetEffectivePermissionsRequestSchema: z.ZodType<GetEffectivePermissionsRequest> =\n z\n .object({\n securable_type: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n securable_full_name: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n principal: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n max_results: z\n .number()\n .int()\n .nullish()\n .transform(v => v ?? undefined),\n page_token: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n })\n .transform(d => ({\n securableType: d.securable_type,\n securableFullName: d.securable_full_name,\n principal: d.principal,\n maxResults: d.max_results,\n pageToken: d.page_token,\n }));\n\nexport const unmarshalGetEffectivePermissionsResponseSchema: z.ZodType<GetEffectivePermissionsResponse> =\n z\n .object({\n next_page_token: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n privilege_assignments: z\n .array(z.lazy(() => unmarshalEffectivePrivilegeAssignmentSchema))\n .nullish()\n .transform(v => v ?? undefined),\n })\n .transform(d => ({\n nextPageToken: d.next_page_token,\n privilegeAssignments: d.privilege_assignments,\n }));\n\nexport const unmarshalGetPermissionsRequestSchema: z.ZodType<GetPermissionsRequest> =\n z\n .object({\n securable_type: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n securable_full_name: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n principal: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n max_results: z\n .number()\n .int()\n .nullish()\n .transform(v => v ?? undefined),\n page_token: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n })\n .transform(d => ({\n securableType: d.securable_type,\n securableFullName: d.securable_full_name,\n principal: d.principal,\n maxResults: d.max_results,\n pageToken: d.page_token,\n }));\n\nexport const unmarshalGetPermissionsResponseSchema: z.ZodType<GetPermissionsResponse> =\n z\n .object({\n next_page_token: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n privilege_assignments: z\n .array(z.lazy(() => unmarshalPrivilegeAssignmentSchema))\n .nullish()\n .transform(v => v ?? undefined),\n })\n .transform(d => ({\n nextPageToken: d.next_page_token,\n privilegeAssignments: d.privilege_assignments,\n }));\n\nexport const unmarshalListEffectivePrivilegeAssignmentsRequestSchema: z.ZodType<ListEffectivePrivilegeAssignmentsRequest> =\n z\n .object({\n securable_type: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n full_name: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n principal: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n page_size: z\n .number()\n .int()\n .nullish()\n .transform(v => v ?? undefined),\n page_token: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n })\n .transform(d => ({\n securableType: d.securable_type,\n fullName: d.full_name,\n principal: d.principal,\n pageSize: d.page_size,\n pageToken: d.page_token,\n }));\n\nexport const unmarshalListEffectivePrivilegeAssignmentsResponseSchema: z.ZodType<ListEffectivePrivilegeAssignmentsResponse> =\n z\n .object({\n effective_privilege_assignments: z\n .array(z.lazy(() => unmarshalEffectivePrivilegeAssignmentSchema))\n .nullish()\n .transform(v => v ?? undefined),\n next_page_token: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n })\n .transform(d => ({\n effectivePrivilegeAssignments: d.effective_privilege_assignments,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalListPrivilegeAssignmentsRequestSchema: z.ZodType<ListPrivilegeAssignmentsRequest> =\n z\n .object({\n securable_type: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n full_name: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n principal: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n page_size: z\n .number()\n .int()\n .nullish()\n .transform(v => v ?? undefined),\n page_token: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n })\n .transform(d => ({\n securableType: d.securable_type,\n fullName: d.full_name,\n principal: d.principal,\n pageSize: d.page_size,\n pageToken: d.page_token,\n }));\n\nexport const unmarshalListPrivilegeAssignmentsResponseSchema: z.ZodType<ListPrivilegeAssignmentsResponse> =\n z\n .object({\n privilege_assignments: z\n .array(z.lazy(() => unmarshalPrivilegeAssignmentSchema))\n .nullish()\n .transform(v => v ?? undefined),\n next_page_token: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n })\n .transform(d => ({\n privilegeAssignments: d.privilege_assignments,\n nextPageToken: d.next_page_token,\n }));\n\nexport const unmarshalPermissionsChangeSchema: z.ZodType<PermissionsChange> = z\n .object({\n principal: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n add: z\n .array(z.string())\n .nullish()\n .transform(v => v ?? undefined),\n remove: z\n .array(z.string())\n .nullish()\n .transform(v => v ?? undefined),\n })\n .transform(d => ({\n principal: d.principal,\n add: d.add,\n remove: d.remove,\n }));\n\nexport const unmarshalPrivilegeAssignmentSchema: z.ZodType<PrivilegeAssignment> =\n z\n .object({\n principal: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n privileges: z\n .array(z.string())\n .nullish()\n .transform(v => v ?? undefined),\n })\n .transform(d => ({\n principal: d.principal,\n privileges: d.privileges,\n }));\n\nexport const unmarshalUpdatePermissionsRequestSchema: z.ZodType<UpdatePermissionsRequest> =\n z\n .object({\n securable_type: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n securable_full_name: z\n .string()\n .nullish()\n .transform(v => v ?? undefined),\n omit_permissions_in_response: z\n .boolean()\n .nullish()\n .transform(v => v ?? undefined),\n changes: z\n .array(z.lazy(() => unmarshalPermissionsChangeSchema))\n .nullish()\n .transform(v => v ?? undefined),\n })\n .transform(d => ({\n securableType: d.securable_type,\n securableFullName: d.securable_full_name,\n omitPermissionsInResponse: d.omit_permissions_in_response,\n changes: d.changes,\n }));\n\nexport const unmarshalUpdatePermissionsResponseSchema: z.ZodType<UpdatePermissionsResponse> =\n z\n .object({\n privilege_assignments: z\n .array(z.lazy(() => unmarshalPrivilegeAssignmentSchema))\n .nullish()\n .transform(v => v ?? undefined),\n })\n .transform(d => ({\n privilegeAssignments: d.privilege_assignments,\n }));\n\nexport const marshalEffectivePrivilegeSchema: z.ZodType = z\n .object({\n privilege: z.string().optional(),\n inheritedFromType: z.string().optional(),\n inheritedFromName: z.string().optional(),\n })\n .transform(d => ({\n privilege: d.privilege,\n inherited_from_type: d.inheritedFromType,\n inherited_from_name: d.inheritedFromName,\n }));\n\nexport const marshalEffectivePrivilegeAssignmentSchema: z.ZodType = z\n .object({\n principal: z.string().optional(),\n privileges: z\n .array(z.lazy(() => marshalEffectivePrivilegeSchema))\n .optional(),\n })\n .transform(d => ({\n principal: d.principal,\n privileges: d.privileges,\n }));\n\nexport const marshalGetEffectivePermissionsRequestSchema: z.ZodType = z\n .object({\n securableType: z.string().optional(),\n securableFullName: z.string().optional(),\n principal: z.string().optional(),\n maxResults: z.number().int().optional(),\n pageToken: z.string().optional(),\n })\n .transform(d => ({\n securable_type: d.securableType,\n securable_full_name: d.securableFullName,\n principal: d.principal,\n max_results: d.maxResults,\n page_token: d.pageToken,\n }));\n\nexport const marshalGetEffectivePermissionsResponseSchema: z.ZodType = z\n .object({\n nextPageToken: z.string().optional(),\n privilegeAssignments: z\n .array(z.lazy(() => marshalEffectivePrivilegeAssignmentSchema))\n .optional(),\n })\n .transform(d => ({\n next_page_token: d.nextPageToken,\n privilege_assignments: d.privilegeAssignments,\n }));\n\nexport const marshalGetPermissionsRequestSchema: z.ZodType = z\n .object({\n securableType: z.string().optional(),\n securableFullName: z.string().optional(),\n principal: z.string().optional(),\n maxResults: z.number().int().optional(),\n pageToken: z.string().optional(),\n })\n .transform(d => ({\n securable_type: d.securableType,\n securable_full_name: d.securableFullName,\n principal: d.principal,\n max_results: d.maxResults,\n page_token: d.pageToken,\n }));\n\nexport const marshalGetPermissionsResponseSchema: z.ZodType = z\n .object({\n nextPageToken: z.string().optional(),\n privilegeAssignments: z\n .array(z.lazy(() => marshalPrivilegeAssignmentSchema))\n .optional(),\n })\n .transform(d => ({\n next_page_token: d.nextPageToken,\n privilege_assignments: d.privilegeAssignments,\n }));\n\nexport const marshalListEffectivePrivilegeAssignmentsRequestSchema: z.ZodType =\n z\n .object({\n securableType: z.string().optional(),\n fullName: z.string().optional(),\n principal: z.string().optional(),\n pageSize: z.number().int().optional(),\n pageToken: z.string().optional(),\n })\n .transform(d => ({\n securable_type: d.securableType,\n full_name: d.fullName,\n principal: d.principal,\n page_size: d.pageSize,\n page_token: d.pageToken,\n }));\n\nexport const marshalListEffectivePrivilegeAssignmentsResponseSchema: z.ZodType =\n z\n .object({\n effectivePrivilegeAssignments: z\n .array(z.lazy(() => marshalEffectivePrivilegeAssignmentSchema))\n .optional(),\n nextPageToken: z.string().optional(),\n })\n .transform(d => ({\n effective_privilege_assignments: d.effectivePrivilegeAssignments,\n next_page_token: d.nextPageToken,\n }));\n\nexport const marshalListPrivilegeAssignmentsRequestSchema: z.ZodType = z\n .object({\n securableType: z.string().optional(),\n fullName: z.string().optional(),\n principal: z.string().optional(),\n pageSize: z.number().int().optional(),\n pageToken: z.string().optional(),\n })\n .transform(d => ({\n securable_type: d.securableType,\n full_name: d.fullName,\n principal: d.principal,\n page_size: d.pageSize,\n page_token: d.pageToken,\n }));\n\nexport const marshalListPrivilegeAssignmentsResponseSchema: z.ZodType = z\n .object({\n privilegeAssignments: z\n .array(z.lazy(() => marshalPrivilegeAssignmentSchema))\n .optional(),\n nextPageToken: z.string().optional(),\n })\n .transform(d => ({\n privilege_assignments: d.privilegeAssignments,\n next_page_token: d.nextPageToken,\n }));\n\nexport const marshalPermissionsChangeSchema: z.ZodType = z\n .object({\n principal: z.string().optional(),\n add: z.array(z.string()).optional(),\n remove: z.array(z.string()).optional(),\n })\n .transform(d => ({\n principal: d.principal,\n add: d.add,\n remove: d.remove,\n }));\n\nexport const marshalPrivilegeAssignmentSchema: z.ZodType = z\n .object({\n principal: z.string().optional(),\n privileges: z.array(z.string()).optional(),\n })\n .transform(d => ({\n principal: d.principal,\n privileges: d.privileges,\n }));\n\nexport const marshalUpdatePermissionsRequestSchema: z.ZodType = z\n .object({\n securableType: z.string().optional(),\n securableFullName: z.string().optional(),\n omitPermissionsInResponse: z.boolean().optional(),\n changes: z.array(z.lazy(() => marshalPermissionsChangeSchema)).optional(),\n })\n .transform(d => ({\n securable_type: d.securableType,\n securable_full_name: d.securableFullName,\n omit_permissions_in_response: d.omitPermissionsInResponse,\n changes: d.changes,\n }));\n\nexport const marshalUpdatePermissionsResponseSchema: z.ZodType = z\n .object({\n privilegeAssignments: z\n .array(z.lazy(() => marshalPrivilegeAssignmentSchema))\n .optional(),\n })\n .transform(d => ({\n privilege_assignments: d.privilegeAssignments,\n }));\n\n/** Converts EffectivePrivilege messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Message companion object.\nexport const EffectivePrivilege = {\n /** Returns the JSON of the message. */\n toJson: (message: EffectivePrivilege): string =>\n jsonBigint.stringify(marshalEffectivePrivilegeSchema.parse(message)),\n /** Reads the message from its JSON. Throws when the JSON sets two members of one oneof, or a field mask in it names a missing field. */\n fromJson: (json: string): EffectivePrivilege =>\n unmarshalEffectivePrivilegeSchema.parse(parseJson(json)),\n};\n\n/** Converts EffectivePrivilegeAssignment messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Message companion object.\nexport const EffectivePrivilegeAssignment = {\n /** Returns the JSON of the message. */\n toJson: (message: EffectivePrivilegeAssignment): string =>\n jsonBigint.stringify(\n marshalEffectivePrivilegeAssignmentSchema.parse(message)\n ),\n /** Reads the message from its JSON. Throws when the JSON sets two members of one oneof, or a field mask in it names a missing field. */\n fromJson: (json: string): EffectivePrivilegeAssignment =>\n unmarshalEffectivePrivilegeAssignmentSchema.parse(parseJson(json)),\n};\n\n/** Converts GetEffectivePermissionsRequest messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Message companion object.\nexport const GetEffectivePermissionsRequest = {\n /** Returns the JSON of the message. */\n toJson: (message: GetEffectivePermissionsRequest): string =>\n jsonBigint.stringify(\n marshalGetEffectivePermissionsRequestSchema.parse(message)\n ),\n /** Reads the message from its JSON. Throws when the JSON sets two members of one oneof, or a field mask in it names a missing field. */\n fromJson: (json: string): GetEffectivePermissionsRequest =>\n unmarshalGetEffectivePermissionsRequestSchema.parse(parseJson(json)),\n};\n\n/** Converts GetEffectivePermissionsResponse messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Message companion object.\nexport const GetEffectivePermissionsResponse = {\n /** Returns the JSON of the message. */\n toJson: (message: GetEffectivePermissionsResponse): string =>\n jsonBigint.stringify(\n marshalGetEffectivePermissionsResponseSchema.parse(message)\n ),\n /** Reads the message from its JSON. Throws when the JSON sets two members of one oneof, or a field mask in it names a missing field. */\n fromJson: (json: string): GetEffectivePermissionsResponse =>\n unmarshalGetEffectivePermissionsResponseSchema.parse(parseJson(json)),\n};\n\n/** Converts GetPermissionsRequest messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Message companion object.\nexport const GetPermissionsRequest = {\n /** Returns the JSON of the message. */\n toJson: (message: GetPermissionsRequest): string =>\n jsonBigint.stringify(marshalGetPermissionsRequestSchema.parse(message)),\n /** Reads the message from its JSON. Throws when the JSON sets two members of one oneof, or a field mask in it names a missing field. */\n fromJson: (json: string): GetPermissionsRequest =>\n unmarshalGetPermissionsRequestSchema.parse(parseJson(json)),\n};\n\n/** Converts GetPermissionsResponse messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Message companion object.\nexport const GetPermissionsResponse = {\n /** Returns the JSON of the message. */\n toJson: (message: GetPermissionsResponse): string =>\n jsonBigint.stringify(marshalGetPermissionsResponseSchema.parse(message)),\n /** Reads the message from its JSON. Throws when the JSON sets two members of one oneof, or a field mask in it names a missing field. */\n fromJson: (json: string): GetPermissionsResponse =>\n unmarshalGetPermissionsResponseSchema.parse(parseJson(json)),\n};\n\n/** Converts ListEffectivePrivilegeAssignmentsRequest messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Message companion object.\nexport const ListEffectivePrivilegeAssignmentsRequest = {\n /** Returns the JSON of the message. */\n toJson: (message: ListEffectivePrivilegeAssignmentsRequest): string =>\n jsonBigint.stringify(\n marshalListEffectivePrivilegeAssignmentsRequestSchema.parse(message)\n ),\n /** Reads the message from its JSON. Throws when the JSON sets two members of one oneof, or a field mask in it names a missing field. */\n fromJson: (json: string): ListEffectivePrivilegeAssignmentsRequest =>\n unmarshalListEffectivePrivilegeAssignmentsRequestSchema.parse(\n parseJson(json)\n ),\n};\n\n/** Converts ListEffectivePrivilegeAssignmentsResponse messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Message companion object.\nexport const ListEffectivePrivilegeAssignmentsResponse = {\n /** Returns the JSON of the message. */\n toJson: (message: ListEffectivePrivilegeAssignmentsResponse): string =>\n jsonBigint.stringify(\n marshalListEffectivePrivilegeAssignmentsResponseSchema.parse(message)\n ),\n /** Reads the message from its JSON. Throws when the JSON sets two members of one oneof, or a field mask in it names a missing field. */\n fromJson: (json: string): ListEffectivePrivilegeAssignmentsResponse =>\n unmarshalListEffectivePrivilegeAssignmentsResponseSchema.parse(\n parseJson(json)\n ),\n};\n\n/** Converts ListPrivilegeAssignmentsRequest messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Message companion object.\nexport const ListPrivilegeAssignmentsRequest = {\n /** Returns the JSON of the message. */\n toJson: (message: ListPrivilegeAssignmentsRequest): string =>\n jsonBigint.stringify(\n marshalListPrivilegeAssignmentsRequestSchema.parse(message)\n ),\n /** Reads the message from its JSON. Throws when the JSON sets two members of one oneof, or a field mask in it names a missing field. */\n fromJson: (json: string): ListPrivilegeAssignmentsRequest =>\n unmarshalListPrivilegeAssignmentsRequestSchema.parse(parseJson(json)),\n};\n\n/** Converts ListPrivilegeAssignmentsResponse messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Message companion object.\nexport const ListPrivilegeAssignmentsResponse = {\n /** Returns the JSON of the message. */\n toJson: (message: ListPrivilegeAssignmentsResponse): string =>\n jsonBigint.stringify(\n marshalListPrivilegeAssignmentsResponseSchema.parse(message)\n ),\n /** Reads the message from its JSON. Throws when the JSON sets two members of one oneof, or a field mask in it names a missing field. */\n fromJson: (json: string): ListPrivilegeAssignmentsResponse =>\n unmarshalListPrivilegeAssignmentsResponseSchema.parse(parseJson(json)),\n};\n\n/** Converts PermissionsChange messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Message companion object.\nexport const PermissionsChange = {\n /** Returns the JSON of the message. */\n toJson: (message: PermissionsChange): string =>\n jsonBigint.stringify(marshalPermissionsChangeSchema.parse(message)),\n /** Reads the message from its JSON. Throws when the JSON sets two members of one oneof, or a field mask in it names a missing field. */\n fromJson: (json: string): PermissionsChange =>\n unmarshalPermissionsChangeSchema.parse(parseJson(json)),\n};\n\n/** Converts PrivilegeAssignment messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Message companion object.\nexport const PrivilegeAssignment = {\n /** Returns the JSON of the message. */\n toJson: (message: PrivilegeAssignment): string =>\n jsonBigint.stringify(marshalPrivilegeAssignmentSchema.parse(message)),\n /** Reads the message from its JSON. Throws when the JSON sets two members of one oneof, or a field mask in it names a missing field. */\n fromJson: (json: string): PrivilegeAssignment =>\n unmarshalPrivilegeAssignmentSchema.parse(parseJson(json)),\n};\n\n/** Converts UpdatePermissionsRequest messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Message companion object.\nexport const UpdatePermissionsRequest = {\n /** Returns the JSON of the message. */\n toJson: (message: UpdatePermissionsRequest): string =>\n jsonBigint.stringify(marshalUpdatePermissionsRequestSchema.parse(message)),\n /** Reads the message from its JSON. Throws when the JSON sets two members of one oneof, or a field mask in it names a missing field. */\n fromJson: (json: string): UpdatePermissionsRequest =>\n unmarshalUpdatePermissionsRequestSchema.parse(parseJson(json)),\n};\n\n/** Converts UpdatePermissionsResponse messages to and from the JSON that the API uses, with the fields that a request sends in its URL path or query as regular fields. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Message companion object.\nexport const UpdatePermissionsResponse = {\n /** Returns the JSON of the message. */\n toJson: (message: UpdatePermissionsResponse): string =>\n jsonBigint.stringify(marshalUpdatePermissionsResponseSchema.parse(message)),\n /** Reads the message from its JSON. Throws when the JSON sets two members of one oneof, or a field mask in it names a missing field. */\n fromJson: (json: string): UpdatePermissionsResponse =>\n unmarshalUpdatePermissionsResponseSchema.parse(parseJson(json)),\n};\n"],"mappings":";;;;AAMA,MAAM,aAAa,QAAQ,EAAC,iBAAiB,MAAK,CAAC;AAGnD,MAAM,iBAAiB,QAAQ,EAAC,eAAe,MAAK,CAAC;AAKrD,SAAS,UAAU,MAAuB;CACxC,MAAM,QAAiB,KAAK,MAAM,KAAK;AACvC,QAAO,SAAS,KAAK,KAAK,GACtB,kBAAkB,OAAO,eAAe,MAAM,KAAK,CAAY,GAC/D;;AAKN,SAAS,kBAAkB,OAAgB,YAA8B;AACvE,KAAI,OAAO,UAAU,SACnB,QAAO,CAAC,OAAO,cAAc,MAAM,IACjC,OAAO,eAAe,YACtB,UAAU,KAAK,WAAW,GACxB,OAAO,WAAW,GAClB;AAEN,KAAI,MAAM,QAAQ,MAAM,EAAE;EACxB,MAAM,QAAQ;AACd,SAAO,MAAM,KAAK,MAAe,MAAM,kBAAkB,MAAM,MAAM,GAAG,CAAC;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ACT,6CAA6C,MAAM,QAAQ,CAC5D;CAEH,WAAW,SACT,+CAA+C,MAAM,UAAU,KAAK,CAAC;CACxE;;AAID,MAAa,mCAAmC;CAE9C,SAAS,YACP,WAAW,UACT,8CAA8C,MAAM,QAAQ,CAC7D;CAEH,WAAW,SACT,gDAAgD,MAAM,UAAU,KAAK,CAAC;CACzE;;AAID,MAAa,oBAAoB;CAE/B,SAAS,YACP,WAAW,UAAU,+BAA+B,MAAM,QAAQ,CAAC;CAErE,WAAW,SACT,iCAAiC,MAAM,UAAU,KAAK,CAAC;CAC1D;;AAID,MAAa,sBAAsB;CAEjC,SAAS,YACP,WAAW,UAAU,iCAAiC,MAAM,QAAQ,CAAC;CAEvE,WAAW,SACT,mCAAmC,MAAM,UAAU,KAAK,CAAC;CAC5D;;AAID,MAAa,2BAA2B;CAEtC,SAAS,YACP,WAAW,UAAU,sCAAsC,MAAM,QAAQ,CAAC;CAE5E,WAAW,SACT,wCAAwC,MAAM,UAAU,KAAK,CAAC;CACjE;;AAID,MAAa,4BAA4B;CAEvC,SAAS,YACP,WAAW,UAAU,uCAAuC,MAAM,QAAQ,CAAC;CAE7E,WAAW,SACT,yCAAyC,MAAM,UAAU,KAAK,CAAC;CAClE"}
@@ -1,3 +1,4 @@
1
+ import { ClientInfo } from "@databricks/sdk-core/clientinfo";
1
2
  import { HttpClient } from "@databricks/sdk-core/http";
2
3
  import { ClientOptions } from "@databricks/sdk-options/client";
3
4
 
@@ -11,27 +12,39 @@ interface ResolvedClientConfig {
11
12
  host: string;
12
13
  /**
13
14
  * Default account ID for account-level paths that contain an account_id
14
- * segment. A request's own accountId still wins.
15
+ * segment. A request's own accountId still wins, and an empty one throws.
15
16
  */
16
17
  accountId?: string;
17
18
  /**
18
19
  * Workspace ID used to route workspace-level calls on unified hosts (SPOG).
19
20
  */
20
21
  workspaceId?: string;
21
- /** HTTP client with authentication, and any configured timeout, applied. */
22
+ /** HTTP client with authentication applied. */
22
23
  httpClient: HttpClient;
24
+ /**
25
+ * Timeout, in milliseconds, that the client sets. A call that sets no
26
+ * timeout of its own takes it as its deadline.
27
+ */
28
+ timeout?: number;
23
29
  }
30
+ /**
31
+ * Throws a {@link ClientOptionsError} if host, accountId, or workspaceId is
32
+ * empty. No host, account, or workspace is empty, so the value is a mistake,
33
+ * while an unset option is resolved from the profile.
34
+ */
35
+ declare function checkClientOptions(options: ClientOptions): void;
24
36
  /**
25
37
  * Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
26
38
  *
27
39
  * A configuration profile is always resolved from the config file and
28
40
  * environment variables (per options.profileOptions); it supplies host,
29
41
  * accountId, workspaceId, and credentials wherever the caller did not set them
30
- * explicitly. Explicit options always take precedence.
42
+ * explicitly. Explicit options always take precedence. Each request's
43
+ * User-Agent is clientInfo with the auth method of the credentials.
31
44
  *
32
45
  * @throws if host is neither provided nor present in the resolved profile.
33
46
  */
34
- declare function resolveClientConfig(options: ClientOptions): Promise<ResolvedClientConfig>;
47
+ declare function resolveClientConfig(options: ClientOptions, clientInfo: ClientInfo): Promise<ResolvedClientConfig>;
35
48
  //#endregion
36
- export { ResolvedClientConfig, resolveClientConfig };
49
+ export { ResolvedClientConfig, checkClientOptions, resolveClientConfig };
37
50
  //# sourceMappingURL=transport.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"transport.d.ts","names":[],"sources":["../../src/v1/transport.ts"],"mappings":";;;;;;;AAoBA;;UAAiB,oBAAA;EAgBO;EAdtB,IAAA;EAMA;;;;EAAA,SAAA;EAcO;;AAQT;EAjBE,WAAA;;EAGA,UAAA,EAAY,UAAA;EAc2C;AAuBzD;;;EA/BE,OAAA;AAAA;;;;;;iBAQc,kBAAA,CAAmB,OAAA,EAAS,aAAA;;;;;;;;;;;;iBAuBtB,mBAAA,CACpB,OAAA,EAAS,aAAA,EACT,UAAA,EAAY,UAAA,GACX,OAAA,CAAQ,oBAAA"}