@abraca/dabra 2.0.3 → 2.0.4
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/abracadabra-provider.cjs +2694 -1014
- package/dist/abracadabra-provider.cjs.map +1 -1
- package/dist/abracadabra-provider.esm.js +2694 -1014
- package/dist/abracadabra-provider.esm.js.map +1 -1
- package/dist/index.d.ts +8 -2
- package/package.json +1 -1
- package/src/AbracadabraClient.ts +11 -2
package/dist/index.d.ts
CHANGED
|
@@ -613,11 +613,16 @@ declare class AbracadabraClient {
|
|
|
613
613
|
public_access: string | null;
|
|
614
614
|
effective_public_access: string | null;
|
|
615
615
|
}>;
|
|
616
|
-
/**
|
|
616
|
+
/**
|
|
617
|
+
* Update document metadata (label, description, kind, parent_id). Requires
|
|
618
|
+
* manage permission on the doc; reparenting additionally requires manage on
|
|
619
|
+
* the new parent (or admin if moving under the server root).
|
|
620
|
+
*/
|
|
617
621
|
updateDocumentMeta(docId: string, opts: {
|
|
618
622
|
label?: string | null;
|
|
619
623
|
description?: string | null;
|
|
620
624
|
kind?: string | null;
|
|
625
|
+
parent_id?: string | null;
|
|
621
626
|
}): Promise<void>;
|
|
622
627
|
/**
|
|
623
628
|
* List Spaces visible to the caller — top-level docs (children of the
|
|
@@ -3950,7 +3955,8 @@ declare class NotificationsClient extends EventEmitter {
|
|
|
3950
3955
|
private handleServerError;
|
|
3951
3956
|
}
|
|
3952
3957
|
//#endregion
|
|
3953
|
-
//#region node_modules/@scure/bip39/
|
|
3958
|
+
//#region node_modules/@scure/bip39/wordlists/english.d.ts
|
|
3959
|
+
/** English BIP39 wordlist. */
|
|
3954
3960
|
declare const wordlist: string[];
|
|
3955
3961
|
//#endregion
|
|
3956
3962
|
//#region packages/provider/src/MnemonicKeyDerivation.d.ts
|
package/package.json
CHANGED
package/src/AbracadabraClient.ts
CHANGED
|
@@ -824,10 +824,19 @@ export class AbracadabraClient {
|
|
|
824
824
|
return this.request("GET", `/docs/${encodeURIComponent(docId)}/access`);
|
|
825
825
|
}
|
|
826
826
|
|
|
827
|
-
/**
|
|
827
|
+
/**
|
|
828
|
+
* Update document metadata (label, description, kind, parent_id). Requires
|
|
829
|
+
* manage permission on the doc; reparenting additionally requires manage on
|
|
830
|
+
* the new parent (or admin if moving under the server root).
|
|
831
|
+
*/
|
|
828
832
|
async updateDocumentMeta(
|
|
829
833
|
docId: string,
|
|
830
|
-
opts: {
|
|
834
|
+
opts: {
|
|
835
|
+
label?: string | null;
|
|
836
|
+
description?: string | null;
|
|
837
|
+
kind?: string | null;
|
|
838
|
+
parent_id?: string | null;
|
|
839
|
+
},
|
|
831
840
|
): Promise<void> {
|
|
832
841
|
await this.request("PATCH", `/docs/${encodeURIComponent(docId)}`, { body: opts });
|
|
833
842
|
}
|