@abraca/dabra 2.74.0 → 2.76.0

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.
@@ -10927,7 +10927,17 @@ var AbracadabraClient = class {
10927
10927
  async updateMe(opts) {
10928
10928
  await this.request("PATCH", "/users/me", { body: opts });
10929
10929
  }
10930
- /** Create a new root document. Returns its metadata. */
10930
+ /**
10931
+ * Create a new root (top-level) document. Returns its metadata.
10932
+ *
10933
+ * Requires Admin-or-above unless the server sets
10934
+ * `[access].allow_user_top_level = true` — subtree docs go through
10935
+ * {@link createChild} instead and inherit creation rights from the parent.
10936
+ *
10937
+ * The options mirror the server's `CreateDocRequest`. They used to be typed
10938
+ * as just `{ id?: string }`, which is why `findOrCreateDmDoc` below reaches
10939
+ * past this method with a raw `request()` to set `kind` / `public_access`.
10940
+ */
10931
10941
  async createDoc(opts) {
10932
10942
  return this.request("POST", "/docs", { body: opts ?? {} });
10933
10943
  }
@@ -22005,6 +22015,7 @@ exports.collectMediaFileBlocks = collectMediaFileBlocks;
22005
22015
  exports.decryptChatContent = decryptChatContent;
22006
22016
  exports.decryptField = decryptField;
22007
22017
  exports.defaultKeyFileFor = defaultKeyFileFor;
22018
+ exports.deriveDmDocId = deriveDmDocId;
22008
22019
  exports.deriveIdentityDocId = deriveIdentityDocId;
22009
22020
  exports.deriveSeedWrappingKey = deriveSeedWrappingKey;
22010
22021
  exports.deterministicKeypair = deterministicKeypair;