@bitwarden/sdk-internal 0.2.0-main.219 → 0.2.0-main.220
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/VERSION +1 -1
- package/bitwarden_wasm_internal.d.ts +5 -1
- package/bitwarden_wasm_internal_bg.js +33 -24
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +2 -2
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +5 -1
- package/node/bitwarden_wasm_internal.js +33 -24
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +2 -2
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d5c0dc57218b5217750af646a12f65b32f753e82
|
|
@@ -1186,6 +1186,10 @@ export interface Repository<T> {
|
|
|
1186
1186
|
remove(id: string): Promise<void>;
|
|
1187
1187
|
}
|
|
1188
1188
|
|
|
1189
|
+
export interface TokenProvider {
|
|
1190
|
+
get_access_token(): Promise<string>;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1189
1193
|
export interface TestError extends Error {
|
|
1190
1194
|
name: "TestError";
|
|
1191
1195
|
}
|
|
@@ -1203,7 +1207,7 @@ export class AttachmentsClient {
|
|
|
1203
1207
|
}
|
|
1204
1208
|
export class BitwardenClient {
|
|
1205
1209
|
free(): void;
|
|
1206
|
-
constructor(settings
|
|
1210
|
+
constructor(settings: ClientSettings | null | undefined, token_provider: any);
|
|
1207
1211
|
/**
|
|
1208
1212
|
* Test method, echoes back the input
|
|
1209
1213
|
*/
|
|
@@ -753,7 +753,7 @@ function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
|
753
753
|
);
|
|
754
754
|
}
|
|
755
755
|
|
|
756
|
-
function
|
|
756
|
+
function __wbg_adapter_276(arg0, arg1, arg2, arg3) {
|
|
757
757
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h8776500d04a3e634(
|
|
758
758
|
arg0,
|
|
759
759
|
arg1,
|
|
@@ -990,10 +990,14 @@ export class BitwardenClient {
|
|
|
990
990
|
wasm.__wbg_bitwardenclient_free(ptr, 0);
|
|
991
991
|
}
|
|
992
992
|
/**
|
|
993
|
-
* @param {ClientSettings | null}
|
|
993
|
+
* @param {ClientSettings | null | undefined} settings
|
|
994
|
+
* @param {any} token_provider
|
|
994
995
|
*/
|
|
995
|
-
constructor(settings) {
|
|
996
|
-
const ret = wasm.bitwardenclient_new(
|
|
996
|
+
constructor(settings, token_provider) {
|
|
997
|
+
const ret = wasm.bitwardenclient_new(
|
|
998
|
+
isLikeNone(settings) ? 0 : addHeapObject(settings),
|
|
999
|
+
addHeapObject(token_provider),
|
|
1000
|
+
);
|
|
997
1001
|
this.__wbg_ptr = ret >>> 0;
|
|
998
1002
|
BitwardenClientFinalization.register(this, this.__wbg_ptr, this);
|
|
999
1003
|
return this;
|
|
@@ -3316,12 +3320,7 @@ export function __wbg_get_67b2ba62fc30de12() {
|
|
|
3316
3320
|
}, arguments);
|
|
3317
3321
|
}
|
|
3318
3322
|
|
|
3319
|
-
export function
|
|
3320
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
3321
|
-
return addHeapObject(ret);
|
|
3322
|
-
}
|
|
3323
|
-
|
|
3324
|
-
export function __wbg_get_f2cf19c228273ccd() {
|
|
3323
|
+
export function __wbg_get_a3863a1264cebac2() {
|
|
3325
3324
|
return handleError(function (arg0, arg1, arg2) {
|
|
3326
3325
|
let deferred0_0;
|
|
3327
3326
|
let deferred0_1;
|
|
@@ -3336,6 +3335,16 @@ export function __wbg_get_f2cf19c228273ccd() {
|
|
|
3336
3335
|
}, arguments);
|
|
3337
3336
|
}
|
|
3338
3337
|
|
|
3338
|
+
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
3339
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
3340
|
+
return addHeapObject(ret);
|
|
3341
|
+
}
|
|
3342
|
+
|
|
3343
|
+
export function __wbg_getaccesstoken_136d18c86407dc71(arg0) {
|
|
3344
|
+
const ret = getObject(arg0).get_access_token();
|
|
3345
|
+
return addHeapObject(ret);
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3339
3348
|
export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
|
|
3340
3349
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
3341
3350
|
return addHeapObject(ret);
|
|
@@ -3436,7 +3445,7 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
|
3436
3445
|
return ret;
|
|
3437
3446
|
}
|
|
3438
3447
|
|
|
3439
|
-
export function
|
|
3448
|
+
export function __wbg_list_3165ae7a631e4388() {
|
|
3440
3449
|
return handleError(function (arg0) {
|
|
3441
3450
|
const ret = getObject(arg0).list();
|
|
3442
3451
|
return addHeapObject(ret);
|
|
@@ -3471,7 +3480,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
3471
3480
|
const a = state0.a;
|
|
3472
3481
|
state0.a = 0;
|
|
3473
3482
|
try {
|
|
3474
|
-
return
|
|
3483
|
+
return __wbg_adapter_276(a, state0.b, arg0, arg1);
|
|
3475
3484
|
} finally {
|
|
3476
3485
|
state0.a = a;
|
|
3477
3486
|
}
|
|
@@ -3613,7 +3622,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
|
3613
3622
|
}, arguments);
|
|
3614
3623
|
}
|
|
3615
3624
|
|
|
3616
|
-
export function
|
|
3625
|
+
export function __wbg_remove_fd0081a475f8a37b() {
|
|
3617
3626
|
return handleError(function (arg0, arg1, arg2) {
|
|
3618
3627
|
let deferred0_0;
|
|
3619
3628
|
let deferred0_1;
|
|
@@ -3660,7 +3669,11 @@ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
|
3660
3669
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
3661
3670
|
}
|
|
3662
3671
|
|
|
3663
|
-
export function
|
|
3672
|
+
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
3673
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3674
|
+
}
|
|
3675
|
+
|
|
3676
|
+
export function __wbg_set_8d6472bae5625430() {
|
|
3664
3677
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3665
3678
|
let deferred0_0;
|
|
3666
3679
|
let deferred0_1;
|
|
@@ -3675,10 +3688,6 @@ export function __wbg_set_4b77629bc769d667() {
|
|
|
3675
3688
|
}, arguments);
|
|
3676
3689
|
}
|
|
3677
3690
|
|
|
3678
|
-
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
3679
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
3680
|
-
}
|
|
3681
|
-
|
|
3682
3691
|
export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
|
|
3683
3692
|
getObject(arg0).body = getObject(arg1);
|
|
3684
3693
|
}
|
|
@@ -3858,18 +3867,18 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
3858
3867
|
return ret;
|
|
3859
3868
|
}
|
|
3860
3869
|
|
|
3861
|
-
export function
|
|
3862
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3870
|
+
export function __wbindgen_closure_wrapper2853(arg0, arg1, arg2) {
|
|
3871
|
+
const ret = makeMutClosure(arg0, arg1, 913, __wbg_adapter_50);
|
|
3863
3872
|
return addHeapObject(ret);
|
|
3864
3873
|
}
|
|
3865
3874
|
|
|
3866
|
-
export function
|
|
3867
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3875
|
+
export function __wbindgen_closure_wrapper3693(arg0, arg1, arg2) {
|
|
3876
|
+
const ret = makeMutClosure(arg0, arg1, 997, __wbg_adapter_53);
|
|
3868
3877
|
return addHeapObject(ret);
|
|
3869
3878
|
}
|
|
3870
3879
|
|
|
3871
|
-
export function
|
|
3872
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3880
|
+
export function __wbindgen_closure_wrapper4111(arg0, arg1, arg2) {
|
|
3881
|
+
const ret = makeMutClosure(arg0, arg1, 1120, __wbg_adapter_56);
|
|
3873
3882
|
return addHeapObject(ret);
|
|
3874
3883
|
}
|
|
3875
3884
|
|
|
Binary file
|
|
@@ -148,7 +148,7 @@ export const __wbg_foldersclient_free: (a: number, b: number) => void;
|
|
|
148
148
|
export const __wbg_vaultclient_free: (a: number, b: number) => void;
|
|
149
149
|
export const __wbg_totpclient_free: (a: number, b: number) => void;
|
|
150
150
|
export const __wbg_bitwardenclient_free: (a: number, b: number) => void;
|
|
151
|
-
export const bitwardenclient_new: (a: number) => number;
|
|
151
|
+
export const bitwardenclient_new: (a: number, b: number) => number;
|
|
152
152
|
export const bitwardenclient_echo: (a: number, b: number, c: number, d: number) => void;
|
|
153
153
|
export const bitwardenclient_version: (a: number, b: number) => void;
|
|
154
154
|
export const bitwardenclient_throw: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -314,9 +314,9 @@ export const purecrypto_unwrap_encapsulation_key: (
|
|
|
314
314
|
export const bitwardenclient_vault: (a: number) => number;
|
|
315
315
|
export const bitwardenclient_generator: (a: number) => number;
|
|
316
316
|
export const bitwardenclient_exporters: (a: number) => number;
|
|
317
|
-
export const __wbg_stateclient_free: (a: number, b: number) => void;
|
|
318
317
|
export const __wbg_platformclient_free: (a: number, b: number) => void;
|
|
319
318
|
export const platformclient_state: (a: number) => number;
|
|
319
|
+
export const __wbg_stateclient_free: (a: number, b: number) => void;
|
|
320
320
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
321
321
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
322
322
|
export const __wbindgen_exn_store: (a: number) => void;
|