repull 0.2.50 → 0.2.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/lib/repull/api/airbnb_api.rb +2 -2
  3. data/lib/repull/api/conversations_api.rb +2 -2
  4. data/lib/repull/api/listings_api.rb +63 -0
  5. data/lib/repull/models/account_notifications_missing_event.rb +282 -0
  6. data/lib/repull/models/account_notifications_missing_payload.rb +278 -0
  7. data/lib/repull/models/apply_connection_mappings200_response_results_inner.rb +14 -4
  8. data/lib/repull/models/auto_map_connection_units200_response.rb +1 -1
  9. data/lib/repull/models/auto_map_connection_units200_response_results_inner.rb +184 -0
  10. data/lib/repull/models/connect_status_accounts_inner.rb +12 -2
  11. data/lib/repull/models/conversation_message_status_changed_event.rb +282 -0
  12. data/lib/repull/models/conversation_message_status_changed_payload.rb +233 -0
  13. data/lib/repull/models/get_airbnb_booking_settings200_response_data_advance_notice.rb +14 -3
  14. data/lib/repull/models/get_listing_ical200_response.rb +298 -0
  15. data/lib/repull/models/get_listing_ical200_response_vrbo_inner.rb +285 -0
  16. data/lib/repull/models/get_usage_logs200_response_data_inner.rb +12 -1
  17. data/lib/repull/models/guest.rb +35 -2
  18. data/lib/repull/models/guest_contact.rb +37 -5
  19. data/lib/repull/models/guest_phone_type.rb +40 -0
  20. data/lib/repull/models/guest_profile.rb +35 -1
  21. data/lib/repull/models/list_connection_units200_response_units_inner.rb +1 -1
  22. data/lib/repull/models/listing_ical_feed_changed_event.rb +282 -0
  23. data/lib/repull/models/listing_ical_feed_changed_payload.rb +355 -0
  24. data/lib/repull/models/listing_ical_feed_changed_payload_feed.rb +159 -0
  25. data/lib/repull/models/message.rb +2 -2
  26. data/lib/repull/models/reservation.rb +11 -1
  27. data/lib/repull/models/reservation_primary_guest.rb +45 -2
  28. data/lib/repull/models/send_message_response.rb +1 -0
  29. data/lib/repull/models/update_airbnb_booking_settings_request_advance_notice.rb +56 -17
  30. data/lib/repull/models/vrbo_notifications.rb +192 -0
  31. data/lib/repull/models/webhook_event.rb +6 -0
  32. data/lib/repull/models/webhook_event_type.rb +4 -1
  33. data/lib/repull/version.rb +1 -1
  34. data/lib/repull.rb +12 -0
  35. data/openapi/v1.json +606 -18
  36. metadata +14 -2
data/openapi/v1.json CHANGED
@@ -530,6 +530,15 @@
530
530
  }
531
531
  }
532
532
  },
533
+ "GuestPhoneType": {
534
+ "type": "string",
535
+ "enum": [
536
+ "airbnb_relay",
537
+ "guest"
538
+ ],
539
+ "description": "Whether `phone` is the guest's own number or an Airbnb relay number. Since late October 2026 Airbnb never shares a guest's real phone number. For an Airbnb stay where the listing, host and guest are all in the same country and that country is the US or Canada, Airbnb gives a temporary relay number instead (`airbnb_relay`); every other Airbnb stay has no phone at all. A relay number forwards SMS only (no MMS, RCS or images; about 1,000 characters including Airbnb's prefix, not split). It stops working 48 hours after checkout or when the reservation is cancelled, and it can change during the stay without a reservation webhook (re-read the reservation for the current one). The same relay number is used for other guests of other hosts, so never use it to identify or match a guest. Texting from a number Airbnb does not know: the first message must be the reservation's confirmation code (for example `HM12345678`); text from the host's Airbnb contact number for automatic delivery. `guest` means the number as the channel or the host recorded it.",
540
+ "example": "airbnb_relay"
541
+ },
533
542
  "ReservationPrimaryGuest": {
534
543
  "type": "object",
535
544
  "description": "Inline guest summary resolved by JOIN-ing the `guests` table. Populated for every reservation that has a linked guest row; OMITTED entirely (not null) for owner-blocks / pre-arrival rows / partial-sync gaps. Always optional-chain in SDK consumers.",
@@ -555,7 +564,22 @@
555
564
  "phone": {
556
565
  "type": "string",
557
566
  "nullable": true,
558
- "description": "Primary phone contact (or first non-primary if no primary set)."
567
+ "description": "Primary phone contact (or first non-primary if no primary set). For an Airbnb stay this may be an Airbnb relay number \u2014 check `phoneType`."
568
+ },
569
+ "phoneType": {
570
+ "allOf": [
571
+ {
572
+ "$ref": "#/components/schemas/GuestPhoneType"
573
+ }
574
+ ],
575
+ "description": "Present whenever `phone` is. `airbnb_relay` when `phone` is a temporary Airbnb relay number (SMS only, expires 48h after checkout, shared across hosts, never a guest identifier); `guest` otherwise."
576
+ },
577
+ "phoneExpiresAt": {
578
+ "type": "string",
579
+ "format": "date-time",
580
+ "nullable": true,
581
+ "description": "Only next to an Airbnb relay number: when it stops working (checkout + 48 hours). `null` when Airbnb did not give the checkout time with its offset. A cancelled reservation's relay number stops working at cancellation, whatever this says.",
582
+ "example": "2026-11-22T16:00:00.000Z"
559
583
  },
560
584
  "language": {
561
585
  "type": "string",
@@ -883,6 +907,11 @@
883
907
  },
884
908
  "description": "Door codes for the stay from the PMS's lock manager (today: Guesty Locks Manager), refreshed about every 30 minutes for stays checking in within 14 days that have not checked out. `null` when the reservation's codes are not read from a PMS. `[]` when they are and there is none yet, and for a cancelled stay."
885
909
  },
