@wireapp/core-crypto 11.0.1 → 11.0.3-pre.1
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.
|
Binary file
|
|
@@ -869,7 +869,7 @@ export const ubrn_uniffi_core_crypto_ffi_fn_method_deviceid_uniffi_trait_hash: (
|
|
|
869
869
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_epochobserver_epoch_changed: (a: bigint, b: bigint, c: bigint) => bigint;
|
|
870
870
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_serialize: (a: bigint, b: number) => [number, number];
|
|
871
871
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_uniffi_trait_eq_eq: (a: bigint, b: bigint, c: number) => number;
|
|
872
|
-
export const
|
|
872
|
+
export const uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_key_package: (a: bigint, b: bigint, c: number) => void;
|
|
873
873
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_externalsender_uniffi_trait_eq_ne: (a: bigint, b: bigint, c: number) => number;
|
|
874
874
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_historyobserver_history_client_created: (a: bigint, b: bigint, c: number, d: number) => bigint;
|
|
875
875
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_keypackage_ref: (a: bigint, b: number) => bigint;
|
|
@@ -881,7 +881,7 @@ export const ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_is_valid: (a: b
|
|
|
881
881
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_keypackageref_signature_scheme: (a: bigint, b: number) => [number, number];
|
|
882
882
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_mlstransport_prepare_for_transport: (a: bigint, b: number, c: number) => bigint;
|
|
883
883
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_mlstransport_send_commit_bundle: (a: bigint, b: number, c: number) => bigint;
|
|
884
|
-
export const
|
|
884
|
+
export const uniffi_core_crypto_ffi_fn_method_corecryptocontext_set_data: (a: bigint, b: number, c: number) => void;
|
|
885
885
|
export const uniffi_core_crypto_ffi_fn_method_corecryptocontext_remove_key_packages_for: (a: bigint, b: bigint, c: number) => void;
|
|
886
886
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_add_intermediate_cert: (a: bigint, b: number, c: number) => bigint;
|
|
887
887
|
export const ubrn_uniffi_core_crypto_ffi_fn_method_pkienvironment_add_trust_anchor: (a: bigint, b: number, c: number) => bigint;
|
|
@@ -924,7 +924,7 @@ export const sqlite3_os_init: () => number;
|
|
|
924
924
|
export const __wbg_jspi_task_poll: (a: number) => void;
|
|
925
925
|
export const _RINvNvNtNtCseJanozDyQMl_12wasm_bindgen7convert8closuress2_1__6invokeNtB8_7JsValueINtNtCs4NIexwV1FGX_4core6result6ResultuNtB8_7JsErrorEKb1_ECs6OPVFd5KbZe_6js_sys: (a: number, b: number, c: any) => [number, number];
|
|
926
926
|
export const _RINvNvNtNtCseJanozDyQMl_12wasm_bindgen7convert8closuress4_1__6invokeINtCs6OPVFd5KbZe_6js_sys8FunctionFNtB8_7JsValueENtNtB8_3sys9UndefinedEB14_uKb1_EB17_: (a: number, b: number, c: any, d: any) => void;
|
|
927
|
-
export const
|
|
927
|
+
export const _RINvNvNtNtCseJanozDyQMl_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs4g1QEnyMkXh_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventuKb1_ECs7Sp0DWqkN97_20core_crypto_keystore: (a: number, b: number, c: any) => void;
|
|
928
928
|
export const _RINvNvNtNtCseJanozDyQMl_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs4g1QEnyMkXh_7web_sys8features9gen_Event5EventuKb1_ECsbZGnklYUYj7_3idb: (a: number, b: number, c: any) => void;
|
|
929
929
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
930
930
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
package/dist/corecrypto.d.ts
CHANGED
|
@@ -103,6 +103,7 @@ export declare enum MlsError_Tags {
|
|
|
103
103
|
StaleCommit = "StaleCommit",
|
|
104
104
|
OrphanWelcome = "OrphanWelcome",
|
|
105
105
|
MessageRejected = "MessageRejected",
|
|
106
|
+
InvalidCredentials = "InvalidCredentials",
|
|
106
107
|
Other = "Other"
|
|
107
108
|
}
|
|
108
109
|
/**
|
|
@@ -247,6 +248,20 @@ export declare const MlsError: Readonly<{
|
|
|
247
248
|
message: string;
|
|
248
249
|
stack?: string;
|
|
249
250
|
cause?: unknown;
|
|
251
|
+
} | {
|
|
252
|
+
readonly tag: MlsError_Tags.InvalidCredentials;
|
|
253
|
+
readonly inner: Readonly<{
|
|
254
|
+
reason: string;
|
|
255
|
+
}>;
|
|
256
|
+
/**
|
|
257
|
+
* @private
|
|
258
|
+
* This field is private and should not be used, use `tag` instead.
|
|
259
|
+
*/
|
|
260
|
+
readonly [uniffiTypeNameSymbol]: "MlsError";
|
|
261
|
+
name: string;
|
|
262
|
+
message: string;
|
|
263
|
+
stack?: string;
|
|
264
|
+
cause?: unknown;
|
|
250
265
|
} | {
|
|
251
266
|
readonly tag: MlsError_Tags.Other;
|
|
252
267
|
readonly inner: Readonly<{
|
|
@@ -988,6 +1003,94 @@ export declare const MlsError: Readonly<{
|
|
|
988
1003
|
stackTraceLimit: number;
|
|
989
1004
|
isError(value: unknown): value is Error;
|
|
990
1005
|
};
|
|
1006
|
+
InvalidCredentials: {
|
|
1007
|
+
new (inner: {
|
|
1008
|
+
reason: string;
|
|
1009
|
+
}): {
|
|
1010
|
+
readonly tag: MlsError_Tags.InvalidCredentials;
|
|
1011
|
+
readonly inner: Readonly<{
|
|
1012
|
+
reason: string;
|
|
1013
|
+
}>;
|
|
1014
|
+
/**
|
|
1015
|
+
* @private
|
|
1016
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1017
|
+
*/
|
|
1018
|
+
readonly [uniffiTypeNameSymbol]: "MlsError";
|
|
1019
|
+
name: string;
|
|
1020
|
+
message: string;
|
|
1021
|
+
stack?: string;
|
|
1022
|
+
cause?: unknown;
|
|
1023
|
+
};
|
|
1024
|
+
"new"(inner: {
|
|
1025
|
+
reason: string;
|
|
1026
|
+
}): {
|
|
1027
|
+
readonly tag: MlsError_Tags.InvalidCredentials;
|
|
1028
|
+
readonly inner: Readonly<{
|
|
1029
|
+
reason: string;
|
|
1030
|
+
}>;
|
|
1031
|
+
/**
|
|
1032
|
+
* @private
|
|
1033
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1034
|
+
*/
|
|
1035
|
+
readonly [uniffiTypeNameSymbol]: "MlsError";
|
|
1036
|
+
name: string;
|
|
1037
|
+
message: string;
|
|
1038
|
+
stack?: string;
|
|
1039
|
+
cause?: unknown;
|
|
1040
|
+
};
|
|
1041
|
+
instanceOf(obj: any): obj is {
|
|
1042
|
+
readonly tag: MlsError_Tags.InvalidCredentials;
|
|
1043
|
+
readonly inner: Readonly<{
|
|
1044
|
+
reason: string;
|
|
1045
|
+
}>;
|
|
1046
|
+
/**
|
|
1047
|
+
* @private
|
|
1048
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1049
|
+
*/
|
|
1050
|
+
readonly [uniffiTypeNameSymbol]: "MlsError";
|
|
1051
|
+
name: string;
|
|
1052
|
+
message: string;
|
|
1053
|
+
stack?: string;
|
|
1054
|
+
cause?: unknown;
|
|
1055
|
+
};
|
|
1056
|
+
hasInner(obj: any): obj is {
|
|
1057
|
+
readonly tag: MlsError_Tags.InvalidCredentials;
|
|
1058
|
+
readonly inner: Readonly<{
|
|
1059
|
+
reason: string;
|
|
1060
|
+
}>;
|
|
1061
|
+
/**
|
|
1062
|
+
* @private
|
|
1063
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1064
|
+
*/
|
|
1065
|
+
readonly [uniffiTypeNameSymbol]: "MlsError";
|
|
1066
|
+
name: string;
|
|
1067
|
+
message: string;
|
|
1068
|
+
stack?: string;
|
|
1069
|
+
cause?: unknown;
|
|
1070
|
+
};
|
|
1071
|
+
getInner(obj: {
|
|
1072
|
+
readonly tag: MlsError_Tags.InvalidCredentials;
|
|
1073
|
+
readonly inner: Readonly<{
|
|
1074
|
+
reason: string;
|
|
1075
|
+
}>;
|
|
1076
|
+
/**
|
|
1077
|
+
* @private
|
|
1078
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1079
|
+
*/
|
|
1080
|
+
readonly [uniffiTypeNameSymbol]: "MlsError";
|
|
1081
|
+
name: string;
|
|
1082
|
+
message: string;
|
|
1083
|
+
stack?: string;
|
|
1084
|
+
cause?: unknown;
|
|
1085
|
+
}): Readonly<{
|
|
1086
|
+
reason: string;
|
|
1087
|
+
}>;
|
|
1088
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1089
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1090
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1091
|
+
stackTraceLimit: number;
|
|
1092
|
+
isError(value: unknown): value is Error;
|
|
1093
|
+
};
|
|
991
1094
|
Other: {
|
|
992
1095
|
new (inner: {
|
|
993
1096
|
msg: string;
|
|
@@ -1080,7 +1183,7 @@ export declare const MlsError: Readonly<{
|
|
|
1080
1183
|
/**
|
|
1081
1184
|
* Errors produced by the MLS layer.
|
|
1082
1185
|
*/
|
|
1083
|
-
export type MlsError = InstanceType<typeof MlsError["ConversationAlreadyExists" | "DuplicateMessage" | "BufferedFutureMessage" | "WrongEpoch" | "BufferedCommit" | "MessageEpochTooOld" | "SelfCommitIgnored" | "UnmergedPendingGroup" | "StaleProposal" | "StaleCommit" | "OrphanWelcome" | "MessageRejected" | "Other"]>;
|
|
1186
|
+
export type MlsError = InstanceType<typeof MlsError["ConversationAlreadyExists" | "DuplicateMessage" | "BufferedFutureMessage" | "WrongEpoch" | "BufferedCommit" | "MessageEpochTooOld" | "SelfCommitIgnored" | "UnmergedPendingGroup" | "StaleProposal" | "StaleCommit" | "OrphanWelcome" | "MessageRejected" | "InvalidCredentials" | "Other"]>;
|
|
1084
1187
|
export declare enum ProteusError_Tags {
|
|
1085
1188
|
SessionNotFound = "SessionNotFound",
|
|
1086
1189
|
DuplicateMessage = "DuplicateMessage",
|
package/dist/corecrypto.js
CHANGED
|
@@ -477,7 +477,7 @@ __export(exports_wasm_bindgen, {
|
|
|
477
477
|
ForeignFutureCompleteF32: () => ForeignFutureCompleteF32
|
|
478
478
|
});
|
|
479
479
|
|
|
480
|
-
// packages/browser/src/autogenerated/wasm-bindgen/snippets/core-crypto-keystore-
|
|
480
|
+
// packages/browser/src/autogenerated/wasm-bindgen/snippets/core-crypto-keystore-e943b0ffabf6d59f/src/connection/opfs_vfs.js
|
|
481
481
|
var exports_opfs_vfs = {};
|
|
482
482
|
__export(exports_opfs_vfs, {
|
|
483
483
|
write: () => write,
|
|
@@ -637,34 +637,81 @@ function fail(error) {
|
|
|
637
637
|
inflight?.reject(error);
|
|
638
638
|
inflight = undefined;
|
|
639
639
|
}
|
|
640
|
-
async function start(directory) {
|
|
640
|
+
async function start(directory, timeoutMilliseconds) {
|
|
641
641
|
if (!globalThis.navigator?.storage?.getDirectory || !Wasm.Suspending || !Wasm.promising) {
|
|
642
642
|
throw new Error("OPFS and JSPI are required");
|
|
643
643
|
}
|
|
644
|
+
const firstTimeoutError = createStartupTimeoutError(timeoutMilliseconds);
|
|
645
|
+
try {
|
|
646
|
+
await startWorker({ directory, timeoutMilliseconds, timeoutError: firstTimeoutError });
|
|
647
|
+
} catch (firstFailure) {
|
|
648
|
+
if (firstFailure !== firstTimeoutError) {
|
|
649
|
+
throw firstFailure;
|
|
650
|
+
}
|
|
651
|
+
const retryTimeoutError = createStartupTimeoutError(timeoutMilliseconds);
|
|
652
|
+
try {
|
|
653
|
+
await startWorker({ directory, timeoutMilliseconds, timeoutError: retryTimeoutError });
|
|
654
|
+
} catch (retryFailure) {
|
|
655
|
+
const retryMessage = retryFailure instanceof Error ? `${retryFailure.name}: ${retryFailure.message}` : String(retryFailure);
|
|
656
|
+
throw new Error(`${firstTimeoutError.message}; retry failed: ${retryMessage}`, { cause: retryFailure });
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
function createStartupTimeoutError(timeoutMilliseconds) {
|
|
661
|
+
const timeoutError = new Error(`OPFS worker initialization timed out after ${timeoutMilliseconds} ms`);
|
|
662
|
+
timeoutError.name = "OpfsWorkerStartupTimeout";
|
|
663
|
+
return timeoutError;
|
|
664
|
+
}
|
|
665
|
+
async function startWorker({ directory, timeoutMilliseconds, timeoutError }) {
|
|
644
666
|
const url = URL.createObjectURL(new Blob([`(${workerMain})();`], { type: "text/javascript" }));
|
|
667
|
+
let attemptWorker;
|
|
645
668
|
try {
|
|
646
|
-
|
|
669
|
+
attemptWorker = new Worker(url);
|
|
647
670
|
} finally {
|
|
648
671
|
URL.revokeObjectURL(url);
|
|
649
672
|
}
|
|
650
|
-
worker
|
|
651
|
-
|
|
673
|
+
worker = attemptWorker;
|
|
674
|
+
attemptWorker.onmessage = function handleWorkerMessage({ data: { seq, value, error } }) {
|
|
675
|
+
if (worker !== attemptWorker || inflight?.seq !== seq) {
|
|
652
676
|
return;
|
|
677
|
+
}
|
|
653
678
|
const call = inflight;
|
|
654
679
|
inflight = undefined;
|
|
655
|
-
if (error)
|
|
680
|
+
if (error) {
|
|
656
681
|
call.reject(new DOMException(error.message, error.name));
|
|
657
|
-
else
|
|
682
|
+
} else {
|
|
658
683
|
call.resolve(value);
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
attemptWorker.onerror = function handleWorkerError(event) {
|
|
687
|
+
if (worker !== attemptWorker) {
|
|
688
|
+
return;
|
|
689
|
+
}
|
|
690
|
+
fail(new Error(event.message || "OPFS worker failed"));
|
|
691
|
+
};
|
|
692
|
+
attemptWorker.onmessageerror = function handleWorkerMessageError() {
|
|
693
|
+
if (worker !== attemptWorker) {
|
|
694
|
+
return;
|
|
695
|
+
}
|
|
696
|
+
fail(new Error("OPFS worker message could not be decoded"));
|
|
659
697
|
};
|
|
660
|
-
|
|
661
|
-
|
|
698
|
+
const initPromise = rpc("init", [directory]);
|
|
699
|
+
const initSequence = inflight?.seq;
|
|
700
|
+
const timer = setTimeout(function handleStartupTimeout() {
|
|
701
|
+
if (worker === attemptWorker && inflight?.seq === initSequence) {
|
|
702
|
+
fail(timeoutError);
|
|
703
|
+
}
|
|
704
|
+
}, timeoutMilliseconds);
|
|
662
705
|
try {
|
|
663
|
-
await
|
|
664
|
-
} catch (
|
|
665
|
-
|
|
666
|
-
worker
|
|
667
|
-
|
|
706
|
+
await initPromise;
|
|
707
|
+
} catch (failure) {
|
|
708
|
+
attemptWorker.terminate();
|
|
709
|
+
if (worker === attemptWorker) {
|
|
710
|
+
worker = undefined;
|
|
711
|
+
}
|
|
712
|
+
throw failure;
|
|
713
|
+
} finally {
|
|
714
|
+
clearTimeout(timer);
|
|
668
715
|
}
|
|
669
716
|
}
|
|
670
717
|
function abandon() {
|
|
@@ -3296,7 +3343,7 @@ function __wbg_get_imports() {
|
|
|
3296
3343
|
var ptr1 = ret.__destroy_into_raw();
|
|
3297
3344
|
return ptr1;
|
|
3298
3345
|
},
|
|
3299
|
-
|
|
3346
|
+
__wbg_clearTimeout_0b80e73d6538aa01: function(arg0) {
|
|
3300
3347
|
clearTimeout(arg0);
|
|
3301
3348
|
},
|
|
3302
3349
|
__wbg_close_39a0adee471336e2: function(arg0) {
|
|
@@ -3411,7 +3458,7 @@ function __wbg_get_imports() {
|
|
|
3411
3458
|
const ret = arg0.execute;
|
|
3412
3459
|
return ret;
|
|
3413
3460
|
},
|
|
3414
|
-
|
|
3461
|
+
__wbg_exists_b056056c61e4b726: function(arg0, arg1) {
|
|
3415
3462
|
const ret = exists(getStringFromWasm0(arg0, arg1));
|
|
3416
3463
|
return ret;
|
|
3417
3464
|
},
|
|
@@ -3793,7 +3840,7 @@ function __wbg_get_imports() {
|
|
|
3793
3840
|
return ret;
|
|
3794
3841
|
}, arguments);
|
|
3795
3842
|
},
|
|
3796
|
-
|
|
3843
|
+
__wbg_open_98a596871edb5d46: function(arg0, arg1, arg2) {
|
|
3797
3844
|
const ret = open(getStringFromWasm0(arg0, arg1), arg2 !== 0);
|
|
3798
3845
|
return ret;
|
|
3799
3846
|
},
|
|
@@ -3850,7 +3897,7 @@ function __wbg_get_imports() {
|
|
|
3850
3897
|
const ret = Math.random();
|
|
3851
3898
|
return ret;
|
|
3852
3899
|
},
|
|
3853
|
-
|
|
3900
|
+
__wbg_remove_76208baeab113958: function(arg0, arg1) {
|
|
3854
3901
|
const ret = remove(getStringFromWasm0(arg0, arg1));
|
|
3855
3902
|
return ret;
|
|
3856
3903
|
},
|
|
@@ -3921,7 +3968,7 @@ function __wbg_get_imports() {
|
|
|
3921
3968
|
const ret = arg0.send_commit_bundle;
|
|
3922
3969
|
return ret;
|
|
3923
3970
|
},
|
|
3924
|
-
|
|
3971
|
+
__wbg_setTimeout_243de2a790c76eb8: function(arg0, arg1) {
|
|
3925
3972
|
const ret = setTimeout(arg0, arg1);
|
|
3926
3973
|
return ret;
|
|
3927
3974
|
},
|
|
@@ -3977,8 +4024,8 @@ function __wbg_get_imports() {
|
|
|
3977
4024
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3978
4025
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3979
4026
|
},
|
|
3980
|
-
|
|
3981
|
-
const ret = start(getStringFromWasm0(arg0, arg1));
|
|
4027
|
+
__wbg_start_4e876c7c65d7a647: function(arg0, arg1, arg2) {
|
|
4028
|
+
const ret = start(getStringFromWasm0(arg0, arg1), arg2 >>> 0);
|
|
3982
4029
|
return ret;
|
|
3983
4030
|
},
|
|
3984
4031
|
__wbg_static_accessor_GLOBAL_8eb4cd83130a11a0: function() {
|
|
@@ -4102,7 +4149,7 @@ function __wbg_get_imports() {
|
|
|
4102
4149
|
return ret;
|
|
4103
4150
|
},
|
|
4104
4151
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
4105
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4152
|
+
const ret = makeMutClosure(arg0, arg1, _RINvNvNtNtCseJanozDyQMl_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs4g1QEnyMkXh_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventuKb1_ECs7Sp0DWqkN97_20core_crypto_keystore);
|
|
4106
4153
|
return ret;
|
|
4107
4154
|
},
|
|
4108
4155
|
__wbindgen_generic_0000000000000004: function(arg0) {
|
|
@@ -4145,21 +4192,21 @@ function __wbg_get_imports() {
|
|
|
4145
4192
|
return {
|
|
4146
4193
|
__proto__: null,
|
|
4147
4194
|
"./index_bg.js": import0,
|
|
4148
|
-
"./snippets/core-crypto-keystore-
|
|
4149
|
-
"./snippets/core-crypto-keystore-
|
|
4150
|
-
"./snippets/core-crypto-keystore-
|
|
4151
|
-
"./snippets/core-crypto-keystore-
|
|
4152
|
-
"./snippets/core-crypto-keystore-
|
|
4153
|
-
"./snippets/core-crypto-keystore-
|
|
4154
|
-
"./snippets/core-crypto-keystore-
|
|
4155
|
-
"./snippets/core-crypto-keystore-
|
|
4195
|
+
"./snippets/core-crypto-keystore-e943b0ffabf6d59f/src/connection/opfs_vfs.js": exports_opfs_vfs,
|
|
4196
|
+
"./snippets/core-crypto-keystore-e943b0ffabf6d59f/src/connection/opfs_vfs.js": exports_opfs_vfs,
|
|
4197
|
+
"./snippets/core-crypto-keystore-e943b0ffabf6d59f/src/connection/opfs_vfs.js": exports_opfs_vfs,
|
|
4198
|
+
"./snippets/core-crypto-keystore-e943b0ffabf6d59f/src/connection/opfs_vfs.js": exports_opfs_vfs,
|
|
4199
|
+
"./snippets/core-crypto-keystore-e943b0ffabf6d59f/src/connection/opfs_vfs.js": exports_opfs_vfs,
|
|
4200
|
+
"./snippets/core-crypto-keystore-e943b0ffabf6d59f/src/connection/opfs_vfs.js": exports_opfs_vfs,
|
|
4201
|
+
"./snippets/core-crypto-keystore-e943b0ffabf6d59f/src/connection/opfs_vfs.js": exports_opfs_vfs,
|
|
4202
|
+
"./snippets/core-crypto-keystore-e943b0ffabf6d59f/src/connection/opfs_vfs.js": exports_opfs_vfs
|
|
4156
4203
|
};
|
|
4157
4204
|
}
|
|
4158
4205
|
function _RINvNvNtNtCseJanozDyQMl_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs4g1QEnyMkXh_7web_sys8features9gen_Event5EventuKb1_ECsbZGnklYUYj7_3idb(arg0, arg1, arg2) {
|
|
4159
4206
|
wasm2._RINvNvNtNtCseJanozDyQMl_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs4g1QEnyMkXh_7web_sys8features9gen_Event5EventuKb1_ECsbZGnklYUYj7_3idb(arg0, arg1, arg2);
|
|
4160
4207
|
}
|
|
4161
|
-
function
|
|
4162
|
-
wasm2.
|
|
4208
|
+
function _RINvNvNtNtCseJanozDyQMl_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs4g1QEnyMkXh_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventuKb1_ECs7Sp0DWqkN97_20core_crypto_keystore(arg0, arg1, arg2) {
|
|
4209
|
+
wasm2._RINvNvNtNtCseJanozDyQMl_12wasm_bindgen7convert8closuress2_1__6invokeNtNtNtCs4g1QEnyMkXh_7web_sys8features25gen_IdbVersionChangeEvent21IdbVersionChangeEventuKb1_ECs7Sp0DWqkN97_20core_crypto_keystore(arg0, arg1, arg2);
|
|
4163
4210
|
}
|
|
4164
4211
|
function _RINvNvNtNtCseJanozDyQMl_12wasm_bindgen7convert8closuress2_1__6invokeNtB8_7JsValueINtNtCs4NIexwV1FGX_4core6result6ResultuNtB8_7JsErrorEKb1_ECs6OPVFd5KbZe_6js_sys(arg0, arg1, arg2) {
|
|
4165
4212
|
const ret = wasm2._RINvNvNtNtCseJanozDyQMl_12wasm_bindgen7convert8closuress2_1__6invokeNtB8_7JsValueINtNtCs4NIexwV1FGX_4core6result6ResultuNtB8_7JsErrorEKb1_ECs6OPVFd5KbZe_6js_sys(arg0, arg1, arg2);
|
|
@@ -5543,6 +5590,7 @@ var MlsError_Tags;
|
|
|
5543
5590
|
MlsError_Tags2["StaleCommit"] = "StaleCommit";
|
|
5544
5591
|
MlsError_Tags2["OrphanWelcome"] = "OrphanWelcome";
|
|
5545
5592
|
MlsError_Tags2["MessageRejected"] = "MessageRejected";
|
|
5593
|
+
MlsError_Tags2["InvalidCredentials"] = "InvalidCredentials";
|
|
5546
5594
|
MlsError_Tags2["Other"] = "Other";
|
|
5547
5595
|
})(MlsError_Tags ||= {});
|
|
5548
5596
|
var MlsError = (() => {
|
|
@@ -5761,6 +5809,28 @@ var MlsError = (() => {
|
|
|
5761
5809
|
}
|
|
5762
5810
|
}
|
|
5763
5811
|
|
|
5812
|
+
class InvalidCredentials_ extends UniffiError {
|
|
5813
|
+
[uniffiTypeNameSymbol] = "MlsError";
|
|
5814
|
+
tag = "InvalidCredentials" /* InvalidCredentials */;
|
|
5815
|
+
inner;
|
|
5816
|
+
constructor(inner) {
|
|
5817
|
+
super("MlsError", "InvalidCredentials");
|
|
5818
|
+
this.inner = Object.freeze(inner);
|
|
5819
|
+
}
|
|
5820
|
+
static new(inner) {
|
|
5821
|
+
return new InvalidCredentials_(inner);
|
|
5822
|
+
}
|
|
5823
|
+
static instanceOf(obj) {
|
|
5824
|
+
return obj.tag === "InvalidCredentials" /* InvalidCredentials */;
|
|
5825
|
+
}
|
|
5826
|
+
static hasInner(obj) {
|
|
5827
|
+
return InvalidCredentials_.instanceOf(obj);
|
|
5828
|
+
}
|
|
5829
|
+
static getInner(obj) {
|
|
5830
|
+
return obj.inner;
|
|
5831
|
+
}
|
|
5832
|
+
}
|
|
5833
|
+
|
|
5764
5834
|
class Other_ extends UniffiError {
|
|
5765
5835
|
[uniffiTypeNameSymbol] = "MlsError";
|
|
5766
5836
|
tag = "Other" /* Other */;
|
|
@@ -5799,6 +5869,7 @@ var MlsError = (() => {
|
|
|
5799
5869
|
StaleCommit: StaleCommit_,
|
|
5800
5870
|
OrphanWelcome: OrphanWelcome_,
|
|
5801
5871
|
MessageRejected: MessageRejected_,
|
|
5872
|
+
InvalidCredentials: InvalidCredentials_,
|
|
5802
5873
|
Other: Other_
|
|
5803
5874
|
});
|
|
5804
5875
|
})();
|
|
@@ -5832,6 +5903,8 @@ var FfiConverterTypeMlsError = (() => {
|
|
|
5832
5903
|
case 12:
|
|
5833
5904
|
return new MlsError.MessageRejected({ reason: FfiConverterString.readFromCursor(c) });
|
|
5834
5905
|
case 13:
|
|
5906
|
+
return new MlsError.InvalidCredentials({ reason: FfiConverterString.readFromCursor(c) });
|
|
5907
|
+
case 14:
|
|
5835
5908
|
return new MlsError.Other({ msg: FfiConverterString.readFromCursor(c) });
|
|
5836
5909
|
default:
|
|
5837
5910
|
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
@@ -5891,9 +5964,15 @@ var FfiConverterTypeMlsError = (() => {
|
|
|
5891
5964
|
FfiConverterString.writeIntoCursor(inner.reason, c);
|
|
5892
5965
|
return;
|
|
5893
5966
|
}
|
|
5894
|
-
case "
|
|
5967
|
+
case "InvalidCredentials" /* InvalidCredentials */: {
|
|
5895
5968
|
c.writeI32(13);
|
|
5896
5969
|
const inner = value.inner;
|
|
5970
|
+
FfiConverterString.writeIntoCursor(inner.reason, c);
|
|
5971
|
+
return;
|
|
5972
|
+
}
|
|
5973
|
+
case "Other" /* Other */: {
|
|
5974
|
+
c.writeI32(14);
|
|
5975
|
+
const inner = value.inner;
|
|
5897
5976
|
FfiConverterString.writeIntoCursor(inner.msg, c);
|
|
5898
5977
|
return;
|
|
5899
5978
|
}
|
|
@@ -5945,6 +6024,12 @@ var FfiConverterTypeMlsError = (() => {
|
|
|
5945
6024
|
size2 += FfiConverterString.allocationSize(inner.reason);
|
|
5946
6025
|
return size2;
|
|
5947
6026
|
}
|
|
6027
|
+
case "InvalidCredentials" /* InvalidCredentials */: {
|
|
6028
|
+
const inner = value.inner;
|
|
6029
|
+
let size2 = 4;
|
|
6030
|
+
size2 += FfiConverterString.allocationSize(inner.reason);
|
|
6031
|
+
return size2;
|
|
6032
|
+
}
|
|
5948
6033
|
case "Other" /* Other */: {
|
|
5949
6034
|
const inner = value.inner;
|
|
5950
6035
|
let size2 = 4;
|