@bitwarden/sdk-internal 0.2.0-main.277 → 0.2.0-main.279
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 +32 -1
- package/bitwarden_wasm_internal_bg.js +272 -48
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +12 -2
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +32 -1
- package/node/bitwarden_wasm_internal.js +269 -45
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +12 -2
- package/package.json +1 -1
@@ -169,6 +169,10 @@ export interface TokenProvider {
|
|
169
169
|
*/
|
170
170
|
export interface FeatureFlags extends Map<string, boolean> {}
|
171
171
|
|
172
|
+
export interface IndexedDbConfiguration {
|
173
|
+
db_name: string;
|
174
|
+
}
|
175
|
+
|
172
176
|
export interface TestError extends Error {
|
173
177
|
name: "TestError";
|
174
178
|
}
|
@@ -449,6 +453,13 @@ export type OrganizationId = Tagged<Uuid, "OrganizationId">;
|
|
449
453
|
*/
|
450
454
|
export type PasswordProtectedKeyEnvelope = Tagged<string, "PasswordProtectedKeyEnvelope">;
|
451
455
|
|
456
|
+
export interface MasterPasswordError extends Error {
|
457
|
+
name: "MasterPasswordError";
|
458
|
+
variant: "EncryptionKeyMalformed" | "KdfMalformed" | "MissingField";
|
459
|
+
}
|
460
|
+
|
461
|
+
export function isMasterPasswordError(error: any): error is MasterPasswordError;
|
462
|
+
|
452
463
|
export interface DeriveKeyConnectorError extends Error {
|
453
464
|
name: "DeriveKeyConnectorError";
|
454
465
|
variant: "WrongPassword" | "Crypto";
|
@@ -839,6 +850,25 @@ export interface KeyGenerationError extends Error {
|
|
839
850
|
|
840
851
|
export function isKeyGenerationError(error: any): error is KeyGenerationError;
|
841
852
|
|
853
|
+
export interface DatabaseError extends Error {
|
854
|
+
name: "DatabaseError";
|
855
|
+
variant:
|
856
|
+
| "UnsupportedConfiguration"
|
857
|
+
| "ThreadBoundRunner"
|
858
|
+
| "Serialization"
|
859
|
+
| "JSError"
|
860
|
+
| "Internal";
|
861
|
+
}
|
862
|
+
|
863
|
+
export function isDatabaseError(error: any): error is DatabaseError;
|
864
|
+
|
865
|
+
export interface StateRegistryError extends Error {
|
866
|
+
name: "StateRegistryError";
|
867
|
+
variant: "DatabaseAlreadyInitialized" | "DatabaseNotInitialized" | "Database";
|
868
|
+
}
|
869
|
+
|
870
|
+
export function isStateRegistryError(error: any): error is StateRegistryError;
|
871
|
+
|
842
872
|
export interface CallError extends Error {
|
843
873
|
name: "CallError";
|
844
874
|
}
|
@@ -1899,7 +1929,8 @@ export class SendAccessClient {
|
|
1899
1929
|
export class StateClient {
|
1900
1930
|
private constructor();
|
1901
1931
|
free(): void;
|
1902
|
-
register_cipher_repository(
|
1932
|
+
register_cipher_repository(cipher_repository: Repository<Cipher>): void;
|
1933
|
+
initialize_state(configuration: IndexedDbConfiguration): Promise<void>;
|
1903
1934
|
register_folder_repository(store: Repository<Folder>): void;
|
1904
1935
|
}
|
1905
1936
|
export class TotpClient {
|
@@ -92,15 +92,6 @@ function getDataViewMemory0() {
|
|
92
92
|
return cachedDataViewMemory0;
|
93
93
|
}
|
94
94
|
|
95
|
-
let cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
96
|
-
|
97
|
-
cachedTextDecoder.decode();
|
98
|
-
|
99
|
-
function getStringFromWasm0(ptr, len) {
|
100
|
-
ptr = ptr >>> 0;
|
101
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
102
|
-
}
|
103
|
-
|
104
95
|
let heap_next = heap.length;
|
105
96
|
|
106
97
|
function addHeapObject(obj) {
|
@@ -120,6 +111,15 @@ function handleError(f, args) {
|
|
120
111
|
}
|
121
112
|
}
|
122
113
|
|
114
|
+
let cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
115
|
+
|
116
|
+
cachedTextDecoder.decode();
|
117
|
+
|
118
|
+
function getStringFromWasm0(ptr, len) {
|
119
|
+
ptr = ptr >>> 0;
|
120
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
121
|
+
}
|
122
|
+
|
123
123
|
function dropObject(idx) {
|
124
124
|
if (idx < 132) return;
|
125
125
|
heap[idx] = heap_next;
|
@@ -132,15 +132,15 @@ function takeObject(idx) {
|
|
132
132
|
return ret;
|
133
133
|
}
|
134
134
|
|
135
|
+
function isLikeNone(x) {
|
136
|
+
return x === undefined || x === null;
|
137
|
+
}
|
138
|
+
|
135
139
|
function getArrayU8FromWasm0(ptr, len) {
|
136
140
|
ptr = ptr >>> 0;
|
137
141
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
138
142
|
}
|
139
143
|
|
140
|
-
function isLikeNone(x) {
|
141
|
-
return x === undefined || x === null;
|
142
|
-
}
|
143
|
-
|
144
144
|
const CLOSURE_DTORS =
|
145
145
|
typeof FinalizationRegistry === "undefined"
|
146
146
|
? { register: () => {}, unregister: () => {} }
|
@@ -358,6 +358,19 @@ module.exports.isCollectionDecryptError = function (error) {
|
|
358
358
|
}
|
359
359
|
};
|
360
360
|
|
361
|
+
/**
|
362
|
+
* @param {any} error
|
363
|
+
* @returns {boolean}
|
364
|
+
*/
|
365
|
+
module.exports.isMasterPasswordError = function (error) {
|
366
|
+
try {
|
367
|
+
const ret = wasm.isMasterPasswordError(addBorrowedObject(error));
|
368
|
+
return ret !== 0;
|
369
|
+
} finally {
|
370
|
+
heap[stack_pointer++] = undefined;
|
371
|
+
}
|
372
|
+
};
|
373
|
+
|
361
374
|
/**
|
362
375
|
* @param {any} error
|
363
376
|
* @returns {boolean}
|
@@ -658,6 +671,32 @@ module.exports.isKeyGenerationError = function (error) {
|
|
658
671
|
}
|
659
672
|
};
|
660
673
|
|
674
|
+
/**
|
675
|
+
* @param {any} error
|
676
|
+
* @returns {boolean}
|
677
|
+
*/
|
678
|
+
module.exports.isDatabaseError = function (error) {
|
679
|
+
try {
|
680
|
+
const ret = wasm.isDatabaseError(addBorrowedObject(error));
|
681
|
+
return ret !== 0;
|
682
|
+
} finally {
|
683
|
+
heap[stack_pointer++] = undefined;
|
684
|
+
}
|
685
|
+
};
|
686
|
+
|
687
|
+
/**
|
688
|
+
* @param {any} error
|
689
|
+
* @returns {boolean}
|
690
|
+
*/
|
691
|
+
module.exports.isStateRegistryError = function (error) {
|
692
|
+
try {
|
693
|
+
const ret = wasm.isStateRegistryError(addBorrowedObject(error));
|
694
|
+
return ret !== 0;
|
695
|
+
} finally {
|
696
|
+
heap[stack_pointer++] = undefined;
|
697
|
+
}
|
698
|
+
};
|
699
|
+
|
661
700
|
/**
|
662
701
|
* @param {any} error
|
663
702
|
* @returns {boolean}
|
@@ -788,22 +827,41 @@ module.exports.isEncryptFileError = function (error) {
|
|
788
827
|
}
|
789
828
|
};
|
790
829
|
|
791
|
-
function __wbg_adapter_54(arg0, arg1) {
|
792
|
-
|
830
|
+
function __wbg_adapter_54(arg0, arg1, arg2) {
|
831
|
+
try {
|
832
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
833
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9c17fabd6ed0afb9(
|
834
|
+
retptr,
|
835
|
+
arg0,
|
836
|
+
arg1,
|
837
|
+
addHeapObject(arg2),
|
838
|
+
);
|
839
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
840
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
841
|
+
if (r1) {
|
842
|
+
throw takeObject(r0);
|
843
|
+
}
|
844
|
+
} finally {
|
845
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
846
|
+
}
|
847
|
+
}
|
848
|
+
|
849
|
+
function __wbg_adapter_57(arg0, arg1, arg2) {
|
850
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h39f908e1764ad3e2(
|
793
851
|
arg0,
|
794
852
|
arg1,
|
853
|
+
addHeapObject(arg2),
|
795
854
|
);
|
796
855
|
}
|
797
856
|
|
798
|
-
function
|
799
|
-
wasm.
|
857
|
+
function __wbg_adapter_60(arg0, arg1) {
|
858
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e(
|
800
859
|
arg0,
|
801
860
|
arg1,
|
802
|
-
addHeapObject(arg2),
|
803
861
|
);
|
804
862
|
}
|
805
863
|
|
806
|
-
function
|
864
|
+
function __wbg_adapter_335(arg0, arg1, arg2, arg3) {
|
807
865
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e(
|
808
866
|
arg0,
|
809
867
|
arg1,
|
@@ -3704,10 +3762,18 @@ class StateClient {
|
|
3704
3762
|
wasm.__wbg_stateclient_free(ptr, 0);
|
3705
3763
|
}
|
3706
3764
|
/**
|
3707
|
-
* @param {Repository<Cipher>}
|
3765
|
+
* @param {Repository<Cipher>} cipher_repository
|
3708
3766
|
*/
|
3709
|
-
register_cipher_repository(
|
3710
|
-
wasm.stateclient_register_cipher_repository(this.__wbg_ptr, addHeapObject(
|
3767
|
+
register_cipher_repository(cipher_repository) {
|
3768
|
+
wasm.stateclient_register_cipher_repository(this.__wbg_ptr, addHeapObject(cipher_repository));
|
3769
|
+
}
|
3770
|
+
/**
|
3771
|
+
* @param {IndexedDbConfiguration} configuration
|
3772
|
+
* @returns {Promise<void>}
|
3773
|
+
*/
|
3774
|
+
initialize_state(configuration) {
|
3775
|
+
const ret = wasm.stateclient_initialize_state(this.__wbg_ptr, addHeapObject(configuration));
|
3776
|
+
return takeObject(ret);
|
3711
3777
|
}
|
3712
3778
|
/**
|
3713
3779
|
* @param {Repository<Folder>} store
|
@@ -3867,6 +3933,12 @@ module.exports.__wbg_abort_775ef1d17fc65868 = function (arg0) {
|
|
3867
3933
|
getObject(arg0).abort();
|
3868
3934
|
};
|
3869
3935
|
|
3936
|
+
module.exports.__wbg_abort_99fc644e2c79c9fb = function () {
|
3937
|
+
return handleError(function (arg0) {
|
3938
|
+
getObject(arg0).abort();
|
3939
|
+
}, arguments);
|
3940
|
+
};
|
3941
|
+
|
3870
3942
|
module.exports.__wbg_addEventListener_dc3da056b615f634 = function (arg0, arg1, arg2, arg3) {
|
3871
3943
|
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
3872
3944
|
};
|
@@ -3928,6 +4000,13 @@ module.exports.__wbg_collectionviewnodeitem_new = function (arg0) {
|
|
3928
4000
|
return addHeapObject(ret);
|
3929
4001
|
};
|
3930
4002
|
|
4003
|
+
module.exports.__wbg_createObjectStore_d2f9e1016f4d81b9 = function () {
|
4004
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
4005
|
+
const ret = getObject(arg0).createObjectStore(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
4006
|
+
return addHeapObject(ret);
|
4007
|
+
}, arguments);
|
4008
|
+
};
|
4009
|
+
|
3931
4010
|
module.exports.__wbg_crypto_574e78ad8b13b65f = function (arg0) {
|
3932
4011
|
const ret = getObject(arg0).crypto;
|
3933
4012
|
return addHeapObject(ret);
|
@@ -3963,6 +4042,13 @@ module.exports.__wbg_error_80de38b3f7cc3c3c = function (arg0, arg1, arg2, arg3)
|
|
3963
4042
|
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
3964
4043
|
};
|
3965
4044
|
|
4045
|
+
module.exports.__wbg_error_ff4ddaabdfc5dbb3 = function () {
|
4046
|
+
return handleError(function (arg0) {
|
4047
|
+
const ret = getObject(arg0).error;
|
4048
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
4049
|
+
}, arguments);
|
4050
|
+
};
|
4051
|
+
|
3966
4052
|
module.exports.__wbg_fetch_3afbdcc7ddbf16fe = function (arg0) {
|
3967
4053
|
const ret = fetch(getObject(arg0));
|
3968
4054
|
return addHeapObject(ret);
|
@@ -3990,7 +4076,7 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
|
|
3990
4076
|
return ret;
|
3991
4077
|
};
|
3992
4078
|
|
3993
|
-
module.exports.
|
4079
|
+
module.exports.__wbg_get_25b288bb536ff50e = function () {
|
3994
4080
|
return handleError(function (arg0, arg1, arg2) {
|
3995
4081
|
let deferred0_0;
|
3996
4082
|
let deferred0_1;
|
@@ -4005,14 +4091,7 @@ module.exports.__wbg_get_14cdc39c31ffe1da = function () {
|
|
4005
4091
|
}, arguments);
|
4006
4092
|
};
|
4007
4093
|
|
4008
|
-
module.exports.
|
4009
|
-
return handleError(function (arg0, arg1) {
|
4010
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
4011
|
-
return addHeapObject(ret);
|
4012
|
-
}, arguments);
|
4013
|
-
};
|
4014
|
-
|
4015
|
-
module.exports.__wbg_get_96e6d3bbee08db28 = function () {
|
4094
|
+
module.exports.__wbg_get_444e7a6ce6eb7e5e = function () {
|
4016
4095
|
return handleError(function (arg0, arg1, arg2) {
|
4017
4096
|
let deferred0_0;
|
4018
4097
|
let deferred0_1;
|
@@ -4027,12 +4106,19 @@ module.exports.__wbg_get_96e6d3bbee08db28 = function () {
|
|
4027
4106
|
}, arguments);
|
4028
4107
|
};
|
4029
4108
|
|
4109
|
+
module.exports.__wbg_get_67b2ba62fc30de12 = function () {
|
4110
|
+
return handleError(function (arg0, arg1) {
|
4111
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
4112
|
+
return addHeapObject(ret);
|
4113
|
+
}, arguments);
|
4114
|
+
};
|
4115
|
+
|
4030
4116
|
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
4031
4117
|
const ret = getObject(arg0)[arg1 >>> 0];
|
4032
4118
|
return addHeapObject(ret);
|
4033
4119
|
};
|
4034
4120
|
|
4035
|
-
module.exports.
|
4121
|
+
module.exports.__wbg_getaccesstoken_055c42ef4caf834f = function (arg0) {
|
4036
4122
|
const ret = getObject(arg0).get_access_token();
|
4037
4123
|
return addHeapObject(ret);
|
4038
4124
|
};
|
@@ -4059,6 +4145,20 @@ module.exports.__wbg_incomingmessage_new = function (arg0) {
|
|
4059
4145
|
return addHeapObject(ret);
|
4060
4146
|
};
|
4061
4147
|
|
4148
|
+
module.exports.__wbg_indexedDB_b1f49280282046f8 = function () {
|
4149
|
+
return handleError(function (arg0) {
|
4150
|
+
const ret = getObject(arg0).indexedDB;
|
4151
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
4152
|
+
}, arguments);
|
4153
|
+
};
|
4154
|
+
|
4155
|
+
module.exports.__wbg_indexedDB_f6b47b0dc333fd2f = function () {
|
4156
|
+
return handleError(function (arg0) {
|
4157
|
+
const ret = getObject(arg0).indexedDB;
|
4158
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
4159
|
+
}, arguments);
|
4160
|
+
};
|
4161
|
+
|
4062
4162
|
module.exports.__wbg_info_033d8b8a0838f1d3 = function (arg0, arg1, arg2, arg3) {
|
4063
4163
|
console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
4064
4164
|
};
|
@@ -4074,6 +4174,50 @@ module.exports.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function (arg0) {
|
|
4074
4174
|
return ret;
|
4075
4175
|
};
|
4076
4176
|
|
4177
|
+
module.exports.__wbg_instanceof_DomException_ed1ccb7aaf39034c = function (arg0) {
|
4178
|
+
let result;
|
4179
|
+
try {
|
4180
|
+
result = getObject(arg0) instanceof DOMException;
|
4181
|
+
} catch (_) {
|
4182
|
+
result = false;
|
4183
|
+
}
|
4184
|
+
const ret = result;
|
4185
|
+
return ret;
|
4186
|
+
};
|
4187
|
+
|
4188
|
+
module.exports.__wbg_instanceof_IdbDatabase_a3ef009ca00059f9 = function (arg0) {
|
4189
|
+
let result;
|
4190
|
+
try {
|
4191
|
+
result = getObject(arg0) instanceof IDBDatabase;
|
4192
|
+
} catch (_) {
|
4193
|
+
result = false;
|
4194
|
+
}
|
4195
|
+
const ret = result;
|
4196
|
+
return ret;
|
4197
|
+
};
|
4198
|
+
|
4199
|
+
module.exports.__wbg_instanceof_IdbOpenDbRequest_a3416e156c9db893 = function (arg0) {
|
4200
|
+
let result;
|
4201
|
+
try {
|
4202
|
+
result = getObject(arg0) instanceof IDBOpenDBRequest;
|
4203
|
+
} catch (_) {
|
4204
|
+
result = false;
|
4205
|
+
}
|
4206
|
+
const ret = result;
|
4207
|
+
return ret;
|
4208
|
+
};
|
4209
|
+
|
4210
|
+
module.exports.__wbg_instanceof_IdbRequest_4813c3f207666aa4 = function (arg0) {
|
4211
|
+
let result;
|
4212
|
+
try {
|
4213
|
+
result = getObject(arg0) instanceof IDBRequest;
|
4214
|
+
} catch (_) {
|
4215
|
+
result = false;
|
4216
|
+
}
|
4217
|
+
const ret = result;
|
4218
|
+
return ret;
|
4219
|
+
};
|
4220
|
+
|
4077
4221
|
module.exports.__wbg_instanceof_Map_f3469ce2244d2430 = function (arg0) {
|
4078
4222
|
let result;
|
4079
4223
|
try {
|
@@ -4107,6 +4251,28 @@ module.exports.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function (arg0) {
|
|
4107
4251
|
return ret;
|
4108
4252
|
};
|
4109
4253
|
|
4254
|
+
module.exports.__wbg_instanceof_Window_def73ea0955fc569 = function (arg0) {
|
4255
|
+
let result;
|
4256
|
+
try {
|
4257
|
+
result = getObject(arg0) instanceof Window;
|
4258
|
+
} catch (_) {
|
4259
|
+
result = false;
|
4260
|
+
}
|
4261
|
+
const ret = result;
|
4262
|
+
return ret;
|
4263
|
+
};
|
4264
|
+
|
4265
|
+
module.exports.__wbg_instanceof_WorkerGlobalScope_dbdbdea7e3b56493 = function (arg0) {
|
4266
|
+
let result;
|
4267
|
+
try {
|
4268
|
+
result = getObject(arg0) instanceof WorkerGlobalScope;
|
4269
|
+
} catch (_) {
|
4270
|
+
result = false;
|
4271
|
+
}
|
4272
|
+
const ret = result;
|
4273
|
+
return ret;
|
4274
|
+
};
|
4275
|
+
|
4110
4276
|
module.exports.__wbg_ipcclientsubscription_new = function (arg0) {
|
4111
4277
|
const ret = IpcClientSubscription.__wrap(arg0);
|
4112
4278
|
return addHeapObject(ret);
|
@@ -4137,14 +4303,14 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
|
|
4137
4303
|
return ret;
|
4138
4304
|
};
|
4139
4305
|
|
4140
|
-
module.exports.
|
4306
|
+
module.exports.__wbg_list_7d12b313287d8a69 = function () {
|
4141
4307
|
return handleError(function (arg0) {
|
4142
4308
|
const ret = getObject(arg0).list();
|
4143
4309
|
return addHeapObject(ret);
|
4144
4310
|
}, arguments);
|
4145
4311
|
};
|
4146
4312
|
|
4147
|
-
module.exports.
|
4313
|
+
module.exports.__wbg_list_cd54fb8e57c55204 = function () {
|
4148
4314
|
return handleError(function (arg0) {
|
4149
4315
|
const ret = getObject(arg0).list();
|
4150
4316
|
return addHeapObject(ret);
|
@@ -4160,6 +4326,14 @@ module.exports.__wbg_msCrypto_a61aeb35a24c1329 = function (arg0) {
|
|
4160
4326
|
return addHeapObject(ret);
|
4161
4327
|
};
|
4162
4328
|
|
4329
|
+
module.exports.__wbg_name_f2d27098bfd843e7 = function (arg0, arg1) {
|
4330
|
+
const ret = getObject(arg1).name;
|
4331
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
4332
|
+
const len1 = WASM_VECTOR_LEN;
|
4333
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
4334
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
4335
|
+
};
|
4336
|
+
|
4163
4337
|
module.exports.__wbg_new0_f788a2397c7ca929 = function () {
|
4164
4338
|
const ret = new Date();
|
4165
4339
|
return addHeapObject(ret);
|
@@ -4179,7 +4353,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function (arg0, arg1) {
|
|
4179
4353
|
const a = state0.a;
|
4180
4354
|
state0.a = 0;
|
4181
4355
|
try {
|
4182
|
-
return
|
4356
|
+
return __wbg_adapter_335(a, state0.b, arg0, arg1);
|
4183
4357
|
} finally {
|
4184
4358
|
state0.a = a;
|
4185
4359
|
}
|
@@ -4294,6 +4468,13 @@ module.exports.__wbg_node_905d3e251edff8a2 = function (arg0) {
|
|
4294
4468
|
return addHeapObject(ret);
|
4295
4469
|
};
|
4296
4470
|
|
4471
|
+
module.exports.__wbg_open_e0c0b2993eb596e1 = function () {
|
4472
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
4473
|
+
const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
4474
|
+
return addHeapObject(ret);
|
4475
|
+
}, arguments);
|
4476
|
+
};
|
4477
|
+
|
4297
4478
|
module.exports.__wbg_parse_def2e24ef1252aff = function () {
|
4298
4479
|
return handleError(function (arg0, arg1) {
|
4299
4480
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
@@ -4301,6 +4482,10 @@ module.exports.__wbg_parse_def2e24ef1252aff = function () {
|
|
4301
4482
|
}, arguments);
|
4302
4483
|
};
|
4303
4484
|
|
4485
|
+
module.exports.__wbg_preventDefault_c2314fd813c02b3c = function (arg0) {
|
4486
|
+
getObject(arg0).preventDefault();
|
4487
|
+
};
|
4488
|
+
|
4304
4489
|
module.exports.__wbg_process_dc0fbacc7c1c06f7 = function (arg0) {
|
4305
4490
|
const ret = getObject(arg0).process;
|
4306
4491
|
return addHeapObject(ret);
|
@@ -4326,7 +4511,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
4326
4511
|
}, arguments);
|
4327
4512
|
};
|
4328
4513
|
|
4329
|
-
module.exports.
|
4514
|
+
module.exports.__wbg_remove_a71d513aa38e9797 = function () {
|
4330
4515
|
return handleError(function (arg0, arg1, arg2) {
|
4331
4516
|
let deferred0_0;
|
4332
4517
|
let deferred0_1;
|
@@ -4341,7 +4526,7 @@ module.exports.__wbg_remove_c186bc3d34ae82cb = function () {
|
|
4341
4526
|
}, arguments);
|
4342
4527
|
};
|
4343
4528
|
|
4344
|
-
module.exports.
|
4529
|
+
module.exports.__wbg_remove_da8d65b34c713893 = function () {
|
4345
4530
|
return handleError(function (arg0, arg1, arg2) {
|
4346
4531
|
let deferred0_0;
|
4347
4532
|
let deferred0_1;
|
@@ -4368,6 +4553,13 @@ module.exports.__wbg_resolve_4851785c9c5f573d = function (arg0) {
|
|
4368
4553
|
return addHeapObject(ret);
|
4369
4554
|
};
|
4370
4555
|
|
4556
|
+
module.exports.__wbg_result_f29afabdf2c05826 = function () {
|
4557
|
+
return handleError(function (arg0) {
|
4558
|
+
const ret = getObject(arg0).result;
|
4559
|
+
return addHeapObject(ret);
|
4560
|
+
}, arguments);
|
4561
|
+
};
|
4562
|
+
|
4371
4563
|
module.exports.__wbg_send_9b8fc6bb517867dd = function () {
|
4372
4564
|
return handleError(function (arg0, arg1) {
|
4373
4565
|
const ret = getObject(arg0).send(OutgoingMessage.__wrap(arg1));
|
@@ -4392,7 +4584,7 @@ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
4392
4584
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
4393
4585
|
};
|
4394
4586
|
|
4395
|
-
module.exports.
|
4587
|
+
module.exports.__wbg_set_8745f9d3798c34ea = function () {
|
4396
4588
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
4397
4589
|
let deferred0_0;
|
4398
4590
|
let deferred0_1;
|
@@ -4412,7 +4604,7 @@ module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
|
|
4412
4604
|
return addHeapObject(ret);
|
4413
4605
|
};
|
4414
4606
|
|
4415
|
-
module.exports.
|
4607
|
+
module.exports.__wbg_set_d4d89f99f7d13750 = function () {
|
4416
4608
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
4417
4609
|
let deferred0_0;
|
4418
4610
|
let deferred0_1;
|
@@ -4459,6 +4651,18 @@ module.exports.__wbg_setname_c0e2d6f348c746f4 = function (arg0, arg1, arg2) {
|
|
4459
4651
|
}
|
4460
4652
|
};
|
4461
4653
|
|
4654
|
+
module.exports.__wbg_setonerror_d7e3056cc6e56085 = function (arg0, arg1) {
|
4655
|
+
getObject(arg0).onerror = getObject(arg1);
|
4656
|
+
};
|
4657
|
+
|
4658
|
+
module.exports.__wbg_setonsuccess_afa464ee777a396d = function (arg0, arg1) {
|
4659
|
+
getObject(arg0).onsuccess = getObject(arg1);
|
4660
|
+
};
|
4661
|
+
|
4662
|
+
module.exports.__wbg_setonupgradeneeded_fcf7ce4f2eb0cb5f = function (arg0, arg1) {
|
4663
|
+
getObject(arg0).onupgradeneeded = getObject(arg1);
|
4664
|
+
};
|
4665
|
+
|
4462
4666
|
module.exports.__wbg_setsignal_75b21ef3a81de905 = function (arg0, arg1) {
|
4463
4667
|
getObject(arg0).signal = getObject(arg1);
|
4464
4668
|
};
|
@@ -4529,6 +4733,11 @@ module.exports.__wbg_subarray_aa9065fa9dc5df96 = function (arg0, arg1, arg2) {
|
|
4529
4733
|
return addHeapObject(ret);
|
4530
4734
|
};
|
4531
4735
|
|
4736
|
+
module.exports.__wbg_target_0a62d9d79a2a1ede = function (arg0) {
|
4737
|
+
const ret = getObject(arg0).target;
|
4738
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
4739
|
+
};
|
4740
|
+
|
4532
4741
|
module.exports.__wbg_text_7805bea50de2af49 = function () {
|
4533
4742
|
return handleError(function (arg0) {
|
4534
4743
|
const ret = getObject(arg0).text();
|
@@ -4546,6 +4755,11 @@ module.exports.__wbg_then_48b406749878a531 = function (arg0, arg1, arg2) {
|
|
4546
4755
|
return addHeapObject(ret);
|
4547
4756
|
};
|
4548
4757
|
|
4758
|
+
module.exports.__wbg_transaction_e713aa7b07ccaedd = function (arg0) {
|
4759
|
+
const ret = getObject(arg0).transaction;
|
4760
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
4761
|
+
};
|
4762
|
+
|
4549
4763
|
module.exports.__wbg_url_ae10c34ca209681d = function (arg0, arg1) {
|
4550
4764
|
const ret = getObject(arg1).url;
|
4551
4765
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -4615,18 +4829,28 @@ module.exports.__wbindgen_cb_drop = function (arg0) {
|
|
4615
4829
|
return ret;
|
4616
4830
|
};
|
4617
4831
|
|
4618
|
-
module.exports.
|
4619
|
-
const ret = makeMutClosure(arg0, arg1,
|
4832
|
+
module.exports.__wbindgen_closure_wrapper187 = function (arg0, arg1, arg2) {
|
4833
|
+
const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_54);
|
4834
|
+
return addHeapObject(ret);
|
4835
|
+
};
|
4836
|
+
|
4837
|
+
module.exports.__wbindgen_closure_wrapper189 = function (arg0, arg1, arg2) {
|
4838
|
+
const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_57);
|
4839
|
+
return addHeapObject(ret);
|
4840
|
+
};
|
4841
|
+
|
4842
|
+
module.exports.__wbindgen_closure_wrapper3593 = function (arg0, arg1, arg2) {
|
4843
|
+
const ret = makeMutClosure(arg0, arg1, 291, __wbg_adapter_60);
|
4620
4844
|
return addHeapObject(ret);
|
4621
4845
|
};
|
4622
4846
|
|
4623
|
-
module.exports.
|
4624
|
-
const ret = makeMutClosure(arg0, arg1,
|
4847
|
+
module.exports.__wbindgen_closure_wrapper5961 = function (arg0, arg1, arg2) {
|
4848
|
+
const ret = makeMutClosure(arg0, arg1, 316, __wbg_adapter_60);
|
4625
4849
|
return addHeapObject(ret);
|
4626
4850
|
};
|
4627
4851
|
|
4628
|
-
module.exports.
|
4629
|
-
const ret = makeMutClosure(arg0, arg1,
|
4852
|
+
module.exports.__wbindgen_closure_wrapper6336 = function (arg0, arg1, arg2) {
|
4853
|
+
const ret = makeMutClosure(arg0, arg1, 340, __wbg_adapter_57);
|
4630
4854
|
return addHeapObject(ret);
|
4631
4855
|
};
|
4632
4856
|
|
Binary file
|
@@ -17,6 +17,7 @@ export const set_log_level: (a: number) => void;
|
|
17
17
|
export const init_sdk: (a: number) => void;
|
18
18
|
export const platformclient_load_flags: (a: number, b: number, c: number) => void;
|
19
19
|
export const stateclient_register_cipher_repository: (a: number, b: number) => void;
|
20
|
+
export const stateclient_initialize_state: (a: number, b: number) => number;
|
20
21
|
export const stateclient_register_folder_repository: (a: number, b: number) => void;
|
21
22
|
export const __wbg_purecrypto_free: (a: number, b: number) => void;
|
22
23
|
export const purecrypto_symmetric_decrypt: (
|
@@ -200,6 +201,7 @@ export const cryptoclient_unseal_password_protected_key_envelope: (
|
|
200
201
|
d: number,
|
201
202
|
e: number,
|
202
203
|
) => void;
|
204
|
+
export const isMasterPasswordError: (a: number) => number;
|
203
205
|
export const isDeriveKeyConnectorError: (a: number) => number;
|
204
206
|
export const isEnrollAdminPasswordResetError: (a: number) => number;
|
205
207
|
export const isCryptoClientError: (a: number) => number;
|
@@ -293,6 +295,8 @@ export const isSubscribeError: (a: number) => number;
|
|
293
295
|
export const isSshKeyExportError: (a: number) => number;
|
294
296
|
export const isSshKeyImportError: (a: number) => number;
|
295
297
|
export const isKeyGenerationError: (a: number) => number;
|
298
|
+
export const isDatabaseError: (a: number) => number;
|
299
|
+
export const isStateRegistryError: (a: number) => number;
|
296
300
|
export const isCallError: (a: number) => number;
|
297
301
|
export const __wbg_attachmentsclient_free: (a: number, b: number) => void;
|
298
302
|
export const attachmentsclient_decrypt_buffer: (
|
@@ -394,15 +398,21 @@ export const __wbindgen_exn_store: (a: number) => void;
|
|
394
398
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
395
399
|
export const __wbindgen_export_4: WebAssembly.Table;
|
396
400
|
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
397
|
-
export const
|
401
|
+
export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9c17fabd6ed0afb9: (
|
398
402
|
a: number,
|
399
403
|
b: number,
|
404
|
+
c: number,
|
405
|
+
d: number,
|
400
406
|
) => void;
|
401
|
-
export const
|
407
|
+
export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h39f908e1764ad3e2: (
|
402
408
|
a: number,
|
403
409
|
b: number,
|
404
410
|
c: number,
|
405
411
|
) => void;
|
412
|
+
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e: (
|
413
|
+
a: number,
|
414
|
+
b: number,
|
415
|
+
) => void;
|
406
416
|
export const wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e: (
|
407
417
|
a: number,
|
408
418
|
b: number,
|