910
+ "suggestedDoorCode": {
911
+ "type": "string",
912
+ "description": "Airbnb reservations only, when Airbnb sends it: the door code Airbnb suggests \u2014 the last 4 digits of the booker's verified phone number, or random digits when there is none. Use it instead of deriving a code from the guest's phone, which Airbnb no longer shares. Omitted on every other reservation.",
913
+ "example": "5446"
914
+ },
886
915
  "primaryGuest": {
887
916
  "allOf": [
888
917
  {
@@ -993,7 +1022,16 @@
993
1022
  "phone": {
994
1023
  "type": "string",
995
1024
  "nullable": true,
996
- "description": "Primary phone contact (or first non-primary if no primary set)."
1025
+ "description": "Primary phone contact (or first non-primary if no primary set). May be an Airbnb relay number \u2014 check `phoneType`."
1026
+ },
1027
+ "phoneType": {
1028
+ "allOf": [
1029
+ {
1030
+ "$ref": "#/components/schemas/GuestPhoneType"
1031
+ }
1032
+ ],
1033
+ "nullable": true,
1034
+ "description": "`airbnb_relay` when `phone` is a temporary Airbnb relay number (SMS only, expires 48h after checkout, shared across hosts, never a guest identifier); `guest` otherwise; `null` when there is no phone."
997
1035
  },
998
1036
  "email": {
999
1037
  "type": "string",
@@ -1049,6 +1087,14 @@
1049
1087
  "type": "string",
1050
1088
  "format": "date-time",
1051
1089
  "nullable": true
1090
+ },
1091
+ "phoneType": {
1092
+ "allOf": [
1093
+ {
1094
+ "$ref": "#/components/schemas/GuestPhoneType"
1095
+ }
1096
+ ],
1097
+ "description": "Phone contacts only: `airbnb_relay` when this is a temporary Airbnb relay number (SMS only, expires 48h after checkout, shared across hosts, never a guest identifier); `guest` otherwise."
1052
1098
  }
1053
1099
  }
1054
1100
  },
@@ -1146,7 +1192,17 @@
1146
1192
  },
1147
1193
  "phone": {
1148
1194
  "type": "string",
1149
- "nullable": true
1195
+ "nullable": true,
1196
+ "description": "Primary phone contact. May be an Airbnb relay number \u2014 check `phoneType`."
1197
+ },
1198
+ "phoneType": {
1199
+ "allOf": [
1200
+ {
1201
+ "$ref": "#/components/schemas/GuestPhoneType"
1202
+ }
1203
+ ],
1204
+ "nullable": true,
1205
+ "description": "`airbnb_relay` when `phone` is a temporary Airbnb relay number; `guest` otherwise; `null` when there is no phone."
1150
1206
  },
1151
1207
  "email": {
1152
1208
  "type": "string",
@@ -1502,12 +1558,12 @@
1502
1558
  },
1503
1559
  "status": {
1504
1560
  "type": "string",
1505
- "description": "Delivery state. Inbound messages are `received`. An outbound message is `sending` while it is queued to the channel, `sent` once the channel accepted it, or `failed`. Only `sent` (or `received`) means the guest can see it."
1561
+ "description": "Delivery state. Inbound messages are `received`. An outbound message is `sending` while it is handed to the channel, `queued` when the channel was busy and Repull is still delivering it in the background (Vrbo), `sent` once the channel accepted it, or `failed`. Only `sent` (or `received`) means the guest can see it. A change from `queued` is sent as `conversation.message.status_changed`."
1506
1562
  },
1507
1563
  "statusReason": {
1508
1564
  "type": "string",
1509
1565
  "nullable": true,
1510
- "description": "Why a message is still `sending` or `failed`, in plain words. `null` otherwise."
1566
+ "description": "Why a message is still `sending` or `queued`, or why it `failed`, in plain words. `null` otherwise."
1511
1567
  },
1512
1568
  "senderType": {
1513
1569
  "type": "string",
@@ -2580,7 +2636,16 @@
2580
2636
  "type": "string",
2581
2637
  "format": "date-time",
2582
2638
  "nullable": true,
2583
- "description": "Vrbo only. When Vrbo's first notification reached `notificationEmail`, i.e. the host added it with notifications on. `null` until then."
2639
+ "deprecated": true,
2640
+ "description": "Deprecated: use `notifications`. Vrbo only. When Vrbo's FIRST notification reached `notificationEmail`; it stays set even if notifications later stop. `null` until then."
2641
+ },
2642
+ "notifications": {
2643
+ "allOf": [
2644
+ {
2645
+ "$ref": "#/components/schemas/VrboNotifications"
2646
+ }
2647
+ ],
2648
+ "description": "Vrbo only. Whether Vrbo's notification emails reach Repull now (`state`), when the last one did, and the address to add. When `state` is `missing`, ask the host to add `address` on Vrbo; `account.notifications_missing` is sent when that happens."
2584
2649
  },
2585
2650
  "calendar": {
2586
2651
  "nullable": true,
@@ -3027,6 +3092,7 @@
3027
3092
  "reservation.updated",
3028
3093
  "reservation.cancelled",
3029
3094
  "reservation.message.received",
3095
+ "conversation.message.status_changed",
3030
3096
  "reservation.message.sent",
3031
3097
  "reservation.message.updated",
3032
3098
  "reservation.message.read",
@@ -3046,6 +3112,7 @@
3046
3112
  "listing.deleted",
3047
3113
  "listing.suspended",
3048
3114
  "listing.reactivated",
3115
+ "listing.ical_feed_changed",
3049
3116
  "account.created",
3050
3117
  "connect.session.completed",
3051
3118
  "connect.session.abandoned",
@@ -3055,6 +3122,7 @@
3055
3122
  "account.import.failed",
3056
3123
  "account.units.added",
3057
3124
  "account.calendar_access_changed",
3125
+ "account.notifications_missing",
3058
3126
  "review.created",
3059
3127
  "review.responded",
3060
3128
  "ai.operation.completed",
@@ -5991,6 +6059,112 @@
5991
6059
  }
5992
6060
  }
5993
6061
  },
