@syncot/auth
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -49,21 +49,17 @@ import { Presence } from '@syncot/presence'; | ||
/** | ||
* Resolves to true, if the user may read from the specified document, | ||
* otherwise resolves to false. | ||
* Determines if the user may read from the specified document. | ||
*/ | ||
mayReadDocument(typeName: string, id: string): Promise<boolean>; | ||
mayReadDocument(typeName: string, id: string): boolean | Promise<boolean>; | ||
/** | ||
* Resolves to true, if the user may write to the specified document, | ||
* otherwise resolves to false. | ||
* Determines if the user may write to the specified document. | ||
*/ | ||
mayWriteDocument(typeName: string, id: string): Promise<boolean>; | ||
mayWriteDocument(typeName: string, id: string): boolean | Promise<boolean>; | ||
/** | ||
* Resolves to true, if the user may read/load the specified presence object, | ||
* otherwise resolves to false. | ||
* Determines if the user may read/load the specified presence object. | ||
*/ | ||
mayReadPresence(presence: Presence): Promise<boolean>; | ||
mayReadPresence(presence: Presence): boolean | Promise<boolean>; | ||
/** | ||
* Resolves to true, if the user may write/store the specified presence object, | ||
* otherwise resolves to false. | ||
* Determines if the user may write/store the specified presence object. | ||
*/ | ||
mayWritePresence(presence: Presence): Promise<boolean>; | ||
mayWritePresence(presence: Presence): boolean | Promise<boolean>; | ||
} |
{ | ||
"name": "@syncot/auth", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Interfaces and type definitions related to authentication and authorization.", | ||
@@ -33,3 +33,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "8de3f7bbee6695ec65937da8b8bbdbe9c867b996" | ||
"gitHead": "26a9162af9e2253c6451c29523370ab3b2b1f20b" | ||
} |
4144
65