@@ -794,6 +794,17 @@ export class WorkspaceMembersExceedLimitToDowngrade extends UserFriendlyError {
794794 super ( 'bad_request' , 'workspace_members_exceed_limit_to_downgrade' , message , args ) ;
795795 }
796796}
797+ @ObjectType ( )
798+ class UnsupportedClientVersionDataType {
799+ @Field ( ) clientVersion ! : string
800+ @Field ( ) requiredVersion ! : string
801+ }
802+
803+ export class UnsupportedClientVersion extends UserFriendlyError {
804+ constructor ( args : UnsupportedClientVersionDataType , message ?: string | ( ( args : UnsupportedClientVersionDataType ) => string ) ) {
805+ super ( 'action_forbidden' , 'unsupported_client_version' , message , args ) ;
806+ }
807+ }
797808export enum ErrorNames {
798809 INTERNAL_SERVER_ERROR ,
799810 TOO_MANY_REQUEST ,
@@ -895,7 +906,8 @@ export enum ErrorNames {
895906 LICENSE_NOT_FOUND ,
896907 INVALID_LICENSE_TO_ACTIVATE ,
897908 INVALID_LICENSE_UPDATE_PARAMS ,
898- WORKSPACE_MEMBERS_EXCEED_LIMIT_TO_DOWNGRADE
909+ WORKSPACE_MEMBERS_EXCEED_LIMIT_TO_DOWNGRADE ,
910+ UNSUPPORTED_CLIENT_VERSION
899911}
900912registerEnumType ( ErrorNames , {
901913 name : 'ErrorNames'
@@ -904,5 +916,5 @@ registerEnumType(ErrorNames, {
904916export const ErrorDataUnionType = createUnionType ( {
905917 name : 'ErrorDataUnion' ,
906918 types : ( ) =>
907- [ GraphqlBadRequestDataType , QueryTooLongDataType , WrongSignInCredentialsDataType , UnknownOauthProviderDataType , MissingOauthQueryParameterDataType , InvalidEmailDataType , InvalidPasswordLengthDataType , WorkspacePermissionNotFoundDataType , SpaceNotFoundDataType , MemberNotFoundInSpaceDataType , NotInSpaceDataType , AlreadyInSpaceDataType , SpaceAccessDeniedDataType , SpaceOwnerNotFoundDataType , SpaceShouldHaveOnlyOneOwnerDataType , DocNotFoundDataType , DocActionDeniedDataType , VersionRejectedDataType , InvalidHistoryTimestampDataType , DocHistoryNotFoundDataType , BlobNotFoundDataType , ExpectToGrantDocUserRolesDataType , ExpectToRevokeDocUserRolesDataType , ExpectToUpdateDocUserRoleDataType , UnsupportedSubscriptionPlanDataType , SubscriptionAlreadyExistsDataType , SubscriptionNotExistsDataType , SameSubscriptionRecurringDataType , SubscriptionPlanNotFoundDataType , CopilotDocNotFoundDataType , CopilotMessageNotFoundDataType , CopilotPromptNotFoundDataType , CopilotProviderSideErrorDataType , CopilotInvalidContextDataType , CopilotContextFileNotSupportedDataType , CopilotFailedToModifyContextDataType , CopilotFailedToMatchContextDataType , RuntimeConfigNotFoundDataType , InvalidRuntimeConfigTypeDataType , InvalidLicenseUpdateParamsDataType , WorkspaceMembersExceedLimitToDowngradeDataType ] as const ,
919+ [ GraphqlBadRequestDataType , QueryTooLongDataType , WrongSignInCredentialsDataType , UnknownOauthProviderDataType , MissingOauthQueryParameterDataType , InvalidEmailDataType , InvalidPasswordLengthDataType , WorkspacePermissionNotFoundDataType , SpaceNotFoundDataType , MemberNotFoundInSpaceDataType , NotInSpaceDataType , AlreadyInSpaceDataType , SpaceAccessDeniedDataType , SpaceOwnerNotFoundDataType , SpaceShouldHaveOnlyOneOwnerDataType , DocNotFoundDataType , DocActionDeniedDataType , VersionRejectedDataType , InvalidHistoryTimestampDataType , DocHistoryNotFoundDataType , BlobNotFoundDataType , ExpectToGrantDocUserRolesDataType , ExpectToRevokeDocUserRolesDataType , ExpectToUpdateDocUserRoleDataType , UnsupportedSubscriptionPlanDataType , SubscriptionAlreadyExistsDataType , SubscriptionNotExistsDataType , SameSubscriptionRecurringDataType , SubscriptionPlanNotFoundDataType , CopilotDocNotFoundDataType , CopilotMessageNotFoundDataType , CopilotPromptNotFoundDataType , CopilotProviderSideErrorDataType , CopilotInvalidContextDataType , CopilotContextFileNotSupportedDataType , CopilotFailedToModifyContextDataType , CopilotFailedToMatchContextDataType , RuntimeConfigNotFoundDataType , InvalidRuntimeConfigTypeDataType , InvalidLicenseUpdateParamsDataType , WorkspaceMembersExceedLimitToDowngradeDataType , UnsupportedClientVersionDataType ] as const ,
908920} ) ;
0 commit comments