6062
+ "ListingIcalFeedChangedPayload": {
6063
+ "type": "object",
6064
+ "description": "Payload for `listing.ical_feed_changed`: Repull changed a Vrbo unit's imported calendars, or could not. Repull imports the listing's Repull iCal backup feed into every calendar-synced Vrbo unit, and removes other tools' imported feeds while Repull is the unit's master calendar.",
6065
+ "required": [
6066
+ "object",
6067
+ "provider",
6068
+ "action",
6069
+ "feed",
6070
+ "repullFeedUrl",
6071
+ "trigger",
6072
+ "occurredAt"
6073
+ ],
6074
+ "properties": {
6075
+ "object": {
6076
+ "$ref": "#/components/schemas/ListingWebhookObject"
6077
+ },
6078
+ "provider": {
6079
+ "type": "string"
6080
+ },
6081
+ "action": {
6082
+ "type": "string",
6083
+ "description": "`repull_feed_added`: the Repull feed is now imported (`reason: \"repull_feed_missing\"` when it had been removed on Vrbo and was put back). `repull_feed_add_failed`: Vrbo did not take it \u2014 ask the host to add `repullFeedUrl` in Vrbo \u2192 Calendar \u2192 Import calendar, named \"Repull\"; nothing else is changed on the unit until it is there. `other_feed_removed`: another tool's imported calendar (`feed`) was removed. `other_feed_remove_failed`: removing it failed \u2014 ask the host to remove it in Vrbo \u2192 Calendar \u2192 Import calendar. Repull also emails the workspace owner when an action failed."
6084
+ },
6085
+ "feed": {
6086
+ "type": "object",
6087
+ "description": "The imported calendar acted on, as Vrbo shows it.",
6088
+ "properties": {
6089
+ "name": {
6090
+ "type": "string",
6091
+ "nullable": true,
6092
+ "example": "Other PMS 12B"
6093
+ },
6094
+ "url": {
6095
+ "type": "string",
6096
+ "nullable": true,
6097
+ "example": "https://pms.example.com/ical/12b.ics"
6098
+ }
6099
+ }
6100
+ },
6101
+ "repullFeedUrl": {
6102
+ "type": "string",
6103
+ "format": "uri",
6104
+ "description": "The listing's Repull iCal backup feed (`GET /v1/listings/{id}/ical`)."
6105
+ },
6106
+ "reason": {
6107
+ "type": "string",
6108
+ "nullable": true,
6109
+ "description": "Why Repull acted."
6110
+ },
6111
+ "trigger": {
6112
+ "type": "string",
6113
+ "description": "`calendar_sync_enabled`: calendar sync was just switched on for the unit. `drift_check`: the daily Vrbo calendar check."
6114
+ },
6115
+ "error": {
6116
+ "type": "string",
6117
+ "nullable": true,
6118
+ "description": "Vrbo's answer, on a failed action."
6119
+ },
6120
+ "occurredAt": {
6121
+ "type": "string",
6122
+ "format": "date-time"
6123
+ },
6124
+ "docsUrl": {
6125
+ "type": "string",
6126
+ "format": "uri",
6127
+ "example": "https://repull.dev/docs/channels/vrbo/ical-backup"
6128
+ }
6129
+ }
6130
+ },
6131
+ "ListingIcalFeedChangedEvent": {
6132
+ "type": "object",
6133
+ "required": [
6134
+ "event",
6135
+ "eventId",
6136
+ "apiVersion",
6137
+ "timestamp",
6138
+ "data"
6139
+ ],
6140
+ "properties": {
6141
+ "event": {
6142
+ "type": "string",
6143
+ "description": "The event name. This field is `event`, not `type`."
6144
+ },
6145
+ "eventId": {
6146
+ "type": "string",
6147
+ "format": "uuid",
6148
+ "description": "Stable across every delivery and replay of this logical event \u2014 dedupe on it."
6149
+ },
6150
+ "apiVersion": {
6151
+ "type": "string",
6152
+ "example": "2026-04"
6153
+ },
6154
+ "timestamp": {
6155
+ "type": "string",
6156
+ "format": "date-time",
6157
+ "description": "When this delivery was built."
6158
+ },
6159
+ "account": {
6160
+ "$ref": "#/components/schemas/WebhookEventAccount"
6161
+ },
6162
+ "data": {
6163
+ "$ref": "#/components/schemas/ListingIcalFeedChangedPayload"
6164
+ }
6165
+ },
6166
+ "description": "Repull added its iCal backup feed to a Vrbo unit, removed another tool's imported feed, or could not. On a `*_failed` action, show the host what to change on Vrbo."
6167
+ },
5994
6168
  "ListingSuspendedEvent": {
5995
6169
  "type": "object",
5996
6170
  "required": [
@@ -6507,6 +6681,180 @@
6507
6681
  },
6508
6682
  "description": "Another tool (such as a PMS) started or stopped managing a Vrbo account's calendar. Started: calendar sync is now off for every unit of the account. Stopped: nothing is switched back on; turn it on with `POST /v1/connections/{id}/mappings` (`calendarSync: true`)."
6509
6683
  },
