""" Options: Date: 2025-05-04 22:34:45 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: GetMyContacts.* #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 class AppContactTypes(str, Enum): USER = 'User' TEAM = 'Team' CONTACT = 'Contact' @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class AppContact: display_name: Optional[str] = None address: Optional[str] = None type: Optional[AppContactTypes] = None customer_name: Optional[str] = None can_call: bool = False can_chat: bool = False @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetMyContactsResponse: contacts: Optional[List[AppContact]] = None # @Route("/app/contacts", "GET") # @Api(Description="Gets the contacts associated with the authenticated user") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetMyContacts(IReturn[GetMyContactsResponse]): """ Gets the contacts associated with the authenticated user """ pass