feat(server): client version check (#9205)

Co-authored-by: forehalo <forehalo@gmail.com>
This commit is contained in:
DarkSky
2025-02-20 15:50:22 +08:00
committed by GitHub
parent 4fee2a9c4b
commit fa86f71853
17 changed files with 369 additions and 10 deletions

View File

@@ -426,6 +426,7 @@ export type ErrorDataUnion =
| SubscriptionNotExistsDataType
| SubscriptionPlanNotFoundDataType
| UnknownOauthProviderDataType
| UnsupportedClientVersionDataType
| UnsupportedSubscriptionPlanDataType
| VersionRejectedDataType
| WorkspaceMembersExceedLimitToDowngradeDataType
@@ -523,6 +524,7 @@ export enum ErrorNames {
TOO_MANY_REQUEST = 'TOO_MANY_REQUEST',
UNKNOWN_OAUTH_PROVIDER = 'UNKNOWN_OAUTH_PROVIDER',
UNSPLASH_IS_NOT_CONFIGURED = 'UNSPLASH_IS_NOT_CONFIGURED',
UNSUPPORTED_CLIENT_VERSION = 'UNSUPPORTED_CLIENT_VERSION',
UNSUPPORTED_SUBSCRIPTION_PLAN = 'UNSUPPORTED_SUBSCRIPTION_PLAN',
USER_AVATAR_NOT_FOUND = 'USER_AVATAR_NOT_FOUND',
USER_NOT_FOUND = 'USER_NOT_FOUND',
@@ -1534,6 +1536,12 @@ export interface UnknownOauthProviderDataType {
name: Scalars['String']['output'];
}
export interface UnsupportedClientVersionDataType {
__typename?: 'UnsupportedClientVersionDataType';
clientVersion: Scalars['String']['output'];
requiredVersion: Scalars['String']['output'];
}
export interface UnsupportedSubscriptionPlanDataType {
__typename?: 'UnsupportedSubscriptionPlanDataType';
plan: Scalars['String']['output'];