scheduler
            AdditionalField
  
      dataclass
  
    Class representation of an additional field.
Atributes
label: The text label to be displayed in the Scheduler UI. type: The field type. Supported values are text, multi_line_text, email, phone_number, dropdown, date, checkbox, and radio_button required: Whether the field is required to be filled out by the guest when booking an event. pattern: A regular expression pattern that the value of the field must match. order: The order in which the field will be displayed in the Scheduler UI. Fields with lower order values will be displayed first. options: A list of options for the dropdown or radio_button types. This field is required for the dropdown and radio_button types.
Source code in nylas/models/scheduler.py
                58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81  |  | 
            Availability
  
      dataclass
  
    Class representation of availability settings.
Attributes:
| Name | Type | Description | 
|---|---|---|
duration_minutes | 
            
                  int
             | 
            
               The total number of minutes the event should last.  | 
          
interval_minutes | 
            
                  Optional[int]
             | 
            
               The interval between meetings in minutes.  | 
          
round_to | 
            
                  Optional[int]
             | 
            
               Nylas rounds each time slot to the nearest multiple of this number of minutes.  | 
          
availability_rules | 
            
                  Optional[AvailabilityRules]
             | 
            
               Availability rules for scheduling configuration.  | 
          
Source code in nylas/models/scheduler.py
                169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185  |  | 
            Booking
  
      dataclass
  
    Class representation of a booking.
Attributes:
| Name | Type | Description | 
|---|---|---|
booking_id | 
            
                  str
             | 
            
               The unique ID of the booking.  | 
          
event_id | 
            
                  str
             | 
            
               The unique ID of the event associated with the booking.  | 
          
title | 
            
                  str
             | 
            
               The title of the event.  | 
          
organizer | 
            
                  BookingOrganizer
             | 
            
               The participant designated as the organizer of the event.  | 
          
status | 
            
                  BookingStatus
             | 
            
               The current status of the booking.  | 
          
description | 
            
                  Optional[str]
             | 
            
               The description of the event.  | 
          
Source code in nylas/models/scheduler.py
                417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437  |  | 
            BookingConfirmedTemplate
  
      dataclass
  
    Class representation of booking confirmed template settings.
Attributes:
| Name | Type | Description | 
|---|---|---|
title | 
            
                  Optional[str]
             | 
            
               The title to replace the default 'Booking Confirmed' title.  | 
          
body | 
            
                  Optional[str]
             | 
            
               The additional body to be appended after the default body.  | 
          
Source code in nylas/models/scheduler.py
                28 29 30 31 32 33 34 35 36 37 38 39 40  |  | 
            BookingGuest
  
      dataclass
  
    Class representation of a booking guest.
Attributes:
| Name | Type | Description | 
|---|---|---|
email | 
            
                  str
             | 
            
               The email address of the guest.  | 
          
name | 
            
                  str
             | 
            
               The name of the guest.  | 
          
Source code in nylas/models/scheduler.py
                341 342 343 344 345 346 347 348 349 350 351 352 353  |  | 
            BookingOrganizer
  
      dataclass
  
    Class representation of a booking organizer.
Attributes:
| Name | Type | Description | 
|---|---|---|
email | 
            
                  str
             | 
            
               The email address of the participant designated as the organizer of the event.  | 
          
name | 
            
                  Optional[str]
             | 
            
               The name of the participant designated as the organizer of the event.  | 
          
Source code in nylas/models/scheduler.py
                398 399 400 401 402 403 404 405 406 407 408 409 410  |  | 
            BookingParticipant
  
      dataclass
  
    Class representation of a booking participant.
Attributes:
| Name | Type | Description | 
|---|---|---|
email | 
            
                  str
             | 
            
               The email address of the participant to include in the booking.  | 
          
Source code in nylas/models/scheduler.py
                356 357 358 359 360 361 362 363 364 365 366  |  | 
            BookingReminder
  
      dataclass
  
    Class representation of a booking reminder.
Attributes:
| Name | Type | Description | 
|---|---|---|
type | 
            
                  str
             | 
            
               The reminder type.  | 
          
minutes_before_event | 
            
                  int
             | 
            
               The number of minutes before the event to send the reminder.  | 
          
recipient | 
            
                  Optional[str]
             | 
            
               The recipient of the reminder.  | 
          
email_subject | 
            
                  Optional[str]
             | 
            
               The subject of the email reminder.  | 
          
Source code in nylas/models/scheduler.py
                123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139  |  | 
            ConfigParticipant
  
      dataclass
  
    Class representation of a booking participant.
Attributes:
| Name | Type | Description | 
|---|---|---|
email | 
            
                  str
             | 
            
               Participant's email address.  | 
          
