|
| 1 | +package com.nylas.models |
| 2 | + |
| 3 | +import com.squareup.moshi.Json |
| 4 | + |
| 5 | +/** |
| 6 | + * Class representation of Notetaker meeting bot settings for a calendar. |
| 7 | + */ |
| 8 | +data class CalendarNotetaker( |
| 9 | + /** |
| 10 | + * The display name for the Notetaker bot. |
| 11 | + */ |
| 12 | + @Json(name = "name") |
| 13 | + val name: String? = "Nylas Notetaker", |
| 14 | + |
| 15 | + /** |
| 16 | + * Notetaker Meeting Settings |
| 17 | + */ |
| 18 | + @Json(name = "meeting_settings") |
| 19 | + val meetingSettings: MeetingSettings? = null, |
| 20 | + |
| 21 | + /** |
| 22 | + * Rules for when the Notetaker should join a meeting. |
| 23 | + */ |
| 24 | + @Json(name = "rules") |
| 25 | + val rules: Rules? = null, |
| 26 | +) { |
| 27 | + /** |
| 28 | + * Data class for Notetaker Meeting Settings |
| 29 | + */ |
| 30 | + data class MeetingSettings( |
| 31 | + /** |
| 32 | + * When true, Notetaker records the meeting's video. |
| 33 | + */ |
| 34 | + @Json(name = "video_recording") |
| 35 | + val videoRecording: Boolean? = true, |
| 36 | + |
| 37 | + /** |
| 38 | + * When true, Notetaker records the meeting's audio. |
| 39 | + */ |
| 40 | + @Json(name = "audio_recording") |
| 41 | + val audioRecording: Boolean? = true, |
| 42 | + |
| 43 | + /** |
| 44 | + * When true, Notetaker transcribes the meeting's audio. |
| 45 | + */ |
| 46 | + @Json(name = "transcription") |
| 47 | + val transcription: Boolean? = true, |
| 48 | + ) |
| 49 | + |
| 50 | + /** |
| 51 | + * Data class for Notetaker event selection rules |
| 52 | + */ |
| 53 | + data class Rules( |
| 54 | + /** |
| 55 | + * Types of events to include for notetaking. |
| 56 | + */ |
| 57 | + @Json(name = "event_selection") |
| 58 | + val eventSelection: List<EventSelectionType>? = null, |
| 59 | + |
| 60 | + /** |
| 61 | + * Filters to apply based on the number of participants. |
| 62 | + */ |
| 63 | + @Json(name = "participant_filter") |
| 64 | + val participantFilter: ParticipantFilter? = null, |
| 65 | + ) |
| 66 | + |
| 67 | + /** |
| 68 | + * Event selection types for Notetaker. |
| 69 | + */ |
| 70 | + enum class EventSelectionType { |
| 71 | + @Json(name = "internal") |
| 72 | + INTERNAL, |
| 73 | + |
| 74 | + @Json(name = "external") |
| 75 | + EXTERNAL, |
| 76 | + |
| 77 | + @Json(name = "own_events") |
| 78 | + OWN_EVENTS, |
| 79 | + |
| 80 | + @Json(name = "participant_only") |
| 81 | + PARTICIPANT_ONLY, |
| 82 | + |
| 83 | + @Json(name = "all") |
| 84 | + ALL, |
| 85 | + } |
| 86 | + |
| 87 | + /** |
| 88 | + * Participant filters for Notetaker. |
| 89 | + */ |
| 90 | + data class ParticipantFilter( |
| 91 | + /** |
| 92 | + * Only have meeting bot join meetings with greater than or equal to this number of participants. |
| 93 | + */ |
| 94 | + @Json(name = "participants_gte") |
| 95 | + val participantsGte: Int? = null, |
| 96 | + |
| 97 | + /** |
| 98 | + * Only have meeting bot join meetings with less than or equal to this number of participants. |
| 99 | + */ |
| 100 | + @Json(name = "participants_lte") |
| 101 | + val participantsLte: Int? = null, |
| 102 | + ) |
| 103 | +} |
0 commit comments