@abraca/dabra 0.8.0 → 1.0.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.
package/src/types.ts CHANGED
@@ -40,7 +40,7 @@ export enum WebSocketStatus {
40
40
  Disconnected = "disconnected",
41
41
  }
42
42
 
43
- export type AuthorizedScope = "read-write" | "readonly";
43
+ export type AuthorizedScope = "service" | "admin" | "owner" | "editor" | "viewer" | "read-write" | "readonly";
44
44
 
45
45
  export interface OutgoingMessageInterface {
46
46
  encoder: Encoder;
@@ -128,7 +128,7 @@ export type StatesArray = { clientId: number; [key: string | number]: any }[];
128
128
 
129
129
  // ── Abracadabra extensions ────────────────────────────────────────────────────
130
130
 
131
- export type EffectiveRole = "owner" | "editor" | "viewer" | null;
131
+ export type EffectiveRole = "service" | "admin" | "owner" | "editor" | "viewer" | null;
132
132
 
133
133
  /**
134
134
  * Ed25519 identity for passwordless crypto auth.
@@ -165,6 +165,7 @@ export interface UserProfile {
165
165
  username: string;
166
166
  email: string | null;
167
167
  displayName: string | null;
168
+ role: string;
168
169
  }
169
170
 
170
171
  export interface DocumentMeta {
@@ -251,3 +252,9 @@ export interface UploadQueueEntry {
251
252
  createdAt: number;
252
253
  error?: string;
253
254
  }
255
+
256
+ export interface DocEncryptionInfo {
257
+ mode: "none" | "cse" | "e2e";
258
+ effective_mode: "none" | "cse" | "e2e";
259
+ inherited_from?: string;
260
+ }