6684
+ "VrboNotifications": {
6685
+ "type": "object",
6686
+ "description": "Whether Vrbo's notification emails for this account reach Repull. Each one brings a new guest message or booking in within about a minute; without them Repull relies on its scheduled check, which is slower.",
6687
+ "required": [
6688
+ "state",
6689
+ "lastReceivedAt",
6690
+ "address"
6691
+ ],
6692
+ "properties": {
6693
+ "state": {
6694
+ "type": "string",
6695
+ "description": "`active`: notifications arrive for this account's guest messages. `missing`: Repull found new guest messages and no notification came for them \u2014 ask the host to add `address` on Vrbo (or turn its notifications back on). `unknown`: no guest messages yet to judge by."
6696
+ },
6697
+ "lastReceivedAt": {
6698
+ "type": "string",
6699
+ "format": "date-time",
6700
+ "nullable": true,
6701
+ "description": "When the last Vrbo notification reached `address`. `null` when none ever has."
6702
+ },
6703
+ "address": {
6704
+ "type": "string",
6705
+ "nullable": true,
6706
+ "example": "in+vrbo-1234-321@repull.dev",
6707
+ "description": "The address the host adds on Vrbo as a secondary email, with message and reservation notifications on."
6708
+ }
6709
+ }
6710
+ },
6711
+ "ConversationMessageStatusChangedPayload": {
6712
+ "type": "object",
6713
+ "required": [
6714
+ "conversationId",
6715
+ "messageId",
6716
+ "status",
6717
+ "statusReason"
6718
+ ],
6719
+ "description": "Payload for `conversation.message.status_changed`: a message you sent changed delivery status after the send call returned \u2014 a Vrbo reply accepted as `queued` (`202`) was delivered (`sent`) or gave up (`failed`).",
6720
+ "properties": {
6721
+ "conversationId": {
6722
+ "type": "string",
6723
+ "example": "549555",
6724
+ "description": "The conversation (`GET /v1/conversations/{id}`)."
6725
+ },
6726
+ "messageId": {
6727
+ "type": "string",
6728
+ "example": "1861207",
6729
+ "description": "The message, as `id` on the send response and on `GET /v1/conversations/{id}/messages`."
6730
+ },
6731
+ "status": {
6732
+ "type": "string",
6733
+ "description": "The new delivery status."
6734
+ },
6735
+ "statusReason": {
6736
+ "type": "string",
6737
+ "nullable": true,
6738
+ "description": "Why it `failed`, in plain words. `null` when `sent`."
6739
+ }
6740
+ }
6741
+ },
6742
+ "ConversationMessageStatusChangedEvent": {
6743
+ "type": "object",
6744
+ "required": [
6745
+ "event",
6746
+ "eventId",
6747
+ "apiVersion",
6748
+ "timestamp",
6749
+ "data"
6750
+ ],
6751
+ "properties": {
6752
+ "event": {
6753
+ "type": "string",
6754
+ "description": "The event name. This field is `event`, not `type`."
6755
+ },
6756
+ "eventId": {
6757
+ "type": "string",
6758
+ "format": "uuid",
6759
+ "description": "Stable across every delivery and replay of this logical event \u2014 dedupe on it."
6760
+ },
6761
+ "apiVersion": {
6762
+ "type": "string",
6763
+ "example": "2026-04"
6764
+ },
6765
+ "timestamp": {
6766
+ "type": "string",
6767
+ "format": "date-time",
6768
+ "description": "When this delivery was built."
6769
+ },
6770
+ "account": {
6771
+ "$ref": "#/components/schemas/WebhookEventAccount"
6772
+ },
6773
+ "data": {
6774
+ "$ref": "#/components/schemas/ConversationMessageStatusChangedPayload"
6775
+ }
6776
+ },
6777
+ "description": "A message you sent was delivered or gave up after the send call returned. Update the message you show from `status` and `statusReason`."
6778
+ },
6779
+ "AccountNotificationsMissingPayload": {
6780
+ "type": "object",
6781
+ "required": [
6782
+ "workspaceId",
6783
+ "provider",
6784
+ "accountId",
6785
+ "connectionId",
6786
+ "notifications",
6787
+ "detectedAt"
6788
+ ],
6789
+ "description": "Payload for `account.notifications_missing`: a Vrbo account had new guest messages and no notification email arrived for them.",
6790
+ "properties": {
6791
+ "workspaceId": {
6792
+ "type": "integer"
6793
+ },
6794
+ "provider": {
6795
+ "type": "string"
6796
+ },
6797
+ "accountId": {
6798
+ "type": "string",
6799
+ "nullable": true,
6800
+ "description": "Vrbo's account number (`accounts[].externalAccountId` on `GET /v1/connect/vrbo-login`)."
6801
+ },
6802
+ "connectionId": {
6803
+ "type": "integer",
6804
+ "nullable": true,
6805
+ "description": "The workspace's Vrbo connection record."
6806
+ },
6807
+ "notifications": {
6808
+ "$ref": "#/components/schemas/VrboNotifications"
6809
+ },
6810
+ "detectedAt": {
6811
+ "type": "string",
6812
+ "format": "date-time"
6813
+ },
6814
+ "docsUrl": {
6815
+ "type": "string",
6816
+ "format": "uri",
6817
+ "example": "https://repull.dev/docs/channels/vrbo/notifications"
6818
+ }
6819
+ }
6820
+ },
6821
+ "AccountNotificationsMissingEvent": {
6822
+ "type": "object",
6823
+ "required": [
6824
+ "event",
6825
+ "eventId",
6826
+ "apiVersion",
6827
+ "timestamp",
6828
+ "data"
6829
+ ],
6830
+ "properties": {
6831
+ "event": {
6832
+ "type": "string",
6833
+ "description": "The event name. This field is `event`, not `type`."
6834
+ },
6835
+ "eventId": {
6836
+ "type": "string",
6837
+ "format": "uuid",
6838
+ "description": "Stable across every delivery and replay of this logical event \u2014 dedupe on it."
6839
+ },
6840
+ "apiVersion": {
6841
+ "type": "string",
6842
+ "example": "2026-04"
6843
+ },
6844
+ "timestamp": {
6845
+ "type": "string",
6846
+ "format": "date-time",
6847
+ "description": "When this delivery was built."
6848
+ },
6849
+ "account": {
6850
+ "$ref": "#/components/schemas/WebhookEventAccount"
6851
+ },
6852
+ "data": {
6853
+ "$ref": "#/components/schemas/AccountNotificationsMissingPayload"
6854
+ }
6855
+ },
6856
+ "description": "A Vrbo account's notification emails are not arriving. Ask the host to add `data.notifications.address` on Vrbo as a secondary email with message and reservation notifications on."
6857
+ },
6510
6858
  "AccountUnitsAddedEvent": {
6511
6859
  "type": "object",
6512
6860
  "required": [
@@ -7239,6 +7587,9 @@
7239
7587
  {
7240
7588
  "$ref": "#/components/schemas/ReservationMessageReceivedEvent"
7241
7589
  },
7590
+ {
7591
+ "$ref": "#/components/schemas/ConversationMessageStatusChangedEvent"
7592
+ },
7242
7593
  {
7243
7594
  "$ref": "#/components/schemas/ReservationMessageSentEvent"
7244
7595
  },
@@ -7296,6 +7647,9 @@
7296
7647
  {
7297
7648
  "$ref": "#/components/schemas/ListingReactivatedEvent"
7298
7649
  },
7650
+ {
7651
+ "$ref": "#/components/schemas/ListingIcalFeedChangedEvent"
7652
+ },
7299
7653
  {
7300
7654
  "$ref": "#/components/schemas/AccountCreatedEvent"
7301
7655
  },
@@ -7323,6 +7677,9 @@
7323
7677
  {
7324
7678
  "$ref": "#/components/schemas/AccountCalendarAccessChangedEvent"
7325
7679
  },
7680
+ {
7681
+ "$ref": "#/components/schemas/AccountNotificationsMissingEvent"
7682
+ },
7326
7683
  {
7327
7684
  "$ref": "#/components/schemas/ReviewCreatedEvent"
7328
7685
  },
@@ -7364,6 +7721,7 @@
7364
7721
  "reservation.updated": "#/components/schemas/ReservationUpdatedEvent",
7365
7722
  "reservation.cancelled": "#/components/schemas/ReservationCancelledEvent",
7366
7723
  "reservation.message.received": "#/components/schemas/ReservationMessageReceivedEvent",
7724
+ "conversation.message.status_changed": "#/components/schemas/ConversationMessageStatusChangedEvent",
7367
7725
  "reservation.message.sent": "#/components/schemas/ReservationMessageSentEvent",
7368
7726
  "reservation.message.updated": "#/components/schemas/ReservationMessageUpdatedEvent",
7369
7727
  "reservation.message.read": "#/components/schemas/ReservationMessageReadEvent",
@@ -7383,6 +7741,7 @@
7383
7741
  "listing.deleted": "#/components/schemas/ListingDeletedEvent",
7384
7742
  "listing.suspended": "#/components/schemas/ListingSuspendedEvent",
7385
7743
  "listing.reactivated": "#/components/schemas/ListingReactivatedEvent",
7744
+ "listing.ical_feed_changed": "#/components/schemas/ListingIcalFeedChangedEvent",
7386
7745
  "account.created": "#/components/schemas/AccountCreatedEvent",
7387
7746
  "connect.session.completed": "#/components/schemas/ConnectSessionCompletedEvent",
7388
7747
  "connect.session.abandoned": "#/components/schemas/ConnectSessionAbandonedEvent",
@@ -7392,6 +7751,7 @@
7392
7751
  "account.import.failed": "#/components/schemas/AccountImportFailedEvent",
7393
7752
  "account.units.added": "#/components/schemas/AccountUnitsAddedEvent",
7394
7753
  "account.calendar_access_changed": "#/components/schemas/AccountCalendarAccessChangedEvent",
7754
+ "account.notifications_missing": "#/components/schemas/AccountNotificationsMissingEvent",
7395
7755
  "review.created": "#/components/schemas/ReviewCreatedEvent",
7396
7756
  "review.responded": "#/components/schemas/ReviewRespondedEvent",
7397
7757
  "ai.operation.completed": "#/components/schemas/AiOperationCompletedEvent",
@@ -16140,7 +16500,8 @@
16140
16500
  },
16141
16501
  "status": {
16142
16502
  "type": "string",
16143
- "example": "sent"
16503
+ "example": "sent",
16504
+ "description": "`sent`: delivered. `queued` (with HTTP `202`): recorded, and still being delivered in the background because the channel was busy (Vrbo) \u2014 do not resend; the outcome arrives as the message's `status` on `GET /v1/conversations/{id}/messages` and as `conversation.message.status_changed`."
16144
16505
  },
16145
16506
  "direction": {
16146
16507
  "type": "string"
@@ -20333,7 +20694,7 @@
20333
20694
  "post": {
20334
20695
  "operationId": "send_conversation_message",
20335
20696
  "summary": "Send a message to the guest",
20336
- "description": "Sends a message to the guest on this conversation and records it in the thread.\n\nOmit `channel` and the message goes out on whichever channel the conversation already uses (Airbnb, Booking.com, VRBO, SMS, email or the direct-booking site) \u2014 that is the right default. Pass `channel` only to force a specific one.\n\nThe message is attributed to the API: it is recorded with `aiGenerated` false so an API send is never counted as an automated reply.\n\n### Airbnb rewrites links \u2014 check `contentRewritten`\n\nAirbnb rejects guest messages containing a link, an email address or a phone number, and names the offending text. When that happens the offending fragment is stripped and the remainder is re-sent once, which means **the guest receives a message that is not the one you wrote**. Reporting that as a plain success would be a lie, so every response carries `contentRewritten`; when it is `true`, `deliveredContent` is the text that actually reached the guest. Check it before assuming your message went out verbatim.\n\nWhen the text cannot be salvaged (the link is most of the message) nothing is delivered and the call returns `422 message_not_sent` with the channel's verbatim refusal in `statusReason`. `message_not_sent` only ever means the channel refused: a fault on Repull's side (a dropped database connection, a timeout) is `503 internal_error` with `sent: false` when nothing was delivered \u2014 retry it unchanged with the same `Idempotency-Key`.\n\nSend `Idempotency-Key` \u2014 without it, retrying after a network timeout sends the guest the same message twice.\n\n### Attachments\n\nSend files with `attachments: [{ url, contentType?, filename? }]` \u2014 public `https://` URLs, up to 5 per request, 10 MB each. `message` may be omitted when there are attachments (except on Booking.com). Repull downloads each file, reads its real type from the bytes, keeps a durable copy and delivers it through the channel's own file flow. **Every file is checked before anything is sent**: if one is unreachable, too large or of a type the channel refuses, the call returns 422 naming the file (`index`) and the guest receives nothing.\n\n| Channel | Accepted types | Text | How it arrives |\n|---|---|---|---|\n| Airbnb | JPEG, PNG, GIF, WebP (converted to JPEG), MP4, QuickTime | optional | each file as its own message, then the text as a separate message |\n| Booking.com | JPEG, PNG | **required** | one message carrying the text and every file |\n| VRBO, SMS, email, direct-booking site chat | \u2014 | \u2014 | `422 attachments_not_supported`, nothing sent |\n\nAirbnb does not allow files in pre-booking (inquiry) conversations; that refusal comes back as `422 message_not_sent`. Because Airbnb delivers files one message at a time, a later file can be refused after earlier ones arrived \u2014 that returns `422 message_partially_sent` with `parts` saying exactly which messages reached the guest; resend only the rest.\n\nThe response's `attachments` lists each file's durable `url`, and `parts` lists every channel message the send produced. Read-back (`GET /v1/conversations/{id}/messages`) shows the same files in each message's `attachments`.\n\n**Inactive listings:** a conversation that belongs to an inactive listing returns `403 listing_inactive` and no message is sent. Activate the listing first.",
20697
+ "description": "Sends a message to the guest on this conversation and records it in the thread.\n\nOmit `channel` and the message goes out on whichever channel the conversation already uses (Airbnb, Booking.com, VRBO, SMS, email or the direct-booking site) \u2014 that is the right default. Pass `channel` only to force a specific one.\n\nThe message is attributed to the API: it is recorded with `aiGenerated` false so an API send is never counted as an automated reply.\n\n### Airbnb rewrites links \u2014 check `contentRewritten`\n\nAirbnb rejects guest messages containing a link, an email address or a phone number, and names the offending text. When that happens the offending fragment is stripped and the remainder is re-sent once, which means **the guest receives a message that is not the one you wrote**. Reporting that as a plain success would be a lie, so every response carries `contentRewritten`; when it is `true`, `deliveredContent` is the text that actually reached the guest. Check it before assuming your message went out verbatim.\n\nWhen the text cannot be salvaged (the link is most of the message) nothing is delivered and the call returns `422 message_not_sent` with the channel's verbatim refusal in `statusReason`. `message_not_sent` only ever means the channel refused: a fault on Repull's side (a dropped database connection, a timeout) is `503 internal_error` with `sent: false` when nothing was delivered \u2014 retry it unchanged with the same `Idempotency-Key`.\n\nSend `Idempotency-Key` \u2014 without it, retrying after a network timeout sends the guest the same message twice.\n\n### Vrbo: `202` while Vrbo is busy\n\nA Vrbo reply is delivered in the call when Vrbo takes it (about 20 seconds at most) and returns `200` with `status: \"sent\"`. When Vrbo is busy, the reply is recorded and delivered in the background: the call returns **`202` with `status: \"queued\"`** and the message `id`. Do not send it again \u2014 a retry with the same `Idempotency-Key` returns the same `202`. The outcome arrives as the message's `status` on `GET /v1/conversations/{id}/messages` (`sent`, or `failed` with `statusReason`) and as the `conversation.message.status_changed` webhook.\n\n### Attachments\n\nSend files with `attachments: [{ url, contentType?, filename? }]` \u2014 public `https://` URLs, up to 5 per request, 10 MB each. `message` may be omitted when there are attachments (except on Booking.com). Repull downloads each file, reads its real type from the bytes, keeps a durable copy and delivers it through the channel's own file flow. **Every file is checked before anything is sent**: if one is unreachable, too large or of a type the channel refuses, the call returns 422 naming the file (`index`) and the guest receives nothing.\n\n| Channel | Accepted types | Text | How it arrives |\n|---|---|---|---|\n| Airbnb | JPEG, PNG, GIF, WebP (converted to JPEG), MP4, QuickTime | optional | each file as its own message, then the text as a separate message |\n| Booking.com | JPEG, PNG | **required** | one message carrying the text and every file |\n| VRBO, SMS, email, direct-booking site chat | \u2014 | \u2014 | `422 attachments_not_supported`, nothing sent |\n\nAirbnb does not allow files in pre-booking (inquiry) conversations; that refusal comes back as `422 message_not_sent`. Because Airbnb delivers files one message at a time, a later file can be refused after earlier ones arrived \u2014 that returns `422 message_partially_sent` with `parts` saying exactly which messages reached the guest; resend only the rest.\n\nThe response's `attachments` lists each file's durable `url`, and `parts` lists every channel message the send produced. Read-back (`GET /v1/conversations/{id}/messages`) shows the same files in each message's `attachments`.\n\n**Inactive listings:** a conversation that belongs to an inactive listing returns `403 listing_inactive` and no message is sent. Activate the listing first.",
20337
20698
  "tags": [
20338
20699
  "Conversations"
20339
20700
  ],
@@ -20450,6 +20811,34 @@
20450
20811
  }
20451
20812
  }
20452
20813
  },
