@syncot/auth
Advanced tools
Comparing version 0.0.3 to 0.0.4
import { Presence } from '@syncot/presence'; | ||
import { EmitterInterface, Id, SyncOtEmitter } from '@syncot/util'; | ||
import { EmitterInterface, SyncOtEmitter } from '@syncot/util'; | ||
/** | ||
@@ -27,3 +27,3 @@ * Events emitted by `AuthService` and `AuthClient`. | ||
*/ | ||
getUserId(): Id | undefined; | ||
getUserId(): string | undefined; | ||
/** | ||
@@ -53,3 +53,3 @@ * Returns true, if the user ID is present, otherwise returns false. | ||
*/ | ||
mayReadDocument(typeName: string, id: Id): Promise<boolean>; | ||
mayReadDocument(typeName: string, id: string): Promise<boolean>; | ||
/** | ||
@@ -59,3 +59,3 @@ * Resolves to true, if the user may write to the specified document, | ||
*/ | ||
mayWriteDocument(typeName: string, id: Id): Promise<boolean>; | ||
mayWriteDocument(typeName: string, id: string): Promise<boolean>; | ||
/** | ||
@@ -62,0 +62,0 @@ * Resolves to true, if the user may read/load the specified presence object, |
{ | ||
"name": "@syncot/auth", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Interfaces and type definitions related to authentication and authorization.", | ||
@@ -29,7 +29,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@syncot/presence": "^0.0.3", | ||
"@syncot/util": "^0.0.1", | ||
"@syncot/presence": "^0.0.4", | ||
"@syncot/util": "^0.0.2", | ||
"tslib": "^1.9.3" | ||
}, | ||
"gitHead": "bd4d64ce07f354f6123f71b6f6ba0796bc5b198b" | ||
"gitHead": "b952421ee19e038a054420c80e3b870f52e23ed9" | ||
} |
4276
+ Added@syncot/presence@0.0.4(transitive)
+ Added@syncot/util@0.0.2(transitive)
- Removed@syncot/presence@0.0.3(transitive)
- Removed@syncot/util@0.0.1(transitive)
Updated@syncot/presence@^0.0.4
Updated@syncot/util@^0.0.2