@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
@@ -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 {
|
@@ -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: () => {} }
|
@@ -671,6 +671,32 @@ module.exports.isKeyGenerationError = function (error) {
|
|
671
671
|
}
|
672
672
|
};
|
673
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
|
+
|
674
700
|
/**
|
675
701
|
* @param {any} error
|
676
702
|
* @returns {boolean}
|
@@ -801,22 +827,41 @@ module.exports.isEncryptFileError = function (error) {
|
|
801
827
|
}
|
802
828
|
};
|
803
829
|
|
804
|
-
function __wbg_adapter_54(arg0, arg1) {
|
805
|
-
|
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(
|
806
851
|
arg0,
|
807
852
|
arg1,
|
853
|
+
addHeapObject(arg2),
|
808
854
|
);
|
809
855
|
}
|
810
856
|
|
811
|
-
function
|
812
|
-
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(
|
813
859
|
arg0,
|
814
860
|
arg1,
|
815
|
-
addHeapObject(arg2),
|
816
861
|
);
|
817
862
|
}
|
818
863
|
|
819
|
-
function
|
864
|
+
function __wbg_adapter_335(arg0, arg1, arg2, arg3) {
|
820
865
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e(
|
821
866
|
arg0,
|
822
867
|
arg1,
|
@@ -3717,10 +3762,18 @@ class StateClient {
|
|
3717
3762
|
wasm.__wbg_stateclient_free(ptr, 0);
|
3718
3763
|
}
|
3719
3764
|
/**
|
3720
|
-
* @param {Repository<Cipher>}
|
3765
|
+
* @param {Repository<Cipher>} cipher_repository
|
3721
3766
|
*/
|
3722
|
-
register_cipher_repository(
|
3723
|
-
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);
|
3724
3777
|
}
|
3725
3778
|
/**
|
3726
3779
|
* @param {Repository<Folder>} store
|
@@ -3880,6 +3933,12 @@ module.exports.__wbg_abort_775ef1d17fc65868 = function (arg0) {
|
|
3880
3933
|
getObject(arg0).abort();
|
3881
3934
|
};
|
3882
3935
|
|
3936
|
+
module.exports.__wbg_abort_99fc644e2c79c9fb = function () {
|
3937
|
+
return handleError(function (arg0) {
|
3938
|
+
getObject(arg0).abort();
|
3939
|
+
}, arguments);
|
3940
|
+
};
|
3941
|
+
|
3883
3942
|
module.exports.__wbg_addEventListener_dc3da056b615f634 = function (arg0, arg1, arg2, arg3) {
|
3884
3943
|
getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
3885
3944
|
};
|
@@ -3941,6 +4000,13 @@ module.exports.__wbg_collectionviewnodeitem_new = function (arg0) {
|
|
3941
4000
|
return addHeapObject(ret);
|
3942
4001
|
};
|
3943
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
|
+
|
3944
4010
|
module.exports.__wbg_crypto_574e78ad8b13b65f = function (arg0) {
|
3945
4011
|
const ret = getObject(arg0).crypto;
|
3946
4012
|
return addHeapObject(ret);
|
@@ -3976,6 +4042,13 @@ module.exports.__wbg_error_80de38b3f7cc3c3c = function (arg0, arg1, arg2, arg3)
|
|
3976
4042
|
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
3977
4043
|
};
|
3978
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
|
+
|
3979
4052
|
module.exports.__wbg_fetch_3afbdcc7ddbf16fe = function (arg0) {
|
3980
4053
|
const ret = fetch(getObject(arg0));
|
3981
4054
|
return addHeapObject(ret);
|
@@ -4003,7 +4076,7 @@ module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
|
|
4003
4076
|
return ret;
|
4004
4077
|
};
|
4005
4078
|
|
4006
|
-
module.exports.
|
4079
|
+
module.exports.__wbg_get_25b288bb536ff50e = function () {
|
4007
4080
|
return handleError(function (arg0, arg1, arg2) {
|
4008
4081
|
let deferred0_0;
|
4009
4082
|
let deferred0_1;
|
@@ -4018,19 +4091,7 @@ module.exports.__wbg_get_5ba7fe45e71ba65c = function () {
|
|
4018
4091
|
}, arguments);
|
4019
4092
|
};
|
4020
4093
|
|
4021
|
-
module.exports.
|
4022
|
-
return handleError(function (arg0, arg1) {
|
4023
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
4024
|
-
return addHeapObject(ret);
|
4025
|
-
}, arguments);
|
4026
|
-
};
|
4027
|
-
|
4028
|
-
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
4029
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
4030
|
-
return addHeapObject(ret);
|
4031
|
-
};
|
4032
|
-
|
4033
|
-
module.exports.__wbg_get_df7e5d864ed1c406 = function () {
|
4094
|
+
module.exports.__wbg_get_444e7a6ce6eb7e5e = function () {
|
4034
4095
|
return handleError(function (arg0, arg1, arg2) {
|
4035
4096
|
let deferred0_0;
|
4036
4097
|
let deferred0_1;
|
@@ -4045,7 +4106,19 @@ module.exports.__wbg_get_df7e5d864ed1c406 = function () {
|
|
4045
4106
|
}, arguments);
|
4046
4107
|
};
|
4047
4108
|
|
4048
|
-
module.exports.
|
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
|
+
|
4116
|
+
module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
4117
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
4118
|
+
return addHeapObject(ret);
|
4119
|
+
};
|
4120
|
+
|
4121
|
+
module.exports.__wbg_getaccesstoken_055c42ef4caf834f = function (arg0) {
|
4049
4122
|
const ret = getObject(arg0).get_access_token();
|
4050
4123
|
return addHeapObject(ret);
|
4051
4124
|
};
|
@@ -4072,6 +4145,20 @@ module.exports.__wbg_incomingmessage_new = function (arg0) {
|
|
4072
4145
|
return addHeapObject(ret);
|
4073
4146
|
};
|
4074
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
|
+
|
4075
4162
|
module.exports.__wbg_info_033d8b8a0838f1d3 = function (arg0, arg1, arg2, arg3) {
|
4076
4163
|
console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
4077
4164
|
};
|
@@ -4087,6 +4174,50 @@ module.exports.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function (arg0) {
|
|
4087
4174
|
return ret;
|
4088
4175
|
};
|
4089
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
|
+
|
4090
4221
|
module.exports.__wbg_instanceof_Map_f3469ce2244d2430 = function (arg0) {
|
4091
4222
|
let result;
|
4092
4223
|
try {
|
@@ -4120,6 +4251,28 @@ module.exports.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function (arg0) {
|
|
4120
4251
|
return ret;
|
4121
4252
|
};
|
4122
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
|
+
|
4123
4276
|
module.exports.__wbg_ipcclientsubscription_new = function (arg0) {
|
4124
4277
|
const ret = IpcClientSubscription.__wrap(arg0);
|
4125
4278
|
return addHeapObject(ret);
|
@@ -4150,14 +4303,14 @@ module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
|
|
4150
4303
|
return ret;
|
4151
4304
|
};
|
4152
4305
|
|
4153
|
-
module.exports.
|
4306
|
+
module.exports.__wbg_list_7d12b313287d8a69 = function () {
|
4154
4307
|
return handleError(function (arg0) {
|
4155
4308
|
const ret = getObject(arg0).list();
|
4156
4309
|
return addHeapObject(ret);
|
4157
4310
|
}, arguments);
|
4158
4311
|
};
|
4159
4312
|
|
4160
|
-
module.exports.
|
4313
|
+
module.exports.__wbg_list_cd54fb8e57c55204 = function () {
|
4161
4314
|
return handleError(function (arg0) {
|
4162
4315
|
const ret = getObject(arg0).list();
|
4163
4316
|
return addHeapObject(ret);
|
@@ -4173,6 +4326,14 @@ module.exports.__wbg_msCrypto_a61aeb35a24c1329 = function (arg0) {
|
|
4173
4326
|
return addHeapObject(ret);
|
4174
4327
|
};
|
4175
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
|
+
|
4176
4337
|
module.exports.__wbg_new0_f788a2397c7ca929 = function () {
|
4177
4338
|
const ret = new Date();
|
4178
4339
|
return addHeapObject(ret);
|
@@ -4192,7 +4353,7 @@ module.exports.__wbg_new_23a2665fac83c611 = function (arg0, arg1) {
|
|
4192
4353
|
const a = state0.a;
|
4193
4354
|
state0.a = 0;
|
4194
4355
|
try {
|
4195
|
-
return
|
4356
|
+
return __wbg_adapter_335(a, state0.b, arg0, arg1);
|
4196
4357
|
} finally {
|
4197
4358
|
state0.a = a;
|
4198
4359
|
}
|
@@ -4307,6 +4468,13 @@ module.exports.__wbg_node_905d3e251edff8a2 = function (arg0) {
|
|
4307
4468
|
return addHeapObject(ret);
|
4308
4469
|
};
|
4309
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
|
+
|
4310
4478
|
module.exports.__wbg_parse_def2e24ef1252aff = function () {
|
4311
4479
|
return handleError(function (arg0, arg1) {
|
4312
4480
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
@@ -4314,6 +4482,10 @@ module.exports.__wbg_parse_def2e24ef1252aff = function () {
|
|
4314
4482
|
}, arguments);
|
4315
4483
|
};
|
4316
4484
|
|
4485
|
+
module.exports.__wbg_preventDefault_c2314fd813c02b3c = function (arg0) {
|
4486
|
+
getObject(arg0).preventDefault();
|
4487
|
+
};
|
4488
|
+
|
4317
4489
|
module.exports.__wbg_process_dc0fbacc7c1c06f7 = function (arg0) {
|
4318
4490
|
const ret = getObject(arg0).process;
|
4319
4491
|
return addHeapObject(ret);
|
@@ -4339,7 +4511,7 @@ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function () {
|
|
4339
4511
|
}, arguments);
|
4340
4512
|
};
|
4341
4513
|
|
4342
|
-
module.exports.
|
4514
|
+
module.exports.__wbg_remove_a71d513aa38e9797 = function () {
|
4343
4515
|
return handleError(function (arg0, arg1, arg2) {
|
4344
4516
|
let deferred0_0;
|
4345
4517
|
let deferred0_1;
|
@@ -4354,7 +4526,7 @@ module.exports.__wbg_remove_295d65307335485a = function () {
|
|
4354
4526
|
}, arguments);
|
4355
4527
|
};
|
4356
4528
|
|
4357
|
-
module.exports.
|
4529
|
+
module.exports.__wbg_remove_da8d65b34c713893 = function () {
|
4358
4530
|
return handleError(function (arg0, arg1, arg2) {
|
4359
4531
|
let deferred0_0;
|
4360
4532
|
let deferred0_1;
|
@@ -4381,6 +4553,13 @@ module.exports.__wbg_resolve_4851785c9c5f573d = function (arg0) {
|
|
4381
4553
|
return addHeapObject(ret);
|
4382
4554
|
};
|
4383
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
|
+
|
4384
4563
|
module.exports.__wbg_send_9b8fc6bb517867dd = function () {
|
4385
4564
|
return handleError(function (arg0, arg1) {
|
4386
4565
|
const ret = getObject(arg0).send(OutgoingMessage.__wrap(arg1));
|
@@ -4393,21 +4572,6 @@ module.exports.__wbg_setTimeout_ca12ead8b48245e2 = function (arg0, arg1) {
|
|
4393
4572
|
return addHeapObject(ret);
|
4394
4573
|
};
|
4395
4574
|
|
4396
|
-
module.exports.__wbg_set_2d113a1bd16aab72 = function () {
|
4397
|
-
return handleError(function (arg0, arg1, arg2, arg3) {
|
4398
|
-
let deferred0_0;
|
4399
|
-
let deferred0_1;
|
4400
|
-
try {
|
4401
|
-
deferred0_0 = arg1;
|
4402
|
-
deferred0_1 = arg2;
|
4403
|
-
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
4404
|
-
return addHeapObject(ret);
|
4405
|
-
} finally {
|
4406
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
4407
|
-
}
|
4408
|
-
}, arguments);
|
4409
|
-
};
|
4410
|
-
|
4411
4575
|
module.exports.__wbg_set_37837023f3d740e8 = function (arg0, arg1, arg2) {
|
4412
4576
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
4413
4577
|
};
|
@@ -4420,7 +4584,7 @@ module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
4420
4584
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
4421
4585
|
};
|
4422
4586
|
|
4423
|
-
module.exports.
|
4587
|
+
module.exports.__wbg_set_8745f9d3798c34ea = function () {
|
4424
4588
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
4425
4589
|
let deferred0_0;
|
4426
4590
|
let deferred0_1;
|
@@ -4440,6 +4604,21 @@ module.exports.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
|
|
4440
4604
|
return addHeapObject(ret);
|
4441
4605
|
};
|
4442
4606
|
|
4607
|
+
module.exports.__wbg_set_d4d89f99f7d13750 = function () {
|
4608
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
4609
|
+
let deferred0_0;
|
4610
|
+
let deferred0_1;
|
4611
|
+
try {
|
4612
|
+
deferred0_0 = arg1;
|
4613
|
+
deferred0_1 = arg2;
|
4614
|
+
const ret = getObject(arg0).set(getStringFromWasm0(arg1, arg2), takeObject(arg3));
|
4615
|
+
return addHeapObject(ret);
|
4616
|
+
} finally {
|
4617
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
4618
|
+
}
|
4619
|
+
}, arguments);
|
4620
|
+
};
|
4621
|
+
|
4443
4622
|
module.exports.__wbg_setbody_5923b78a95eedf29 = function (arg0, arg1) {
|
4444
4623
|
getObject(arg0).body = getObject(arg1);
|
4445
4624
|
};
|
@@ -4472,6 +4651,18 @@ module.exports.__wbg_setname_c0e2d6f348c746f4 = function (arg0, arg1, arg2) {
|
|
4472
4651
|
}
|
4473
4652
|
};
|
4474
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
|
+
|
4475
4666
|
module.exports.__wbg_setsignal_75b21ef3a81de905 = function (arg0, arg1) {
|
4476
4667
|
getObject(arg0).signal = getObject(arg1);
|
4477
4668
|
};
|
@@ -4542,6 +4733,11 @@ module.exports.__wbg_subarray_aa9065fa9dc5df96 = function (arg0, arg1, arg2) {
|
|
4542
4733
|
return addHeapObject(ret);
|
4543
4734
|
};
|
4544
4735
|
|
4736
|
+
module.exports.__wbg_target_0a62d9d79a2a1ede = function (arg0) {
|
4737
|
+
const ret = getObject(arg0).target;
|
4738
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
4739
|
+
};
|
4740
|
+
|
4545
4741
|
module.exports.__wbg_text_7805bea50de2af49 = function () {
|
4546
4742
|
return handleError(function (arg0) {
|
4547
4743
|
const ret = getObject(arg0).text();
|
@@ -4559,6 +4755,11 @@ module.exports.__wbg_then_48b406749878a531 = function (arg0, arg1, arg2) {
|
|
4559
4755
|
return addHeapObject(ret);
|
4560
4756
|
};
|
4561
4757
|
|
4758
|
+
module.exports.__wbg_transaction_e713aa7b07ccaedd = function (arg0) {
|
4759
|
+
const ret = getObject(arg0).transaction;
|
4760
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
4761
|
+
};
|
4762
|
+
|
4562
4763
|
module.exports.__wbg_url_ae10c34ca209681d = function (arg0, arg1) {
|
4563
4764
|
const ret = getObject(arg1).url;
|
4564
4765
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -4628,18 +4829,28 @@ module.exports.__wbindgen_cb_drop = function (arg0) {
|
|
4628
4829
|
return ret;
|
4629
4830
|
};
|
4630
4831
|
|
4631
|
-
module.exports.
|
4632
|
-
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);
|
4633
4844
|
return addHeapObject(ret);
|
4634
4845
|
};
|
4635
4846
|
|
4636
|
-
module.exports.
|
4637
|
-
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);
|
4638
4849
|
return addHeapObject(ret);
|
4639
4850
|
};
|
4640
4851
|
|
4641
|
-
module.exports.
|
4642
|
-
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);
|
4643
4854
|
return addHeapObject(ret);
|
4644
4855
|
};
|
4645
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: (
|
@@ -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,
|