@abraca/dabra 0.3.0 → 0.5.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.
@@ -2593,6 +2593,10 @@ var AbracadabraClient = class {
2593
2593
  async createChild(docId, opts) {
2594
2594
  return this.request("POST", `/docs/${encodeURIComponent(docId)}/children`, { body: opts ?? {} });
2595
2595
  }
2596
+ /** List all permissions for a document (requires read access). */
2597
+ async listPermissions(docId) {
2598
+ return (await this.request("GET", `/docs/${encodeURIComponent(docId)}/permissions`)).permissions;
2599
+ }
2596
2600
  /** Grant or change a user's role on a document (requires Owner). */
2597
2601
  async setPermission(docId, opts) {
2598
2602
  await this.request("POST", `/docs/${encodeURIComponent(docId)}/permissions`, { body: opts });