""" Options: Date: 2025-05-04 23:04:34 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: ListConversations.* #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 MessageInfo: id: Optional[str] = None account_id: Optional[str] = None customer_id: Optional[str] = None endpoint_id: Optional[str] = None endpoint_display_name: Optional[str] = None date: Optional[str] = None direction: Optional[MessageDirections] = None other_address: Optional[str] = None sender: Optional[str] = None text: Optional[str] = None is_unread: bool = False @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ConversationInfo: id: Optional[str] = None endpoint_id: Optional[str] = None other_address: Optional[str] = None most_recent_message: Optional[MessageInfo] = None @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ListConversationsResponse: conversations: Optional[List[ConversationInfo]] = None # @Route("/conversations", "GET") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class ListConversations(IReturn[ListConversationsResponse]): # @ApiMember(Description="The IDs of the account whose conversations you want to retrieve") account_ids: Optional[List[str]] = None """ The IDs of the account whose conversations you want to retrieve """ # @ApiMember(Description="The list of endpoint IDs whose conversations you want to retrieve") endpoint_ids: Optional[List[str]] = None """ The list of endpoint IDs whose conversations you want to retrieve """ # @ApiMember(Description="The list of customer IDs whose conversations you want to retrieve") customer_ids: Optional[List[str]] = None """ The list of customer IDs whose conversations you want to retrieve """ # @ApiMember(Description="The start date for the conversations you want to retrieve") after_date: Optional[str] = None """ The start date for the conversations you want to retrieve """