availability | 
            
                  ParticipantAvailability
             | 
            
               Availability data for the participant.  | 
          
booking | 
            
                  ParticipantBooking
             | 
            
               Booking data for the participant.  | 
          
name | 
            
                  Optional[str]
             | 
            
               Participant's name.  | 
          
is_organizer | 
            
                  Optional[bool]
             | 
            
               Whether the participant is the organizer of the event.  | 
          
timezone | 
            
                  Optional[str]
             | 
            
               The participant's timezone.  | 
          
Source code in nylas/models/scheduler.py
                216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236  |  | 
            Configuration
  
      dataclass
  
    Class representation of a scheduler configuration.
Attributes:
| Name | Type | Description | 
|---|---|---|
participants | 
            
                  List[ConfigParticipant]
             | 
            
               List of participants included in the scheduled event.  | 
          
availability | 
            
                  Availability
             | 
            
               Rules that determine available time slots for the event.  | 
          
event_booking | 
            
                  EventBooking
             | 
            
               Booking data for the event.  | 
          
slug | 
            
                  Optional[str]
             | 
            
               Unique identifier for the Configuration object.  | 
          
requires_session_auth | 
            
                  Optional[bool]
             | 
            
               If true, scheduling Availability and Bookings endpoints require a valid session ID.  | 
          
scheduler | 
            
                  Optional[SchedulerSettings]
             | 
            
               Settings for the Scheduler UI.  | 
          
appearance | 
            
                  Optional[Dict[str, str]]
             | 
            
               Appearance settings for the Scheduler UI.  | 
          
Source code in nylas/models/scheduler.py
                239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262  |  | 
            ConfirmBookingRequest
  
      dataclass
  
    Class representation of a confirm booking request.
Attributes:
| Name | Type | Description | 
|---|---|---|
salt | 
            
                  str
             | 
            
               The salt extracted from the booking reference embedded in the organizer confirmation link.  | 
          
status | 
            
                  ConfirmBookingStatus
             | 
            
               The action to take on the pending booking.  | 
          
cancellation_reason | 
            
                  Optional[str]
             | 
            
               The reason the booking is being cancelled.  | 
          
Source code in nylas/models/scheduler.py
                440 441 442 443 444 445 446 447 448 449 450 451 452 453 454  |  | 
            CreateBookingQueryParams
  
      dataclass
  
    Class representation of query parameters for creating a booking.
Attributes:
| Name | Type | Description | 
|---|---|---|
configuration_id | 
            
                  Optional[str]
             | 
            
               The ID of the Configuration object whose settings are used for calculating availability. If you're using session authentication (requires_session_auth is set to true), configuration_id is not required.  | 
          
slug | 
            
                  Optional[str]
             | 
            
               The slug of the Configuration object whose settings are used for calculating availability. If you're using session authentication (requires_session_auth is set to true) or using configurationId, slug is not required.  | 
          
timezone | 
            
                  Optional[str]
             | 
            
               The timezone to use for the booking. If not provided, Nylas uses the timezone from the Configuration object.  | 
          
Source code in nylas/models/scheduler.py
                485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503  |  | 
            CreateBookingRequest
  
      dataclass
  
    Class representation of a create booking request.
Attributes:
| Name | Type | Description | 
|---|---|---|
start_time | 
            
                  int
             | 
            
               The event's start time, in Unix epoch format.  | 
          
end_time | 
            
                  int
             | 
            
               The event's end time, in Unix epoch format.  | 
          
guest | 
            
                  BookingGuest
             | 
            
               Details about the guest that is creating the booking.  | 
          
participants | 
            
                  Optional[List[BookingParticipant]]
             | 
            
               List of participant email addresses from the Configuration object to include in the booking.  | 
          
timezone | 
            
                  Optional[str]
             | 
            
               The guest's timezone that is used in email notifications.  | 
          
email_language | 
            
                  Optional[EmailLanguage]
             | 
            
               The language of the guest email notifications.  | 
          
additional_guests | 
            
                  Optional[List[BookingGuest]]
             | 
            
               List of additional guest email addresses to include in the booking.  | 
          
additional_fields | 
            
                  Optional[Dict[str, str]]
             | 
            
               Dictionary of additional field keys mapped to values populated by the guest in the booking form.  | 
          
Source code in nylas/models/scheduler.py
                369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395  |  | 
            CreateConfigurationRequest
    
              Bases: TypedDict
Interface of a Nylas create configuration request.
Attributes:
| Name | Type | Description | 
|---|---|---|
participants | 
            
                  List[ConfigParticipant]
             | 
            
               List of participants included in the scheduled event.  | 
          
