Spaces:
Sleeping
Sleeping
Claude Opus 5.5
feat: remove AI assistant, Free/Plus plans, user templates API, security fixes
6d07d79 Download FlowAPI.Application/Services/Plans.cs from DanilDrotik/FlowAPI: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/spaces/DanilDrotik/FlowAPI/resolve/main/FlowAPI.Application/Services/Plans.cs
- Command line
-
hf download hf://spaces/DanilDrotik/FlowAPI/FlowAPI.Application/Services/Plans.cs
-
curl -L -o Plans.cs https://huggingface.co/spaces/DanilDrotik/FlowAPI/resolve/main/FlowAPI.Application/Services/Plans.cs
1.08 kB
| using FlowAPI.Domain.Entities; | |
| namespace FlowAPI.Application.Services | |
| { | |
| /// <summary> | |
| /// Subscription plans. There are only two: Free (small creation limits) and Plus (no limits). | |
| /// Legacy values ("Pro", "Ultra") are treated as Plus. | |
| /// </summary> | |
| public static class Plans | |
| { | |
| public const string Free = "Free"; | |
| public const string Plus = "Plus"; | |
| public const int FreeMaxBoards = 5; | |
| public const int FreeMaxNodesPerBoard = 300; | |
| public const int FreeMaxGuestsPerBoard = 2; | |
| public const int FreeMaxTemplates = 3; | |
| public const int FreeMaxHabits = 3; | |
| public static string Normalize(string? tier) => | |
| string.IsNullOrWhiteSpace(tier) || tier.Trim().Equals(Free, System.StringComparison.OrdinalIgnoreCase) | |
| ? Free | |
| : Plus; | |
| public static bool IsValid(string? tier) => | |
| tier != null && (tier.Trim() == Free || tier.Trim() == Plus); | |
| public static bool IsPlus(User user) => Normalize(user.SubscriptionTier) == Plus; | |
| } | |
| } | |