ping-openmls-sdk 0.6.10 → 0.6.11
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/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/storage/indexeddb.d.cts +1 -1
- package/dist/storage/indexeddb.d.ts +1 -1
- package/dist/transport/websocket.d.cts +1 -1
- package/dist/transport/websocket.d.ts +1 -1
- package/dist/{types-O6uxcX8f.d.cts → types-BFIVZtWN.d.cts} +4 -0
- package/dist/{types-O6uxcX8f.d.ts → types-BFIVZtWN.d.ts} +4 -0
- package/package.json +1 -1
- package/wasm/package.json +1 -1
- package/wasm/ping_wasm.d.ts +3 -3
- package/wasm/ping_wasm.js +20 -20
- package/wasm/ping_wasm_bg.wasm +0 -0
- package/wasm/ping_wasm_bg.wasm.d.ts +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MessageEnvelope, S as Storage, T as Transport, C as ConversationId, K as KeyPackageEntry, a as ConversationMeta, L as LinkingTicket, U as UserId, b as DeviceId, I as IncomingMessage, c as CatchupAppEvent, d as CatchupSnapshotView, R as RecoveryBackup, H as HistoryBundle, A as AdmitChatEntry, e as AdmitChatOutcome } from './types-
|
|
2
|
-
export { B as Bytes, f as CatchupSnapshotEntry, g as DeviceInfo, D as DiscoveredDevice, h as HistoryAppEvent, i as Hlc, j as MessageKind } from './types-
|
|
1
|
+
import { M as MessageEnvelope, S as Storage, T as Transport, C as ConversationId, K as KeyPackageEntry, a as ConversationMeta, L as LinkingTicket, U as UserId, b as DeviceId, I as IncomingMessage, c as CatchupAppEvent, d as CatchupSnapshotView, R as RecoveryBackup, H as HistoryBundle, A as AdmitChatEntry, e as AdmitChatOutcome } from './types-BFIVZtWN.cjs';
|
|
2
|
+
export { B as Bytes, f as CatchupSnapshotEntry, g as DeviceInfo, D as DiscoveredDevice, h as HistoryAppEvent, i as Hlc, j as MessageKind } from './types-BFIVZtWN.cjs';
|
|
3
3
|
export { IndexedDbStorage } from './storage/indexeddb.cjs';
|
|
4
4
|
export { WebSocketTransport } from './transport/websocket.cjs';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MessageEnvelope, S as Storage, T as Transport, C as ConversationId, K as KeyPackageEntry, a as ConversationMeta, L as LinkingTicket, U as UserId, b as DeviceId, I as IncomingMessage, c as CatchupAppEvent, d as CatchupSnapshotView, R as RecoveryBackup, H as HistoryBundle, A as AdmitChatEntry, e as AdmitChatOutcome } from './types-
|
|
2
|
-
export { B as Bytes, f as CatchupSnapshotEntry, g as DeviceInfo, D as DiscoveredDevice, h as HistoryAppEvent, i as Hlc, j as MessageKind } from './types-
|
|
1
|
+
import { M as MessageEnvelope, S as Storage, T as Transport, C as ConversationId, K as KeyPackageEntry, a as ConversationMeta, L as LinkingTicket, U as UserId, b as DeviceId, I as IncomingMessage, c as CatchupAppEvent, d as CatchupSnapshotView, R as RecoveryBackup, H as HistoryBundle, A as AdmitChatEntry, e as AdmitChatOutcome } from './types-BFIVZtWN.js';
|
|
2
|
+
export { B as Bytes, f as CatchupSnapshotEntry, g as DeviceInfo, D as DiscoveredDevice, h as HistoryAppEvent, i as Hlc, j as MessageKind } from './types-BFIVZtWN.js';
|
|
3
3
|
export { IndexedDbStorage } from './storage/indexeddb.js';
|
|
4
4
|
export { WebSocketTransport } from './transport/websocket.js';
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Transport, M as MessageEnvelope, C as ConversationId, U as UserId, D as DiscoveredDevice } from '../types-
|
|
1
|
+
import { T as Transport, M as MessageEnvelope, C as ConversationId, U as UserId, D as DiscoveredDevice } from '../types-BFIVZtWN.cjs';
|
|
2
2
|
|
|
3
3
|
interface WsTransportConfig {
|
|
4
4
|
baseUrl: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Transport, M as MessageEnvelope, C as ConversationId, U as UserId, D as DiscoveredDevice } from '../types-
|
|
1
|
+
import { T as Transport, M as MessageEnvelope, C as ConversationId, U as UserId, D as DiscoveredDevice } from '../types-BFIVZtWN.js';
|
|
2
2
|
|
|
3
3
|
interface WsTransportConfig {
|
|
4
4
|
baseUrl: string;
|
|
@@ -104,6 +104,10 @@ interface HistoryAppEvent {
|
|
|
104
104
|
event_id: Bytes;
|
|
105
105
|
wall_ms: number;
|
|
106
106
|
payload: Bytes;
|
|
107
|
+
/** Original author (account id for self-authored, peer device id otherwise) so the
|
|
108
|
+
* recipient renders self-vs-peer bubbles correctly. Empty/omitted when unknown or
|
|
109
|
+
* produced by a pre-`author` sender — replay falls back to the bundle sender id. */
|
|
110
|
+
author?: string;
|
|
107
111
|
}
|
|
108
112
|
/** A conversation's decrypted history shipped device-to-device (linking / peer re-add).
|
|
109
113
|
* Sealed+signed by `sealHistoryBundle`, opened+verified by `openHistoryBundle`. */
|
|
@@ -104,6 +104,10 @@ interface HistoryAppEvent {
|
|
|
104
104
|
event_id: Bytes;
|
|
105
105
|
wall_ms: number;
|
|
106
106
|
payload: Bytes;
|
|
107
|
+
/** Original author (account id for self-authored, peer device id otherwise) so the
|
|
108
|
+
* recipient renders self-vs-peer bubbles correctly. Empty/omitted when unknown or
|
|
109
|
+
* produced by a pre-`author` sender — replay falls back to the bundle sender id. */
|
|
110
|
+
author?: string;
|
|
107
111
|
}
|
|
108
112
|
/** A conversation's decrypted history shipped device-to-device (linking / peer re-add).
|
|
109
113
|
* Sealed+signed by `sealHistoryBundle`, opened+verified by `openHistoryBundle`. */
|
package/package.json
CHANGED
package/wasm/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "ping-openmls-sdk-wasm",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "wasm-bindgen surface for the Ping OpenMLS SDK — drives the ping-openmls-sdk npm package",
|
|
5
|
-
"version": "0.5.
|
|
5
|
+
"version": "0.5.11",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"ping_wasm_bg.wasm",
|
package/wasm/ping_wasm.d.ts
CHANGED
|
@@ -296,9 +296,9 @@ export interface InitOutput {
|
|
|
296
296
|
readonly wasmbindgentestcontext_include_ignored: (a: number, b: number) => void;
|
|
297
297
|
readonly wasmbindgentestcontext_new: (a: number) => number;
|
|
298
298
|
readonly wasmbindgentestcontext_run: (a: number, b: number, c: number) => number;
|
|
299
|
-
readonly
|
|
300
|
-
readonly
|
|
301
|
-
readonly
|
|
299
|
+
readonly __wasm_bindgen_func_elem_2823: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
300
|
+
readonly __wasm_bindgen_func_elem_2809: (a: number, b: number, c: number, d: number) => void;
|
|
301
|
+
readonly __wasm_bindgen_func_elem_2833: (a: number, b: number, c: number, d: number) => void;
|
|
302
302
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
303
303
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
304
304
|
readonly __wbindgen_export3: (a: number) => void;
|
package/wasm/ping_wasm.js
CHANGED
|
@@ -989,11 +989,11 @@ function __wbg_get_imports() {
|
|
|
989
989
|
const ret = getObject(arg0).crypto;
|
|
990
990
|
return addHeapObject(ret);
|
|
991
991
|
},
|
|
992
|
-
|
|
992
|
+
__wbg_del_fa6fa51dfecb7790: function(arg0, arg1, arg2, arg3, arg4) {
|
|
993
993
|
const ret = getObject(arg0).del(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
994
994
|
return addHeapObject(ret);
|
|
995
995
|
},
|
|
996
|
-
|
|
996
|
+
__wbg_discoverDevices_8ab431792606218b: function(arg0, arg1) {
|
|
997
997
|
const ret = getObject(arg0).discoverDevices(takeObject(arg1));
|
|
998
998
|
return addHeapObject(ret);
|
|
999
999
|
},
|
|
@@ -1019,7 +1019,7 @@ function __wbg_get_imports() {
|
|
|
1019
1019
|
wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
1020
1020
|
}
|
|
1021
1021
|
},
|
|
1022
|
-
|
|
1022
|
+
__wbg_fetchSince_75298a786c61d0f7: function(arg0, arg1, arg2, arg3) {
|
|
1023
1023
|
const ret = getObject(arg0).fetchSince(takeObject(arg1), takeObject(arg2), arg3 >>> 0);
|
|
1024
1024
|
return addHeapObject(ret);
|
|
1025
1025
|
},
|
|
@@ -1030,7 +1030,7 @@ function __wbg_get_imports() {
|
|
|
1030
1030
|
const a = state0.a;
|
|
1031
1031
|
state0.a = 0;
|
|
1032
1032
|
try {
|
|
1033
|
-
return
|
|
1033
|
+
return __wasm_bindgen_func_elem_2823(a, state0.b, arg0, arg1, arg2);
|
|
1034
1034
|
} finally {
|
|
1035
1035
|
state0.a = a;
|
|
1036
1036
|
}
|
|
@@ -1054,6 +1054,10 @@ function __wbg_get_imports() {
|
|
|
1054
1054
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
1055
1055
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
1056
1056
|
}, arguments); },
|
|
1057
|
+
__wbg_get_2b4582aef1cd40ce: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1058
|
+
const ret = getObject(arg0).get(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1059
|
+
return addHeapObject(ret);
|
|
1060
|
+
},
|
|
1057
1061
|
__wbg_get_652f640b3b0b6e3e: function(arg0, arg1) {
|
|
1058
1062
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
1059
1063
|
return addHeapObject(ret);
|
|
@@ -1062,10 +1066,6 @@ function __wbg_get_imports() {
|
|
|
1062
1066
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
1063
1067
|
return addHeapObject(ret);
|
|
1064
1068
|
}, arguments); },
|
|
1065
|
-
__wbg_get_9edb05485756d89a: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1066
|
-
const ret = getObject(arg0).get(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1067
|
-
return addHeapObject(ret);
|
|
1068
|
-
},
|
|
1069
1069
|
__wbg_get_unchecked_be562b1421656321: function(arg0, arg1) {
|
|
1070
1070
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
1071
1071
|
return addHeapObject(ret);
|
|
@@ -1114,7 +1114,7 @@ function __wbg_get_imports() {
|
|
|
1114
1114
|
const ret = getObject(arg0).length;
|
|
1115
1115
|
return ret;
|
|
1116
1116
|
},
|
|
1117
|
-
|
|
1117
|
+
__wbg_listKeys_09f892516cb70a84: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1118
1118
|
const ret = getObject(arg0).listKeys(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1119
1119
|
return addHeapObject(ret);
|
|
1120
1120
|
},
|
|
@@ -1171,7 +1171,7 @@ function __wbg_get_imports() {
|
|
|
1171
1171
|
const a = state0.a;
|
|
1172
1172
|
state0.a = 0;
|
|
1173
1173
|
try {
|
|
1174
|
-
return
|
|
1174
|
+
return __wasm_bindgen_func_elem_2833(a, state0.b, arg0, arg1);
|
|
1175
1175
|
} finally {
|
|
1176
1176
|
state0.a = a;
|
|
1177
1177
|
}
|
|
@@ -1221,7 +1221,7 @@ function __wbg_get_imports() {
|
|
|
1221
1221
|
__wbg_prototypesetcall_fd4050e806e1d519: function(arg0, arg1, arg2) {
|
|
1222
1222
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
1223
1223
|
},
|
|
1224
|
-
|
|
1224
|
+
__wbg_put_a46e1d4200975632: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1225
1225
|
const ret = getObject(arg0).put(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), takeObject(arg5));
|
|
1226
1226
|
return addHeapObject(ret);
|
|
1227
1227
|
},
|
|
@@ -1247,11 +1247,11 @@ function __wbg_get_imports() {
|
|
|
1247
1247
|
const ret = getObject(arg0).self;
|
|
1248
1248
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1249
1249
|
},
|
|
1250
|
-
|
|
1250
|
+
__wbg_send_253a734f22423ba0: function(arg0, arg1) {
|
|
1251
1251
|
const ret = getObject(arg0).send(takeObject(arg1));
|
|
1252
1252
|
return addHeapObject(ret);
|
|
1253
1253
|
},
|
|
1254
|
-
|
|
1254
|
+
__wbg_setNextWelcomeRecipients_f0b296384e4aeea7: function(arg0, arg1, arg2) {
|
|
1255
1255
|
const ret = getObject(arg0).setNextWelcomeRecipients(takeObject(arg1), takeObject(arg2));
|
|
1256
1256
|
return addHeapObject(ret);
|
|
1257
1257
|
},
|
|
@@ -1349,7 +1349,7 @@ function __wbg_get_imports() {
|
|
|
1349
1349
|
},
|
|
1350
1350
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1351
1351
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 780, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1352
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1352
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2809);
|
|
1353
1353
|
return addHeapObject(ret);
|
|
1354
1354
|
},
|
|
1355
1355
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -1393,10 +1393,10 @@ function __wbg_get_imports() {
|
|
|
1393
1393
|
};
|
|
1394
1394
|
}
|
|
1395
1395
|
|
|
1396
|
-
function
|
|
1396
|
+
function __wasm_bindgen_func_elem_2809(arg0, arg1, arg2) {
|
|
1397
1397
|
try {
|
|
1398
1398
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1399
|
-
wasm.
|
|
1399
|
+
wasm.__wasm_bindgen_func_elem_2809(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1400
1400
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1401
1401
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1402
1402
|
if (r1) {
|
|
@@ -1407,12 +1407,12 @@ function __wasm_bindgen_func_elem_2806(arg0, arg1, arg2) {
|
|
|
1407
1407
|
}
|
|
1408
1408
|
}
|
|
1409
1409
|
|
|
1410
|
-
function
|
|
1411
|
-
wasm.
|
|
1410
|
+
function __wasm_bindgen_func_elem_2833(arg0, arg1, arg2, arg3) {
|
|
1411
|
+
wasm.__wasm_bindgen_func_elem_2833(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1412
1412
|
}
|
|
1413
1413
|
|
|
1414
|
-
function
|
|
1415
|
-
wasm.
|
|
1414
|
+
function __wasm_bindgen_func_elem_2823(arg0, arg1, arg2, arg3, arg4) {
|
|
1415
|
+
wasm.__wasm_bindgen_func_elem_2823(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
|
|
1416
1416
|
}
|
|
1417
1417
|
|
|
1418
1418
|
const WasmBindgenTestContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/wasm/ping_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -48,9 +48,9 @@ export const wasmbindgentestcontext_filtered_count: (a: number, b: number) => vo
|
|
|
48
48
|
export const wasmbindgentestcontext_include_ignored: (a: number, b: number) => void;
|
|
49
49
|
export const wasmbindgentestcontext_new: (a: number) => number;
|
|
50
50
|
export const wasmbindgentestcontext_run: (a: number, b: number, c: number) => number;
|
|
51
|
-
export const
|
|
52
|
-
export const
|
|
53
|
-
export const
|
|
51
|
+
export const __wasm_bindgen_func_elem_2823: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
52
|
+
export const __wasm_bindgen_func_elem_2809: (a: number, b: number, c: number, d: number) => void;
|
|
53
|
+
export const __wasm_bindgen_func_elem_2833: (a: number, b: number, c: number, d: number) => void;
|
|
54
54
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
55
55
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
56
56
|
export const __wbindgen_export3: (a: number) => void;
|