File tree Expand file tree Collapse file tree 2 files changed +128
-52
lines changed
Expand file tree Collapse file tree 2 files changed +128
-52
lines changed Original file line number Diff line number Diff line change 11declare module 'pryv' {
22 type Timestamp = number ;
33 type Identifier = string ;
4- export type Level = 'read' | 'contribute' | 'manage' | 'create-only' ;
4+ export type PermissionLevel = 'read' | 'contribute' | 'manage' | 'create-only' ;
55 export type KeyValue = { [ key : string ] : string | number } ;
66
77 export type Attachment = {
@@ -46,7 +46,7 @@ declare module 'pryv' {
4646
4747 export type Permission = {
4848 streamId : Identifier ;
49- level : Level ;
49+ level : PermissionLevel ;
5050 feature ?: 'selfRevoke' ;
5151 setting ?: 'forbidden' ;
5252 } ;
@@ -671,7 +671,7 @@ declare module 'pryv' {
671671 export type AuthRequestedPermission = {
672672 streamId : Identifier ;
673673 defaultName : string ;
674- level : Level ;
674+ level : PermissionLevel ;
675675 } ;
676676
677677 export type States =
@@ -697,7 +697,7 @@ declare module 'pryv' {
697697 poll_rate_ms : number ;
698698 requestedPermissions : Array < {
699699 streamId : string ;
700- level : Level ;
700+ level : PermissionLevel ;
701701 defaultName : string ;
702702 } > ;
703703 requestingAppId : string ;
@@ -732,7 +732,7 @@ declare module 'pryv' {
732732 } ;
733733 } ;
734734
735- export const SetupAuth : (
735+ export type SetupAuth = (
736736 settings : AuthSettings ,
737737 serviceInfoUrl : string ,
738738 serviceCustomizations ?: serviceCustomizations ,
You can’t perform that action at this time.
0 commit comments