@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 CHANGED
@@ -1 +1 @@
1
- 10d2ff558f3eeaf2119c71437f298405ea864a5e
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
  }
@@ -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(store: Repository<Cipher>): void;
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 {
@@ -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: () => {} }
@@ -364,6 +364,19 @@ export function isCollectionDecryptError(error) {
364
364
  }
365
365
  }
366
366
 
367
+ /**
368
+ * @param {any} error
369
+ * @returns {boolean}
370
+ */
371
+ export function isMasterPasswordError(error) {
372
+ try {
373
+ const ret = wasm.isMasterPasswordError(addBorrowedObject(error));
374
+ return ret !== 0;
375
+ } finally {
376
+ heap[stack_pointer++] = undefined;
377
+ }
378
+ }
379
+
367
380
  /**
368
381
  * @param {any} error
369
382
  * @returns {boolean}
@@ -664,6 +677,32 @@ export function isKeyGenerationError(error) {
664
677
  }
665
678
  }
666
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
+
667
706
  /**
668
707
  * @param {any} error
669
708
  * @returns {boolean}
@@ -794,22 +833,41 @@ export function isEncryptFileError(error) {
794
833
  }
795
834
  }
796
835
 
797
- function __wbg_adapter_54(arg0, arg1) {
798
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e(
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(
799
857
  arg0,
800
858
  arg1,
859
+ addHeapObject(arg2),
801
860
  );
802
861
  }
803
862
 
804
- function __wbg_adapter_59(arg0, arg1, arg2) {
805
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02(
863
+ function __wbg_adapter_60(arg0, arg1) {
864
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e(
806
865
  arg0,
807
866
  arg1,
808
- addHeapObject(arg2),
809
867
  );
810
868
  }
811
869
 
812
- function __wbg_adapter_326(arg0, arg1, arg2, arg3) {
870
+ function __wbg_adapter_335(arg0, arg1, arg2, arg3) {
813
871
  wasm.wasm_bindgen__convert__closures__invoke2_mut__h54a8613170fef18e(
814
872
  arg0,
815
873
  arg1,
@@ -3691,10 +3749,18 @@ export class StateClient {
3691
3749
  wasm.__wbg_stateclient_free(ptr, 0);
3692
3750
  }
3693
3751
  /**
3694
- * @param {Repository<Cipher>} store
3752
+ * @param {Repository<Cipher>} cipher_repository
3695
3753
  */
3696
- register_cipher_repository(store) {
3697
- wasm.stateclient_register_cipher_repository(this.__wbg_ptr, addHeapObject(store));
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);
3698
3764
  }
