""" Options: Date: 2026-01-13 14:42:58 Version: 8.71 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://team.evovoice.io #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: GetAIUsage.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class AIAccountUsage: # @ApiMember(Description="The account ID this customer belongs to") account_id: Optional[str] = None """ The account ID this customer belongs to """ # @ApiMember(Description="The total number of AI minutes used in the date range") ai_minutes: int = 0 """ The total number of AI minutes used in the date range """ @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class AICustomerUsage: # @ApiMember(Description="The account ID this customer belongs to") account_id: Optional[str] = None """ The account ID this customer belongs to """ # @ApiMember(Description="The customer ID for this uage") customer_id: Optional[str] = None """ The customer ID for this uage """ # @ApiMember(Description="The total number of AI minutes used in the date range") ai_minutes: int = 0 """ The total number of AI minutes used in the date range """ @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class AIUsage: account_usage: Optional[List[AIAccountUsage]] = None customer_usage: Optional[List[AICustomerUsage]] = None # @Route("/ai/usage") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetAIUsage(IReturn[AIUsage], IGet): # @ApiMember(Description="Filter by account ID. If not specified will return entries for all customers in all accounts in the date range") account_id: Optional[str] = None """ Filter by account ID. If not specified will return entries for all customers in all accounts in the date range """ # @ApiMember(Description="Filter by customer ID. If not specified, will return all customers for the accounts considered") customer_id: Optional[str] = None """ Filter by customer ID. If not specified, will return all customers for the accounts considered """ # @ApiMember(Description="The start of the date range to consider") start_date: Optional[str] = None """ The start of the date range to consider """ # @ApiMember(Description="The end of the date range to consider") end_date: Optional[str] = None """ The end of the date range to consider """