package lark

import "github.com/tidbcloud/aisupport/packages/sdk-go/contracts/api/base"

type MessageRequest struct {
	TicketKey string `json:"ticketKey"`
	ThreadID  string `json:"threadID"`
	ActorID   string `json:"actorID"`
	Text      string `json:"text"`
}

type MessageResponse struct {
	base.BaseResponse

	InteractionID string `json:"interactionID"`
	Answer        string `json:"answer"`
}

type EventRequest struct {
	Challenge string         `json:"challenge,omitempty"`
	Token     string         `json:"token,omitempty"`
	Type      string         `json:"type,omitempty"`
	Schema    string         `json:"schema,omitempty"`
	Header    map[string]any `json:"header,omitempty"`
	Event     map[string]any `json:"event,omitempty"`
	Encrypt   string         `json:"encrypt,omitempty"`
}

type EventResponse struct {
	base.BaseResponse
}