20814
+ "202": {
20815
+ "description": "Accepted, not yet delivered (Vrbo, while Vrbo is busy): the message is recorded with `status: \"queued\"` and delivered in the background. Do not resend \u2014 the same `Idempotency-Key` replays this `202`. Follow the outcome on `GET /v1/conversations/{id}/messages` (`status` becomes `sent`, or `failed` with `statusReason`) or the `conversation.message.status_changed` webhook.",
20816
+ "content": {
20817
+ "application/json": {
20818
+ "schema": {
20819
+ "$ref": "#/components/schemas/SendMessageResponse"
20820
+ },
20821
+ "examples": {
20822
+ "vrboQueued": {
20823
+ "summary": "Vrbo was busy: recorded and delivered in the background",
20824
+ "value": {
20825
+ "id": "1861207",
20826
+ "conversationId": "549555",
20827
+ "externalMessageId": null,
20828
+ "channel": "vrbo",
20829
+ "status": "queued",
20830
+ "direction": "outbound",
20831
+ "contentRewritten": false,
20832
+ "submittedContent": "Hi Ximena, the gate code is 4821.",
20833
+ "deliveredContent": null,
20834
+ "statusReason": "Vrbo is busy right now; the reply will be delivered in the background.",
20835
+ "attachments": []
20836
+ }
20837
+ }
20838
+ }
20839
+ }
20840
+ }
20841
+ },
20453
20842
  "401": {
20454
20843
  "$ref": "#/components/responses/Unauthorized"
20455
20844
  },
