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