From d7ca8f40b1da4021d4075f8e39bdfb91caefbf96 Mon Sep 17 00:00:00 2001 From: zkldi Date: Thu, 10 Jun 2021 18:19:29 +0100 Subject: [PATCH] Add more permissions for IR stuff in APIPermissions --- common/js/types.d.ts | 6 +----- common/src/types.ts | 8 +++++++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/common/js/types.d.ts b/common/js/types.d.ts index 59acaf39e..f69a64217 100644 --- a/common/js/types.d.ts +++ b/common/js/types.d.ts @@ -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. */ diff --git a/common/src/types.ts b/common/src/types.ts index 6ba2b22bf..2a19f19b4 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -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.