availability | 
            
                  Availability
             | 
            
               Rules that determine available time slots for the event.  | 
          
event_booking | 
            
                  EventBooking
             | 
            
               Booking data for the event.  | 
          
slug | 
            
                  NotRequired[str]
             | 
            
               Unique identifier for the Configuration object.  | 
          
requires_session_auth | 
            
                  NotRequired[bool]
             | 
            
               If true, scheduling Availability and Bookings endpoints require a valid session ID.  | 
          
scheduler | 
            
                  NotRequired[SchedulerSettings]
             | 
            
               Settings for the Scheduler UI.  | 
          
appearance | 
            
                  NotRequired[Dict[str, str]]
             | 
            
               Appearance settings for the Scheduler UI.  | 
          
Source code in nylas/models/scheduler.py
                265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285  |  | 
            CreateSessionRequest
    
              Bases: TypedDict
Interface of a Nylas create session request.
Attributes:
| Name | Type | Description | 
|---|---|---|
configuration_id | 
            
                  NotRequired[str]
             | 
            
               The ID of the Configuration object whose settings are used for calculating availability. If you're using session authentication (requires_session_auth is set to true), configuration_id is not required.  | 
          
slug | 
            
                  NotRequired[str]
             | 
            
               The slug of the Configuration object whose settings are used for calculating availability. If you're using session authentication (requires_session_auth is set to true) or using configurationId, slug is not required.  | 
          
time_to_live | 
            
                  NotRequired[int]
             | 
            
               The time-to-live in seconds for the session  | 
          
Source code in nylas/models/scheduler.py
                310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325  |  | 
            DeleteBookingRequest
  
      dataclass
  
    Class representation of a delete booking request.
Attributes:
| Name | Type | Description | 
|---|---|---|
cancellation_reason | 
            
                  Optional[str]
             | 
            
               The reason the booking is being cancelled.  | 
          
Source code in nylas/models/scheduler.py
                457 458 459 460 461 462 463 464 465 466 467  |  | 
            EmailTemplate
  
      dataclass
  
    Class representation of email template settings.
Attributes:
| Name | Type | Description | 
|---|---|---|
logo | 
            
               The URL to a custom logo that appears at the top of the booking email.  | 
          |
booking_confirmed | 
            
                  Optional[BookingConfirmedTemplate]
             | 
            
               Configurable settings specifically for booking confirmed emails.  | 
          
Source code in nylas/models/scheduler.py
                43 44 45 46 47 48 49 50 51 52 53 54 55  |  | 
            EventBooking
  
      dataclass
  
    Class representation of an event booking.
Attributes:
| Name | Type | Description | 
|---|---|---|
title | 
            
                  str
             | 
            
               The title of the event.  | 
          
description | 
            
                  Optional[str]
             | 
            
               The description of the event.  | 
          
location | 
            
                  Optional[str]
             | 
            
               The location of the event.  | 
          
timezone | 
            
                  Optional[str]
             | 
            
               The timezone for displaying times in confirmation email messages and reminders.  | 
          
booking_type | 
            
                  Optional[BookingType]
             | 
            
               The type of booking.  | 
          
conferencing | 
            
                  Optional[Conferencing]
             | 
            
               Conference details for the event.  | 
          
disable_emails | 
            
                  Optional[bool]
             | 
            
               Whether Nylas sends email messages when an event is booked, cancelled, or rescheduled.  | 
          
reminders | 
            
                  Optional[List[BookingReminder]]
             | 
            
               The list of reminders to send to participants before the event starts.  | 
          
Source code in nylas/models/scheduler.py
                142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166  |  | 
            FindBookingQueryParams
    Class representation of query parameters for finding a booking.
Attributes:
| Name | Type | Description | 
|---|---|---|
configuration_id | 
            
                  Optional[str]
             | 
            
               The ID of the Configuration object whose settings are used for calculating availability. If you're using session authentication (requires_session_auth is set to true), configuration_id is not required.  | 
          
slug | 
            
                  Optional[str]
             | 
            
               The slug of the Configuration object whose settings are used for calculating availability. If you're using session authentication (requires_session_auth is set to true) or using configurationId, slug is not required.  | 
          
client_id | 
            
                  Optional[str]
             | 
            
               The client ID that was used to create the Configuration object. client_id is required only if using slug.  | 
          
Source code in nylas/models/scheduler.py
                506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522  |  | 
            ParticipantAvailability
  
      dataclass
  
    Class representation of participant availability.
Attributes:
| Name | Type | Description | 
|---|---|---|
calendar_ids | 
            
                  List[str]
             | 
            
               List of calendar IDs associated with the participant's email address.  | 
          
