Availability.set
Emitted each time an Availability is set.
Availability.set emits Availability.set when it completes on an Availability.
| Property | Value |
|---|---|
| Emitted by | Availability.set |
| Noun | Availability |
| Wakes | None. |
Payload
Each delivery is an Event record. data holds what Availability.set returns.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | required | Availability.set. |
at | datetime | required | When it happened. |
seq | integer | Its position in the namespace, one more than the Event before; any seq is a cursor into the history. | |
data | json | required | The Thing as the Action left it. |
data.availability | Availability | required | The Availability, replacing the Worker’s last one. |
data.availability.worker | Worker | required | Who is booked: a Human, or an Agent that takes calls. |
data.availability.hours | json | required | Open hours by weekday, in its time zone. |
data.availability.timezone | string | required | An IANA time zone. |
data.availability.calendars | string[] | Connected calendars whose busy times it subtracts. | |
data.availability.buffer | integer | Minutes kept free before and after each Meeting. | |
data.availability.notice | integer | The fewest hours ahead a Meeting can be booked. |
Example
{
"$id": "https: //api.sb/ leaseline.app/ events/ evt_vWokBxry2C",
"$type": "Event",
"name": "Availability.set",
"at": "2026-10-22T12: 00: 00Z",
"data": {
"availability": {
"$id": "https: //api.sb/ leaseline.app/ availabilities/ availability_8Zj0a7vvRl",
"$type": "Availability",
"worker": "worker_whZFpOKWIV",
"hours": {
"mon": [
"09: 00-12: 00"
],
"thu": [
"13: 00-17: 00"
]
},
"timezone": "America/ Chicago",
"calendars": [
"Example calendars"
],
"buffer": 10,
"notice": 12
}
},
"seq": 1680
}