ping-openmls-sdk 0.7.0 → 0.7.2
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/package.json +1 -1
- package/wasm/package.json +1 -1
- package/wasm/ping_wasm.d.ts +5 -5
- package/wasm/ping_wasm.js +21 -35
- package/wasm/ping_wasm_bg.wasm +0 -0
- package/wasm/ping_wasm_bg.wasm.d.ts +4 -4
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.6.
|
|
5
|
+
"version": "0.6.2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"ping_wasm_bg.wasm",
|
package/wasm/ping_wasm.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ export class PingClient {
|
|
|
49
49
|
* [CR-7] Export the MLS state snapshot for one conversation.
|
|
50
50
|
*/
|
|
51
51
|
exportConversationStateSnapshot(conv_id: Uint8Array, now_ms: number): Uint8Array;
|
|
52
|
-
freshKeyPackage(): Uint8Array
|
|
52
|
+
freshKeyPackage(): Promise<Uint8Array>;
|
|
53
53
|
/**
|
|
54
54
|
* Generate a fresh identity. Returns the export bytes — store them under the user's account.
|
|
55
55
|
*/
|
|
@@ -286,7 +286,7 @@ export interface InitOutput {
|
|
|
286
286
|
readonly pingclient_deviceId: (a: number, b: number) => void;
|
|
287
287
|
readonly pingclient_exportConversationSecret: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
288
288
|
readonly pingclient_exportConversationStateSnapshot: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
289
|
-
readonly pingclient_freshKeyPackage: (a: number
|
|
289
|
+
readonly pingclient_freshKeyPackage: (a: number) => number;
|
|
290
290
|
readonly pingclient_generateIdentity: (a: number) => void;
|
|
291
291
|
readonly pingclient_importStateSnapshot: (a: number, b: number, c: number, d: number) => number;
|
|
292
292
|
readonly pingclient_init: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
@@ -318,9 +318,9 @@ export interface InitOutput {
|
|
|
318
318
|
readonly wasmbindgentestcontext_include_ignored: (a: number, b: number) => void;
|
|
319
319
|
readonly wasmbindgentestcontext_new: (a: number) => number;
|
|
320
320
|
readonly wasmbindgentestcontext_run: (a: number, b: number, c: number) => number;
|
|
321
|
-
readonly
|
|
322
|
-
readonly
|
|
323
|
-
readonly
|
|
321
|
+
readonly __wasm_bindgen_func_elem_2874: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
322
|
+
readonly __wasm_bindgen_func_elem_2860: (a: number, b: number, c: number, d: number) => void;
|
|
323
|
+
readonly __wasm_bindgen_func_elem_2884: (a: number, b: number, c: number, d: number) => void;
|
|
324
324
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
325
325
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
326
326
|
readonly __wbindgen_export3: (a: number) => void;
|
package/wasm/ping_wasm.js
CHANGED
|
@@ -169,25 +169,11 @@ export class PingClient {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
|
-
* @returns {Uint8Array}
|
|
172
|
+
* @returns {Promise<Uint8Array>}
|
|
173
173
|
*/
|
|
174
174
|
freshKeyPackage() {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
wasm.pingclient_freshKeyPackage(retptr, this.__wbg_ptr);
|
|
178
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
179
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
180
|
-
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
181
|
-
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
182
|
-
if (r3) {
|
|
183
|
-
throw takeObject(r2);
|
|
184
|
-
}
|
|
185
|
-
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
|
186
|
-
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
187
|
-
return v1;
|
|
188
|
-
} finally {
|
|
189
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
190
|
-
}
|
|
175
|
+
const ret = wasm.pingclient_freshKeyPackage(this.__wbg_ptr);
|
|
176
|
+
return takeObject(ret);
|
|
191
177
|
}
|
|
192
178
|
/**
|
|
193
179
|
* Generate a fresh identity. Returns the export bytes — store them under the user's account.
|
|
@@ -1074,11 +1060,11 @@ function __wbg_get_imports() {
|
|
|
1074
1060
|
const ret = getObject(arg0).crypto;
|
|
1075
1061
|
return addHeapObject(ret);
|
|
1076
1062
|
},
|
|
1077
|
-
|
|
1063
|
+
__wbg_del_b51ce073093d4dac: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1078
1064
|
const ret = getObject(arg0).del(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1079
1065
|
return addHeapObject(ret);
|
|
1080
1066
|
},
|
|
1081
|
-
|
|
1067
|
+
__wbg_discoverDevices_3536c1262825f664: function(arg0, arg1) {
|
|
1082
1068
|
const ret = getObject(arg0).discoverDevices(takeObject(arg1));
|
|
1083
1069
|
return addHeapObject(ret);
|
|
1084
1070
|
},
|
|
@@ -1104,7 +1090,7 @@ function __wbg_get_imports() {
|
|
|
1104
1090
|
wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
1105
1091
|
}
|
|
1106
1092
|
},
|
|
1107
|
-
|
|
1093
|
+
__wbg_fetchSince_52f83ec91f087865: function(arg0, arg1, arg2, arg3) {
|
|
1108
1094
|
const ret = getObject(arg0).fetchSince(takeObject(arg1), takeObject(arg2), arg3 >>> 0);
|
|
1109
1095
|
return addHeapObject(ret);
|
|
1110
1096
|
},
|
|
@@ -1115,7 +1101,7 @@ function __wbg_get_imports() {
|
|
|
1115
1101
|
const a = state0.a;
|
|
1116
1102
|
state0.a = 0;
|
|
1117
1103
|
try {
|
|
1118
|
-
return
|
|
1104
|
+
return __wasm_bindgen_func_elem_2874(a, state0.b, arg0, arg1, arg2);
|
|
1119
1105
|
} finally {
|
|
1120
1106
|
state0.a = a;
|
|
1121
1107
|
}
|
|
@@ -1147,7 +1133,7 @@ function __wbg_get_imports() {
|
|
|
1147
1133
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
1148
1134
|
return addHeapObject(ret);
|
|
1149
1135
|
}, arguments); },
|
|
1150
|
-
|
|
1136
|
+
__wbg_get_e04cdbda8255334f: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1151
1137
|
const ret = getObject(arg0).get(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1152
1138
|
return addHeapObject(ret);
|
|
1153
1139
|
},
|
|
@@ -1199,7 +1185,7 @@ function __wbg_get_imports() {
|
|
|
1199
1185
|
const ret = getObject(arg0).length;
|
|
1200
1186
|
return ret;
|
|
1201
1187
|
},
|
|
1202
|
-
|
|
1188
|
+
__wbg_listKeys_47b32c2d545361be: function(arg0, arg1, arg2, arg3, arg4) {
|
|
1203
1189
|
const ret = getObject(arg0).listKeys(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1204
1190
|
return addHeapObject(ret);
|
|
1205
1191
|
},
|
|
@@ -1256,7 +1242,7 @@ function __wbg_get_imports() {
|
|
|
1256
1242
|
const a = state0.a;
|
|
1257
1243
|
state0.a = 0;
|
|
1258
1244
|
try {
|
|
1259
|
-
return
|
|
1245
|
+
return __wasm_bindgen_func_elem_2884(a, state0.b, arg0, arg1);
|
|
1260
1246
|
} finally {
|
|
1261
1247
|
state0.a = a;
|
|
1262
1248
|
}
|
|
@@ -1306,7 +1292,7 @@ function __wbg_get_imports() {
|
|
|
1306
1292
|
__wbg_prototypesetcall_fd4050e806e1d519: function(arg0, arg1, arg2) {
|
|
1307
1293
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
1308
1294
|
},
|
|
1309
|
-
|
|
1295
|
+
__wbg_put_8955bd495a26ff55: function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1310
1296
|
const ret = getObject(arg0).put(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), takeObject(arg5));
|
|
1311
1297
|
return addHeapObject(ret);
|
|
1312
1298
|
},
|
|
@@ -1332,11 +1318,11 @@ function __wbg_get_imports() {
|
|
|
1332
1318
|
const ret = getObject(arg0).self;
|
|
1333
1319
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1334
1320
|
},
|
|
1335
|
-
|
|
1321
|
+
__wbg_send_5879b70bc0e3eed9: function(arg0, arg1) {
|
|
1336
1322
|
const ret = getObject(arg0).send(takeObject(arg1));
|
|
1337
1323
|
return addHeapObject(ret);
|
|
1338
1324
|
},
|
|
1339
|
-
|
|
1325
|
+
__wbg_setNextWelcomeRecipients_d347936d7813e414: function(arg0, arg1, arg2) {
|
|
1340
1326
|
const ret = getObject(arg0).setNextWelcomeRecipients(takeObject(arg1), takeObject(arg2));
|
|
1341
1327
|
return addHeapObject(ret);
|
|
1342
1328
|
},
|
|
@@ -1433,8 +1419,8 @@ function __wbg_get_imports() {
|
|
|
1433
1419
|
return addHeapObject(ret);
|
|
1434
1420
|
},
|
|
1435
1421
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1436
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1437
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1422
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 781, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1423
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2860);
|
|
1438
1424
|
return addHeapObject(ret);
|
|
1439
1425
|
},
|
|
1440
1426
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -1478,10 +1464,10 @@ function __wbg_get_imports() {
|
|
|
1478
1464
|
};
|
|
1479
1465
|
}
|
|
1480
1466
|
|
|
1481
|
-
function
|
|
1467
|
+
function __wasm_bindgen_func_elem_2860(arg0, arg1, arg2) {
|
|
1482
1468
|
try {
|
|
1483
1469
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1484
|
-
wasm.
|
|
1470
|
+
wasm.__wasm_bindgen_func_elem_2860(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1485
1471
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1486
1472
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1487
1473
|
if (r1) {
|
|
@@ -1492,12 +1478,12 @@ function __wasm_bindgen_func_elem_2814(arg0, arg1, arg2) {
|
|
|
1492
1478
|
}
|
|
1493
1479
|
}
|
|
1494
1480
|
|
|
1495
|
-
function
|
|
1496
|
-
wasm.
|
|
1481
|
+
function __wasm_bindgen_func_elem_2884(arg0, arg1, arg2, arg3) {
|
|
1482
|
+
wasm.__wasm_bindgen_func_elem_2884(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1497
1483
|
}
|
|
1498
1484
|
|
|
1499
|
-
function
|
|
1500
|
-
wasm.
|
|
1485
|
+
function __wasm_bindgen_func_elem_2874(arg0, arg1, arg2, arg3, arg4) {
|
|
1486
|
+
wasm.__wasm_bindgen_func_elem_2874(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
|
|
1501
1487
|
}
|
|
1502
1488
|
|
|
1503
1489
|
const WasmBindgenTestContextFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/wasm/ping_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -19,7 +19,7 @@ export const pingclient_createConversation: (a: number, b: number, c: number, d:
|
|
|
19
19
|
export const pingclient_deviceId: (a: number, b: number) => void;
|
|
20
20
|
export const pingclient_exportConversationSecret: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
21
21
|
export const pingclient_exportConversationStateSnapshot: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
22
|
-
export const pingclient_freshKeyPackage: (a: number
|
|
22
|
+
export const pingclient_freshKeyPackage: (a: number) => number;
|
|
23
23
|
export const pingclient_generateIdentity: (a: number) => void;
|
|
24
24
|
export const pingclient_importStateSnapshot: (a: number, b: number, c: number, d: number) => number;
|
|
25
25
|
export const pingclient_init: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
|
|
@@ -51,9 +51,9 @@ export const wasmbindgentestcontext_filtered_count: (a: number, b: number) => vo
|
|
|
51
51
|
export const wasmbindgentestcontext_include_ignored: (a: number, b: number) => void;
|
|
52
52
|
export const wasmbindgentestcontext_new: (a: number) => number;
|
|
53
53
|
export const wasmbindgentestcontext_run: (a: number, b: number, c: number) => number;
|
|
54
|
-
export const
|
|
55
|
-
export const
|
|
56
|
-
export const
|
|
54
|
+
export const __wasm_bindgen_func_elem_2874: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
55
|
+
export const __wasm_bindgen_func_elem_2860: (a: number, b: number, c: number, d: number) => void;
|
|
56
|
+
export const __wasm_bindgen_func_elem_2884: (a: number, b: number, c: number, d: number) => void;
|
|
57
57
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
58
58
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
59
59
|
export const __wbindgen_export3: (a: number) => void;
|