Add more permissions for IR stuff in APIPermissions

This commit is contained in:
zkldi
2021-06-10 18:19:29 +01:00
parent 78f0dbd574
commit d7ca8f40b1
2 changed files with 8 additions and 6 deletions
+1 -5
View File
@@ -1081,10 +1081,6 @@ export interface KaiAuthDocument {
refreshToken: string;
service: "FLO" | "EAG";
}
export interface GenericAuthDocument {
userID: integer;
token: string;
}
/**
* Used to resolve beatoraja IR courses.
*/
@@ -1119,7 +1115,7 @@ export declare type RedisIPCData = {
/**
* All the permissions a token may have.
*/
export declare type APIPermissions = "create:goal" | "manage:goal";
export declare type APIPermissions = "create:goal" | "manage:goal" | "submit:ir-beatoraja" | "retrieve:ir-beatoraja" | "submit:ir-usc" | "submit:ir-fervidex";
/**
* Information about the API Token used to make this request.
*/
+7 -1
View File
@@ -1367,7 +1367,13 @@ export type RedisIPCData = {
/**
* All the permissions a token may have.
*/
export type APIPermissions = "create:goal" | "manage:goal";
export type APIPermissions =
| "create:goal"
| "manage:goal"
| "submit:ir-beatoraja"
| "retrieve:ir-beatoraja"
| "submit:ir-usc"
| "submit:ir-fervidex";
/**
* Information about the API Token used to make this request.