3699
3765
  /**
3700
3766
  * @param {Repository<Folder>} store
@@ -3851,6 +3917,12 @@ export function __wbg_abort_775ef1d17fc65868(arg0) {
3851
3917
  getObject(arg0).abort();
3852
3918
  }
3853
3919
 
3920
+ export function __wbg_abort_99fc644e2c79c9fb() {
3921
+ return handleError(function (arg0) {
3922
+ getObject(arg0).abort();
3923
+ }, arguments);
3924
+ }
3925
+
3854
3926
  export function __wbg_addEventListener_dc3da056b615f634(arg0, arg1, arg2, arg3) {
3855
3927
  getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
3856
3928
  }
@@ -3912,6 +3984,13 @@ export function __wbg_collectionviewnodeitem_new(arg0) {
3912
3984
  return addHeapObject(ret);
3913
3985
  }
3914
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
+
3915
3994
  export function __wbg_crypto_574e78ad8b13b65f(arg0) {
3916
3995
  const ret = getObject(arg0).crypto;
3917
3996
  return addHeapObject(ret);
@@ -3947,6 +4026,13 @@ export function __wbg_error_80de38b3f7cc3c3c(arg0, arg1, arg2, arg3) {
3947
4026
  console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
3948
4027
  }
3949
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
+
3950
4036
  export function __wbg_fetch_3afbdcc7ddbf16fe(arg0) {
3951
4037
  const ret = fetch(getObject(arg0));
3952
4038
  return addHeapObject(ret);
@@ -3974,7 +4060,7 @@ export function __wbg_getTime_46267b1c24877e30(arg0) {
3974
4060
  return ret;
3975
4061
  }
3976
4062
 
3977
- export function __wbg_get_14cdc39c31ffe1da() {
4063
+ export function __wbg_get_25b288bb536ff50e() {
3978
4064
  return handleError(function (arg0, arg1, arg2) {
3979
4065
  let deferred0_0;
3980
4066
  let deferred0_1;
@@ -3989,14 +4075,7 @@ export function __wbg_get_14cdc39c31ffe1da() {
3989
4075
  }, arguments);
3990
4076
  }
3991
4077
 
3992
- export function __wbg_get_67b2ba62fc30de12() {
3993
- return handleError(function (arg0, arg1) {
3994
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
3995
- return addHeapObject(ret);
3996
- }, arguments);
3997
- }
3998
-
3999
- export function __wbg_get_96e6d3bbee08db28() {
4078
+ export function __wbg_get_444e7a6ce6eb7e5e() {
4000
4079
  return handleError(function (arg0, arg1, arg2) {
4001
4080
  let deferred0_0;
4002
4081
  let deferred0_1;
@@ -4011,12 +4090,19 @@ export function __wbg_get_96e6d3bbee08db28() {
4011
4090
  }, arguments);
4012
4091
  }
4013
4092
 
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
+
4014
4100
  export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
4015
4101
  const ret = getObject(arg0)[arg1 >>> 0];
4016
4102
  return addHeapObject(ret);
4017
4103
  }
4018
4104
 
4019
- export function __wbg_getaccesstoken_2e3ceda8e23b2f45(arg0) {
4105
+ export function __wbg_getaccesstoken_055c42ef4caf834f(arg0) {
4020
4106
  const ret = getObject(arg0).get_access_token();
4021
4107
  return addHeapObject(ret);
4022
4108
  }
@@ -4043,6 +4129,20 @@ export function __wbg_incomingmessage_new(arg0) {
4043
4129
  return addHeapObject(ret);
4044
4130
  }
4045
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
+
4046
4146
  export function __wbg_info_033d8b8a0838f1d3(arg0, arg1, arg2, arg3) {
4047
4147
  console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
4048
4148
  }
@@ -4058,6 +4158,50 @@ export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
4058
4158
  return ret;
4059
4159
  }
4060
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
+
4061
4205
  export function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
4062
4206
  let result;
4063
4207
  try {
@@ -4091,6 +4235,28 @@ export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
4091
4235
  return ret;
4092
4236
  }
4093
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
+
4094
4260
  export function __wbg_ipcclientsubscription_new(arg0) {
4095
4261
  const ret = IpcClientSubscription.__wrap(arg0);
4096
4262
  return addHeapObject(ret);
@@ -4121,14 +4287,14 @@ export function __wbg_length_e2d2a49132c1b256(arg0) {
4121
4287
  return ret;
4122
4288
  }
4123
4289
 
4124
- export function __wbg_list_25000042a6bea514() {
4290
+ export function __wbg_list_7d12b313287d8a69() {
4125
4291
  return handleError(function (arg0) {
4126
4292
  const ret = getObject(arg0).list();
4127
4293
  return addHeapObject(ret);
4128
4294
  }, arguments);
4129
4295
  }
4130
4296
 
4131
- export function __wbg_list_6605456966a5ab2f() {
4297
+ export function __wbg_list_cd54fb8e57c55204() {
4132
4298
  return handleError(function (arg0) {
4133
4299
  const ret = getObject(arg0).list();
4134
4300
  return addHeapObject(ret);
@@ -4144,6 +4310,14 @@ export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
4144
4310
  return addHeapObject(ret);
4145
4311
  }
4146
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
+
4147
4321
  export function __wbg_new0_f788a2397c7ca929() {
4148
4322
  const ret = new Date();
4149
4323
  return addHeapObject(ret);
@@ -4163,7 +4337,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
4163
4337
  const a = state0.a;
4164
4338
  state0.a = 0;
4165
4339
  try {
4166
- return __wbg_adapter_326(a, state0.b, arg0, arg1);
4340
+ return __wbg_adapter_335(a, state0.b, arg0, arg1);
4167
4341
  } finally {
4168
4342
  state0.a = a;
4169
4343
  }
@@ -4278,6 +4452,13 @@ export function __wbg_node_905d3e251edff8a2(arg0) {
4278
4452
  return addHeapObject(ret);
4279
4453
  }
4280
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
+
4281
4462
  export function __wbg_parse_def2e24ef1252aff() {
4282
4463
  return handleError(function (arg0, arg1) {
4283
4464
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
@@ -4285,6 +4466,10 @@ export function __wbg_parse_def2e24ef1252aff() {
4285
4466
  }, arguments);
4286
4467
  }
4287
4468
 
4469
+ export function __wbg_preventDefault_c2314fd813c02b3c(arg0) {
4470
+ getObject(arg0).preventDefault();
4471
+ }
4472
+
4288
4473
  export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
4289
4474
  const ret = getObject(arg0).process;
4290
4475
  return addHeapObject(ret);
@@ -4310,7 +4495,7 @@ export function __wbg_randomFillSync_ac0988aba3254290() {
4310
4495
  }, arguments);
4311
4496
  }
4312
4497
 
4313
- export function __wbg_remove_c186bc3d34ae82cb() {
4498
+ export function __wbg_remove_a71d513aa38e9797() {
4314
4499
  return handleError(function (arg0, arg1, arg2) {
4315
4500
  let deferred0_0;
4316
4501
  let deferred0_1;
@@ -4325,7 +4510,7 @@ export function __wbg_remove_c186bc3d34ae82cb() {
4325
4510
  }, arguments);
4326
4511
  }
4327
4512
 
4328
- export function __wbg_remove_ce852f919130cb27() {
4513
+ export function __wbg_remove_da8d65b34c713893() {
4329
4514
  return handleError(function (arg0, arg1, arg2) {
4330
4515
  let deferred0_0;
4331
4516
  let deferred0_1;
@@ -4352,6 +4537,13 @@ export function __wbg_resolve_4851785c9c5f573d(arg0) {
4352
4537
  return addHeapObject(ret);
4353
4538
  }
4354
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
+
4355
4547
  export function __wbg_send_9b8fc6bb517867dd() {
4356
4548
  return handleError(function (arg0, arg1) {
4357
4549
  const ret = getObject(arg0).send(OutgoingMessage.__wrap(arg1));
@@ -4376,7 +4568,7 @@ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
4376
4568
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
4377
4569
  }
4378
4570
 
4379
- export function __wbg_set_86472e59f03f0218() {
4571
+ export function __wbg_set_8745f9d3798c34ea() {
4380
4572
  return handleError(function (arg0, arg1, arg2, arg3) {
4381
4573
  let deferred0_0;
4382
4574
  let deferred0_1;
@@ -4396,7 +4588,7 @@ export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
4396
4588
  return addHeapObject(ret);
4397
4589
  }
4398
4590
 
4399
- export function __wbg_set_e1981082a2111fd6() {
4591
+ export function __wbg_set_d4d89f99f7d13750() {
4400
4592
  return handleError(function (arg0, arg1, arg2, arg3) {
4401
4593
  let deferred0_0;
4402
4594
  let deferred0_1;
@@ -4443,6 +4635,18 @@ export function __wbg_setname_c0e2d6f348c746f4(arg0, arg1, arg2) {
4443
4635
  }
4444
4636
  }
4445
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
+
4446
4650
  export function __wbg_setsignal_75b21ef3a81de905(arg0, arg1) {
4447
4651
  getObject(arg0).signal = getObject(arg1);
4448
4652
  }
@@ -4513,6 +4717,11 @@ export function __wbg_subarray_aa9065fa9dc5df96(arg0, arg1, arg2) {
4513
4717
  return addHeapObject(ret);
4514
4718
  }
4515
4719
 
4720
+ export function __wbg_target_0a62d9d79a2a1ede(arg0) {
4721
+ const ret = getObject(arg0).target;
4722
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
4723
+ }
4724
+
4516
4725
  export function __wbg_text_7805bea50de2af49() {
4517
4726
  return handleError(function (arg0) {
4518
4727
  const ret = getObject(arg0).text();
@@ -4530,6 +4739,11 @@ export function __wbg_then_48b406749878a531(arg0, arg1, arg2) {
4530
4739
  return addHeapObject(ret);
4531
4740
  }
4532
4741
 
4742
+ export function __wbg_transaction_e713aa7b07ccaedd(arg0) {
4743
+ const ret = getObject(arg0).transaction;
4744
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
4745
+ }
4746
+
4533
4747
  export function __wbg_url_ae10c34ca209681d(arg0, arg1) {
4534
4748
  const ret = getObject(arg1).url;
4535
4749
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -4599,18 +4813,28 @@ export function __wbindgen_cb_drop(arg0) {
4599
4813
  return ret;
4600
4814
  }
4601
4815
 
4602
- export function __wbindgen_closure_wrapper3454(arg0, arg1, arg2) {
4603
- const ret = makeMutClosure(arg0, arg1, 278, __wbg_adapter_54);
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);
4604
4828
  return addHeapObject(ret);
4605
4829
  }
4606
4830
 
4607
- export function __wbindgen_closure_wrapper5820(arg0, arg1, arg2) {
4608
- const ret = makeMutClosure(arg0, arg1, 303, __wbg_adapter_54);
4831
+ export function __wbindgen_closure_wrapper5961(arg0, arg1, arg2) {
4832
+ const ret = makeMutClosure(arg0, arg1, 316, __wbg_adapter_60);
4609
4833
  return addHeapObject(ret);
4610
4834
  }
4611
4835
 
4612
- export function __wbindgen_closure_wrapper6196(arg0, arg1, arg2) {
4613
- const ret = makeMutClosure(arg0, arg1, 328, __wbg_adapter_59);
4836
+ export function __wbindgen_closure_wrapper6336(arg0, arg1, arg2) {
4837
+ const ret = makeMutClosure(arg0, arg1, 340, __wbg_adapter_57);
4614
4838
  return addHeapObject(ret);
4615
4839
  }
4616
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: (
@@ -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 _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h091423ccfc08366e: (
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 _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb3d7232059e1cc02: (
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,