Versions in this module Expand all Collapse all v1 v1.0.0 Jan 30, 2026 Changes in this version + type Service struct + func NewService(client ports.NylasClient, grantStore ports.GrantStore, ...) *Service + func (s *Service) GetMessages(ctx context.Context, email string, limit int) ([]domain.Message, error) + func (s *Service) GetMessagesDefault(ctx context.Context, limit int) ([]domain.Message, error) + func (s *Service) GetOTP(ctx context.Context, email string) (*domain.OTPResult, error) + func (s *Service) GetOTPByGrantID(ctx context.Context, grantID string) (*domain.OTPResult, error) + func (s *Service) GetOTPDefault(ctx context.Context) (*domain.OTPResult, error) + func (s *Service) ListAccounts() ([]domain.GrantInfo, error)