@dbx-tools/core-rs 0.6.188

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/lib/index.js ADDED
@@ -0,0 +1,2223 @@
1
+ // src/_bindings-ffi.ts
2
+ import lib from "@ubjs/node";
3
+ var { UniffiNativeModule, FfiType, resolveLibPath } = lib;
4
+ var DEFINITIONS = {
5
+ symbols: {
6
+ rustbuffer_alloc: "ffi_dbx_tools_core_rustbuffer_alloc",
7
+ rustbuffer_free: "ffi_dbx_tools_core_rustbuffer_free",
8
+ rustbuffer_from_bytes: "ffi_dbx_tools_core_rustbuffer_from_bytes"
9
+ },
10
+ functions: {
11
+ ffi_dbx_tools_core_rust_future_poll_u8: {
12
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
13
+ ret: FfiType.Void,
14
+ hasRustCallStatus: false
15
+ },
16
+ ffi_dbx_tools_core_rust_future_cancel_u8: {
17
+ args: [FfiType.Handle],
18
+ ret: FfiType.Void,
19
+ hasRustCallStatus: false
20
+ },
21
+ ffi_dbx_tools_core_rust_future_complete_u8: {
22
+ args: [FfiType.Handle],
23
+ ret: FfiType.UInt8,
24
+ hasRustCallStatus: true
25
+ },
26
+ ffi_dbx_tools_core_rust_future_free_u8: {
27
+ args: [FfiType.Handle],
28
+ ret: FfiType.Void,
29
+ hasRustCallStatus: false
30
+ },
31
+ ffi_dbx_tools_core_rust_future_poll_i8: {
32
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
33
+ ret: FfiType.Void,
34
+ hasRustCallStatus: false
35
+ },
36
+ ffi_dbx_tools_core_rust_future_cancel_i8: {
37
+ args: [FfiType.Handle],
38
+ ret: FfiType.Void,
39
+ hasRustCallStatus: false
40
+ },
41
+ ffi_dbx_tools_core_rust_future_complete_i8: {
42
+ args: [FfiType.Handle],
43
+ ret: FfiType.Int8,
44
+ hasRustCallStatus: true
45
+ },
46
+ ffi_dbx_tools_core_rust_future_free_i8: {
47
+ args: [FfiType.Handle],
48
+ ret: FfiType.Void,
49
+ hasRustCallStatus: false
50
+ },
51
+ ffi_dbx_tools_core_rust_future_poll_u16: {
52
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
53
+ ret: FfiType.Void,
54
+ hasRustCallStatus: false
55
+ },
56
+ ffi_dbx_tools_core_rust_future_cancel_u16: {
57
+ args: [FfiType.Handle],
58
+ ret: FfiType.Void,
59
+ hasRustCallStatus: false
60
+ },
61
+ ffi_dbx_tools_core_rust_future_complete_u16: {
62
+ args: [FfiType.Handle],
63
+ ret: FfiType.UInt16,
64
+ hasRustCallStatus: true
65
+ },
66
+ ffi_dbx_tools_core_rust_future_free_u16: {
67
+ args: [FfiType.Handle],
68
+ ret: FfiType.Void,
69
+ hasRustCallStatus: false
70
+ },
71
+ ffi_dbx_tools_core_rust_future_poll_i16: {
72
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
73
+ ret: FfiType.Void,
74
+ hasRustCallStatus: false
75
+ },
76
+ ffi_dbx_tools_core_rust_future_cancel_i16: {
77
+ args: [FfiType.Handle],
78
+ ret: FfiType.Void,
79
+ hasRustCallStatus: false
80
+ },
81
+ ffi_dbx_tools_core_rust_future_complete_i16: {
82
+ args: [FfiType.Handle],
83
+ ret: FfiType.Int16,
84
+ hasRustCallStatus: true
85
+ },
86
+ ffi_dbx_tools_core_rust_future_free_i16: {
87
+ args: [FfiType.Handle],
88
+ ret: FfiType.Void,
89
+ hasRustCallStatus: false
90
+ },
91
+ ffi_dbx_tools_core_rust_future_poll_u32: {
92
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
93
+ ret: FfiType.Void,
94
+ hasRustCallStatus: false
95
+ },
96
+ ffi_dbx_tools_core_rust_future_cancel_u32: {
97
+ args: [FfiType.Handle],
98
+ ret: FfiType.Void,
99
+ hasRustCallStatus: false
100
+ },
101
+ ffi_dbx_tools_core_rust_future_complete_u32: {
102
+ args: [FfiType.Handle],
103
+ ret: FfiType.UInt32,
104
+ hasRustCallStatus: true
105
+ },
106
+ ffi_dbx_tools_core_rust_future_free_u32: {
107
+ args: [FfiType.Handle],
108
+ ret: FfiType.Void,
109
+ hasRustCallStatus: false
110
+ },
111
+ ffi_dbx_tools_core_rust_future_poll_i32: {
112
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
113
+ ret: FfiType.Void,
114
+ hasRustCallStatus: false
115
+ },
116
+ ffi_dbx_tools_core_rust_future_cancel_i32: {
117
+ args: [FfiType.Handle],
118
+ ret: FfiType.Void,
119
+ hasRustCallStatus: false
120
+ },
121
+ ffi_dbx_tools_core_rust_future_complete_i32: {
122
+ args: [FfiType.Handle],
123
+ ret: FfiType.Int32,
124
+ hasRustCallStatus: true
125
+ },
126
+ ffi_dbx_tools_core_rust_future_free_i32: {
127
+ args: [FfiType.Handle],
128
+ ret: FfiType.Void,
129
+ hasRustCallStatus: false
130
+ },
131
+ ffi_dbx_tools_core_rust_future_poll_u64: {
132
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
133
+ ret: FfiType.Void,
134
+ hasRustCallStatus: false
135
+ },
136
+ ffi_dbx_tools_core_rust_future_cancel_u64: {
137
+ args: [FfiType.Handle],
138
+ ret: FfiType.Void,
139
+ hasRustCallStatus: false
140
+ },
141
+ ffi_dbx_tools_core_rust_future_complete_u64: {
142
+ args: [FfiType.Handle],
143
+ ret: FfiType.Handle,
144
+ hasRustCallStatus: true
145
+ },
146
+ ffi_dbx_tools_core_rust_future_free_u64: {
147
+ args: [FfiType.Handle],
148
+ ret: FfiType.Void,
149
+ hasRustCallStatus: false
150
+ },
151
+ ffi_dbx_tools_core_rust_future_poll_i64: {
152
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
153
+ ret: FfiType.Void,
154
+ hasRustCallStatus: false
155
+ },
156
+ ffi_dbx_tools_core_rust_future_cancel_i64: {
157
+ args: [FfiType.Handle],
158
+ ret: FfiType.Void,
159
+ hasRustCallStatus: false
160
+ },
161
+ ffi_dbx_tools_core_rust_future_complete_i64: {
162
+ args: [FfiType.Handle],
163
+ ret: FfiType.Int64,
164
+ hasRustCallStatus: true
165
+ },
166
+ ffi_dbx_tools_core_rust_future_free_i64: {
167
+ args: [FfiType.Handle],
168
+ ret: FfiType.Void,
169
+ hasRustCallStatus: false
170
+ },
171
+ ffi_dbx_tools_core_rust_future_poll_f32: {
172
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
173
+ ret: FfiType.Void,
174
+ hasRustCallStatus: false
175
+ },
176
+ ffi_dbx_tools_core_rust_future_cancel_f32: {
177
+ args: [FfiType.Handle],
178
+ ret: FfiType.Void,
179
+ hasRustCallStatus: false
180
+ },
181
+ ffi_dbx_tools_core_rust_future_complete_f32: {
182
+ args: [FfiType.Handle],
183
+ ret: FfiType.Float32,
184
+ hasRustCallStatus: true
185
+ },
186
+ ffi_dbx_tools_core_rust_future_free_f32: {
187
+ args: [FfiType.Handle],
188
+ ret: FfiType.Void,
189
+ hasRustCallStatus: false
190
+ },
191
+ ffi_dbx_tools_core_rust_future_poll_f64: {
192
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
193
+ ret: FfiType.Void,
194
+ hasRustCallStatus: false
195
+ },
196
+ ffi_dbx_tools_core_rust_future_cancel_f64: {
197
+ args: [FfiType.Handle],
198
+ ret: FfiType.Void,
199
+ hasRustCallStatus: false
200
+ },
201
+ ffi_dbx_tools_core_rust_future_complete_f64: {
202
+ args: [FfiType.Handle],
203
+ ret: FfiType.Float64,
204
+ hasRustCallStatus: true
205
+ },
206
+ ffi_dbx_tools_core_rust_future_free_f64: {
207
+ args: [FfiType.Handle],
208
+ ret: FfiType.Void,
209
+ hasRustCallStatus: false
210
+ },
211
+ ffi_dbx_tools_core_rust_future_poll_rust_buffer: {
212
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
213
+ ret: FfiType.Void,
214
+ hasRustCallStatus: false
215
+ },
216
+ ffi_dbx_tools_core_rust_future_cancel_rust_buffer: {
217
+ args: [FfiType.Handle],
218
+ ret: FfiType.Void,
219
+ hasRustCallStatus: false
220
+ },
221
+ ffi_dbx_tools_core_rust_future_complete_rust_buffer: {
222
+ args: [FfiType.Handle],
223
+ ret: FfiType.RustBuffer,
224
+ hasRustCallStatus: true
225
+ },
226
+ ffi_dbx_tools_core_rust_future_free_rust_buffer: {
227
+ args: [FfiType.Handle],
228
+ ret: FfiType.Void,
229
+ hasRustCallStatus: false
230
+ },
231
+ ffi_dbx_tools_core_rust_future_poll_void: {
232
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
233
+ ret: FfiType.Void,
234
+ hasRustCallStatus: false
235
+ },
236
+ ffi_dbx_tools_core_rust_future_cancel_void: {
237
+ args: [FfiType.Handle],
238
+ ret: FfiType.Void,
239
+ hasRustCallStatus: false
240
+ },
241
+ ffi_dbx_tools_core_rust_future_complete_void: {
242
+ args: [FfiType.Handle],
243
+ ret: FfiType.Void,
244
+ hasRustCallStatus: true
245
+ },
246
+ ffi_dbx_tools_core_rust_future_free_void: {
247
+ args: [FfiType.Handle],
248
+ ret: FfiType.Void,
249
+ hasRustCallStatus: false
250
+ },
251
+ uniffi_dbx_tools_core_fn_clone_persistentauth: {
252
+ args: [FfiType.Handle],
253
+ ret: FfiType.Handle,
254
+ hasRustCallStatus: true
255
+ },
256
+ uniffi_dbx_tools_core_fn_free_persistentauth: {
257
+ args: [FfiType.Handle],
258
+ ret: FfiType.Void,
259
+ hasRustCallStatus: true
260
+ },
261
+ uniffi_dbx_tools_core_fn_clone_providerauth: {
262
+ args: [FfiType.Handle],
263
+ ret: FfiType.Handle,
264
+ hasRustCallStatus: true
265
+ },
266
+ uniffi_dbx_tools_core_fn_free_providerauth: {
267
+ args: [FfiType.Handle],
268
+ ret: FfiType.Void,
269
+ hasRustCallStatus: true
270
+ },
271
+ uniffi_dbx_tools_core_fn_clone_storageadapter: {
272
+ args: [FfiType.Handle],
273
+ ret: FfiType.Handle,
274
+ hasRustCallStatus: true
275
+ },
276
+ uniffi_dbx_tools_core_fn_free_storageadapter: {
277
+ args: [FfiType.Handle],
278
+ ret: FfiType.Void,
279
+ hasRustCallStatus: true
280
+ },
281
+ uniffi_dbx_tools_core_fn_clone_storagehandle: {
282
+ args: [FfiType.Handle],
283
+ ret: FfiType.Handle,
284
+ hasRustCallStatus: true
285
+ },
286
+ uniffi_dbx_tools_core_fn_free_storagehandle: {
287
+ args: [FfiType.Handle],
288
+ ret: FfiType.Void,
289
+ hasRustCallStatus: true
290
+ },
291
+ uniffi_dbx_tools_core_fn_init_callback_vtable_storageadapter: {
292
+ args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceDbxToolsCoreStorageAdapter"))],
293
+ ret: FfiType.Void,
294
+ hasRustCallStatus: false
295
+ },
296
+ uniffi_dbx_tools_core_fn_func_canonical_scopes: {
297
+ args: [FfiType.RustBuffer],
298
+ ret: FfiType.RustBuffer,
299
+ hasRustCallStatus: true
300
+ },
301
+ uniffi_dbx_tools_core_fn_func_create_persistent_auth: {
302
+ args: [FfiType.RustBuffer, FfiType.RustBuffer],
303
+ ret: FfiType.Handle,
304
+ hasRustCallStatus: false
305
+ },
306
+ uniffi_dbx_tools_core_fn_func_create_persistent_auth_with_storage: {
307
+ args: [FfiType.RustBuffer, FfiType.Handle],
308
+ ret: FfiType.Handle,
309
+ hasRustCallStatus: false
310
+ },
311
+ uniffi_dbx_tools_core_fn_func_create_provider_auth: {
312
+ args: [FfiType.RustBuffer],
313
+ ret: FfiType.Handle,
314
+ hasRustCallStatus: false
315
+ },
316
+ uniffi_dbx_tools_core_fn_func_create_provider_auth_with_storage: {
317
+ args: [FfiType.RustBuffer, FfiType.Handle],
318
+ ret: FfiType.Handle,
319
+ hasRustCallStatus: false
320
+ },
321
+ uniffi_dbx_tools_core_fn_func_create_storage_handle: {
322
+ args: [FfiType.Handle],
323
+ ret: FfiType.Handle,
324
+ hasRustCallStatus: true
325
+ },
326
+ uniffi_dbx_tools_core_fn_func_credential_key: {
327
+ args: [FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer],
328
+ ret: FfiType.RustBuffer,
329
+ hasRustCallStatus: true
330
+ },
331
+ uniffi_dbx_tools_core_fn_func_databricks_cli_available: {
332
+ args: [],
333
+ ret: FfiType.Int8,
334
+ hasRustCallStatus: true
335
+ },
336
+ uniffi_dbx_tools_core_fn_func_is_databricks_app: {
337
+ args: [],
338
+ ret: FfiType.Int8,
339
+ hasRustCallStatus: true
340
+ },
341
+ uniffi_dbx_tools_core_fn_func_parse_address: {
342
+ args: [FfiType.RustBuffer],
343
+ ret: FfiType.RustBuffer,
344
+ hasRustCallStatus: true
345
+ },
346
+ uniffi_dbx_tools_core_fn_func_parse_resource_path: {
347
+ args: [FfiType.RustBuffer],
348
+ ret: FfiType.RustBuffer,
349
+ hasRustCallStatus: true
350
+ },
351
+ uniffi_dbx_tools_core_fn_method_persistentauth_authorization_header_for_url: {
352
+ args: [FfiType.Handle, FfiType.RustBuffer],
353
+ ret: FfiType.Handle,
354
+ hasRustCallStatus: false
355
+ },
356
+ uniffi_dbx_tools_core_fn_method_persistentauth_challenge: {
357
+ args: [FfiType.Handle],
358
+ ret: FfiType.Handle,
359
+ hasRustCallStatus: false
360
+ },
361
+ uniffi_dbx_tools_core_fn_method_persistentauth_force_refresh_token: {
362
+ args: [FfiType.Handle],
363
+ ret: FfiType.Handle,
364
+ hasRustCallStatus: false
365
+ },
366
+ uniffi_dbx_tools_core_fn_method_persistentauth_logout: {
367
+ args: [FfiType.Handle],
368
+ ret: FfiType.Handle,
369
+ hasRustCallStatus: false
370
+ },
371
+ uniffi_dbx_tools_core_fn_method_persistentauth_refresh_rejected_token: {
372
+ args: [FfiType.Handle, FfiType.RustBuffer],
373
+ ret: FfiType.Handle,
374
+ hasRustCallStatus: false
375
+ },
376
+ uniffi_dbx_tools_core_fn_method_persistentauth_status: {
377
+ args: [FfiType.Handle],
378
+ ret: FfiType.RustBuffer,
379
+ hasRustCallStatus: true
380
+ },
381
+ uniffi_dbx_tools_core_fn_method_persistentauth_token: {
382
+ args: [FfiType.Handle, FfiType.RustBuffer],
383
+ ret: FfiType.Handle,
384
+ hasRustCallStatus: false
385
+ },
386
+ uniffi_dbx_tools_core_fn_method_providerauth_force_refresh_token: {
387
+ args: [FfiType.Handle],
388
+ ret: FfiType.Handle,
389
+ hasRustCallStatus: false
390
+ },
391
+ uniffi_dbx_tools_core_fn_method_providerauth_logout: {
392
+ args: [FfiType.Handle],
393
+ ret: FfiType.Handle,
394
+ hasRustCallStatus: false
395
+ },
396
+ uniffi_dbx_tools_core_fn_method_providerauth_refresh_rejected_token: {
397
+ args: [FfiType.Handle, FfiType.RustBuffer],
398
+ ret: FfiType.Handle,
399
+ hasRustCallStatus: false
400
+ },
401
+ uniffi_dbx_tools_core_fn_method_providerauth_token: {
402
+ args: [FfiType.Handle, FfiType.RustBuffer],
403
+ ret: FfiType.Handle,
404
+ hasRustCallStatus: false
405
+ },
406
+ uniffi_dbx_tools_core_fn_method_storageadapter_load: {
407
+ args: [FfiType.Handle, FfiType.RustBuffer],
408
+ ret: FfiType.Handle,
409
+ hasRustCallStatus: false
410
+ },
411
+ uniffi_dbx_tools_core_fn_method_storageadapter_prepare_write: {
412
+ args: [FfiType.Handle],
413
+ ret: FfiType.Handle,
414
+ hasRustCallStatus: false
415
+ },
416
+ uniffi_dbx_tools_core_fn_method_storageadapter_save: {
417
+ args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],
418
+ ret: FfiType.Handle,
419
+ hasRustCallStatus: false
420
+ },
421
+ uniffi_dbx_tools_core_fn_method_storageadapter_remove: {
422
+ args: [FfiType.Handle, FfiType.RustBuffer],
423
+ ret: FfiType.Handle,
424
+ hasRustCallStatus: false
425
+ },
426
+ uniffi_dbx_tools_core_fn_method_storageadapter_acquire_lock: {
427
+ args: [FfiType.Handle, FfiType.RustBuffer, FfiType.UInt64],
428
+ ret: FfiType.Handle,
429
+ hasRustCallStatus: false
430
+ },
431
+ uniffi_dbx_tools_core_fn_method_storageadapter_release_lock: {
432
+ args: [FfiType.Handle, FfiType.RustBuffer],
433
+ ret: FfiType.Handle,
434
+ hasRustCallStatus: false
435
+ },
436
+ uniffi_dbx_tools_core_fn_method_storageadapter_name: {
437
+ args: [FfiType.Handle],
438
+ ret: FfiType.RustBuffer,
439
+ hasRustCallStatus: true
440
+ },
441
+ ffi_dbx_tools_core_uniffi_contract_version: {
442
+ args: [],
443
+ ret: FfiType.UInt32,
444
+ hasRustCallStatus: false
445
+ },
446
+ uniffi_dbx_tools_core_checksum_func_canonical_scopes: {
447
+ args: [],
448
+ ret: FfiType.UInt16,
449
+ hasRustCallStatus: false
450
+ },
451
+ uniffi_dbx_tools_core_checksum_func_create_persistent_auth: {
452
+ args: [],
453
+ ret: FfiType.UInt16,
454
+ hasRustCallStatus: false
455
+ },
456
+ uniffi_dbx_tools_core_checksum_func_create_persistent_auth_with_storage: {
457
+ args: [],
458
+ ret: FfiType.UInt16,
459
+ hasRustCallStatus: false
460
+ },
461
+ uniffi_dbx_tools_core_checksum_func_create_provider_auth: {
462
+ args: [],
463
+ ret: FfiType.UInt16,
464
+ hasRustCallStatus: false
465
+ },
466
+ uniffi_dbx_tools_core_checksum_func_create_provider_auth_with_storage: {
467
+ args: [],
468
+ ret: FfiType.UInt16,
469
+ hasRustCallStatus: false
470
+ },
471
+ uniffi_dbx_tools_core_checksum_func_create_storage_handle: {
472
+ args: [],
473
+ ret: FfiType.UInt16,
474
+ hasRustCallStatus: false
475
+ },
476
+ uniffi_dbx_tools_core_checksum_func_credential_key: {
477
+ args: [],
478
+ ret: FfiType.UInt16,
479
+ hasRustCallStatus: false
480
+ },
481
+ uniffi_dbx_tools_core_checksum_func_databricks_cli_available: {
482
+ args: [],
483
+ ret: FfiType.UInt16,
484
+ hasRustCallStatus: false
485
+ },
486
+ uniffi_dbx_tools_core_checksum_func_is_databricks_app: {
487
+ args: [],
488
+ ret: FfiType.UInt16,
489
+ hasRustCallStatus: false
490
+ },
491
+ uniffi_dbx_tools_core_checksum_func_parse_address: {
492
+ args: [],
493
+ ret: FfiType.UInt16,
494
+ hasRustCallStatus: false
495
+ },
496
+ uniffi_dbx_tools_core_checksum_func_parse_resource_path: {
497
+ args: [],
498
+ ret: FfiType.UInt16,
499
+ hasRustCallStatus: false
500
+ },
501
+ uniffi_dbx_tools_core_checksum_method_persistentauth_authorization_header_for_url: {
502
+ args: [],
503
+ ret: FfiType.UInt16,
504
+ hasRustCallStatus: false
505
+ },
506
+ uniffi_dbx_tools_core_checksum_method_persistentauth_challenge: {
507
+ args: [],
508
+ ret: FfiType.UInt16,
509
+ hasRustCallStatus: false
510
+ },
511
+ uniffi_dbx_tools_core_checksum_method_persistentauth_force_refresh_token: {
512
+ args: [],
513
+ ret: FfiType.UInt16,
514
+ hasRustCallStatus: false
515
+ },
516
+ uniffi_dbx_tools_core_checksum_method_persistentauth_logout: {
517
+ args: [],
518
+ ret: FfiType.UInt16,
519
+ hasRustCallStatus: false
520
+ },
521
+ uniffi_dbx_tools_core_checksum_method_persistentauth_refresh_rejected_token: {
522
+ args: [],
523
+ ret: FfiType.UInt16,
524
+ hasRustCallStatus: false
525
+ },
526
+ uniffi_dbx_tools_core_checksum_method_persistentauth_status: {
527
+ args: [],
528
+ ret: FfiType.UInt16,
529
+ hasRustCallStatus: false
530
+ },
531
+ uniffi_dbx_tools_core_checksum_method_persistentauth_token: {
532
+ args: [],
533
+ ret: FfiType.UInt16,
534
+ hasRustCallStatus: false
535
+ },
536
+ uniffi_dbx_tools_core_checksum_method_providerauth_force_refresh_token: {
537
+ args: [],
538
+ ret: FfiType.UInt16,
539
+ hasRustCallStatus: false
540
+ },
541
+ uniffi_dbx_tools_core_checksum_method_providerauth_logout: {
542
+ args: [],
543
+ ret: FfiType.UInt16,
544
+ hasRustCallStatus: false
545
+ },
546
+ uniffi_dbx_tools_core_checksum_method_providerauth_refresh_rejected_token: {
547
+ args: [],
548
+ ret: FfiType.UInt16,
549
+ hasRustCallStatus: false
550
+ },
551
+ uniffi_dbx_tools_core_checksum_method_providerauth_token: {
552
+ args: [],
553
+ ret: FfiType.UInt16,
554
+ hasRustCallStatus: false
555
+ },
556
+ uniffi_dbx_tools_core_checksum_method_storageadapter_load: {
557
+ args: [],
558
+ ret: FfiType.UInt16,
559
+ hasRustCallStatus: false
560
+ },
561
+ uniffi_dbx_tools_core_checksum_method_storageadapter_prepare_write: {
562
+ args: [],
563
+ ret: FfiType.UInt16,
564
+ hasRustCallStatus: false
565
+ },
566
+ uniffi_dbx_tools_core_checksum_method_storageadapter_save: {
567
+ args: [],
568
+ ret: FfiType.UInt16,
569
+ hasRustCallStatus: false
570
+ },
571
+ uniffi_dbx_tools_core_checksum_method_storageadapter_remove: {
572
+ args: [],
573
+ ret: FfiType.UInt16,
574
+ hasRustCallStatus: false
575
+ },
576
+ uniffi_dbx_tools_core_checksum_method_storageadapter_acquire_lock: {
577
+ args: [],
578
+ ret: FfiType.UInt16,
579
+ hasRustCallStatus: false
580
+ },
581
+ uniffi_dbx_tools_core_checksum_method_storageadapter_release_lock: {
582
+ args: [],
583
+ ret: FfiType.UInt16,
584
+ hasRustCallStatus: false
585
+ },
586
+ uniffi_dbx_tools_core_checksum_method_storageadapter_name: {
587
+ args: [],
588
+ ret: FfiType.UInt16,
589
+ hasRustCallStatus: false
590
+ }
591
+ },
592
+ callbacks: {
593
+ RustFutureContinuationCallback: {
594
+ args: [FfiType.Handle, FfiType.Int8],
595
+ ret: FfiType.Void,
596
+ hasRustCallStatus: false
597
+ },
598
+ ForeignFutureDroppedCallback: {
599
+ args: [FfiType.Handle],
600
+ ret: FfiType.Void,
601
+ hasRustCallStatus: false
602
+ },
603
+ ForeignFutureCompleterust_buffer: {
604
+ args: [FfiType.Handle, FfiType.Struct("ForeignFutureResultRustBuffer")],
605
+ ret: FfiType.Void,
606
+ hasRustCallStatus: false
607
+ },
608
+ CallbackInterfaceDbxToolsCoreStorageAdapterMethod0: {
609
+ args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
610
+ ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
611
+ hasRustCallStatus: false,
612
+ outReturn: true
613
+ },
614
+ ForeignFutureCompletevoid: {
615
+ args: [FfiType.Handle, FfiType.Struct("ForeignFutureResultVoid")],
616
+ ret: FfiType.Void,
617
+ hasRustCallStatus: false
618
+ },
619
+ CallbackInterfaceDbxToolsCoreStorageAdapterMethod1: {
620
+ args: [FfiType.Handle, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
621
+ ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
622
+ hasRustCallStatus: false,
623
+ outReturn: true
624
+ },
625
+ CallbackInterfaceDbxToolsCoreStorageAdapterMethod2: {
626
+ args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
627
+ ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
628
+ hasRustCallStatus: false,
629
+ outReturn: true
630
+ },
631
+ CallbackInterfaceDbxToolsCoreStorageAdapterMethod3: {
632
+ args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
633
+ ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
634
+ hasRustCallStatus: false,
635
+ outReturn: true
636
+ },
637
+ CallbackInterfaceDbxToolsCoreStorageAdapterMethod4: {
638
+ args: [FfiType.Handle, FfiType.RustBuffer, FfiType.UInt64, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
639
+ ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
640
+ hasRustCallStatus: false,
641
+ outReturn: true
642
+ },
643
+ CallbackInterfaceDbxToolsCoreStorageAdapterMethod5: {
644
+ args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
645
+ ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
646
+ hasRustCallStatus: false,
647
+ outReturn: true
648
+ },
649
+ CallbackInterfaceDbxToolsCoreStorageAdapterMethod6: {
650
+ args: [FfiType.Handle],
651
+ ret: FfiType.RustBuffer,
652
+ hasRustCallStatus: true,
653
+ outReturn: true
654
+ },
655
+ CallbackInterfaceCloneDbxToolsCore_StorageAdapter: {
656
+ args: [FfiType.Handle],
657
+ ret: FfiType.Handle,
658
+ hasRustCallStatus: false
659
+ },
660
+ CallbackInterfaceFreeDbxToolsCore_StorageAdapter: {
661
+ args: [FfiType.Handle],
662
+ ret: FfiType.Void,
663
+ hasRustCallStatus: false
664
+ }
665
+ },
666
+ structs: {
667
+ ForeignFutureDroppedCallbackStruct: [
668
+ { name: "handle", type: FfiType.Handle },
669
+ { name: "free", type: FfiType.Callback("ForeignFutureDroppedCallback") }
670
+ ],
671
+ ForeignFutureResultRustBuffer: [
672
+ { name: "return_value", type: FfiType.RustBuffer },
673
+ { name: "call_status", type: FfiType.RustCallStatus }
674
+ ],
675
+ ForeignFutureResultVoid: [
676
+ { name: "call_status", type: FfiType.RustCallStatus }
677
+ ],
678
+ VTableCallbackInterfaceDbxToolsCoreStorageAdapter: [
679
+ { name: "uniffi_free", type: FfiType.Callback("CallbackInterfaceFreeDbxToolsCore_StorageAdapter") },
680
+ { name: "uniffi_clone", type: FfiType.Callback("CallbackInterfaceCloneDbxToolsCore_StorageAdapter") },
681
+ { name: "load", type: FfiType.Callback("CallbackInterfaceDbxToolsCoreStorageAdapterMethod0") },
682
+ { name: "prepare_write", type: FfiType.Callback("CallbackInterfaceDbxToolsCoreStorageAdapterMethod1") },
683
+ { name: "save", type: FfiType.Callback("CallbackInterfaceDbxToolsCoreStorageAdapterMethod2") },
684
+ { name: "remove", type: FfiType.Callback("CallbackInterfaceDbxToolsCoreStorageAdapterMethod3") },
685
+ { name: "acquire_lock", type: FfiType.Callback("CallbackInterfaceDbxToolsCoreStorageAdapterMethod4") },
686
+ { name: "release_lock", type: FfiType.Callback("CallbackInterfaceDbxToolsCoreStorageAdapterMethod5") },
687
+ { name: "name", type: FfiType.Callback("CallbackInterfaceDbxToolsCoreStorageAdapterMethod6") }
688
+ ]
689
+ }
690
+ };
691
+ var _nativeModule;
692
+ var getter = () => {
693
+ if (!_nativeModule) {
694
+ const libPath = resolveLibPath({
695
+ crateName: "dbx_tools_core",
696
+ callerUrl: import.meta.url,
697
+ npmPackageBase: "@dbx-tools/core-rs-",
698
+ tripleStyle: "node"
699
+ });
700
+ const mod_ = UniffiNativeModule.open(libPath);
701
+ _nativeModule = mod_.register(DEFINITIONS);
702
+ }
703
+ return _nativeModule;
704
+ };
705
+ var _bindings_ffi_default = getter;
706
+
707
+ // src/_bindings.ts
708
+ import {
709
+ AbstractFfiConverterByteArray,
710
+ FfiConverterArray,
711
+ FfiConverterBool,
712
+ FfiConverterInt64,
713
+ FfiConverterMap,
714
+ FfiConverterObject,
715
+ FfiConverterObjectWithCallbacks,
716
+ FfiConverterOptional,
717
+ FfiConverterUInt16,
718
+ FfiConverterUInt64,
719
+ UniffiAbstractObject,
720
+ UniffiError,
721
+ UniffiInternalError,
722
+ UniffiResult,
723
+ UniffiRustCaller,
724
+ destructorGuardSymbol,
725
+ pointerLiteralSymbol,
726
+ uniffiCreateFfiConverterString,
727
+ uniffiCreateRecord,
728
+ uniffiRustCallAsync,
729
+ uniffiTraitInterfaceCall,
730
+ uniffiTraitInterfaceCallAsyncWithError,
731
+ uniffiTypeNameSymbol
732
+ } from "@ubjs/core";
733
+ var uniffiCaller = new UniffiRustCaller(() => ({ code: 0 }));
734
+ var uniffiIsDebug = typeof process !== "object" || process?.env?.NODE_ENV !== "production" || false;
735
+ function canonicalScopes(scopes) {
736
+ const __rb = uniffiCaller.rustCall((callStatus) => {
737
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_func_canonical_scopes(FfiConverterSequenceString.lower(scopes, _bindings_ffi_default().rustbuffer_alloc), callStatus);
738
+ }, FfiConverterString.lift.bind(FfiConverterString));
739
+ try {
740
+ return FfiConverterSequenceString.lift(__rb);
741
+ } finally {
742
+ _bindings_ffi_default().rustbuffer_free(__rb);
743
+ }
744
+ }
745
+ async function createPersistentAuth(options, storage = undefined, asyncOpts_) {
746
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
747
+ try {
748
+ return await uniffiRustCallAsync(uniffiCaller, () => {
749
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_func_create_persistent_auth(FfiConverterTypeDatabricksAuthOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc), FfiConverterOptionalTypeStorage.lower(storage, _bindings_ffi_default().rustbuffer_alloc));
750
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_u64, FfiConverterTypePersistentAuth.lift.bind(FfiConverterTypePersistentAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
751
+ } catch (__error) {
752
+ if (uniffiIsDebug && __error instanceof Error) {
753
+ __error.stack = __stack;
754
+ }
755
+ throw __error;
756
+ }
757
+ }
758
+ async function createPersistentAuthWithStorage(options, storage, asyncOpts_) {
759
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
760
+ try {
761
+ return await uniffiRustCallAsync(uniffiCaller, () => {
762
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_func_create_persistent_auth_with_storage(FfiConverterTypeDatabricksAuthOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc), FfiConverterTypeStorageHandle.lower(storage, _bindings_ffi_default().rustbuffer_alloc));
763
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_u64, FfiConverterTypePersistentAuth.lift.bind(FfiConverterTypePersistentAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
764
+ } catch (__error) {
765
+ if (uniffiIsDebug && __error instanceof Error) {
766
+ __error.stack = __stack;
767
+ }
768
+ throw __error;
769
+ }
770
+ }
771
+ async function createProviderAuth(options, asyncOpts_) {
772
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
773
+ try {
774
+ return await uniffiRustCallAsync(uniffiCaller, () => {
775
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_func_create_provider_auth(FfiConverterTypeProviderOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc));
776
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_u64, FfiConverterTypeProviderAuth.lift.bind(FfiConverterTypeProviderAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
777
+ } catch (__error) {
778
+ if (uniffiIsDebug && __error instanceof Error) {
779
+ __error.stack = __stack;
780
+ }
781
+ throw __error;
782
+ }
783
+ }
784
+ async function createProviderAuthWithStorage(options, storage, asyncOpts_) {
785
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
786
+ try {
787
+ return await uniffiRustCallAsync(uniffiCaller, () => {
788
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_func_create_provider_auth_with_storage(FfiConverterTypeProviderOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc), FfiConverterTypeStorageHandle.lower(storage, _bindings_ffi_default().rustbuffer_alloc));
789
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_u64, FfiConverterTypeProviderAuth.lift.bind(FfiConverterTypeProviderAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
790
+ } catch (__error) {
791
+ if (uniffiIsDebug && __error instanceof Error) {
792
+ __error.stack = __stack;
793
+ }
794
+ throw __error;
795
+ }
796
+ }
797
+ function createStorageHandle(storage) {
798
+ return FfiConverterTypeStorageHandle.lift(uniffiCaller.rustCall((callStatus) => {
799
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_func_create_storage_handle(FfiConverterTypeStorageAdapter.lower(storage, _bindings_ffi_default().rustbuffer_alloc), callStatus);
800
+ }, FfiConverterString.lift.bind(FfiConverterString)));
801
+ }
802
+ function credentialKey(provider, profile, scopes) {
803
+ const __rb = uniffiCaller.rustCall((callStatus) => {
804
+ return _bindings_ffi_default().uniffi_dbx_tools_core_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);
805
+ }, FfiConverterString.lift.bind(FfiConverterString));
806
+ try {
807
+ return FfiConverterString.lift(__rb);
808
+ } finally {
809
+ _bindings_ffi_default().rustbuffer_free(__rb);
810
+ }
811
+ }
812
+ function databricksCliAvailable() {
813
+ return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
814
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_func_databricks_cli_available(callStatus);
815
+ }, FfiConverterString.lift.bind(FfiConverterString)));
816
+ }
817
+ function isDatabricksApp() {
818
+ return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
819
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_func_is_databricks_app(callStatus);
820
+ }, FfiConverterString.lift.bind(FfiConverterString)));
821
+ }
822
+ function parseAddress(input) {
823
+ const __rb = uniffiCaller.rustCall((callStatus) => {
824
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_func_parse_address(FfiConverterOptionalString.lower(input, _bindings_ffi_default().rustbuffer_alloc), callStatus);
825
+ }, FfiConverterString.lift.bind(FfiConverterString));
826
+ try {
827
+ return FfiConverterTypeParsedAddress.lift(__rb);
828
+ } finally {
829
+ _bindings_ffi_default().rustbuffer_free(__rb);
830
+ }
831
+ }
832
+ function parseResourcePath(input) {
833
+ const __rb = uniffiCaller.rustCall((callStatus) => {
834
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_func_parse_resource_path(FfiConverterOptionalString.lower(input, _bindings_ffi_default().rustbuffer_alloc), callStatus);
835
+ }, FfiConverterString.lift.bind(FfiConverterString));
836
+ try {
837
+ return FfiConverterTypeParsedAddress.lift(__rb);
838
+ } finally {
839
+ _bindings_ffi_default().rustbuffer_free(__rb);
840
+ }
841
+ }
842
+ var stringConverter = (() => {
843
+ const encoder = new TextEncoder;
844
+ const decoder = new TextDecoder;
845
+ return {
846
+ stringToBytes: (s) => encoder.encode(s),
847
+ bytesToString: (ab) => decoder.decode(ab),
848
+ stringByteLength: (s) => encoder.encode(s).byteLength,
849
+ writeStringIntoBuffer: (s, buf, offset) => {
850
+ const view = new Uint8Array(buf.arrayBuffer, offset, buf.arrayBuffer.byteLength - offset);
851
+ return encoder.encodeInto(s, view).written;
852
+ },
853
+ readStringFromBuffer: (buf, offset, length) => decoder.decode(new Uint8Array(buf.arrayBuffer, offset, length))
854
+ };
855
+ })();
856
+ var FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
857
+ var AccessToken = (() => {
858
+ const defaults = () => ({});
859
+ const create = (() => {
860
+ return uniffiCreateRecord(defaults);
861
+ })();
862
+ return Object.freeze({
863
+ create,
864
+ new: create,
865
+ defaults: () => Object.freeze(defaults())
866
+ });
867
+ })();
868
+ var FfiConverterTypeAccessToken = (() => {
869
+
870
+ class FFIConverter extends AbstractFfiConverterByteArray {
871
+ readFromCursor(c) {
872
+ return {
873
+ accessToken: FfiConverterString.readFromCursor(c),
874
+ tokenType: FfiConverterString.readFromCursor(c),
875
+ expiry: FfiConverterOptionalString.readFromCursor(c),
876
+ scopes: FfiConverterSequenceString.readFromCursor(c)
877
+ };
878
+ }
879
+ writeIntoCursor(value, c) {
880
+ FfiConverterString.writeIntoCursor(value.accessToken, c);
881
+ FfiConverterString.writeIntoCursor(value.tokenType, c);
882
+ FfiConverterOptionalString.writeIntoCursor(value.expiry, c);
883
+ FfiConverterSequenceString.writeIntoCursor(value.scopes, c);
884
+ }
885
+ allocationSize(value) {
886
+ return FfiConverterString.allocationSize(value.accessToken) + FfiConverterString.allocationSize(value.tokenType) + FfiConverterOptionalString.allocationSize(value.expiry) + FfiConverterSequenceString.allocationSize(value.scopes);
887
+ }
888
+ }
889
+ return new FFIConverter;
890
+ })();
891
+ var AuthOptions = (() => {
892
+ const defaults = () => ({
893
+ refreshBufferSeconds: BigInt("300"),
894
+ lockTimeoutSeconds: BigInt("30"),
895
+ loginTimeoutSeconds: BigInt("3600"),
896
+ callbackImageSrc: undefined
897
+ });
898
+ const create = (() => {
899
+ return uniffiCreateRecord(defaults);
900
+ })();
901
+ return Object.freeze({
902
+ create,
903
+ new: create,
904
+ defaults: () => Object.freeze(defaults())
905
+ });
906
+ })();
907
+ var FfiConverterTypeAuthOptions = (() => {
908
+
909
+ class FFIConverter extends AbstractFfiConverterByteArray {
910
+ readFromCursor(c) {
911
+ return {
912
+ refreshBufferSeconds: FfiConverterInt64.readFromCursor(c),
913
+ lockTimeoutSeconds: FfiConverterUInt64.readFromCursor(c),
914
+ loginTimeoutSeconds: FfiConverterUInt64.readFromCursor(c),
915
+ callbackImageSrc: FfiConverterOptionalString.readFromCursor(c)
916
+ };
917
+ }
918
+ writeIntoCursor(value, c) {
919
+ FfiConverterInt64.writeIntoCursor(value.refreshBufferSeconds, c);
920
+ FfiConverterUInt64.writeIntoCursor(value.lockTimeoutSeconds, c);
921
+ FfiConverterUInt64.writeIntoCursor(value.loginTimeoutSeconds, c);
922
+ FfiConverterOptionalString.writeIntoCursor(value.callbackImageSrc, c);
923
+ }
924
+ allocationSize(value) {
925
+ return FfiConverterInt64.allocationSize(value.refreshBufferSeconds) + FfiConverterUInt64.allocationSize(value.lockTimeoutSeconds) + FfiConverterUInt64.allocationSize(value.loginTimeoutSeconds) + FfiConverterOptionalString.allocationSize(value.callbackImageSrc);
926
+ }
927
+ }
928
+ return new FFIConverter;
929
+ })();
930
+ var DatabricksAuthOptions = (() => {
931
+ const defaults = () => ({
932
+ profile: undefined,
933
+ host: undefined,
934
+ accountId: undefined,
935
+ workspaceId: undefined,
936
+ configFile: undefined,
937
+ clientId: undefined,
938
+ groupId: undefined,
939
+ authType: undefined,
940
+ scopes: undefined,
941
+ target: undefined,
942
+ cacheDir: undefined,
943
+ auth: undefined,
944
+ requestHeaders: undefined,
945
+ accessTokenHeader: undefined,
946
+ preferUserToMachine: true
947
+ });
948
+ const create = (() => {
949
+ return uniffiCreateRecord(defaults);
950
+ })();
951
+ return Object.freeze({
952
+ create,
953
+ new: create,
954
+ defaults: () => Object.freeze(defaults())
955
+ });
956
+ })();
957
+ var FfiConverterTypeDatabricksAuthOptions = (() => {
958
+
959
+ class FFIConverter extends AbstractFfiConverterByteArray {
960
+ readFromCursor(c) {
961
+ return {
962
+ profile: FfiConverterOptionalString.readFromCursor(c),
963
+ host: FfiConverterOptionalString.readFromCursor(c),
964
+ accountId: FfiConverterOptionalString.readFromCursor(c),
965
+ workspaceId: FfiConverterOptionalString.readFromCursor(c),
966
+ configFile: FfiConverterOptionalString.readFromCursor(c),
967
+ clientId: FfiConverterOptionalString.readFromCursor(c),
968
+ groupId: FfiConverterOptionalString.readFromCursor(c),
969
+ authType: FfiConverterOptionalString.readFromCursor(c),
970
+ scopes: FfiConverterOptionalSequenceString.readFromCursor(c),
971
+ target: FfiConverterOptionalString.readFromCursor(c),
972
+ cacheDir: FfiConverterOptionalString.readFromCursor(c),
973
+ auth: FfiConverterOptionalTypeAuthOptions.readFromCursor(c),
974
+ requestHeaders: FfiConverterOptionalMapStringString.readFromCursor(c),
975
+ accessTokenHeader: FfiConverterOptionalString.readFromCursor(c),
976
+ preferUserToMachine: FfiConverterBool.readFromCursor(c)
977
+ };
978
+ }
979
+ writeIntoCursor(value, c) {
980
+ FfiConverterOptionalString.writeIntoCursor(value.profile, c);
981
+ FfiConverterOptionalString.writeIntoCursor(value.host, c);
982
+ FfiConverterOptionalString.writeIntoCursor(value.accountId, c);
983
+ FfiConverterOptionalString.writeIntoCursor(value.workspaceId, c);
984
+ FfiConverterOptionalString.writeIntoCursor(value.configFile, c);
985
+ FfiConverterOptionalString.writeIntoCursor(value.clientId, c);
986
+ FfiConverterOptionalString.writeIntoCursor(value.groupId, c);
987
+ FfiConverterOptionalString.writeIntoCursor(value.authType, c);
988
+ FfiConverterOptionalSequenceString.writeIntoCursor(value.scopes, c);
989
+ FfiConverterOptionalString.writeIntoCursor(value.target, c);
990
+ FfiConverterOptionalString.writeIntoCursor(value.cacheDir, c);
991
+ FfiConverterOptionalTypeAuthOptions.writeIntoCursor(value.auth, c);
992
+ FfiConverterOptionalMapStringString.writeIntoCursor(value.requestHeaders, c);
993
+ FfiConverterOptionalString.writeIntoCursor(value.accessTokenHeader, c);
994
+ FfiConverterBool.writeIntoCursor(value.preferUserToMachine, c);
995
+ }
996
+ allocationSize(value) {
997
+ 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) + FfiConverterOptionalMapStringString.allocationSize(value.requestHeaders) + FfiConverterOptionalString.allocationSize(value.accessTokenHeader) + FfiConverterBool.allocationSize(value.preferUserToMachine);
998
+ }
999
+ }
1000
+ return new FFIConverter;
1001
+ })();
1002
+ var Storage;
1003
+ ((Storage2) => {
1004
+ Storage2[Storage2["Auto"] = 0] = "Auto";
1005
+ Storage2[Storage2["Memory"] = 1] = "Memory";
1006
+ Storage2[Storage2["File"] = 2] = "File";
1007
+ })(Storage ||= {});
1008
+ var FfiConverterTypeStorage = (() => {
1009
+
1010
+ class FFIConverter extends AbstractFfiConverterByteArray {
1011
+ readFromCursor(c) {
1012
+ switch (c.readI32()) {
1013
+ case 1:
1014
+ return 0 /* Auto */;
1015
+ case 2:
1016
+ return 1 /* Memory */;
1017
+ case 3:
1018
+ return 2 /* File */;
1019
+ default:
1020
+ throw new UniffiInternalError.UnexpectedEnumCase;
1021
+ }
1022
+ }
1023
+ writeIntoCursor(value, c) {
1024
+ switch (value) {
1025
+ case 0 /* Auto */:
1026
+ return c.writeI32(1);
1027
+ case 1 /* Memory */:
1028
+ return c.writeI32(2);
1029
+ case 2 /* File */:
1030
+ return c.writeI32(3);
1031
+ }
1032
+ }
1033
+ allocationSize(value) {
1034
+ return 4;
1035
+ }
1036
+ }
1037
+ return new FFIConverter;
1038
+ })();
1039
+ var DatabricksAuthStatus = (() => {
1040
+ const defaults = () => ({});
1041
+ const create = (() => {
1042
+ return uniffiCreateRecord(defaults);
1043
+ })();
1044
+ return Object.freeze({
1045
+ create,
1046
+ new: create,
1047
+ defaults: () => Object.freeze(defaults())
1048
+ });
1049
+ })();
1050
+ var FfiConverterTypeDatabricksAuthStatus = (() => {
1051
+
1052
+ class FFIConverter extends AbstractFfiConverterByteArray {
1053
+ readFromCursor(c) {
1054
+ return {
1055
+ profile: FfiConverterString.readFromCursor(c),
1056
+ host: FfiConverterString.readFromCursor(c),
1057
+ storage: FfiConverterTypeStorage.readFromCursor(c)
1058
+ };
1059
+ }
1060
+ writeIntoCursor(value, c) {
1061
+ FfiConverterString.writeIntoCursor(value.profile, c);
1062
+ FfiConverterString.writeIntoCursor(value.host, c);
1063
+ FfiConverterTypeStorage.writeIntoCursor(value.storage, c);
1064
+ }
1065
+ allocationSize(value) {
1066
+ return FfiConverterString.allocationSize(value.profile) + FfiConverterString.allocationSize(value.host) + FfiConverterTypeStorage.allocationSize(value.storage);
1067
+ }
1068
+ }
1069
+ return new FFIConverter;
1070
+ })();
1071
+ var SslMode;
1072
+ ((SslMode2) => {
1073
+ SslMode2[SslMode2["Require"] = 0] = "Require";
1074
+ SslMode2[SslMode2["Disable"] = 1] = "Disable";
1075
+ SslMode2[SslMode2["Prefer"] = 2] = "Prefer";
1076
+ })(SslMode ||= {});
1077
+ var FfiConverterTypeSslMode = (() => {
1078
+
1079
+ class FFIConverter extends AbstractFfiConverterByteArray {
1080
+ readFromCursor(c) {
1081
+ switch (c.readI32()) {
1082
+ case 1:
1083
+ return 0 /* Require */;
1084
+ case 2:
1085
+ return 1 /* Disable */;
1086
+ case 3:
1087
+ return 2 /* Prefer */;
1088
+ default:
1089
+ throw new UniffiInternalError.UnexpectedEnumCase;
1090
+ }
1091
+ }
1092
+ writeIntoCursor(value, c) {
1093
+ switch (value) {
1094
+ case 0 /* Require */:
1095
+ return c.writeI32(1);
1096
+ case 1 /* Disable */:
1097
+ return c.writeI32(2);
1098
+ case 2 /* Prefer */:
1099
+ return c.writeI32(3);
1100
+ }
1101
+ }
1102
+ allocationSize(value) {
1103
+ return 4;
1104
+ }
1105
+ }
1106
+ return new FFIConverter;
1107
+ })();
1108
+ var ParsedAddress = (() => {
1109
+ const defaults = () => ({});
1110
+ const create = (() => {
1111
+ return uniffiCreateRecord(defaults);
1112
+ })();
1113
+ return Object.freeze({
1114
+ create,
1115
+ new: create,
1116
+ defaults: () => Object.freeze(defaults())
1117
+ });
1118
+ })();
1119
+ var FfiConverterTypeParsedAddress = (() => {
1120
+
1121
+ class FFIConverter extends AbstractFfiConverterByteArray {
1122
+ readFromCursor(c) {
1123
+ return {
1124
+ project: FfiConverterOptionalString.readFromCursor(c),
1125
+ branch: FfiConverterOptionalString.readFromCursor(c),
1126
+ endpoint: FfiConverterOptionalString.readFromCursor(c),
1127
+ endpointId: FfiConverterOptionalString.readFromCursor(c),
1128
+ database: FfiConverterOptionalString.readFromCursor(c),
1129
+ databaseResourceId: FfiConverterOptionalString.readFromCursor(c),
1130
+ user: FfiConverterOptionalString.readFromCursor(c),
1131
+ host: FfiConverterOptionalString.readFromCursor(c),
1132
+ port: FfiConverterOptionalUInt16.readFromCursor(c),
1133
+ sslMode: FfiConverterOptionalTypeSslMode.readFromCursor(c)
1134
+ };
1135
+ }
1136
+ writeIntoCursor(value, c) {
1137
+ FfiConverterOptionalString.writeIntoCursor(value.project, c);
1138
+ FfiConverterOptionalString.writeIntoCursor(value.branch, c);
1139
+ FfiConverterOptionalString.writeIntoCursor(value.endpoint, c);
1140
+ FfiConverterOptionalString.writeIntoCursor(value.endpointId, c);
1141
+ FfiConverterOptionalString.writeIntoCursor(value.database, c);
1142
+ FfiConverterOptionalString.writeIntoCursor(value.databaseResourceId, c);
1143
+ FfiConverterOptionalString.writeIntoCursor(value.user, c);
1144
+ FfiConverterOptionalString.writeIntoCursor(value.host, c);
1145
+ FfiConverterOptionalUInt16.writeIntoCursor(value.port, c);
1146
+ FfiConverterOptionalTypeSslMode.writeIntoCursor(value.sslMode, c);
1147
+ }
1148
+ allocationSize(value) {
1149
+ return FfiConverterOptionalString.allocationSize(value.project) + FfiConverterOptionalString.allocationSize(value.branch) + FfiConverterOptionalString.allocationSize(value.endpoint) + FfiConverterOptionalString.allocationSize(value.endpointId) + FfiConverterOptionalString.allocationSize(value.database) + FfiConverterOptionalString.allocationSize(value.databaseResourceId) + FfiConverterOptionalString.allocationSize(value.user) + FfiConverterOptionalString.allocationSize(value.host) + FfiConverterOptionalUInt16.allocationSize(value.port) + FfiConverterOptionalTypeSslMode.allocationSize(value.sslMode);
1150
+ }
1151
+ }
1152
+ return new FFIConverter;
1153
+ })();
1154
+ var OAuthGrant;
1155
+ ((OAuthGrant2) => {
1156
+ OAuthGrant2[OAuthGrant2["AuthorizationCode"] = 0] = "AuthorizationCode";
1157
+ OAuthGrant2[OAuthGrant2["ClientCredentials"] = 1] = "ClientCredentials";
1158
+ })(OAuthGrant ||= {});
1159
+ var FfiConverterTypeOAuthGrant = (() => {
1160
+
1161
+ class FFIConverter extends AbstractFfiConverterByteArray {
1162
+ readFromCursor(c) {
1163
+ switch (c.readI32()) {
1164
+ case 1:
1165
+ return 0 /* AuthorizationCode */;
1166
+ case 2:
1167
+ return 1 /* ClientCredentials */;
1168
+ default:
1169
+ throw new UniffiInternalError.UnexpectedEnumCase;
1170
+ }
1171
+ }
1172
+ writeIntoCursor(value, c) {
1173
+ switch (value) {
1174
+ case 0 /* AuthorizationCode */:
1175
+ return c.writeI32(1);
1176
+ case 1 /* ClientCredentials */:
1177
+ return c.writeI32(2);
1178
+ }
1179
+ }
1180
+ allocationSize(value) {
1181
+ return 4;
1182
+ }
1183
+ }
1184
+ return new FFIConverter;
1185
+ })();
1186
+ var FileLayout;
1187
+ ((FileLayout2) => {
1188
+ FileLayout2[FileLayout2["Single"] = 0] = "Single";
1189
+ FileLayout2[FileLayout2["PerCredential"] = 1] = "PerCredential";
1190
+ })(FileLayout ||= {});
1191
+ var FfiConverterTypeFileLayout = (() => {
1192
+
1193
+ class FFIConverter extends AbstractFfiConverterByteArray {
1194
+ readFromCursor(c) {
1195
+ switch (c.readI32()) {
1196
+ case 1:
1197
+ return 0 /* Single */;
1198
+ case 2:
1199
+ return 1 /* PerCredential */;
1200
+ default:
1201
+ throw new UniffiInternalError.UnexpectedEnumCase;
1202
+ }
1203
+ }
1204
+ writeIntoCursor(value, c) {
1205
+ switch (value) {
1206
+ case 0 /* Single */:
1207
+ return c.writeI32(1);
1208
+ case 1 /* PerCredential */:
1209
+ return c.writeI32(2);
1210
+ }
1211
+ }
1212
+ allocationSize(value) {
1213
+ return 4;
1214
+ }
1215
+ }
1216
+ return new FFIConverter;
1217
+ })();
1218
+ var ProviderOptions = (() => {
1219
+ const defaults = () => ({
1220
+ authorizationEndpoint: undefined,
1221
+ clientSecret: undefined,
1222
+ profile: undefined,
1223
+ scopes: [],
1224
+ grant: undefined,
1225
+ cacheDir: undefined,
1226
+ storage: undefined,
1227
+ fileLayout: undefined,
1228
+ auth: undefined
1229
+ });
1230
+ const create = (() => {
1231
+ return uniffiCreateRecord(defaults);
1232
+ })();
1233
+ return Object.freeze({
1234
+ create,
1235
+ new: create,
1236
+ defaults: () => Object.freeze(defaults())
1237
+ });
1238
+ })();
1239
+ var FfiConverterTypeProviderOptions = (() => {
1240
+
1241
+ class FFIConverter extends AbstractFfiConverterByteArray {
1242
+ readFromCursor(c) {
1243
+ return {
1244
+ provider: FfiConverterString.readFromCursor(c),
1245
+ clientId: FfiConverterString.readFromCursor(c),
1246
+ tokenEndpoint: FfiConverterString.readFromCursor(c),
1247
+ authorizationEndpoint: FfiConverterOptionalString.readFromCursor(c),
1248
+ clientSecret: FfiConverterOptionalString.readFromCursor(c),
1249
+ profile: FfiConverterOptionalString.readFromCursor(c),
1250
+ scopes: FfiConverterSequenceString.readFromCursor(c),
1251
+ grant: FfiConverterOptionalTypeOAuthGrant.readFromCursor(c),
1252
+ cacheDir: FfiConverterOptionalString.readFromCursor(c),
1253
+ storage: FfiConverterOptionalTypeStorage.readFromCursor(c),
1254
+ fileLayout: FfiConverterOptionalTypeFileLayout.readFromCursor(c),
1255
+ auth: FfiConverterOptionalTypeAuthOptions.readFromCursor(c)
1256
+ };
1257
+ }
1258
+ writeIntoCursor(value, c) {
1259
+ FfiConverterString.writeIntoCursor(value.provider, c);
1260
+ FfiConverterString.writeIntoCursor(value.clientId, c);
1261
+ FfiConverterString.writeIntoCursor(value.tokenEndpoint, c);
1262
+ FfiConverterOptionalString.writeIntoCursor(value.authorizationEndpoint, c);
1263
+ FfiConverterOptionalString.writeIntoCursor(value.clientSecret, c);
1264
+ FfiConverterOptionalString.writeIntoCursor(value.profile, c);
1265
+ FfiConverterSequenceString.writeIntoCursor(value.scopes, c);
1266
+ FfiConverterOptionalTypeOAuthGrant.writeIntoCursor(value.grant, c);
1267
+ FfiConverterOptionalString.writeIntoCursor(value.cacheDir, c);
1268
+ FfiConverterOptionalTypeStorage.writeIntoCursor(value.storage, c);
1269
+ FfiConverterOptionalTypeFileLayout.writeIntoCursor(value.fileLayout, c);
1270
+ FfiConverterOptionalTypeAuthOptions.writeIntoCursor(value.auth, c);
1271
+ }
1272
+ allocationSize(value) {
1273
+ 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);
1274
+ }
1275
+ }
1276
+ return new FFIConverter;
1277
+ })();
1278
+ var AuthError_Tags;
1279
+ ((AuthError_Tags2) => {
1280
+ AuthError_Tags2["Failure"] = "Failure";
1281
+ })(AuthError_Tags ||= {});
1282
+ var AuthError = (() => {
1283
+
1284
+ class Failure_ extends UniffiError {
1285
+ [uniffiTypeNameSymbol] = "AuthError";
1286
+ tag = "Failure" /* Failure */;
1287
+ inner;
1288
+ constructor(inner) {
1289
+ super("AuthError", "Failure");
1290
+ this.inner = Object.freeze(inner);
1291
+ }
1292
+ static new(inner) {
1293
+ return new Failure_(inner);
1294
+ }
1295
+ static instanceOf(obj) {
1296
+ return obj.tag === "Failure" /* Failure */;
1297
+ }
1298
+ static hasInner(obj) {
1299
+ return Failure_.instanceOf(obj);
1300
+ }
1301
+ static getInner(obj) {
1302
+ return obj.inner;
1303
+ }
1304
+ }
1305
+ function instanceOf(obj) {
1306
+ return obj[uniffiTypeNameSymbol] === "AuthError";
1307
+ }
1308
+ return Object.freeze({
1309
+ instanceOf,
1310
+ Failure: Failure_
1311
+ });
1312
+ })();
1313
+ var FfiConverterTypeAuthError = (() => {
1314
+
1315
+ class FFIConverter extends AbstractFfiConverterByteArray {
1316
+ readFromCursor(c) {
1317
+ switch (c.readI32()) {
1318
+ case 1:
1319
+ return new AuthError.Failure({ message: FfiConverterString.readFromCursor(c) });
1320
+ default:
1321
+ throw new UniffiInternalError.UnexpectedEnumCase;
1322
+ }
1323
+ }
1324
+ writeIntoCursor(value, c) {
1325
+ switch (value.tag) {
1326
+ case "Failure" /* Failure */: {
1327
+ c.writeI32(1);
1328
+ const inner = value.inner;
1329
+ FfiConverterString.writeIntoCursor(inner.message, c);
1330
+ return;
1331
+ }
1332
+ default:
1333
+ throw new UniffiInternalError.UnexpectedEnumCase;
1334
+ }
1335
+ }
1336
+ allocationSize(value) {
1337
+ switch (value.tag) {
1338
+ case "Failure" /* Failure */: {
1339
+ const inner = value.inner;
1340
+ let size = 4;
1341
+ size += FfiConverterString.allocationSize(inner.message);
1342
+ return size;
1343
+ }
1344
+ default:
1345
+ throw new UniffiInternalError.UnexpectedEnumCase;
1346
+ }
1347
+ }
1348
+ }
1349
+ return new FFIConverter;
1350
+ })();
1351
+
1352
+ class PersistentAuth extends UniffiAbstractObject {
1353
+ [uniffiTypeNameSymbol] = "PersistentAuth";
1354
+ [destructorGuardSymbol];
1355
+ [pointerLiteralSymbol];
1356
+ constructor(pointer) {
1357
+ super();
1358
+ this[pointerLiteralSymbol] = pointer;
1359
+ this[destructorGuardSymbol] = uniffiTypePersistentAuthObjectFactory.bless(pointer);
1360
+ }
1361
+ async authorizationHeaderForUrl(requestUrl, asyncOpts_) {
1362
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1363
+ try {
1364
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1365
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_persistentauth_authorization_header_for_url(uniffiTypePersistentAuthObjectFactory.clonePointer(this), FfiConverterString.lower(requestUrl, _bindings_ffi_default().rustbuffer_alloc));
1366
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_rust_buffer, (__rb) => {
1367
+ try {
1368
+ return FfiConverterOptionalString.lift(__rb);
1369
+ } finally {
1370
+ _bindings_ffi_default().rustbuffer_free(__rb);
1371
+ }
1372
+ }, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1373
+ } catch (__error) {
1374
+ if (uniffiIsDebug && __error instanceof Error) {
1375
+ __error.stack = __stack;
1376
+ }
1377
+ throw __error;
1378
+ }
1379
+ }
1380
+ async challenge(asyncOpts_) {
1381
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1382
+ try {
1383
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1384
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_persistentauth_challenge(uniffiTypePersistentAuthObjectFactory.clonePointer(this));
1385
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1386
+ } catch (__error) {
1387
+ if (uniffiIsDebug && __error instanceof Error) {
1388
+ __error.stack = __stack;
1389
+ }
1390
+ throw __error;
1391
+ }
1392
+ }
1393
+ async forceRefreshToken(asyncOpts_) {
1394
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1395
+ try {
1396
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1397
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_persistentauth_force_refresh_token(uniffiTypePersistentAuthObjectFactory.clonePointer(this));
1398
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_rust_buffer, (__rb) => {
1399
+ try {
1400
+ return FfiConverterTypeAccessToken.lift(__rb);
1401
+ } finally {
1402
+ _bindings_ffi_default().rustbuffer_free(__rb);
1403
+ }
1404
+ }, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1405
+ } catch (__error) {
1406
+ if (uniffiIsDebug && __error instanceof Error) {
1407
+ __error.stack = __stack;
1408
+ }
1409
+ throw __error;
1410
+ }
1411
+ }
1412
+ async logout(asyncOpts_) {
1413
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1414
+ try {
1415
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1416
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_persistentauth_logout(uniffiTypePersistentAuthObjectFactory.clonePointer(this));
1417
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1418
+ } catch (__error) {
1419
+ if (uniffiIsDebug && __error instanceof Error) {
1420
+ __error.stack = __stack;
1421
+ }
1422
+ throw __error;
1423
+ }
1424
+ }
1425
+ async refreshRejectedToken(staleAccessToken, asyncOpts_) {
1426
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1427
+ try {
1428
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1429
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_persistentauth_refresh_rejected_token(uniffiTypePersistentAuthObjectFactory.clonePointer(this), FfiConverterString.lower(staleAccessToken, _bindings_ffi_default().rustbuffer_alloc));
1430
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_rust_buffer, (__rb) => {
1431
+ try {
1432
+ return FfiConverterTypeAccessToken.lift(__rb);
1433
+ } finally {
1434
+ _bindings_ffi_default().rustbuffer_free(__rb);
1435
+ }
1436
+ }, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1437
+ } catch (__error) {
1438
+ if (uniffiIsDebug && __error instanceof Error) {
1439
+ __error.stack = __stack;
1440
+ }
1441
+ throw __error;
1442
+ }
1443
+ }
1444
+ status() {
1445
+ const __rb = uniffiCaller.rustCall((callStatus) => {
1446
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_persistentauth_status(uniffiTypePersistentAuthObjectFactory.clonePointer(this), callStatus);
1447
+ }, FfiConverterString.lift.bind(FfiConverterString));
1448
+ try {
1449
+ return FfiConverterTypeDatabricksAuthStatus.lift(__rb);
1450
+ } finally {
1451
+ _bindings_ffi_default().rustbuffer_free(__rb);
1452
+ }
1453
+ }
1454
+ async token(login = undefined, asyncOpts_) {
1455
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1456
+ try {
1457
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1458
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_persistentauth_token(uniffiTypePersistentAuthObjectFactory.clonePointer(this), FfiConverterOptionalBoolean.lower(login, _bindings_ffi_default().rustbuffer_alloc));
1459
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_rust_buffer, (__rb) => {
1460
+ try {
1461
+ return FfiConverterTypeAccessToken.lift(__rb);
1462
+ } finally {
1463
+ _bindings_ffi_default().rustbuffer_free(__rb);
1464
+ }
1465
+ }, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1466
+ } catch (__error) {
1467
+ if (uniffiIsDebug && __error instanceof Error) {
1468
+ __error.stack = __stack;
1469
+ }
1470
+ throw __error;
1471
+ }
1472
+ }
1473
+ uniffiDestroy() {
1474
+ const ptr = this[destructorGuardSymbol];
1475
+ if (ptr !== undefined) {
1476
+ const pointer = uniffiTypePersistentAuthObjectFactory.pointer(this);
1477
+ uniffiTypePersistentAuthObjectFactory.freePointer(pointer);
1478
+ uniffiTypePersistentAuthObjectFactory.unbless(ptr);
1479
+ delete this[destructorGuardSymbol];
1480
+ }
1481
+ }
1482
+ static instanceOf(obj_) {
1483
+ return uniffiTypePersistentAuthObjectFactory.isConcreteType(obj_);
1484
+ }
1485
+ }
1486
+ var uniffiTypePersistentAuthObjectFactory = (() => {
1487
+ const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
1488
+ uniffiTypePersistentAuthObjectFactory.freePointer(heldValue);
1489
+ }) : null;
1490
+ return {
1491
+ create(pointer) {
1492
+ const instance = Object.create(PersistentAuth.prototype);
1493
+ instance[pointerLiteralSymbol] = pointer;
1494
+ instance[destructorGuardSymbol] = this.bless(pointer);
1495
+ instance[uniffiTypeNameSymbol] = "PersistentAuth";
1496
+ return instance;
1497
+ },
1498
+ bless(p) {
1499
+ const ptr = {
1500
+ p,
1501
+ markDestroyed: () => {
1502
+ return;
1503
+ }
1504
+ };
1505
+ if (registry) {
1506
+ registry.register(ptr, p, ptr);
1507
+ }
1508
+ return ptr;
1509
+ },
1510
+ unbless(ptr_) {
1511
+ if (registry) {
1512
+ registry.unregister(ptr_);
1513
+ }
1514
+ },
1515
+ pointer(obj_) {
1516
+ if (obj_[destructorGuardSymbol] === undefined) {
1517
+ throw new UniffiInternalError.UnexpectedNullPointer;
1518
+ }
1519
+ return obj_[pointerLiteralSymbol];
1520
+ },
1521
+ clonePointer(obj_) {
1522
+ const pointer = this.pointer(obj_);
1523
+ return uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_core_fn_clone_persistentauth(pointer, callStatus), FfiConverterString.lift);
1524
+ },
1525
+ freePointer(pointer) {
1526
+ uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_core_fn_free_persistentauth(pointer, callStatus), FfiConverterString.lift);
1527
+ },
1528
+ isConcreteType(obj_) {
1529
+ return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "PersistentAuth";
1530
+ }
1531
+ };
1532
+ })();
1533
+ var FfiConverterTypePersistentAuth = new FfiConverterObject(uniffiTypePersistentAuthObjectFactory);
1534
+
1535
+ class ProviderAuth extends UniffiAbstractObject {
1536
+ [uniffiTypeNameSymbol] = "ProviderAuth";
1537
+ [destructorGuardSymbol];
1538
+ [pointerLiteralSymbol];
1539
+ constructor(pointer) {
1540
+ super();
1541
+ this[pointerLiteralSymbol] = pointer;
1542
+ this[destructorGuardSymbol] = uniffiTypeProviderAuthObjectFactory.bless(pointer);
1543
+ }
1544
+ async forceRefreshToken(asyncOpts_) {
1545
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1546
+ try {
1547
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1548
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_providerauth_force_refresh_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this));
1549
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_rust_buffer, (__rb) => {
1550
+ try {
1551
+ return FfiConverterTypeAccessToken.lift(__rb);
1552
+ } finally {
1553
+ _bindings_ffi_default().rustbuffer_free(__rb);
1554
+ }
1555
+ }, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1556
+ } catch (__error) {
1557
+ if (uniffiIsDebug && __error instanceof Error) {
1558
+ __error.stack = __stack;
1559
+ }
1560
+ throw __error;
1561
+ }
1562
+ }
1563
+ async logout(asyncOpts_) {
1564
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1565
+ try {
1566
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1567
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_providerauth_logout(uniffiTypeProviderAuthObjectFactory.clonePointer(this));
1568
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1569
+ } catch (__error) {
1570
+ if (uniffiIsDebug && __error instanceof Error) {
1571
+ __error.stack = __stack;
1572
+ }
1573
+ throw __error;
1574
+ }
1575
+ }
1576
+ async refreshRejectedToken(staleAccessToken, asyncOpts_) {
1577
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1578
+ try {
1579
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1580
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_providerauth_refresh_rejected_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this), FfiConverterString.lower(staleAccessToken, _bindings_ffi_default().rustbuffer_alloc));
1581
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_rust_buffer, (__rb) => {
1582
+ try {
1583
+ return FfiConverterTypeAccessToken.lift(__rb);
1584
+ } finally {
1585
+ _bindings_ffi_default().rustbuffer_free(__rb);
1586
+ }
1587
+ }, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1588
+ } catch (__error) {
1589
+ if (uniffiIsDebug && __error instanceof Error) {
1590
+ __error.stack = __stack;
1591
+ }
1592
+ throw __error;
1593
+ }
1594
+ }
1595
+ async token(login = undefined, asyncOpts_) {
1596
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1597
+ try {
1598
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1599
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_providerauth_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this), FfiConverterOptionalBoolean.lower(login, _bindings_ffi_default().rustbuffer_alloc));
1600
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_rust_buffer, (__rb) => {
1601
+ try {
1602
+ return FfiConverterTypeAccessToken.lift(__rb);
1603
+ } finally {
1604
+ _bindings_ffi_default().rustbuffer_free(__rb);
1605
+ }
1606
+ }, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1607
+ } catch (__error) {
1608
+ if (uniffiIsDebug && __error instanceof Error) {
1609
+ __error.stack = __stack;
1610
+ }
1611
+ throw __error;
1612
+ }
1613
+ }
1614
+ uniffiDestroy() {
1615
+ const ptr = this[destructorGuardSymbol];
1616
+ if (ptr !== undefined) {
1617
+ const pointer = uniffiTypeProviderAuthObjectFactory.pointer(this);
1618
+ uniffiTypeProviderAuthObjectFactory.freePointer(pointer);
1619
+ uniffiTypeProviderAuthObjectFactory.unbless(ptr);
1620
+ delete this[destructorGuardSymbol];
1621
+ }
1622
+ }
1623
+ static instanceOf(obj_) {
1624
+ return uniffiTypeProviderAuthObjectFactory.isConcreteType(obj_);
1625
+ }
1626
+ }
1627
+ var uniffiTypeProviderAuthObjectFactory = (() => {
1628
+ const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
1629
+ uniffiTypeProviderAuthObjectFactory.freePointer(heldValue);
1630
+ }) : null;
1631
+ return {
1632
+ create(pointer) {
1633
+ const instance = Object.create(ProviderAuth.prototype);
1634
+ instance[pointerLiteralSymbol] = pointer;
1635
+ instance[destructorGuardSymbol] = this.bless(pointer);
1636
+ instance[uniffiTypeNameSymbol] = "ProviderAuth";
1637
+ return instance;
1638
+ },
1639
+ bless(p) {
1640
+ const ptr = {
1641
+ p,
1642
+ markDestroyed: () => {
1643
+ return;
1644
+ }
1645
+ };
1646
+ if (registry) {
1647
+ registry.register(ptr, p, ptr);
1648
+ }
1649
+ return ptr;
1650
+ },
1651
+ unbless(ptr_) {
1652
+ if (registry) {
1653
+ registry.unregister(ptr_);
1654
+ }
1655
+ },
1656
+ pointer(obj_) {
1657
+ if (obj_[destructorGuardSymbol] === undefined) {
1658
+ throw new UniffiInternalError.UnexpectedNullPointer;
1659
+ }
1660
+ return obj_[pointerLiteralSymbol];
1661
+ },
1662
+ clonePointer(obj_) {
1663
+ const pointer = this.pointer(obj_);
1664
+ return uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_core_fn_clone_providerauth(pointer, callStatus), FfiConverterString.lift);
1665
+ },
1666
+ freePointer(pointer) {
1667
+ uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_core_fn_free_providerauth(pointer, callStatus), FfiConverterString.lift);
1668
+ },
1669
+ isConcreteType(obj_) {
1670
+ return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "ProviderAuth";
1671
+ }
1672
+ };
1673
+ })();
1674
+ var FfiConverterTypeProviderAuth = new FfiConverterObject(uniffiTypeProviderAuthObjectFactory);
1675
+
1676
+ class StorageAdapterImpl extends UniffiAbstractObject {
1677
+ [uniffiTypeNameSymbol] = "StorageAdapterImpl";
1678
+ [destructorGuardSymbol];
1679
+ [pointerLiteralSymbol];
1680
+ constructor(pointer) {
1681
+ super();
1682
+ this[pointerLiteralSymbol] = pointer;
1683
+ this[destructorGuardSymbol] = uniffiTypeStorageAdapterImplObjectFactory.bless(pointer);
1684
+ }
1685
+ async load(profile, asyncOpts_) {
1686
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1687
+ try {
1688
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1689
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_storageadapter_load(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc));
1690
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_rust_buffer, (__rb) => {
1691
+ try {
1692
+ return FfiConverterOptionalString.lift(__rb);
1693
+ } finally {
1694
+ _bindings_ffi_default().rustbuffer_free(__rb);
1695
+ }
1696
+ }, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1697
+ } catch (__error) {
1698
+ if (uniffiIsDebug && __error instanceof Error) {
1699
+ __error.stack = __stack;
1700
+ }
1701
+ throw __error;
1702
+ }
1703
+ }
1704
+ async prepareWrite(asyncOpts_) {
1705
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1706
+ try {
1707
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1708
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_storageadapter_prepare_write(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this));
1709
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1710
+ } catch (__error) {
1711
+ if (uniffiIsDebug && __error instanceof Error) {
1712
+ __error.stack = __stack;
1713
+ }
1714
+ throw __error;
1715
+ }
1716
+ }
1717
+ async save(profile, token, asyncOpts_) {
1718
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1719
+ try {
1720
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1721
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_storageadapter_save(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc), FfiConverterString.lower(token, _bindings_ffi_default().rustbuffer_alloc));
1722
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1723
+ } catch (__error) {
1724
+ if (uniffiIsDebug && __error instanceof Error) {
1725
+ __error.stack = __stack;
1726
+ }
1727
+ throw __error;
1728
+ }
1729
+ }
1730
+ async remove(profile, asyncOpts_) {
1731
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1732
+ try {
1733
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1734
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_storageadapter_remove(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc));
1735
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1736
+ } catch (__error) {
1737
+ if (uniffiIsDebug && __error instanceof Error) {
1738
+ __error.stack = __stack;
1739
+ }
1740
+ throw __error;
1741
+ }
1742
+ }
1743
+ async acquireLock(profile, timeoutMillis, asyncOpts_) {
1744
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1745
+ try {
1746
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1747
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_storageadapter_acquire_lock(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc), FfiConverterUInt64.lower(timeoutMillis, _bindings_ffi_default().rustbuffer_alloc));
1748
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_rust_buffer, (__rb) => {
1749
+ try {
1750
+ return FfiConverterString.lift(__rb);
1751
+ } finally {
1752
+ _bindings_ffi_default().rustbuffer_free(__rb);
1753
+ }
1754
+ }, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1755
+ } catch (__error) {
1756
+ if (uniffiIsDebug && __error instanceof Error) {
1757
+ __error.stack = __stack;
1758
+ }
1759
+ throw __error;
1760
+ }
1761
+ }
1762
+ async releaseLock(lease, asyncOpts_) {
1763
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
1764
+ try {
1765
+ return await uniffiRustCallAsync(uniffiCaller, () => {
1766
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_storageadapter_release_lock(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(lease, _bindings_ffi_default().rustbuffer_alloc));
1767
+ }, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
1768
+ } catch (__error) {
1769
+ if (uniffiIsDebug && __error instanceof Error) {
1770
+ __error.stack = __stack;
1771
+ }
1772
+ throw __error;
1773
+ }
1774
+ }
1775
+ name() {
1776
+ const __rb = uniffiCaller.rustCall((callStatus) => {
1777
+ return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_storageadapter_name(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), callStatus);
1778
+ }, FfiConverterString.lift.bind(FfiConverterString));
1779
+ try {
1780
+ return FfiConverterString.lift(__rb);
1781
+ } finally {
1782
+ _bindings_ffi_default().rustbuffer_free(__rb);
1783
+ }
1784
+ }
1785
+ uniffiDestroy() {
1786
+ const ptr = this[destructorGuardSymbol];
1787
+ if (ptr !== undefined) {
1788
+ const pointer = uniffiTypeStorageAdapterImplObjectFactory.pointer(this);
1789
+ uniffiTypeStorageAdapterImplObjectFactory.freePointer(pointer);
1790
+ uniffiTypeStorageAdapterImplObjectFactory.unbless(ptr);
1791
+ delete this[destructorGuardSymbol];
1792
+ }
1793
+ }
1794
+ static instanceOf(obj_) {
1795
+ return uniffiTypeStorageAdapterImplObjectFactory.isConcreteType(obj_);
1796
+ }
1797
+ }
1798
+ var uniffiTypeStorageAdapterImplObjectFactory = (() => {
1799
+ const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
1800
+ uniffiTypeStorageAdapterImplObjectFactory.freePointer(heldValue);
1801
+ }) : null;
1802
+ return {
1803
+ create(pointer) {
1804
+ const instance = Object.create(StorageAdapterImpl.prototype);
1805
+ instance[pointerLiteralSymbol] = pointer;
1806
+ instance[destructorGuardSymbol] = this.bless(pointer);
1807
+ instance[uniffiTypeNameSymbol] = "StorageAdapterImpl";
1808
+ return instance;
1809
+ },
1810
+ bless(p) {
1811
+ const ptr = {
1812
+ p,
1813
+ markDestroyed: () => {
1814
+ return;
1815
+ }
1816
+ };
1817
+ if (registry) {
1818
+ registry.register(ptr, p, ptr);
1819
+ }
1820
+ return ptr;
1821
+ },
1822
+ unbless(ptr_) {
1823
+ if (registry) {
1824
+ registry.unregister(ptr_);
1825
+ }
1826
+ },
1827
+ pointer(obj_) {
1828
+ if (obj_[destructorGuardSymbol] === undefined) {
1829
+ throw new UniffiInternalError.UnexpectedNullPointer;
1830
+ }
1831
+ return obj_[pointerLiteralSymbol];
1832
+ },
1833
+ clonePointer(obj_) {
1834
+ const pointer = this.pointer(obj_);
1835
+ return uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_core_fn_clone_storageadapter(pointer, callStatus), FfiConverterString.lift);
1836
+ },
1837
+ freePointer(pointer) {
1838
+ uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_core_fn_free_storageadapter(pointer, callStatus), FfiConverterString.lift);
1839
+ },
1840
+ isConcreteType(obj_) {
1841
+ return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "StorageAdapterImpl";
1842
+ }
1843
+ };
1844
+ })();
1845
+ var FfiConverterTypeStorageAdapter = new FfiConverterObjectWithCallbacks(uniffiTypeStorageAdapterImplObjectFactory);
1846
+ var uniffiCallbackInterfaceStorageAdapter = {
1847
+ vtable: {
1848
+ load: (uniffiHandle, profile, uniffiFutureCallback, uniffiCallbackData) => {
1849
+ const uniffiMakeCall = async (signal) => {
1850
+ const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
1851
+ return await jsCallback.load(FfiConverterString.lift(profile), { signal });
1852
+ };
1853
+ const uniffiHandleSuccess = (returnValue) => {
1854
+ uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
1855
+ return_value: FfiConverterOptionalString.lower(returnValue, _bindings_ffi_default().rustbuffer_alloc),
1856
+ call_status: uniffiCaller.createCallStatus()
1857
+ });
1858
+ };
1859
+ const uniffiHandleError = (code, errorBuf) => {
1860
+ uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
1861
+ return_value: new Uint8Array(0),
1862
+ call_status: uniffiCaller.createErrorStatus(code, errorBuf)
1863
+ });
1864
+ };
1865
+ const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
1866
+ return uniffiForeignFuture;
1867
+ },
1868
+ prepare_write: (uniffiHandle, uniffiFutureCallback, uniffiCallbackData) => {
1869
+ const uniffiMakeCall = async (signal) => {
1870
+ const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
1871
+ return await jsCallback.prepareWrite({ signal });
1872
+ };
1873
+ const uniffiHandleSuccess = (returnValue) => {
1874
+ uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
1875
+ call_status: uniffiCaller.createCallStatus()
1876
+ });
1877
+ };
1878
+ const uniffiHandleError = (code, errorBuf) => {
1879
+ uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
1880
+ call_status: uniffiCaller.createErrorStatus(code, errorBuf)
1881
+ });
1882
+ };
1883
+ const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
1884
+ return uniffiForeignFuture;
1885
+ },
1886
+ save: (uniffiHandle, profile, token, uniffiFutureCallback, uniffiCallbackData) => {
1887
+ const uniffiMakeCall = async (signal) => {
1888
+ const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
1889
+ return await jsCallback.save(FfiConverterString.lift(profile), FfiConverterString.lift(token), { signal });
1890
+ };
1891
+ const uniffiHandleSuccess = (returnValue) => {
1892
+ uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
1893
+ call_status: uniffiCaller.createCallStatus()
1894
+ });
1895
+ };
1896
+ const uniffiHandleError = (code, errorBuf) => {
1897
+ uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
1898
+ call_status: uniffiCaller.createErrorStatus(code, errorBuf)
1899
+ });
1900
+ };
1901
+ const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
1902
+ return uniffiForeignFuture;
1903
+ },
1904
+ remove: (uniffiHandle, profile, uniffiFutureCallback, uniffiCallbackData) => {
1905
+ const uniffiMakeCall = async (signal) => {
1906
+ const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
1907
+ return await jsCallback.remove(FfiConverterString.lift(profile), { signal });
1908
+ };
1909
+ const uniffiHandleSuccess = (returnValue) => {
1910
+ uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
1911
+ call_status: uniffiCaller.createCallStatus()
1912
+ });
1913
+ };
1914
+ const uniffiHandleError = (code, errorBuf) => {
1915
+ uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
1916
+ call_status: uniffiCaller.createErrorStatus(code, errorBuf)
1917
+ });
1918
+ };
1919
+ const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
1920
+ return uniffiForeignFuture;
1921
+ },
1922
+ acquire_lock: (uniffiHandle, profile, timeoutMillis, uniffiFutureCallback, uniffiCallbackData) => {
1923
+ const uniffiMakeCall = async (signal) => {
1924
+ const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
1925
+ return await jsCallback.acquireLock(FfiConverterString.lift(profile), FfiConverterUInt64.lift(timeoutMillis), { signal });
1926
+ };
1927
+ const uniffiHandleSuccess = (returnValue) => {
1928
+ uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
1929
+ return_value: FfiConverterString.lower(returnValue, _bindings_ffi_default().rustbuffer_alloc),
1930
+ call_status: uniffiCaller.createCallStatus()
1931
+ });
1932
+ };
1933
+ const uniffiHandleError = (code, errorBuf) => {
1934
+ uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
1935
+ return_value: new Uint8Array(0),
1936
+ call_status: uniffiCaller.createErrorStatus(code, errorBuf)
1937
+ });
1938
+ };
1939
+ const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
1940
+ return uniffiForeignFuture;
1941
+ },
1942
+ release_lock: (uniffiHandle, lease, uniffiFutureCallback, uniffiCallbackData) => {
1943
+ const uniffiMakeCall = async (signal) => {
1944
+ const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
1945
+ return await jsCallback.releaseLock(FfiConverterString.lift(lease), { signal });
1946
+ };
1947
+ const uniffiHandleSuccess = (returnValue) => {
1948
+ uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
1949
+ call_status: uniffiCaller.createCallStatus()
1950
+ });
1951
+ };
1952
+ const uniffiHandleError = (code, errorBuf) => {
1953
+ uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
1954
+ call_status: uniffiCaller.createErrorStatus(code, errorBuf)
1955
+ });
1956
+ };
1957
+ const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
1958
+ return uniffiForeignFuture;
1959
+ },
1960
+ name: (uniffiHandle) => {
1961
+ const uniffiMakeCall = () => {
1962
+ const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
1963
+ return jsCallback.name();
1964
+ };
1965
+ const uniffiResult = UniffiResult.ready();
1966
+ const uniffiHandleSuccess = (obj) => {
1967
+ UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj, _bindings_ffi_default().rustbuffer_alloc));
1968
+ };
1969
+ const uniffiHandleError = (code, errBuf) => {
1970
+ UniffiResult.writeError(uniffiResult, code, errBuf);
1971
+ };
1972
+ uniffiTraitInterfaceCall(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
1973
+ return uniffiResult;
1974
+ },
1975
+ uniffi_free: (uniffiHandle) => {
1976
+ FfiConverterTypeStorageAdapter.drop(uniffiHandle);
1977
+ },
1978
+ uniffi_clone: (uniffiHandle) => {
1979
+ return FfiConverterTypeStorageAdapter.clone(uniffiHandle);
1980
+ }
1981
+ },
1982
+ register: () => {
1983
+ _bindings_ffi_default().uniffi_dbx_tools_core_fn_init_callback_vtable_storageadapter(uniffiCallbackInterfaceStorageAdapter.vtable);
1984
+ }
1985
+ };
1986
+
1987
+ class StorageHandle extends UniffiAbstractObject {
1988
+ [uniffiTypeNameSymbol] = "StorageHandle";
1989
+ [destructorGuardSymbol];
1990
+ [pointerLiteralSymbol];
1991
+ constructor(pointer) {
1992
+ super();
1993
+ this[pointerLiteralSymbol] = pointer;
1994
+ this[destructorGuardSymbol] = uniffiTypeStorageHandleObjectFactory.bless(pointer);
1995
+ }
1996
+ uniffiDestroy() {
1997
+ const ptr = this[destructorGuardSymbol];
1998
+ if (ptr !== undefined) {
1999
+ const pointer = uniffiTypeStorageHandleObjectFactory.pointer(this);
2000
+ uniffiTypeStorageHandleObjectFactory.freePointer(pointer);
2001
+ uniffiTypeStorageHandleObjectFactory.unbless(ptr);
2002
+ delete this[destructorGuardSymbol];
2003
+ }
2004
+ }
2005
+ static instanceOf(obj_) {
2006
+ return uniffiTypeStorageHandleObjectFactory.isConcreteType(obj_);
2007
+ }
2008
+ }
2009
+ var uniffiTypeStorageHandleObjectFactory = (() => {
2010
+ const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
2011
+ uniffiTypeStorageHandleObjectFactory.freePointer(heldValue);
2012
+ }) : null;
2013
+ return {
2014
+ create(pointer) {
2015
+ const instance = Object.create(StorageHandle.prototype);
2016
+ instance[pointerLiteralSymbol] = pointer;
2017
+ instance[destructorGuardSymbol] = this.bless(pointer);
2018
+ instance[uniffiTypeNameSymbol] = "StorageHandle";
2019
+ return instance;
2020
+ },
2021
+ bless(p) {
2022
+ const ptr = {
2023
+ p,
2024
+ markDestroyed: () => {
2025
+ return;
2026
+ }
2027
+ };
2028
+ if (registry) {
2029
+ registry.register(ptr, p, ptr);
2030
+ }
2031
+ return ptr;
2032
+ },
2033
+ unbless(ptr_) {
2034
+ if (registry) {
2035
+ registry.unregister(ptr_);
2036
+ }
2037
+ },
2038
+ pointer(obj_) {
2039
+ if (obj_[destructorGuardSymbol] === undefined) {
2040
+ throw new UniffiInternalError.UnexpectedNullPointer;
2041
+ }
2042
+ return obj_[pointerLiteralSymbol];
2043
+ },
2044
+ clonePointer(obj_) {
2045
+ const pointer = this.pointer(obj_);
2046
+ return uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_core_fn_clone_storagehandle(pointer, callStatus), FfiConverterString.lift);
2047
+ },
2048
+ freePointer(pointer) {
2049
+ uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_core_fn_free_storagehandle(pointer, callStatus), FfiConverterString.lift);
2050
+ },
2051
+ isConcreteType(obj_) {
2052
+ return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "StorageHandle";
2053
+ }
2054
+ };
2055
+ })();
2056
+ var FfiConverterTypeStorageHandle = new FfiConverterObject(uniffiTypeStorageHandleObjectFactory);
2057
+ var FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
2058
+ var FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);
2059
+ var FfiConverterOptionalSequenceString = new FfiConverterOptional(FfiConverterSequenceString);
2060
+ var FfiConverterOptionalTypeAuthOptions = new FfiConverterOptional(FfiConverterTypeAuthOptions);
2061
+ var FfiConverterMapStringString = new FfiConverterMap(FfiConverterString, FfiConverterString);
2062
+ var FfiConverterOptionalMapStringString = new FfiConverterOptional(FfiConverterMapStringString);
2063
+ var FfiConverterOptionalUInt16 = new FfiConverterOptional(FfiConverterUInt16);
2064
+ var FfiConverterOptionalTypeSslMode = new FfiConverterOptional(FfiConverterTypeSslMode);
2065
+ var FfiConverterOptionalTypeOAuthGrant = new FfiConverterOptional(FfiConverterTypeOAuthGrant);
2066
+ var FfiConverterOptionalTypeStorage = new FfiConverterOptional(FfiConverterTypeStorage);
2067
+ var FfiConverterOptionalTypeFileLayout = new FfiConverterOptional(FfiConverterTypeFileLayout);
2068
+ var FfiConverterOptionalBoolean = new FfiConverterOptional(FfiConverterBool);
2069
+ function uniffiEnsureInitialized() {
2070
+ const bindingsContractVersion = 30;
2071
+ const scaffoldingContractVersion = _bindings_ffi_default().ffi_dbx_tools_core_uniffi_contract_version();
2072
+ if (bindingsContractVersion !== scaffoldingContractVersion) {
2073
+ throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
2074
+ }
2075
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_func_canonical_scopes() !== 62077) {
2076
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_func_canonical_scopes");
2077
+ }
2078
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_func_create_persistent_auth() !== 18830) {
2079
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_func_create_persistent_auth");
2080
+ }
2081
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_func_create_persistent_auth_with_storage() !== 22339) {
2082
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_func_create_persistent_auth_with_storage");
2083
+ }
2084
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_func_create_provider_auth() !== 4445) {
2085
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_func_create_provider_auth");
2086
+ }
2087
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_func_create_provider_auth_with_storage() !== 46166) {
2088
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_func_create_provider_auth_with_storage");
2089
+ }
2090
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_func_create_storage_handle() !== 15610) {
2091
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_func_create_storage_handle");
2092
+ }
2093
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_func_credential_key() !== 36458) {
2094
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_func_credential_key");
2095
+ }
2096
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_func_databricks_cli_available() !== 27788) {
2097
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_func_databricks_cli_available");
2098
+ }
2099
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_func_is_databricks_app() !== 52373) {
2100
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_func_is_databricks_app");
2101
+ }
2102
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_func_parse_address() !== 9538) {
2103
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_func_parse_address");
2104
+ }
2105
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_func_parse_resource_path() !== 62884) {
2106
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_func_parse_resource_path");
2107
+ }
2108
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_authorization_header_for_url() !== 39071) {
2109
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_authorization_header_for_url");
2110
+ }
2111
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_challenge() !== 32194) {
2112
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_challenge");
2113
+ }
2114
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_force_refresh_token() !== 34839) {
2115
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_force_refresh_token");
2116
+ }
2117
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_logout() !== 22550) {
2118
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_logout");
2119
+ }
2120
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_refresh_rejected_token() !== 25961) {
2121
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_refresh_rejected_token");
2122
+ }
2123
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_status() !== 3099) {
2124
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_status");
2125
+ }
2126
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_token() !== 38242) {
2127
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_token");
2128
+ }
2129
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_providerauth_force_refresh_token() !== 12705) {
2130
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_providerauth_force_refresh_token");
2131
+ }
2132
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_providerauth_logout() !== 64726) {
2133
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_providerauth_logout");
2134
+ }
2135
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_providerauth_refresh_rejected_token() !== 47589) {
2136
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_providerauth_refresh_rejected_token");
2137
+ }
2138
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_providerauth_token() !== 37517) {
2139
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_providerauth_token");
2140
+ }
2141
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_storageadapter_load() !== 54668) {
2142
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_storageadapter_load");
2143
+ }
2144
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_storageadapter_prepare_write() !== 45067) {
2145
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_storageadapter_prepare_write");
2146
+ }
2147
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_storageadapter_save() !== 63958) {
2148
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_storageadapter_save");
2149
+ }
2150
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_storageadapter_remove() !== 16750) {
2151
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_storageadapter_remove");
2152
+ }
2153
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_storageadapter_acquire_lock() !== 64986) {
2154
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_storageadapter_acquire_lock");
2155
+ }
2156
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_storageadapter_release_lock() !== 64198) {
2157
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_storageadapter_release_lock");
2158
+ }
2159
+ if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_storageadapter_name() !== 6080) {
2160
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_storageadapter_name");
2161
+ }
2162
+ uniffiCallbackInterfaceStorageAdapter.register();
2163
+ }
2164
+ var _bindings_default = Object.freeze({
2165
+ initialize: uniffiEnsureInitialized,
2166
+ converters: {
2167
+ FfiConverterTypeAccessToken,
2168
+ FfiConverterTypeAuthError,
2169
+ FfiConverterTypeAuthOptions,
2170
+ FfiConverterTypeDatabricksAuthOptions,
2171
+ FfiConverterTypeDatabricksAuthStatus,
2172
+ FfiConverterTypeFileLayout,
2173
+ FfiConverterTypeOAuthGrant,
2174
+ FfiConverterTypeParsedAddress,
2175
+ FfiConverterTypePersistentAuth,
2176
+ FfiConverterTypeProviderAuth,
2177
+ FfiConverterTypeProviderOptions,
2178
+ FfiConverterTypeSslMode,
2179
+ FfiConverterTypeStorage,
2180
+ FfiConverterTypeStorageAdapter,
2181
+ FfiConverterTypeStorageHandle
2182
+ }
2183
+ });
2184
+ // src/bindings.ts
2185
+ _bindings_default.initialize();
2186
+ async function uniffiInitAsync() {}
2187
+
2188
+ // index.ts
2189
+ var PACKAGE_IDENTIFIER = "@dbx-tools/core-rs";
2190
+ var PACKAGE_VERSION = "0.6.188";
2191
+ export {
2192
+ _bindings_default as uniffiModule,
2193
+ uniffiInitAsync,
2194
+ parseResourcePath,
2195
+ parseAddress,
2196
+ isDatabricksApp,
2197
+ databricksCliAvailable,
2198
+ credentialKey,
2199
+ createStorageHandle,
2200
+ createProviderAuthWithStorage,
2201
+ createProviderAuth,
2202
+ createPersistentAuthWithStorage,
2203
+ createPersistentAuth,
2204
+ canonicalScopes,
2205
+ StorageHandle,
2206
+ StorageAdapterImpl,
2207
+ Storage,
2208
+ SslMode,
2209
+ ProviderOptions,
2210
+ ProviderAuth,
2211
+ PersistentAuth,
2212
+ ParsedAddress,
2213
+ PACKAGE_VERSION,
2214
+ PACKAGE_IDENTIFIER,
2215
+ OAuthGrant,
2216
+ FileLayout,
2217
+ DatabricksAuthStatus,
2218
+ DatabricksAuthOptions,
2219
+ AuthOptions,
2220
+ AuthError_Tags,
2221
+ AuthError,
2222
+ AccessToken
2223
+ };