' Options:
'Date: 2026-06-13 00:18:10
'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: RecordAiChatUsage.*
'''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.Interfaces
Imports BokaMera.API.ServiceModel.Dtos
Namespace Global
Namespace BokaMera.API.ServiceModel.Dtos
Public Partial Class AiChatUsageResponse
'''
'''The company the usage applies to.
'''
Public Overridable Property CompanyId As Guid
'''
'''Tokens consumed within the current rolling window.
'''
Public Overridable Property TokensUsed As Long
'''
'''The company's token limit for the window.
'''
Public Overridable Property TokenLimit As Integer
'''
'''Tokens remaining before the limit is reached (never negative).
'''
Public Overridable Property TokensRemaining As Long
'''
'''True while the company is still below its token limit.
'''
Public Overridable Property IsWithinBudget As Boolean
'''
'''Length of the rolling usage window, in days.
'''
Public Overridable Property WindowDays As Integer
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class RecordAiChatUsage
Implements IReturn(Of AiChatUsageResponse)
Implements ICompany
'''
'''The company id. Defaults to the logged-in user's company when omitted.
'''
Public Overridable Property CompanyId As Guid? Implements ICompany.CompanyId
'''
'''Number of tokens consumed by the chat turn (input + output).
'''
Public Overridable Property TokensUsed As Long
End Class
End Namespace
Namespace BokaMera.API.ServiceModel.Interfaces
Public Interface ICompany
Property CompanyId As Guid?
End Interface
End Namespace
End Namespace