@databricks/sdk-uc-rfa 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.js +7 -0
- package/dist/package.js.map +1 -0
- package/dist/v1/client.d.ts +43 -39
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +121 -142
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +3 -8
- package/dist/v1/index.js +4 -8
- package/dist/v1/model.d.ts +175 -172
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +160 -206
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/transport.d.ts +21 -17
- package/dist/v1/transport.d.ts.map +1 -1
- package/dist/v1/transport.js +60 -69
- package/dist/v1/transport.js.map +1 -1
- package/dist/v1/utils.d.ts +18 -14
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +76 -103
- package/dist/v1/utils.js.map +1 -1
- package/package.json +5 -5
- package/dist/v1/index.d.ts.map +0 -1
- package/dist/v1/index.js.map +0 -1
package/dist/v1/model.js
CHANGED
|
@@ -1,228 +1,182 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { FieldMask } from "@databricks/sdk-core/wkt";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/v1/model.ts
|
|
5
|
+
const DestinationType = {
|
|
6
|
+
DESTINATION_TYPE_UNSPECIFIED: "DESTINATION_TYPE_UNSPECIFIED",
|
|
7
|
+
EMAIL: "EMAIL",
|
|
8
|
+
SLACK: "SLACK",
|
|
9
|
+
GENERIC_WEBHOOK: "GENERIC_WEBHOOK",
|
|
10
|
+
MICROSOFT_TEAMS: "MICROSOFT_TEAMS",
|
|
11
|
+
URL: "URL"
|
|
12
12
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
SERVICE_PRINCIPAL: 'SERVICE_PRINCIPAL',
|
|
13
|
+
const PrincipalType = {
|
|
14
|
+
PRINCIPAL_TYPE_UNSPECIFIED: "PRINCIPAL_TYPE_UNSPECIFIED",
|
|
15
|
+
USER_PRINCIPAL: "USER_PRINCIPAL",
|
|
16
|
+
GROUP_PRINCIPAL: "GROUP_PRINCIPAL",
|
|
17
|
+
SERVICE_PRINCIPAL: "SERVICE_PRINCIPAL"
|
|
19
18
|
};
|
|
20
19
|
/** The type of Unity Catalog securable. */
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/** TODO: [UC-2980] Staging tables aren't full-fleged securables yet. */
|
|
40
|
-
STAGING_TABLE: 'STAGING_TABLE',
|
|
20
|
+
const SecurableType = {
|
|
21
|
+
CATALOG: "CATALOG",
|
|
22
|
+
SCHEMA: "SCHEMA",
|
|
23
|
+
TABLE: "TABLE",
|
|
24
|
+
STORAGE_CREDENTIAL: "STORAGE_CREDENTIAL",
|
|
25
|
+
EXTERNAL_LOCATION: "EXTERNAL_LOCATION",
|
|
26
|
+
FUNCTION: "FUNCTION",
|
|
27
|
+
SHARE: "SHARE",
|
|
28
|
+
PROVIDER: "PROVIDER",
|
|
29
|
+
RECIPIENT: "RECIPIENT",
|
|
30
|
+
CLEAN_ROOM: "CLEAN_ROOM",
|
|
31
|
+
METASTORE: "METASTORE",
|
|
32
|
+
PIPELINE: "PIPELINE",
|
|
33
|
+
VOLUME: "VOLUME",
|
|
34
|
+
CONNECTION: "CONNECTION",
|
|
35
|
+
CREDENTIAL: "CREDENTIAL",
|
|
36
|
+
EXTERNAL_METADATA: "EXTERNAL_METADATA",
|
|
37
|
+
STAGING_TABLE: "STAGING_TABLE"
|
|
41
38
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
SPECIAL_DESTINATION_REGISTERED_MODEL_OWNER: 'SPECIAL_DESTINATION_REGISTERED_MODEL_OWNER',
|
|
39
|
+
const SpecialDestination = {
|
|
40
|
+
SPECIAL_DESTINATION_UNSPECIFIED: "SPECIAL_DESTINATION_UNSPECIFIED",
|
|
41
|
+
SPECIAL_DESTINATION_CATALOG_OWNER: "SPECIAL_DESTINATION_CATALOG_OWNER",
|
|
42
|
+
SPECIAL_DESTINATION_EXTERNAL_LOCATION_OWNER: "SPECIAL_DESTINATION_EXTERNAL_LOCATION_OWNER",
|
|
43
|
+
SPECIAL_DESTINATION_CONNECTION_OWNER: "SPECIAL_DESTINATION_CONNECTION_OWNER",
|
|
44
|
+
SPECIAL_DESTINATION_CREDENTIAL_OWNER: "SPECIAL_DESTINATION_CREDENTIAL_OWNER",
|
|
45
|
+
SPECIAL_DESTINATION_METASTORE_OWNER: "SPECIAL_DESTINATION_METASTORE_OWNER",
|
|
46
|
+
SPECIAL_DESTINATION_SCHEMA_OWNER: "SPECIAL_DESTINATION_SCHEMA_OWNER",
|
|
47
|
+
SPECIAL_DESTINATION_TABLE_OWNER: "SPECIAL_DESTINATION_TABLE_OWNER",
|
|
48
|
+
SPECIAL_DESTINATION_VOLUME_OWNER: "SPECIAL_DESTINATION_VOLUME_OWNER",
|
|
49
|
+
SPECIAL_DESTINATION_FUNCTION_OWNER: "SPECIAL_DESTINATION_FUNCTION_OWNER",
|
|
50
|
+
SPECIAL_DESTINATION_REGISTERED_MODEL_OWNER: "SPECIAL_DESTINATION_REGISTERED_MODEL_OWNER"
|
|
55
51
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
destinations: d.destinations,
|
|
71
|
-
securable: d.securable,
|
|
72
|
-
areAnyDestinationsHidden: d.are_any_destinations_hidden,
|
|
73
|
-
destinationSourceSecurable: d.destination_source_securable,
|
|
74
|
-
securableType: d.securable_type,
|
|
75
|
-
fullName: d.full_name,
|
|
52
|
+
const unmarshalAccessRequestDestinationsSchema = z.object({
|
|
53
|
+
destinations: z.array(z.lazy(() => unmarshalNotificationDestinationSchema)).optional(),
|
|
54
|
+
securable: z.lazy(() => unmarshalSecurableSchema).optional(),
|
|
55
|
+
are_any_destinations_hidden: z.boolean().optional(),
|
|
56
|
+
destination_source_securable: z.lazy(() => unmarshalSecurableSchema).optional(),
|
|
57
|
+
securable_type: z.string().optional(),
|
|
58
|
+
full_name: z.string().optional()
|
|
59
|
+
}).transform((d) => ({
|
|
60
|
+
destinations: d.destinations,
|
|
61
|
+
securable: d.securable,
|
|
62
|
+
areAnyDestinationsHidden: d.are_any_destinations_hidden,
|
|
63
|
+
destinationSourceSecurable: d.destination_source_securable,
|
|
64
|
+
securableType: d.securable_type,
|
|
65
|
+
fullName: d.full_name
|
|
76
66
|
}));
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
responses: d.responses,
|
|
67
|
+
const unmarshalBatchCreateAccessRequestsResponseSchema = z.object({ responses: z.array(z.lazy(() => unmarshalCreateAccessRequestResponseSchema)).optional() }).transform((d) => ({ responses: d.responses }));
|
|
68
|
+
const unmarshalCreateAccessRequestResponseSchema = z.object({
|
|
69
|
+
behalf_of: z.lazy(() => unmarshalPrincipalSchema).optional(),
|
|
70
|
+
request_destinations: z.array(z.lazy(() => unmarshalAccessRequestDestinationsSchema)).optional()
|
|
71
|
+
}).transform((d) => ({
|
|
72
|
+
behalfOf: d.behalf_of,
|
|
73
|
+
requestDestinations: d.request_destinations
|
|
85
74
|
}));
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
behalfOf: d.behalf_of,
|
|
95
|
-
requestDestinations: d.request_destinations,
|
|
75
|
+
const unmarshalNotificationDestinationSchema = z.object({
|
|
76
|
+
destination_id: z.string().optional(),
|
|
77
|
+
destination_type: z.string().optional(),
|
|
78
|
+
special_destination: z.string().optional()
|
|
79
|
+
}).transform((d) => ({
|
|
80
|
+
destinationId: d.destination_id,
|
|
81
|
+
destinationType: d.destination_type,
|
|
82
|
+
specialDestination: d.special_destination
|
|
96
83
|
}));
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
.transform(d => ({
|
|
104
|
-
destinationId: d.destination_id,
|
|
105
|
-
destinationType: d.destination_type,
|
|
106
|
-
specialDestination: d.special_destination,
|
|
84
|
+
const unmarshalPrincipalSchema = z.object({
|
|
85
|
+
id: z.string().optional(),
|
|
86
|
+
principal_type: z.string().optional()
|
|
87
|
+
}).transform((d) => ({
|
|
88
|
+
id: d.id,
|
|
89
|
+
principalType: d.principal_type
|
|
107
90
|
}));
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
})
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
91
|
+
const unmarshalSecurableSchema = z.object({
|
|
92
|
+
type: z.string().optional(),
|
|
93
|
+
full_name: z.string().optional(),
|
|
94
|
+
provider_share: z.string().optional()
|
|
95
|
+
}).transform((d) => ({
|
|
96
|
+
type: d.type,
|
|
97
|
+
fullName: d.full_name,
|
|
98
|
+
providerShare: d.provider_share
|
|
116
99
|
}));
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
100
|
+
const marshalAccessRequestDestinationsSchema = z.object({
|
|
101
|
+
destinations: z.array(z.lazy(() => marshalNotificationDestinationSchema)).optional(),
|
|
102
|
+
securable: z.lazy(() => marshalSecurableSchema).optional(),
|
|
103
|
+
areAnyDestinationsHidden: z.boolean().optional(),
|
|
104
|
+
destinationSourceSecurable: z.lazy(() => marshalSecurableSchema).optional(),
|
|
105
|
+
securableType: z.string().optional(),
|
|
106
|
+
fullName: z.string().optional()
|
|
107
|
+
}).transform((d) => ({
|
|
108
|
+
destinations: d.destinations,
|
|
109
|
+
securable: d.securable,
|
|
110
|
+
are_any_destinations_hidden: d.areAnyDestinationsHidden,
|
|
111
|
+
destination_source_securable: d.destinationSourceSecurable,
|
|
112
|
+
securable_type: d.securableType,
|
|
113
|
+
full_name: d.fullName
|
|
127
114
|
}));
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
fullName: z.string().optional(),
|
|
138
|
-
})
|
|
139
|
-
.transform(d => ({
|
|
140
|
-
destinations: d.destinations,
|
|
141
|
-
securable: d.securable,
|
|
142
|
-
are_any_destinations_hidden: d.areAnyDestinationsHidden,
|
|
143
|
-
destination_source_securable: d.destinationSourceSecurable,
|
|
144
|
-
securable_type: d.securableType,
|
|
145
|
-
full_name: d.fullName,
|
|
115
|
+
const marshalBatchCreateAccessRequestsRequestSchema = z.object({ requests: z.array(z.lazy(() => marshalCreateAccessRequestSchema)).optional() }).transform((d) => ({ requests: d.requests }));
|
|
116
|
+
const marshalCreateAccessRequestSchema = z.object({
|
|
117
|
+
behalfOf: z.lazy(() => marshalPrincipalSchema).optional(),
|
|
118
|
+
comment: z.string().optional(),
|
|
119
|
+
securablePermissions: z.array(z.lazy(() => marshalSecurablePermissionsSchema)).optional()
|
|
120
|
+
}).transform((d) => ({
|
|
121
|
+
behalf_of: d.behalfOf,
|
|
122
|
+
comment: d.comment,
|
|
123
|
+
securable_permissions: d.securablePermissions
|
|
146
124
|
}));
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
125
|
+
const marshalNotificationDestinationSchema = z.object({
|
|
126
|
+
destinationId: z.string().optional(),
|
|
127
|
+
destinationType: z.string().optional(),
|
|
128
|
+
specialDestination: z.string().optional()
|
|
129
|
+
}).transform((d) => ({
|
|
130
|
+
destination_id: d.destinationId,
|
|
131
|
+
destination_type: d.destinationType,
|
|
132
|
+
special_destination: d.specialDestination
|
|
155
133
|
}));
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
.optional(),
|
|
163
|
-
})
|
|
164
|
-
.transform(d => ({
|
|
165
|
-
behalf_of: d.behalfOf,
|
|
166
|
-
comment: d.comment,
|
|
167
|
-
securable_permissions: d.securablePermissions,
|
|
134
|
+
const marshalPrincipalSchema = z.object({
|
|
135
|
+
id: z.string().optional(),
|
|
136
|
+
principalType: z.string().optional()
|
|
137
|
+
}).transform((d) => ({
|
|
138
|
+
id: d.id,
|
|
139
|
+
principal_type: d.principalType
|
|
168
140
|
}));
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
destination_type: d.destinationType,
|
|
178
|
-
special_destination: d.specialDestination,
|
|
141
|
+
const marshalSecurableSchema = z.object({
|
|
142
|
+
type: z.string().optional(),
|
|
143
|
+
fullName: z.string().optional(),
|
|
144
|
+
providerShare: z.string().optional()
|
|
145
|
+
}).transform((d) => ({
|
|
146
|
+
type: d.type,
|
|
147
|
+
full_name: d.fullName,
|
|
148
|
+
provider_share: d.providerShare
|
|
179
149
|
}));
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
id: d.id,
|
|
187
|
-
principal_type: d.principalType,
|
|
188
|
-
}));
|
|
189
|
-
export const marshalSecurableSchema = z
|
|
190
|
-
.object({
|
|
191
|
-
type: z.string().optional(),
|
|
192
|
-
fullName: z.string().optional(),
|
|
193
|
-
providerShare: z.string().optional(),
|
|
194
|
-
})
|
|
195
|
-
.transform(d => ({
|
|
196
|
-
type: d.type,
|
|
197
|
-
full_name: d.fullName,
|
|
198
|
-
provider_share: d.providerShare,
|
|
199
|
-
}));
|
|
200
|
-
export const marshalSecurablePermissionsSchema = z
|
|
201
|
-
.object({
|
|
202
|
-
securable: z.lazy(() => marshalSecurableSchema).optional(),
|
|
203
|
-
permissions: z.array(z.string()).optional(),
|
|
204
|
-
})
|
|
205
|
-
.transform(d => ({
|
|
206
|
-
securable: d.securable,
|
|
207
|
-
permissions: d.permissions,
|
|
150
|
+
const marshalSecurablePermissionsSchema = z.object({
|
|
151
|
+
securable: z.lazy(() => marshalSecurableSchema).optional(),
|
|
152
|
+
permissions: z.array(z.string()).optional()
|
|
153
|
+
}).transform((d) => ({
|
|
154
|
+
securable: d.securable,
|
|
155
|
+
permissions: d.permissions
|
|
208
156
|
}));
|
|
209
157
|
const accessRequestDestinationsFieldMaskSchema = {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
158
|
+
areAnyDestinationsHidden: { wire: "are_any_destinations_hidden" },
|
|
159
|
+
destinationSourceSecurable: {
|
|
160
|
+
wire: "destination_source_securable",
|
|
161
|
+
children: () => securableFieldMaskSchema
|
|
162
|
+
},
|
|
163
|
+
destinations: { wire: "destinations" },
|
|
164
|
+
fullName: { wire: "full_name" },
|
|
165
|
+
securable: {
|
|
166
|
+
wire: "securable",
|
|
167
|
+
children: () => securableFieldMaskSchema
|
|
168
|
+
},
|
|
169
|
+
securableType: { wire: "securable_type" }
|
|
219
170
|
};
|
|
220
|
-
|
|
221
|
-
|
|
171
|
+
function accessRequestDestinationsFieldMask(...paths) {
|
|
172
|
+
return FieldMask.build(paths, accessRequestDestinationsFieldMaskSchema);
|
|
222
173
|
}
|
|
223
174
|
const securableFieldMaskSchema = {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
175
|
+
fullName: { wire: "full_name" },
|
|
176
|
+
providerShare: { wire: "provider_share" },
|
|
177
|
+
type: { wire: "type" }
|
|
227
178
|
};
|
|
179
|
+
|
|
180
|
+
//#endregion
|
|
181
|
+
export { DestinationType, PrincipalType, SecurableType, SpecialDestination, accessRequestDestinationsFieldMask, marshalAccessRequestDestinationsSchema, marshalBatchCreateAccessRequestsRequestSchema, marshalCreateAccessRequestSchema, marshalNotificationDestinationSchema, marshalPrincipalSchema, marshalSecurablePermissionsSchema, marshalSecurableSchema, unmarshalAccessRequestDestinationsSchema, unmarshalBatchCreateAccessRequestsResponseSchema, unmarshalCreateAccessRequestResponseSchema, unmarshalNotificationDestinationSchema, unmarshalPrincipalSchema, unmarshalSecurableSchema };
|
|
228
182
|
//# sourceMappingURL=model.js.map
|
package/dist/v1/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/v1/model.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,4FAA4F;AAC5F,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,4BAA4B,EAAE,8BAA8B;IAC5D,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iB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,EAAE,6BAA6B,EAAC;IAC/D,0BAA0B,EAAE;QAC1B,IAAI,EAAE,8BAA8B;QACpC,QAAQ,EAAE,GAAG,EAAE,CAAC,wBAAwB;KACzC;IACD,YAAY,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC;IACpC,QAAQ,EAAE,EAAC,IAAI,EAAE,WAAW,EAAC;IAC7B,SAAS,EAAE,EAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,wBAAwB,EAAC;IACxE,aAAa,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;CACxC,CAAC;AAEF,MAAM,UAAU,kCAAkC,CAChD,GAAG,KAAe;IAElB,OAAO,SAAS,CAAC,KAAK,CACpB,KAAK,EACL,wCAAwC,CACzC,CAAC;AACJ,CAAC;AAED,MAAM,wBAAwB,GAAoB;IAChD,QAAQ,EAAE,EAAC,IAAI,EAAE,WAAW,EAAC;IAC7B,aAAa,EAAE,EAAC,IAAI,EAAE,gBAAgB,EAAC;IACvC,IAAI,EAAE,EAAC,IAAI,EAAE,MAAM,EAAC;CACrB,CAAC"}
|
|
1
|
+
{"version":3,"file":"model.js","names":[],"sources":["../../src/v1/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {FieldMask} from '@databricks/sdk-core/wkt';\nimport type {FieldMaskSchema} from '@databricks/sdk-core/wkt';\nimport {z} from 'zod';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const DestinationType = {\n DESTINATION_TYPE_UNSPECIFIED: 'DESTINATION_TYPE_UNSPECIFIED',\n EMAIL: 'EMAIL',\n SLACK: 'SLACK',\n GENERIC_WEBHOOK: 'GENERIC_WEBHOOK',\n MICROSOFT_TEAMS: 'MICROSOFT_TEAMS',\n URL: 'URL',\n} as const;\nexport type DestinationType =\n | (typeof DestinationType)[keyof typeof DestinationType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const PrincipalType = {\n PRINCIPAL_TYPE_UNSPECIFIED: 'PRINCIPAL_TYPE_UNSPECIFIED',\n USER_PRINCIPAL: 'USER_PRINCIPAL',\n GROUP_PRINCIPAL: 'GROUP_PRINCIPAL',\n SERVICE_PRINCIPAL: 'SERVICE_PRINCIPAL',\n} as const;\nexport type PrincipalType =\n | (typeof PrincipalType)[keyof typeof PrincipalType]\n | (string & {});\n\n/** The type of Unity Catalog securable. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const SecurableType = {\n CATALOG: 'CATALOG',\n SCHEMA: 'SCHEMA',\n TABLE: 'TABLE',\n STORAGE_CREDENTIAL: 'STORAGE_CREDENTIAL',\n EXTERNAL_LOCATION: 'EXTERNAL_LOCATION',\n FUNCTION: 'FUNCTION',\n SHARE: 'SHARE',\n PROVIDER: 'PROVIDER',\n RECIPIENT: 'RECIPIENT',\n CLEAN_ROOM: 'CLEAN_ROOM',\n METASTORE: 'METASTORE',\n PIPELINE: 'PIPELINE',\n VOLUME: 'VOLUME',\n CONNECTION: 'CONNECTION',\n CREDENTIAL: 'CREDENTIAL',\n EXTERNAL_METADATA: 'EXTERNAL_METADATA',\n /** TODO: [UC-2980] Staging tables aren't full-fleged securables yet. */\n STAGING_TABLE: 'STAGING_TABLE',\n} as const;\nexport type SecurableType =\n | (typeof SecurableType)[keyof typeof SecurableType]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const SpecialDestination = {\n SPECIAL_DESTINATION_UNSPECIFIED: 'SPECIAL_DESTINATION_UNSPECIFIED',\n SPECIAL_DESTINATION_CATALOG_OWNER: 'SPECIAL_DESTINATION_CATALOG_OWNER',\n SPECIAL_DESTINATION_EXTERNAL_LOCATION_OWNER:\n 'SPECIAL_DESTINATION_EXTERNAL_LOCATION_OWNER',\n SPECIAL_DESTINATION_CONNECTION_OWNER: 'SPECIAL_DESTINATION_CONNECTION_OWNER',\n SPECIAL_DESTINATION_CREDENTIAL_OWNER: 'SPECIAL_DESTINATION_CREDENTIAL_OWNER',\n SPECIAL_DESTINATION_METASTORE_OWNER: 'SPECIAL_DESTINATION_METASTORE_OWNER',\n SPECIAL_DESTINATION_SCHEMA_OWNER: 'SPECIAL_DESTINATION_SCHEMA_OWNER',\n SPECIAL_DESTINATION_TABLE_OWNER: 'SPECIAL_DESTINATION_TABLE_OWNER',\n SPECIAL_DESTINATION_VOLUME_OWNER: 'SPECIAL_DESTINATION_VOLUME_OWNER',\n SPECIAL_DESTINATION_FUNCTION_OWNER: 'SPECIAL_DESTINATION_FUNCTION_OWNER',\n SPECIAL_DESTINATION_REGISTERED_MODEL_OWNER:\n 'SPECIAL_DESTINATION_REGISTERED_MODEL_OWNER',\n} as const;\nexport type SpecialDestination =\n | (typeof SpecialDestination)[keyof typeof SpecialDestination]\n | (string & {});\n\nexport interface AccessRequestDestinations {\n /** The access request destinations for the securable. */\n destinations?: NotificationDestination[] | undefined;\n /** The securable for which the access request destinations are being modified or read. */\n securable?: Securable | undefined;\n /**\n * Indicates whether any destinations are hidden from the caller due to a lack of permissions.\n * This value is true if the caller does not have permission to see all destinations.\n */\n areAnyDestinationsHidden?: boolean | undefined;\n /**\n * The source securable from which the destinations are inherited. Either the same value as securable (if destination\n * is set directly on the securable) or the nearest parent securable with destinations set.\n */\n destinationSourceSecurable?: Securable | undefined;\n /** The type of the securable. Redundant with the type in the securable object, but necessary for Terraform integration */\n securableType?: string | undefined;\n /** The full name of the securable. Redundant with the name in the securable object, but necessary for Terraform integration */\n fullName?: string | undefined;\n}\n\nexport interface BatchCreateAccessRequestsRequest {\n /**\n * A list of individual access requests, where each request corresponds to\n * a set of permissions being requested on a list of securables for a specified principal.\n *\n * At most 30 requests per API call.\n */\n requests?: CreateAccessRequest[] | undefined;\n}\n\nexport interface BatchCreateAccessRequestsResponse {\n /** The access request destinations for each securable object the principal requested. */\n responses?: CreateAccessRequestResponse[] | undefined;\n}\n\nexport interface CreateAccessRequest {\n /**\n * Optional. The principal this request is for.\n * Empty `behalf_of` defaults to the requester's identity.\n *\n * Principals must be unique across the API call.\n */\n behalfOf?: Principal | undefined;\n /**\n * Optional. Comment associated with the request.\n *\n * At most 200 characters, can only contain lowercase/uppercase\n * letters (a-z, A-Z), numbers (0-9), punctuation, and spaces.\n */\n comment?: string | undefined;\n /**\n * List of securables and their corresponding requested UC privileges.\n *\n * At most 30 securables can be requested for a principal per batched call.\n * Each securable can only be requested once per principal.\n */\n securablePermissions?: SecurablePermissions[] | undefined;\n}\n\nexport interface CreateAccessRequestResponse {\n /** The principal the request was made on behalf of. */\n behalfOf?: Principal | undefined;\n /** The access request destinations for all the securables the principal requested. */\n requestDestinations?: AccessRequestDestinations[] | undefined;\n}\n\nexport interface GetAccessRequestDestinationsRequest {\n /** The type of the securable. */\n securableType?: string | undefined;\n /** The full name of the securable. */\n fullName?: string | undefined;\n}\n\nexport interface NotificationDestination {\n /**\n * The identifier for the destination. This is the email address for EMAIL destinations, the URL for URL destinations,\n * or the unique <Databricks> notification destination ID for all other external destinations.\n */\n destinationId?: string | undefined;\n /** The type of the destination. */\n destinationType?: DestinationType | undefined;\n /**\n * This field is used to denote whether the destination is the email of the owner of the securable object.\n * The special destination cannot be assigned to a securable and only represents the default destination of the securable.\n * The securable types that support default special destinations are: \"catalog\", \"external_location\", \"connection\", \"credential\", and \"metastore\".\n * The **destination_type** of a **special_destination** is always EMAIL.\n */\n specialDestination?: SpecialDestination | undefined;\n}\n\nexport interface Principal {\n /** <Databricks> user, group or service principal ID. */\n id?: string | undefined;\n principalType?: PrincipalType | undefined;\n}\n\n/**\n * Generic definition of a securable, which is uniquely defined in a metastore\n * by its type and full name.\n */\nexport interface Securable {\n /**\n * Required. The type of securable (catalog/schema/table).\n * Optional if resource_name is present.\n */\n type?: SecurableType | undefined;\n /**\n * Required. The full name of the catalog/schema/table.\n * Optional if resource_name is present.\n */\n fullName?: string | undefined;\n /**\n * Optional. The name of the Share object that contains the securable when the securable is\n * getting shared in D2D Delta Sharing.\n */\n providerShare?: string | undefined;\n}\n\nexport interface SecurablePermissions {\n /** The securable for which the access request destinations are being requested. */\n securable?: Securable | undefined;\n /** List of requested Unity Catalog permissions. */\n permissions?: string[] | undefined;\n}\n\nexport interface UpdateAccessRequestDestinationsRequest {\n /**\n * The access request destinations to assign to the securable.\n * For each destination, a **destination_id** and **destination_type** must be defined.\n */\n accessRequestDestinations?: AccessRequestDestinations | undefined;\n updateMask?: FieldMask<AccessRequestDestinations> | undefined;\n}\n\nexport const unmarshalAccessRequestDestinationsSchema: z.ZodType<AccessRequestDestinations> =\n z\n .object({\n destinations: z\n .array(z.lazy(() => unmarshalNotificationDestinationSchema))\n .optional(),\n securable: z.lazy(() => unmarshalSecurableSchema).optional(),\n are_any_destinations_hidden: z.boolean().optional(),\n destination_source_securable: z\n .lazy(() => unmarshalSecurableSchema)\n .optional(),\n securable_type: z.string().optional(),\n full_name: z.string().optional(),\n })\n .transform(d => ({\n destinations: d.destinations,\n securable: d.securable,\n areAnyDestinationsHidden: d.are_any_destinations_hidden,\n destinationSourceSecurable: d.destination_source_securable,\n securableType: d.securable_type,\n fullName: d.full_name,\n }));\n\nexport const unmarshalBatchCreateAccessRequestsResponseSchema: z.ZodType<BatchCreateAccessRequestsResponse> =\n z\n .object({\n responses: z\n .array(z.lazy(() => unmarshalCreateAccessRequestResponseSchema))\n .optional(),\n })\n .transform(d => ({\n responses: d.responses,\n }));\n\nexport const unmarshalCreateAccessRequestResponseSchema: z.ZodType<CreateAccessRequestResponse> =\n z\n .object({\n behalf_of: z.lazy(() => unmarshalPrincipalSchema).optional(),\n request_destinations: z\n .array(z.lazy(() => unmarshalAccessRequestDestinationsSchema))\n .optional(),\n })\n .transform(d => ({\n behalfOf: d.behalf_of,\n requestDestinations: d.request_destinations,\n }));\n\nexport const unmarshalNotificationDestinationSchema: z.ZodType<NotificationDestination> =\n z\n .object({\n destination_id: z.string().optional(),\n destination_type: z.string().optional(),\n special_destination: z.string().optional(),\n })\n .transform(d => ({\n destinationId: d.destination_id,\n destinationType: d.destination_type,\n specialDestination: d.special_destination,\n }));\n\nexport const unmarshalPrincipalSchema: z.ZodType<Principal> = z\n .object({\n id: z.string().optional(),\n principal_type: z.string().optional(),\n })\n .transform(d => ({\n id: d.id,\n principalType: d.principal_type,\n }));\n\nexport const unmarshalSecurableSchema: z.ZodType<Securable> = z\n .object({\n type: z.string().optional(),\n full_name: z.string().optional(),\n provider_share: z.string().optional(),\n })\n .transform(d => ({\n type: d.type,\n fullName: d.full_name,\n providerShare: d.provider_share,\n }));\n\nexport const marshalAccessRequestDestinationsSchema: z.ZodType = z\n .object({\n destinations: z\n .array(z.lazy(() => marshalNotificationDestinationSchema))\n .optional(),\n securable: z.lazy(() => marshalSecurableSchema).optional(),\n areAnyDestinationsHidden: z.boolean().optional(),\n destinationSourceSecurable: z.lazy(() => marshalSecurableSchema).optional(),\n securableType: z.string().optional(),\n fullName: z.string().optional(),\n })\n .transform(d => ({\n destinations: d.destinations,\n securable: d.securable,\n are_any_destinations_hidden: d.areAnyDestinationsHidden,\n destination_source_securable: d.destinationSourceSecurable,\n securable_type: d.securableType,\n full_name: d.fullName,\n }));\n\nexport const marshalBatchCreateAccessRequestsRequestSchema: z.ZodType = z\n .object({\n requests: z\n .array(z.lazy(() => marshalCreateAccessRequestSchema))\n .optional(),\n })\n .transform(d => ({\n requests: d.requests,\n }));\n\nexport const marshalCreateAccessRequestSchema: z.ZodType = z\n .object({\n behalfOf: z.lazy(() => marshalPrincipalSchema).optional(),\n comment: z.string().optional(),\n securablePermissions: z\n .array(z.lazy(() => marshalSecurablePermissionsSchema))\n .optional(),\n })\n .transform(d => ({\n behalf_of: d.behalfOf,\n comment: d.comment,\n securable_permissions: d.securablePermissions,\n }));\n\nexport const marshalNotificationDestinationSchema: z.ZodType = z\n .object({\n destinationId: z.string().optional(),\n destinationType: z.string().optional(),\n specialDestination: z.string().optional(),\n })\n .transform(d => ({\n destination_id: d.destinationId,\n destination_type: d.destinationType,\n special_destination: d.specialDestination,\n }));\n\nexport const marshalPrincipalSchema: z.ZodType = z\n .object({\n id: z.string().optional(),\n principalType: z.string().optional(),\n })\n .transform(d => ({\n id: d.id,\n principal_type: d.principalType,\n }));\n\nexport const marshalSecurableSchema: z.ZodType = z\n .object({\n type: z.string().optional(),\n fullName: z.string().optional(),\n providerShare: z.string().optional(),\n })\n .transform(d => ({\n type: d.type,\n full_name: d.fullName,\n provider_share: d.providerShare,\n }));\n\nexport const marshalSecurablePermissionsSchema: z.ZodType = z\n .object({\n securable: z.lazy(() => marshalSecurableSchema).optional(),\n permissions: z.array(z.string()).optional(),\n })\n .transform(d => ({\n securable: d.securable,\n permissions: d.permissions,\n }));\n\nconst accessRequestDestinationsFieldMaskSchema: FieldMaskSchema = {\n areAnyDestinationsHidden: {wire: 'are_any_destinations_hidden'},\n destinationSourceSecurable: {\n wire: 'destination_source_securable',\n children: () => securableFieldMaskSchema,\n },\n destinations: {wire: 'destinations'},\n fullName: {wire: 'full_name'},\n securable: {wire: 'securable', children: () => securableFieldMaskSchema},\n securableType: {wire: 'securable_type'},\n};\n\nexport function accessRequestDestinationsFieldMask(\n ...paths: string[]\n): FieldMask<AccessRequestDestinations> {\n return FieldMask.build<AccessRequestDestinations>(\n paths,\n accessRequestDestinationsFieldMaskSchema\n );\n}\n\nconst securableFieldMaskSchema: FieldMaskSchema = {\n fullName: {wire: 'full_name'},\n providerShare: {wire: 'provider_share'},\n type: {wire: 'type'},\n};\n"],"mappings":";;;;AAOA,MAAa,kBAAkB;CAC7B,8BAA8B;CAC9B,OAAO;CACP,OAAO;CACP,iBAAiB;CACjB,iBAAiB;CACjB,KAAK;CACN;AAMD,MAAa,gBAAgB;CAC3B,4BAA4B;CAC5B,gBAAgB;CAChB,iBAAiB;CACjB,mBAAmB;CACpB;;AAOD,MAAa,gBAAgB;CAC3B,SAAS;CACT,QAAQ;CACR,OAAO;CACP,oBAAoB;CACpB,mBAAmB;CACnB,UAAU;CACV,OAAO;CACP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AM,aAAY;CAC7B,WAAW;EAAC,MAAM;EAAa,gBAAgB;EAAyB;CACxE,eAAe,EAAC,MAAM,kBAAiB;CACxC;AAED,SAAgB,mCACd,GAAG,OACmC;AACtC,QAAO,UAAU,MACf,OACA,yCACD;;AAGH,MAAM,2BAA4C;CAChD,UAAU,EAAC,MAAM,aAAY;CAC7B,eAAe,EAAC,MAAM,kBAAiB;CACvC,MAAM,EAAC,MAAM,QAAO;CACrB"}
|
package/dist/v1/transport.d.ts
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { HttpClient } from "@databricks/sdk-core/http";
|
|
2
|
+
import { ClientOptions } from "@databricks/sdk-options/client";
|
|
3
|
+
|
|
4
|
+
//#region src/v1/transport.d.ts
|
|
3
5
|
/**
|
|
4
6
|
* The configuration a client needs to issue requests, resolved from
|
|
5
7
|
* {@link ClientOptions} and a configuration profile.
|
|
6
8
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
interface ResolvedClientConfig {
|
|
10
|
+
/** Host with any trailing slash removed. */
|
|
11
|
+
host: string;
|
|
12
|
+
/**
|
|
13
|
+
* Default account ID for account-level paths that contain an account_id
|
|
14
|
+
* segment. A request's own accountId still wins.
|
|
15
|
+
*/
|
|
16
|
+
accountId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Workspace ID used to route workspace-level calls on unified hosts (SPOG).
|
|
19
|
+
*/
|
|
20
|
+
workspaceId?: string;
|
|
21
|
+
/** HTTP client with authentication, and any configured timeout, applied. */
|
|
22
|
+
httpClient: HttpClient;
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* Resolves {@link ClientOptions} into a {@link ResolvedClientConfig}.
|
|
@@ -29,5 +31,7 @@ export interface ResolvedClientConfig {
|
|
|
29
31
|
*
|
|
30
32
|
* @throws if host is neither provided nor present in the resolved profile.
|
|
31
33
|
*/
|
|
32
|
-
|
|
34
|
+
declare function resolveClientConfig(options: ClientOptions): Promise<ResolvedClientConfig>;
|
|
35
|
+
//#endregion
|
|
36
|
+
export { ResolvedClientConfig, resolveClientConfig };
|
|
33
37
|
//# sourceMappingURL=transport.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","
|
|
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"}
|