@dbx-tools/databricks 0.6.186 → 0.6.191
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/README.md +3 -36
- package/index.ts +1 -2
- package/lib/index.d.ts +15 -0
- package/lib/index.js +15 -2730
- package/lib/src/cloud.d.ts +80 -0
- package/lib/src/cloud.js +240 -0
- package/lib/src/databricks-fs.d.ts +93 -0
- package/lib/src/databricks-fs.js +327 -0
- package/lib/src/databricks-path.d.ts +67 -0
- package/lib/src/databricks-path.js +113 -0
- package/lib/src/net.d.ts +29 -0
- package/lib/src/net.js +68 -0
- package/lib/src/workspace.d.ts +43 -0
- package/lib/src/workspace.js +110 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +39 -21
- package/src/_bindings-ffi.ts +0 -859
- package/src/_bindings.ts +0 -2501
- package/src/bindings.ts +0 -12
package/lib/index.js
CHANGED
|
@@ -1,2730 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
// src/_bindings-ffi.ts
|
|
17
|
-
import lib from "@ubjs/node";
|
|
18
|
-
var { UniffiNativeModule, FfiType, resolveLibPath } = lib;
|
|
19
|
-
var DEFINITIONS = {
|
|
20
|
-
symbols: {
|
|
21
|
-
rustbuffer_alloc: "ffi_dbx_tools_databricks_rustbuffer_alloc",
|
|
22
|
-
rustbuffer_free: "ffi_dbx_tools_databricks_rustbuffer_free",
|
|
23
|
-
rustbuffer_from_bytes: "ffi_dbx_tools_databricks_rustbuffer_from_bytes"
|
|
24
|
-
},
|
|
25
|
-
functions: {
|
|
26
|
-
ffi_dbx_tools_databricks_rust_future_poll_u8: {
|
|
27
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
28
|
-
ret: FfiType.Void,
|
|
29
|
-
hasRustCallStatus: false
|
|
30
|
-
},
|
|
31
|
-
ffi_dbx_tools_databricks_rust_future_cancel_u8: {
|
|
32
|
-
args: [FfiType.Handle],
|
|
33
|
-
ret: FfiType.Void,
|
|
34
|
-
hasRustCallStatus: false
|
|
35
|
-
},
|
|
36
|
-
ffi_dbx_tools_databricks_rust_future_complete_u8: {
|
|
37
|
-
args: [FfiType.Handle],
|
|
38
|
-
ret: FfiType.UInt8,
|
|
39
|
-
hasRustCallStatus: true
|
|
40
|
-
},
|
|
41
|
-
ffi_dbx_tools_databricks_rust_future_free_u8: {
|
|
42
|
-
args: [FfiType.Handle],
|
|
43
|
-
ret: FfiType.Void,
|
|
44
|
-
hasRustCallStatus: false
|
|
45
|
-
},
|
|
46
|
-
ffi_dbx_tools_databricks_rust_future_poll_i8: {
|
|
47
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
48
|
-
ret: FfiType.Void,
|
|
49
|
-
hasRustCallStatus: false
|
|
50
|
-
},
|
|
51
|
-
ffi_dbx_tools_databricks_rust_future_cancel_i8: {
|
|
52
|
-
args: [FfiType.Handle],
|
|
53
|
-
ret: FfiType.Void,
|
|
54
|
-
hasRustCallStatus: false
|
|
55
|
-
},
|
|
56
|
-
ffi_dbx_tools_databricks_rust_future_complete_i8: {
|
|
57
|
-
args: [FfiType.Handle],
|
|
58
|
-
ret: FfiType.Int8,
|
|
59
|
-
hasRustCallStatus: true
|
|
60
|
-
},
|
|
61
|
-
ffi_dbx_tools_databricks_rust_future_free_i8: {
|
|
62
|
-
args: [FfiType.Handle],
|
|
63
|
-
ret: FfiType.Void,
|
|
64
|
-
hasRustCallStatus: false
|
|
65
|
-
},
|
|
66
|
-
ffi_dbx_tools_databricks_rust_future_poll_u16: {
|
|
67
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
68
|
-
ret: FfiType.Void,
|
|
69
|
-
hasRustCallStatus: false
|
|
70
|
-
},
|
|
71
|
-
ffi_dbx_tools_databricks_rust_future_cancel_u16: {
|
|
72
|
-
args: [FfiType.Handle],
|
|
73
|
-
ret: FfiType.Void,
|
|
74
|
-
hasRustCallStatus: false
|
|
75
|
-
},
|
|
76
|
-
ffi_dbx_tools_databricks_rust_future_complete_u16: {
|
|
77
|
-
args: [FfiType.Handle],
|
|
78
|
-
ret: FfiType.UInt16,
|
|
79
|
-
hasRustCallStatus: true
|
|
80
|
-
},
|
|
81
|
-
ffi_dbx_tools_databricks_rust_future_free_u16: {
|
|
82
|
-
args: [FfiType.Handle],
|
|
83
|
-
ret: FfiType.Void,
|
|
84
|
-
hasRustCallStatus: false
|
|
85
|
-
},
|
|
86
|
-
ffi_dbx_tools_databricks_rust_future_poll_i16: {
|
|
87
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
88
|
-
ret: FfiType.Void,
|
|
89
|
-
hasRustCallStatus: false
|
|
90
|
-
},
|
|
91
|
-
ffi_dbx_tools_databricks_rust_future_cancel_i16: {
|
|
92
|
-
args: [FfiType.Handle],
|
|
93
|
-
ret: FfiType.Void,
|
|
94
|
-
hasRustCallStatus: false
|
|
95
|
-
},
|
|
96
|
-
ffi_dbx_tools_databricks_rust_future_complete_i16: {
|
|
97
|
-
args: [FfiType.Handle],
|
|
98
|
-
ret: FfiType.Int16,
|
|
99
|
-
hasRustCallStatus: true
|
|
100
|
-
},
|
|
101
|
-
ffi_dbx_tools_databricks_rust_future_free_i16: {
|
|
102
|
-
args: [FfiType.Handle],
|
|
103
|
-
ret: FfiType.Void,
|
|
104
|
-
hasRustCallStatus: false
|
|
105
|
-
},
|
|
106
|
-
ffi_dbx_tools_databricks_rust_future_poll_u32: {
|
|
107
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
108
|
-
ret: FfiType.Void,
|
|
109
|
-
hasRustCallStatus: false
|
|
110
|
-
},
|
|
111
|
-
ffi_dbx_tools_databricks_rust_future_cancel_u32: {
|
|
112
|
-
args: [FfiType.Handle],
|
|
113
|
-
ret: FfiType.Void,
|
|
114
|
-
hasRustCallStatus: false
|
|
115
|
-
},
|
|
116
|
-
ffi_dbx_tools_databricks_rust_future_complete_u32: {
|
|
117
|
-
args: [FfiType.Handle],
|
|
118
|
-
ret: FfiType.UInt32,
|
|
119
|
-
hasRustCallStatus: true
|
|
120
|
-
},
|
|
121
|
-
ffi_dbx_tools_databricks_rust_future_free_u32: {
|
|
122
|
-
args: [FfiType.Handle],
|
|
123
|
-
ret: FfiType.Void,
|
|
124
|
-
hasRustCallStatus: false
|
|
125
|
-
},
|
|
126
|
-
ffi_dbx_tools_databricks_rust_future_poll_i32: {
|
|
127
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
128
|
-
ret: FfiType.Void,
|
|
129
|
-
hasRustCallStatus: false
|
|
130
|
-
},
|
|
131
|
-
ffi_dbx_tools_databricks_rust_future_cancel_i32: {
|
|
132
|
-
args: [FfiType.Handle],
|
|
133
|
-
ret: FfiType.Void,
|
|
134
|
-
hasRustCallStatus: false
|
|
135
|
-
},
|
|
136
|
-
ffi_dbx_tools_databricks_rust_future_complete_i32: {
|
|
137
|
-
args: [FfiType.Handle],
|
|
138
|
-
ret: FfiType.Int32,
|
|
139
|
-
hasRustCallStatus: true
|
|
140
|
-
},
|
|
141
|
-
ffi_dbx_tools_databricks_rust_future_free_i32: {
|
|
142
|
-
args: [FfiType.Handle],
|
|
143
|
-
ret: FfiType.Void,
|
|
144
|
-
hasRustCallStatus: false
|
|
145
|
-
},
|
|
146
|
-
ffi_dbx_tools_databricks_rust_future_poll_u64: {
|
|
147
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
148
|
-
ret: FfiType.Void,
|
|
149
|
-
hasRustCallStatus: false
|
|
150
|
-
},
|
|
151
|
-
ffi_dbx_tools_databricks_rust_future_cancel_u64: {
|
|
152
|
-
args: [FfiType.Handle],
|
|
153
|
-
ret: FfiType.Void,
|
|
154
|
-
hasRustCallStatus: false
|
|
155
|
-
},
|
|
156
|
-
ffi_dbx_tools_databricks_rust_future_complete_u64: {
|
|
157
|
-
args: [FfiType.Handle],
|
|
158
|
-
ret: FfiType.Handle,
|
|
159
|
-
hasRustCallStatus: true
|
|
160
|
-
},
|
|
161
|
-
ffi_dbx_tools_databricks_rust_future_free_u64: {
|
|
162
|
-
args: [FfiType.Handle],
|
|
163
|
-
ret: FfiType.Void,
|
|
164
|
-
hasRustCallStatus: false
|
|
165
|
-
},
|
|
166
|
-
ffi_dbx_tools_databricks_rust_future_poll_i64: {
|
|
167
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
168
|
-
ret: FfiType.Void,
|
|
169
|
-
hasRustCallStatus: false
|
|
170
|
-
},
|
|
171
|
-
ffi_dbx_tools_databricks_rust_future_cancel_i64: {
|
|
172
|
-
args: [FfiType.Handle],
|
|
173
|
-
ret: FfiType.Void,
|
|
174
|
-
hasRustCallStatus: false
|
|
175
|
-
},
|
|
176
|
-
ffi_dbx_tools_databricks_rust_future_complete_i64: {
|
|
177
|
-
args: [FfiType.Handle],
|
|
178
|
-
ret: FfiType.Int64,
|
|
179
|
-
hasRustCallStatus: true
|
|
180
|
-
},
|
|
181
|
-
ffi_dbx_tools_databricks_rust_future_free_i64: {
|
|
182
|
-
args: [FfiType.Handle],
|
|
183
|
-
ret: FfiType.Void,
|
|
184
|
-
hasRustCallStatus: false
|
|
185
|
-
},
|
|
186
|
-
ffi_dbx_tools_databricks_rust_future_poll_f32: {
|
|
187
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
188
|
-
ret: FfiType.Void,
|
|
189
|
-
hasRustCallStatus: false
|
|
190
|
-
},
|
|
191
|
-
ffi_dbx_tools_databricks_rust_future_cancel_f32: {
|
|
192
|
-
args: [FfiType.Handle],
|
|
193
|
-
ret: FfiType.Void,
|
|
194
|
-
hasRustCallStatus: false
|
|
195
|
-
},
|
|
196
|
-
ffi_dbx_tools_databricks_rust_future_complete_f32: {
|
|
197
|
-
args: [FfiType.Handle],
|
|
198
|
-
ret: FfiType.Float32,
|
|
199
|
-
hasRustCallStatus: true
|
|
200
|
-
},
|
|
201
|
-
ffi_dbx_tools_databricks_rust_future_free_f32: {
|
|
202
|
-
args: [FfiType.Handle],
|
|
203
|
-
ret: FfiType.Void,
|
|
204
|
-
hasRustCallStatus: false
|
|
205
|
-
},
|
|
206
|
-
ffi_dbx_tools_databricks_rust_future_poll_f64: {
|
|
207
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
208
|
-
ret: FfiType.Void,
|
|
209
|
-
hasRustCallStatus: false
|
|
210
|
-
},
|
|
211
|
-
ffi_dbx_tools_databricks_rust_future_cancel_f64: {
|
|
212
|
-
args: [FfiType.Handle],
|
|
213
|
-
ret: FfiType.Void,
|
|
214
|
-
hasRustCallStatus: false
|
|
215
|
-
},
|
|
216
|
-
ffi_dbx_tools_databricks_rust_future_complete_f64: {
|
|
217
|
-
args: [FfiType.Handle],
|
|
218
|
-
ret: FfiType.Float64,
|
|
219
|
-
hasRustCallStatus: true
|
|
220
|
-
},
|
|
221
|
-
ffi_dbx_tools_databricks_rust_future_free_f64: {
|
|
222
|
-
args: [FfiType.Handle],
|
|
223
|
-
ret: FfiType.Void,
|
|
224
|
-
hasRustCallStatus: false
|
|
225
|
-
},
|
|
226
|
-
ffi_dbx_tools_databricks_rust_future_poll_rust_buffer: {
|
|
227
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
228
|
-
ret: FfiType.Void,
|
|
229
|
-
hasRustCallStatus: false
|
|
230
|
-
},
|
|
231
|
-
ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer: {
|
|
232
|
-
args: [FfiType.Handle],
|
|
233
|
-
ret: FfiType.Void,
|
|
234
|
-
hasRustCallStatus: false
|
|
235
|
-
},
|
|
236
|
-
ffi_dbx_tools_databricks_rust_future_complete_rust_buffer: {
|
|
237
|
-
args: [FfiType.Handle],
|
|
238
|
-
ret: FfiType.RustBuffer,
|
|
239
|
-
hasRustCallStatus: true
|
|
240
|
-
},
|
|
241
|
-
ffi_dbx_tools_databricks_rust_future_free_rust_buffer: {
|
|
242
|
-
args: [FfiType.Handle],
|
|
243
|
-
ret: FfiType.Void,
|
|
244
|
-
hasRustCallStatus: false
|
|
245
|
-
},
|
|
246
|
-
ffi_dbx_tools_databricks_rust_future_poll_void: {
|
|
247
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
248
|
-
ret: FfiType.Void,
|
|
249
|
-
hasRustCallStatus: false
|
|
250
|
-
},
|
|
251
|
-
ffi_dbx_tools_databricks_rust_future_cancel_void: {
|
|
252
|
-
args: [FfiType.Handle],
|
|
253
|
-
ret: FfiType.Void,
|
|
254
|
-
hasRustCallStatus: false
|
|
255
|
-
},
|
|
256
|
-
ffi_dbx_tools_databricks_rust_future_complete_void: {
|
|
257
|
-
args: [FfiType.Handle],
|
|
258
|
-
ret: FfiType.Void,
|
|
259
|
-
hasRustCallStatus: true
|
|
260
|
-
},
|
|
261
|
-
ffi_dbx_tools_databricks_rust_future_free_void: {
|
|
262
|
-
args: [FfiType.Handle],
|
|
263
|
-
ret: FfiType.Void,
|
|
264
|
-
hasRustCallStatus: false
|
|
265
|
-
},
|
|
266
|
-
uniffi_dbx_tools_databricks_fn_clone_persistentauth: {
|
|
267
|
-
args: [FfiType.Handle],
|
|
268
|
-
ret: FfiType.Handle,
|
|
269
|
-
hasRustCallStatus: true
|
|
270
|
-
},
|
|
271
|
-
uniffi_dbx_tools_databricks_fn_free_persistentauth: {
|
|
272
|
-
args: [FfiType.Handle],
|
|
273
|
-
ret: FfiType.Void,
|
|
274
|
-
hasRustCallStatus: true
|
|
275
|
-
},
|
|
276
|
-
uniffi_dbx_tools_databricks_fn_clone_providerauth: {
|
|
277
|
-
args: [FfiType.Handle],
|
|
278
|
-
ret: FfiType.Handle,
|
|
279
|
-
hasRustCallStatus: true
|
|
280
|
-
},
|
|
281
|
-
uniffi_dbx_tools_databricks_fn_free_providerauth: {
|
|
282
|
-
args: [FfiType.Handle],
|
|
283
|
-
ret: FfiType.Void,
|
|
284
|
-
hasRustCallStatus: true
|
|
285
|
-
},
|
|
286
|
-
uniffi_dbx_tools_databricks_fn_clone_storageadapter: {
|
|
287
|
-
args: [FfiType.Handle],
|
|
288
|
-
ret: FfiType.Handle,
|
|
289
|
-
hasRustCallStatus: true
|
|
290
|
-
},
|
|
291
|
-
uniffi_dbx_tools_databricks_fn_free_storageadapter: {
|
|
292
|
-
args: [FfiType.Handle],
|
|
293
|
-
ret: FfiType.Void,
|
|
294
|
-
hasRustCallStatus: true
|
|
295
|
-
},
|
|
296
|
-
uniffi_dbx_tools_databricks_fn_clone_storagehandle: {
|
|
297
|
-
args: [FfiType.Handle],
|
|
298
|
-
ret: FfiType.Handle,
|
|
299
|
-
hasRustCallStatus: true
|
|
300
|
-
},
|
|
301
|
-
uniffi_dbx_tools_databricks_fn_free_storagehandle: {
|
|
302
|
-
args: [FfiType.Handle],
|
|
303
|
-
ret: FfiType.Void,
|
|
304
|
-
hasRustCallStatus: true
|
|
305
|
-
},
|
|
306
|
-
uniffi_dbx_tools_databricks_fn_init_callback_vtable_storageadapter: {
|
|
307
|
-
args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceDbxToolsDatabricksStorageAdapter"))],
|
|
308
|
-
ret: FfiType.Void,
|
|
309
|
-
hasRustCallStatus: false
|
|
310
|
-
},
|
|
311
|
-
uniffi_dbx_tools_databricks_fn_func_canonical_scopes: {
|
|
312
|
-
args: [FfiType.RustBuffer],
|
|
313
|
-
ret: FfiType.RustBuffer,
|
|
314
|
-
hasRustCallStatus: true
|
|
315
|
-
},
|
|
316
|
-
uniffi_dbx_tools_databricks_fn_func_create_persistent_auth: {
|
|
317
|
-
args: [FfiType.RustBuffer, FfiType.RustBuffer],
|
|
318
|
-
ret: FfiType.Handle,
|
|
319
|
-
hasRustCallStatus: false
|
|
320
|
-
},
|
|
321
|
-
uniffi_dbx_tools_databricks_fn_func_create_persistent_auth_for_request: {
|
|
322
|
-
args: [FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
323
|
-
ret: FfiType.Handle,
|
|
324
|
-
hasRustCallStatus: false
|
|
325
|
-
},
|
|
326
|
-
uniffi_dbx_tools_databricks_fn_func_create_persistent_auth_with_storage: {
|
|
327
|
-
args: [FfiType.RustBuffer, FfiType.Handle],
|
|
328
|
-
ret: FfiType.Handle,
|
|
329
|
-
hasRustCallStatus: false
|
|
330
|
-
},
|
|
331
|
-
uniffi_dbx_tools_databricks_fn_func_create_provider_auth: {
|
|
332
|
-
args: [FfiType.RustBuffer],
|
|
333
|
-
ret: FfiType.Handle,
|
|
334
|
-
hasRustCallStatus: false
|
|
335
|
-
},
|
|
336
|
-
uniffi_dbx_tools_databricks_fn_func_create_provider_auth_with_storage: {
|
|
337
|
-
args: [FfiType.RustBuffer, FfiType.Handle],
|
|
338
|
-
ret: FfiType.Handle,
|
|
339
|
-
hasRustCallStatus: false
|
|
340
|
-
},
|
|
341
|
-
uniffi_dbx_tools_databricks_fn_func_create_storage_handle: {
|
|
342
|
-
args: [FfiType.Handle],
|
|
343
|
-
ret: FfiType.Handle,
|
|
344
|
-
hasRustCallStatus: true
|
|
345
|
-
},
|
|
346
|
-
uniffi_dbx_tools_databricks_fn_func_credential_key: {
|
|
347
|
-
args: [FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
348
|
-
ret: FfiType.RustBuffer,
|
|
349
|
-
hasRustCallStatus: true
|
|
350
|
-
},
|
|
351
|
-
uniffi_dbx_tools_databricks_fn_func_databricks_cli_available: {
|
|
352
|
-
args: [],
|
|
353
|
-
ret: FfiType.Int8,
|
|
354
|
-
hasRustCallStatus: true
|
|
355
|
-
},
|
|
356
|
-
uniffi_dbx_tools_databricks_fn_func_is_databricks_app: {
|
|
357
|
-
args: [],
|
|
358
|
-
ret: FfiType.Int8,
|
|
359
|
-
hasRustCallStatus: true
|
|
360
|
-
},
|
|
361
|
-
uniffi_dbx_tools_databricks_fn_method_persistentauth_challenge: {
|
|
362
|
-
args: [FfiType.Handle],
|
|
363
|
-
ret: FfiType.Handle,
|
|
364
|
-
hasRustCallStatus: false
|
|
365
|
-
},
|
|
366
|
-
uniffi_dbx_tools_databricks_fn_method_persistentauth_force_refresh_token: {
|
|
367
|
-
args: [FfiType.Handle],
|
|
368
|
-
ret: FfiType.Handle,
|
|
369
|
-
hasRustCallStatus: false
|
|
370
|
-
},
|
|
371
|
-
uniffi_dbx_tools_databricks_fn_method_persistentauth_logout: {
|
|
372
|
-
args: [FfiType.Handle],
|
|
373
|
-
ret: FfiType.Handle,
|
|
374
|
-
hasRustCallStatus: false
|
|
375
|
-
},
|
|
376
|
-
uniffi_dbx_tools_databricks_fn_method_persistentauth_refresh_rejected_token: {
|
|
377
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
378
|
-
ret: FfiType.Handle,
|
|
379
|
-
hasRustCallStatus: false
|
|
380
|
-
},
|
|
381
|
-
uniffi_dbx_tools_databricks_fn_method_persistentauth_status: {
|
|
382
|
-
args: [FfiType.Handle],
|
|
383
|
-
ret: FfiType.RustBuffer,
|
|
384
|
-
hasRustCallStatus: true
|
|
385
|
-
},
|
|
386
|
-
uniffi_dbx_tools_databricks_fn_method_persistentauth_token: {
|
|
387
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
388
|
-
ret: FfiType.Handle,
|
|
389
|
-
hasRustCallStatus: false
|
|
390
|
-
},
|
|
391
|
-
uniffi_dbx_tools_databricks_fn_method_providerauth_force_refresh_token: {
|
|
392
|
-
args: [FfiType.Handle],
|
|
393
|
-
ret: FfiType.Handle,
|
|
394
|
-
hasRustCallStatus: false
|
|
395
|
-
},
|
|
396
|
-
uniffi_dbx_tools_databricks_fn_method_providerauth_logout: {
|
|
397
|
-
args: [FfiType.Handle],
|
|
398
|
-
ret: FfiType.Handle,
|
|
399
|
-
hasRustCallStatus: false
|
|
400
|
-
},
|
|
401
|
-
uniffi_dbx_tools_databricks_fn_method_providerauth_refresh_rejected_token: {
|
|
402
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
403
|
-
ret: FfiType.Handle,
|
|
404
|
-
hasRustCallStatus: false
|
|
405
|
-
},
|
|
406
|
-
uniffi_dbx_tools_databricks_fn_method_providerauth_token: {
|
|
407
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
408
|
-
ret: FfiType.Handle,
|
|
409
|
-
hasRustCallStatus: false
|
|
410
|
-
},
|
|
411
|
-
uniffi_dbx_tools_databricks_fn_method_storageadapter_load: {
|
|
412
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
413
|
-
ret: FfiType.Handle,
|
|
414
|
-
hasRustCallStatus: false
|
|
415
|
-
},
|
|
416
|
-
uniffi_dbx_tools_databricks_fn_method_storageadapter_prepare_write: {
|
|
417
|
-
args: [FfiType.Handle],
|
|
418
|
-
ret: FfiType.Handle,
|
|
419
|
-
hasRustCallStatus: false
|
|
420
|
-
},
|
|
421
|
-
uniffi_dbx_tools_databricks_fn_method_storageadapter_save: {
|
|
422
|
-
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
423
|
-
ret: FfiType.Handle,
|
|
424
|
-
hasRustCallStatus: false
|
|
425
|
-
},
|
|
426
|
-
uniffi_dbx_tools_databricks_fn_method_storageadapter_remove: {
|
|
427
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
428
|
-
ret: FfiType.Handle,
|
|
429
|
-
hasRustCallStatus: false
|
|
430
|
-
},
|
|
431
|
-
uniffi_dbx_tools_databricks_fn_method_storageadapter_acquire_lock: {
|
|
432
|
-
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.UInt64],
|
|
433
|
-
ret: FfiType.Handle,
|
|
434
|
-
hasRustCallStatus: false
|
|
435
|
-
},
|
|
436
|
-
uniffi_dbx_tools_databricks_fn_method_storageadapter_release_lock: {
|
|
437
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
438
|
-
ret: FfiType.Handle,
|
|
439
|
-
hasRustCallStatus: false
|
|
440
|
-
},
|
|
441
|
-
uniffi_dbx_tools_databricks_fn_method_storageadapter_name: {
|
|
442
|
-
args: [FfiType.Handle],
|
|
443
|
-
ret: FfiType.RustBuffer,
|
|
444
|
-
hasRustCallStatus: true
|
|
445
|
-
},
|
|
446
|
-
ffi_dbx_tools_databricks_uniffi_contract_version: {
|
|
447
|
-
args: [],
|
|
448
|
-
ret: FfiType.UInt32,
|
|
449
|
-
hasRustCallStatus: false
|
|
450
|
-
},
|
|
451
|
-
uniffi_dbx_tools_databricks_checksum_func_canonical_scopes: {
|
|
452
|
-
args: [],
|
|
453
|
-
ret: FfiType.UInt16,
|
|
454
|
-
hasRustCallStatus: false
|
|
455
|
-
},
|
|
456
|
-
uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth: {
|
|
457
|
-
args: [],
|
|
458
|
-
ret: FfiType.UInt16,
|
|
459
|
-
hasRustCallStatus: false
|
|
460
|
-
},
|
|
461
|
-
uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth_for_request: {
|
|
462
|
-
args: [],
|
|
463
|
-
ret: FfiType.UInt16,
|
|
464
|
-
hasRustCallStatus: false
|
|
465
|
-
},
|
|
466
|
-
uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth_with_storage: {
|
|
467
|
-
args: [],
|
|
468
|
-
ret: FfiType.UInt16,
|
|
469
|
-
hasRustCallStatus: false
|
|
470
|
-
},
|
|
471
|
-
uniffi_dbx_tools_databricks_checksum_func_create_provider_auth: {
|
|
472
|
-
args: [],
|
|
473
|
-
ret: FfiType.UInt16,
|
|
474
|
-
hasRustCallStatus: false
|
|
475
|
-
},
|
|
476
|
-
uniffi_dbx_tools_databricks_checksum_func_create_provider_auth_with_storage: {
|
|
477
|
-
args: [],
|
|
478
|
-
ret: FfiType.UInt16,
|
|
479
|
-
hasRustCallStatus: false
|
|
480
|
-
},
|
|
481
|
-
uniffi_dbx_tools_databricks_checksum_func_create_storage_handle: {
|
|
482
|
-
args: [],
|
|
483
|
-
ret: FfiType.UInt16,
|
|
484
|
-
hasRustCallStatus: false
|
|
485
|
-
},
|
|
486
|
-
uniffi_dbx_tools_databricks_checksum_func_credential_key: {
|
|
487
|
-
args: [],
|
|
488
|
-
ret: FfiType.UInt16,
|
|
489
|
-
hasRustCallStatus: false
|
|
490
|
-
},
|
|
491
|
-
uniffi_dbx_tools_databricks_checksum_func_databricks_cli_available: {
|
|
492
|
-
args: [],
|
|
493
|
-
ret: FfiType.UInt16,
|
|
494
|
-
hasRustCallStatus: false
|
|
495
|
-
},
|
|
496
|
-
uniffi_dbx_tools_databricks_checksum_func_is_databricks_app: {
|
|
497
|
-
args: [],
|
|
498
|
-
ret: FfiType.UInt16,
|
|
499
|
-
hasRustCallStatus: false
|
|
500
|
-
},
|
|
501
|
-
uniffi_dbx_tools_databricks_checksum_method_persistentauth_challenge: {
|
|
502
|
-
args: [],
|
|
503
|
-
ret: FfiType.UInt16,
|
|
504
|
-
hasRustCallStatus: false
|
|
505
|
-
},
|
|
506
|
-
uniffi_dbx_tools_databricks_checksum_method_persistentauth_force_refresh_token: {
|
|
507
|
-
args: [],
|
|
508
|
-
ret: FfiType.UInt16,
|
|
509
|
-
hasRustCallStatus: false
|
|
510
|
-
},
|
|
511
|
-
uniffi_dbx_tools_databricks_checksum_method_persistentauth_logout: {
|
|
512
|
-
args: [],
|
|
513
|
-
ret: FfiType.UInt16,
|
|
514
|
-
hasRustCallStatus: false
|
|
515
|
-
},
|
|
516
|
-
uniffi_dbx_tools_databricks_checksum_method_persistentauth_refresh_rejected_token: {
|
|
517
|
-
args: [],
|
|
518
|
-
ret: FfiType.UInt16,
|
|
519
|
-
hasRustCallStatus: false
|
|
520
|
-
},
|
|
521
|
-
uniffi_dbx_tools_databricks_checksum_method_persistentauth_status: {
|
|
522
|
-
args: [],
|
|
523
|
-
ret: FfiType.UInt16,
|
|
524
|
-
hasRustCallStatus: false
|
|
525
|
-
},
|
|
526
|
-
uniffi_dbx_tools_databricks_checksum_method_persistentauth_token: {
|
|
527
|
-
args: [],
|
|
528
|
-
ret: FfiType.UInt16,
|
|
529
|
-
hasRustCallStatus: false
|
|
530
|
-
},
|
|
531
|
-
uniffi_dbx_tools_databricks_checksum_method_providerauth_force_refresh_token: {
|
|
532
|
-
args: [],
|
|
533
|
-
ret: FfiType.UInt16,
|
|
534
|
-
hasRustCallStatus: false
|
|
535
|
-
},
|
|
536
|
-
uniffi_dbx_tools_databricks_checksum_method_providerauth_logout: {
|
|
537
|
-
args: [],
|
|
538
|
-
ret: FfiType.UInt16,
|
|
539
|
-
hasRustCallStatus: false
|
|
540
|
-
},
|
|
541
|
-
uniffi_dbx_tools_databricks_checksum_method_providerauth_refresh_rejected_token: {
|
|
542
|
-
args: [],
|
|
543
|
-
ret: FfiType.UInt16,
|
|
544
|
-
hasRustCallStatus: false
|
|
545
|
-
},
|
|
546
|
-
uniffi_dbx_tools_databricks_checksum_method_providerauth_token: {
|
|
547
|
-
args: [],
|
|
548
|
-
ret: FfiType.UInt16,
|
|
549
|
-
hasRustCallStatus: false
|
|
550
|
-
},
|
|
551
|
-
uniffi_dbx_tools_databricks_checksum_method_storageadapter_load: {
|
|
552
|
-
args: [],
|
|
553
|
-
ret: FfiType.UInt16,
|
|
554
|
-
hasRustCallStatus: false
|
|
555
|
-
},
|
|
556
|
-
uniffi_dbx_tools_databricks_checksum_method_storageadapter_prepare_write: {
|
|
557
|
-
args: [],
|
|
558
|
-
ret: FfiType.UInt16,
|
|
559
|
-
hasRustCallStatus: false
|
|
560
|
-
},
|
|
561
|
-
uniffi_dbx_tools_databricks_checksum_method_storageadapter_save: {
|
|
562
|
-
args: [],
|
|
563
|
-
ret: FfiType.UInt16,
|
|
564
|
-
hasRustCallStatus: false
|
|
565
|
-
},
|
|
566
|
-
uniffi_dbx_tools_databricks_checksum_method_storageadapter_remove: {
|
|
567
|
-
args: [],
|
|
568
|
-
ret: FfiType.UInt16,
|
|
569
|
-
hasRustCallStatus: false
|
|
570
|
-
},
|
|
571
|
-
uniffi_dbx_tools_databricks_checksum_method_storageadapter_acquire_lock: {
|
|
572
|
-
args: [],
|
|
573
|
-
ret: FfiType.UInt16,
|
|
574
|
-
hasRustCallStatus: false
|
|
575
|
-
},
|
|
576
|
-
uniffi_dbx_tools_databricks_checksum_method_storageadapter_release_lock: {
|
|
577
|
-
args: [],
|
|
578
|
-
ret: FfiType.UInt16,
|
|
579
|
-
hasRustCallStatus: false
|
|
580
|
-
},
|
|
581
|
-
uniffi_dbx_tools_databricks_checksum_method_storageadapter_name: {
|
|
582
|
-
args: [],
|
|
583
|
-
ret: FfiType.UInt16,
|
|
584
|
-
hasRustCallStatus: false
|
|
585
|
-
}
|
|
586
|
-
},
|
|
587
|
-
callbacks: {
|
|
588
|
-
RustFutureContinuationCallback: {
|
|
589
|
-
args: [FfiType.Handle, FfiType.Int8],
|
|
590
|
-
ret: FfiType.Void,
|
|
591
|
-
hasRustCallStatus: false
|
|
592
|
-
},
|
|
593
|
-
ForeignFutureDroppedCallback: {
|
|
594
|
-
args: [FfiType.Handle],
|
|
595
|
-
ret: FfiType.Void,
|
|
596
|
-
hasRustCallStatus: false
|
|
597
|
-
},
|
|
598
|
-
ForeignFutureCompleterust_buffer: {
|
|
599
|
-
args: [FfiType.Handle, FfiType.Struct("ForeignFutureResultRustBuffer")],
|
|
600
|
-
ret: FfiType.Void,
|
|
601
|
-
hasRustCallStatus: false
|
|
602
|
-
},
|
|
603
|
-
CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod0: {
|
|
604
|
-
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
|
|
605
|
-
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
606
|
-
hasRustCallStatus: false,
|
|
607
|
-
outReturn: true
|
|
608
|
-
},
|
|
609
|
-
ForeignFutureCompletevoid: {
|
|
610
|
-
args: [FfiType.Handle, FfiType.Struct("ForeignFutureResultVoid")],
|
|
611
|
-
ret: FfiType.Void,
|
|
612
|
-
hasRustCallStatus: false
|
|
613
|
-
},
|
|
614
|
-
CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod1: {
|
|
615
|
-
args: [FfiType.Handle, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
616
|
-
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
617
|
-
hasRustCallStatus: false,
|
|
618
|
-
outReturn: true
|
|
619
|
-
},
|
|
620
|
-
CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod2: {
|
|
621
|
-
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
622
|
-
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
623
|
-
hasRustCallStatus: false,
|
|
624
|
-
outReturn: true
|
|
625
|
-
},
|
|
626
|
-
CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod3: {
|
|
627
|
-
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
628
|
-
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
629
|
-
hasRustCallStatus: false,
|
|
630
|
-
outReturn: true
|
|
631
|
-
},
|
|
632
|
-
CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod4: {
|
|
633
|
-
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.UInt64, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
|
|
634
|
-
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
635
|
-
hasRustCallStatus: false,
|
|
636
|
-
outReturn: true
|
|
637
|
-
},
|
|
638
|
-
CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod5: {
|
|
639
|
-
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
640
|
-
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
641
|
-
hasRustCallStatus: false,
|
|
642
|
-
outReturn: true
|
|
643
|
-
},
|
|
644
|
-
CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod6: {
|
|
645
|
-
args: [FfiType.Handle],
|
|
646
|
-
ret: FfiType.RustBuffer,
|
|
647
|
-
hasRustCallStatus: true,
|
|
648
|
-
outReturn: true
|
|
649
|
-
},
|
|
650
|
-
CallbackInterfaceCloneDbxToolsDatabricks_StorageAdapter: {
|
|
651
|
-
args: [FfiType.Handle],
|
|
652
|
-
ret: FfiType.Handle,
|
|
653
|
-
hasRustCallStatus: false
|
|
654
|
-
},
|
|
655
|
-
CallbackInterfaceFreeDbxToolsDatabricks_StorageAdapter: {
|
|
656
|
-
args: [FfiType.Handle],
|
|
657
|
-
ret: FfiType.Void,
|
|
658
|
-
hasRustCallStatus: false
|
|
659
|
-
}
|
|
660
|
-
},
|
|
661
|
-
structs: {
|
|
662
|
-
ForeignFutureDroppedCallbackStruct: [
|
|
663
|
-
{ name: "handle", type: FfiType.Handle },
|
|
664
|
-
{ name: "free", type: FfiType.Callback("ForeignFutureDroppedCallback") }
|
|
665
|
-
],
|
|
666
|
-
ForeignFutureResultRustBuffer: [
|
|
667
|
-
{ name: "return_value", type: FfiType.RustBuffer },
|
|
668
|
-
{ name: "call_status", type: FfiType.RustCallStatus }
|
|
669
|
-
],
|
|
670
|
-
ForeignFutureResultVoid: [
|
|
671
|
-
{ name: "call_status", type: FfiType.RustCallStatus }
|
|
672
|
-
],
|
|
673
|
-
VTableCallbackInterfaceDbxToolsDatabricksStorageAdapter: [
|
|
674
|
-
{ name: "uniffi_free", type: FfiType.Callback("CallbackInterfaceFreeDbxToolsDatabricks_StorageAdapter") },
|
|
675
|
-
{ name: "uniffi_clone", type: FfiType.Callback("CallbackInterfaceCloneDbxToolsDatabricks_StorageAdapter") },
|
|
676
|
-
{ name: "load", type: FfiType.Callback("CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod0") },
|
|
677
|
-
{ name: "prepare_write", type: FfiType.Callback("CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod1") },
|
|
678
|
-
{ name: "save", type: FfiType.Callback("CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod2") },
|
|
679
|
-
{ name: "remove", type: FfiType.Callback("CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod3") },
|
|
680
|
-
{ name: "acquire_lock", type: FfiType.Callback("CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod4") },
|
|
681
|
-
{ name: "release_lock", type: FfiType.Callback("CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod5") },
|
|
682
|
-
{ name: "name", type: FfiType.Callback("CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod6") }
|
|
683
|
-
]
|
|
684
|
-
}
|
|
685
|
-
};
|
|
686
|
-
var _nativeModule;
|
|
687
|
-
var getter = () => {
|
|
688
|
-
if (!_nativeModule) {
|
|
689
|
-
const libPath = resolveLibPath({
|
|
690
|
-
crateName: "dbx_tools_databricks",
|
|
691
|
-
callerUrl: import.meta.url,
|
|
692
|
-
npmPackageBase: "@dbx-tools/databricks-",
|
|
693
|
-
tripleStyle: "node"
|
|
694
|
-
});
|
|
695
|
-
const mod_ = UniffiNativeModule.open(libPath);
|
|
696
|
-
_nativeModule = mod_.register(DEFINITIONS);
|
|
697
|
-
}
|
|
698
|
-
return _nativeModule;
|
|
699
|
-
};
|
|
700
|
-
var _bindings_ffi_default = getter;
|
|
701
|
-
|
|
702
|
-
// src/_bindings.ts
|
|
703
|
-
import {
|
|
704
|
-
AbstractFfiConverterByteArray,
|
|
705
|
-
FfiConverterArray,
|
|
706
|
-
FfiConverterBool,
|
|
707
|
-
FfiConverterInt64,
|
|
708
|
-
FfiConverterMap,
|
|
709
|
-
FfiConverterObject,
|
|
710
|
-
FfiConverterObjectWithCallbacks,
|
|
711
|
-
FfiConverterOptional,
|
|
712
|
-
FfiConverterUInt64,
|
|
713
|
-
UniffiAbstractObject,
|
|
714
|
-
UniffiError,
|
|
715
|
-
UniffiInternalError,
|
|
716
|
-
UniffiResult,
|
|
717
|
-
UniffiRustCaller,
|
|
718
|
-
destructorGuardSymbol,
|
|
719
|
-
pointerLiteralSymbol,
|
|
720
|
-
uniffiCreateFfiConverterString,
|
|
721
|
-
uniffiCreateRecord,
|
|
722
|
-
uniffiRustCallAsync,
|
|
723
|
-
uniffiTraitInterfaceCall,
|
|
724
|
-
uniffiTraitInterfaceCallAsyncWithError,
|
|
725
|
-
uniffiTypeNameSymbol
|
|
726
|
-
} from "@ubjs/core";
|
|
727
|
-
var uniffiCaller = new UniffiRustCaller(() => ({ code: 0 }));
|
|
728
|
-
var uniffiIsDebug = typeof process !== "object" || process?.env?.NODE_ENV !== "production" || false;
|
|
729
|
-
function canonicalScopes(scopes) {
|
|
730
|
-
const __rb = uniffiCaller.rustCall((callStatus) => {
|
|
731
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_canonical_scopes(FfiConverterSequenceString.lower(scopes, _bindings_ffi_default().rustbuffer_alloc), callStatus);
|
|
732
|
-
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
733
|
-
try {
|
|
734
|
-
return FfiConverterSequenceString.lift(__rb);
|
|
735
|
-
} finally {
|
|
736
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
async function createPersistentAuth(options, storage = undefined, asyncOpts_) {
|
|
740
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
741
|
-
try {
|
|
742
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
743
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_create_persistent_auth(FfiConverterTypeDatabricksAuthOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc), FfiConverterOptionalTypeStorage.lower(storage, _bindings_ffi_default().rustbuffer_alloc));
|
|
744
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_u64, FfiConverterTypePersistentAuth.lift.bind(FfiConverterTypePersistentAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
745
|
-
} catch (__error) {
|
|
746
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
747
|
-
__error.stack = __stack;
|
|
748
|
-
}
|
|
749
|
-
throw __error;
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
async function createPersistentAuthForRequest(options, requestHeaders, storage = undefined, asyncOpts_) {
|
|
753
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
754
|
-
try {
|
|
755
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
756
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_create_persistent_auth_for_request(FfiConverterTypeDatabricksAuthOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc), FfiConverterMapStringString.lower(requestHeaders, _bindings_ffi_default().rustbuffer_alloc), FfiConverterOptionalTypeStorage.lower(storage, _bindings_ffi_default().rustbuffer_alloc));
|
|
757
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_u64, FfiConverterTypePersistentAuth.lift.bind(FfiConverterTypePersistentAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
758
|
-
} catch (__error) {
|
|
759
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
760
|
-
__error.stack = __stack;
|
|
761
|
-
}
|
|
762
|
-
throw __error;
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
async function createPersistentAuthWithStorage(options, storage, asyncOpts_) {
|
|
766
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
767
|
-
try {
|
|
768
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
769
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_create_persistent_auth_with_storage(FfiConverterTypeDatabricksAuthOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc), FfiConverterTypeStorageHandle.lower(storage, _bindings_ffi_default().rustbuffer_alloc));
|
|
770
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_u64, FfiConverterTypePersistentAuth.lift.bind(FfiConverterTypePersistentAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
771
|
-
} catch (__error) {
|
|
772
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
773
|
-
__error.stack = __stack;
|
|
774
|
-
}
|
|
775
|
-
throw __error;
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
async function createProviderAuth(options, asyncOpts_) {
|
|
779
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
780
|
-
try {
|
|
781
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
782
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_create_provider_auth(FfiConverterTypeProviderOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc));
|
|
783
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_u64, FfiConverterTypeProviderAuth.lift.bind(FfiConverterTypeProviderAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
784
|
-
} catch (__error) {
|
|
785
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
786
|
-
__error.stack = __stack;
|
|
787
|
-
}
|
|
788
|
-
throw __error;
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
async function createProviderAuthWithStorage(options, storage, asyncOpts_) {
|
|
792
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
793
|
-
try {
|
|
794
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
795
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_create_provider_auth_with_storage(FfiConverterTypeProviderOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc), FfiConverterTypeStorageHandle.lower(storage, _bindings_ffi_default().rustbuffer_alloc));
|
|
796
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_u64, FfiConverterTypeProviderAuth.lift.bind(FfiConverterTypeProviderAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
797
|
-
} catch (__error) {
|
|
798
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
799
|
-
__error.stack = __stack;
|
|
800
|
-
}
|
|
801
|
-
throw __error;
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
function createStorageHandle(storage) {
|
|
805
|
-
return FfiConverterTypeStorageHandle.lift(uniffiCaller.rustCall((callStatus) => {
|
|
806
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_create_storage_handle(FfiConverterTypeStorageAdapter.lower(storage, _bindings_ffi_default().rustbuffer_alloc), callStatus);
|
|
807
|
-
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
808
|
-
}
|
|
809
|
-
function credentialKey(provider, profile, scopes) {
|
|
810
|
-
const __rb = uniffiCaller.rustCall((callStatus) => {
|
|
811
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_credential_key(FfiConverterString.lower(provider, _bindings_ffi_default().rustbuffer_alloc), FfiConverterOptionalString.lower(profile, _bindings_ffi_default().rustbuffer_alloc), FfiConverterSequenceString.lower(scopes, _bindings_ffi_default().rustbuffer_alloc), callStatus);
|
|
812
|
-
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
813
|
-
try {
|
|
814
|
-
return FfiConverterString.lift(__rb);
|
|
815
|
-
} finally {
|
|
816
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
function databricksCliAvailable() {
|
|
820
|
-
return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
|
|
821
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_databricks_cli_available(callStatus);
|
|
822
|
-
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
823
|
-
}
|
|
824
|
-
function isDatabricksApp() {
|
|
825
|
-
return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
|
|
826
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_is_databricks_app(callStatus);
|
|
827
|
-
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
828
|
-
}
|
|
829
|
-
var stringConverter = (() => {
|
|
830
|
-
const encoder = new TextEncoder;
|
|
831
|
-
const decoder = new TextDecoder;
|
|
832
|
-
return {
|
|
833
|
-
stringToBytes: (s) => encoder.encode(s),
|
|
834
|
-
bytesToString: (ab) => decoder.decode(ab),
|
|
835
|
-
stringByteLength: (s) => encoder.encode(s).byteLength,
|
|
836
|
-
writeStringIntoBuffer: (s, buf, offset) => {
|
|
837
|
-
const view = new Uint8Array(buf.arrayBuffer, offset, buf.arrayBuffer.byteLength - offset);
|
|
838
|
-
return encoder.encodeInto(s, view).written;
|
|
839
|
-
},
|
|
840
|
-
readStringFromBuffer: (buf, offset, length) => decoder.decode(new Uint8Array(buf.arrayBuffer, offset, length))
|
|
841
|
-
};
|
|
842
|
-
})();
|
|
843
|
-
var FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
844
|
-
var AccessToken = (() => {
|
|
845
|
-
const defaults = () => ({});
|
|
846
|
-
const create = (() => {
|
|
847
|
-
return uniffiCreateRecord(defaults);
|
|
848
|
-
})();
|
|
849
|
-
return Object.freeze({
|
|
850
|
-
create,
|
|
851
|
-
new: create,
|
|
852
|
-
defaults: () => Object.freeze(defaults())
|
|
853
|
-
});
|
|
854
|
-
})();
|
|
855
|
-
var FfiConverterTypeAccessToken = (() => {
|
|
856
|
-
|
|
857
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
858
|
-
readFromCursor(c) {
|
|
859
|
-
return {
|
|
860
|
-
accessToken: FfiConverterString.readFromCursor(c),
|
|
861
|
-
tokenType: FfiConverterString.readFromCursor(c),
|
|
862
|
-
expiry: FfiConverterOptionalString.readFromCursor(c),
|
|
863
|
-
scopes: FfiConverterSequenceString.readFromCursor(c)
|
|
864
|
-
};
|
|
865
|
-
}
|
|
866
|
-
writeIntoCursor(value, c) {
|
|
867
|
-
FfiConverterString.writeIntoCursor(value.accessToken, c);
|
|
868
|
-
FfiConverterString.writeIntoCursor(value.tokenType, c);
|
|
869
|
-
FfiConverterOptionalString.writeIntoCursor(value.expiry, c);
|
|
870
|
-
FfiConverterSequenceString.writeIntoCursor(value.scopes, c);
|
|
871
|
-
}
|
|
872
|
-
allocationSize(value) {
|
|
873
|
-
return FfiConverterString.allocationSize(value.accessToken) + FfiConverterString.allocationSize(value.tokenType) + FfiConverterOptionalString.allocationSize(value.expiry) + FfiConverterSequenceString.allocationSize(value.scopes);
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
return new FFIConverter;
|
|
877
|
-
})();
|
|
878
|
-
var AuthOptions = (() => {
|
|
879
|
-
const defaults = () => ({
|
|
880
|
-
refreshBufferSeconds: BigInt("300"),
|
|
881
|
-
lockTimeoutSeconds: BigInt("30"),
|
|
882
|
-
loginTimeoutSeconds: BigInt("3600"),
|
|
883
|
-
callbackImageSrc: undefined
|
|
884
|
-
});
|
|
885
|
-
const create = (() => {
|
|
886
|
-
return uniffiCreateRecord(defaults);
|
|
887
|
-
})();
|
|
888
|
-
return Object.freeze({
|
|
889
|
-
create,
|
|
890
|
-
new: create,
|
|
891
|
-
defaults: () => Object.freeze(defaults())
|
|
892
|
-
});
|
|
893
|
-
})();
|
|
894
|
-
var FfiConverterTypeAuthOptions = (() => {
|
|
895
|
-
|
|
896
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
897
|
-
readFromCursor(c) {
|
|
898
|
-
return {
|
|
899
|
-
refreshBufferSeconds: FfiConverterInt64.readFromCursor(c),
|
|
900
|
-
lockTimeoutSeconds: FfiConverterUInt64.readFromCursor(c),
|
|
901
|
-
loginTimeoutSeconds: FfiConverterUInt64.readFromCursor(c),
|
|
902
|
-
callbackImageSrc: FfiConverterOptionalString.readFromCursor(c)
|
|
903
|
-
};
|
|
904
|
-
}
|
|
905
|
-
writeIntoCursor(value, c) {
|
|
906
|
-
FfiConverterInt64.writeIntoCursor(value.refreshBufferSeconds, c);
|
|
907
|
-
FfiConverterUInt64.writeIntoCursor(value.lockTimeoutSeconds, c);
|
|
908
|
-
FfiConverterUInt64.writeIntoCursor(value.loginTimeoutSeconds, c);
|
|
909
|
-
FfiConverterOptionalString.writeIntoCursor(value.callbackImageSrc, c);
|
|
910
|
-
}
|
|
911
|
-
allocationSize(value) {
|
|
912
|
-
return FfiConverterInt64.allocationSize(value.refreshBufferSeconds) + FfiConverterUInt64.allocationSize(value.lockTimeoutSeconds) + FfiConverterUInt64.allocationSize(value.loginTimeoutSeconds) + FfiConverterOptionalString.allocationSize(value.callbackImageSrc);
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
return new FFIConverter;
|
|
916
|
-
})();
|
|
917
|
-
var DatabricksAuthOptions = (() => {
|
|
918
|
-
const defaults = () => ({
|
|
919
|
-
profile: undefined,
|
|
920
|
-
host: undefined,
|
|
921
|
-
accountId: undefined,
|
|
922
|
-
workspaceId: undefined,
|
|
923
|
-
configFile: undefined,
|
|
924
|
-
clientId: undefined,
|
|
925
|
-
groupId: undefined,
|
|
926
|
-
authType: undefined,
|
|
927
|
-
scopes: undefined,
|
|
928
|
-
target: undefined,
|
|
929
|
-
cacheDir: undefined,
|
|
930
|
-
auth: undefined,
|
|
931
|
-
preferUserToMachine: true
|
|
932
|
-
});
|
|
933
|
-
const create = (() => {
|
|
934
|
-
return uniffiCreateRecord(defaults);
|
|
935
|
-
})();
|
|
936
|
-
return Object.freeze({
|
|
937
|
-
create,
|
|
938
|
-
new: create,
|
|
939
|
-
defaults: () => Object.freeze(defaults())
|
|
940
|
-
});
|
|
941
|
-
})();
|
|
942
|
-
var FfiConverterTypeDatabricksAuthOptions = (() => {
|
|
943
|
-
|
|
944
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
945
|
-
readFromCursor(c) {
|
|
946
|
-
return {
|
|
947
|
-
profile: FfiConverterOptionalString.readFromCursor(c),
|
|
948
|
-
host: FfiConverterOptionalString.readFromCursor(c),
|
|
949
|
-
accountId: FfiConverterOptionalString.readFromCursor(c),
|
|
950
|
-
workspaceId: FfiConverterOptionalString.readFromCursor(c),
|
|
951
|
-
configFile: FfiConverterOptionalString.readFromCursor(c),
|
|
952
|
-
clientId: FfiConverterOptionalString.readFromCursor(c),
|
|
953
|
-
groupId: FfiConverterOptionalString.readFromCursor(c),
|
|
954
|
-
authType: FfiConverterOptionalString.readFromCursor(c),
|
|
955
|
-
scopes: FfiConverterOptionalSequenceString.readFromCursor(c),
|
|
956
|
-
target: FfiConverterOptionalString.readFromCursor(c),
|
|
957
|
-
cacheDir: FfiConverterOptionalString.readFromCursor(c),
|
|
958
|
-
auth: FfiConverterOptionalTypeAuthOptions.readFromCursor(c),
|
|
959
|
-
preferUserToMachine: FfiConverterBool.readFromCursor(c)
|
|
960
|
-
};
|
|
961
|
-
}
|
|
962
|
-
writeIntoCursor(value, c) {
|
|
963
|
-
FfiConverterOptionalString.writeIntoCursor(value.profile, c);
|
|
964
|
-
FfiConverterOptionalString.writeIntoCursor(value.host, c);
|
|
965
|
-
FfiConverterOptionalString.writeIntoCursor(value.accountId, c);
|
|
966
|
-
FfiConverterOptionalString.writeIntoCursor(value.workspaceId, c);
|
|
967
|
-
FfiConverterOptionalString.writeIntoCursor(value.configFile, c);
|
|
968
|
-
FfiConverterOptionalString.writeIntoCursor(value.clientId, c);
|
|
969
|
-
FfiConverterOptionalString.writeIntoCursor(value.groupId, c);
|
|
970
|
-
FfiConverterOptionalString.writeIntoCursor(value.authType, c);
|
|
971
|
-
FfiConverterOptionalSequenceString.writeIntoCursor(value.scopes, c);
|
|
972
|
-
FfiConverterOptionalString.writeIntoCursor(value.target, c);
|
|
973
|
-
FfiConverterOptionalString.writeIntoCursor(value.cacheDir, c);
|
|
974
|
-
FfiConverterOptionalTypeAuthOptions.writeIntoCursor(value.auth, c);
|
|
975
|
-
FfiConverterBool.writeIntoCursor(value.preferUserToMachine, c);
|
|
976
|
-
}
|
|
977
|
-
allocationSize(value) {
|
|
978
|
-
return FfiConverterOptionalString.allocationSize(value.profile) + FfiConverterOptionalString.allocationSize(value.host) + FfiConverterOptionalString.allocationSize(value.accountId) + FfiConverterOptionalString.allocationSize(value.workspaceId) + FfiConverterOptionalString.allocationSize(value.configFile) + FfiConverterOptionalString.allocationSize(value.clientId) + FfiConverterOptionalString.allocationSize(value.groupId) + FfiConverterOptionalString.allocationSize(value.authType) + FfiConverterOptionalSequenceString.allocationSize(value.scopes) + FfiConverterOptionalString.allocationSize(value.target) + FfiConverterOptionalString.allocationSize(value.cacheDir) + FfiConverterOptionalTypeAuthOptions.allocationSize(value.auth) + FfiConverterBool.allocationSize(value.preferUserToMachine);
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
return new FFIConverter;
|
|
982
|
-
})();
|
|
983
|
-
var Storage;
|
|
984
|
-
((Storage2) => {
|
|
985
|
-
Storage2[Storage2["Auto"] = 0] = "Auto";
|
|
986
|
-
Storage2[Storage2["Memory"] = 1] = "Memory";
|
|
987
|
-
Storage2[Storage2["File"] = 2] = "File";
|
|
988
|
-
})(Storage ||= {});
|
|
989
|
-
var FfiConverterTypeStorage = (() => {
|
|
990
|
-
|
|
991
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
992
|
-
readFromCursor(c) {
|
|
993
|
-
switch (c.readI32()) {
|
|
994
|
-
case 1:
|
|
995
|
-
return 0 /* Auto */;
|
|
996
|
-
case 2:
|
|
997
|
-
return 1 /* Memory */;
|
|
998
|
-
case 3:
|
|
999
|
-
return 2 /* File */;
|
|
1000
|
-
default:
|
|
1001
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
writeIntoCursor(value, c) {
|
|
1005
|
-
switch (value) {
|
|
1006
|
-
case 0 /* Auto */:
|
|
1007
|
-
return c.writeI32(1);
|
|
1008
|
-
case 1 /* Memory */:
|
|
1009
|
-
return c.writeI32(2);
|
|
1010
|
-
case 2 /* File */:
|
|
1011
|
-
return c.writeI32(3);
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
allocationSize(value) {
|
|
1015
|
-
return 4;
|
|
1016
|
-
}
|
|
1017
|
-
}
|
|
1018
|
-
return new FFIConverter;
|
|
1019
|
-
})();
|
|
1020
|
-
var DatabricksAuthStatus = (() => {
|
|
1021
|
-
const defaults = () => ({});
|
|
1022
|
-
const create = (() => {
|
|
1023
|
-
return uniffiCreateRecord(defaults);
|
|
1024
|
-
})();
|
|
1025
|
-
return Object.freeze({
|
|
1026
|
-
create,
|
|
1027
|
-
new: create,
|
|
1028
|
-
defaults: () => Object.freeze(defaults())
|
|
1029
|
-
});
|
|
1030
|
-
})();
|
|
1031
|
-
var FfiConverterTypeDatabricksAuthStatus = (() => {
|
|
1032
|
-
|
|
1033
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1034
|
-
readFromCursor(c) {
|
|
1035
|
-
return {
|
|
1036
|
-
profile: FfiConverterString.readFromCursor(c),
|
|
1037
|
-
host: FfiConverterString.readFromCursor(c),
|
|
1038
|
-
storage: FfiConverterTypeStorage.readFromCursor(c)
|
|
1039
|
-
};
|
|
1040
|
-
}
|
|
1041
|
-
writeIntoCursor(value, c) {
|
|
1042
|
-
FfiConverterString.writeIntoCursor(value.profile, c);
|
|
1043
|
-
FfiConverterString.writeIntoCursor(value.host, c);
|
|
1044
|
-
FfiConverterTypeStorage.writeIntoCursor(value.storage, c);
|
|
1045
|
-
}
|
|
1046
|
-
allocationSize(value) {
|
|
1047
|
-
return FfiConverterString.allocationSize(value.profile) + FfiConverterString.allocationSize(value.host) + FfiConverterTypeStorage.allocationSize(value.storage);
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
return new FFIConverter;
|
|
1051
|
-
})();
|
|
1052
|
-
var OAuthGrant;
|
|
1053
|
-
((OAuthGrant2) => {
|
|
1054
|
-
OAuthGrant2[OAuthGrant2["AuthorizationCode"] = 0] = "AuthorizationCode";
|
|
1055
|
-
OAuthGrant2[OAuthGrant2["ClientCredentials"] = 1] = "ClientCredentials";
|
|
1056
|
-
})(OAuthGrant ||= {});
|
|
1057
|
-
var FfiConverterTypeOAuthGrant = (() => {
|
|
1058
|
-
|
|
1059
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1060
|
-
readFromCursor(c) {
|
|
1061
|
-
switch (c.readI32()) {
|
|
1062
|
-
case 1:
|
|
1063
|
-
return 0 /* AuthorizationCode */;
|
|
1064
|
-
case 2:
|
|
1065
|
-
return 1 /* ClientCredentials */;
|
|
1066
|
-
default:
|
|
1067
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
writeIntoCursor(value, c) {
|
|
1071
|
-
switch (value) {
|
|
1072
|
-
case 0 /* AuthorizationCode */:
|
|
1073
|
-
return c.writeI32(1);
|
|
1074
|
-
case 1 /* ClientCredentials */:
|
|
1075
|
-
return c.writeI32(2);
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
allocationSize(value) {
|
|
1079
|
-
return 4;
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
return new FFIConverter;
|
|
1083
|
-
})();
|
|
1084
|
-
var FileLayout;
|
|
1085
|
-
((FileLayout2) => {
|
|
1086
|
-
FileLayout2[FileLayout2["Single"] = 0] = "Single";
|
|
1087
|
-
FileLayout2[FileLayout2["PerCredential"] = 1] = "PerCredential";
|
|
1088
|
-
})(FileLayout ||= {});
|
|
1089
|
-
var FfiConverterTypeFileLayout = (() => {
|
|
1090
|
-
|
|
1091
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1092
|
-
readFromCursor(c) {
|
|
1093
|
-
switch (c.readI32()) {
|
|
1094
|
-
case 1:
|
|
1095
|
-
return 0 /* Single */;
|
|
1096
|
-
case 2:
|
|
1097
|
-
return 1 /* PerCredential */;
|
|
1098
|
-
default:
|
|
1099
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
writeIntoCursor(value, c) {
|
|
1103
|
-
switch (value) {
|
|
1104
|
-
case 0 /* Single */:
|
|
1105
|
-
return c.writeI32(1);
|
|
1106
|
-
case 1 /* PerCredential */:
|
|
1107
|
-
return c.writeI32(2);
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
allocationSize(value) {
|
|
1111
|
-
return 4;
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
return new FFIConverter;
|
|
1115
|
-
})();
|
|
1116
|
-
var ProviderOptions = (() => {
|
|
1117
|
-
const defaults = () => ({
|
|
1118
|
-
authorizationEndpoint: undefined,
|
|
1119
|
-
clientSecret: undefined,
|
|
1120
|
-
profile: undefined,
|
|
1121
|
-
scopes: [],
|
|
1122
|
-
grant: undefined,
|
|
1123
|
-
cacheDir: undefined,
|
|
1124
|
-
storage: undefined,
|
|
1125
|
-
fileLayout: undefined,
|
|
1126
|
-
auth: undefined
|
|
1127
|
-
});
|
|
1128
|
-
const create = (() => {
|
|
1129
|
-
return uniffiCreateRecord(defaults);
|
|
1130
|
-
})();
|
|
1131
|
-
return Object.freeze({
|
|
1132
|
-
create,
|
|
1133
|
-
new: create,
|
|
1134
|
-
defaults: () => Object.freeze(defaults())
|
|
1135
|
-
});
|
|
1136
|
-
})();
|
|
1137
|
-
var FfiConverterTypeProviderOptions = (() => {
|
|
1138
|
-
|
|
1139
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1140
|
-
readFromCursor(c) {
|
|
1141
|
-
return {
|
|
1142
|
-
provider: FfiConverterString.readFromCursor(c),
|
|
1143
|
-
clientId: FfiConverterString.readFromCursor(c),
|
|
1144
|
-
tokenEndpoint: FfiConverterString.readFromCursor(c),
|
|
1145
|
-
authorizationEndpoint: FfiConverterOptionalString.readFromCursor(c),
|
|
1146
|
-
clientSecret: FfiConverterOptionalString.readFromCursor(c),
|
|
1147
|
-
profile: FfiConverterOptionalString.readFromCursor(c),
|
|
1148
|
-
scopes: FfiConverterSequenceString.readFromCursor(c),
|
|
1149
|
-
grant: FfiConverterOptionalTypeOAuthGrant.readFromCursor(c),
|
|
1150
|
-
cacheDir: FfiConverterOptionalString.readFromCursor(c),
|
|
1151
|
-
storage: FfiConverterOptionalTypeStorage.readFromCursor(c),
|
|
1152
|
-
fileLayout: FfiConverterOptionalTypeFileLayout.readFromCursor(c),
|
|
1153
|
-
auth: FfiConverterOptionalTypeAuthOptions.readFromCursor(c)
|
|
1154
|
-
};
|
|
1155
|
-
}
|
|
1156
|
-
writeIntoCursor(value, c) {
|
|
1157
|
-
FfiConverterString.writeIntoCursor(value.provider, c);
|
|
1158
|
-
FfiConverterString.writeIntoCursor(value.clientId, c);
|
|
1159
|
-
FfiConverterString.writeIntoCursor(value.tokenEndpoint, c);
|
|
1160
|
-
FfiConverterOptionalString.writeIntoCursor(value.authorizationEndpoint, c);
|
|
1161
|
-
FfiConverterOptionalString.writeIntoCursor(value.clientSecret, c);
|
|
1162
|
-
FfiConverterOptionalString.writeIntoCursor(value.profile, c);
|
|
1163
|
-
FfiConverterSequenceString.writeIntoCursor(value.scopes, c);
|
|
1164
|
-
FfiConverterOptionalTypeOAuthGrant.writeIntoCursor(value.grant, c);
|
|
1165
|
-
FfiConverterOptionalString.writeIntoCursor(value.cacheDir, c);
|
|
1166
|
-
FfiConverterOptionalTypeStorage.writeIntoCursor(value.storage, c);
|
|
1167
|
-
FfiConverterOptionalTypeFileLayout.writeIntoCursor(value.fileLayout, c);
|
|
1168
|
-
FfiConverterOptionalTypeAuthOptions.writeIntoCursor(value.auth, c);
|
|
1169
|
-
}
|
|
1170
|
-
allocationSize(value) {
|
|
1171
|
-
return FfiConverterString.allocationSize(value.provider) + FfiConverterString.allocationSize(value.clientId) + FfiConverterString.allocationSize(value.tokenEndpoint) + FfiConverterOptionalString.allocationSize(value.authorizationEndpoint) + FfiConverterOptionalString.allocationSize(value.clientSecret) + FfiConverterOptionalString.allocationSize(value.profile) + FfiConverterSequenceString.allocationSize(value.scopes) + FfiConverterOptionalTypeOAuthGrant.allocationSize(value.grant) + FfiConverterOptionalString.allocationSize(value.cacheDir) + FfiConverterOptionalTypeStorage.allocationSize(value.storage) + FfiConverterOptionalTypeFileLayout.allocationSize(value.fileLayout) + FfiConverterOptionalTypeAuthOptions.allocationSize(value.auth);
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
return new FFIConverter;
|
|
1175
|
-
})();
|
|
1176
|
-
var AuthError_Tags;
|
|
1177
|
-
((AuthError_Tags2) => {
|
|
1178
|
-
AuthError_Tags2["Failure"] = "Failure";
|
|
1179
|
-
})(AuthError_Tags ||= {});
|
|
1180
|
-
var AuthError = (() => {
|
|
1181
|
-
|
|
1182
|
-
class Failure_ extends UniffiError {
|
|
1183
|
-
[uniffiTypeNameSymbol] = "AuthError";
|
|
1184
|
-
tag = "Failure" /* Failure */;
|
|
1185
|
-
inner;
|
|
1186
|
-
constructor(inner) {
|
|
1187
|
-
super("AuthError", "Failure");
|
|
1188
|
-
this.inner = Object.freeze(inner);
|
|
1189
|
-
}
|
|
1190
|
-
static new(inner) {
|
|
1191
|
-
return new Failure_(inner);
|
|
1192
|
-
}
|
|
1193
|
-
static instanceOf(obj) {
|
|
1194
|
-
return obj.tag === "Failure" /* Failure */;
|
|
1195
|
-
}
|
|
1196
|
-
static hasInner(obj) {
|
|
1197
|
-
return Failure_.instanceOf(obj);
|
|
1198
|
-
}
|
|
1199
|
-
static getInner(obj) {
|
|
1200
|
-
return obj.inner;
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
function instanceOf(obj) {
|
|
1204
|
-
return obj[uniffiTypeNameSymbol] === "AuthError";
|
|
1205
|
-
}
|
|
1206
|
-
return Object.freeze({
|
|
1207
|
-
instanceOf,
|
|
1208
|
-
Failure: Failure_
|
|
1209
|
-
});
|
|
1210
|
-
})();
|
|
1211
|
-
var FfiConverterTypeAuthError = (() => {
|
|
1212
|
-
|
|
1213
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1214
|
-
readFromCursor(c) {
|
|
1215
|
-
switch (c.readI32()) {
|
|
1216
|
-
case 1:
|
|
1217
|
-
return new AuthError.Failure({ message: FfiConverterString.readFromCursor(c) });
|
|
1218
|
-
default:
|
|
1219
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
writeIntoCursor(value, c) {
|
|
1223
|
-
switch (value.tag) {
|
|
1224
|
-
case "Failure" /* Failure */: {
|
|
1225
|
-
c.writeI32(1);
|
|
1226
|
-
const inner = value.inner;
|
|
1227
|
-
FfiConverterString.writeIntoCursor(inner.message, c);
|
|
1228
|
-
return;
|
|
1229
|
-
}
|
|
1230
|
-
default:
|
|
1231
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
allocationSize(value) {
|
|
1235
|
-
switch (value.tag) {
|
|
1236
|
-
case "Failure" /* Failure */: {
|
|
1237
|
-
const inner = value.inner;
|
|
1238
|
-
let size = 4;
|
|
1239
|
-
size += FfiConverterString.allocationSize(inner.message);
|
|
1240
|
-
return size;
|
|
1241
|
-
}
|
|
1242
|
-
default:
|
|
1243
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
return new FFIConverter;
|
|
1248
|
-
})();
|
|
1249
|
-
|
|
1250
|
-
class PersistentAuth extends UniffiAbstractObject {
|
|
1251
|
-
[uniffiTypeNameSymbol] = "PersistentAuth";
|
|
1252
|
-
[destructorGuardSymbol];
|
|
1253
|
-
[pointerLiteralSymbol];
|
|
1254
|
-
constructor(pointer) {
|
|
1255
|
-
super();
|
|
1256
|
-
this[pointerLiteralSymbol] = pointer;
|
|
1257
|
-
this[destructorGuardSymbol] = uniffiTypePersistentAuthObjectFactory.bless(pointer);
|
|
1258
|
-
}
|
|
1259
|
-
async challenge(asyncOpts_) {
|
|
1260
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1261
|
-
try {
|
|
1262
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1263
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_persistentauth_challenge(uniffiTypePersistentAuthObjectFactory.clonePointer(this));
|
|
1264
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1265
|
-
} catch (__error) {
|
|
1266
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1267
|
-
__error.stack = __stack;
|
|
1268
|
-
}
|
|
1269
|
-
throw __error;
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
async forceRefreshToken(asyncOpts_) {
|
|
1273
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1274
|
-
try {
|
|
1275
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1276
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_persistentauth_force_refresh_token(uniffiTypePersistentAuthObjectFactory.clonePointer(this));
|
|
1277
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1278
|
-
try {
|
|
1279
|
-
return FfiConverterTypeAccessToken.lift(__rb);
|
|
1280
|
-
} finally {
|
|
1281
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1282
|
-
}
|
|
1283
|
-
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1284
|
-
} catch (__error) {
|
|
1285
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1286
|
-
__error.stack = __stack;
|
|
1287
|
-
}
|
|
1288
|
-
throw __error;
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
async logout(asyncOpts_) {
|
|
1292
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1293
|
-
try {
|
|
1294
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1295
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_persistentauth_logout(uniffiTypePersistentAuthObjectFactory.clonePointer(this));
|
|
1296
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1297
|
-
} catch (__error) {
|
|
1298
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1299
|
-
__error.stack = __stack;
|
|
1300
|
-
}
|
|
1301
|
-
throw __error;
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
async refreshRejectedToken(staleAccessToken, asyncOpts_) {
|
|
1305
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1306
|
-
try {
|
|
1307
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1308
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_persistentauth_refresh_rejected_token(uniffiTypePersistentAuthObjectFactory.clonePointer(this), FfiConverterString.lower(staleAccessToken, _bindings_ffi_default().rustbuffer_alloc));
|
|
1309
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1310
|
-
try {
|
|
1311
|
-
return FfiConverterTypeAccessToken.lift(__rb);
|
|
1312
|
-
} finally {
|
|
1313
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1314
|
-
}
|
|
1315
|
-
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1316
|
-
} catch (__error) {
|
|
1317
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1318
|
-
__error.stack = __stack;
|
|
1319
|
-
}
|
|
1320
|
-
throw __error;
|
|
1321
|
-
}
|
|
1322
|
-
}
|
|
1323
|
-
status() {
|
|
1324
|
-
const __rb = uniffiCaller.rustCall((callStatus) => {
|
|
1325
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_persistentauth_status(uniffiTypePersistentAuthObjectFactory.clonePointer(this), callStatus);
|
|
1326
|
-
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
1327
|
-
try {
|
|
1328
|
-
return FfiConverterTypeDatabricksAuthStatus.lift(__rb);
|
|
1329
|
-
} finally {
|
|
1330
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
|
-
async token(login = undefined, asyncOpts_) {
|
|
1334
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1335
|
-
try {
|
|
1336
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1337
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_persistentauth_token(uniffiTypePersistentAuthObjectFactory.clonePointer(this), FfiConverterOptionalBoolean.lower(login, _bindings_ffi_default().rustbuffer_alloc));
|
|
1338
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1339
|
-
try {
|
|
1340
|
-
return FfiConverterTypeAccessToken.lift(__rb);
|
|
1341
|
-
} finally {
|
|
1342
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1343
|
-
}
|
|
1344
|
-
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1345
|
-
} catch (__error) {
|
|
1346
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1347
|
-
__error.stack = __stack;
|
|
1348
|
-
}
|
|
1349
|
-
throw __error;
|
|
1350
|
-
}
|
|
1351
|
-
}
|
|
1352
|
-
uniffiDestroy() {
|
|
1353
|
-
const ptr = this[destructorGuardSymbol];
|
|
1354
|
-
if (ptr !== undefined) {
|
|
1355
|
-
const pointer = uniffiTypePersistentAuthObjectFactory.pointer(this);
|
|
1356
|
-
uniffiTypePersistentAuthObjectFactory.freePointer(pointer);
|
|
1357
|
-
uniffiTypePersistentAuthObjectFactory.unbless(ptr);
|
|
1358
|
-
delete this[destructorGuardSymbol];
|
|
1359
|
-
}
|
|
1360
|
-
}
|
|
1361
|
-
static instanceOf(obj_) {
|
|
1362
|
-
return uniffiTypePersistentAuthObjectFactory.isConcreteType(obj_);
|
|
1363
|
-
}
|
|
1364
|
-
}
|
|
1365
|
-
var uniffiTypePersistentAuthObjectFactory = (() => {
|
|
1366
|
-
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
1367
|
-
uniffiTypePersistentAuthObjectFactory.freePointer(heldValue);
|
|
1368
|
-
}) : null;
|
|
1369
|
-
return {
|
|
1370
|
-
create(pointer) {
|
|
1371
|
-
const instance = Object.create(PersistentAuth.prototype);
|
|
1372
|
-
instance[pointerLiteralSymbol] = pointer;
|
|
1373
|
-
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1374
|
-
instance[uniffiTypeNameSymbol] = "PersistentAuth";
|
|
1375
|
-
return instance;
|
|
1376
|
-
},
|
|
1377
|
-
bless(p) {
|
|
1378
|
-
const ptr = {
|
|
1379
|
-
p,
|
|
1380
|
-
markDestroyed: () => {
|
|
1381
|
-
return;
|
|
1382
|
-
}
|
|
1383
|
-
};
|
|
1384
|
-
if (registry) {
|
|
1385
|
-
registry.register(ptr, p, ptr);
|
|
1386
|
-
}
|
|
1387
|
-
return ptr;
|
|
1388
|
-
},
|
|
1389
|
-
unbless(ptr_) {
|
|
1390
|
-
if (registry) {
|
|
1391
|
-
registry.unregister(ptr_);
|
|
1392
|
-
}
|
|
1393
|
-
},
|
|
1394
|
-
pointer(obj_) {
|
|
1395
|
-
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1396
|
-
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
1397
|
-
}
|
|
1398
|
-
return obj_[pointerLiteralSymbol];
|
|
1399
|
-
},
|
|
1400
|
-
clonePointer(obj_) {
|
|
1401
|
-
const pointer = this.pointer(obj_);
|
|
1402
|
-
return uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_clone_persistentauth(pointer, callStatus), FfiConverterString.lift);
|
|
1403
|
-
},
|
|
1404
|
-
freePointer(pointer) {
|
|
1405
|
-
uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_free_persistentauth(pointer, callStatus), FfiConverterString.lift);
|
|
1406
|
-
},
|
|
1407
|
-
isConcreteType(obj_) {
|
|
1408
|
-
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "PersistentAuth";
|
|
1409
|
-
}
|
|
1410
|
-
};
|
|
1411
|
-
})();
|
|
1412
|
-
var FfiConverterTypePersistentAuth = new FfiConverterObject(uniffiTypePersistentAuthObjectFactory);
|
|
1413
|
-
|
|
1414
|
-
class ProviderAuth extends UniffiAbstractObject {
|
|
1415
|
-
[uniffiTypeNameSymbol] = "ProviderAuth";
|
|
1416
|
-
[destructorGuardSymbol];
|
|
1417
|
-
[pointerLiteralSymbol];
|
|
1418
|
-
constructor(pointer) {
|
|
1419
|
-
super();
|
|
1420
|
-
this[pointerLiteralSymbol] = pointer;
|
|
1421
|
-
this[destructorGuardSymbol] = uniffiTypeProviderAuthObjectFactory.bless(pointer);
|
|
1422
|
-
}
|
|
1423
|
-
async forceRefreshToken(asyncOpts_) {
|
|
1424
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1425
|
-
try {
|
|
1426
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1427
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_providerauth_force_refresh_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this));
|
|
1428
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1429
|
-
try {
|
|
1430
|
-
return FfiConverterTypeAccessToken.lift(__rb);
|
|
1431
|
-
} finally {
|
|
1432
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1433
|
-
}
|
|
1434
|
-
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1435
|
-
} catch (__error) {
|
|
1436
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1437
|
-
__error.stack = __stack;
|
|
1438
|
-
}
|
|
1439
|
-
throw __error;
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
1442
|
-
async logout(asyncOpts_) {
|
|
1443
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1444
|
-
try {
|
|
1445
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1446
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_providerauth_logout(uniffiTypeProviderAuthObjectFactory.clonePointer(this));
|
|
1447
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1448
|
-
} catch (__error) {
|
|
1449
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1450
|
-
__error.stack = __stack;
|
|
1451
|
-
}
|
|
1452
|
-
throw __error;
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
async refreshRejectedToken(staleAccessToken, asyncOpts_) {
|
|
1456
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1457
|
-
try {
|
|
1458
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1459
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_providerauth_refresh_rejected_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this), FfiConverterString.lower(staleAccessToken, _bindings_ffi_default().rustbuffer_alloc));
|
|
1460
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1461
|
-
try {
|
|
1462
|
-
return FfiConverterTypeAccessToken.lift(__rb);
|
|
1463
|
-
} finally {
|
|
1464
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1465
|
-
}
|
|
1466
|
-
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1467
|
-
} catch (__error) {
|
|
1468
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1469
|
-
__error.stack = __stack;
|
|
1470
|
-
}
|
|
1471
|
-
throw __error;
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
async token(login = undefined, asyncOpts_) {
|
|
1475
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1476
|
-
try {
|
|
1477
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1478
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_providerauth_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this), FfiConverterOptionalBoolean.lower(login, _bindings_ffi_default().rustbuffer_alloc));
|
|
1479
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1480
|
-
try {
|
|
1481
|
-
return FfiConverterTypeAccessToken.lift(__rb);
|
|
1482
|
-
} finally {
|
|
1483
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1484
|
-
}
|
|
1485
|
-
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1486
|
-
} catch (__error) {
|
|
1487
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1488
|
-
__error.stack = __stack;
|
|
1489
|
-
}
|
|
1490
|
-
throw __error;
|
|
1491
|
-
}
|
|
1492
|
-
}
|
|
1493
|
-
uniffiDestroy() {
|
|
1494
|
-
const ptr = this[destructorGuardSymbol];
|
|
1495
|
-
if (ptr !== undefined) {
|
|
1496
|
-
const pointer = uniffiTypeProviderAuthObjectFactory.pointer(this);
|
|
1497
|
-
uniffiTypeProviderAuthObjectFactory.freePointer(pointer);
|
|
1498
|
-
uniffiTypeProviderAuthObjectFactory.unbless(ptr);
|
|
1499
|
-
delete this[destructorGuardSymbol];
|
|
1500
|
-
}
|
|
1501
|
-
}
|
|
1502
|
-
static instanceOf(obj_) {
|
|
1503
|
-
return uniffiTypeProviderAuthObjectFactory.isConcreteType(obj_);
|
|
1504
|
-
}
|
|
1505
|
-
}
|
|
1506
|
-
var uniffiTypeProviderAuthObjectFactory = (() => {
|
|
1507
|
-
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
1508
|
-
uniffiTypeProviderAuthObjectFactory.freePointer(heldValue);
|
|
1509
|
-
}) : null;
|
|
1510
|
-
return {
|
|
1511
|
-
create(pointer) {
|
|
1512
|
-
const instance = Object.create(ProviderAuth.prototype);
|
|
1513
|
-
instance[pointerLiteralSymbol] = pointer;
|
|
1514
|
-
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1515
|
-
instance[uniffiTypeNameSymbol] = "ProviderAuth";
|
|
1516
|
-
return instance;
|
|
1517
|
-
},
|
|
1518
|
-
bless(p) {
|
|
1519
|
-
const ptr = {
|
|
1520
|
-
p,
|
|
1521
|
-
markDestroyed: () => {
|
|
1522
|
-
return;
|
|
1523
|
-
}
|
|
1524
|
-
};
|
|
1525
|
-
if (registry) {
|
|
1526
|
-
registry.register(ptr, p, ptr);
|
|
1527
|
-
}
|
|
1528
|
-
return ptr;
|
|
1529
|
-
},
|
|
1530
|
-
unbless(ptr_) {
|
|
1531
|
-
if (registry) {
|
|
1532
|
-
registry.unregister(ptr_);
|
|
1533
|
-
}
|
|
1534
|
-
},
|
|
1535
|
-
pointer(obj_) {
|
|
1536
|
-
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1537
|
-
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
1538
|
-
}
|
|
1539
|
-
return obj_[pointerLiteralSymbol];
|
|
1540
|
-
},
|
|
1541
|
-
clonePointer(obj_) {
|
|
1542
|
-
const pointer = this.pointer(obj_);
|
|
1543
|
-
return uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_clone_providerauth(pointer, callStatus), FfiConverterString.lift);
|
|
1544
|
-
},
|
|
1545
|
-
freePointer(pointer) {
|
|
1546
|
-
uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_free_providerauth(pointer, callStatus), FfiConverterString.lift);
|
|
1547
|
-
},
|
|
1548
|
-
isConcreteType(obj_) {
|
|
1549
|
-
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "ProviderAuth";
|
|
1550
|
-
}
|
|
1551
|
-
};
|
|
1552
|
-
})();
|
|
1553
|
-
var FfiConverterTypeProviderAuth = new FfiConverterObject(uniffiTypeProviderAuthObjectFactory);
|
|
1554
|
-
|
|
1555
|
-
class StorageAdapterImpl extends UniffiAbstractObject {
|
|
1556
|
-
[uniffiTypeNameSymbol] = "StorageAdapterImpl";
|
|
1557
|
-
[destructorGuardSymbol];
|
|
1558
|
-
[pointerLiteralSymbol];
|
|
1559
|
-
constructor(pointer) {
|
|
1560
|
-
super();
|
|
1561
|
-
this[pointerLiteralSymbol] = pointer;
|
|
1562
|
-
this[destructorGuardSymbol] = uniffiTypeStorageAdapterImplObjectFactory.bless(pointer);
|
|
1563
|
-
}
|
|
1564
|
-
async load(profile, asyncOpts_) {
|
|
1565
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1566
|
-
try {
|
|
1567
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1568
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_storageadapter_load(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc));
|
|
1569
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1570
|
-
try {
|
|
1571
|
-
return FfiConverterOptionalString.lift(__rb);
|
|
1572
|
-
} finally {
|
|
1573
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1574
|
-
}
|
|
1575
|
-
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1576
|
-
} catch (__error) {
|
|
1577
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1578
|
-
__error.stack = __stack;
|
|
1579
|
-
}
|
|
1580
|
-
throw __error;
|
|
1581
|
-
}
|
|
1582
|
-
}
|
|
1583
|
-
async prepareWrite(asyncOpts_) {
|
|
1584
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1585
|
-
try {
|
|
1586
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1587
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_storageadapter_prepare_write(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this));
|
|
1588
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1589
|
-
} catch (__error) {
|
|
1590
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1591
|
-
__error.stack = __stack;
|
|
1592
|
-
}
|
|
1593
|
-
throw __error;
|
|
1594
|
-
}
|
|
1595
|
-
}
|
|
1596
|
-
async save(profile, token, asyncOpts_) {
|
|
1597
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1598
|
-
try {
|
|
1599
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1600
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_storageadapter_save(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc), FfiConverterString.lower(token, _bindings_ffi_default().rustbuffer_alloc));
|
|
1601
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1602
|
-
} catch (__error) {
|
|
1603
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1604
|
-
__error.stack = __stack;
|
|
1605
|
-
}
|
|
1606
|
-
throw __error;
|
|
1607
|
-
}
|
|
1608
|
-
}
|
|
1609
|
-
async remove(profile, asyncOpts_) {
|
|
1610
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1611
|
-
try {
|
|
1612
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1613
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_storageadapter_remove(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc));
|
|
1614
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1615
|
-
} catch (__error) {
|
|
1616
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1617
|
-
__error.stack = __stack;
|
|
1618
|
-
}
|
|
1619
|
-
throw __error;
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
async acquireLock(profile, timeoutMillis, asyncOpts_) {
|
|
1623
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1624
|
-
try {
|
|
1625
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1626
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_storageadapter_acquire_lock(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc), FfiConverterUInt64.lower(timeoutMillis, _bindings_ffi_default().rustbuffer_alloc));
|
|
1627
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1628
|
-
try {
|
|
1629
|
-
return FfiConverterString.lift(__rb);
|
|
1630
|
-
} finally {
|
|
1631
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1632
|
-
}
|
|
1633
|
-
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1634
|
-
} catch (__error) {
|
|
1635
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1636
|
-
__error.stack = __stack;
|
|
1637
|
-
}
|
|
1638
|
-
throw __error;
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
async releaseLock(lease, asyncOpts_) {
|
|
1642
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1643
|
-
try {
|
|
1644
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1645
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_storageadapter_release_lock(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(lease, _bindings_ffi_default().rustbuffer_alloc));
|
|
1646
|
-
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1647
|
-
} catch (__error) {
|
|
1648
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1649
|
-
__error.stack = __stack;
|
|
1650
|
-
}
|
|
1651
|
-
throw __error;
|
|
1652
|
-
}
|
|
1653
|
-
}
|
|
1654
|
-
name() {
|
|
1655
|
-
const __rb = uniffiCaller.rustCall((callStatus) => {
|
|
1656
|
-
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_storageadapter_name(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), callStatus);
|
|
1657
|
-
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
1658
|
-
try {
|
|
1659
|
-
return FfiConverterString.lift(__rb);
|
|
1660
|
-
} finally {
|
|
1661
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1662
|
-
}
|
|
1663
|
-
}
|
|
1664
|
-
uniffiDestroy() {
|
|
1665
|
-
const ptr = this[destructorGuardSymbol];
|
|
1666
|
-
if (ptr !== undefined) {
|
|
1667
|
-
const pointer = uniffiTypeStorageAdapterImplObjectFactory.pointer(this);
|
|
1668
|
-
uniffiTypeStorageAdapterImplObjectFactory.freePointer(pointer);
|
|
1669
|
-
uniffiTypeStorageAdapterImplObjectFactory.unbless(ptr);
|
|
1670
|
-
delete this[destructorGuardSymbol];
|
|
1671
|
-
}
|
|
1672
|
-
}
|
|
1673
|
-
static instanceOf(obj_) {
|
|
1674
|
-
return uniffiTypeStorageAdapterImplObjectFactory.isConcreteType(obj_);
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
var uniffiTypeStorageAdapterImplObjectFactory = (() => {
|
|
1678
|
-
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
1679
|
-
uniffiTypeStorageAdapterImplObjectFactory.freePointer(heldValue);
|
|
1680
|
-
}) : null;
|
|
1681
|
-
return {
|
|
1682
|
-
create(pointer) {
|
|
1683
|
-
const instance = Object.create(StorageAdapterImpl.prototype);
|
|
1684
|
-
instance[pointerLiteralSymbol] = pointer;
|
|
1685
|
-
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1686
|
-
instance[uniffiTypeNameSymbol] = "StorageAdapterImpl";
|
|
1687
|
-
return instance;
|
|
1688
|
-
},
|
|
1689
|
-
bless(p) {
|
|
1690
|
-
const ptr = {
|
|
1691
|
-
p,
|
|
1692
|
-
markDestroyed: () => {
|
|
1693
|
-
return;
|
|
1694
|
-
}
|
|
1695
|
-
};
|
|
1696
|
-
if (registry) {
|
|
1697
|
-
registry.register(ptr, p, ptr);
|
|
1698
|
-
}
|
|
1699
|
-
return ptr;
|
|
1700
|
-
},
|
|
1701
|
-
unbless(ptr_) {
|
|
1702
|
-
if (registry) {
|
|
1703
|
-
registry.unregister(ptr_);
|
|
1704
|
-
}
|
|
1705
|
-
},
|
|
1706
|
-
pointer(obj_) {
|
|
1707
|
-
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1708
|
-
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
1709
|
-
}
|
|
1710
|
-
return obj_[pointerLiteralSymbol];
|
|
1711
|
-
},
|
|
1712
|
-
clonePointer(obj_) {
|
|
1713
|
-
const pointer = this.pointer(obj_);
|
|
1714
|
-
return uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_clone_storageadapter(pointer, callStatus), FfiConverterString.lift);
|
|
1715
|
-
},
|
|
1716
|
-
freePointer(pointer) {
|
|
1717
|
-
uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_free_storageadapter(pointer, callStatus), FfiConverterString.lift);
|
|
1718
|
-
},
|
|
1719
|
-
isConcreteType(obj_) {
|
|
1720
|
-
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "StorageAdapterImpl";
|
|
1721
|
-
}
|
|
1722
|
-
};
|
|
1723
|
-
})();
|
|
1724
|
-
var FfiConverterTypeStorageAdapter = new FfiConverterObjectWithCallbacks(uniffiTypeStorageAdapterImplObjectFactory);
|
|
1725
|
-
var uniffiCallbackInterfaceStorageAdapter = {
|
|
1726
|
-
vtable: {
|
|
1727
|
-
load: (uniffiHandle, profile, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1728
|
-
const uniffiMakeCall = async (signal) => {
|
|
1729
|
-
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1730
|
-
return await jsCallback.load(FfiConverterString.lift(profile), { signal });
|
|
1731
|
-
};
|
|
1732
|
-
const uniffiHandleSuccess = (returnValue) => {
|
|
1733
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1734
|
-
return_value: FfiConverterOptionalString.lower(returnValue, _bindings_ffi_default().rustbuffer_alloc),
|
|
1735
|
-
call_status: uniffiCaller.createCallStatus()
|
|
1736
|
-
});
|
|
1737
|
-
};
|
|
1738
|
-
const uniffiHandleError = (code, errorBuf) => {
|
|
1739
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1740
|
-
return_value: new Uint8Array(0),
|
|
1741
|
-
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1742
|
-
});
|
|
1743
|
-
};
|
|
1744
|
-
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1745
|
-
return uniffiForeignFuture;
|
|
1746
|
-
},
|
|
1747
|
-
prepare_write: (uniffiHandle, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1748
|
-
const uniffiMakeCall = async (signal) => {
|
|
1749
|
-
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1750
|
-
return await jsCallback.prepareWrite({ signal });
|
|
1751
|
-
};
|
|
1752
|
-
const uniffiHandleSuccess = (returnValue) => {
|
|
1753
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1754
|
-
call_status: uniffiCaller.createCallStatus()
|
|
1755
|
-
});
|
|
1756
|
-
};
|
|
1757
|
-
const uniffiHandleError = (code, errorBuf) => {
|
|
1758
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1759
|
-
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1760
|
-
});
|
|
1761
|
-
};
|
|
1762
|
-
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1763
|
-
return uniffiForeignFuture;
|
|
1764
|
-
},
|
|
1765
|
-
save: (uniffiHandle, profile, token, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1766
|
-
const uniffiMakeCall = async (signal) => {
|
|
1767
|
-
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1768
|
-
return await jsCallback.save(FfiConverterString.lift(profile), FfiConverterString.lift(token), { signal });
|
|
1769
|
-
};
|
|
1770
|
-
const uniffiHandleSuccess = (returnValue) => {
|
|
1771
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1772
|
-
call_status: uniffiCaller.createCallStatus()
|
|
1773
|
-
});
|
|
1774
|
-
};
|
|
1775
|
-
const uniffiHandleError = (code, errorBuf) => {
|
|
1776
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1777
|
-
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1778
|
-
});
|
|
1779
|
-
};
|
|
1780
|
-
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1781
|
-
return uniffiForeignFuture;
|
|
1782
|
-
},
|
|
1783
|
-
remove: (uniffiHandle, profile, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1784
|
-
const uniffiMakeCall = async (signal) => {
|
|
1785
|
-
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1786
|
-
return await jsCallback.remove(FfiConverterString.lift(profile), { signal });
|
|
1787
|
-
};
|
|
1788
|
-
const uniffiHandleSuccess = (returnValue) => {
|
|
1789
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1790
|
-
call_status: uniffiCaller.createCallStatus()
|
|
1791
|
-
});
|
|
1792
|
-
};
|
|
1793
|
-
const uniffiHandleError = (code, errorBuf) => {
|
|
1794
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1795
|
-
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1796
|
-
});
|
|
1797
|
-
};
|
|
1798
|
-
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1799
|
-
return uniffiForeignFuture;
|
|
1800
|
-
},
|
|
1801
|
-
acquire_lock: (uniffiHandle, profile, timeoutMillis, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1802
|
-
const uniffiMakeCall = async (signal) => {
|
|
1803
|
-
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1804
|
-
return await jsCallback.acquireLock(FfiConverterString.lift(profile), FfiConverterUInt64.lift(timeoutMillis), { signal });
|
|
1805
|
-
};
|
|
1806
|
-
const uniffiHandleSuccess = (returnValue) => {
|
|
1807
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1808
|
-
return_value: FfiConverterString.lower(returnValue, _bindings_ffi_default().rustbuffer_alloc),
|
|
1809
|
-
call_status: uniffiCaller.createCallStatus()
|
|
1810
|
-
});
|
|
1811
|
-
};
|
|
1812
|
-
const uniffiHandleError = (code, errorBuf) => {
|
|
1813
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1814
|
-
return_value: new Uint8Array(0),
|
|
1815
|
-
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1816
|
-
});
|
|
1817
|
-
};
|
|
1818
|
-
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1819
|
-
return uniffiForeignFuture;
|
|
1820
|
-
},
|
|
1821
|
-
release_lock: (uniffiHandle, lease, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1822
|
-
const uniffiMakeCall = async (signal) => {
|
|
1823
|
-
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1824
|
-
return await jsCallback.releaseLock(FfiConverterString.lift(lease), { signal });
|
|
1825
|
-
};
|
|
1826
|
-
const uniffiHandleSuccess = (returnValue) => {
|
|
1827
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1828
|
-
call_status: uniffiCaller.createCallStatus()
|
|
1829
|
-
});
|
|
1830
|
-
};
|
|
1831
|
-
const uniffiHandleError = (code, errorBuf) => {
|
|
1832
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1833
|
-
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1834
|
-
});
|
|
1835
|
-
};
|
|
1836
|
-
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1837
|
-
return uniffiForeignFuture;
|
|
1838
|
-
},
|
|
1839
|
-
name: (uniffiHandle) => {
|
|
1840
|
-
const uniffiMakeCall = () => {
|
|
1841
|
-
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1842
|
-
return jsCallback.name();
|
|
1843
|
-
};
|
|
1844
|
-
const uniffiResult = UniffiResult.ready();
|
|
1845
|
-
const uniffiHandleSuccess = (obj) => {
|
|
1846
|
-
UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj, _bindings_ffi_default().rustbuffer_alloc));
|
|
1847
|
-
};
|
|
1848
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
1849
|
-
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
1850
|
-
};
|
|
1851
|
-
uniffiTraitInterfaceCall(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1852
|
-
return uniffiResult;
|
|
1853
|
-
},
|
|
1854
|
-
uniffi_free: (uniffiHandle) => {
|
|
1855
|
-
FfiConverterTypeStorageAdapter.drop(uniffiHandle);
|
|
1856
|
-
},
|
|
1857
|
-
uniffi_clone: (uniffiHandle) => {
|
|
1858
|
-
return FfiConverterTypeStorageAdapter.clone(uniffiHandle);
|
|
1859
|
-
}
|
|
1860
|
-
},
|
|
1861
|
-
register: () => {
|
|
1862
|
-
_bindings_ffi_default().uniffi_dbx_tools_databricks_fn_init_callback_vtable_storageadapter(uniffiCallbackInterfaceStorageAdapter.vtable);
|
|
1863
|
-
}
|
|
1864
|
-
};
|
|
1865
|
-
|
|
1866
|
-
class StorageHandle extends UniffiAbstractObject {
|
|
1867
|
-
[uniffiTypeNameSymbol] = "StorageHandle";
|
|
1868
|
-
[destructorGuardSymbol];
|
|
1869
|
-
[pointerLiteralSymbol];
|
|
1870
|
-
constructor(pointer) {
|
|
1871
|
-
super();
|
|
1872
|
-
this[pointerLiteralSymbol] = pointer;
|
|
1873
|
-
this[destructorGuardSymbol] = uniffiTypeStorageHandleObjectFactory.bless(pointer);
|
|
1874
|
-
}
|
|
1875
|
-
uniffiDestroy() {
|
|
1876
|
-
const ptr = this[destructorGuardSymbol];
|
|
1877
|
-
if (ptr !== undefined) {
|
|
1878
|
-
const pointer = uniffiTypeStorageHandleObjectFactory.pointer(this);
|
|
1879
|
-
uniffiTypeStorageHandleObjectFactory.freePointer(pointer);
|
|
1880
|
-
uniffiTypeStorageHandleObjectFactory.unbless(ptr);
|
|
1881
|
-
delete this[destructorGuardSymbol];
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
static instanceOf(obj_) {
|
|
1885
|
-
return uniffiTypeStorageHandleObjectFactory.isConcreteType(obj_);
|
|
1886
|
-
}
|
|
1887
|
-
}
|
|
1888
|
-
var uniffiTypeStorageHandleObjectFactory = (() => {
|
|
1889
|
-
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
1890
|
-
uniffiTypeStorageHandleObjectFactory.freePointer(heldValue);
|
|
1891
|
-
}) : null;
|
|
1892
|
-
return {
|
|
1893
|
-
create(pointer) {
|
|
1894
|
-
const instance = Object.create(StorageHandle.prototype);
|
|
1895
|
-
instance[pointerLiteralSymbol] = pointer;
|
|
1896
|
-
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1897
|
-
instance[uniffiTypeNameSymbol] = "StorageHandle";
|
|
1898
|
-
return instance;
|
|
1899
|
-
},
|
|
1900
|
-
bless(p) {
|
|
1901
|
-
const ptr = {
|
|
1902
|
-
p,
|
|
1903
|
-
markDestroyed: () => {
|
|
1904
|
-
return;
|
|
1905
|
-
}
|
|
1906
|
-
};
|
|
1907
|
-
if (registry) {
|
|
1908
|
-
registry.register(ptr, p, ptr);
|
|
1909
|
-
}
|
|
1910
|
-
return ptr;
|
|
1911
|
-
},
|
|
1912
|
-
unbless(ptr_) {
|
|
1913
|
-
if (registry) {
|
|
1914
|
-
registry.unregister(ptr_);
|
|
1915
|
-
}
|
|
1916
|
-
},
|
|
1917
|
-
pointer(obj_) {
|
|
1918
|
-
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1919
|
-
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
1920
|
-
}
|
|
1921
|
-
return obj_[pointerLiteralSymbol];
|
|
1922
|
-
},
|
|
1923
|
-
clonePointer(obj_) {
|
|
1924
|
-
const pointer = this.pointer(obj_);
|
|
1925
|
-
return uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_clone_storagehandle(pointer, callStatus), FfiConverterString.lift);
|
|
1926
|
-
},
|
|
1927
|
-
freePointer(pointer) {
|
|
1928
|
-
uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_free_storagehandle(pointer, callStatus), FfiConverterString.lift);
|
|
1929
|
-
},
|
|
1930
|
-
isConcreteType(obj_) {
|
|
1931
|
-
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "StorageHandle";
|
|
1932
|
-
}
|
|
1933
|
-
};
|
|
1934
|
-
})();
|
|
1935
|
-
var FfiConverterTypeStorageHandle = new FfiConverterObject(uniffiTypeStorageHandleObjectFactory);
|
|
1936
|
-
var FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
|
|
1937
|
-
var FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);
|
|
1938
|
-
var FfiConverterOptionalSequenceString = new FfiConverterOptional(FfiConverterSequenceString);
|
|
1939
|
-
var FfiConverterOptionalTypeAuthOptions = new FfiConverterOptional(FfiConverterTypeAuthOptions);
|
|
1940
|
-
var FfiConverterOptionalTypeOAuthGrant = new FfiConverterOptional(FfiConverterTypeOAuthGrant);
|
|
1941
|
-
var FfiConverterOptionalTypeStorage = new FfiConverterOptional(FfiConverterTypeStorage);
|
|
1942
|
-
var FfiConverterOptionalTypeFileLayout = new FfiConverterOptional(FfiConverterTypeFileLayout);
|
|
1943
|
-
var FfiConverterOptionalBoolean = new FfiConverterOptional(FfiConverterBool);
|
|
1944
|
-
var FfiConverterMapStringString = new FfiConverterMap(FfiConverterString, FfiConverterString);
|
|
1945
|
-
function uniffiEnsureInitialized() {
|
|
1946
|
-
const bindingsContractVersion = 30;
|
|
1947
|
-
const scaffoldingContractVersion = _bindings_ffi_default().ffi_dbx_tools_databricks_uniffi_contract_version();
|
|
1948
|
-
if (bindingsContractVersion !== scaffoldingContractVersion) {
|
|
1949
|
-
throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
1950
|
-
}
|
|
1951
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_canonical_scopes() !== 45586) {
|
|
1952
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_canonical_scopes");
|
|
1953
|
-
}
|
|
1954
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth() !== 24006) {
|
|
1955
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth");
|
|
1956
|
-
}
|
|
1957
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth_for_request() !== 30718) {
|
|
1958
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth_for_request");
|
|
1959
|
-
}
|
|
1960
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth_with_storage() !== 38756) {
|
|
1961
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth_with_storage");
|
|
1962
|
-
}
|
|
1963
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_create_provider_auth() !== 37733) {
|
|
1964
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_create_provider_auth");
|
|
1965
|
-
}
|
|
1966
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_create_provider_auth_with_storage() !== 51588) {
|
|
1967
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_create_provider_auth_with_storage");
|
|
1968
|
-
}
|
|
1969
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_create_storage_handle() !== 14044) {
|
|
1970
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_create_storage_handle");
|
|
1971
|
-
}
|
|
1972
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_credential_key() !== 60678) {
|
|
1973
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_credential_key");
|
|
1974
|
-
}
|
|
1975
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_databricks_cli_available() !== 19375) {
|
|
1976
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_databricks_cli_available");
|
|
1977
|
-
}
|
|
1978
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_is_databricks_app() !== 65309) {
|
|
1979
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_is_databricks_app");
|
|
1980
|
-
}
|
|
1981
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_persistentauth_challenge() !== 16856) {
|
|
1982
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_persistentauth_challenge");
|
|
1983
|
-
}
|
|
1984
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_persistentauth_force_refresh_token() !== 64316) {
|
|
1985
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_persistentauth_force_refresh_token");
|
|
1986
|
-
}
|
|
1987
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_persistentauth_logout() !== 7691) {
|
|
1988
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_persistentauth_logout");
|
|
1989
|
-
}
|
|
1990
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_persistentauth_refresh_rejected_token() !== 58164) {
|
|
1991
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_persistentauth_refresh_rejected_token");
|
|
1992
|
-
}
|
|
1993
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_persistentauth_status() !== 36346) {
|
|
1994
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_persistentauth_status");
|
|
1995
|
-
}
|
|
1996
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_persistentauth_token() !== 41040) {
|
|
1997
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_persistentauth_token");
|
|
1998
|
-
}
|
|
1999
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_providerauth_force_refresh_token() !== 51438) {
|
|
2000
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_providerauth_force_refresh_token");
|
|
2001
|
-
}
|
|
2002
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_providerauth_logout() !== 52272) {
|
|
2003
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_providerauth_logout");
|
|
2004
|
-
}
|
|
2005
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_providerauth_refresh_rejected_token() !== 8782) {
|
|
2006
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_providerauth_refresh_rejected_token");
|
|
2007
|
-
}
|
|
2008
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_providerauth_token() !== 12412) {
|
|
2009
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_providerauth_token");
|
|
2010
|
-
}
|
|
2011
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_storageadapter_load() !== 10075) {
|
|
2012
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_storageadapter_load");
|
|
2013
|
-
}
|
|
2014
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_storageadapter_prepare_write() !== 61599) {
|
|
2015
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_storageadapter_prepare_write");
|
|
2016
|
-
}
|
|
2017
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_storageadapter_save() !== 34302) {
|
|
2018
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_storageadapter_save");
|
|
2019
|
-
}
|
|
2020
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_storageadapter_remove() !== 51385) {
|
|
2021
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_storageadapter_remove");
|
|
2022
|
-
}
|
|
2023
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_storageadapter_acquire_lock() !== 40754) {
|
|
2024
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_storageadapter_acquire_lock");
|
|
2025
|
-
}
|
|
2026
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_storageadapter_release_lock() !== 61506) {
|
|
2027
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_storageadapter_release_lock");
|
|
2028
|
-
}
|
|
2029
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_storageadapter_name() !== 45802) {
|
|
2030
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_storageadapter_name");
|
|
2031
|
-
}
|
|
2032
|
-
uniffiCallbackInterfaceStorageAdapter.register();
|
|
2033
|
-
}
|
|
2034
|
-
var _bindings_default = Object.freeze({
|
|
2035
|
-
initialize: uniffiEnsureInitialized,
|
|
2036
|
-
converters: {
|
|
2037
|
-
FfiConverterTypeAccessToken,
|
|
2038
|
-
FfiConverterTypeAuthError,
|
|
2039
|
-
FfiConverterTypeAuthOptions,
|
|
2040
|
-
FfiConverterTypeDatabricksAuthOptions,
|
|
2041
|
-
FfiConverterTypeDatabricksAuthStatus,
|
|
2042
|
-
FfiConverterTypeFileLayout,
|
|
2043
|
-
FfiConverterTypeOAuthGrant,
|
|
2044
|
-
FfiConverterTypePersistentAuth,
|
|
2045
|
-
FfiConverterTypeProviderAuth,
|
|
2046
|
-
FfiConverterTypeProviderOptions,
|
|
2047
|
-
FfiConverterTypeStorage,
|
|
2048
|
-
FfiConverterTypeStorageAdapter,
|
|
2049
|
-
FfiConverterTypeStorageHandle
|
|
2050
|
-
}
|
|
2051
|
-
});
|
|
2052
|
-
// src/bindings.ts
|
|
2053
|
-
_bindings_default.initialize();
|
|
2054
|
-
async function uniffiInitAsync() {}
|
|
2055
|
-
// src/cloud.ts
|
|
2056
|
-
var exports_cloud = {};
|
|
2057
|
-
__export(exports_cloud, {
|
|
2058
|
-
resolveCloudLocation: () => resolveCloudLocation,
|
|
2059
|
-
loadProviderRanges: () => loadProviderRanges,
|
|
2060
|
-
RANGE_CACHE_TTL_MS: () => RANGE_CACHE_TTL_MS,
|
|
2061
|
-
CloudProvider: () => CloudProvider
|
|
2062
|
-
});
|
|
2063
|
-
import { mkdir, readFile, rename, unlink, writeFile } from "node:fs/promises";
|
|
2064
|
-
import { tmpdir } from "node:os";
|
|
2065
|
-
import { dirname, join } from "node:path";
|
|
2066
|
-
import { file } from "@dbx-tools/core";
|
|
2067
|
-
import { error, functionModule as functionModule2, hash, http as http2, json, log, net as net2 } from "@dbx-tools/shared-core";
|
|
2068
|
-
|
|
2069
|
-
// src/net.ts
|
|
2070
|
-
var exports_net = {};
|
|
2071
|
-
__export(exports_net, {
|
|
2072
|
-
resolveHostIps: () => resolveHostIps,
|
|
2073
|
-
getPublicIp: () => getPublicIp
|
|
2074
|
-
});
|
|
2075
|
-
import { lookup } from "node:dns/promises";
|
|
2076
|
-
import { functionModule, http, net } from "@dbx-tools/shared-core";
|
|
2077
|
-
var getPublicIp = functionModule.memoize(async () => {
|
|
2078
|
-
const cloudflareResponse = await fetch("https://cloudflare.com/cdn-cgi/trace");
|
|
2079
|
-
if (cloudflareResponse.ok) {
|
|
2080
|
-
const trace = await cloudflareResponse.text();
|
|
2081
|
-
const ipKey = "ip=";
|
|
2082
|
-
const ip2 = trace.split(`
|
|
2083
|
-
`).map((line) => line.trim()).find((line) => line.startsWith(ipKey))?.slice(ipKey.length);
|
|
2084
|
-
if (ip2)
|
|
2085
|
-
return ip2;
|
|
2086
|
-
}
|
|
2087
|
-
const ipifyResponse = await fetch("https://api.ipify.org?format=json");
|
|
2088
|
-
if (!ipifyResponse.ok) {
|
|
2089
|
-
throw await http.createFetchError(ipifyResponse);
|
|
2090
|
-
}
|
|
2091
|
-
const ipifyData = await ipifyResponse.json();
|
|
2092
|
-
const ip = ipifyData?.ip;
|
|
2093
|
-
if (ip)
|
|
2094
|
-
return ip;
|
|
2095
|
-
throw new Error("Could not determine public IP");
|
|
2096
|
-
}, { ttlMs: 1000 * 60 * 5 });
|
|
2097
|
-
async function resolveHostIps(input) {
|
|
2098
|
-
const host = net.urlBuilder(input)?.hostname;
|
|
2099
|
-
if (!host)
|
|
2100
|
-
return [];
|
|
2101
|
-
const literal = net.parseIp(host.replace(/^\[|\]$/g, ""));
|
|
2102
|
-
if (literal)
|
|
2103
|
-
return [host.replace(/^\[|\]$/g, "")];
|
|
2104
|
-
try {
|
|
2105
|
-
const results = await lookup(host, { all: true });
|
|
2106
|
-
return [...new Set(results.map((r) => r.address))];
|
|
2107
|
-
} catch {
|
|
2108
|
-
return [];
|
|
2109
|
-
}
|
|
2110
|
-
}
|
|
2111
|
-
|
|
2112
|
-
// src/cloud.ts
|
|
2113
|
-
var logger = log.logger("cloud");
|
|
2114
|
-
var RANGE_CACHE_TTL_MS = 24 * 60 * 60 * 1000;
|
|
2115
|
-
var AWS_RANGES_URL = "https://ip-ranges.amazonaws.com/ip-ranges.json";
|
|
2116
|
-
var GCP_RANGES_URL = "https://www.gstatic.com/ipranges/cloud.json";
|
|
2117
|
-
var AZURE_DOWNLOAD_PAGE = "https://www.microsoft.com/en-us/download/details.aspx?id=56519";
|
|
2118
|
-
var AZURE_JSON_LINK = /https:\/\/download\.microsoft\.com\/download\/[^"']*ServiceTags_Public_\d+\.json/;
|
|
2119
|
-
var CloudProvider;
|
|
2120
|
-
((CloudProvider2) => {
|
|
2121
|
-
CloudProvider2["Aws"] = "aws";
|
|
2122
|
-
CloudProvider2["Azure"] = "azure";
|
|
2123
|
-
CloudProvider2["Gcp"] = "gcp";
|
|
2124
|
-
})(CloudProvider ||= {});
|
|
2125
|
-
async function resolveCloudLocation(input) {
|
|
2126
|
-
const ips = await resolveHostIps(input);
|
|
2127
|
-
if (ips.length === 0) {
|
|
2128
|
-
logger.debug("no ips resolved", { input: String(input) });
|
|
2129
|
-
return null;
|
|
2130
|
-
}
|
|
2131
|
-
const providers = await loadProviderRanges();
|
|
2132
|
-
for (const ip of ips) {
|
|
2133
|
-
const parsed = net2.parseIp(ip);
|
|
2134
|
-
if (!parsed)
|
|
2135
|
-
continue;
|
|
2136
|
-
for (const { provider, ranges } of providers) {
|
|
2137
|
-
const match = net2.findContainingCidr(parsed, ranges);
|
|
2138
|
-
if (match) {
|
|
2139
|
-
return { provider, region: match.region, ip, cidr: match.cidr };
|
|
2140
|
-
}
|
|
2141
|
-
}
|
|
2142
|
-
}
|
|
2143
|
-
logger.debug("no cloud range matched", { ips });
|
|
2144
|
-
return null;
|
|
2145
|
-
}
|
|
2146
|
-
async function loadProviderRanges() {
|
|
2147
|
-
const settled = await Promise.allSettled([loadAwsRanges(), loadAzureRanges(), loadGcpRanges()]);
|
|
2148
|
-
const out = [];
|
|
2149
|
-
for (const result of settled) {
|
|
2150
|
-
if (result.status === "fulfilled")
|
|
2151
|
-
out.push(result.value);
|
|
2152
|
-
else
|
|
2153
|
-
logger.warn("provider range load failed", { error: error.errorMessage(result.reason) });
|
|
2154
|
-
}
|
|
2155
|
-
return out;
|
|
2156
|
-
}
|
|
2157
|
-
var loadAwsRanges = functionModule2.memoize(fetchAwsRanges, { ttlMs: RANGE_CACHE_TTL_MS });
|
|
2158
|
-
var loadAzureRanges = functionModule2.memoize(fetchAzureRanges, { ttlMs: RANGE_CACHE_TTL_MS });
|
|
2159
|
-
var loadGcpRanges = functionModule2.memoize(fetchGcpRanges, { ttlMs: RANGE_CACHE_TTL_MS });
|
|
2160
|
-
async function fetchAwsRanges() {
|
|
2161
|
-
const feed = await fetchJson(AWS_RANGES_URL);
|
|
2162
|
-
const ranges = [];
|
|
2163
|
-
for (const entry of feed.prefixes ?? []) {
|
|
2164
|
-
addRange(ranges, entry.ip_prefix, entry.region);
|
|
2165
|
-
}
|
|
2166
|
-
for (const entry of feed.ipv6_prefixes ?? []) {
|
|
2167
|
-
addRange(ranges, entry.ipv6_prefix, entry.region);
|
|
2168
|
-
}
|
|
2169
|
-
logger.debug("loaded aws ranges", { count: ranges.length });
|
|
2170
|
-
return { provider: "aws" /* Aws */, ranges };
|
|
2171
|
-
}
|
|
2172
|
-
async function fetchGcpRanges() {
|
|
2173
|
-
const feed = await fetchJson(GCP_RANGES_URL);
|
|
2174
|
-
const ranges = [];
|
|
2175
|
-
for (const entry of feed.prefixes ?? []) {
|
|
2176
|
-
addRange(ranges, entry.ipv4Prefix ?? entry.ipv6Prefix, entry.scope);
|
|
2177
|
-
}
|
|
2178
|
-
logger.debug("loaded gcp ranges", { count: ranges.length });
|
|
2179
|
-
return { provider: "gcp" /* Gcp */, ranges };
|
|
2180
|
-
}
|
|
2181
|
-
async function fetchAzureRanges() {
|
|
2182
|
-
const page = await fetchText(AZURE_DOWNLOAD_PAGE);
|
|
2183
|
-
const jsonUrl = page.match(AZURE_JSON_LINK)?.[0];
|
|
2184
|
-
if (!jsonUrl) {
|
|
2185
|
-
throw new Error("could not find ServiceTags JSON link on Azure download page");
|
|
2186
|
-
}
|
|
2187
|
-
const feed = await fetchJson(jsonUrl);
|
|
2188
|
-
const ranges = [];
|
|
2189
|
-
for (const value of feed.values ?? []) {
|
|
2190
|
-
const region = value.properties?.region;
|
|
2191
|
-
if (!region || !value.name?.startsWith("AzureCloud."))
|
|
2192
|
-
continue;
|
|
2193
|
-
for (const prefix of value.properties?.addressPrefixes ?? []) {
|
|
2194
|
-
addRange(ranges, prefix, region);
|
|
2195
|
-
}
|
|
2196
|
-
}
|
|
2197
|
-
logger.debug("loaded azure ranges", { count: ranges.length });
|
|
2198
|
-
return { provider: "azure" /* Azure */, ranges };
|
|
2199
|
-
}
|
|
2200
|
-
function addRange(ranges, cidr, region) {
|
|
2201
|
-
if (!cidr || !region)
|
|
2202
|
-
return;
|
|
2203
|
-
const parsed = net2.parseCidr(cidr);
|
|
2204
|
-
if (parsed)
|
|
2205
|
-
ranges.push({ ...parsed, region });
|
|
2206
|
-
}
|
|
2207
|
-
async function fetchJson(url) {
|
|
2208
|
-
const text = await fetchText(url);
|
|
2209
|
-
const parsed = json.parse(text);
|
|
2210
|
-
if (parsed === undefined) {
|
|
2211
|
-
throw new Error(`range feed returned non-JSON content: ${url}`);
|
|
2212
|
-
}
|
|
2213
|
-
return parsed;
|
|
2214
|
-
}
|
|
2215
|
-
async function fetchText(url) {
|
|
2216
|
-
const cacheDir = join(tmpdir(), "dbx-tools", "shared", "cloud");
|
|
2217
|
-
const cacheDirCreated = await mkdir(cacheDir, { recursive: true });
|
|
2218
|
-
const cachePath = join(cacheDir, `fetch-${hash.fnvHash(url)}.txt`);
|
|
2219
|
-
const createdAt = cacheDirCreated ? undefined : await getCreated(cachePath);
|
|
2220
|
-
if (createdAt) {
|
|
2221
|
-
const expiresAt = new Date(createdAt.getTime() + RANGE_CACHE_TTL_MS);
|
|
2222
|
-
if (expiresAt > new Date) {
|
|
2223
|
-
logger.debug("cached fetch hit", { url, cachePath });
|
|
2224
|
-
return readFile(cachePath, "utf8");
|
|
2225
|
-
}
|
|
2226
|
-
}
|
|
2227
|
-
let tempPath = join(cacheDir, `${hash.id()}.txt`);
|
|
2228
|
-
try {
|
|
2229
|
-
const response = await fetch(url);
|
|
2230
|
-
if (!response.ok) {
|
|
2231
|
-
throw await http2.createFetchError(response, url);
|
|
2232
|
-
}
|
|
2233
|
-
const responseText = await response.text();
|
|
2234
|
-
await mkdir(dirname(tempPath), { recursive: true });
|
|
2235
|
-
await writeFile(tempPath, responseText);
|
|
2236
|
-
await rename(tempPath, cachePath);
|
|
2237
|
-
logger.debug("cached fetch load", { url, cachePath });
|
|
2238
|
-
tempPath = null;
|
|
2239
|
-
return responseText;
|
|
2240
|
-
} finally {
|
|
2241
|
-
if (tempPath) {
|
|
2242
|
-
await unlink(tempPath);
|
|
2243
|
-
}
|
|
2244
|
-
}
|
|
2245
|
-
}
|
|
2246
|
-
async function getCreated(path) {
|
|
2247
|
-
return (await file.statSync(path))?.birthtime;
|
|
2248
|
-
}
|
|
2249
|
-
// src/databricks-fs.ts
|
|
2250
|
-
var exports_databricks_fs = {};
|
|
2251
|
-
__export(exports_databricks_fs, {
|
|
2252
|
-
DatabricksFileSystem: () => DatabricksFileSystem
|
|
2253
|
-
});
|
|
2254
|
-
import { hash as hash2, object } from "@dbx-tools/shared-core";
|
|
2255
|
-
import {
|
|
2256
|
-
BaseFileSystem,
|
|
2257
|
-
baseFS,
|
|
2258
|
-
FileSystemError,
|
|
2259
|
-
posixPath as posixPath2
|
|
2260
|
-
} from "@dbx-tools/shared-fs";
|
|
2261
|
-
|
|
2262
|
-
// src/databricks-path.ts
|
|
2263
|
-
var exports_databricks_path = {};
|
|
2264
|
-
__export(exports_databricks_path, {
|
|
2265
|
-
resolveDatabricksRoot: () => resolveDatabricksRoot,
|
|
2266
|
-
resolveDatabricksFilesBackend: () => resolveDatabricksFilesBackend,
|
|
2267
|
-
normalizeDatabricksRoot: () => normalizeDatabricksRoot,
|
|
2268
|
-
isWorkspaceFilesPath: () => isWorkspaceFilesPath,
|
|
2269
|
-
isVolumesPath: () => isVolumesPath,
|
|
2270
|
-
isHomeRelativePath: () => isHomeRelativePath,
|
|
2271
|
-
isDbfsPath: () => isDbfsPath,
|
|
2272
|
-
expandHomePath: () => expandHomePath
|
|
2273
|
-
});
|
|
2274
|
-
import { posixPath } from "@dbx-tools/shared-fs";
|
|
2275
|
-
|
|
2276
|
-
// src/workspace.ts
|
|
2277
|
-
var exports_workspace = {};
|
|
2278
|
-
__export(exports_workspace, {
|
|
2279
|
-
tryGetWorkspaceClient: () => tryGetWorkspaceClient,
|
|
2280
|
-
toLegacyWorkspaceClient: () => toLegacyWorkspaceClient,
|
|
2281
|
-
getWorkspaceUrl: () => getWorkspaceUrl,
|
|
2282
|
-
getWorkspaceId: () => getWorkspaceId,
|
|
2283
|
-
getWorkspaceClient: () => getWorkspaceClient,
|
|
2284
|
-
getCurrentUserName: () => getCurrentUserName
|
|
2285
|
-
});
|
|
2286
|
-
import {
|
|
2287
|
-
createWorkspaceClient
|
|
2288
|
-
} from "@databricks/appkit";
|
|
2289
|
-
import { appkit } from "@dbx-tools/appkit";
|
|
2290
|
-
import { functionModule as functionModule3, net as net3 } from "@dbx-tools/shared-core";
|
|
2291
|
-
var WORKSPACE_ID_REGEX = /\d{10,20}/;
|
|
2292
|
-
function toLegacyWorkspaceClient(client) {
|
|
2293
|
-
return "toLegacyWorkspaceClient" in client ? client.toLegacyWorkspaceClient() : client;
|
|
2294
|
-
}
|
|
2295
|
-
var getDefaultWorkspaceClient = functionModule3.memoize(async () => createWorkspaceClient().toLegacyWorkspaceClient());
|
|
2296
|
-
function tryGetWorkspaceClient() {
|
|
2297
|
-
return appkit.tryGetExecutionContext()?.client.toLegacyWorkspaceClient();
|
|
2298
|
-
}
|
|
2299
|
-
async function getWorkspaceClient() {
|
|
2300
|
-
return tryGetWorkspaceClient() ?? await getDefaultWorkspaceClient();
|
|
2301
|
-
}
|
|
2302
|
-
async function getWorkspaceConfig() {
|
|
2303
|
-
try {
|
|
2304
|
-
return (await getWorkspaceClient()).config;
|
|
2305
|
-
} catch {
|
|
2306
|
-
return;
|
|
2307
|
-
}
|
|
2308
|
-
}
|
|
2309
|
-
async function getCurrentUserName(client) {
|
|
2310
|
-
const contextUser = readContextUserName(appkit.tryGetExecutionContext());
|
|
2311
|
-
if (contextUser)
|
|
2312
|
-
return contextUser;
|
|
2313
|
-
const resolved = client ?? await getWorkspaceClient();
|
|
2314
|
-
const me = await resolved.currentUser.me();
|
|
2315
|
-
const userName = me.userName?.trim();
|
|
2316
|
-
if (!userName) {
|
|
2317
|
-
throw new Error("Databricks currentUser.me() did not return a userName");
|
|
2318
|
-
}
|
|
2319
|
-
return userName;
|
|
2320
|
-
}
|
|
2321
|
-
function readContextUserName(ctx) {
|
|
2322
|
-
if (typeof ctx !== "object" || ctx === null || !("userName" in ctx))
|
|
2323
|
-
return;
|
|
2324
|
-
const value = ctx.userName;
|
|
2325
|
-
return typeof value === "string" && value.trim() ? value.trim() : undefined;
|
|
2326
|
-
}
|
|
2327
|
-
async function getWorkspaceUrl() {
|
|
2328
|
-
const config = await getWorkspaceConfig();
|
|
2329
|
-
if (config) {
|
|
2330
|
-
const configHost = net3.urlBuilder(await config.getHost());
|
|
2331
|
-
if (configHost)
|
|
2332
|
-
return configHost;
|
|
2333
|
-
}
|
|
2334
|
-
const databricksHost = net3.urlBuilder(process.env.DATABRICKS_HOST);
|
|
2335
|
-
if (databricksHost)
|
|
2336
|
-
return databricksHost;
|
|
2337
|
-
return;
|
|
2338
|
-
}
|
|
2339
|
-
async function getWorkspaceId(workspaceHost) {
|
|
2340
|
-
const workspaceId = (await getWorkspaceConfig())?.workspaceId;
|
|
2341
|
-
if (workspaceId)
|
|
2342
|
-
return workspaceId;
|
|
2343
|
-
workspaceHost = workspaceHost ?? (await getWorkspaceUrl())?.host;
|
|
2344
|
-
if (workspaceHost) {
|
|
2345
|
-
const match = workspaceHost.match(WORKSPACE_ID_REGEX)?.[0];
|
|
2346
|
-
if (match)
|
|
2347
|
-
return match;
|
|
2348
|
-
}
|
|
2349
|
-
return;
|
|
2350
|
-
}
|
|
2351
|
-
|
|
2352
|
-
// src/databricks-path.ts
|
|
2353
|
-
var VOLUME_THREE_PART = /^([^.\/\s]+)\.([^.\/\s]+)\.([^.\/\s]+)$/;
|
|
2354
|
-
var isHomeRelativePath = posixPath.isHomeRelativePath;
|
|
2355
|
-
function expandHomePath(input, userName) {
|
|
2356
|
-
const name = userName.trim();
|
|
2357
|
-
if (!name) {
|
|
2358
|
-
throw new TypeError("Databricks home expansion requires a non-empty userName");
|
|
2359
|
-
}
|
|
2360
|
-
if (!isHomeRelativePath(input)) {
|
|
2361
|
-
return posixPath.toPosix(input.trim());
|
|
2362
|
-
}
|
|
2363
|
-
return posixPath.expandHome(input, `/Workspace/Users/${name}`);
|
|
2364
|
-
}
|
|
2365
|
-
function normalizeDatabricksRoot(root, options = {}) {
|
|
2366
|
-
const trimmed = root.trim();
|
|
2367
|
-
if (!trimmed) {
|
|
2368
|
-
throw new TypeError("Databricks filesystem root cannot be empty");
|
|
2369
|
-
}
|
|
2370
|
-
if (isHomeRelativePath(trimmed)) {
|
|
2371
|
-
if (!options.userName?.trim()) {
|
|
2372
|
-
throw new TypeError(`Databricks home path "${root}" requires userName; use resolveDatabricksRoot() or pass userName`);
|
|
2373
|
-
}
|
|
2374
|
-
return posixPath.normalizeRoot(expandHomePath(trimmed, options.userName));
|
|
2375
|
-
}
|
|
2376
|
-
const threePart = VOLUME_THREE_PART.exec(trimmed);
|
|
2377
|
-
if (threePart) {
|
|
2378
|
-
return posixPath.normalizeRoot(`/Volumes/${threePart[1]}/${threePart[2]}/${threePart[3]}`);
|
|
2379
|
-
}
|
|
2380
|
-
let posix = posixPath.toPosix(trimmed);
|
|
2381
|
-
if (posix === "/Volume" || posix.startsWith("/Volume/")) {
|
|
2382
|
-
posix = `/Volumes${posix.slice("/Volume".length)}`;
|
|
2383
|
-
}
|
|
2384
|
-
if (!posixPath.isAbsolute(posix)) {
|
|
2385
|
-
throw new TypeError(`Databricks filesystem root must be absolute, catalog.schema.volume, or ~, got: ${root}`);
|
|
2386
|
-
}
|
|
2387
|
-
return posixPath.normalizeRoot(posix);
|
|
2388
|
-
}
|
|
2389
|
-
async function resolveDatabricksRoot(root, options = {}) {
|
|
2390
|
-
if (!isHomeRelativePath(root)) {
|
|
2391
|
-
return normalizeDatabricksRoot(root);
|
|
2392
|
-
}
|
|
2393
|
-
const userName = await getCurrentUserName(options.client);
|
|
2394
|
-
return normalizeDatabricksRoot(root, { userName });
|
|
2395
|
-
}
|
|
2396
|
-
function isWorkspaceFilesPath(absolutePath) {
|
|
2397
|
-
const p = posixPath.toPosix(absolutePath);
|
|
2398
|
-
return p === "/Workspace" || p.startsWith("/Workspace/") || p.startsWith("/Users/") || p.startsWith("/Repos/") || p.startsWith("/Shared/");
|
|
2399
|
-
}
|
|
2400
|
-
function isVolumesPath(absolutePath) {
|
|
2401
|
-
const p = posixPath.toPosix(absolutePath);
|
|
2402
|
-
return p === "/Volumes" || p.startsWith("/Volumes/");
|
|
2403
|
-
}
|
|
2404
|
-
function isDbfsPath(absolutePath) {
|
|
2405
|
-
const p = posixPath.toPosix(absolutePath);
|
|
2406
|
-
return p === "/dbfs" || p.startsWith("/dbfs/");
|
|
2407
|
-
}
|
|
2408
|
-
function resolveDatabricksFilesBackend(absolutePath) {
|
|
2409
|
-
if (isDbfsPath(absolutePath))
|
|
2410
|
-
return "dbfs";
|
|
2411
|
-
if (isWorkspaceFilesPath(absolutePath))
|
|
2412
|
-
return "workspace";
|
|
2413
|
-
if (isVolumesPath(absolutePath))
|
|
2414
|
-
return "volumes";
|
|
2415
|
-
return "volumes";
|
|
2416
|
-
}
|
|
2417
|
-
|
|
2418
|
-
// src/databricks-fs.ts
|
|
2419
|
-
var DBFS_READ_CHUNK_BYTES = 1024 * 1024;
|
|
2420
|
-
var DBFS_PUT_MAX_BYTES = 1024 * 1024;
|
|
2421
|
-
var VOLUME_ROOT_DEPTH = 4;
|
|
2422
|
-
|
|
2423
|
-
class DatabricksFileSystem extends BaseFileSystem {
|
|
2424
|
-
client;
|
|
2425
|
-
clientOption;
|
|
2426
|
-
constructor(options) {
|
|
2427
|
-
const root = normalizeDatabricksRoot(options.root, { userName: options.userName });
|
|
2428
|
-
super({
|
|
2429
|
-
id: options.id ?? `databricks-${hash2.fnvHash(root)}`,
|
|
2430
|
-
backend: "databricks",
|
|
2431
|
-
root,
|
|
2432
|
-
readOnly: options.readOnly,
|
|
2433
|
-
createRoot: options.createRoot ?? false
|
|
2434
|
-
});
|
|
2435
|
-
this.clientOption = options.client;
|
|
2436
|
-
this.client = options.client;
|
|
2437
|
-
}
|
|
2438
|
-
static async create(options) {
|
|
2439
|
-
if (!isHomeRelativePath(options.root) || options.userName?.trim()) {
|
|
2440
|
-
return new DatabricksFileSystem(options);
|
|
2441
|
-
}
|
|
2442
|
-
const client = options.client ?? await getWorkspaceClient();
|
|
2443
|
-
const root = await resolveDatabricksRoot(options.root, { client });
|
|
2444
|
-
return new DatabricksFileSystem({ ...options, root, client });
|
|
2445
|
-
}
|
|
2446
|
-
async onInit() {
|
|
2447
|
-
this.client = this.clientOption ?? await getWorkspaceClient();
|
|
2448
|
-
}
|
|
2449
|
-
dispatch(absolutePath, handlers) {
|
|
2450
|
-
if (!this.client) {
|
|
2451
|
-
throw new FileSystemError("IO_ERROR", "Databricks filesystem is not initialized (no WorkspaceClient)", absolutePath);
|
|
2452
|
-
}
|
|
2453
|
-
return handlers[resolveDatabricksFilesBackend(absolutePath)](this.client);
|
|
2454
|
-
}
|
|
2455
|
-
async createRootDirectory() {
|
|
2456
|
-
await this.createDirectoryAt(this.root);
|
|
2457
|
-
}
|
|
2458
|
-
async readBytesAt(resolvedPath) {
|
|
2459
|
-
const buffer = await this.dispatch(resolvedPath, {
|
|
2460
|
-
dbfs: (client) => this.readDbfsFile(client, resolvedPath),
|
|
2461
|
-
workspace: async (client) => {
|
|
2462
|
-
const response = await client.workspace.export({ path: resolvedPath, format: "AUTO" });
|
|
2463
|
-
return decodeBase64(response.content);
|
|
2464
|
-
},
|
|
2465
|
-
volumes: async (client) => {
|
|
2466
|
-
const response = await client.files.download({ file_path: resolvedPath });
|
|
2467
|
-
return readResponseBody(response.contents);
|
|
2468
|
-
}
|
|
2469
|
-
});
|
|
2470
|
-
return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
|
2471
|
-
}
|
|
2472
|
-
async writeBytesAt(resolvedPath, content, options) {
|
|
2473
|
-
const buffer = Buffer.from(content);
|
|
2474
|
-
const overwrite = options.overwrite;
|
|
2475
|
-
await this.dispatch(resolvedPath, {
|
|
2476
|
-
dbfs: (client) => this.writeDbfsFile(client, resolvedPath, buffer, overwrite),
|
|
2477
|
-
workspace: (client) => client.workspace.import({
|
|
2478
|
-
path: resolvedPath,
|
|
2479
|
-
format: "AUTO",
|
|
2480
|
-
content: buffer.toString("base64"),
|
|
2481
|
-
overwrite
|
|
2482
|
-
}),
|
|
2483
|
-
volumes: (client) => client.files.upload({
|
|
2484
|
-
file_path: resolvedPath,
|
|
2485
|
-
contents: bufferToReadableStream(buffer),
|
|
2486
|
-
overwrite
|
|
2487
|
-
})
|
|
2488
|
-
});
|
|
2489
|
-
}
|
|
2490
|
-
async deleteFileAt(resolvedPath) {
|
|
2491
|
-
await this.dispatch(resolvedPath, {
|
|
2492
|
-
dbfs: (client) => client.dbfs.delete({ path: resolvedPath, recursive: false }),
|
|
2493
|
-
workspace: (client) => client.workspace.delete({ path: resolvedPath, recursive: false }),
|
|
2494
|
-
volumes: (client) => client.files.delete({ file_path: resolvedPath })
|
|
2495
|
-
});
|
|
2496
|
-
}
|
|
2497
|
-
async createDirectoryAt(resolvedPath) {
|
|
2498
|
-
await this.dispatch(resolvedPath, {
|
|
2499
|
-
dbfs: (client) => client.dbfs.mkdirs({ path: resolvedPath }),
|
|
2500
|
-
workspace: (client) => client.workspace.mkdirs({ path: resolvedPath }),
|
|
2501
|
-
volumes: (client) => this.createVolumeDirectories(client, resolvedPath)
|
|
2502
|
-
});
|
|
2503
|
-
}
|
|
2504
|
-
async removeDirectoryAt(resolvedPath) {
|
|
2505
|
-
await this.dispatch(resolvedPath, {
|
|
2506
|
-
dbfs: (client) => client.dbfs.delete({ path: resolvedPath, recursive: false }),
|
|
2507
|
-
workspace: (client) => client.workspace.delete({ path: resolvedPath, recursive: false }),
|
|
2508
|
-
volumes: (client) => client.files.deleteDirectory({ directory_path: resolvedPath })
|
|
2509
|
-
});
|
|
2510
|
-
}
|
|
2511
|
-
async listDirectoryAt(resolvedPath) {
|
|
2512
|
-
return this.dispatch(resolvedPath, {
|
|
2513
|
-
dbfs: (client) => collect(client.dbfs.list({ path: resolvedPath }), (info) => ({
|
|
2514
|
-
name: posixPath2.basename(info.path ?? ""),
|
|
2515
|
-
type: info.is_dir ? "directory" : "file",
|
|
2516
|
-
size: info.file_size
|
|
2517
|
-
})),
|
|
2518
|
-
workspace: (client) => collect(client.workspace.list({ path: resolvedPath }), (info) => ({
|
|
2519
|
-
name: posixPath2.basename(info.path ?? ""),
|
|
2520
|
-
type: info.object_type === "DIRECTORY" ? "directory" : "file"
|
|
2521
|
-
})),
|
|
2522
|
-
volumes: (client) => collect(client.files.listDirectoryContents({ directory_path: resolvedPath }), (entry) => ({
|
|
2523
|
-
name: entry.name ?? posixPath2.basename(entry.path ?? ""),
|
|
2524
|
-
type: entry.is_directory ? "directory" : "file",
|
|
2525
|
-
size: entry.file_size
|
|
2526
|
-
}))
|
|
2527
|
-
});
|
|
2528
|
-
}
|
|
2529
|
-
async statAt(resolvedPath) {
|
|
2530
|
-
const fallbackName = posixPath2.basename(resolvedPath) || posixPath2.basename(this.root);
|
|
2531
|
-
return this.dispatch(resolvedPath, {
|
|
2532
|
-
dbfs: async (client) => {
|
|
2533
|
-
const info = await client.dbfs.getStatus({ path: resolvedPath });
|
|
2534
|
-
const modified = object.toDate(info.modification_time);
|
|
2535
|
-
return {
|
|
2536
|
-
name: posixPath2.basename(info.path ?? resolvedPath) || fallbackName,
|
|
2537
|
-
type: info.is_dir ? "directory" : "file",
|
|
2538
|
-
size: info.file_size,
|
|
2539
|
-
createdAt: modified,
|
|
2540
|
-
modifiedAt: modified
|
|
2541
|
-
};
|
|
2542
|
-
},
|
|
2543
|
-
workspace: async (client) => {
|
|
2544
|
-
const info = await client.workspace.getStatus({ path: resolvedPath });
|
|
2545
|
-
return {
|
|
2546
|
-
name: posixPath2.basename(info.path ?? resolvedPath) || fallbackName,
|
|
2547
|
-
type: info.object_type === "DIRECTORY" ? "directory" : "file",
|
|
2548
|
-
createdAt: object.toDate(info.created_at),
|
|
2549
|
-
modifiedAt: object.toDate(info.modified_at)
|
|
2550
|
-
};
|
|
2551
|
-
},
|
|
2552
|
-
volumes: (client) => this.statVolumePath(client, resolvedPath, fallbackName)
|
|
2553
|
-
});
|
|
2554
|
-
}
|
|
2555
|
-
async tryMoveFileAt(sourcePath, destinationPath, _options) {
|
|
2556
|
-
if (resolveDatabricksFilesBackend(sourcePath) !== "dbfs" || resolveDatabricksFilesBackend(destinationPath) !== "dbfs") {
|
|
2557
|
-
return false;
|
|
2558
|
-
}
|
|
2559
|
-
await this.dispatch(sourcePath, {
|
|
2560
|
-
dbfs: (client) => client.dbfs.move({ source_path: sourcePath, destination_path: destinationPath }),
|
|
2561
|
-
workspace: unreachableBackend,
|
|
2562
|
-
volumes: unreachableBackend
|
|
2563
|
-
});
|
|
2564
|
-
return true;
|
|
2565
|
-
}
|
|
2566
|
-
async createVolumeDirectories(client, absolutePath) {
|
|
2567
|
-
const parts = absolutePath.split("/").filter(Boolean);
|
|
2568
|
-
let current = "";
|
|
2569
|
-
for (let i = 0;i < parts.length; i++) {
|
|
2570
|
-
current = `${current}/${parts[i]}`;
|
|
2571
|
-
if (i < VOLUME_ROOT_DEPTH)
|
|
2572
|
-
continue;
|
|
2573
|
-
try {
|
|
2574
|
-
await client.files.createDirectory({ directory_path: current });
|
|
2575
|
-
} catch (err) {
|
|
2576
|
-
try {
|
|
2577
|
-
await client.files.getDirectoryMetadata({ directory_path: current });
|
|
2578
|
-
} catch {
|
|
2579
|
-
throw err;
|
|
2580
|
-
}
|
|
2581
|
-
}
|
|
2582
|
-
}
|
|
2583
|
-
}
|
|
2584
|
-
async statVolumePath(client, absolutePath, fallbackName) {
|
|
2585
|
-
try {
|
|
2586
|
-
const metadata = await client.files.getMetadata({ file_path: absolutePath });
|
|
2587
|
-
const modified = object.toDate(metadata["last-modified"]);
|
|
2588
|
-
return {
|
|
2589
|
-
name: fallbackName,
|
|
2590
|
-
type: "file",
|
|
2591
|
-
size: Number(metadata["content-length"] ?? 0),
|
|
2592
|
-
createdAt: modified,
|
|
2593
|
-
modifiedAt: modified,
|
|
2594
|
-
mimeType: metadata["content-type"]
|
|
2595
|
-
};
|
|
2596
|
-
} catch (fileErr) {
|
|
2597
|
-
const code = baseFS.mapFileSystemError(fileErr, absolutePath).code;
|
|
2598
|
-
if (code !== "NOT_FOUND" && code !== "PERMISSION_DENIED")
|
|
2599
|
-
throw fileErr;
|
|
2600
|
-
await client.files.getDirectoryMetadata({ directory_path: absolutePath });
|
|
2601
|
-
return { name: fallbackName, type: "directory" };
|
|
2602
|
-
}
|
|
2603
|
-
}
|
|
2604
|
-
async readDbfsFile(client, absolutePath) {
|
|
2605
|
-
const chunks = [];
|
|
2606
|
-
let offset = 0;
|
|
2607
|
-
while (true) {
|
|
2608
|
-
const response = await client.dbfs.read({
|
|
2609
|
-
path: absolutePath,
|
|
2610
|
-
offset,
|
|
2611
|
-
length: DBFS_READ_CHUNK_BYTES
|
|
2612
|
-
});
|
|
2613
|
-
const chunk = decodeBase64(response.data);
|
|
2614
|
-
if (chunk.length === 0)
|
|
2615
|
-
break;
|
|
2616
|
-
chunks.push(chunk);
|
|
2617
|
-
offset += chunk.length;
|
|
2618
|
-
if (chunk.length < DBFS_READ_CHUNK_BYTES)
|
|
2619
|
-
break;
|
|
2620
|
-
}
|
|
2621
|
-
return Buffer.concat(chunks);
|
|
2622
|
-
}
|
|
2623
|
-
async writeDbfsFile(client, absolutePath, buffer, overwrite) {
|
|
2624
|
-
if (buffer.length <= DBFS_PUT_MAX_BYTES) {
|
|
2625
|
-
await client.dbfs.put({
|
|
2626
|
-
path: absolutePath,
|
|
2627
|
-
contents: buffer.toString("base64"),
|
|
2628
|
-
overwrite
|
|
2629
|
-
});
|
|
2630
|
-
return;
|
|
2631
|
-
}
|
|
2632
|
-
const created = await client.dbfs.create({ path: absolutePath, overwrite });
|
|
2633
|
-
const handle = created.handle;
|
|
2634
|
-
if (handle === undefined) {
|
|
2635
|
-
throw new FileSystemError("IO_ERROR", "DBFS upload handle missing", absolutePath);
|
|
2636
|
-
}
|
|
2637
|
-
try {
|
|
2638
|
-
for (let offset = 0;offset < buffer.length; offset += DBFS_PUT_MAX_BYTES) {
|
|
2639
|
-
const slice = buffer.subarray(offset, offset + DBFS_PUT_MAX_BYTES);
|
|
2640
|
-
await client.dbfs.addBlock({ handle, data: slice.toString("base64") });
|
|
2641
|
-
}
|
|
2642
|
-
} catch (err) {
|
|
2643
|
-
await client.dbfs.close({ handle }).catch(() => {
|
|
2644
|
-
return;
|
|
2645
|
-
});
|
|
2646
|
-
throw err;
|
|
2647
|
-
}
|
|
2648
|
-
await client.dbfs.close({ handle });
|
|
2649
|
-
}
|
|
2650
|
-
}
|
|
2651
|
-
async function collect(source, map) {
|
|
2652
|
-
const items = [];
|
|
2653
|
-
for await (const item of source)
|
|
2654
|
-
items.push(map(item));
|
|
2655
|
-
return items;
|
|
2656
|
-
}
|
|
2657
|
-
function unreachableBackend() {
|
|
2658
|
-
throw new FileSystemError("NOT_SUPPORTED", "Unsupported Databricks backend for this operation");
|
|
2659
|
-
}
|
|
2660
|
-
function decodeBase64(data) {
|
|
2661
|
-
if (!data)
|
|
2662
|
-
return Buffer.alloc(0);
|
|
2663
|
-
return Buffer.from(data, "base64");
|
|
2664
|
-
}
|
|
2665
|
-
async function readResponseBody(contents) {
|
|
2666
|
-
if (!contents)
|
|
2667
|
-
return Buffer.alloc(0);
|
|
2668
|
-
const reader = contents.getReader();
|
|
2669
|
-
const chunks = [];
|
|
2670
|
-
while (true) {
|
|
2671
|
-
const { done, value } = await reader.read();
|
|
2672
|
-
if (done)
|
|
2673
|
-
break;
|
|
2674
|
-
if (value)
|
|
2675
|
-
chunks.push(value);
|
|
2676
|
-
}
|
|
2677
|
-
return Buffer.concat(chunks.map((chunk) => Buffer.from(chunk)));
|
|
2678
|
-
}
|
|
2679
|
-
function bufferToReadableStream(buffer) {
|
|
2680
|
-
return new ReadableStream({
|
|
2681
|
-
start(controller) {
|
|
2682
|
-
controller.enqueue(new Uint8Array(buffer));
|
|
2683
|
-
controller.close();
|
|
2684
|
-
}
|
|
2685
|
-
});
|
|
2686
|
-
}
|
|
2687
|
-
|
|
2688
|
-
// index.ts
|
|
2689
|
-
var PACKAGE_IDENTIFIER = "@dbx-tools/databricks";
|
|
2690
|
-
var PACKAGE_VERSION = "0.6.186";
|
|
2691
|
-
export {
|
|
2692
|
-
exports_workspace as workspace,
|
|
2693
|
-
_bindings_default as uniffiModule,
|
|
2694
|
-
uniffiInitAsync,
|
|
2695
|
-
exports_net as net,
|
|
2696
|
-
isHomeRelativePath,
|
|
2697
|
-
isDatabricksApp,
|
|
2698
|
-
getPublicIp,
|
|
2699
|
-
exports_databricks_path as databricksPath,
|
|
2700
|
-
exports_databricks_fs as databricksFS,
|
|
2701
|
-
databricksCliAvailable,
|
|
2702
|
-
credentialKey,
|
|
2703
|
-
createStorageHandle,
|
|
2704
|
-
createProviderAuthWithStorage,
|
|
2705
|
-
createProviderAuth,
|
|
2706
|
-
createPersistentAuthWithStorage,
|
|
2707
|
-
createPersistentAuthForRequest,
|
|
2708
|
-
createPersistentAuth,
|
|
2709
|
-
exports_cloud as cloud,
|
|
2710
|
-
canonicalScopes,
|
|
2711
|
-
StorageHandle,
|
|
2712
|
-
StorageAdapterImpl,
|
|
2713
|
-
Storage,
|
|
2714
|
-
RANGE_CACHE_TTL_MS,
|
|
2715
|
-
ProviderOptions,
|
|
2716
|
-
ProviderAuth,
|
|
2717
|
-
PersistentAuth,
|
|
2718
|
-
PACKAGE_VERSION,
|
|
2719
|
-
PACKAGE_IDENTIFIER,
|
|
2720
|
-
OAuthGrant,
|
|
2721
|
-
FileLayout,
|
|
2722
|
-
DatabricksFileSystem,
|
|
2723
|
-
DatabricksAuthStatus,
|
|
2724
|
-
DatabricksAuthOptions,
|
|
2725
|
-
CloudProvider,
|
|
2726
|
-
AuthOptions,
|
|
2727
|
-
AuthError_Tags,
|
|
2728
|
-
AuthError,
|
|
2729
|
-
AccessToken
|
|
2730
|
-
};
|
|
1
|
+
// GENERATED by projen watch - DO NOT EDIT.
|
|
2
|
+
// Regenerated from the exporting modules in ./src.
|
|
3
|
+
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
|
+
export const PACKAGE_IDENTIFIER = "@dbx-tools/databricks";
|
|
5
|
+
export const PACKAGE_VERSION = "0.6.191";
|
|
6
|
+
export * as cloud from "./src/cloud.js";
|
|
7
|
+
export * as databricksFS from "./src/databricks-fs.js";
|
|
8
|
+
export * as databricksPath from "./src/databricks-path.js";
|
|
9
|
+
export * as net from "./src/net.js";
|
|
10
|
+
export * as workspace from "./src/workspace.js";
|
|
11
|
+
export { RANGE_CACHE_TTL_MS, CloudProvider } from "./src/cloud.js";
|
|
12
|
+
export { DatabricksFileSystem } from "./src/databricks-fs.js";
|
|
13
|
+
export { isHomeRelativePath } from "./src/databricks-path.js";
|
|
14
|
+
export { getPublicIp } from "./src/net.js";
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSwyQ0FBMkM7QUFDM0MsbURBQW1EO0FBQ25ELHdFQUF3RTtBQUV4RSxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRyx1QkFBdUIsQ0FBQztBQUMxRCxNQUFNLENBQUMsTUFBTSxlQUFlLEdBQUcsU0FBUyxDQUFDO0FBQ3pDLE9BQU8sS0FBSyxLQUFLLE1BQU0sZ0JBQWdCLENBQUM7QUFDeEMsT0FBTyxLQUFLLFlBQVksTUFBTSx3QkFBd0IsQ0FBQztBQUN2RCxPQUFPLEtBQUssY0FBYyxNQUFNLDBCQUEwQixDQUFDO0FBQzNELE9BQU8sS0FBSyxHQUFHLE1BQU0sY0FBYyxDQUFDO0FBQ3BDLE9BQU8sS0FBSyxTQUFTLE1BQU0sb0JBQW9CLENBQUM7QUFDaEQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLGFBQWEsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRW5FLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBRTlELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBRTlELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBHRU5FUkFURUQgYnkgcHJvamVuIHdhdGNoIC0gRE8gTk9UIEVESVQuXG4vLyBSZWdlbmVyYXRlZCBmcm9tIHRoZSBleHBvcnRpbmcgbW9kdWxlcyBpbiAuL3NyYy5cbi8vIEhhbmQgZWRpdHMgYXJlIG92ZXJ3cml0dGVuIG9uIHRoZSBuZXh0IHdhdGNoOyB0aGlzIGZpbGUgaXMgcmVhZC1vbmx5LlxuXG5leHBvcnQgY29uc3QgUEFDS0FHRV9JREVOVElGSUVSID0gXCJAZGJ4LXRvb2xzL2RhdGFicmlja3NcIjtcbmV4cG9ydCBjb25zdCBQQUNLQUdFX1ZFUlNJT04gPSBcIjAuNi4xOTFcIjtcbmV4cG9ydCAqIGFzIGNsb3VkIGZyb20gXCIuL3NyYy9jbG91ZC50c1wiO1xuZXhwb3J0ICogYXMgZGF0YWJyaWNrc0ZTIGZyb20gXCIuL3NyYy9kYXRhYnJpY2tzLWZzLnRzXCI7XG5leHBvcnQgKiBhcyBkYXRhYnJpY2tzUGF0aCBmcm9tIFwiLi9zcmMvZGF0YWJyaWNrcy1wYXRoLnRzXCI7XG5leHBvcnQgKiBhcyBuZXQgZnJvbSBcIi4vc3JjL25ldC50c1wiO1xuZXhwb3J0ICogYXMgd29ya3NwYWNlIGZyb20gXCIuL3NyYy93b3Jrc3BhY2UudHNcIjtcbmV4cG9ydCB7IFJBTkdFX0NBQ0hFX1RUTF9NUywgQ2xvdWRQcm92aWRlciB9IGZyb20gXCIuL3NyYy9jbG91ZC50c1wiO1xuZXhwb3J0IHR5cGUgeyBDbG91ZExvY2F0aW9uIH0gZnJvbSBcIi4vc3JjL2Nsb3VkLnRzXCI7XG5leHBvcnQgeyBEYXRhYnJpY2tzRmlsZVN5c3RlbSB9IGZyb20gXCIuL3NyYy9kYXRhYnJpY2tzLWZzLnRzXCI7XG5leHBvcnQgdHlwZSB7IERhdGFicmlja3NGaWxlU3lzdGVtT3B0aW9ucyB9IGZyb20gXCIuL3NyYy9kYXRhYnJpY2tzLWZzLnRzXCI7XG5leHBvcnQgeyBpc0hvbWVSZWxhdGl2ZVBhdGggfSBmcm9tIFwiLi9zcmMvZGF0YWJyaWNrcy1wYXRoLnRzXCI7XG5leHBvcnQgdHlwZSB7IERhdGFicmlja3NGaWxlc0JhY2tlbmQsIE5vcm1hbGl6ZURhdGFicmlja3NSb290T3B0aW9ucywgUmVzb2x2ZURhdGFicmlja3NSb290T3B0aW9ucyB9IGZyb20gXCIuL3NyYy9kYXRhYnJpY2tzLXBhdGgudHNcIjtcbmV4cG9ydCB7IGdldFB1YmxpY0lwIH0gZnJvbSBcIi4vc3JjL25ldC50c1wiO1xuZXhwb3J0IHR5cGUgeyBXb3Jrc3BhY2VDbGllbnQgfSBmcm9tIFwiLi9zcmMvd29ya3NwYWNlLnRzXCI7XG4iXX0=
|