@dbx-tools/core-rs 0.6.188 → 0.6.191
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/index.ts +1 -1
- package/lib/index.js +24 -24
- package/package.json +8 -7
- package/src/_bindings-ffi.ts +10 -10
- package/src/_bindings.ts +31 -31
package/README.md
CHANGED
|
@@ -10,6 +10,9 @@ const auth = await createPersistentAuth(DatabricksAuthOptions.create({}));
|
|
|
10
10
|
const token = await auth.token();
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
Token and refresh methods permit login after a missing or invalid credential by
|
|
14
|
+
default. Pass `false` as their `login` argument to prohibit interactive login.
|
|
15
|
+
|
|
13
16
|
This package contains only generated UniFFI bindings and the matching native
|
|
14
17
|
library dependency. Databricks workspace, filesystem, cloud, and network
|
|
15
18
|
utilities remain in [`@dbx-tools/databricks`](../databricks).
|
package/index.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -349,7 +349,7 @@ var DEFINITIONS = {
|
|
|
349
349
|
hasRustCallStatus: true
|
|
350
350
|
},
|
|
351
351
|
uniffi_dbx_tools_core_fn_method_persistentauth_authorization_header_for_url: {
|
|
352
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
352
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
353
353
|
ret: FfiType.Handle,
|
|
354
354
|
hasRustCallStatus: false
|
|
355
355
|
},
|
|
@@ -359,7 +359,7 @@ var DEFINITIONS = {
|
|
|
359
359
|
hasRustCallStatus: false
|
|
360
360
|
},
|
|
361
361
|
uniffi_dbx_tools_core_fn_method_persistentauth_force_refresh_token: {
|
|
362
|
-
args: [FfiType.Handle],
|
|
362
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
363
363
|
ret: FfiType.Handle,
|
|
364
364
|
hasRustCallStatus: false
|
|
365
365
|
},
|
|
@@ -369,7 +369,7 @@ var DEFINITIONS = {
|
|
|
369
369
|
hasRustCallStatus: false
|
|
370
370
|
},
|
|
371
371
|
uniffi_dbx_tools_core_fn_method_persistentauth_refresh_rejected_token: {
|
|
372
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
372
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
373
373
|
ret: FfiType.Handle,
|
|
374
374
|
hasRustCallStatus: false
|
|
375
375
|
},
|
|
@@ -384,7 +384,7 @@ var DEFINITIONS = {
|
|
|
384
384
|
hasRustCallStatus: false
|
|
385
385
|
},
|
|
386
386
|
uniffi_dbx_tools_core_fn_method_providerauth_force_refresh_token: {
|
|
387
|
-
args: [FfiType.Handle],
|
|
387
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
388
388
|
ret: FfiType.Handle,
|
|
389
389
|
hasRustCallStatus: false
|
|
390
390
|
},
|
|
@@ -394,7 +394,7 @@ var DEFINITIONS = {
|
|
|
394
394
|
hasRustCallStatus: false
|
|
395
395
|
},
|
|
396
396
|
uniffi_dbx_tools_core_fn_method_providerauth_refresh_rejected_token: {
|
|
397
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
397
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
398
398
|
ret: FfiType.Handle,
|
|
399
399
|
hasRustCallStatus: false
|
|
400
400
|
},
|
|
@@ -892,7 +892,7 @@ var AuthOptions = (() => {
|
|
|
892
892
|
const defaults = () => ({
|
|
893
893
|
refreshBufferSeconds: BigInt("300"),
|
|
894
894
|
lockTimeoutSeconds: BigInt("30"),
|
|
895
|
-
loginTimeoutSeconds: BigInt("
|
|
895
|
+
loginTimeoutSeconds: BigInt("900"),
|
|
896
896
|
callbackImageSrc: undefined
|
|
897
897
|
});
|
|
898
898
|
const create = (() => {
|
|
@@ -1358,11 +1358,11 @@ class PersistentAuth extends UniffiAbstractObject {
|
|
|
1358
1358
|
this[pointerLiteralSymbol] = pointer;
|
|
1359
1359
|
this[destructorGuardSymbol] = uniffiTypePersistentAuthObjectFactory.bless(pointer);
|
|
1360
1360
|
}
|
|
1361
|
-
async authorizationHeaderForUrl(requestUrl, asyncOpts_) {
|
|
1361
|
+
async authorizationHeaderForUrl(requestUrl, login = undefined, asyncOpts_) {
|
|
1362
1362
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1363
1363
|
try {
|
|
1364
1364
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1365
|
-
return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_persistentauth_authorization_header_for_url(uniffiTypePersistentAuthObjectFactory.clonePointer(this), FfiConverterString.lower(requestUrl, _bindings_ffi_default().rustbuffer_alloc));
|
|
1365
|
+
return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_persistentauth_authorization_header_for_url(uniffiTypePersistentAuthObjectFactory.clonePointer(this), FfiConverterString.lower(requestUrl, _bindings_ffi_default().rustbuffer_alloc), FfiConverterOptionalBoolean.lower(login, _bindings_ffi_default().rustbuffer_alloc));
|
|
1366
1366
|
}, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_rust_buffer, (__rb) => {
|
|
1367
1367
|
try {
|
|
1368
1368
|
return FfiConverterOptionalString.lift(__rb);
|
|
@@ -1390,11 +1390,11 @@ class PersistentAuth extends UniffiAbstractObject {
|
|
|
1390
1390
|
throw __error;
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
|
-
async forceRefreshToken(asyncOpts_) {
|
|
1393
|
+
async forceRefreshToken(login = undefined, asyncOpts_) {
|
|
1394
1394
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1395
1395
|
try {
|
|
1396
1396
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1397
|
-
return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_persistentauth_force_refresh_token(uniffiTypePersistentAuthObjectFactory.clonePointer(this));
|
|
1397
|
+
return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_persistentauth_force_refresh_token(uniffiTypePersistentAuthObjectFactory.clonePointer(this), FfiConverterOptionalBoolean.lower(login, _bindings_ffi_default().rustbuffer_alloc));
|
|
1398
1398
|
}, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_rust_buffer, (__rb) => {
|
|
1399
1399
|
try {
|
|
1400
1400
|
return FfiConverterTypeAccessToken.lift(__rb);
|
|
@@ -1422,11 +1422,11 @@ class PersistentAuth extends UniffiAbstractObject {
|
|
|
1422
1422
|
throw __error;
|
|
1423
1423
|
}
|
|
1424
1424
|
}
|
|
1425
|
-
async refreshRejectedToken(staleAccessToken, asyncOpts_) {
|
|
1425
|
+
async refreshRejectedToken(staleAccessToken, login = undefined, asyncOpts_) {
|
|
1426
1426
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1427
1427
|
try {
|
|
1428
1428
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1429
|
-
return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_persistentauth_refresh_rejected_token(uniffiTypePersistentAuthObjectFactory.clonePointer(this), FfiConverterString.lower(staleAccessToken, _bindings_ffi_default().rustbuffer_alloc));
|
|
1429
|
+
return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_persistentauth_refresh_rejected_token(uniffiTypePersistentAuthObjectFactory.clonePointer(this), FfiConverterString.lower(staleAccessToken, _bindings_ffi_default().rustbuffer_alloc), FfiConverterOptionalBoolean.lower(login, _bindings_ffi_default().rustbuffer_alloc));
|
|
1430
1430
|
}, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_rust_buffer, (__rb) => {
|
|
1431
1431
|
try {
|
|
1432
1432
|
return FfiConverterTypeAccessToken.lift(__rb);
|
|
@@ -1541,11 +1541,11 @@ class ProviderAuth extends UniffiAbstractObject {
|
|
|
1541
1541
|
this[pointerLiteralSymbol] = pointer;
|
|
1542
1542
|
this[destructorGuardSymbol] = uniffiTypeProviderAuthObjectFactory.bless(pointer);
|
|
1543
1543
|
}
|
|
1544
|
-
async forceRefreshToken(asyncOpts_) {
|
|
1544
|
+
async forceRefreshToken(login = undefined, asyncOpts_) {
|
|
1545
1545
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1546
1546
|
try {
|
|
1547
1547
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1548
|
-
return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_providerauth_force_refresh_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this));
|
|
1548
|
+
return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_providerauth_force_refresh_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this), FfiConverterOptionalBoolean.lower(login, _bindings_ffi_default().rustbuffer_alloc));
|
|
1549
1549
|
}, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_rust_buffer, (__rb) => {
|
|
1550
1550
|
try {
|
|
1551
1551
|
return FfiConverterTypeAccessToken.lift(__rb);
|
|
@@ -1573,11 +1573,11 @@ class ProviderAuth extends UniffiAbstractObject {
|
|
|
1573
1573
|
throw __error;
|
|
1574
1574
|
}
|
|
1575
1575
|
}
|
|
1576
|
-
async refreshRejectedToken(staleAccessToken, asyncOpts_) {
|
|
1576
|
+
async refreshRejectedToken(staleAccessToken, login = undefined, asyncOpts_) {
|
|
1577
1577
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1578
1578
|
try {
|
|
1579
1579
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1580
|
-
return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_providerauth_refresh_rejected_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this), FfiConverterString.lower(staleAccessToken, _bindings_ffi_default().rustbuffer_alloc));
|
|
1580
|
+
return _bindings_ffi_default().uniffi_dbx_tools_core_fn_method_providerauth_refresh_rejected_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this), FfiConverterString.lower(staleAccessToken, _bindings_ffi_default().rustbuffer_alloc), FfiConverterOptionalBoolean.lower(login, _bindings_ffi_default().rustbuffer_alloc));
|
|
1581
1581
|
}, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_core_rust_future_free_rust_buffer, (__rb) => {
|
|
1582
1582
|
try {
|
|
1583
1583
|
return FfiConverterTypeAccessToken.lift(__rb);
|
|
@@ -2105,37 +2105,37 @@ function uniffiEnsureInitialized() {
|
|
|
2105
2105
|
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_func_parse_resource_path() !== 62884) {
|
|
2106
2106
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_func_parse_resource_path");
|
|
2107
2107
|
}
|
|
2108
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_authorization_header_for_url() !==
|
|
2108
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_authorization_header_for_url() !== 24) {
|
|
2109
2109
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_authorization_header_for_url");
|
|
2110
2110
|
}
|
|
2111
2111
|
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_challenge() !== 32194) {
|
|
2112
2112
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_challenge");
|
|
2113
2113
|
}
|
|
2114
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_force_refresh_token() !==
|
|
2114
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_force_refresh_token() !== 7780) {
|
|
2115
2115
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_force_refresh_token");
|
|
2116
2116
|
}
|
|
2117
2117
|
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_logout() !== 22550) {
|
|
2118
2118
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_logout");
|
|
2119
2119
|
}
|
|
2120
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_refresh_rejected_token() !==
|
|
2120
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_refresh_rejected_token() !== 28608) {
|
|
2121
2121
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_refresh_rejected_token");
|
|
2122
2122
|
}
|
|
2123
2123
|
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_status() !== 3099) {
|
|
2124
2124
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_status");
|
|
2125
2125
|
}
|
|
2126
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_token() !==
|
|
2126
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_persistentauth_token() !== 37099) {
|
|
2127
2127
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_token");
|
|
2128
2128
|
}
|
|
2129
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_providerauth_force_refresh_token() !==
|
|
2129
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_providerauth_force_refresh_token() !== 34555) {
|
|
2130
2130
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_providerauth_force_refresh_token");
|
|
2131
2131
|
}
|
|
2132
2132
|
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_providerauth_logout() !== 64726) {
|
|
2133
2133
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_providerauth_logout");
|
|
2134
2134
|
}
|
|
2135
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_providerauth_refresh_rejected_token() !==
|
|
2135
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_providerauth_refresh_rejected_token() !== 43419) {
|
|
2136
2136
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_providerauth_refresh_rejected_token");
|
|
2137
2137
|
}
|
|
2138
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_providerauth_token() !==
|
|
2138
|
+
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_providerauth_token() !== 42139) {
|
|
2139
2139
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_providerauth_token");
|
|
2140
2140
|
}
|
|
2141
2141
|
if (_bindings_ffi_default().uniffi_dbx_tools_core_checksum_method_storageadapter_load() !== 54668) {
|
|
@@ -2187,7 +2187,7 @@ async function uniffiInitAsync() {}
|
|
|
2187
2187
|
|
|
2188
2188
|
// index.ts
|
|
2189
2189
|
var PACKAGE_IDENTIFIER = "@dbx-tools/core-rs";
|
|
2190
|
-
var PACKAGE_VERSION = "0.6.
|
|
2190
|
+
var PACKAGE_VERSION = "0.6.191";
|
|
2191
2191
|
export {
|
|
2192
2192
|
_bindings_default as uniffiModule,
|
|
2193
2193
|
uniffiInitAsync,
|
package/package.json
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
"directory": "packages/js/node/core-rs"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@dbx-tools/shared-core": "0.6.
|
|
10
|
+
"@dbx-tools/shared-core": "0.6.191",
|
|
11
11
|
"@ubjs/core": "0.31.0-5",
|
|
12
12
|
"@ubjs/node": "0.31.0-5"
|
|
13
13
|
},
|
|
14
14
|
"main": "./lib/index.js",
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
|
-
"version": "0.6.
|
|
16
|
+
"version": "0.6.191",
|
|
17
17
|
"types": "./index.ts",
|
|
18
18
|
"type": "module",
|
|
19
19
|
"exports": {
|
|
@@ -29,11 +29,12 @@
|
|
|
29
29
|
"lib"
|
|
30
30
|
],
|
|
31
31
|
"optionalDependencies": {
|
|
32
|
-
"@dbx-tools/core-rs-linux-x64-gnu": "0.6.
|
|
33
|
-
"@dbx-tools/core-rs-linux-arm64-gnu": "0.6.
|
|
34
|
-
"@dbx-tools/core-rs-darwin-x64": "0.6.
|
|
35
|
-
"@dbx-tools/core-rs-darwin-arm64": "0.6.
|
|
36
|
-
"@dbx-tools/core-rs-win32-x64-msvc": "0.6.
|
|
32
|
+
"@dbx-tools/core-rs-linux-x64-gnu": "0.6.191",
|
|
33
|
+
"@dbx-tools/core-rs-linux-arm64-gnu": "0.6.191",
|
|
34
|
+
"@dbx-tools/core-rs-darwin-x64": "0.6.191",
|
|
35
|
+
"@dbx-tools/core-rs-darwin-arm64": "0.6.191",
|
|
36
|
+
"@dbx-tools/core-rs-win32-x64-msvc": "0.6.191",
|
|
37
|
+
"@dbx-tools/core-rs-win32-arm64-msvc": "0.6.191"
|
|
37
38
|
},
|
|
38
39
|
"dbxToolsConfig": {
|
|
39
40
|
"uniffi": true,
|
package/src/_bindings-ffi.ts
CHANGED
|
@@ -366,7 +366,7 @@ const DEFINITIONS = {
|
|
|
366
366
|
hasRustCallStatus: true,
|
|
367
367
|
},
|
|
368
368
|
"uniffi_dbx_tools_core_fn_method_persistentauth_authorization_header_for_url": {
|
|
369
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
369
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
370
370
|
ret: FfiType.Handle,
|
|
371
371
|
hasRustCallStatus: false,
|
|
372
372
|
},
|
|
@@ -376,7 +376,7 @@ const DEFINITIONS = {
|
|
|
376
376
|
hasRustCallStatus: false,
|
|
377
377
|
},
|
|
378
378
|
"uniffi_dbx_tools_core_fn_method_persistentauth_force_refresh_token": {
|
|
379
|
-
args: [FfiType.Handle],
|
|
379
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
380
380
|
ret: FfiType.Handle,
|
|
381
381
|
hasRustCallStatus: false,
|
|
382
382
|
},
|
|
@@ -386,7 +386,7 @@ const DEFINITIONS = {
|
|
|
386
386
|
hasRustCallStatus: false,
|
|
387
387
|
},
|
|
388
388
|
"uniffi_dbx_tools_core_fn_method_persistentauth_refresh_rejected_token": {
|
|
389
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
389
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
390
390
|
ret: FfiType.Handle,
|
|
391
391
|
hasRustCallStatus: false,
|
|
392
392
|
},
|
|
@@ -401,7 +401,7 @@ const DEFINITIONS = {
|
|
|
401
401
|
hasRustCallStatus: false,
|
|
402
402
|
},
|
|
403
403
|
"uniffi_dbx_tools_core_fn_method_providerauth_force_refresh_token": {
|
|
404
|
-
args: [FfiType.Handle],
|
|
404
|
+
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
405
405
|
ret: FfiType.Handle,
|
|
406
406
|
hasRustCallStatus: false,
|
|
407
407
|
},
|
|
@@ -411,7 +411,7 @@ const DEFINITIONS = {
|
|
|
411
411
|
hasRustCallStatus: false,
|
|
412
412
|
},
|
|
413
413
|
"uniffi_dbx_tools_core_fn_method_providerauth_refresh_rejected_token": {
|
|
414
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
414
|
+
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
415
415
|
ret: FfiType.Handle,
|
|
416
416
|
hasRustCallStatus: false,
|
|
417
417
|
},
|
|
@@ -775,16 +775,16 @@ interface NativeModuleInterface {
|
|
|
775
775
|
uniffi_dbx_tools_core_fn_func_is_databricks_app(uniffi_out_err: UniffiRustCallStatus): number;
|
|
776
776
|
uniffi_dbx_tools_core_fn_func_parse_address(input: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
777
777
|
uniffi_dbx_tools_core_fn_func_parse_resource_path(input: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
778
|
-
uniffi_dbx_tools_core_fn_method_persistentauth_authorization_header_for_url(uniffiSelf: bigint, requestUrl: Uint8Array): bigint;
|
|
778
|
+
uniffi_dbx_tools_core_fn_method_persistentauth_authorization_header_for_url(uniffiSelf: bigint, requestUrl: Uint8Array, login: Uint8Array): bigint;
|
|
779
779
|
uniffi_dbx_tools_core_fn_method_persistentauth_challenge(uniffiSelf: bigint): bigint;
|
|
780
|
-
uniffi_dbx_tools_core_fn_method_persistentauth_force_refresh_token(uniffiSelf: bigint): bigint;
|
|
780
|
+
uniffi_dbx_tools_core_fn_method_persistentauth_force_refresh_token(uniffiSelf: bigint, login: Uint8Array): bigint;
|
|
781
781
|
uniffi_dbx_tools_core_fn_method_persistentauth_logout(uniffiSelf: bigint): bigint;
|
|
782
|
-
uniffi_dbx_tools_core_fn_method_persistentauth_refresh_rejected_token(uniffiSelf: bigint, staleAccessToken: Uint8Array): bigint;
|
|
782
|
+
uniffi_dbx_tools_core_fn_method_persistentauth_refresh_rejected_token(uniffiSelf: bigint, staleAccessToken: Uint8Array, login: Uint8Array): bigint;
|
|
783
783
|
uniffi_dbx_tools_core_fn_method_persistentauth_status(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
784
784
|
uniffi_dbx_tools_core_fn_method_persistentauth_token(uniffiSelf: bigint, login: Uint8Array): bigint;
|
|
785
|
-
uniffi_dbx_tools_core_fn_method_providerauth_force_refresh_token(uniffiSelf: bigint): bigint;
|
|
785
|
+
uniffi_dbx_tools_core_fn_method_providerauth_force_refresh_token(uniffiSelf: bigint, login: Uint8Array): bigint;
|
|
786
786
|
uniffi_dbx_tools_core_fn_method_providerauth_logout(uniffiSelf: bigint): bigint;
|
|
787
|
-
uniffi_dbx_tools_core_fn_method_providerauth_refresh_rejected_token(uniffiSelf: bigint, staleAccessToken: Uint8Array): bigint;
|
|
787
|
+
uniffi_dbx_tools_core_fn_method_providerauth_refresh_rejected_token(uniffiSelf: bigint, staleAccessToken: Uint8Array, login: Uint8Array): bigint;
|
|
788
788
|
uniffi_dbx_tools_core_fn_method_providerauth_token(uniffiSelf: bigint, login: Uint8Array): bigint;
|
|
789
789
|
uniffi_dbx_tools_core_fn_method_storageadapter_load(uniffiSelf: bigint, profile: Uint8Array): bigint;
|
|
790
790
|
uniffi_dbx_tools_core_fn_method_storageadapter_prepare_write(uniffiSelf: bigint): bigint;
|
package/src/_bindings.ts
CHANGED
|
@@ -392,7 +392,7 @@ export const AuthOptions = (() => {
|
|
|
392
392
|
const defaults = () => ({
|
|
393
393
|
refreshBufferSeconds: BigInt("300"),
|
|
394
394
|
lockTimeoutSeconds: BigInt("30"),
|
|
395
|
-
loginTimeoutSeconds: BigInt("
|
|
395
|
+
loginTimeoutSeconds: BigInt("900"),
|
|
396
396
|
callbackImageSrc: undefined
|
|
397
397
|
});
|
|
398
398
|
const create = (() => {
|
|
@@ -1164,15 +1164,15 @@ export interface PersistentAuthLike {
|
|
|
1164
1164
|
/**
|
|
1165
1165
|
* Return a current authorization header when the request URL matches the profile origin.
|
|
1166
1166
|
*/
|
|
1167
|
-
authorizationHeaderForUrl(requestUrl: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<string | undefined>;
|
|
1167
|
+
authorizationHeaderForUrl(requestUrl: string, login?: boolean | undefined, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<string | undefined>;
|
|
1168
1168
|
/**
|
|
1169
1169
|
* Start an explicit login and persist the resulting credential.
|
|
1170
1170
|
*/
|
|
1171
1171
|
challenge(asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<void>;
|
|
1172
1172
|
/**
|
|
1173
|
-
* Renew the stored credential
|
|
1173
|
+
* Renew the stored credential, permitting login by default when renewal fails.
|
|
1174
1174
|
*/
|
|
1175
|
-
forceRefreshToken(asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<AccessToken>;
|
|
1175
|
+
forceRefreshToken(login?: boolean | undefined, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<AccessToken>;
|
|
1176
1176
|
/**
|
|
1177
1177
|
* Delete the credential while holding the store's refresh lock.
|
|
1178
1178
|
*/
|
|
@@ -1180,13 +1180,13 @@ export interface PersistentAuthLike {
|
|
|
1180
1180
|
/**
|
|
1181
1181
|
* Reuse another caller's replacement or renew the rejected token.
|
|
1182
1182
|
*/
|
|
1183
|
-
refreshRejectedToken(staleAccessToken: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<AccessToken>;
|
|
1183
|
+
refreshRejectedToken(staleAccessToken: string, login?: boolean | undefined, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<AccessToken>;
|
|
1184
1184
|
/**
|
|
1185
1185
|
* Return the resolved identity and active built-in storage backend.
|
|
1186
1186
|
*/
|
|
1187
1187
|
status(): DatabricksAuthStatus;
|
|
1188
1188
|
/**
|
|
1189
|
-
* True forces login, false forbids
|
|
1189
|
+
* True forces login, false forbids it, and omission permits automatic login.
|
|
1190
1190
|
*/
|
|
1191
1191
|
token(login?: boolean | undefined, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<AccessToken>;
|
|
1192
1192
|
}
|
|
@@ -1217,14 +1217,14 @@ private constructor(pointer: UniffiHandle) {
|
|
|
1217
1217
|
/**
|
|
1218
1218
|
* Return a current authorization header when the request URL matches the profile origin.
|
|
1219
1219
|
*/
|
|
1220
|
-
async authorizationHeaderForUrl(requestUrl: string, asyncOpts_?: { signal: AbortSignal }): Promise<string | undefined> /*throws*/ {
|
|
1220
|
+
async authorizationHeaderForUrl(requestUrl: string, login: boolean | undefined = undefined, asyncOpts_?: { signal: AbortSignal }): Promise<string | undefined> /*throws*/ {
|
|
1221
1221
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1222
1222
|
try {
|
|
1223
1223
|
return await uniffiRustCallAsync(
|
|
1224
1224
|
/*rustCaller:*/ uniffiCaller,
|
|
1225
1225
|
/*rustFutureFunc:*/ () => {
|
|
1226
1226
|
return nativeModule().uniffi_dbx_tools_core_fn_method_persistentauth_authorization_header_for_url(
|
|
1227
|
-
uniffiTypePersistentAuthObjectFactory.clonePointer(this),FfiConverterString.lower(requestUrl, nativeModule().rustbuffer_alloc)
|
|
1227
|
+
uniffiTypePersistentAuthObjectFactory.clonePointer(this),FfiConverterString.lower(requestUrl, nativeModule().rustbuffer_alloc),FfiConverterOptionalBoolean.lower(login, nativeModule().rustbuffer_alloc)
|
|
1228
1228
|
);
|
|
1229
1229
|
},
|
|
1230
1230
|
/*pollFunc:*/ nativeModule().ffi_dbx_tools_core_rust_future_poll_rust_buffer,
|
|
@@ -1289,16 +1289,16 @@ private constructor(pointer: UniffiHandle) {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
|
|
1291
1291
|
/**
|
|
1292
|
-
* Renew the stored credential
|
|
1292
|
+
* Renew the stored credential, permitting login by default when renewal fails.
|
|
1293
1293
|
*/
|
|
1294
|
-
async forceRefreshToken(asyncOpts_?: { signal: AbortSignal }): Promise<AccessToken> /*throws*/ {
|
|
1294
|
+
async forceRefreshToken(login: boolean | undefined = undefined, asyncOpts_?: { signal: AbortSignal }): Promise<AccessToken> /*throws*/ {
|
|
1295
1295
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1296
1296
|
try {
|
|
1297
1297
|
return await uniffiRustCallAsync(
|
|
1298
1298
|
/*rustCaller:*/ uniffiCaller,
|
|
1299
1299
|
/*rustFutureFunc:*/ () => {
|
|
1300
1300
|
return nativeModule().uniffi_dbx_tools_core_fn_method_persistentauth_force_refresh_token(
|
|
1301
|
-
uniffiTypePersistentAuthObjectFactory.clonePointer(this)
|
|
1301
|
+
uniffiTypePersistentAuthObjectFactory.clonePointer(this),FfiConverterOptionalBoolean.lower(login, nativeModule().rustbuffer_alloc)
|
|
1302
1302
|
);
|
|
1303
1303
|
},
|
|
1304
1304
|
/*pollFunc:*/ nativeModule().ffi_dbx_tools_core_rust_future_poll_rust_buffer,
|
|
@@ -1365,14 +1365,14 @@ private constructor(pointer: UniffiHandle) {
|
|
|
1365
1365
|
/**
|
|
1366
1366
|
* Reuse another caller's replacement or renew the rejected token.
|
|
1367
1367
|
*/
|
|
1368
|
-
async refreshRejectedToken(staleAccessToken: string, asyncOpts_?: { signal: AbortSignal }): Promise<AccessToken> /*throws*/ {
|
|
1368
|
+
async refreshRejectedToken(staleAccessToken: string, login: boolean | undefined = undefined, asyncOpts_?: { signal: AbortSignal }): Promise<AccessToken> /*throws*/ {
|
|
1369
1369
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1370
1370
|
try {
|
|
1371
1371
|
return await uniffiRustCallAsync(
|
|
1372
1372
|
/*rustCaller:*/ uniffiCaller,
|
|
1373
1373
|
/*rustFutureFunc:*/ () => {
|
|
1374
1374
|
return nativeModule().uniffi_dbx_tools_core_fn_method_persistentauth_refresh_rejected_token(
|
|
1375
|
-
uniffiTypePersistentAuthObjectFactory.clonePointer(this),FfiConverterString.lower(staleAccessToken, nativeModule().rustbuffer_alloc)
|
|
1375
|
+
uniffiTypePersistentAuthObjectFactory.clonePointer(this),FfiConverterString.lower(staleAccessToken, nativeModule().rustbuffer_alloc),FfiConverterOptionalBoolean.lower(login, nativeModule().rustbuffer_alloc)
|
|
1376
1376
|
);
|
|
1377
1377
|
},
|
|
1378
1378
|
/*pollFunc:*/ nativeModule().ffi_dbx_tools_core_rust_future_poll_rust_buffer,
|
|
@@ -1426,7 +1426,7 @@ private constructor(pointer: UniffiHandle) {
|
|
|
1426
1426
|
}
|
|
1427
1427
|
|
|
1428
1428
|
/**
|
|
1429
|
-
* True forces login, false forbids
|
|
1429
|
+
* True forces login, false forbids it, and omission permits automatic login.
|
|
1430
1430
|
*/
|
|
1431
1431
|
async token(login: boolean | undefined = undefined, asyncOpts_?: { signal: AbortSignal }): Promise<AccessToken> /*throws*/ {
|
|
1432
1432
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -1555,9 +1555,9 @@ const FfiConverterTypePersistentAuth = new FfiConverterObject(uniffiTypePersiste
|
|
|
1555
1555
|
export interface ProviderAuthLike {
|
|
1556
1556
|
|
|
1557
1557
|
/**
|
|
1558
|
-
* Renew the credential
|
|
1558
|
+
* Renew the credential, permitting login by default when renewal fails.
|
|
1559
1559
|
*/
|
|
1560
|
-
forceRefreshToken(asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<AccessToken>;
|
|
1560
|
+
forceRefreshToken(login?: boolean | undefined, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<AccessToken>;
|
|
1561
1561
|
/**
|
|
1562
1562
|
* Delete the stored credential while holding its refresh lock.
|
|
1563
1563
|
*/
|
|
@@ -1565,9 +1565,9 @@ export interface ProviderAuthLike {
|
|
|
1565
1565
|
/**
|
|
1566
1566
|
* Reuse a concurrent replacement or renew the rejected access token.
|
|
1567
1567
|
*/
|
|
1568
|
-
refreshRejectedToken(staleAccessToken: string, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<AccessToken>;
|
|
1568
|
+
refreshRejectedToken(staleAccessToken: string, login?: boolean | undefined, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<AccessToken>;
|
|
1569
1569
|
/**
|
|
1570
|
-
* True forces login, false forbids
|
|
1570
|
+
* True forces login, false forbids it, and omission permits automatic login.
|
|
1571
1571
|
*/
|
|
1572
1572
|
token(login?: boolean | undefined, asyncOpts_?: { signal: AbortSignal }) /*throws*/: Promise<AccessToken>;
|
|
1573
1573
|
}
|
|
@@ -1596,16 +1596,16 @@ private constructor(pointer: UniffiHandle) {
|
|
|
1596
1596
|
|
|
1597
1597
|
|
|
1598
1598
|
/**
|
|
1599
|
-
* Renew the credential
|
|
1599
|
+
* Renew the credential, permitting login by default when renewal fails.
|
|
1600
1600
|
*/
|
|
1601
|
-
async forceRefreshToken(asyncOpts_?: { signal: AbortSignal }): Promise<AccessToken> /*throws*/ {
|
|
1601
|
+
async forceRefreshToken(login: boolean | undefined = undefined, asyncOpts_?: { signal: AbortSignal }): Promise<AccessToken> /*throws*/ {
|
|
1602
1602
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1603
1603
|
try {
|
|
1604
1604
|
return await uniffiRustCallAsync(
|
|
1605
1605
|
/*rustCaller:*/ uniffiCaller,
|
|
1606
1606
|
/*rustFutureFunc:*/ () => {
|
|
1607
1607
|
return nativeModule().uniffi_dbx_tools_core_fn_method_providerauth_force_refresh_token(
|
|
1608
|
-
uniffiTypeProviderAuthObjectFactory.clonePointer(this)
|
|
1608
|
+
uniffiTypeProviderAuthObjectFactory.clonePointer(this),FfiConverterOptionalBoolean.lower(login, nativeModule().rustbuffer_alloc)
|
|
1609
1609
|
);
|
|
1610
1610
|
},
|
|
1611
1611
|
/*pollFunc:*/ nativeModule().ffi_dbx_tools_core_rust_future_poll_rust_buffer,
|
|
@@ -1672,14 +1672,14 @@ private constructor(pointer: UniffiHandle) {
|
|
|
1672
1672
|
/**
|
|
1673
1673
|
* Reuse a concurrent replacement or renew the rejected access token.
|
|
1674
1674
|
*/
|
|
1675
|
-
async refreshRejectedToken(staleAccessToken: string, asyncOpts_?: { signal: AbortSignal }): Promise<AccessToken> /*throws*/ {
|
|
1675
|
+
async refreshRejectedToken(staleAccessToken: string, login: boolean | undefined = undefined, asyncOpts_?: { signal: AbortSignal }): Promise<AccessToken> /*throws*/ {
|
|
1676
1676
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1677
1677
|
try {
|
|
1678
1678
|
return await uniffiRustCallAsync(
|
|
1679
1679
|
/*rustCaller:*/ uniffiCaller,
|
|
1680
1680
|
/*rustFutureFunc:*/ () => {
|
|
1681
1681
|
return nativeModule().uniffi_dbx_tools_core_fn_method_providerauth_refresh_rejected_token(
|
|
1682
|
-
uniffiTypeProviderAuthObjectFactory.clonePointer(this),FfiConverterString.lower(staleAccessToken, nativeModule().rustbuffer_alloc)
|
|
1682
|
+
uniffiTypeProviderAuthObjectFactory.clonePointer(this),FfiConverterString.lower(staleAccessToken, nativeModule().rustbuffer_alloc),FfiConverterOptionalBoolean.lower(login, nativeModule().rustbuffer_alloc)
|
|
1683
1683
|
);
|
|
1684
1684
|
},
|
|
1685
1685
|
/*pollFunc:*/ nativeModule().ffi_dbx_tools_core_rust_future_poll_rust_buffer,
|
|
@@ -1714,7 +1714,7 @@ private constructor(pointer: UniffiHandle) {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
|
|
1716
1716
|
/**
|
|
1717
|
-
* True forces login, false forbids
|
|
1717
|
+
* True forces login, false forbids it, and omission permits automatic login.
|
|
1718
1718
|
*/
|
|
1719
1719
|
async token(login: boolean | undefined = undefined, asyncOpts_?: { signal: AbortSignal }): Promise<AccessToken> /*throws*/ {
|
|
1720
1720
|
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
@@ -2714,37 +2714,37 @@ function uniffiEnsureInitialized() {
|
|
|
2714
2714
|
if (nativeModule().uniffi_dbx_tools_core_checksum_func_parse_resource_path() !== 62884) {
|
|
2715
2715
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_func_parse_resource_path");
|
|
2716
2716
|
}
|
|
2717
|
-
if (nativeModule().uniffi_dbx_tools_core_checksum_method_persistentauth_authorization_header_for_url() !==
|
|
2717
|
+
if (nativeModule().uniffi_dbx_tools_core_checksum_method_persistentauth_authorization_header_for_url() !== 24) {
|
|
2718
2718
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_authorization_header_for_url");
|
|
2719
2719
|
}
|
|
2720
2720
|
if (nativeModule().uniffi_dbx_tools_core_checksum_method_persistentauth_challenge() !== 32194) {
|
|
2721
2721
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_challenge");
|
|
2722
2722
|
}
|
|
2723
|
-
if (nativeModule().uniffi_dbx_tools_core_checksum_method_persistentauth_force_refresh_token() !==
|
|
2723
|
+
if (nativeModule().uniffi_dbx_tools_core_checksum_method_persistentauth_force_refresh_token() !== 7780) {
|
|
2724
2724
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_force_refresh_token");
|
|
2725
2725
|
}
|
|
2726
2726
|
if (nativeModule().uniffi_dbx_tools_core_checksum_method_persistentauth_logout() !== 22550) {
|
|
2727
2727
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_logout");
|
|
2728
2728
|
}
|
|
2729
|
-
if (nativeModule().uniffi_dbx_tools_core_checksum_method_persistentauth_refresh_rejected_token() !==
|
|
2729
|
+
if (nativeModule().uniffi_dbx_tools_core_checksum_method_persistentauth_refresh_rejected_token() !== 28608) {
|
|
2730
2730
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_refresh_rejected_token");
|
|
2731
2731
|
}
|
|
2732
2732
|
if (nativeModule().uniffi_dbx_tools_core_checksum_method_persistentauth_status() !== 3099) {
|
|
2733
2733
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_status");
|
|
2734
2734
|
}
|
|
2735
|
-
if (nativeModule().uniffi_dbx_tools_core_checksum_method_persistentauth_token() !==
|
|
2735
|
+
if (nativeModule().uniffi_dbx_tools_core_checksum_method_persistentauth_token() !== 37099) {
|
|
2736
2736
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_persistentauth_token");
|
|
2737
2737
|
}
|
|
2738
|
-
if (nativeModule().uniffi_dbx_tools_core_checksum_method_providerauth_force_refresh_token() !==
|
|
2738
|
+
if (nativeModule().uniffi_dbx_tools_core_checksum_method_providerauth_force_refresh_token() !== 34555) {
|
|
2739
2739
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_providerauth_force_refresh_token");
|
|
2740
2740
|
}
|
|
2741
2741
|
if (nativeModule().uniffi_dbx_tools_core_checksum_method_providerauth_logout() !== 64726) {
|
|
2742
2742
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_providerauth_logout");
|
|
2743
2743
|
}
|
|
2744
|
-
if (nativeModule().uniffi_dbx_tools_core_checksum_method_providerauth_refresh_rejected_token() !==
|
|
2744
|
+
if (nativeModule().uniffi_dbx_tools_core_checksum_method_providerauth_refresh_rejected_token() !== 43419) {
|
|
2745
2745
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_providerauth_refresh_rejected_token");
|
|
2746
2746
|
}
|
|
2747
|
-
if (nativeModule().uniffi_dbx_tools_core_checksum_method_providerauth_token() !==
|
|
2747
|
+
if (nativeModule().uniffi_dbx_tools_core_checksum_method_providerauth_token() !== 42139) {
|
|
2748
2748
|
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_core_checksum_method_providerauth_token");
|
|
2749
2749
|
}
|
|
2750
2750
|
if (nativeModule().uniffi_dbx_tools_core_checksum_method_storageadapter_load() !== 54668) {
|