메인 콘텐츠로 건너뛰기
이 모듈은 X API 다이렉트 메시지 엔드포인트의 요청 및 응답 데이터 구조에 대한 Pydantic 모델을 제공합니다. 모든 모델은 OpenAPI 스펙에서 생성되며, 타입 안정성과 검증 기능을 제공합니다.

class xdk.direct_messages.models.CreateByConversationIdRequest

create_by_conversation_id 요청 모델
model_config
ConfigDict
기본값: {'populate_by_name': True, 'validate_by_alias': True, 'validate_by_name': True}모델 구성으로, [ConfigDict][pydantic.config.ConfigDict] 형식의 딕셔너리여야 합니다.

CreateByConversationIdResponse

클래스 상속: BaseModel create_by_conversation_id 메서드의 응답 모델

메서드

class xdk.direct_messages.models.CreateByConversationIdResponse

create_by_conversation_id용 응답 모델

class xdk.direct_messages.models.CreateByParticipantIdResponse

create_by_participant_id 메서드의 응답 모델

class xdk.direct_messages.models.CreateConversationResponse

create_conversation의 응답 모델

class xdk.direct_messages.models.DeleteEventsResponse

delete_events 메서드의 응답 모델

class xdk.direct_messages.models.GetEventsByConversationIdResponse

get_events_by_conversation_id의 응답 모델

class xdk.direct_messages.models.GetEventsByIdResponse

get_events_by_id 메서드의 응답 모델

class xdk.direct_messages.models.GetEventsByParticipantIdResponse

get_events_by_participant_id 메서드의 응답 모델

class xdk.direct_messages.models.GetEventsResponse

get_events 호출에 대한 응답 모델