open_hours | 
            
                  Optional[List[OpenHours]]
             | 
            
               Open hours for this participant. The endpoint searches for free time slots during these open hours.  | 
          
Source code in nylas/models/scheduler.py
                201 202 203 204 205 206 207 208 209 210 211 212 213  |  | 
            ParticipantBooking
  
      dataclass
  
    Class representation of a participant booking.
Attributes:
| Name | Type | Description | 
|---|---|---|
calendar_id | 
            
                  str
             | 
            
               The calendar ID that the event is created in.  | 
          
Source code in nylas/models/scheduler.py
                188 189 190 191 192 193 194 195 196 197 198  |  | 
            RescheduleBookingRequest
  
      dataclass
  
    Class representation of a reschedule booking request.
Attributes:
| Name | Type | Description | 
|---|---|---|
start_time | 
            
                  int
             | 
            
               The event's start time, in Unix epoch format.  | 
          
end_time | 
            
                  int
             | 
            
               The event's end time, in Unix epoch format.  | 
          
Source code in nylas/models/scheduler.py
                470 471 472 473 474 475 476 477 478 479 480 481 482  |  | 
            SchedulerSettings
  
      dataclass
  
    Class representation of scheduler settings.
Attributes:
| Name | Type | Description | 
|---|---|---|
additional_fields | 
            
                  Optional[Dict[str, AdditionalField]]
             | 
            
               Definitions for additional fields to be displayed in the Scheduler UI.  | 
          
available_days_in_future | 
            
                  Optional[int]
             | 
            
               Number of days in the future that Scheduler is available for scheduling events.  | 
          
min_booking_notice | 
            
                  Optional[int]
             | 
            
               Minimum number of minutes in the future that a user can make a new booking.  | 
          
min_cancellation_notice | 
            
                  Optional[int]
             | 
            
               Minimum number of minutes before a booking can be cancelled.  | 
          
cancellation_policy | 
            
                  Optional[str]
             | 
            
               A message about the cancellation policy to display when booking an event.  | 
          
rescheduling_url | 
            
                  Optional[str]
             | 
            
               The URL used to reschedule bookings.  | 
          
cancellation_url | 
            
                  Optional[str]
             | 
            
               The URL used to cancel bookings.  | 
          
organizer_confirmation_url | 
            
                  Optional[str]
             | 
            
               The URL used to confirm or cancel pending bookings.  | 
          
confirmation_redirect_url | 
            
                  Optional[str]
             | 
            
               The custom URL to redirect to once the booking is confirmed.  | 
          
hide_rescheduling_options | 
            
                  Optional[bool]
             | 
            
               Whether the option to reschedule an event is hidden in booking confirmations and notifications.  | 
          
hide_cancellation_options | 
            
                  Optional[bool]
             | 
            
               Whether the option to cancel an event is hidden in booking confirmations and notifications.  | 
          
hide_additional_guests | 
            
                  Optional[bool]
             | 
            
               Whether to hide the additional guests field on the scheduling page.  | 
          
email_template | 
            
                  Optional[EmailTemplate]
             | 
            
               Configurable settings for booking emails.  | 
          
Source code in nylas/models/scheduler.py
                84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120  |  | 
            Session
  
      dataclass
  
    Class representation of a session.
Attributes:
| Name | Type | Description | 
|---|---|---|
session_id | 
            
                  str
             | 
            
               The ID of the session.  | 
          
Source code in nylas/models/scheduler.py
                328 329 330 331 332 333 334 335 336 337 338  |  | 
            UpdateConfigurationRequest
    
              Bases: TypedDict
Interface of a Nylas update configuration request.
Attributes:
| Name | Type | Description | 
|---|---|---|
participants | 
            
                  NotRequired[List[ConfigParticipant]]
             | 
            
               List of participants included in the scheduled event.  | 
          
availability | 
            
                  NotRequired[Availability]
             | 
            
               Rules that determine available time slots for the event.  | 
          
event_booking | 
            
                  NotRequired[EventBooking]
             | 
            
               Booking data for the event.  | 
          
slug | 
            
                  NotRequired[str]
             | 
            
               Unique identifier for the Configuration object.  | 
          
requires_session_auth | 
            
                  NotRequired[bool]
             | 
            
               If true, scheduling Availability and Bookings endpoints require a valid session ID.  | 
          
scheduler | 
            
                  NotRequired[SchedulerSettings]
             | 
            
               Settings for the Scheduler UI.  | 
          
appearance | 
            
                  NotRequired[Dict[str, str]]
             | 
            
               Appearance settings for the Scheduler UI.  | 
          
Source code in nylas/models/scheduler.py
                288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307  |  |