@ping-app/ping-openmls-sdk 0.10.6 → 0.10.7

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.cjs CHANGED
@@ -932,6 +932,21 @@ var AccountSetup = class _AccountSetup {
932
932
  storageFeatures: storageFeaturesOf(this.storage)
933
933
  });
934
934
  }
935
+ /** "Start over" on an account that was started on this device and never
936
+ * finished (rulings V1201, V1277): deletes the pending root of ONE slot and
937
+ * nothing else, or refuses with a typed answer (see `PendingRootDiscard`).
938
+ * THE HOST'S DUTY, which the SDK cannot check: the person chose it, the
939
+ * slot's stored account is the account signed in now, this sign-in's fresh
940
+ * answer is exactly `none_pinned`, and the slot's SDK store is emptied in
941
+ * the same erase. Never call it from a sweep. */
942
+ discardPendingRoot(slot) {
943
+ return this.call({
944
+ kind: "discardPendingRoot",
945
+ id: this.nextId++,
946
+ slot,
947
+ storageFeatures: storageFeaturesOf(this.storage)
948
+ });
949
+ }
935
950
  // ---- The restore as a rotation (the account identity contract, sections
936
951
  // 3.9, 3.13, 13.1). None of these needs a client or a session: the backup
937
952
  // is opened and the whole `rotation` object is built before the device
@@ -2460,6 +2475,14 @@ var MessagingClient = class _MessagingClient {
2460
2475
  * an interactive call behind all of them. Resolves when every conversation
2461
2476
  * held at the start of the pass (plus any joined while it ran) has been
2462
2477
  * paged, with the decrypted application messages in apply order.
2478
+ *
2479
+ * Rejects with `StoreMovedError` when the client failed closed: before the
2480
+ * pass (it then asks nothing of the server), inside one of its steps (no
2481
+ * later conversation is asked; the pages before it were delivered), or
2482
+ * during its last step. A client that failed closed before or during the
2483
+ * pass never resolves at all, with an empty list or with any other. The
2484
+ * host drops the client and starts a new one on the same store, which
2485
+ * hands what was stored (`pendingApplies`).
2463
2486
  */
2464
2487
  async syncConversations() {
2465
2488
  return await this.call({