feat: add snjs package
This commit is contained in:
8
packages/snjs/lib/Services/Protection/ClientInterface.ts
Normal file
8
packages/snjs/lib/Services/Protection/ClientInterface.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { ChallengeReason } from '@standardnotes/services'
|
||||
import { DecryptedItem } from '@standardnotes/models'
|
||||
|
||||
export interface ProtectionsClientInterface {
|
||||
authorizeProtectedActionForItems<T extends DecryptedItem>(files: T[], challengeReason: ChallengeReason): Promise<T[]>
|
||||
|
||||
authorizeItemAccess(item: DecryptedItem): Promise<boolean>
|
||||
}
|
||||
Reference in New Issue
Block a user