@@ -20682,7 +21071,7 @@
20682
21071
  }
20683
21072
  },
20684
21073
  "503": {
20685
- "description": "A temporary fault on Repull's side \u2014 never a verdict on the message. `internal_error`: the send failed inside Repull (a dropped database connection, a timeout) before the channel refused anything. `sent` says whether the message reached the channel: with `messageId: null` and `sent: false` nothing was delivered or recorded, and retrying the same request with the same `Idempotency-Key` after `retry_after` seconds sends it once. With a `messageId`, check that message in `GET /v1/conversations/{id}/messages` before resending. `attachment_storage_failed`: a file could not be stored for delivery; nothing was sent, retry the same way. A 503 is never stored against the `Idempotency-Key`, so the retry runs for real. Do not edit the text: it was not refused.",
21074
+ "description": "A temporary fault on Repull's side \u2014 never a verdict on the message. `internal_error`: the send failed inside Repull (a dropped database connection, a timeout) before the channel refused anything. With `sent: null` Repull did not get the result in time and the message may still be delivered: check `GET /v1/conversations/{id}/messages` before resending. `sent` says whether the message reached the channel: with `messageId: null` and `sent: false` nothing was delivered or recorded, and retrying the same request with the same `Idempotency-Key` after `retry_after` seconds sends it once. With a `messageId`, check that message in `GET /v1/conversations/{id}/messages` before resending. `attachment_storage_failed`: a file could not be stored for delivery; nothing was sent, retry the same way. A 503 is never stored against the `Idempotency-Key`, so the retry runs for real. Do not edit the text: it was not refused.",
20686
21075
  "content": {
20687
21076
  "application/json": {
20688
21077
  "schema": {
@@ -31170,6 +31559,11 @@
31170
31559
  "type": "string",
31171
31560
  "nullable": true
31172
31561
  },
31562
+ "dashboardSurface": {
31563
+ "type": "string",
31564
+ "nullable": true,
31565
+ "description": "The repull.dev dashboard page this call was run from (`keys`, `playground`, `quickstart`, `connect`, `settings/connect`), or null for a call your own code made. Dashboard calls don't count toward your plan's request quota."
31566
+ },
31173
31567
  "createdAt": {
31174
31568
  "type": "string",
31175
31569
  "format": "date-time"
@@ -32250,7 +32644,7 @@
32250
32644
  "get": {
32251
32645
  "operationId": "get_airbnb_booking_settings",
32252
32646
  "summary": "Get Airbnb booking settings",
32253
- "description": "Read how an Airbnb listing takes bookings and what happens when a guest cancels: booking mode, Instant Book state, the good-track-record requirement, check-in/check-out times, advance notice, preparation time, booking window, the short-stay and long-stay cancellation policies, and the non-refundable option.\n\n**This is Repull's stored copy, not a live call to Airbnb.** Values come from the local Airbnb mirror that the sync workers fill, so the response always carries `dataFreshness` \u2014 check `dataFreshness.stale` (and `dataFreshness.accounts[]` when the workspace has several Airbnb accounts) before treating a value as current.\n\n**Not exposed by Airbnb.** The pre-reservation message and automatic stay extension have no field on Airbnb's `booking_settings` resource, so neither can be read or written here; set the pre-reservation message in the Airbnb host dashboard, and handle extensions through `/v1/channels/airbnb/alterations`. Airbnb also expresses the same-day cutoff only as whole hours of advance notice, so `advanceNotice.hours` is as precise as the cutoff gets.\n\nReturns `404` when the listing has no Airbnb connection in this workspace, and `403 listing_inactive` when the listing is inactive \u2014 an inactive listing keeps syncing but cannot be read or changed through the API until it is activated.",
32647
+ "description": "Read how an Airbnb listing takes bookings and what happens when a guest cancels: booking mode, Instant Book state, the good-track-record requirement, check-in/check-out times, advance notice, preparation time, booking window, the short-stay and long-stay cancellation policies, and the non-refundable option.\n\n**This is Repull's stored copy, not a live call to Airbnb.** Values come from the local Airbnb mirror that the sync workers fill, so the response always carries `dataFreshness` \u2014 check `dataFreshness.stale` (and `dataFreshness.accounts[]` when the workspace has several Airbnb accounts) before treating a value as current.\n\n**Not exposed by Airbnb.** The pre-reservation message and automatic stay extension have no field on Airbnb's `booking_settings` resource, so neither can be read or written here; set the pre-reservation message in the Airbnb host dashboard, and handle extensions through `/v1/channels/airbnb/alterations`. The same-day cutoff is Airbnb's advance-notice hours counted back from 11:59 PM on the check-in day: read it as `advanceNotice.sameDayCutoff` (e.g. `23:00`) or `advanceNotice.hours` (e.g. `1`), and write either one.\n\nReturns `404` when the listing has no Airbnb connection in this workspace, and `403 listing_inactive` when the listing is inactive \u2014 an inactive listing keeps syncing but cannot be read or changed through the API until it is activated.",
32254
32648
  "tags": [
32255
32649
  "Airbnb"
32256
32650
  ],
@@ -32372,12 +32766,18 @@
32372
32766
  "hours": {
32373
32767
  "type": "integer",
32374
32768
  "nullable": true,
32375
- "description": "Whole hours of notice. `0` allows same-day bookings."
32769
+ "description": "Airbnb's advance notice: 0-24, 48, 72 or 168. Airbnb counts it back from 11:59 PM on the check-in day, in the listing's time zone, so 0-23 is a same-day cutoff: `0` = same-day bookings until midnight, `1` = until 11 PM, `3` = until 9 PM. `24` and above = no same-day bookings."
32376
32770
  },
32377
32771
  "sameDayBookingsAllowed": {
32378
32772
  "type": "boolean",
32379
32773
  "nullable": true,
32380
- "description": "Derived: `hours === 0`."
32774
+ "description": "Derived: `hours < 24`."
32775
+ },
32776
+ "sameDayCutoff": {
32777
+ "type": "string",
32778
+ "nullable": true,
32779
+ "example": "23:00",
32780
+ "description": "Derived: the last time a same-day booking is accepted, `HH:mm` in the listing's time (`00:00` = midnight). `null` when same-day bookings are off."
32381
32781
  },
32382
32782
  "allowRequestToBook": {
32383
32783
  "type": "boolean",
@@ -32631,13 +33031,49 @@
32631
33031
  "advanceNotice": {
32632
33032
  "type": "object",
32633
33033
  "additionalProperties": false,
32634
- "description": "Send `hours`, `allowRequestToBook`, or both. The half you omit keeps the value Airbnb currently holds.",
33034
+ "description": "Send `hours` (or `sameDayCutoff`), `allowRequestToBook`, or both. The half you omit keeps the value Airbnb currently holds. `hours` and `sameDayCutoff` are the same setting: send one.",
32635
33035
  "properties": {
32636
33036
  "hours": {
32637
33037
  "type": "integer",
32638
33038
  "nullable": true,
32639
- "minimum": 0,
32640
- "maximum": 168
33039
+ "enum": [
33040
+ 0,
33041
+ 1,
33042
+ 2,
33043
+ 3,
33044
+ 4,
33045
+ 5,
33046
+ 6,
33047
+ 7,
33048
+ 8,
33049
+ 9,
33050
+ 10,
33051
+ 11,
33052
+ 12,
33053
+ 13,
33054
+ 14,
33055
+ 15,
33056
+ 16,
33057
+ 17,
33058
+ 18,
33059
+ 19,
33060
+ 20,
33061
+ 21,
33062
+ 22,
33063
+ 23,
33064
+ 24,
33065
+ 48,
33066
+ 72,
33067
+ 168
33068
+ ],
33069
+ "description": "Counted back from 11:59 PM on the check-in day (listing time): `0` = same-day bookings until midnight, `1` = until 11 PM, `24` = no same-day bookings."
33070
+ },
33071
+ "sameDayCutoff": {
33072
+ "type": "string",
33073
+ "nullable": true,
33074
+ "pattern": "^([01][0-9]|2[0-3]):00$",
33075
+ "example": "23:00",
33076
+ "description": "The last time a same-day booking is accepted, whole hours in the listing's time (`23:00` = 11 PM, `00:00` = midnight). Converted to `hours` (`23:00` = 1)."
32641
33077
  },
32642
33078
  "allowRequestToBook": {
32643
33079
  "type": "boolean",
@@ -32805,12 +33241,18 @@
32805
33241
  "hours": {
32806
33242
  "type": "integer",
32807
33243
  "nullable": true,
32808
- "description": "Whole hours of notice. `0` allows same-day bookings."
33244
+ "description": "Airbnb's advance notice: 0-24, 48, 72 or 168. Airbnb counts it back from 11:59 PM on the check-in day, in the listing's time zone, so 0-23 is a same-day cutoff: `0` = same-day bookings until midnight, `1` = until 11 PM, `3` = until 9 PM. `24` and above = no same-day bookings."
32809
33245
  },
32810
33246
  "sameDayBookingsAllowed": {
32811
33247
  "type": "boolean",
32812
33248
  "nullable": true,
32813
- "description": "Derived: `hours === 0`."
33249
+ "description": "Derived: `hours < 24`."
33250
+ },
33251
+ "sameDayCutoff": {
33252
+ "type": "string",
33253
+ "nullable": true,
33254
+ "example": "23:00",
33255
+ "description": "Derived: the last time a same-day booking is accepted, `HH:mm` in the listing's time (`00:00` = midnight). `null` when same-day bookings are off."
32814
33256
  },
32815
33257
  "allowRequestToBook": {
32816
33258
  "type": "boolean",
@@ -39553,6 +39995,12 @@
39553
39995
  },
39554
39996
  "error": {
39555
39997
  "type": "string"
39998
+ },
39999
+ "ical_feed_url": {
40000
+ "type": "string",
40001
+ "format": "uri",
40002
+ "description": "Vrbo, for a mapped unit: the listing's Repull iCal backup feed (`GET /v1/listings/{id}/ical`). With calendar sync on, Repull imports it into the Vrbo unit by itself (Vrbo \u2192 Calendar \u2192 Import calendar, named \"Repull\") and removes other tools' imported feeds; `listing.ical_feed_changed` reports it. Only if that fails does the host add it by hand.",
40003
+ "example": "https://api.repull.dev/ical/4f9c2d7e1a8b3c6d5e0f9a2b7c4d1e8f3a6b9c2d5e8f1a4b7c0d3e6f9a2b5c8d.ics"
39556
40004
  }
39557
40005
  }
39558
40006
  }
@@ -39743,7 +40191,7 @@
39743
40191
  },
39744
40192
  "meta": {
39745
40193
  "type": "object",
39746
- "description": "Channel details that identify the unit. Booking.com Extranet: `hotel` (property name), `hotelId` (Booking.com property ID), `roomId` (Booking.com room ID), `city`. Vrbo: `headline`, `address`, `vrboStatus`, `calendarSync` (whether the unit's prices and availability are pushed to Vrbo) and, while Vrbo says another tool manages the account's calendar, `calendarSyncBlocked: \"calendar_managed_elsewhere\"`; the Vrbo listing ID is `unit_id`."
40194
+ "description": "Channel details that identify the unit. Booking.com Extranet: `hotel` (property name), `hotelId` (Booking.com property ID), `roomId` (Booking.com room ID), `city`. Vrbo: `headline`, `address`, `vrboStatus`, `calendarSync` (whether the unit's prices and availability are pushed to Vrbo) and, while Vrbo says another tool manages the account's calendar, `calendarSyncBlocked: \"calendar_managed_elsewhere\"`, and for a mapped unit `icalBackup`: `{ feedUrl, status, otherFeeds }` \u2014 the listing's Repull iCal backup feed and whether Vrbo imports it (`status` as on `GET /v1/listings/{id}/ical`: `imported`, `pending`, `failed`, `not_imported`, `off`; Repull adds it itself, so only on `failed` does the host add `feedUrl` in Vrbo \u2192 Calendar \u2192 Import calendar, named \"Repull\"); the Vrbo listing ID is `unit_id`."
39747
40195
  }
39748
40196
  }
39749
40197
  }
@@ -44111,6 +44559,146 @@
44111
44559
  }
44112
44560
  }
44113
44561
  }
44562
+ },
44563
+ "/v1/listings/{id}/ical": {
44564
+ "get": {
44565
+ "operationId": "get_listing_ical",
44566
+ "summary": "Repull iCal backup feed",
44567
+ "description": "The listing's Repull iCal backup feed: an iCal calendar named \"Repull\" with the listing's bookings and blocks as all-day events, at an unguessable address on `api.repull.dev` (created on first request, one per listing). Channels that import iCal close those nights from it on their own schedule \u2014 availability only, never prices.\n\n**Vrbo:** Repull imports this feed into every calendar-synced Vrbo unit by itself, as a backup for the direct calendar push, and removes other tools' imported feeds while Repull is the unit's master calendar. `vrbo` says, per unit, whether Vrbo imports it (as last checked, once a day). When `status` is `failed`, ask the host to add `url` in Vrbo \u2192 Calendar \u2192 Import calendar, named \"Repull\". Changes arrive as `listing.ical_feed_changed`.\n\nThe address is a credential: anyone with it can read the listing's booked dates (no guest details). Returns `403 listing_inactive` for an inactive listing.",
44568
+ "tags": [
44569
+ "Listings"
44570
+ ],
44571
+ "parameters": [
44572
+ {
44573
+ "name": "id",
44574
+ "in": "path",
44575
+ "required": true,
44576
+ "schema": {
44577
+ "type": "integer"
44578
+ },
44579
+ "description": "Repull listing id."
44580
+ }
44581
+ ],
44582
+ "responses": {
44583
+ "200": {
44584
+ "description": "The feed address and its Vrbo state.",
44585
+ "content": {
44586
+ "application/json": {
44587
+ "schema": {
44588
+ "type": "object",
44589
+ "required": [
44590
+ "listingId",
44591
+ "url",
44592
+ "calendarName",
44593
+ "enabled",
44594
+ "vrbo"
44595
+ ],
44596
+ "properties": {
44597
+ "listingId": {
44598
+ "type": "string",
44599
+ "example": "1001"
44600
+ },
44601
+ "url": {
44602
+ "type": "string",
44603
+ "format": "uri",
44604
+ "description": "The feed address. Import it on any channel that reads iCal.",
44605
+ "example": "https://api.repull.dev/ical/4f9c2d7e1a8b3c6d5e0f9a2b7c4d1e8f3a6b9c2d5e8f1a4b7c0d3e6f9a2b5c8d.ics"
44606
+ },
44607
+ "calendarName": {
44608
+ "type": "string",
44609
+ "enum": [
44610
+ "Repull"
44611
+ ],
44612
+ "description": "The calendar name the feed carries, and the name to give it when importing it by hand."
44613
+ },
44614
+ "enabled": {
44615
+ "type": "boolean",
44616
+ "description": "False when the listing's feed was turned off; the address then answers 404."
44617
+ },
44618
+ "vrbo": {
44619
+ "type": "array",
44620
+ "description": "One entry per Vrbo unit mapped to the listing.",
44621
+ "items": {
44622
+ "type": "object",
44623
+ "required": [
44624
+ "unitId",
44625
+ "calendarSync",
44626
+ "status",
44627
+ "otherFeeds",
44628
+ "checkedAt"
44629
+ ],
44630
+ "properties": {
44631
+ "unitId": {
44632
+ "type": "string",
44633
+ "description": "The Vrbo listing number (`unitId` on `GET /v1/connections/{id}/units`).",
44634
+ "example": "7001234"
44635
+ },
44636
+ "calendarSync": {
44637
+ "type": "boolean",
44638
+ "description": "Calendar sync is on for the unit."
44639
+ },
44640
+ "status": {
44641
+ "type": "string",
44642
+ "enum": [
44643
+ "imported",
44644
+ "pending",
44645
+ "failed",
44646
+ "not_imported",
44647
+ "off"
44648
+ ],
44649
+ "description": "`imported`: Vrbo imports the feed. `pending`: calendar sync is on and Repull has not checked the unit yet \u2014 it adds the feed itself. `failed`: Vrbo did not take it; ask the host to add `url` in Vrbo \u2192 Calendar \u2192 Import calendar, named \"Repull\". `not_imported`: checked, not there, and not added (for example, the feed is turned off). `off`: calendar sync is off, so Repull leaves the unit's imported calendars alone."
44650
+ },
44651
+ "otherFeeds": {
44652
+ "type": "array",
44653
+ "items": {
44654
+ "type": "string"
44655
+ },
44656
+ "description": "Names of other calendars the unit still imports, as Vrbo shows them.",
44657
+ "example": []
44658
+ },
44659
+ "checkedAt": {
44660
+ "type": "string",
44661
+ "format": "date-time",
44662
+ "nullable": true,
44663
+ "description": "When Repull last read the unit's imported calendars."
44664
+ }
44665
+ }
44666
+ }
44667
+ }
44668
+ }
44669
+ },
44670
+ "example": {
44671
+ "listingId": "1001",
44672
+ "url": "https://api.repull.dev/ical/4f9c2d7e1a8b3c6d5e0f9a2b7c4d1e8f3a6b9c2d5e8f1a4b7c0d3e6f9a2b5c8d.ics",
44673
+ "calendarName": "Repull",
44674
+ "enabled": true,
44675
+ "vrbo": [
44676
+ {
44677
+ "unitId": "7001234",
44678
+ "calendarSync": true,
44679
+ "status": "imported",
44680
+ "otherFeeds": [],
44681
+ "checkedAt": "2026-11-19T05:12:40.000Z"
44682
+ }
44683
+ ]
44684
+ }
44685
+ }
44686
+ }
44687
+ },
44688
+ "401": {
44689
+ "$ref": "#/components/responses/Unauthorized"
44690
+ },
44691
+ "403": {
44692
+ "$ref": "#/components/responses/ListingInactive"
44693
+ },
44694
+ "404": {
44695
+ "$ref": "#/components/responses/NotFound"
44696
+ },
44697
+ "422": {
44698
+ "$ref": "#/components/responses/UnprocessableEntity"
44699
+ }
44700
+ }
44701
+ }
44114
44702
  }
44115
44703
  }
44116
44704
  }