File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -974,6 +974,13 @@ const resolveClaudePlanType = (profile: ClaudeProfileResponse | null): string |
974974 const hasClaudePro = normalizeFlagValue ( profile . account ?. has_claude_pro ) ;
975975 if ( hasClaudePro ) return 'plan_pro' ;
976976
977+ const organizationType = normalizeStringValue ( profile . organization ?. organization_type ) ?. toLowerCase ( ) ;
978+ const subscriptionStatus = normalizeStringValue ( profile . organization ?. subscription_status ) ?. toLowerCase ( ) ;
979+
980+ if ( organizationType === 'claude_team' && subscriptionStatus === 'active' ) {
981+ return 'plan_team' ;
982+ }
983+
977984 if ( hasClaudeMax === false && hasClaudePro === false ) return 'plan_free' ;
978985
979986 return null ;
Original file line number Diff line number Diff line change 645645 "plan_pro" : " Pro" ,
646646 "plan_max" : " Max" ,
647647 "plan_max5" : " Max 5x" ,
648- "plan_max20" : " Max 20x"
648+ "plan_max20" : " Max 20x" ,
649+ "plan_team" : " Team"
649650 },
650651 "codex_quota" : {
651652 "title" : " Codex Quota" ,
Original file line number Diff line number Diff line change 642642 "plan_pro" : " Pro" ,
643643 "plan_max" : " Max" ,
644644 "plan_max5" : " Max 5x" ,
645- "plan_max20" : " Max 20x"
645+ "plan_max20" : " Max 20x" ,
646+ "plan_team" : " Team"
646647 },
647648 "codex_quota" : {
648649 "title" : " Квота Codex" ,
Original file line number Diff line number Diff line change 645645 "plan_pro" : " 专业版" ,
646646 "plan_max" : " Max" ,
647647 "plan_max5" : " Max 5x" ,
648- "plan_max20" : " Max 20x"
648+ "plan_max20" : " Max 20x" ,
649+ "plan_team" : " 团队版"
649650 },
650651 "codex_quota" : {
651652 "title" : " Codex 额度" ,
Original file line number Diff line number Diff line change 645645 "plan_pro" : " 專業版" ,
646646 "plan_max" : " Max" ,
647647 "plan_max5" : " Max 5x" ,
648- "plan_max20" : " Max 20x"
648+ "plan_max20" : " Max 20x" ,
649+ "plan_team" : " 團隊版"
649650 },
650651 "codex_quota" : {
651652 "title" : " Codex 配額" ,
You can’t perform that action at this time.
0 commit comments