@dbx-tools/databricks 0.6.182 → 0.6.185
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -17
- package/index.ts +1 -1
- package/lib/index.js +1710 -13
- package/package.json +10 -10
- package/src/_bindings-ffi.ts +463 -0
- package/src/_bindings.ts +2402 -3
- package/src/bindings.ts +1 -0
package/lib/index.js
CHANGED
|
@@ -263,6 +263,91 @@ var DEFINITIONS = {
|
|
|
263
263
|
ret: FfiType.Void,
|
|
264
264
|
hasRustCallStatus: false
|
|
265
265
|
},
|
|
266
|
+
uniffi_dbx_tools_databricks_fn_clone_persistentauth: {
|
|
267
|
+
args: [FfiType.Handle],
|
|
268
|
+
ret: FfiType.Handle,
|
|
269
|
+
hasRustCallStatus: true
|
|
270
|
+
},
|
|
271
|
+
uniffi_dbx_tools_databricks_fn_free_persistentauth: {
|
|
272
|
+
args: [FfiType.Handle],
|
|
273
|
+
ret: FfiType.Void,
|
|
274
|
+
hasRustCallStatus: true
|
|
275
|
+
},
|
|
276
|
+
uniffi_dbx_tools_databricks_fn_clone_providerauth: {
|
|
277
|
+
args: [FfiType.Handle],
|
|
278
|
+
ret: FfiType.Handle,
|
|
279
|
+
hasRustCallStatus: true
|
|
280
|
+
},
|
|
281
|
+
uniffi_dbx_tools_databricks_fn_free_providerauth: {
|
|
282
|
+
args: [FfiType.Handle],
|
|
283
|
+
ret: FfiType.Void,
|
|
284
|
+
hasRustCallStatus: true
|
|
285
|
+
},
|
|
286
|
+
uniffi_dbx_tools_databricks_fn_clone_storageadapter: {
|
|
287
|
+
args: [FfiType.Handle],
|
|
288
|
+
ret: FfiType.Handle,
|
|
289
|
+
hasRustCallStatus: true
|
|
290
|
+
},
|
|
291
|
+
uniffi_dbx_tools_databricks_fn_free_storageadapter: {
|
|
292
|
+
args: [FfiType.Handle],
|
|
293
|
+
ret: FfiType.Void,
|
|
294
|
+
hasRustCallStatus: true
|
|
295
|
+
},
|
|
296
|
+
uniffi_dbx_tools_databricks_fn_clone_storagehandle: {
|
|
297
|
+
args: [FfiType.Handle],
|
|
298
|
+
ret: FfiType.Handle,
|
|
299
|
+
hasRustCallStatus: true
|
|
300
|
+
},
|
|
301
|
+
uniffi_dbx_tools_databricks_fn_free_storagehandle: {
|
|
302
|
+
args: [FfiType.Handle],
|
|
303
|
+
ret: FfiType.Void,
|
|
304
|
+
hasRustCallStatus: true
|
|
305
|
+
},
|
|
306
|
+
uniffi_dbx_tools_databricks_fn_init_callback_vtable_storageadapter: {
|
|
307
|
+
args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceDbxToolsDatabricksStorageAdapter"))],
|
|
308
|
+
ret: FfiType.Void,
|
|
309
|
+
hasRustCallStatus: false
|
|
310
|
+
},
|
|
311
|
+
uniffi_dbx_tools_databricks_fn_func_canonical_scopes: {
|
|
312
|
+
args: [FfiType.RustBuffer],
|
|
313
|
+
ret: FfiType.RustBuffer,
|
|
314
|
+
hasRustCallStatus: true
|
|
315
|
+
},
|
|
316
|
+
uniffi_dbx_tools_databricks_fn_func_create_persistent_auth: {
|
|
317
|
+
args: [FfiType.RustBuffer, FfiType.RustBuffer],
|
|
318
|
+
ret: FfiType.Handle,
|
|
319
|
+
hasRustCallStatus: false
|
|
320
|
+
},
|
|
321
|
+
uniffi_dbx_tools_databricks_fn_func_create_persistent_auth_for_request: {
|
|
322
|
+
args: [FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
323
|
+
ret: FfiType.Handle,
|
|
324
|
+
hasRustCallStatus: false
|
|
325
|
+
},
|
|
326
|
+
uniffi_dbx_tools_databricks_fn_func_create_persistent_auth_with_storage: {
|
|
327
|
+
args: [FfiType.RustBuffer, FfiType.Handle],
|
|
328
|
+
ret: FfiType.Handle,
|
|
329
|
+
hasRustCallStatus: false
|
|
330
|
+
},
|
|
331
|
+
uniffi_dbx_tools_databricks_fn_func_create_provider_auth: {
|
|
332
|
+
args: [FfiType.RustBuffer],
|
|
333
|
+
ret: FfiType.Handle,
|
|
334
|
+
hasRustCallStatus: false
|
|
335
|
+
},
|
|
336
|
+
uniffi_dbx_tools_databricks_fn_func_create_provider_auth_with_storage: {
|
|
337
|
+
args: [FfiType.RustBuffer, FfiType.Handle],
|
|
338
|
+
ret: FfiType.Handle,
|
|
339
|
+
hasRustCallStatus: false
|
|
340
|
+
},
|
|
341
|
+
uniffi_dbx_tools_databricks_fn_func_create_storage_handle: {
|
|
342
|
+
args: [FfiType.Handle],
|
|
343
|
+
ret: FfiType.Handle,
|
|
344
|
+
hasRustCallStatus: true
|
|
345
|
+
},
|
|
346
|
+
uniffi_dbx_tools_databricks_fn_func_credential_key: {
|
|
347
|
+
args: [FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
348
|
+
ret: FfiType.RustBuffer,
|
|
349
|
+
hasRustCallStatus: true
|
|
350
|
+
},
|
|
266
351
|
uniffi_dbx_tools_databricks_fn_func_databricks_cli_available: {
|
|
267
352
|
args: [],
|
|
268
353
|
ret: FfiType.Int8,
|
|
@@ -273,11 +358,136 @@ var DEFINITIONS = {
|
|
|
273
358
|
ret: FfiType.Int8,
|
|
274
359
|
hasRustCallStatus: true
|
|
275
360
|
},
|
|
361
|
+
uniffi_dbx_tools_databricks_fn_method_persistentauth_challenge: {
|
|
362
|
+
args: [FfiType.Handle],
|
|
363
|
+
ret: FfiType.Handle,
|
|
364
|
+
hasRustCallStatus: false
|
|
365
|
+
},
|
|
366
|
+
uniffi_dbx_tools_databricks_fn_method_persistentauth_force_refresh_token: {
|
|
367
|
+
args: [FfiType.Handle],
|
|
368
|
+
ret: FfiType.Handle,
|
|
369
|
+
hasRustCallStatus: false
|
|
370
|
+
},
|
|
371
|
+
uniffi_dbx_tools_databricks_fn_method_persistentauth_logout: {
|
|
372
|
+
args: [FfiType.Handle],
|
|
373
|
+
ret: FfiType.Handle,
|
|
374
|
+
hasRustCallStatus: false
|
|
375
|
+
},
|
|
376
|
+
uniffi_dbx_tools_databricks_fn_method_persistentauth_refresh_rejected_token: {
|
|
377
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
378
|
+
ret: FfiType.Handle,
|
|
379
|
+
hasRustCallStatus: false
|
|
380
|
+
},
|
|
381
|
+
uniffi_dbx_tools_databricks_fn_method_persistentauth_status: {
|
|
382
|
+
args: [FfiType.Handle],
|
|
383
|
+
ret: FfiType.RustBuffer,
|
|
384
|
+
hasRustCallStatus: true
|
|
385
|
+
},
|
|
386
|
+
uniffi_dbx_tools_databricks_fn_method_persistentauth_token: {
|
|
387
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
388
|
+
ret: FfiType.Handle,
|
|
389
|
+
hasRustCallStatus: false
|
|
390
|
+
},
|
|
391
|
+
uniffi_dbx_tools_databricks_fn_method_providerauth_force_refresh_token: {
|
|
392
|
+
args: [FfiType.Handle],
|
|
393
|
+
ret: FfiType.Handle,
|
|
394
|
+
hasRustCallStatus: false
|
|
395
|
+
},
|
|
396
|
+
uniffi_dbx_tools_databricks_fn_method_providerauth_logout: {
|
|
397
|
+
args: [FfiType.Handle],
|
|
398
|
+
ret: FfiType.Handle,
|
|
399
|
+
hasRustCallStatus: false
|
|
400
|
+
},
|
|
401
|
+
uniffi_dbx_tools_databricks_fn_method_providerauth_refresh_rejected_token: {
|
|
402
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
403
|
+
ret: FfiType.Handle,
|
|
404
|
+
hasRustCallStatus: false
|
|
405
|
+
},
|
|
406
|
+
uniffi_dbx_tools_databricks_fn_method_providerauth_token: {
|
|
407
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
408
|
+
ret: FfiType.Handle,
|
|
409
|
+
hasRustCallStatus: false
|
|
410
|
+
},
|
|
411
|
+
uniffi_dbx_tools_databricks_fn_method_storageadapter_load: {
|
|
412
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
413
|
+
ret: FfiType.Handle,
|
|
414
|
+
hasRustCallStatus: false
|
|
415
|
+
},
|
|
416
|
+
uniffi_dbx_tools_databricks_fn_method_storageadapter_prepare_write: {
|
|
417
|
+
args: [FfiType.Handle],
|
|
418
|
+
ret: FfiType.Handle,
|
|
419
|
+
hasRustCallStatus: false
|
|
420
|
+
},
|
|
421
|
+
uniffi_dbx_tools_databricks_fn_method_storageadapter_save: {
|
|
422
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
423
|
+
ret: FfiType.Handle,
|
|
424
|
+
hasRustCallStatus: false
|
|
425
|
+
},
|
|
426
|
+
uniffi_dbx_tools_databricks_fn_method_storageadapter_remove: {
|
|
427
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
428
|
+
ret: FfiType.Handle,
|
|
429
|
+
hasRustCallStatus: false
|
|
430
|
+
},
|
|
431
|
+
uniffi_dbx_tools_databricks_fn_method_storageadapter_acquire_lock: {
|
|
432
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.UInt64],
|
|
433
|
+
ret: FfiType.Handle,
|
|
434
|
+
hasRustCallStatus: false
|
|
435
|
+
},
|
|
436
|
+
uniffi_dbx_tools_databricks_fn_method_storageadapter_release_lock: {
|
|
437
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
438
|
+
ret: FfiType.Handle,
|
|
439
|
+
hasRustCallStatus: false
|
|
440
|
+
},
|
|
441
|
+
uniffi_dbx_tools_databricks_fn_method_storageadapter_name: {
|
|
442
|
+
args: [FfiType.Handle],
|
|
443
|
+
ret: FfiType.RustBuffer,
|
|
444
|
+
hasRustCallStatus: true
|
|
445
|
+
},
|
|
276
446
|
ffi_dbx_tools_databricks_uniffi_contract_version: {
|
|
277
447
|
args: [],
|
|
278
448
|
ret: FfiType.UInt32,
|
|
279
449
|
hasRustCallStatus: false
|
|
280
450
|
},
|
|
451
|
+
uniffi_dbx_tools_databricks_checksum_func_canonical_scopes: {
|
|
452
|
+
args: [],
|
|
453
|
+
ret: FfiType.UInt16,
|
|
454
|
+
hasRustCallStatus: false
|
|
455
|
+
},
|
|
456
|
+
uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth: {
|
|
457
|
+
args: [],
|
|
458
|
+
ret: FfiType.UInt16,
|
|
459
|
+
hasRustCallStatus: false
|
|
460
|
+
},
|
|
461
|
+
uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth_for_request: {
|
|
462
|
+
args: [],
|
|
463
|
+
ret: FfiType.UInt16,
|
|
464
|
+
hasRustCallStatus: false
|
|
465
|
+
},
|
|
466
|
+
uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth_with_storage: {
|
|
467
|
+
args: [],
|
|
468
|
+
ret: FfiType.UInt16,
|
|
469
|
+
hasRustCallStatus: false
|
|
470
|
+
},
|
|
471
|
+
uniffi_dbx_tools_databricks_checksum_func_create_provider_auth: {
|
|
472
|
+
args: [],
|
|
473
|
+
ret: FfiType.UInt16,
|
|
474
|
+
hasRustCallStatus: false
|
|
475
|
+
},
|
|
476
|
+
uniffi_dbx_tools_databricks_checksum_func_create_provider_auth_with_storage: {
|
|
477
|
+
args: [],
|
|
478
|
+
ret: FfiType.UInt16,
|
|
479
|
+
hasRustCallStatus: false
|
|
480
|
+
},
|
|
481
|
+
uniffi_dbx_tools_databricks_checksum_func_create_storage_handle: {
|
|
482
|
+
args: [],
|
|
483
|
+
ret: FfiType.UInt16,
|
|
484
|
+
hasRustCallStatus: false
|
|
485
|
+
},
|
|
486
|
+
uniffi_dbx_tools_databricks_checksum_func_credential_key: {
|
|
487
|
+
args: [],
|
|
488
|
+
ret: FfiType.UInt16,
|
|
489
|
+
hasRustCallStatus: false
|
|
490
|
+
},
|
|
281
491
|
uniffi_dbx_tools_databricks_checksum_func_databricks_cli_available: {
|
|
282
492
|
args: [],
|
|
283
493
|
ret: FfiType.UInt16,
|
|
@@ -287,6 +497,91 @@ var DEFINITIONS = {
|
|
|
287
497
|
args: [],
|
|
288
498
|
ret: FfiType.UInt16,
|
|
289
499
|
hasRustCallStatus: false
|
|
500
|
+
},
|
|
501
|
+
uniffi_dbx_tools_databricks_checksum_method_persistentauth_challenge: {
|
|
502
|
+
args: [],
|
|
503
|
+
ret: FfiType.UInt16,
|
|
504
|
+
hasRustCallStatus: false
|
|
505
|
+
},
|
|
506
|
+
uniffi_dbx_tools_databricks_checksum_method_persistentauth_force_refresh_token: {
|
|
507
|
+
args: [],
|
|
508
|
+
ret: FfiType.UInt16,
|
|
509
|
+
hasRustCallStatus: false
|
|
510
|
+
},
|
|
511
|
+
uniffi_dbx_tools_databricks_checksum_method_persistentauth_logout: {
|
|
512
|
+
args: [],
|
|
513
|
+
ret: FfiType.UInt16,
|
|
514
|
+
hasRustCallStatus: false
|
|
515
|
+
},
|
|
516
|
+
uniffi_dbx_tools_databricks_checksum_method_persistentauth_refresh_rejected_token: {
|
|
517
|
+
args: [],
|
|
518
|
+
ret: FfiType.UInt16,
|
|
519
|
+
hasRustCallStatus: false
|
|
520
|
+
},
|
|
521
|
+
uniffi_dbx_tools_databricks_checksum_method_persistentauth_status: {
|
|
522
|
+
args: [],
|
|
523
|
+
ret: FfiType.UInt16,
|
|
524
|
+
hasRustCallStatus: false
|
|
525
|
+
},
|
|
526
|
+
uniffi_dbx_tools_databricks_checksum_method_persistentauth_token: {
|
|
527
|
+
args: [],
|
|
528
|
+
ret: FfiType.UInt16,
|
|
529
|
+
hasRustCallStatus: false
|
|
530
|
+
},
|
|
531
|
+
uniffi_dbx_tools_databricks_checksum_method_providerauth_force_refresh_token: {
|
|
532
|
+
args: [],
|
|
533
|
+
ret: FfiType.UInt16,
|
|
534
|
+
hasRustCallStatus: false
|
|
535
|
+
},
|
|
536
|
+
uniffi_dbx_tools_databricks_checksum_method_providerauth_logout: {
|
|
537
|
+
args: [],
|
|
538
|
+
ret: FfiType.UInt16,
|
|
539
|
+
hasRustCallStatus: false
|
|
540
|
+
},
|
|
541
|
+
uniffi_dbx_tools_databricks_checksum_method_providerauth_refresh_rejected_token: {
|
|
542
|
+
args: [],
|
|
543
|
+
ret: FfiType.UInt16,
|
|
544
|
+
hasRustCallStatus: false
|
|
545
|
+
},
|
|
546
|
+
uniffi_dbx_tools_databricks_checksum_method_providerauth_token: {
|
|
547
|
+
args: [],
|
|
548
|
+
ret: FfiType.UInt16,
|
|
549
|
+
hasRustCallStatus: false
|
|
550
|
+
},
|
|
551
|
+
uniffi_dbx_tools_databricks_checksum_method_storageadapter_load: {
|
|
552
|
+
args: [],
|
|
553
|
+
ret: FfiType.UInt16,
|
|
554
|
+
hasRustCallStatus: false
|
|
555
|
+
},
|
|
556
|
+
uniffi_dbx_tools_databricks_checksum_method_storageadapter_prepare_write: {
|
|
557
|
+
args: [],
|
|
558
|
+
ret: FfiType.UInt16,
|
|
559
|
+
hasRustCallStatus: false
|
|
560
|
+
},
|
|
561
|
+
uniffi_dbx_tools_databricks_checksum_method_storageadapter_save: {
|
|
562
|
+
args: [],
|
|
563
|
+
ret: FfiType.UInt16,
|
|
564
|
+
hasRustCallStatus: false
|
|
565
|
+
},
|
|
566
|
+
uniffi_dbx_tools_databricks_checksum_method_storageadapter_remove: {
|
|
567
|
+
args: [],
|
|
568
|
+
ret: FfiType.UInt16,
|
|
569
|
+
hasRustCallStatus: false
|
|
570
|
+
},
|
|
571
|
+
uniffi_dbx_tools_databricks_checksum_method_storageadapter_acquire_lock: {
|
|
572
|
+
args: [],
|
|
573
|
+
ret: FfiType.UInt16,
|
|
574
|
+
hasRustCallStatus: false
|
|
575
|
+
},
|
|
576
|
+
uniffi_dbx_tools_databricks_checksum_method_storageadapter_release_lock: {
|
|
577
|
+
args: [],
|
|
578
|
+
ret: FfiType.UInt16,
|
|
579
|
+
hasRustCallStatus: false
|
|
580
|
+
},
|
|
581
|
+
uniffi_dbx_tools_databricks_checksum_method_storageadapter_name: {
|
|
582
|
+
args: [],
|
|
583
|
+
ret: FfiType.UInt16,
|
|
584
|
+
hasRustCallStatus: false
|
|
290
585
|
}
|
|
291
586
|
},
|
|
292
587
|
callbacks: {
|
|
@@ -299,12 +594,92 @@ var DEFINITIONS = {
|
|
|
299
594
|
args: [FfiType.Handle],
|
|
300
595
|
ret: FfiType.Void,
|
|
301
596
|
hasRustCallStatus: false
|
|
597
|
+
},
|
|
598
|
+
ForeignFutureCompleterust_buffer: {
|
|
599
|
+
args: [FfiType.Handle, FfiType.Struct("ForeignFutureResultRustBuffer")],
|
|
600
|
+
ret: FfiType.Void,
|
|
601
|
+
hasRustCallStatus: false
|
|
602
|
+
},
|
|
603
|
+
CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod0: {
|
|
604
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
|
|
605
|
+
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
606
|
+
hasRustCallStatus: false,
|
|
607
|
+
outReturn: true
|
|
608
|
+
},
|
|
609
|
+
ForeignFutureCompletevoid: {
|
|
610
|
+
args: [FfiType.Handle, FfiType.Struct("ForeignFutureResultVoid")],
|
|
611
|
+
ret: FfiType.Void,
|
|
612
|
+
hasRustCallStatus: false
|
|
613
|
+
},
|
|
614
|
+
CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod1: {
|
|
615
|
+
args: [FfiType.Handle, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
616
|
+
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
617
|
+
hasRustCallStatus: false,
|
|
618
|
+
outReturn: true
|
|
619
|
+
},
|
|
620
|
+
CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod2: {
|
|
621
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
622
|
+
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
623
|
+
hasRustCallStatus: false,
|
|
624
|
+
outReturn: true
|
|
625
|
+
},
|
|
626
|
+
CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod3: {
|
|
627
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
628
|
+
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
629
|
+
hasRustCallStatus: false,
|
|
630
|
+
outReturn: true
|
|
631
|
+
},
|
|
632
|
+
CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod4: {
|
|
633
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.UInt64, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
|
|
634
|
+
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
635
|
+
hasRustCallStatus: false,
|
|
636
|
+
outReturn: true
|
|
637
|
+
},
|
|
638
|
+
CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod5: {
|
|
639
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
640
|
+
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
641
|
+
hasRustCallStatus: false,
|
|
642
|
+
outReturn: true
|
|
643
|
+
},
|
|
644
|
+
CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod6: {
|
|
645
|
+
args: [FfiType.Handle],
|
|
646
|
+
ret: FfiType.RustBuffer,
|
|
647
|
+
hasRustCallStatus: true,
|
|
648
|
+
outReturn: true
|
|
649
|
+
},
|
|
650
|
+
CallbackInterfaceCloneDbxToolsDatabricks_StorageAdapter: {
|
|
651
|
+
args: [FfiType.Handle],
|
|
652
|
+
ret: FfiType.Handle,
|
|
653
|
+
hasRustCallStatus: false
|
|
654
|
+
},
|
|
655
|
+
CallbackInterfaceFreeDbxToolsDatabricks_StorageAdapter: {
|
|
656
|
+
args: [FfiType.Handle],
|
|
657
|
+
ret: FfiType.Void,
|
|
658
|
+
hasRustCallStatus: false
|
|
302
659
|
}
|
|
303
660
|
},
|
|
304
661
|
structs: {
|
|
305
662
|
ForeignFutureDroppedCallbackStruct: [
|
|
306
663
|
{ name: "handle", type: FfiType.Handle },
|
|
307
664
|
{ name: "free", type: FfiType.Callback("ForeignFutureDroppedCallback") }
|
|
665
|
+
],
|
|
666
|
+
ForeignFutureResultRustBuffer: [
|
|
667
|
+
{ name: "return_value", type: FfiType.RustBuffer },
|
|
668
|
+
{ name: "call_status", type: FfiType.RustCallStatus }
|
|
669
|
+
],
|
|
670
|
+
ForeignFutureResultVoid: [
|
|
671
|
+
{ name: "call_status", type: FfiType.RustCallStatus }
|
|
672
|
+
],
|
|
673
|
+
VTableCallbackInterfaceDbxToolsDatabricksStorageAdapter: [
|
|
674
|
+
{ name: "uniffi_free", type: FfiType.Callback("CallbackInterfaceFreeDbxToolsDatabricks_StorageAdapter") },
|
|
675
|
+
{ name: "uniffi_clone", type: FfiType.Callback("CallbackInterfaceCloneDbxToolsDatabricks_StorageAdapter") },
|
|
676
|
+
{ name: "load", type: FfiType.Callback("CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod0") },
|
|
677
|
+
{ name: "prepare_write", type: FfiType.Callback("CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod1") },
|
|
678
|
+
{ name: "save", type: FfiType.Callback("CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod2") },
|
|
679
|
+
{ name: "remove", type: FfiType.Callback("CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod3") },
|
|
680
|
+
{ name: "acquire_lock", type: FfiType.Callback("CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod4") },
|
|
681
|
+
{ name: "release_lock", type: FfiType.Callback("CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod5") },
|
|
682
|
+
{ name: "name", type: FfiType.Callback("CallbackInterfaceDbxToolsDatabricksStorageAdapterMethod6") }
|
|
308
683
|
]
|
|
309
684
|
}
|
|
310
685
|
};
|
|
@@ -326,22 +701,130 @@ var _bindings_ffi_default = getter;
|
|
|
326
701
|
|
|
327
702
|
// src/_bindings.ts
|
|
328
703
|
import {
|
|
704
|
+
AbstractFfiConverterByteArray,
|
|
705
|
+
FfiConverterArray,
|
|
329
706
|
FfiConverterBool,
|
|
707
|
+
FfiConverterInt64,
|
|
708
|
+
FfiConverterMap,
|
|
709
|
+
FfiConverterObject,
|
|
710
|
+
FfiConverterObjectWithCallbacks,
|
|
711
|
+
FfiConverterOptional,
|
|
712
|
+
FfiConverterUInt64,
|
|
713
|
+
UniffiAbstractObject,
|
|
714
|
+
UniffiError,
|
|
330
715
|
UniffiInternalError,
|
|
716
|
+
UniffiResult,
|
|
331
717
|
UniffiRustCaller,
|
|
332
|
-
|
|
718
|
+
destructorGuardSymbol,
|
|
719
|
+
pointerLiteralSymbol,
|
|
720
|
+
uniffiCreateFfiConverterString,
|
|
721
|
+
uniffiCreateRecord,
|
|
722
|
+
uniffiRustCallAsync,
|
|
723
|
+
uniffiTraitInterfaceCall,
|
|
724
|
+
uniffiTraitInterfaceCallAsyncWithError,
|
|
725
|
+
uniffiTypeNameSymbol
|
|
333
726
|
} from "@ubjs/core";
|
|
334
727
|
var uniffiCaller = new UniffiRustCaller(() => ({ code: 0 }));
|
|
335
728
|
var uniffiIsDebug = typeof process !== "object" || process?.env?.NODE_ENV !== "production" || false;
|
|
336
|
-
function
|
|
337
|
-
|
|
338
|
-
return _bindings_ffi_default().
|
|
339
|
-
}, FfiConverterString.lift.bind(FfiConverterString))
|
|
729
|
+
function canonicalScopes(scopes) {
|
|
730
|
+
const __rb = uniffiCaller.rustCall((callStatus) => {
|
|
731
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_canonical_scopes(FfiConverterSequenceString.lower(scopes, _bindings_ffi_default().rustbuffer_alloc), callStatus);
|
|
732
|
+
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
733
|
+
try {
|
|
734
|
+
return FfiConverterSequenceString.lift(__rb);
|
|
735
|
+
} finally {
|
|
736
|
+
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
737
|
+
}
|
|
340
738
|
}
|
|
341
|
-
function
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
739
|
+
async function createPersistentAuth(options, storage = undefined, asyncOpts_) {
|
|
740
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
741
|
+
try {
|
|
742
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
743
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_create_persistent_auth(FfiConverterTypeDatabricksAuthOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc), FfiConverterOptionalTypeStorage.lower(storage, _bindings_ffi_default().rustbuffer_alloc));
|
|
744
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_u64, FfiConverterTypePersistentAuth.lift.bind(FfiConverterTypePersistentAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
745
|
+
} catch (__error) {
|
|
746
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
747
|
+
__error.stack = __stack;
|
|
748
|
+
}
|
|
749
|
+
throw __error;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
async function createPersistentAuthForRequest(options, requestHeaders, storage = undefined, asyncOpts_) {
|
|
753
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
754
|
+
try {
|
|
755
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
756
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_create_persistent_auth_for_request(FfiConverterTypeDatabricksAuthOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc), FfiConverterMapStringString.lower(requestHeaders, _bindings_ffi_default().rustbuffer_alloc), FfiConverterOptionalTypeStorage.lower(storage, _bindings_ffi_default().rustbuffer_alloc));
|
|
757
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_u64, FfiConverterTypePersistentAuth.lift.bind(FfiConverterTypePersistentAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
758
|
+
} catch (__error) {
|
|
759
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
760
|
+
__error.stack = __stack;
|
|
761
|
+
}
|
|
762
|
+
throw __error;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
async function createPersistentAuthWithStorage(options, storage, asyncOpts_) {
|
|
766
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
767
|
+
try {
|
|
768
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
769
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_create_persistent_auth_with_storage(FfiConverterTypeDatabricksAuthOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc), FfiConverterTypeStorageHandle.lower(storage, _bindings_ffi_default().rustbuffer_alloc));
|
|
770
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_u64, FfiConverterTypePersistentAuth.lift.bind(FfiConverterTypePersistentAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
771
|
+
} catch (__error) {
|
|
772
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
773
|
+
__error.stack = __stack;
|
|
774
|
+
}
|
|
775
|
+
throw __error;
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
async function createProviderAuth(options, asyncOpts_) {
|
|
779
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
780
|
+
try {
|
|
781
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
782
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_create_provider_auth(FfiConverterTypeProviderOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc));
|
|
783
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_u64, FfiConverterTypeProviderAuth.lift.bind(FfiConverterTypeProviderAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
784
|
+
} catch (__error) {
|
|
785
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
786
|
+
__error.stack = __stack;
|
|
787
|
+
}
|
|
788
|
+
throw __error;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
async function createProviderAuthWithStorage(options, storage, asyncOpts_) {
|
|
792
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
793
|
+
try {
|
|
794
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
795
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_create_provider_auth_with_storage(FfiConverterTypeProviderOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc), FfiConverterTypeStorageHandle.lower(storage, _bindings_ffi_default().rustbuffer_alloc));
|
|
796
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_u64, FfiConverterTypeProviderAuth.lift.bind(FfiConverterTypeProviderAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
797
|
+
} catch (__error) {
|
|
798
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
799
|
+
__error.stack = __stack;
|
|
800
|
+
}
|
|
801
|
+
throw __error;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
function createStorageHandle(storage) {
|
|
805
|
+
return FfiConverterTypeStorageHandle.lift(uniffiCaller.rustCall((callStatus) => {
|
|
806
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_create_storage_handle(FfiConverterTypeStorageAdapter.lower(storage, _bindings_ffi_default().rustbuffer_alloc), callStatus);
|
|
807
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
808
|
+
}
|
|
809
|
+
function credentialKey(provider, profile, scopes) {
|
|
810
|
+
const __rb = uniffiCaller.rustCall((callStatus) => {
|
|
811
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_credential_key(FfiConverterString.lower(provider, _bindings_ffi_default().rustbuffer_alloc), FfiConverterOptionalString.lower(profile, _bindings_ffi_default().rustbuffer_alloc), FfiConverterSequenceString.lower(scopes, _bindings_ffi_default().rustbuffer_alloc), callStatus);
|
|
812
|
+
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
813
|
+
try {
|
|
814
|
+
return FfiConverterString.lift(__rb);
|
|
815
|
+
} finally {
|
|
816
|
+
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
function databricksCliAvailable() {
|
|
820
|
+
return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
|
|
821
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_databricks_cli_available(callStatus);
|
|
822
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
823
|
+
}
|
|
824
|
+
function isDatabricksApp() {
|
|
825
|
+
return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
|
|
826
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_func_is_databricks_app(callStatus);
|
|
827
|
+
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
345
828
|
}
|
|
346
829
|
var stringConverter = (() => {
|
|
347
830
|
const encoder = new TextEncoder;
|
|
@@ -358,21 +841,1213 @@ var stringConverter = (() => {
|
|
|
358
841
|
};
|
|
359
842
|
})();
|
|
360
843
|
var FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
844
|
+
var AccessToken = (() => {
|
|
845
|
+
const defaults = () => ({});
|
|
846
|
+
const create = (() => {
|
|
847
|
+
return uniffiCreateRecord(defaults);
|
|
848
|
+
})();
|
|
849
|
+
return Object.freeze({
|
|
850
|
+
create,
|
|
851
|
+
new: create,
|
|
852
|
+
defaults: () => Object.freeze(defaults())
|
|
853
|
+
});
|
|
854
|
+
})();
|
|
855
|
+
var FfiConverterTypeAccessToken = (() => {
|
|
856
|
+
|
|
857
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
858
|
+
readFromCursor(c) {
|
|
859
|
+
return {
|
|
860
|
+
accessToken: FfiConverterString.readFromCursor(c),
|
|
861
|
+
tokenType: FfiConverterString.readFromCursor(c),
|
|
862
|
+
expiry: FfiConverterOptionalString.readFromCursor(c),
|
|
863
|
+
scopes: FfiConverterSequenceString.readFromCursor(c)
|
|
864
|
+
};
|
|
865
|
+
}
|
|
866
|
+
writeIntoCursor(value, c) {
|
|
867
|
+
FfiConverterString.writeIntoCursor(value.accessToken, c);
|
|
868
|
+
FfiConverterString.writeIntoCursor(value.tokenType, c);
|
|
869
|
+
FfiConverterOptionalString.writeIntoCursor(value.expiry, c);
|
|
870
|
+
FfiConverterSequenceString.writeIntoCursor(value.scopes, c);
|
|
871
|
+
}
|
|
872
|
+
allocationSize(value) {
|
|
873
|
+
return FfiConverterString.allocationSize(value.accessToken) + FfiConverterString.allocationSize(value.tokenType) + FfiConverterOptionalString.allocationSize(value.expiry) + FfiConverterSequenceString.allocationSize(value.scopes);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
return new FFIConverter;
|
|
877
|
+
})();
|
|
878
|
+
var AuthOptions = (() => {
|
|
879
|
+
const defaults = () => ({
|
|
880
|
+
refreshBufferSeconds: BigInt("300"),
|
|
881
|
+
lockTimeoutSeconds: BigInt("30"),
|
|
882
|
+
loginTimeoutSeconds: BigInt("3600"),
|
|
883
|
+
callbackImageSrc: undefined
|
|
884
|
+
});
|
|
885
|
+
const create = (() => {
|
|
886
|
+
return uniffiCreateRecord(defaults);
|
|
887
|
+
})();
|
|
888
|
+
return Object.freeze({
|
|
889
|
+
create,
|
|
890
|
+
new: create,
|
|
891
|
+
defaults: () => Object.freeze(defaults())
|
|
892
|
+
});
|
|
893
|
+
})();
|
|
894
|
+
var FfiConverterTypeAuthOptions = (() => {
|
|
895
|
+
|
|
896
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
897
|
+
readFromCursor(c) {
|
|
898
|
+
return {
|
|
899
|
+
refreshBufferSeconds: FfiConverterInt64.readFromCursor(c),
|
|
900
|
+
lockTimeoutSeconds: FfiConverterUInt64.readFromCursor(c),
|
|
901
|
+
loginTimeoutSeconds: FfiConverterUInt64.readFromCursor(c),
|
|
902
|
+
callbackImageSrc: FfiConverterOptionalString.readFromCursor(c)
|
|
903
|
+
};
|
|
904
|
+
}
|
|
905
|
+
writeIntoCursor(value, c) {
|
|
906
|
+
FfiConverterInt64.writeIntoCursor(value.refreshBufferSeconds, c);
|
|
907
|
+
FfiConverterUInt64.writeIntoCursor(value.lockTimeoutSeconds, c);
|
|
908
|
+
FfiConverterUInt64.writeIntoCursor(value.loginTimeoutSeconds, c);
|
|
909
|
+
FfiConverterOptionalString.writeIntoCursor(value.callbackImageSrc, c);
|
|
910
|
+
}
|
|
911
|
+
allocationSize(value) {
|
|
912
|
+
return FfiConverterInt64.allocationSize(value.refreshBufferSeconds) + FfiConverterUInt64.allocationSize(value.lockTimeoutSeconds) + FfiConverterUInt64.allocationSize(value.loginTimeoutSeconds) + FfiConverterOptionalString.allocationSize(value.callbackImageSrc);
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
return new FFIConverter;
|
|
916
|
+
})();
|
|
917
|
+
var DatabricksAuthOptions = (() => {
|
|
918
|
+
const defaults = () => ({
|
|
919
|
+
profile: undefined,
|
|
920
|
+
host: undefined,
|
|
921
|
+
accountId: undefined,
|
|
922
|
+
workspaceId: undefined,
|
|
923
|
+
configFile: undefined,
|
|
924
|
+
clientId: undefined,
|
|
925
|
+
groupId: undefined,
|
|
926
|
+
authType: undefined,
|
|
927
|
+
scopes: undefined,
|
|
928
|
+
target: undefined,
|
|
929
|
+
cacheDir: undefined,
|
|
930
|
+
auth: undefined,
|
|
931
|
+
preferUserToMachine: true
|
|
932
|
+
});
|
|
933
|
+
const create = (() => {
|
|
934
|
+
return uniffiCreateRecord(defaults);
|
|
935
|
+
})();
|
|
936
|
+
return Object.freeze({
|
|
937
|
+
create,
|
|
938
|
+
new: create,
|
|
939
|
+
defaults: () => Object.freeze(defaults())
|
|
940
|
+
});
|
|
941
|
+
})();
|
|
942
|
+
var FfiConverterTypeDatabricksAuthOptions = (() => {
|
|
943
|
+
|
|
944
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
945
|
+
readFromCursor(c) {
|
|
946
|
+
return {
|
|
947
|
+
profile: FfiConverterOptionalString.readFromCursor(c),
|
|
948
|
+
host: FfiConverterOptionalString.readFromCursor(c),
|
|
949
|
+
accountId: FfiConverterOptionalString.readFromCursor(c),
|
|
950
|
+
workspaceId: FfiConverterOptionalString.readFromCursor(c),
|
|
951
|
+
configFile: FfiConverterOptionalString.readFromCursor(c),
|
|
952
|
+
clientId: FfiConverterOptionalString.readFromCursor(c),
|
|
953
|
+
groupId: FfiConverterOptionalString.readFromCursor(c),
|
|
954
|
+
authType: FfiConverterOptionalString.readFromCursor(c),
|
|
955
|
+
scopes: FfiConverterOptionalSequenceString.readFromCursor(c),
|
|
956
|
+
target: FfiConverterOptionalString.readFromCursor(c),
|
|
957
|
+
cacheDir: FfiConverterOptionalString.readFromCursor(c),
|
|
958
|
+
auth: FfiConverterOptionalTypeAuthOptions.readFromCursor(c),
|
|
959
|
+
preferUserToMachine: FfiConverterBool.readFromCursor(c)
|
|
960
|
+
};
|
|
961
|
+
}
|
|
962
|
+
writeIntoCursor(value, c) {
|
|
963
|
+
FfiConverterOptionalString.writeIntoCursor(value.profile, c);
|
|
964
|
+
FfiConverterOptionalString.writeIntoCursor(value.host, c);
|
|
965
|
+
FfiConverterOptionalString.writeIntoCursor(value.accountId, c);
|
|
966
|
+
FfiConverterOptionalString.writeIntoCursor(value.workspaceId, c);
|
|
967
|
+
FfiConverterOptionalString.writeIntoCursor(value.configFile, c);
|
|
968
|
+
FfiConverterOptionalString.writeIntoCursor(value.clientId, c);
|
|
969
|
+
FfiConverterOptionalString.writeIntoCursor(value.groupId, c);
|
|
970
|
+
FfiConverterOptionalString.writeIntoCursor(value.authType, c);
|
|
971
|
+
FfiConverterOptionalSequenceString.writeIntoCursor(value.scopes, c);
|
|
972
|
+
FfiConverterOptionalString.writeIntoCursor(value.target, c);
|
|
973
|
+
FfiConverterOptionalString.writeIntoCursor(value.cacheDir, c);
|
|
974
|
+
FfiConverterOptionalTypeAuthOptions.writeIntoCursor(value.auth, c);
|
|
975
|
+
FfiConverterBool.writeIntoCursor(value.preferUserToMachine, c);
|
|
976
|
+
}
|
|
977
|
+
allocationSize(value) {
|
|
978
|
+
return FfiConverterOptionalString.allocationSize(value.profile) + FfiConverterOptionalString.allocationSize(value.host) + FfiConverterOptionalString.allocationSize(value.accountId) + FfiConverterOptionalString.allocationSize(value.workspaceId) + FfiConverterOptionalString.allocationSize(value.configFile) + FfiConverterOptionalString.allocationSize(value.clientId) + FfiConverterOptionalString.allocationSize(value.groupId) + FfiConverterOptionalString.allocationSize(value.authType) + FfiConverterOptionalSequenceString.allocationSize(value.scopes) + FfiConverterOptionalString.allocationSize(value.target) + FfiConverterOptionalString.allocationSize(value.cacheDir) + FfiConverterOptionalTypeAuthOptions.allocationSize(value.auth) + FfiConverterBool.allocationSize(value.preferUserToMachine);
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
return new FFIConverter;
|
|
982
|
+
})();
|
|
983
|
+
var Storage;
|
|
984
|
+
((Storage2) => {
|
|
985
|
+
Storage2[Storage2["Auto"] = 0] = "Auto";
|
|
986
|
+
Storage2[Storage2["Memory"] = 1] = "Memory";
|
|
987
|
+
Storage2[Storage2["File"] = 2] = "File";
|
|
988
|
+
})(Storage ||= {});
|
|
989
|
+
var FfiConverterTypeStorage = (() => {
|
|
990
|
+
|
|
991
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
992
|
+
readFromCursor(c) {
|
|
993
|
+
switch (c.readI32()) {
|
|
994
|
+
case 1:
|
|
995
|
+
return 0 /* Auto */;
|
|
996
|
+
case 2:
|
|
997
|
+
return 1 /* Memory */;
|
|
998
|
+
case 3:
|
|
999
|
+
return 2 /* File */;
|
|
1000
|
+
default:
|
|
1001
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
writeIntoCursor(value, c) {
|
|
1005
|
+
switch (value) {
|
|
1006
|
+
case 0 /* Auto */:
|
|
1007
|
+
return c.writeI32(1);
|
|
1008
|
+
case 1 /* Memory */:
|
|
1009
|
+
return c.writeI32(2);
|
|
1010
|
+
case 2 /* File */:
|
|
1011
|
+
return c.writeI32(3);
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
allocationSize(value) {
|
|
1015
|
+
return 4;
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
return new FFIConverter;
|
|
1019
|
+
})();
|
|
1020
|
+
var DatabricksAuthStatus = (() => {
|
|
1021
|
+
const defaults = () => ({});
|
|
1022
|
+
const create = (() => {
|
|
1023
|
+
return uniffiCreateRecord(defaults);
|
|
1024
|
+
})();
|
|
1025
|
+
return Object.freeze({
|
|
1026
|
+
create,
|
|
1027
|
+
new: create,
|
|
1028
|
+
defaults: () => Object.freeze(defaults())
|
|
1029
|
+
});
|
|
1030
|
+
})();
|
|
1031
|
+
var FfiConverterTypeDatabricksAuthStatus = (() => {
|
|
1032
|
+
|
|
1033
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1034
|
+
readFromCursor(c) {
|
|
1035
|
+
return {
|
|
1036
|
+
profile: FfiConverterString.readFromCursor(c),
|
|
1037
|
+
host: FfiConverterString.readFromCursor(c),
|
|
1038
|
+
storage: FfiConverterTypeStorage.readFromCursor(c)
|
|
1039
|
+
};
|
|
1040
|
+
}
|
|
1041
|
+
writeIntoCursor(value, c) {
|
|
1042
|
+
FfiConverterString.writeIntoCursor(value.profile, c);
|
|
1043
|
+
FfiConverterString.writeIntoCursor(value.host, c);
|
|
1044
|
+
FfiConverterTypeStorage.writeIntoCursor(value.storage, c);
|
|
1045
|
+
}
|
|
1046
|
+
allocationSize(value) {
|
|
1047
|
+
return FfiConverterString.allocationSize(value.profile) + FfiConverterString.allocationSize(value.host) + FfiConverterTypeStorage.allocationSize(value.storage);
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
return new FFIConverter;
|
|
1051
|
+
})();
|
|
1052
|
+
var OAuthGrant;
|
|
1053
|
+
((OAuthGrant2) => {
|
|
1054
|
+
OAuthGrant2[OAuthGrant2["AuthorizationCode"] = 0] = "AuthorizationCode";
|
|
1055
|
+
OAuthGrant2[OAuthGrant2["ClientCredentials"] = 1] = "ClientCredentials";
|
|
1056
|
+
})(OAuthGrant ||= {});
|
|
1057
|
+
var FfiConverterTypeOAuthGrant = (() => {
|
|
1058
|
+
|
|
1059
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1060
|
+
readFromCursor(c) {
|
|
1061
|
+
switch (c.readI32()) {
|
|
1062
|
+
case 1:
|
|
1063
|
+
return 0 /* AuthorizationCode */;
|
|
1064
|
+
case 2:
|
|
1065
|
+
return 1 /* ClientCredentials */;
|
|
1066
|
+
default:
|
|
1067
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
writeIntoCursor(value, c) {
|
|
1071
|
+
switch (value) {
|
|
1072
|
+
case 0 /* AuthorizationCode */:
|
|
1073
|
+
return c.writeI32(1);
|
|
1074
|
+
case 1 /* ClientCredentials */:
|
|
1075
|
+
return c.writeI32(2);
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
allocationSize(value) {
|
|
1079
|
+
return 4;
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
return new FFIConverter;
|
|
1083
|
+
})();
|
|
1084
|
+
var FileLayout;
|
|
1085
|
+
((FileLayout2) => {
|
|
1086
|
+
FileLayout2[FileLayout2["Single"] = 0] = "Single";
|
|
1087
|
+
FileLayout2[FileLayout2["PerCredential"] = 1] = "PerCredential";
|
|
1088
|
+
})(FileLayout ||= {});
|
|
1089
|
+
var FfiConverterTypeFileLayout = (() => {
|
|
1090
|
+
|
|
1091
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1092
|
+
readFromCursor(c) {
|
|
1093
|
+
switch (c.readI32()) {
|
|
1094
|
+
case 1:
|
|
1095
|
+
return 0 /* Single */;
|
|
1096
|
+
case 2:
|
|
1097
|
+
return 1 /* PerCredential */;
|
|
1098
|
+
default:
|
|
1099
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
writeIntoCursor(value, c) {
|
|
1103
|
+
switch (value) {
|
|
1104
|
+
case 0 /* Single */:
|
|
1105
|
+
return c.writeI32(1);
|
|
1106
|
+
case 1 /* PerCredential */:
|
|
1107
|
+
return c.writeI32(2);
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
allocationSize(value) {
|
|
1111
|
+
return 4;
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
return new FFIConverter;
|
|
1115
|
+
})();
|
|
1116
|
+
var ProviderOptions = (() => {
|
|
1117
|
+
const defaults = () => ({
|
|
1118
|
+
authorizationEndpoint: undefined,
|
|
1119
|
+
clientSecret: undefined,
|
|
1120
|
+
profile: undefined,
|
|
1121
|
+
scopes: [],
|
|
1122
|
+
grant: undefined,
|
|
1123
|
+
cacheDir: undefined,
|
|
1124
|
+
storage: undefined,
|
|
1125
|
+
fileLayout: undefined,
|
|
1126
|
+
auth: undefined
|
|
1127
|
+
});
|
|
1128
|
+
const create = (() => {
|
|
1129
|
+
return uniffiCreateRecord(defaults);
|
|
1130
|
+
})();
|
|
1131
|
+
return Object.freeze({
|
|
1132
|
+
create,
|
|
1133
|
+
new: create,
|
|
1134
|
+
defaults: () => Object.freeze(defaults())
|
|
1135
|
+
});
|
|
1136
|
+
})();
|
|
1137
|
+
var FfiConverterTypeProviderOptions = (() => {
|
|
1138
|
+
|
|
1139
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1140
|
+
readFromCursor(c) {
|
|
1141
|
+
return {
|
|
1142
|
+
provider: FfiConverterString.readFromCursor(c),
|
|
1143
|
+
clientId: FfiConverterString.readFromCursor(c),
|
|
1144
|
+
tokenEndpoint: FfiConverterString.readFromCursor(c),
|
|
1145
|
+
authorizationEndpoint: FfiConverterOptionalString.readFromCursor(c),
|
|
1146
|
+
clientSecret: FfiConverterOptionalString.readFromCursor(c),
|
|
1147
|
+
profile: FfiConverterOptionalString.readFromCursor(c),
|
|
1148
|
+
scopes: FfiConverterSequenceString.readFromCursor(c),
|
|
1149
|
+
grant: FfiConverterOptionalTypeOAuthGrant.readFromCursor(c),
|
|
1150
|
+
cacheDir: FfiConverterOptionalString.readFromCursor(c),
|
|
1151
|
+
storage: FfiConverterOptionalTypeStorage.readFromCursor(c),
|
|
1152
|
+
fileLayout: FfiConverterOptionalTypeFileLayout.readFromCursor(c),
|
|
1153
|
+
auth: FfiConverterOptionalTypeAuthOptions.readFromCursor(c)
|
|
1154
|
+
};
|
|
1155
|
+
}
|
|
1156
|
+
writeIntoCursor(value, c) {
|
|
1157
|
+
FfiConverterString.writeIntoCursor(value.provider, c);
|
|
1158
|
+
FfiConverterString.writeIntoCursor(value.clientId, c);
|
|
1159
|
+
FfiConverterString.writeIntoCursor(value.tokenEndpoint, c);
|
|
1160
|
+
FfiConverterOptionalString.writeIntoCursor(value.authorizationEndpoint, c);
|
|
1161
|
+
FfiConverterOptionalString.writeIntoCursor(value.clientSecret, c);
|
|
1162
|
+
FfiConverterOptionalString.writeIntoCursor(value.profile, c);
|
|
1163
|
+
FfiConverterSequenceString.writeIntoCursor(value.scopes, c);
|
|
1164
|
+
FfiConverterOptionalTypeOAuthGrant.writeIntoCursor(value.grant, c);
|
|
1165
|
+
FfiConverterOptionalString.writeIntoCursor(value.cacheDir, c);
|
|
1166
|
+
FfiConverterOptionalTypeStorage.writeIntoCursor(value.storage, c);
|
|
1167
|
+
FfiConverterOptionalTypeFileLayout.writeIntoCursor(value.fileLayout, c);
|
|
1168
|
+
FfiConverterOptionalTypeAuthOptions.writeIntoCursor(value.auth, c);
|
|
1169
|
+
}
|
|
1170
|
+
allocationSize(value) {
|
|
1171
|
+
return FfiConverterString.allocationSize(value.provider) + FfiConverterString.allocationSize(value.clientId) + FfiConverterString.allocationSize(value.tokenEndpoint) + FfiConverterOptionalString.allocationSize(value.authorizationEndpoint) + FfiConverterOptionalString.allocationSize(value.clientSecret) + FfiConverterOptionalString.allocationSize(value.profile) + FfiConverterSequenceString.allocationSize(value.scopes) + FfiConverterOptionalTypeOAuthGrant.allocationSize(value.grant) + FfiConverterOptionalString.allocationSize(value.cacheDir) + FfiConverterOptionalTypeStorage.allocationSize(value.storage) + FfiConverterOptionalTypeFileLayout.allocationSize(value.fileLayout) + FfiConverterOptionalTypeAuthOptions.allocationSize(value.auth);
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
return new FFIConverter;
|
|
1175
|
+
})();
|
|
1176
|
+
var AuthError_Tags;
|
|
1177
|
+
((AuthError_Tags2) => {
|
|
1178
|
+
AuthError_Tags2["Failure"] = "Failure";
|
|
1179
|
+
})(AuthError_Tags ||= {});
|
|
1180
|
+
var AuthError = (() => {
|
|
1181
|
+
|
|
1182
|
+
class Failure_ extends UniffiError {
|
|
1183
|
+
[uniffiTypeNameSymbol] = "AuthError";
|
|
1184
|
+
tag = "Failure" /* Failure */;
|
|
1185
|
+
inner;
|
|
1186
|
+
constructor(inner) {
|
|
1187
|
+
super("AuthError", "Failure");
|
|
1188
|
+
this.inner = Object.freeze(inner);
|
|
1189
|
+
}
|
|
1190
|
+
static new(inner) {
|
|
1191
|
+
return new Failure_(inner);
|
|
1192
|
+
}
|
|
1193
|
+
static instanceOf(obj) {
|
|
1194
|
+
return obj.tag === "Failure" /* Failure */;
|
|
1195
|
+
}
|
|
1196
|
+
static hasInner(obj) {
|
|
1197
|
+
return Failure_.instanceOf(obj);
|
|
1198
|
+
}
|
|
1199
|
+
static getInner(obj) {
|
|
1200
|
+
return obj.inner;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
function instanceOf(obj) {
|
|
1204
|
+
return obj[uniffiTypeNameSymbol] === "AuthError";
|
|
1205
|
+
}
|
|
1206
|
+
return Object.freeze({
|
|
1207
|
+
instanceOf,
|
|
1208
|
+
Failure: Failure_
|
|
1209
|
+
});
|
|
1210
|
+
})();
|
|
1211
|
+
var FfiConverterTypeAuthError = (() => {
|
|
1212
|
+
|
|
1213
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1214
|
+
readFromCursor(c) {
|
|
1215
|
+
switch (c.readI32()) {
|
|
1216
|
+
case 1:
|
|
1217
|
+
return new AuthError.Failure({ message: FfiConverterString.readFromCursor(c) });
|
|
1218
|
+
default:
|
|
1219
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
writeIntoCursor(value, c) {
|
|
1223
|
+
switch (value.tag) {
|
|
1224
|
+
case "Failure" /* Failure */: {
|
|
1225
|
+
c.writeI32(1);
|
|
1226
|
+
const inner = value.inner;
|
|
1227
|
+
FfiConverterString.writeIntoCursor(inner.message, c);
|
|
1228
|
+
return;
|
|
1229
|
+
}
|
|
1230
|
+
default:
|
|
1231
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
allocationSize(value) {
|
|
1235
|
+
switch (value.tag) {
|
|
1236
|
+
case "Failure" /* Failure */: {
|
|
1237
|
+
const inner = value.inner;
|
|
1238
|
+
let size = 4;
|
|
1239
|
+
size += FfiConverterString.allocationSize(inner.message);
|
|
1240
|
+
return size;
|
|
1241
|
+
}
|
|
1242
|
+
default:
|
|
1243
|
+
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
return new FFIConverter;
|
|
1248
|
+
})();
|
|
1249
|
+
|
|
1250
|
+
class PersistentAuth extends UniffiAbstractObject {
|
|
1251
|
+
[uniffiTypeNameSymbol] = "PersistentAuth";
|
|
1252
|
+
[destructorGuardSymbol];
|
|
1253
|
+
[pointerLiteralSymbol];
|
|
1254
|
+
constructor(pointer) {
|
|
1255
|
+
super();
|
|
1256
|
+
this[pointerLiteralSymbol] = pointer;
|
|
1257
|
+
this[destructorGuardSymbol] = uniffiTypePersistentAuthObjectFactory.bless(pointer);
|
|
1258
|
+
}
|
|
1259
|
+
async challenge(asyncOpts_) {
|
|
1260
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1261
|
+
try {
|
|
1262
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1263
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_persistentauth_challenge(uniffiTypePersistentAuthObjectFactory.clonePointer(this));
|
|
1264
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1265
|
+
} catch (__error) {
|
|
1266
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1267
|
+
__error.stack = __stack;
|
|
1268
|
+
}
|
|
1269
|
+
throw __error;
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
async forceRefreshToken(asyncOpts_) {
|
|
1273
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1274
|
+
try {
|
|
1275
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1276
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_persistentauth_force_refresh_token(uniffiTypePersistentAuthObjectFactory.clonePointer(this));
|
|
1277
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1278
|
+
try {
|
|
1279
|
+
return FfiConverterTypeAccessToken.lift(__rb);
|
|
1280
|
+
} finally {
|
|
1281
|
+
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1282
|
+
}
|
|
1283
|
+
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1284
|
+
} catch (__error) {
|
|
1285
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1286
|
+
__error.stack = __stack;
|
|
1287
|
+
}
|
|
1288
|
+
throw __error;
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
async logout(asyncOpts_) {
|
|
1292
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1293
|
+
try {
|
|
1294
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1295
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_persistentauth_logout(uniffiTypePersistentAuthObjectFactory.clonePointer(this));
|
|
1296
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1297
|
+
} catch (__error) {
|
|
1298
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1299
|
+
__error.stack = __stack;
|
|
1300
|
+
}
|
|
1301
|
+
throw __error;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
async refreshRejectedToken(staleAccessToken, asyncOpts_) {
|
|
1305
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1306
|
+
try {
|
|
1307
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1308
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_persistentauth_refresh_rejected_token(uniffiTypePersistentAuthObjectFactory.clonePointer(this), FfiConverterString.lower(staleAccessToken, _bindings_ffi_default().rustbuffer_alloc));
|
|
1309
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1310
|
+
try {
|
|
1311
|
+
return FfiConverterTypeAccessToken.lift(__rb);
|
|
1312
|
+
} finally {
|
|
1313
|
+
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1314
|
+
}
|
|
1315
|
+
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1316
|
+
} catch (__error) {
|
|
1317
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1318
|
+
__error.stack = __stack;
|
|
1319
|
+
}
|
|
1320
|
+
throw __error;
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
status() {
|
|
1324
|
+
const __rb = uniffiCaller.rustCall((callStatus) => {
|
|
1325
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_persistentauth_status(uniffiTypePersistentAuthObjectFactory.clonePointer(this), callStatus);
|
|
1326
|
+
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
1327
|
+
try {
|
|
1328
|
+
return FfiConverterTypeDatabricksAuthStatus.lift(__rb);
|
|
1329
|
+
} finally {
|
|
1330
|
+
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
async token(login = undefined, asyncOpts_) {
|
|
1334
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1335
|
+
try {
|
|
1336
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1337
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_persistentauth_token(uniffiTypePersistentAuthObjectFactory.clonePointer(this), FfiConverterOptionalBoolean.lower(login, _bindings_ffi_default().rustbuffer_alloc));
|
|
1338
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1339
|
+
try {
|
|
1340
|
+
return FfiConverterTypeAccessToken.lift(__rb);
|
|
1341
|
+
} finally {
|
|
1342
|
+
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1343
|
+
}
|
|
1344
|
+
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1345
|
+
} catch (__error) {
|
|
1346
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1347
|
+
__error.stack = __stack;
|
|
1348
|
+
}
|
|
1349
|
+
throw __error;
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1352
|
+
uniffiDestroy() {
|
|
1353
|
+
const ptr = this[destructorGuardSymbol];
|
|
1354
|
+
if (ptr !== undefined) {
|
|
1355
|
+
const pointer = uniffiTypePersistentAuthObjectFactory.pointer(this);
|
|
1356
|
+
uniffiTypePersistentAuthObjectFactory.freePointer(pointer);
|
|
1357
|
+
uniffiTypePersistentAuthObjectFactory.unbless(ptr);
|
|
1358
|
+
delete this[destructorGuardSymbol];
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
static instanceOf(obj_) {
|
|
1362
|
+
return uniffiTypePersistentAuthObjectFactory.isConcreteType(obj_);
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
var uniffiTypePersistentAuthObjectFactory = (() => {
|
|
1366
|
+
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
1367
|
+
uniffiTypePersistentAuthObjectFactory.freePointer(heldValue);
|
|
1368
|
+
}) : null;
|
|
1369
|
+
return {
|
|
1370
|
+
create(pointer) {
|
|
1371
|
+
const instance = Object.create(PersistentAuth.prototype);
|
|
1372
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
1373
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1374
|
+
instance[uniffiTypeNameSymbol] = "PersistentAuth";
|
|
1375
|
+
return instance;
|
|
1376
|
+
},
|
|
1377
|
+
bless(p) {
|
|
1378
|
+
const ptr = {
|
|
1379
|
+
p,
|
|
1380
|
+
markDestroyed: () => {
|
|
1381
|
+
return;
|
|
1382
|
+
}
|
|
1383
|
+
};
|
|
1384
|
+
if (registry) {
|
|
1385
|
+
registry.register(ptr, p, ptr);
|
|
1386
|
+
}
|
|
1387
|
+
return ptr;
|
|
1388
|
+
},
|
|
1389
|
+
unbless(ptr_) {
|
|
1390
|
+
if (registry) {
|
|
1391
|
+
registry.unregister(ptr_);
|
|
1392
|
+
}
|
|
1393
|
+
},
|
|
1394
|
+
pointer(obj_) {
|
|
1395
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1396
|
+
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
1397
|
+
}
|
|
1398
|
+
return obj_[pointerLiteralSymbol];
|
|
1399
|
+
},
|
|
1400
|
+
clonePointer(obj_) {
|
|
1401
|
+
const pointer = this.pointer(obj_);
|
|
1402
|
+
return uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_clone_persistentauth(pointer, callStatus), FfiConverterString.lift);
|
|
1403
|
+
},
|
|
1404
|
+
freePointer(pointer) {
|
|
1405
|
+
uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_free_persistentauth(pointer, callStatus), FfiConverterString.lift);
|
|
1406
|
+
},
|
|
1407
|
+
isConcreteType(obj_) {
|
|
1408
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "PersistentAuth";
|
|
1409
|
+
}
|
|
1410
|
+
};
|
|
1411
|
+
})();
|
|
1412
|
+
var FfiConverterTypePersistentAuth = new FfiConverterObject(uniffiTypePersistentAuthObjectFactory);
|
|
1413
|
+
|
|
1414
|
+
class ProviderAuth extends UniffiAbstractObject {
|
|
1415
|
+
[uniffiTypeNameSymbol] = "ProviderAuth";
|
|
1416
|
+
[destructorGuardSymbol];
|
|
1417
|
+
[pointerLiteralSymbol];
|
|
1418
|
+
constructor(pointer) {
|
|
1419
|
+
super();
|
|
1420
|
+
this[pointerLiteralSymbol] = pointer;
|
|
1421
|
+
this[destructorGuardSymbol] = uniffiTypeProviderAuthObjectFactory.bless(pointer);
|
|
1422
|
+
}
|
|
1423
|
+
async forceRefreshToken(asyncOpts_) {
|
|
1424
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1425
|
+
try {
|
|
1426
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1427
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_providerauth_force_refresh_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this));
|
|
1428
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1429
|
+
try {
|
|
1430
|
+
return FfiConverterTypeAccessToken.lift(__rb);
|
|
1431
|
+
} finally {
|
|
1432
|
+
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1433
|
+
}
|
|
1434
|
+
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1435
|
+
} catch (__error) {
|
|
1436
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1437
|
+
__error.stack = __stack;
|
|
1438
|
+
}
|
|
1439
|
+
throw __error;
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
async logout(asyncOpts_) {
|
|
1443
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1444
|
+
try {
|
|
1445
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1446
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_providerauth_logout(uniffiTypeProviderAuthObjectFactory.clonePointer(this));
|
|
1447
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1448
|
+
} catch (__error) {
|
|
1449
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1450
|
+
__error.stack = __stack;
|
|
1451
|
+
}
|
|
1452
|
+
throw __error;
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
async refreshRejectedToken(staleAccessToken, asyncOpts_) {
|
|
1456
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1457
|
+
try {
|
|
1458
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1459
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_providerauth_refresh_rejected_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this), FfiConverterString.lower(staleAccessToken, _bindings_ffi_default().rustbuffer_alloc));
|
|
1460
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1461
|
+
try {
|
|
1462
|
+
return FfiConverterTypeAccessToken.lift(__rb);
|
|
1463
|
+
} finally {
|
|
1464
|
+
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1465
|
+
}
|
|
1466
|
+
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1467
|
+
} catch (__error) {
|
|
1468
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1469
|
+
__error.stack = __stack;
|
|
1470
|
+
}
|
|
1471
|
+
throw __error;
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
async token(login = undefined, asyncOpts_) {
|
|
1475
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1476
|
+
try {
|
|
1477
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1478
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_providerauth_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this), FfiConverterOptionalBoolean.lower(login, _bindings_ffi_default().rustbuffer_alloc));
|
|
1479
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1480
|
+
try {
|
|
1481
|
+
return FfiConverterTypeAccessToken.lift(__rb);
|
|
1482
|
+
} finally {
|
|
1483
|
+
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1484
|
+
}
|
|
1485
|
+
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1486
|
+
} catch (__error) {
|
|
1487
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1488
|
+
__error.stack = __stack;
|
|
1489
|
+
}
|
|
1490
|
+
throw __error;
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
uniffiDestroy() {
|
|
1494
|
+
const ptr = this[destructorGuardSymbol];
|
|
1495
|
+
if (ptr !== undefined) {
|
|
1496
|
+
const pointer = uniffiTypeProviderAuthObjectFactory.pointer(this);
|
|
1497
|
+
uniffiTypeProviderAuthObjectFactory.freePointer(pointer);
|
|
1498
|
+
uniffiTypeProviderAuthObjectFactory.unbless(ptr);
|
|
1499
|
+
delete this[destructorGuardSymbol];
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
static instanceOf(obj_) {
|
|
1503
|
+
return uniffiTypeProviderAuthObjectFactory.isConcreteType(obj_);
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
var uniffiTypeProviderAuthObjectFactory = (() => {
|
|
1507
|
+
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
1508
|
+
uniffiTypeProviderAuthObjectFactory.freePointer(heldValue);
|
|
1509
|
+
}) : null;
|
|
1510
|
+
return {
|
|
1511
|
+
create(pointer) {
|
|
1512
|
+
const instance = Object.create(ProviderAuth.prototype);
|
|
1513
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
1514
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1515
|
+
instance[uniffiTypeNameSymbol] = "ProviderAuth";
|
|
1516
|
+
return instance;
|
|
1517
|
+
},
|
|
1518
|
+
bless(p) {
|
|
1519
|
+
const ptr = {
|
|
1520
|
+
p,
|
|
1521
|
+
markDestroyed: () => {
|
|
1522
|
+
return;
|
|
1523
|
+
}
|
|
1524
|
+
};
|
|
1525
|
+
if (registry) {
|
|
1526
|
+
registry.register(ptr, p, ptr);
|
|
1527
|
+
}
|
|
1528
|
+
return ptr;
|
|
1529
|
+
},
|
|
1530
|
+
unbless(ptr_) {
|
|
1531
|
+
if (registry) {
|
|
1532
|
+
registry.unregister(ptr_);
|
|
1533
|
+
}
|
|
1534
|
+
},
|
|
1535
|
+
pointer(obj_) {
|
|
1536
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1537
|
+
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
1538
|
+
}
|
|
1539
|
+
return obj_[pointerLiteralSymbol];
|
|
1540
|
+
},
|
|
1541
|
+
clonePointer(obj_) {
|
|
1542
|
+
const pointer = this.pointer(obj_);
|
|
1543
|
+
return uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_clone_providerauth(pointer, callStatus), FfiConverterString.lift);
|
|
1544
|
+
},
|
|
1545
|
+
freePointer(pointer) {
|
|
1546
|
+
uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_free_providerauth(pointer, callStatus), FfiConverterString.lift);
|
|
1547
|
+
},
|
|
1548
|
+
isConcreteType(obj_) {
|
|
1549
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "ProviderAuth";
|
|
1550
|
+
}
|
|
1551
|
+
};
|
|
1552
|
+
})();
|
|
1553
|
+
var FfiConverterTypeProviderAuth = new FfiConverterObject(uniffiTypeProviderAuthObjectFactory);
|
|
1554
|
+
|
|
1555
|
+
class StorageAdapterImpl extends UniffiAbstractObject {
|
|
1556
|
+
[uniffiTypeNameSymbol] = "StorageAdapterImpl";
|
|
1557
|
+
[destructorGuardSymbol];
|
|
1558
|
+
[pointerLiteralSymbol];
|
|
1559
|
+
constructor(pointer) {
|
|
1560
|
+
super();
|
|
1561
|
+
this[pointerLiteralSymbol] = pointer;
|
|
1562
|
+
this[destructorGuardSymbol] = uniffiTypeStorageAdapterImplObjectFactory.bless(pointer);
|
|
1563
|
+
}
|
|
1564
|
+
async load(profile, asyncOpts_) {
|
|
1565
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1566
|
+
try {
|
|
1567
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1568
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_storageadapter_load(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc));
|
|
1569
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1570
|
+
try {
|
|
1571
|
+
return FfiConverterOptionalString.lift(__rb);
|
|
1572
|
+
} finally {
|
|
1573
|
+
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1574
|
+
}
|
|
1575
|
+
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1576
|
+
} catch (__error) {
|
|
1577
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1578
|
+
__error.stack = __stack;
|
|
1579
|
+
}
|
|
1580
|
+
throw __error;
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
async prepareWrite(asyncOpts_) {
|
|
1584
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1585
|
+
try {
|
|
1586
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1587
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_storageadapter_prepare_write(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this));
|
|
1588
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1589
|
+
} catch (__error) {
|
|
1590
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1591
|
+
__error.stack = __stack;
|
|
1592
|
+
}
|
|
1593
|
+
throw __error;
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
async save(profile, token, asyncOpts_) {
|
|
1597
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1598
|
+
try {
|
|
1599
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1600
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_storageadapter_save(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc), FfiConverterString.lower(token, _bindings_ffi_default().rustbuffer_alloc));
|
|
1601
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1602
|
+
} catch (__error) {
|
|
1603
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1604
|
+
__error.stack = __stack;
|
|
1605
|
+
}
|
|
1606
|
+
throw __error;
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
async remove(profile, asyncOpts_) {
|
|
1610
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1611
|
+
try {
|
|
1612
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1613
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_storageadapter_remove(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc));
|
|
1614
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1615
|
+
} catch (__error) {
|
|
1616
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1617
|
+
__error.stack = __stack;
|
|
1618
|
+
}
|
|
1619
|
+
throw __error;
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
async acquireLock(profile, timeoutMillis, asyncOpts_) {
|
|
1623
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1624
|
+
try {
|
|
1625
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1626
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_storageadapter_acquire_lock(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc), FfiConverterUInt64.lower(timeoutMillis, _bindings_ffi_default().rustbuffer_alloc));
|
|
1627
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_rust_buffer, (__rb) => {
|
|
1628
|
+
try {
|
|
1629
|
+
return FfiConverterString.lift(__rb);
|
|
1630
|
+
} finally {
|
|
1631
|
+
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1632
|
+
}
|
|
1633
|
+
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1634
|
+
} catch (__error) {
|
|
1635
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1636
|
+
__error.stack = __stack;
|
|
1637
|
+
}
|
|
1638
|
+
throw __error;
|
|
1639
|
+
}
|
|
1640
|
+
}
|
|
1641
|
+
async releaseLock(lease, asyncOpts_) {
|
|
1642
|
+
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1643
|
+
try {
|
|
1644
|
+
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1645
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_storageadapter_release_lock(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(lease, _bindings_ffi_default().rustbuffer_alloc));
|
|
1646
|
+
}, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_databricks_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1647
|
+
} catch (__error) {
|
|
1648
|
+
if (uniffiIsDebug && __error instanceof Error) {
|
|
1649
|
+
__error.stack = __stack;
|
|
1650
|
+
}
|
|
1651
|
+
throw __error;
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
name() {
|
|
1655
|
+
const __rb = uniffiCaller.rustCall((callStatus) => {
|
|
1656
|
+
return _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_method_storageadapter_name(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), callStatus);
|
|
1657
|
+
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
1658
|
+
try {
|
|
1659
|
+
return FfiConverterString.lift(__rb);
|
|
1660
|
+
} finally {
|
|
1661
|
+
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
uniffiDestroy() {
|
|
1665
|
+
const ptr = this[destructorGuardSymbol];
|
|
1666
|
+
if (ptr !== undefined) {
|
|
1667
|
+
const pointer = uniffiTypeStorageAdapterImplObjectFactory.pointer(this);
|
|
1668
|
+
uniffiTypeStorageAdapterImplObjectFactory.freePointer(pointer);
|
|
1669
|
+
uniffiTypeStorageAdapterImplObjectFactory.unbless(ptr);
|
|
1670
|
+
delete this[destructorGuardSymbol];
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
static instanceOf(obj_) {
|
|
1674
|
+
return uniffiTypeStorageAdapterImplObjectFactory.isConcreteType(obj_);
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
var uniffiTypeStorageAdapterImplObjectFactory = (() => {
|
|
1678
|
+
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
1679
|
+
uniffiTypeStorageAdapterImplObjectFactory.freePointer(heldValue);
|
|
1680
|
+
}) : null;
|
|
1681
|
+
return {
|
|
1682
|
+
create(pointer) {
|
|
1683
|
+
const instance = Object.create(StorageAdapterImpl.prototype);
|
|
1684
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
1685
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1686
|
+
instance[uniffiTypeNameSymbol] = "StorageAdapterImpl";
|
|
1687
|
+
return instance;
|
|
1688
|
+
},
|
|
1689
|
+
bless(p) {
|
|
1690
|
+
const ptr = {
|
|
1691
|
+
p,
|
|
1692
|
+
markDestroyed: () => {
|
|
1693
|
+
return;
|
|
1694
|
+
}
|
|
1695
|
+
};
|
|
1696
|
+
if (registry) {
|
|
1697
|
+
registry.register(ptr, p, ptr);
|
|
1698
|
+
}
|
|
1699
|
+
return ptr;
|
|
1700
|
+
},
|
|
1701
|
+
unbless(ptr_) {
|
|
1702
|
+
if (registry) {
|
|
1703
|
+
registry.unregister(ptr_);
|
|
1704
|
+
}
|
|
1705
|
+
},
|
|
1706
|
+
pointer(obj_) {
|
|
1707
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1708
|
+
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
1709
|
+
}
|
|
1710
|
+
return obj_[pointerLiteralSymbol];
|
|
1711
|
+
},
|
|
1712
|
+
clonePointer(obj_) {
|
|
1713
|
+
const pointer = this.pointer(obj_);
|
|
1714
|
+
return uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_clone_storageadapter(pointer, callStatus), FfiConverterString.lift);
|
|
1715
|
+
},
|
|
1716
|
+
freePointer(pointer) {
|
|
1717
|
+
uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_free_storageadapter(pointer, callStatus), FfiConverterString.lift);
|
|
1718
|
+
},
|
|
1719
|
+
isConcreteType(obj_) {
|
|
1720
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "StorageAdapterImpl";
|
|
1721
|
+
}
|
|
1722
|
+
};
|
|
1723
|
+
})();
|
|
1724
|
+
var FfiConverterTypeStorageAdapter = new FfiConverterObjectWithCallbacks(uniffiTypeStorageAdapterImplObjectFactory);
|
|
1725
|
+
var uniffiCallbackInterfaceStorageAdapter = {
|
|
1726
|
+
vtable: {
|
|
1727
|
+
load: (uniffiHandle, profile, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1728
|
+
const uniffiMakeCall = async (signal) => {
|
|
1729
|
+
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1730
|
+
return await jsCallback.load(FfiConverterString.lift(profile), { signal });
|
|
1731
|
+
};
|
|
1732
|
+
const uniffiHandleSuccess = (returnValue) => {
|
|
1733
|
+
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1734
|
+
return_value: FfiConverterOptionalString.lower(returnValue, _bindings_ffi_default().rustbuffer_alloc),
|
|
1735
|
+
call_status: uniffiCaller.createCallStatus()
|
|
1736
|
+
});
|
|
1737
|
+
};
|
|
1738
|
+
const uniffiHandleError = (code, errorBuf) => {
|
|
1739
|
+
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1740
|
+
return_value: new Uint8Array(0),
|
|
1741
|
+
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1742
|
+
});
|
|
1743
|
+
};
|
|
1744
|
+
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1745
|
+
return uniffiForeignFuture;
|
|
1746
|
+
},
|
|
1747
|
+
prepare_write: (uniffiHandle, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1748
|
+
const uniffiMakeCall = async (signal) => {
|
|
1749
|
+
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1750
|
+
return await jsCallback.prepareWrite({ signal });
|
|
1751
|
+
};
|
|
1752
|
+
const uniffiHandleSuccess = (returnValue) => {
|
|
1753
|
+
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1754
|
+
call_status: uniffiCaller.createCallStatus()
|
|
1755
|
+
});
|
|
1756
|
+
};
|
|
1757
|
+
const uniffiHandleError = (code, errorBuf) => {
|
|
1758
|
+
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1759
|
+
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1760
|
+
});
|
|
1761
|
+
};
|
|
1762
|
+
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1763
|
+
return uniffiForeignFuture;
|
|
1764
|
+
},
|
|
1765
|
+
save: (uniffiHandle, profile, token, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1766
|
+
const uniffiMakeCall = async (signal) => {
|
|
1767
|
+
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1768
|
+
return await jsCallback.save(FfiConverterString.lift(profile), FfiConverterString.lift(token), { signal });
|
|
1769
|
+
};
|
|
1770
|
+
const uniffiHandleSuccess = (returnValue) => {
|
|
1771
|
+
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1772
|
+
call_status: uniffiCaller.createCallStatus()
|
|
1773
|
+
});
|
|
1774
|
+
};
|
|
1775
|
+
const uniffiHandleError = (code, errorBuf) => {
|
|
1776
|
+
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1777
|
+
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1778
|
+
});
|
|
1779
|
+
};
|
|
1780
|
+
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1781
|
+
return uniffiForeignFuture;
|
|
1782
|
+
},
|
|
1783
|
+
remove: (uniffiHandle, profile, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1784
|
+
const uniffiMakeCall = async (signal) => {
|
|
1785
|
+
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1786
|
+
return await jsCallback.remove(FfiConverterString.lift(profile), { signal });
|
|
1787
|
+
};
|
|
1788
|
+
const uniffiHandleSuccess = (returnValue) => {
|
|
1789
|
+
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1790
|
+
call_status: uniffiCaller.createCallStatus()
|
|
1791
|
+
});
|
|
1792
|
+
};
|
|
1793
|
+
const uniffiHandleError = (code, errorBuf) => {
|
|
1794
|
+
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1795
|
+
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1796
|
+
});
|
|
1797
|
+
};
|
|
1798
|
+
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1799
|
+
return uniffiForeignFuture;
|
|
1800
|
+
},
|
|
1801
|
+
acquire_lock: (uniffiHandle, profile, timeoutMillis, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1802
|
+
const uniffiMakeCall = async (signal) => {
|
|
1803
|
+
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1804
|
+
return await jsCallback.acquireLock(FfiConverterString.lift(profile), FfiConverterUInt64.lift(timeoutMillis), { signal });
|
|
1805
|
+
};
|
|
1806
|
+
const uniffiHandleSuccess = (returnValue) => {
|
|
1807
|
+
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1808
|
+
return_value: FfiConverterString.lower(returnValue, _bindings_ffi_default().rustbuffer_alloc),
|
|
1809
|
+
call_status: uniffiCaller.createCallStatus()
|
|
1810
|
+
});
|
|
1811
|
+
};
|
|
1812
|
+
const uniffiHandleError = (code, errorBuf) => {
|
|
1813
|
+
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1814
|
+
return_value: new Uint8Array(0),
|
|
1815
|
+
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1816
|
+
});
|
|
1817
|
+
};
|
|
1818
|
+
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1819
|
+
return uniffiForeignFuture;
|
|
1820
|
+
},
|
|
1821
|
+
release_lock: (uniffiHandle, lease, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1822
|
+
const uniffiMakeCall = async (signal) => {
|
|
1823
|
+
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1824
|
+
return await jsCallback.releaseLock(FfiConverterString.lift(lease), { signal });
|
|
1825
|
+
};
|
|
1826
|
+
const uniffiHandleSuccess = (returnValue) => {
|
|
1827
|
+
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1828
|
+
call_status: uniffiCaller.createCallStatus()
|
|
1829
|
+
});
|
|
1830
|
+
};
|
|
1831
|
+
const uniffiHandleError = (code, errorBuf) => {
|
|
1832
|
+
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1833
|
+
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1834
|
+
});
|
|
1835
|
+
};
|
|
1836
|
+
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1837
|
+
return uniffiForeignFuture;
|
|
1838
|
+
},
|
|
1839
|
+
name: (uniffiHandle) => {
|
|
1840
|
+
const uniffiMakeCall = () => {
|
|
1841
|
+
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1842
|
+
return jsCallback.name();
|
|
1843
|
+
};
|
|
1844
|
+
const uniffiResult = UniffiResult.ready();
|
|
1845
|
+
const uniffiHandleSuccess = (obj) => {
|
|
1846
|
+
UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj, _bindings_ffi_default().rustbuffer_alloc));
|
|
1847
|
+
};
|
|
1848
|
+
const uniffiHandleError = (code, errBuf) => {
|
|
1849
|
+
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
1850
|
+
};
|
|
1851
|
+
uniffiTraitInterfaceCall(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1852
|
+
return uniffiResult;
|
|
1853
|
+
},
|
|
1854
|
+
uniffi_free: (uniffiHandle) => {
|
|
1855
|
+
FfiConverterTypeStorageAdapter.drop(uniffiHandle);
|
|
1856
|
+
},
|
|
1857
|
+
uniffi_clone: (uniffiHandle) => {
|
|
1858
|
+
return FfiConverterTypeStorageAdapter.clone(uniffiHandle);
|
|
1859
|
+
}
|
|
1860
|
+
},
|
|
1861
|
+
register: () => {
|
|
1862
|
+
_bindings_ffi_default().uniffi_dbx_tools_databricks_fn_init_callback_vtable_storageadapter(uniffiCallbackInterfaceStorageAdapter.vtable);
|
|
1863
|
+
}
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
class StorageHandle extends UniffiAbstractObject {
|
|
1867
|
+
[uniffiTypeNameSymbol] = "StorageHandle";
|
|
1868
|
+
[destructorGuardSymbol];
|
|
1869
|
+
[pointerLiteralSymbol];
|
|
1870
|
+
constructor(pointer) {
|
|
1871
|
+
super();
|
|
1872
|
+
this[pointerLiteralSymbol] = pointer;
|
|
1873
|
+
this[destructorGuardSymbol] = uniffiTypeStorageHandleObjectFactory.bless(pointer);
|
|
1874
|
+
}
|
|
1875
|
+
uniffiDestroy() {
|
|
1876
|
+
const ptr = this[destructorGuardSymbol];
|
|
1877
|
+
if (ptr !== undefined) {
|
|
1878
|
+
const pointer = uniffiTypeStorageHandleObjectFactory.pointer(this);
|
|
1879
|
+
uniffiTypeStorageHandleObjectFactory.freePointer(pointer);
|
|
1880
|
+
uniffiTypeStorageHandleObjectFactory.unbless(ptr);
|
|
1881
|
+
delete this[destructorGuardSymbol];
|
|
1882
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
static instanceOf(obj_) {
|
|
1885
|
+
return uniffiTypeStorageHandleObjectFactory.isConcreteType(obj_);
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
var uniffiTypeStorageHandleObjectFactory = (() => {
|
|
1889
|
+
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
1890
|
+
uniffiTypeStorageHandleObjectFactory.freePointer(heldValue);
|
|
1891
|
+
}) : null;
|
|
1892
|
+
return {
|
|
1893
|
+
create(pointer) {
|
|
1894
|
+
const instance = Object.create(StorageHandle.prototype);
|
|
1895
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
1896
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1897
|
+
instance[uniffiTypeNameSymbol] = "StorageHandle";
|
|
1898
|
+
return instance;
|
|
1899
|
+
},
|
|
1900
|
+
bless(p) {
|
|
1901
|
+
const ptr = {
|
|
1902
|
+
p,
|
|
1903
|
+
markDestroyed: () => {
|
|
1904
|
+
return;
|
|
1905
|
+
}
|
|
1906
|
+
};
|
|
1907
|
+
if (registry) {
|
|
1908
|
+
registry.register(ptr, p, ptr);
|
|
1909
|
+
}
|
|
1910
|
+
return ptr;
|
|
1911
|
+
},
|
|
1912
|
+
unbless(ptr_) {
|
|
1913
|
+
if (registry) {
|
|
1914
|
+
registry.unregister(ptr_);
|
|
1915
|
+
}
|
|
1916
|
+
},
|
|
1917
|
+
pointer(obj_) {
|
|
1918
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1919
|
+
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
1920
|
+
}
|
|
1921
|
+
return obj_[pointerLiteralSymbol];
|
|
1922
|
+
},
|
|
1923
|
+
clonePointer(obj_) {
|
|
1924
|
+
const pointer = this.pointer(obj_);
|
|
1925
|
+
return uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_clone_storagehandle(pointer, callStatus), FfiConverterString.lift);
|
|
1926
|
+
},
|
|
1927
|
+
freePointer(pointer) {
|
|
1928
|
+
uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_databricks_fn_free_storagehandle(pointer, callStatus), FfiConverterString.lift);
|
|
1929
|
+
},
|
|
1930
|
+
isConcreteType(obj_) {
|
|
1931
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "StorageHandle";
|
|
1932
|
+
}
|
|
1933
|
+
};
|
|
1934
|
+
})();
|
|
1935
|
+
var FfiConverterTypeStorageHandle = new FfiConverterObject(uniffiTypeStorageHandleObjectFactory);
|
|
1936
|
+
var FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
|
|
1937
|
+
var FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);
|
|
1938
|
+
var FfiConverterOptionalSequenceString = new FfiConverterOptional(FfiConverterSequenceString);
|
|
1939
|
+
var FfiConverterOptionalTypeAuthOptions = new FfiConverterOptional(FfiConverterTypeAuthOptions);
|
|
1940
|
+
var FfiConverterOptionalTypeOAuthGrant = new FfiConverterOptional(FfiConverterTypeOAuthGrant);
|
|
1941
|
+
var FfiConverterOptionalTypeStorage = new FfiConverterOptional(FfiConverterTypeStorage);
|
|
1942
|
+
var FfiConverterOptionalTypeFileLayout = new FfiConverterOptional(FfiConverterTypeFileLayout);
|
|
1943
|
+
var FfiConverterOptionalBoolean = new FfiConverterOptional(FfiConverterBool);
|
|
1944
|
+
var FfiConverterMapStringString = new FfiConverterMap(FfiConverterString, FfiConverterString);
|
|
361
1945
|
function uniffiEnsureInitialized() {
|
|
362
1946
|
const bindingsContractVersion = 30;
|
|
363
1947
|
const scaffoldingContractVersion = _bindings_ffi_default().ffi_dbx_tools_databricks_uniffi_contract_version();
|
|
364
1948
|
if (bindingsContractVersion !== scaffoldingContractVersion) {
|
|
365
1949
|
throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
366
1950
|
}
|
|
1951
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_canonical_scopes() !== 45586) {
|
|
1952
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_canonical_scopes");
|
|
1953
|
+
}
|
|
1954
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth() !== 24006) {
|
|
1955
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth");
|
|
1956
|
+
}
|
|
1957
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth_for_request() !== 30718) {
|
|
1958
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth_for_request");
|
|
1959
|
+
}
|
|
1960
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth_with_storage() !== 38756) {
|
|
1961
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_create_persistent_auth_with_storage");
|
|
1962
|
+
}
|
|
1963
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_create_provider_auth() !== 37733) {
|
|
1964
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_create_provider_auth");
|
|
1965
|
+
}
|
|
1966
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_create_provider_auth_with_storage() !== 51588) {
|
|
1967
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_create_provider_auth_with_storage");
|
|
1968
|
+
}
|
|
1969
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_create_storage_handle() !== 14044) {
|
|
1970
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_create_storage_handle");
|
|
1971
|
+
}
|
|
1972
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_credential_key() !== 60678) {
|
|
1973
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_credential_key");
|
|
1974
|
+
}
|
|
367
1975
|
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_databricks_cli_available() !== 19375) {
|
|
368
1976
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_databricks_cli_available");
|
|
369
1977
|
}
|
|
370
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_is_databricks_app() !==
|
|
1978
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_func_is_databricks_app() !== 65309) {
|
|
371
1979
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_func_is_databricks_app");
|
|
372
1980
|
}
|
|
1981
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_persistentauth_challenge() !== 16856) {
|
|
1982
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_persistentauth_challenge");
|
|
1983
|
+
}
|
|
1984
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_persistentauth_force_refresh_token() !== 64316) {
|
|
1985
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_persistentauth_force_refresh_token");
|
|
1986
|
+
}
|
|
1987
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_persistentauth_logout() !== 7691) {
|
|
1988
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_persistentauth_logout");
|
|
1989
|
+
}
|
|
1990
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_persistentauth_refresh_rejected_token() !== 58164) {
|
|
1991
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_persistentauth_refresh_rejected_token");
|
|
1992
|
+
}
|
|
1993
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_persistentauth_status() !== 36346) {
|
|
1994
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_persistentauth_status");
|
|
1995
|
+
}
|
|
1996
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_persistentauth_token() !== 41040) {
|
|
1997
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_persistentauth_token");
|
|
1998
|
+
}
|
|
1999
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_providerauth_force_refresh_token() !== 51438) {
|
|
2000
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_providerauth_force_refresh_token");
|
|
2001
|
+
}
|
|
2002
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_providerauth_logout() !== 52272) {
|
|
2003
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_providerauth_logout");
|
|
2004
|
+
}
|
|
2005
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_providerauth_refresh_rejected_token() !== 8782) {
|
|
2006
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_providerauth_refresh_rejected_token");
|
|
2007
|
+
}
|
|
2008
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_providerauth_token() !== 12412) {
|
|
2009
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_providerauth_token");
|
|
2010
|
+
}
|
|
2011
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_storageadapter_load() !== 10075) {
|
|
2012
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_storageadapter_load");
|
|
2013
|
+
}
|
|
2014
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_storageadapter_prepare_write() !== 61599) {
|
|
2015
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_storageadapter_prepare_write");
|
|
2016
|
+
}
|
|
2017
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_storageadapter_save() !== 34302) {
|
|
2018
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_storageadapter_save");
|
|
2019
|
+
}
|
|
2020
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_storageadapter_remove() !== 51385) {
|
|
2021
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_storageadapter_remove");
|
|
2022
|
+
}
|
|
2023
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_storageadapter_acquire_lock() !== 40754) {
|
|
2024
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_storageadapter_acquire_lock");
|
|
2025
|
+
}
|
|
2026
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_storageadapter_release_lock() !== 61506) {
|
|
2027
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_storageadapter_release_lock");
|
|
2028
|
+
}
|
|
2029
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_databricks_checksum_method_storageadapter_name() !== 45802) {
|
|
2030
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_databricks_checksum_method_storageadapter_name");
|
|
2031
|
+
}
|
|
2032
|
+
uniffiCallbackInterfaceStorageAdapter.register();
|
|
373
2033
|
}
|
|
374
2034
|
var _bindings_default = Object.freeze({
|
|
375
|
-
initialize: uniffiEnsureInitialized
|
|
2035
|
+
initialize: uniffiEnsureInitialized,
|
|
2036
|
+
converters: {
|
|
2037
|
+
FfiConverterTypeAccessToken,
|
|
2038
|
+
FfiConverterTypeAuthError,
|
|
2039
|
+
FfiConverterTypeAuthOptions,
|
|
2040
|
+
FfiConverterTypeDatabricksAuthOptions,
|
|
2041
|
+
FfiConverterTypeDatabricksAuthStatus,
|
|
2042
|
+
FfiConverterTypeFileLayout,
|
|
2043
|
+
FfiConverterTypeOAuthGrant,
|
|
2044
|
+
FfiConverterTypePersistentAuth,
|
|
2045
|
+
FfiConverterTypeProviderAuth,
|
|
2046
|
+
FfiConverterTypeProviderOptions,
|
|
2047
|
+
FfiConverterTypeStorage,
|
|
2048
|
+
FfiConverterTypeStorageAdapter,
|
|
2049
|
+
FfiConverterTypeStorageHandle
|
|
2050
|
+
}
|
|
376
2051
|
});
|
|
377
2052
|
// src/bindings.ts
|
|
378
2053
|
_bindings_default.initialize();
|
|
@@ -1012,7 +2687,7 @@ function bufferToReadableStream(buffer) {
|
|
|
1012
2687
|
|
|
1013
2688
|
// index.ts
|
|
1014
2689
|
var PACKAGE_IDENTIFIER = "@dbx-tools/databricks";
|
|
1015
|
-
var PACKAGE_VERSION = "0.6.
|
|
2690
|
+
var PACKAGE_VERSION = "0.6.185";
|
|
1016
2691
|
export {
|
|
1017
2692
|
exports_workspace as workspace,
|
|
1018
2693
|
_bindings_default as uniffiModule,
|
|
@@ -1024,10 +2699,32 @@ export {
|
|
|
1024
2699
|
exports_databricks_path as databricksPath,
|
|
1025
2700
|
exports_databricks_fs as databricksFS,
|
|
1026
2701
|
databricksCliAvailable,
|
|
2702
|
+
credentialKey,
|
|
2703
|
+
createStorageHandle,
|
|
2704
|
+
createProviderAuthWithStorage,
|
|
2705
|
+
createProviderAuth,
|
|
2706
|
+
createPersistentAuthWithStorage,
|
|
2707
|
+
createPersistentAuthForRequest,
|
|
2708
|
+
createPersistentAuth,
|
|
1027
2709
|
exports_cloud as cloud,
|
|
2710
|
+
canonicalScopes,
|
|
2711
|
+
StorageHandle,
|
|
2712
|
+
StorageAdapterImpl,
|
|
2713
|
+
Storage,
|
|
1028
2714
|
RANGE_CACHE_TTL_MS,
|
|
2715
|
+
ProviderOptions,
|
|
2716
|
+
ProviderAuth,
|
|
2717
|
+
PersistentAuth,
|
|
1029
2718
|
PACKAGE_VERSION,
|
|
1030
2719
|
PACKAGE_IDENTIFIER,
|
|
2720
|
+
OAuthGrant,
|
|
2721
|
+
FileLayout,
|
|
1031
2722
|
DatabricksFileSystem,
|
|
1032
|
-
|
|
2723
|
+
DatabricksAuthStatus,
|
|
2724
|
+
DatabricksAuthOptions,
|
|
2725
|
+
CloudProvider,
|
|
2726
|
+
AuthOptions,
|
|
2727
|
+
AuthError_Tags,
|
|
2728
|
+
AuthError,
|
|
2729
|
+
AccessToken
|
|
1033
2730
|
};
|