(* Options: Date: 2026-09-16 17:01:00 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //MakeDataContractsExtensible: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //ExportValueTypes: False IncludeTypes: SuperAdminAssistantUsageQuery.* //ExcludeTypes: //InitializeCollections: False //AddNamespaces: *) namespace BokaMera.API.ServiceModel.Dtos open System open System.IO open System.Collections open System.Collections.Generic open System.Runtime.Serialization open ServiceStack open ServiceStack.DataAnnotations open System.Globalization open ServiceStack.Data open System.Net open System.Net.Http.Headers [] type AssistantUsageMeter() = /// ///Tokens consumed within the current rolling window. /// [] member val TokensUsed:Int64 = new Int64() with get,set /// ///The company's token limit for the window. Zero or less means no cap is applied. /// [] member val TokenLimit:Int32 = new Int32() with get,set /// ///Tokens remaining before the limit is reached (never negative). /// [] member val TokensRemaining:Int64 = new Int64() with get,set /// ///Share of the limit consumed, as a percentage. Zero when no cap is applied. /// [] member val PercentUsed:Double = new Double() with get,set /// ///True while the company is still below its token limit. /// [] member val IsWithinBudget:Boolean = new Boolean() with get,set [] type SuperAdminAssistantUsage() = /// ///The company the usage applies to. /// [] member val CompanyId:Guid = new Guid() with get,set /// ///The company's name. /// [] member val CompanyName:String = null with get,set /// ///Token budget for the admin portal AI assistant. Null when it could not be read. /// [] member val AiChat:AssistantUsageMeter = null with get,set /// ///Token budget for the public MCP server. Null when it could not be read. /// [] member val Mcp:AssistantUsageMeter = null with get,set [] type SuperAdminAssistantUsageQueryResponse() = /// ///Number of companies skipped. /// [] member val Offset:Int32 = new Int32() with get,set /// ///Total number of companies matching the filter. /// [] member val Total:Int32 = new Int32() with get,set /// ///Length of the rolling usage window, in days. /// [] member val WindowDays:Int32 = new Int32() with get,set /// ///Usage for the requested page of companies. /// [] member val Results:ResizeArray = null with get,set member val ResponseStatus:ResponseStatus = null with get,set [] [] [] [] [] type SuperAdminAssistantUsageQuery() = interface IReturn /// ///Filter on company name. Case-insensitive substring match. /// [] member val Search:String = null with get,set /// ///Return only this company. Takes precedence over Search when both are set. /// [] member val CompanyId:Nullable = new Nullable() with get,set /// ///Number of companies to skip. /// [] member val Skip:Nullable = new Nullable() with get,set /// ///Number of companies to return. Capped server-side. /// [] member val Take:Nullable = new Nullable() with get,set