@bitwarden/sdk-internal 0.2.0-main.278 → 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 +25 -1
- package/bitwarden_wasm_internal_bg.js +278 -67
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +11 -2
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +25 -1
- package/node/bitwarden_wasm_internal.js +275 -64
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +11 -2
- package/package.json +1 -1
package/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
8a7175fe9b2668bd51008081caca135adf4bdd0e
|
@@ -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
|
}
|
@@ -846,6 +850,25 @@ export interface KeyGenerationError extends Error {
|
|
846
850
|
|
847
851
|
export function isKeyGenerationError(error: any): error is KeyGenerationError;
|
848
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
|
+
|
849
872
|
export interface CallError extends Error {
|
850
873
|
name: "CallError";
|
851
874
|
}
|
@@ -1906,7 +1929,8 @@ export class SendAccessClient {
|
|
1906
1929
|
export class StateClient {
|
1907
1930
|
private constructor();
|
1908
1931
|
free(): void;
|
1909
|
-
register_cipher_repository(
|
1932
|
+
register_cipher_repository(cipher_repository: Repository<Cipher>): void;
|
1933
|
+
initialize_state(configuration: IndexedDbConfiguration): Promise<void>;
|
1910
1934
|
register_folder_repository(store: Repository<Folder>): void;
|
1911
1935
|
}
|
1912
1936
|
export class TotpClient {
|
@@ -95,18 +95,6 @@ function getDataViewMemory0() {
|
|
95
95
|
return cachedDataViewMemory0;
|
96
96
|
}
|
97
97
|
|
98
|
-
const lTextDecoder =
|
99
|
-
typeof TextDecoder === "undefined" ? (0, module.require)("util").TextDecoder : TextDecoder;
|
100
|
-
|
101
|
-
let cachedTextDecoder = new lTextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
102
|
-
|
103
|
-
cachedTextDecoder.decode();
|
104
|
-
|
105
|
-
function getStringFromWasm0(ptr, len) {
|
106
|
-
ptr = ptr >>> 0;
|
107
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
108
|
-
}
|
109
|
-
|
110
98
|
let heap_next = heap.length;
|
111
99
|
|
112
100
|
function addHeapObject(obj) {
|
@@ -126,6 +114,18 @@ function handleError(f, args) {
|
|
126
114
|
}
|
127
115
|
}
|
128
116
|
|
117
|
+
const lTextDecoder =
|
118
|
+
typeof TextDecoder === "undefined" ? (0, module.require)("util").TextDecoder : TextDecoder;
|
119
|
+
|
120
|
+
let cachedTextDecoder = new lTextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
121
|
+
|
122
|
+
cachedTextDecoder.decode();
|
123
|
+
|
124
|
+
function getStringFromWasm0(ptr, len) {
|
125
|
+
ptr = ptr >>> 0;
|
126
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
127
|
+
}
|
128
|
+
|
129
129
|
function dropObject(idx) {
|
130
130
|
if (idx < 132) return;
|
131
131
|
heap[idx] = heap_next;
|
@@ -138,15 +138,15 @@ function takeObject(idx) {
|
|
138
138
|
return ret;
|
139
139
|
}
|
140
140
|
|
141
|
+
function isLikeNone(x) {
|
142
|
+
return x === undefined || x === null;
|
143
|
+
}
|
144
|
+
|
141
145
|
function getArrayU8FromWasm0(ptr, len) {
|
142
146
|
ptr = ptr >>> 0;
|
143
147
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
144
148
|
}
|
145
149
|
|
146
|
-
function isLikeNone(x) {
|
147
|
-
return x === undefined || x === null;
|
148
|
-
}
|
149
|
-
|
150
150
|
const CLOSURE_DTORS =
|
151
151
|
typeof FinalizationRegistry === "undefined"
|
152
152
|
? { register: () => {}, unregister: () => {} }
|
@@ -677,6 +677,32 @@ export function isKeyGenerationError(error) {
|
|
677
677
|
}
|
678
678
|
}
|
679
679
|
|
680
|
+
/**
|
681
|
+
* @param {any} error
|
682
|
+
* @returns {boolean}
|
683
|
+
*/
|
684
|
+
export function isDatabaseError(error) {
|
685
|
+
try {
|
686
|
+
const ret = wasm.isDatabaseError(addBorrowedObject(error));
|
687
|
+
return ret !== 0;
|
688
|
+
} finally {
|
689
|
+
heap[stack_pointer++] = undefined;
|
690
|
+
}
|
691
|
+
}
|
692
|
+
|
693
|
+
/**
|
694
|
+
* @param {any} error
|
695
|
+
* @returns {boolean}
|
696
|
+
*/
|
697
|
+
export function isStateRegistryError(error) {
|
698
|
+
try {
|
699
|
+
const ret = wasm.isStateRegistryError(addBorrowedObject(error));
|
700
|
+
return ret !== 0;
|
701
|
+
} finally {
|
702
|
+
heap[stack_pointer++] = undefined;
|
703
|
+
}
|
704
|
+
}
|
705
|
+
|
680
706
|
/**
|
681
707
|
* @param {any} error
|
682
708
|
* @returns {boolean}
|
@@ -807,22 +833,41 @@ export function isEncryptFileError(error) {
|
|
807
833
|
}
|
808
834
|
}
|
809
835
|
|
810
|
-
function __wbg_adapter_54(arg0, arg1) {
|
811
|
-
|
836
|
+
function __wbg_adapter_54(arg0, arg1, arg2) {
|
837
|
+
try {
|
838
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
839
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9c17fabd6ed0afb9(
|
840
|
+
retptr,
|
841
|
+
arg0,
|
842
|
+
arg1,
|
843
|
+
addHeapObject(arg2),
|
844
|
+
);
|
845
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
846
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
847
|
+
if (r1) {
|
848
|
+
throw takeObject(r0);
|
849
|
+
}
|
850
|
+
} finally {
|
851
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
852
|
+
}
|
853
|
+
}
|
854
|
+
|
855
|
+
function __wbg_adapter_57(arg0, arg1, arg2) {
|
856
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h39f908e1764ad3e2(
|
812
857
|
arg0,
|
813
858
|
arg1,
|
859
|
+
addHeapObject(arg2),
|
814
860
|
);
|
815
861
|
}
|
816
862
|
|
817
|
-
function
|
818
|
-
wasm.
|
863
|
+
function __wbg_adapter_60(arg0, arg1) {
|
864
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e(
|
819
865
|
arg0,
|
820
866
|
arg1,
|
821
|
-
addHeapObject(arg2),
|
822
867
|
);
|
823
868
|
}
|
824
869
|
|
825
|
-
function
|
870
|
+
function __wbg_adapter_335(arg0, arg1, arg2, arg3) {
|
826
871
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e(
|
827
872
|
arg0,
|
828
873
|
arg1,
|
@@ -3704,10 +3749,18 @@ export class StateClient {
|
|
3704
3749
|
wasm.__wbg_stateclient_free(ptr, 0);
|
3705
3750
|
}
|
3706
3751
|
/**
|
3707
|
-
* @param {Repository<Cipher>}
|
3752
|
+
* @param {Repository<Cipher>} cipher_repository
|
3708
3753
|
*/
|
3709
|
-
register_cipher_repository(
|
3710
|
-
wasm.stateclient_register_cipher_repository(this.__wbg_ptr, addHeapObject(
|
3754
|
+
register_cipher_repository(cipher_repository) {
|
3755
|
+
wasm.stateclient_register_cipher_repository(this.__wbg_ptr, addHeapObject(cipher_repository));
|
3756
|
+
}
|
3757
|
+
/**
|
3758
|
+
* @param {IndexedDbConfiguration} configuration
|
3759
|
+
* @returns {Promise<void>}
|
3760
|
+
*/
|
3761
|
+
initialize_state(configuration) {
|
3762
|
+
const ret = wasm.stateclient_initialize_state(this.__wbg_ptr, addHeapObject(configuration));
|
3763
|
+
return takeObject(ret);
|
3711
3764
|
}
|
3712
3765
|
/**
|
3713
3766
|
* @param {Repository<Folder>} store
|
@@ -3864,6 +3917,12 @@ export function __wbg_abort_775ef1d17fc65868(arg0) {
|
|
3864
3917
|
getObject(arg0).abort();
|
3865
3918
|
}
|
3866
3919
|
|
3920
|
+
export function __wbg_abort_99fc644e2c79c9fb() {
|
3921
|
+
return handleError(function (arg0) {
|
3922
|
+
getObject(arg0).abort();
|
3923
|
+
}, arguments);
|
3924
|
+
}
|
3925
|
+
|
3867
3926
|
export function __wbg_addEventListener_dc3da056b615f634(arg0, arg1, arg2, arg3) {
|
3868
3927
|
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
3869
3928
|
}
|
@@ -3925,6 +3984,13 @@ export function __wbg_collectionviewnodeitem_new(arg0) {
|
|
3925
3984
|
return addHeapObject(ret);
|
3926
3985
|
}
|
3927
3986
|
|
3987
|
+
export function __wbg_createObjectStore_d2f9e1016f4d81b9() {
|
3988
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
3989
|
+
const ret = getObject(arg0).createObjectStore(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
3990
|
+
return addHeapObject(ret);
|
3991
|
+
}, arguments);
|
3992
|
+
}
|
3993
|
+
|
3928
3994
|
export function __wbg_crypto_574e78ad8b13b65f(arg0) {
|
3929
3995
|
const ret = getObject(arg0).crypto;
|
3930
3996
|
return addHeapObject(ret);
|
@@ -3960,6 +4026,13 @@ export function __wbg_error_80de38b3f7cc3c3c(arg0, arg1, arg2, arg3) {
|
|
3960
4026
|
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
3961
4027
|
}
|
3962
4028
|
|
4029
|
+
export function __wbg_error_ff4ddaabdfc5dbb3() {
|
4030
|
+
return handleError(function (arg0) {
|
4031
|
+
const ret = getObject(arg0).error;
|
4032
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
4033
|
+
}, arguments);
|
4034
|
+
}
|
4035
|
+
|
3963
4036
|
export function __wbg_fetch_3afbdcc7ddbf16fe(arg0) {
|
3964
4037
|
const ret = fetch(getObject(arg0));
|
3965
4038
|
return addHeapObject(ret);
|
@@ -3987,7 +4060,7 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
|
|
3987
4060
|
return ret;
|
3988
4061
|
}
|
3989
4062
|
|
3990
|
-
export function
|
4063
|
+
export function __wbg_get_25b288bb536ff50e() {
|
3991
4064
|
return handleError(function (arg0, arg1, arg2) {
|
3992
4065
|
let deferred0_0;
|
3993
4066
|
let deferred0_1;
|
@@ -4002,19 +4075,7 @@ export function __wbg_get_5ba7fe45e71ba65c() {
|
|
4002
4075
|
}, arguments);
|
4003
4076
|
}
|
4004
4077
|
|
4005
|
-
export function
|
4006
|
-
return handleError(function (arg0, arg1) {
|
4007
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
4008
|
-
return addHeapObject(ret);
|
4009
|
-
}, arguments);
|
4010
|
-
}
|
4011
|
-
|
4012
|
-
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
4013
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
4014
|
-
return addHeapObject(ret);
|
4015
|
-
}
|
4016
|
-
|
4017
|
-
export function __wbg_get_df7e5d864ed1c406() {
|
4078
|
+
export function __wbg_get_444e7a6ce6eb7e5e() {
|
4018
4079
|
return handleError(function (arg0, arg1, arg2) {
|
4019
4080
|
let deferred0_0;
|
4020
4081
|
let deferred0_1;
|
@@ -4029,7 +4090,19 @@ export function __wbg_get_df7e5d864ed1c406() {
|
|
4029
4090
|
}, arguments);
|
4030
4091
|
}
|
4031
4092
|
|
4032
|
-
export function
|
4093
|
+
export function __wbg_get_67b2ba62fc30de12() {
|
4094
|
+
return handleError(function (arg0, arg1) {
|
4095
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
4096
|
+
return addHeapObject(ret);
|
4097
|
+
}, arguments);
|
4098
|
+
}
|
4099
|
+
|
4100
|
+
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
4101
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
4102
|
+
return addHeapObject(ret);
|
4103
|
+
}
|
4104
|
+
|
4105
|
+
export function __wbg_getaccesstoken_055c42ef4caf834f(arg0) {
|
4033
4106
|
const ret = getObject(arg0).get_access_token();
|
4034
4107
|
return addHeapObject(ret);
|
4035
4108
|
}
|
@@ -4056,6 +4129,20 @@ export function __wbg_incomingmessage_new(arg0) {
|
|
4056
4129
|
return addHeapObject(ret);
|
4057
4130
|
}
|
4058
4131
|
|
4132
|
+
export function __wbg_indexedDB_b1f49280282046f8() {
|
4133
|
+
return handleError(function (arg0) {
|
4134
|
+
const ret = getObject(arg0).indexedDB;
|
4135
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
4136
|
+
}, arguments);
|
4137
|
+
}
|
4138
|
+
|
4139
|
+
export function __wbg_indexedDB_f6b47b0dc333fd2f() {
|
4140
|
+
return handleError(function (arg0) {
|
4141
|
+
const ret = getObject(arg0).indexedDB;
|
4142
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
4143
|
+
}, arguments);
|
4144
|
+
}
|
4145
|
+
|
4059
4146
|
export function __wbg_info_033d8b8a0838f1d3(arg0, arg1, arg2, arg3) {
|
4060
4147
|
console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
4061
4148
|
}
|
@@ -4071,6 +4158,50 @@ export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
|
|
4071
4158
|
return ret;
|
4072
4159
|
}
|
4073
4160
|
|
4161
|
+
export function __wbg_instanceof_DomException_ed1ccb7aaf39034c(arg0) {
|
4162
|
+
let result;
|
4163
|
+
try {
|
4164
|
+
result = getObject(arg0) instanceof DOMException;
|
4165
|
+
} catch (_) {
|
4166
|
+
result = false;
|
4167
|
+
}
|
4168
|
+
const ret = result;
|
4169
|
+
return ret;
|
4170
|
+
}
|
4171
|
+
|
4172
|
+
export function __wbg_instanceof_IdbDatabase_a3ef009ca00059f9(arg0) {
|
4173
|
+
let result;
|
4174
|
+
try {
|
4175
|
+
result = getObject(arg0) instanceof IDBDatabase;
|
4176
|
+
} catch (_) {
|
4177
|
+
result = false;
|
4178
|
+
}
|
4179
|
+
const ret = result;
|
4180
|
+
return ret;
|
4181
|
+
}
|
4182
|
+
|
4183
|
+
export function __wbg_instanceof_IdbOpenDbRequest_a3416e156c9db893(arg0) {
|
4184
|
+
let result;
|
4185
|
+
try {
|
4186
|
+
result = getObject(arg0) instanceof IDBOpenDBRequest;
|
4187
|
+
} catch (_) {
|
4188
|
+
result = false;
|
4189
|
+
}
|
4190
|
+
const ret = result;
|
4191
|
+
return ret;
|
4192
|
+
}
|
4193
|
+
|
4194
|
+
export function __wbg_instanceof_IdbRequest_4813c3f207666aa4(arg0) {
|
4195
|
+
let result;
|
4196
|
+
try {
|
4197
|
+
result = getObject(arg0) instanceof IDBRequest;
|
4198
|
+
} catch (_) {
|
4199
|
+
result = false;
|
4200
|
+
}
|
4201
|
+
const ret = result;
|
4202
|
+
return ret;
|
4203
|
+
}
|
4204
|
+
|
4074
4205
|
export function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
|
4075
4206
|
let result;
|
4076
4207
|
try {
|
@@ -4104,6 +4235,28 @@ export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
|
|
4104
4235
|
return ret;
|
4105
4236
|
}
|
4106
4237
|
|
4238
|
+
export function __wbg_instanceof_Window_def73ea0955fc569(arg0) {
|
4239
|
+
let result;
|
4240
|
+
try {
|
4241
|
+
result = getObject(arg0) instanceof Window;
|
4242
|
+
} catch (_) {
|
4243
|
+
result = false;
|
4244
|
+
}
|
4245
|
+
const ret = result;
|
4246
|
+
return ret;
|
4247
|
+
}
|
4248
|
+
|
4249
|
+
export function __wbg_instanceof_WorkerGlobalScope_dbdbdea7e3b56493(arg0) {
|
4250
|
+
let result;
|
4251
|
+
try {
|
4252
|
+
result = getObject(arg0) instanceof WorkerGlobalScope;
|
4253
|
+
} catch (_) {
|
4254
|
+
result = false;
|
4255
|
+
}
|
4256
|
+
const ret = result;
|
4257
|
+
return ret;
|
4258
|
+
}
|
4259
|
+
|
4107
4260
|
export function __wbg_ipcclientsubscription_new(arg0) {
|
4108
4261
|
const ret = IpcClientSubscription.__wrap(arg0);
|
4109
4262
|
return addHeapObject(ret);
|
@@ -4134,14 +4287,14 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
4134
4287
|
return ret;
|
4135
4288
|
}
|
4136
4289
|
|
4137
|
-
export function
|
4290
|
+
export function __wbg_list_7d12b313287d8a69() {
|
4138
4291
|
return handleError(function (arg0) {
|
4139
4292
|
const ret = getObject(arg0).list();
|
4140
4293
|
return addHeapObject(ret);
|
4141
4294
|
}, arguments);
|
4142
4295
|
}
|
4143
4296
|
|
4144
|
-
export function
|
4297
|
+
export function __wbg_list_cd54fb8e57c55204() {
|
4145
4298
|
return handleError(function (arg0) {
|
4146
4299
|
const ret = getObject(arg0).list();
|
4147
4300
|
return addHeapObject(ret);
|
@@ -4157,6 +4310,14 @@ export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
|
|
4157
4310
|
return addHeapObject(ret);
|
4158
4311
|
}
|
4159
4312
|
|
4313
|
+
export function __wbg_name_f2d27098bfd843e7(arg0, arg1) {
|
4314
|
+
const ret = getObject(arg1).name;
|
4315
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
4316
|
+
const len1 = WASM_VECTOR_LEN;
|
4317
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
4318
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
4319
|
+
}
|
4320
|
+
|
4160
4321
|
export function __wbg_new0_f788a2397c7ca929() {
|
4161
4322
|
const ret = new Date();
|
4162
4323
|
return addHeapObject(ret);
|
@@ -4176,7 +4337,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
4176
4337
|
const a = state0.a;
|
4177
4338
|
state0.a = 0;
|
4178
4339
|
try {
|
4179
|
-
return
|
4340
|
+
return __wbg_adapter_335(a, state0.b, arg0, arg1);
|
4180
4341
|
} finally {
|
4181
4342
|
state0.a = a;
|
4182
4343
|
}
|
@@ -4291,6 +4452,13 @@ export function __wbg_node_905d3e251edff8a2(arg0) {
|
|
4291
4452
|
return addHeapObject(ret);
|
4292
4453
|
}
|
4293
4454
|
|
4455
|
+
export function __wbg_open_e0c0b2993eb596e1() {
|
4456
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
4457
|
+
const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
4458
|
+
return addHeapObject(ret);
|
4459
|
+
}, arguments);
|
4460
|
+
}
|
4461
|
+
|
4294
4462
|
export function __wbg_parse_def2e24ef1252aff() {
|
4295
4463
|
return handleError(function (arg0, arg1) {
|
4296
4464
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
@@ -4298,6 +4466,10 @@ export function __wbg_parse_def2e24ef1252aff() {
|
|
4298
4466
|
}, arguments);
|
4299
4467
|
}
|
4300
4468
|
|
4469
|
+
export function __wbg_preventDefault_c2314fd813c02b3c(arg0) {
|
4470
|
+
getObject(arg0).preventDefault();
|
4471
|
+
}
|
4472
|
+
|
4301
4473
|
export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
|
4302
4474
|
const ret = getObject(arg0).process;
|
4303
4475
|
return addHeapObject(ret);
|
@@ -4323,7 +4495,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
|
|
4323
4495
|
}, arguments);
|
4324
4496
|
}
|
4325
4497
|
|
4326
|
-
export function
|
4498
|
+
export function __wbg_remove_a71d513aa38e9797() {
|
4327
4499
|
return handleError(function (arg0, arg1, arg2) {
|
4328
4500
|
let deferred0_0;
|
4329
4501
|
let deferred0_1;
|
@@ -4338,7 +4510,7 @@ export function __wbg_remove_295d65307335485a() {
|
|
4338
4510
|
}, arguments);
|
4339
4511
|
}
|
4340
4512
|
|
4341
|
-
export function
|
4513
|
+
export function __wbg_remove_da8d65b34c713893() {
|
4342
4514
|
return handleError(function (arg0, arg1, arg2) {
|
4343
4515
|
let deferred0_0;
|
4344
4516
|
let deferred0_1;
|
@@ -4365,6 +4537,13 @@ export function __wbg_resolve_4851785c9c5f573d(arg0) {
|
|
4365
4537
|
return addHeapObject(ret);
|
4366
4538
|
}
|
4367
4539
|
|
4540
|
+
export function __wbg_result_f29afabdf2c05826() {
|
4541
|
+
return handleError(function (arg0) {
|
4542
|
+
const ret = getObject(arg0).result;
|
4543
|
+
return addHeapObject(ret);
|
4544
|
+
}, arguments);
|
4545
|
+
}
|
4546
|
+
|
4368
4547
|
export function __wbg_send_9b8fc6bb517867dd() {
|
4369
4548
|
return handleError(function (arg0, arg1) {
|
4370
4549
|
const ret = getObject(arg0).send(OutgoingMessage.__wrap(arg1));
|
@@ -4377,21 +4556,6 @@ export function __wbg_setTimeout_ca12ead8b48245e2(arg0, arg1) {
|
|
4377
4556
|
return addHeapObject(ret);
|
4378
4557
|
}
|
4379
4558
|
|
4380
|
-
export function __wbg_set_2d113a1bd16aab72() {
|
4381
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
4382
|
-
let deferred0_0;
|
4383
|
-
let deferred0_1;
|
4384
|
-
try {
|
4385
|
-
deferred0_0 = arg1;
|
4386
|
-
deferred0_1 = arg2;
|
4387
|
-
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
4388
|
-
return addHeapObject(ret);
|
4389
|
-
} finally {
|
4390
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
4391
|
-
}
|
4392
|
-
}, arguments);
|
4393
|
-
}
|
4394
|
-
|
4395
4559
|
export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
4396
4560
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
4397
4561
|
}
|
@@ -4404,7 +4568,7 @@ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
4404
4568
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
4405
4569
|
}
|
4406
4570
|
|
4407
|
-
export function
|
4571
|
+
export function __wbg_set_8745f9d3798c34ea() {
|
4408
4572
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
4409
4573
|
let deferred0_0;
|
4410
4574
|
let deferred0_1;
|
@@ -4424,6 +4588,21 @@ export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
4424
4588
|
return addHeapObject(ret);
|
4425
4589
|
}
|
4426
4590
|
|
4591
|
+
export function __wbg_set_d4d89f99f7d13750() {
|
4592
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
4593
|
+
let deferred0_0;
|
4594
|
+
let deferred0_1;
|
4595
|
+
try {
|
4596
|
+
deferred0_0 = arg1;
|
4597
|
+
deferred0_1 = arg2;
|
4598
|
+
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
4599
|
+
return addHeapObject(ret);
|
4600
|
+
} finally {
|
4601
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
4602
|
+
}
|
4603
|
+
}, arguments);
|
4604
|
+
}
|
4605
|
+
|
4427
4606
|
export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
|
4428
4607
|
getObject(arg0).body = getObject(arg1);
|
4429
4608
|
}
|
@@ -4456,6 +4635,18 @@ export function __wbg_setname_c0e2d6f348c746f4(arg0, arg1, arg2) {
|
|
4456
4635
|
}
|
4457
4636
|
}
|
4458
4637
|
|
4638
|
+
export function __wbg_setonerror_d7e3056cc6e56085(arg0, arg1) {
|
4639
|
+
getObject(arg0).onerror = getObject(arg1);
|
4640
|
+
}
|
4641
|
+
|
4642
|
+
export function __wbg_setonsuccess_afa464ee777a396d(arg0, arg1) {
|
4643
|
+
getObject(arg0).onsuccess = getObject(arg1);
|
4644
|
+
}
|
4645
|
+
|
4646
|
+
export function __wbg_setonupgradeneeded_fcf7ce4f2eb0cb5f(arg0, arg1) {
|
4647
|
+
getObject(arg0).onupgradeneeded = getObject(arg1);
|
4648
|
+
}
|
4649
|
+
|
4459
4650
|
export function __wbg_setsignal_75b21ef3a81de905(arg0, arg1) {
|
4460
4651
|
getObject(arg0).signal = getObject(arg1);
|
4461
4652
|
}
|
@@ -4526,6 +4717,11 @@ export function __wbg_subarray_aa9065fa9dc5df96(arg0, arg1, arg2) {
|
|
4526
4717
|
return addHeapObject(ret);
|
4527
4718
|
}
|
4528
4719
|
|
4720
|
+
export function __wbg_target_0a62d9d79a2a1ede(arg0) {
|
4721
|
+
const ret = getObject(arg0).target;
|
4722
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
4723
|
+
}
|
4724
|
+
|
4529
4725
|
export function __wbg_text_7805bea50de2af49() {
|
4530
4726
|
return handleError(function (arg0) {
|
4531
4727
|
const ret = getObject(arg0).text();
|
@@ -4543,6 +4739,11 @@ export function __wbg_then_48b406749878a531(arg0, arg1, arg2) {
|
|
4543
4739
|
return addHeapObject(ret);
|
4544
4740
|
}
|
4545
4741
|
|
4742
|
+
export function __wbg_transaction_e713aa7b07ccaedd(arg0) {
|
4743
|
+
const ret = getObject(arg0).transaction;
|
4744
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
4745
|
+
}
|
4746
|
+
|
4546
4747
|
export function __wbg_url_ae10c34ca209681d(arg0, arg1) {
|
4547
4748
|
const ret = getObject(arg1).url;
|
4548
4749
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -4612,18 +4813,28 @@ export function __wbindgen_cb_drop(arg0) {
|
|
4612
4813
|
return ret;
|
4613
4814
|
}
|
4614
4815
|
|
4615
|
-
export function
|
4616
|
-
const ret = makeMutClosure(arg0, arg1,
|
4816
|
+
export function __wbindgen_closure_wrapper187(arg0, arg1, arg2) {
|
4817
|
+
const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_54);
|
4818
|
+
return addHeapObject(ret);
|
4819
|
+
}
|
4820
|
+
|
4821
|
+
export function __wbindgen_closure_wrapper189(arg0, arg1, arg2) {
|
4822
|
+
const ret = makeMutClosure(arg0, arg1, 7, __wbg_adapter_57);
|
4823
|
+
return addHeapObject(ret);
|
4824
|
+
}
|
4825
|
+
|
4826
|
+
export function __wbindgen_closure_wrapper3593(arg0, arg1, arg2) {
|
4827
|
+
const ret = makeMutClosure(arg0, arg1, 291, __wbg_adapter_60);
|
4617
4828
|
return addHeapObject(ret);
|
4618
4829
|
}
|
4619
4830
|
|
4620
|
-
export function
|
4621
|
-
const ret = makeMutClosure(arg0, arg1,
|
4831
|
+
export function __wbindgen_closure_wrapper5961(arg0, arg1, arg2) {
|
4832
|
+
const ret = makeMutClosure(arg0, arg1, 316, __wbg_adapter_60);
|
4622
4833
|
return addHeapObject(ret);
|
4623
4834
|
}
|
4624
4835
|
|
4625
|
-
export function
|
4626
|
-
const ret = makeMutClosure(arg0, arg1,
|
4836
|
+
export function __wbindgen_closure_wrapper6336(arg0, arg1, arg2) {
|
4837
|
+
const ret = makeMutClosure(arg0, arg1, 340, __wbg_adapter_57);
|
4627
4838
|
return addHeapObject(ret);
|
4628
4839
|
}
|
4629
4840
|
|
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: (
|
@@ -294,6 +295,8 @@ export const isSubscribeError: (a: number) => number;
|
|
294
295
|
export const isSshKeyExportError: (a: number) => number;
|
295
296
|
export const isSshKeyImportError: (a: number) => number;
|
296
297
|
export const isKeyGenerationError: (a: number) => number;
|
298
|
+
export const isDatabaseError: (a: number) => number;
|
299
|
+
export const isStateRegistryError: (a: number) => number;
|
297
300
|
export const isCallError: (a: number) => number;
|
298
301
|
export const __wbg_attachmentsclient_free: (a: number, b: number) => void;
|
299
302
|
export const attachmentsclient_decrypt_buffer: (
|
@@ -395,15 +398,21 @@ export const __wbindgen_exn_store: (a: number) => void;
|
|
395
398
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
396
399
|
export const __wbindgen_export_4: WebAssembly.Table;
|
397
400
|
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
398
|
-
export const
|
401
|
+
export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9c17fabd6ed0afb9: (
|
399
402
|
a: number,
|
400
403
|
b: number,
|
404
|
+
c: number,
|
405
|
+
d: number,
|
401
406
|
) => void;
|
402
|
-
export const
|
407
|
+
export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h39f908e1764ad3e2: (
|
403
408
|
a: number,
|
404
409
|
b: number,
|
405
410
|
c: number,
|
406
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;
|
407
416
|
export const wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e: (
|
408
417
|
a: number,
|
409
418
|
b: number,
|