repull 0.2.58 → 0.2.60

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 (68) hide show
  1. checksums.yaml +4 -4
  2. data/lib/repull/api/airbnb_api.rb +11 -11
  3. data/lib/repull/api/connect_api.rb +5 -5
  4. data/lib/repull/api/connections_api.rb +4 -4
  5. data/lib/repull/api/reviews_api.rb +4 -4
  6. data/lib/repull/models/account_calendar_access_changed_event.rb +11 -1
  7. data/lib/repull/models/account_created_event.rb +11 -1
  8. data/lib/repull/models/account_disconnected_event.rb +11 -1
  9. data/lib/repull/models/account_import_completed_event.rb +11 -1
  10. data/lib/repull/models/account_import_failed_event.rb +11 -1
  11. data/lib/repull/models/account_import_started_event.rb +11 -1
  12. data/lib/repull/models/account_notifications_missing_event.rb +11 -1
  13. data/lib/repull/models/account_units_added_event.rb +11 -1
  14. data/lib/repull/models/ai_operation_completed_event.rb +11 -1
  15. data/lib/repull/models/ai_operation_failed_event.rb +11 -1
  16. data/lib/repull/models/airbnb_data_freshness.rb +1 -1
  17. data/lib/repull/models/airbnb_transaction.rb +1 -1
  18. data/lib/repull/models/airbnb_transaction_payout.rb +2 -2
  19. data/lib/repull/models/booking_unacknowledged_event.rb +11 -1
  20. data/lib/repull/models/channel_degraded_event.rb +11 -1
  21. data/lib/repull/models/channel_sync_failed_event.rb +11 -1
  22. data/lib/repull/models/connect_session_abandoned_event.rb +11 -1
  23. data/lib/repull/models/connect_session_completed_event.rb +11 -1
  24. data/lib/repull/models/connect_status.rb +12 -1
  25. data/lib/repull/models/connection.rb +16 -5
  26. data/lib/repull/models/conversation_message_status_changed_event.rb +11 -1
  27. data/lib/repull/models/create_price_labs_key201_response.rb +12 -1
  28. data/lib/repull/models/hospitable_webhook.rb +218 -0
  29. data/lib/repull/models/inquiry_created_event.rb +11 -1
  30. data/lib/repull/models/inquiry_updated_event.rb +11 -1
  31. data/lib/repull/models/listing_created_event.rb +11 -1
  32. data/lib/repull/models/listing_deleted_event.rb +11 -1
  33. data/lib/repull/models/listing_ical_feed_changed_event.rb +11 -1
  34. data/lib/repull/models/listing_reactivated_event.rb +11 -1
  35. data/lib/repull/models/listing_suspended_event.rb +11 -1
  36. data/lib/repull/models/listing_updated_event.rb +11 -1
  37. data/lib/repull/models/migration_completed_event.rb +1 -1
  38. data/lib/repull/models/migration_failed_event.rb +1 -1
  39. data/lib/repull/models/payment_completed_event.rb +11 -1
  40. data/lib/repull/models/payment_refunded_event.rb +11 -1
  41. data/lib/repull/models/payout_completed_event.rb +11 -1
  42. data/lib/repull/models/repull_ping_event.rb +11 -1
  43. data/lib/repull/models/reservation_alteration_created_event.rb +11 -1
  44. data/lib/repull/models/reservation_alteration_responded_event.rb +11 -1
  45. data/lib/repull/models/reservation_cancelled_event.rb +11 -1
  46. data/lib/repull/models/reservation_created_event.rb +11 -1
  47. data/lib/repull/models/reservation_message_reaction_event.rb +11 -1
  48. data/lib/repull/models/reservation_message_read_event.rb +11 -1
  49. data/lib/repull/models/reservation_message_received_event.rb +11 -1
  50. data/lib/repull/models/reservation_message_sent_event.rb +11 -1
  51. data/lib/repull/models/reservation_message_updated_event.rb +11 -1
  52. data/lib/repull/models/reservation_request_created_event.rb +11 -1
  53. data/lib/repull/models/reservation_request_updated_event.rb +11 -1
  54. data/lib/repull/models/reservation_thread_assigned_event.rb +11 -1
  55. data/lib/repull/models/reservation_updated_event.rb +11 -1
  56. data/lib/repull/models/review.rb +1 -1
  57. data/lib/repull/models/review_created_event.rb +11 -1
  58. data/lib/repull/models/review_responded_event.rb +11 -1
  59. data/lib/repull/models/start_connection_import202_response_data.rb +2 -2
  60. data/lib/repull/models/start_connection_import_request.rb +3 -3
  61. data/lib/repull/models/submit_hospitable_credentials200_response.rb +169 -0
  62. data/lib/repull/models/sync_airbnb_transactions200_response_accounts_inner.rb +1 -1
  63. data/lib/repull/models/sync_airbnb_transactions_request.rb +1 -1
  64. data/lib/repull/models/usage_quota_warning_event.rb +11 -1
  65. data/lib/repull/version.rb +1 -1
  66. data/lib/repull.rb +2 -0
  67. data/openapi/v1.json +314 -23
  68. metadata +4 -2
data/openapi/v1.json CHANGED
@@ -1719,7 +1719,7 @@
1719
1719
  "type": "string",
1720
1720
  "nullable": true,
1721
1721
  "example": "guesty",
1722
- "description": "The PMS this review was read from (`guesty`, `hostaway`, \u2026) when it came through one \u2014 `platform` is still the channel the guest wrote it on. A reply (`POST /v1/reviews/{id}/reply`) goes through this PMS; `GET /v1/connect/{provider}` \u2192 `capabilities.pms.reviews.reply` says whether it can. `null` for a review from a directly connected channel."
1722
+ "description": "The PMS this review was read from (`guesty`, `hostaway`, `hospitable`, \u2026) when it came through one \u2014 `platform` is still the channel the guest wrote it on, and `reservationId` / `reservationConfirmationCode` point at the stay. A review that also arrives from a directly connected channel is returned once, as the channel's copy (`pms: null`). A reply (`POST /v1/reviews/{id}/reply`) goes through this PMS; `GET /v1/connect/{provider}` \u2192 `capabilities.pms.reviews.reply` says whether it can. `null` for a review from a directly connected channel."
1723
1723
  },
1724
1724
  "listingId": {
1725
1725
  "type": "string",
@@ -1925,6 +1925,56 @@
1925
1925
  }
1926
1926
  ],
1927
1927
  "description": "Apps only: how the app is doing on this connection. `null` once disconnected."
1928
+ },
1929
+ "webhook": {
1930
+ "nullable": true,
1931
+ "allOf": [
1932
+ {
1933
+ "$ref": "#/components/schemas/HospitableWebhook"
1934
+ }
1935
+ ],
1936
+ "description": "Hospitable only: the webhook URL the host pastes into Hospitable (Apps \u2192 Webhooks \u2192 + Add new) and whether deliveries are arriving. Show it in your own UI so the host can set it up. Absent for other providers."
1937
+ }
1938
+ }
1939
+ },
1940
+ "HospitableWebhook": {
1941
+ "type": "object",
1942
+ "description": "Hospitable only. Hospitable has no API to subscribe webhooks, so the host adds one in Hospitable: **Apps \u2192 Webhooks \u2192 + Add new**, pastes `url`, ticks Reservations, Messages, Properties and Reviews, and saves (Hospitable's **Test** button sends a sample right away). Each connection has its own `url`; a reconnect keeps it. Every delivery is checked against Hospitable's signature before it is used.\n\n**Polling.** While `status` is `receiving` the connection is updated from the webhooks alone and is not polled. When it is `not_configured` or `stale` it is polled every minute, and the first poll after going stale re-reads the whole silent window, so nothing is lost. A quiet account (no bookings or messages for a day) can read `stale` while its webhook still works; the next delivery flips it back to `receiving`.",
1943
+ "required": [
1944
+ "url",
1945
+ "status",
1946
+ "lastReceivedAt"
1947
+ ],
1948
+ "properties": {
1949
+ "url": {
1950
+ "type": "string",
1951
+ "format": "uri",
1952
+ "description": "The webhook URL to paste into Hospitable. Unique to this connection.",
1953
+ "example": "https://api.repull.dev/webhooks/pms/hospitable?token=4f9c2a7e1b3d5f60a8c9e2b4d6f8a0c1"
1954
+ },
1955
+ "status": {
1956
+ "type": "string",
1957
+ "description": "`not_configured`: no delivery yet (the host has not added the URL). `receiving`: a delivery arrived in the last 24 hours. `stale`: deliveries arrived before, none in the last 24 hours.",
1958
+ "example": "receiving"
1959
+ },
1960
+ "lastReceivedAt": {
1961
+ "type": "string",
1962
+ "format": "date-time",
1963
+ "nullable": true,
1964
+ "description": "When the last verified delivery arrived; `null` before the first."
1965
+ },
1966
+ "events": {
1967
+ "type": "array",
1968
+ "items": {
1969
+ "type": "string"
1970
+ },
1971
+ "description": "The webhook types to tick in Hospitable.",
1972
+ "example": [
1973
+ "Reservations",
1974
+ "Messages",
1975
+ "Properties",
1976
+ "Reviews"
1977
+ ]
1928
1978
  }
1929
1979
  }
1930
1980
  },
@@ -2796,6 +2846,15 @@
2796
2846
  ],
2797
2847
  "description": "PMS connections only: what the app may change in the PMS. Change it with `PATCH /v1/connect/{provider}/write-policy`."
2798
2848
  },
2849
+ "webhook": {
2850
+ "nullable": true,
2851
+ "allOf": [
2852
+ {
2853
+ "$ref": "#/components/schemas/HospitableWebhook"
2854
+ }
2855
+ ],
2856
+ "description": "Hospitable only (`GET /v1/connect/hospitable`): the webhook URL the host pastes into Hospitable (Apps \u2192 Webhooks \u2192 + Add new) and whether deliveries are arriving."
2857
+ },
2799
2858
  "capabilities": {
2800
2859
  "type": "object",
2801
2860
  "description": "PMS providers only. `reservations`: which reservation writes the API performs on this connection's listings \u2014 the connector's support combined with `writePolicy`. `pms`: everything else the API does through this PMS (review replies, request answers, listing content, guests, message channel/attachments, calendar). When `connected` is false, what the connector supports once connected.",
@@ -5236,6 +5295,11 @@
5236
5295
  "account": {
5237
5296
  "$ref": "#/components/schemas/WebhookEventAccount"
5238
5297
  },
5298
+ "workspaceId": {
5299
+ "type": "integer",
5300
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
5301
+ "example": 2042
5302
+ },
5239
5303
  "data": {
5240
5304
  "$ref": "#/components/schemas/ReservationCreatedPayload"
5241
5305
  }
@@ -5272,6 +5336,11 @@
5272
5336
  "account": {
5273
5337
  "$ref": "#/components/schemas/WebhookEventAccount"
5274
5338
  },
5339
+ "workspaceId": {
5340
+ "type": "integer",
5341
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
5342
+ "example": 2042
5343
+ },
5275
5344
  "data": {
5276
5345
  "$ref": "#/components/schemas/ReservationUpdatedPayload"
5277
5346
  }
@@ -5308,6 +5377,11 @@
5308
5377
  "account": {
5309
5378
  "$ref": "#/components/schemas/WebhookEventAccount"
5310
5379
  },
5380
+ "workspaceId": {
5381
+ "type": "integer",
5382
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
5383
+ "example": 2042
5384
+ },
5311
5385
  "data": {
5312
5386
  "$ref": "#/components/schemas/ReservationCancelledPayload"
5313
5387
  }
@@ -5344,6 +5418,11 @@
5344
5418
  "account": {
5345
5419
  "$ref": "#/components/schemas/WebhookEventAccount"
5346
5420
  },
5421
+ "workspaceId": {
5422
+ "type": "integer",
5423
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
5424
+ "example": 2042
5425
+ },
5347
5426
  "data": {
5348
5427
  "$ref": "#/components/schemas/ReservationMessageReceivedPayload"
5349
5428
  }
@@ -5380,6 +5459,11 @@
5380
5459
  "account": {
5381
5460
  "$ref": "#/components/schemas/WebhookEventAccount"
5382
5461
  },
5462
+ "workspaceId": {
5463
+ "type": "integer",
5464
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
5465
+ "example": 2042
5466
+ },
5383
5467
  "data": {
5384
5468
  "$ref": "#/components/schemas/ReservationMessageSentPayload"
5385
5469
  }
@@ -5416,6 +5500,11 @@
5416
5500
  "account": {
5417
5501
  "$ref": "#/components/schemas/WebhookEventAccount"
5418
5502
  },
5503
+ "workspaceId": {
5504
+ "type": "integer",
5505
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
5506
+ "example": 2042
5507
+ },
5419
5508
  "data": {
5420
5509
  "$ref": "#/components/schemas/ReservationMessageUpdatedPayload"
5421
5510
  }
@@ -5452,6 +5541,11 @@
5452
5541
  "account": {
5453
5542
  "$ref": "#/components/schemas/WebhookEventAccount"
5454
5543
  },
5544
+ "workspaceId": {
5545
+ "type": "integer",
5546
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
5547
+ "example": 2042
5548
+ },
5455
5549
  "data": {
5456
5550
  "$ref": "#/components/schemas/ReservationMessageReadPayload"
5457
5551
  }
@@ -5488,6 +5582,11 @@
5488
5582
  "account": {
5489
5583
  "$ref": "#/components/schemas/WebhookEventAccount"
5490
5584
  },
5585
+ "workspaceId": {
5586
+ "type": "integer",
5587
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
5588
+ "example": 2042
5589
+ },
5491
5590
  "data": {
5492
5591
  "$ref": "#/components/schemas/ReservationMessageReactionPayload"
5493
5592
  }
@@ -5524,6 +5623,11 @@
5524
5623
  "account": {
5525
5624
  "$ref": "#/components/schemas/WebhookEventAccount"
5526
5625
  },
5626
+ "workspaceId": {
5627
+ "type": "integer",
5628
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
5629
+ "example": 2042
5630
+ },
5527
5631
  "data": {
5528
5632
  "$ref": "#/components/schemas/ReservationAlterationCreatedPayload"
5529
5633
  }
@@ -5560,6 +5664,11 @@
5560
5664
  "account": {
5561
5665
  "$ref": "#/components/schemas/WebhookEventAccount"
5562
5666
  },
5667
+ "workspaceId": {
5668
+ "type": "integer",
5669
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
5670
+ "example": 2042
5671
+ },
5563
5672
  "data": {
5564
5673
  "$ref": "#/components/schemas/ReservationAlterationRespondedPayload"
5565
5674
  }
@@ -5596,6 +5705,11 @@
5596
5705
  "account": {
5597
5706
  "$ref": "#/components/schemas/WebhookEventAccount"
5598
5707
  },
5708
+ "workspaceId": {
5709
+ "type": "integer",
5710
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
5711
+ "example": 2042
5712
+ },
5599
5713
  "data": {
5600
5714
  "$ref": "#/components/schemas/ReservationRequestCreatedPayload"
5601
5715
  }
@@ -5632,6 +5746,11 @@
5632
5746
  "account": {
5633
5747
  "$ref": "#/components/schemas/WebhookEventAccount"
5634
5748
  },
5749
+ "workspaceId": {
5750
+ "type": "integer",
5751
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
5752
+ "example": 2042
5753
+ },
5635
5754
  "data": {
5636
5755
  "$ref": "#/components/schemas/ReservationRequestUpdatedPayload"
5637
5756
  }
@@ -5763,6 +5882,11 @@
5763
5882
  "account": {
5764
5883
  "$ref": "#/components/schemas/WebhookEventAccount"
5765
5884
  },
5885
+ "workspaceId": {
5886
+ "type": "integer",
5887
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
5888
+ "example": 2042
5889
+ },
5766
5890
  "data": {
5767
5891
  "$ref": "#/components/schemas/ChannelSyncFailurePayload"
5768
5892
  }
@@ -5844,6 +5968,11 @@
5844
5968
  "account": {
5845
5969
  "$ref": "#/components/schemas/WebhookEventAccount"
5846
5970
  },
5971
+ "workspaceId": {
5972
+ "type": "integer",
5973
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
5974
+ "example": 2042
5975
+ },
5847
5976
  "data": {
5848
5977
  "$ref": "#/components/schemas/ChannelDegradedPayload"
5849
5978
  }
@@ -5925,6 +6054,11 @@
5925
6054
  "account": {
5926
6055
  "$ref": "#/components/schemas/WebhookEventAccount"
5927
6056
  },
6057
+ "workspaceId": {
6058
+ "type": "integer",
6059
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
6060
+ "example": 2042
6061
+ },
5928
6062
  "data": {
5929
6063
  "$ref": "#/components/schemas/ReservationThreadAssignedPayload"
5930
6064
  }
@@ -5989,6 +6123,11 @@
5989
6123
  "account": {
5990
6124
  "$ref": "#/components/schemas/WebhookEventAccount"
5991
6125
  },
6126
+ "workspaceId": {
6127
+ "type": "integer",
6128
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
6129
+ "example": 2042
6130
+ },
5992
6131
  "data": {
5993
6132
  "$ref": "#/components/schemas/BookingUnacknowledgedPayload"
5994
6133
  }
@@ -6025,6 +6164,11 @@
6025
6164
  "account": {
6026
6165
  "$ref": "#/components/schemas/WebhookEventAccount"
6027
6166
  },
6167
+ "workspaceId": {
6168
+ "type": "integer",
6169
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
6170
+ "example": 2042
6171
+ },
6028
6172
  "data": {
6029
6173
  "$ref": "#/components/schemas/InquiryCreatedPayload"
6030
6174
  }
@@ -6061,6 +6205,11 @@
6061
6205
  "account": {
6062
6206
  "$ref": "#/components/schemas/WebhookEventAccount"
6063
6207
  },
6208
+ "workspaceId": {
6209
+ "type": "integer",
6210
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
6211
+ "example": 2042
6212
+ },
6064
6213
  "data": {
6065
6214
  "$ref": "#/components/schemas/InquiryUpdatedPayload"
6066
6215
  }
@@ -6097,6 +6246,11 @@
6097
6246
  "account": {
6098
6247
  "$ref": "#/components/schemas/WebhookEventAccount"
6099
6248
  },
6249
+ "workspaceId": {
6250
+ "type": "integer",
6251
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
6252
+ "example": 2042
6253
+ },
6100
6254
  "data": {
6101
6255
  "$ref": "#/components/schemas/ListingCreatedPayload"
6102
6256
  }
@@ -6133,6 +6287,11 @@
6133
6287
  "account": {
6134
6288
  "$ref": "#/components/schemas/WebhookEventAccount"
6135
6289
  },
6290
+ "workspaceId": {
6291
+ "type": "integer",
6292
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
6293
+ "example": 2042
6294
+ },
6136
6295
  "data": {
6137
6296
  "$ref": "#/components/schemas/ListingUpdatedPayload"
6138
6297
  }
@@ -6169,6 +6328,11 @@
6169
6328
  "account": {
6170
6329
  "$ref": "#/components/schemas/WebhookEventAccount"
6171
6330
  },
6331
+ "workspaceId": {
6332
+ "type": "integer",
6333
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
6334
+ "example": 2042
6335
+ },
6172
6336
  "data": {
6173
6337
  "$ref": "#/components/schemas/ListingDeletedPayload"
6174
6338
  }
@@ -6274,6 +6438,11 @@
6274
6438
  "account": {
6275
6439
  "$ref": "#/components/schemas/WebhookEventAccount"
6276
6440
  },
6441
+ "workspaceId": {
6442
+ "type": "integer",
6443
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
6444
+ "example": 2042
6445
+ },
6277
6446
  "data": {
6278
6447
  "$ref": "#/components/schemas/ListingIcalFeedChangedPayload"
6279
6448
  }
@@ -6311,6 +6480,11 @@
6311
6480
  "account": {
6312
6481
  "$ref": "#/components/schemas/WebhookEventAccount"
6313
6482
  },
6483
+ "workspaceId": {
6484
+ "type": "integer",
6485
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
6486
+ "example": 2042
6487
+ },
6314
6488
  "data": {
6315
6489
  "$ref": "#/components/schemas/ListingSuspensionPayload"
6316
6490
  }
@@ -6347,6 +6521,11 @@
6347
6521
  "account": {
6348
6522
  "$ref": "#/components/schemas/WebhookEventAccount"
6349
6523
  },
6524
+ "workspaceId": {
6525
+ "type": "integer",
6526
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
6527
+ "example": 2042
6528
+ },
6350
6529
  "data": {
6351
6530
  "$ref": "#/components/schemas/ListingSuspensionPayload"
6352
6531
  }
@@ -6383,6 +6562,11 @@
6383
6562
  "account": {
6384
6563
  "$ref": "#/components/schemas/WebhookEventAccount"
6385
6564
  },
6565
+ "workspaceId": {
6566
+ "type": "integer",
6567
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
6568
+ "example": 2042
6569
+ },
6386
6570
  "data": {
6387
6571
  "$ref": "#/components/schemas/AccountCreatedPayload"
6388
6572
  }
@@ -6790,6 +6974,11 @@
6790
6974
  "account": {
6791
6975
  "$ref": "#/components/schemas/WebhookEventAccount"
6792
6976
  },
6977
+ "workspaceId": {
6978
+ "type": "integer",
6979
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
6980
+ "example": 2042
6981
+ },
6793
6982
  "data": {
6794
6983
  "$ref": "#/components/schemas/AccountCalendarAccessChangedPayload"
6795
6984
  }
@@ -6885,6 +7074,11 @@
6885
7074
  "account": {
6886
7075
  "$ref": "#/components/schemas/WebhookEventAccount"
6887
7076
  },
7077
+ "workspaceId": {
7078
+ "type": "integer",
7079
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7080
+ "example": 2042
7081
+ },
6888
7082
  "data": {
6889
7083
  "$ref": "#/components/schemas/ConversationMessageStatusChangedPayload"
6890
7084
  }
@@ -6964,6 +7158,11 @@
6964
7158
  "account": {
6965
7159
  "$ref": "#/components/schemas/WebhookEventAccount"
6966
7160
  },
7161
+ "workspaceId": {
7162
+ "type": "integer",
7163
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7164
+ "example": 2042
7165
+ },
6967
7166
  "data": {
6968
7167
  "$ref": "#/components/schemas/AccountNotificationsMissingPayload"
6969
7168
  }
@@ -7001,6 +7200,11 @@
7001
7200
  "account": {
7002
7201
  "$ref": "#/components/schemas/WebhookEventAccount"
7003
7202
  },
7203
+ "workspaceId": {
7204
+ "type": "integer",
7205
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7206
+ "example": 2042
7207
+ },
7004
7208
  "data": {
7005
7209
  "$ref": "#/components/schemas/AccountUnitsAddedPayload"
7006
7210
  }
@@ -7038,6 +7242,11 @@
7038
7242
  "account": {
7039
7243
  "$ref": "#/components/schemas/WebhookEventAccount"
7040
7244
  },
7245
+ "workspaceId": {
7246
+ "type": "integer",
7247
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7248
+ "example": 2042
7249
+ },
7041
7250
  "data": {
7042
7251
  "$ref": "#/components/schemas/AccountImportStartedPayload"
7043
7252
  }
@@ -7075,6 +7284,11 @@
7075
7284
  "account": {
7076
7285
  "$ref": "#/components/schemas/WebhookEventAccount"
7077
7286
  },
7287
+ "workspaceId": {
7288
+ "type": "integer",
7289
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7290
+ "example": 2042
7291
+ },
7078
7292
  "data": {
7079
7293
  "$ref": "#/components/schemas/AccountImportFinishedPayload"
7080
7294
  }
@@ -7112,6 +7326,11 @@
7112
7326
  "account": {
7113
7327
  "$ref": "#/components/schemas/WebhookEventAccount"
7114
7328
  },
7329
+ "workspaceId": {
7330
+ "type": "integer",
7331
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7332
+ "example": 2042
7333
+ },
7115
7334
  "data": {
7116
7335
  "$ref": "#/components/schemas/AccountImportFinishedPayload"
7117
7336
  }
@@ -7149,6 +7368,11 @@
7149
7368
  "account": {
7150
7369
  "$ref": "#/components/schemas/WebhookEventAccount"
7151
7370
  },
7371
+ "workspaceId": {
7372
+ "type": "integer",
7373
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7374
+ "example": 2042
7375
+ },
7152
7376
  "data": {
7153
7377
  "$ref": "#/components/schemas/ConnectSessionCompletedPayload"
7154
7378
  }
@@ -7185,6 +7409,11 @@
7185
7409
  "account": {
7186
7410
  "$ref": "#/components/schemas/WebhookEventAccount"
7187
7411
  },
7412
+ "workspaceId": {
7413
+ "type": "integer",
7414
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7415
+ "example": 2042
7416
+ },
7188
7417
  "data": {
7189
7418
  "$ref": "#/components/schemas/ConnectSessionAbandonedPayload"
7190
7419
  }
@@ -7221,6 +7450,11 @@
7221
7450
  "account": {
7222
7451
  "$ref": "#/components/schemas/WebhookEventAccount"
7223
7452
  },
7453
+ "workspaceId": {
7454
+ "type": "integer",
7455
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7456
+ "example": 2042
7457
+ },
7224
7458
  "data": {
7225
7459
  "$ref": "#/components/schemas/AccountDisconnectedPayload"
7226
7460
  }
@@ -7257,6 +7491,11 @@
7257
7491
  "account": {
7258
7492
  "$ref": "#/components/schemas/WebhookEventAccount"
7259
7493
  },
7494
+ "workspaceId": {
7495
+ "type": "integer",
7496
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7497
+ "example": 2042
7498
+ },
7260
7499
  "data": {
7261
7500
  "$ref": "#/components/schemas/ReviewCreatedPayload"
7262
7501
  }
@@ -7293,6 +7532,11 @@
7293
7532
  "account": {
7294
7533
  "$ref": "#/components/schemas/WebhookEventAccount"
7295
7534
  },
7535
+ "workspaceId": {
7536
+ "type": "integer",
7537
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7538
+ "example": 2042
7539
+ },
7296
7540
  "data": {
7297
7541
  "$ref": "#/components/schemas/ReviewRespondedPayload"
7298
7542
  }
@@ -7329,6 +7573,11 @@
7329
7573
  "account": {
7330
7574
  "$ref": "#/components/schemas/WebhookEventAccount"
7331
7575
  },
7576
+ "workspaceId": {
7577
+ "type": "integer",
7578
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7579
+ "example": 2042
7580
+ },
7332
7581
  "data": {
7333
7582
  "$ref": "#/components/schemas/AiOperationCompletedPayload"
7334
7583
  }
@@ -7365,6 +7614,11 @@
7365
7614
  "account": {
7366
7615
  "$ref": "#/components/schemas/WebhookEventAccount"
7367
7616
  },
7617
+ "workspaceId": {
7618
+ "type": "integer",
7619
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7620
+ "example": 2042
7621
+ },
7368
7622
  "data": {
7369
7623
  "$ref": "#/components/schemas/AiOperationFailedPayload"
7370
7624
  }
@@ -7401,6 +7655,11 @@
7401
7655
  "account": {
7402
7656
  "$ref": "#/components/schemas/WebhookEventAccount"
7403
7657
  },
7658
+ "workspaceId": {
7659
+ "type": "integer",
7660
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7661
+ "example": 2042
7662
+ },
7404
7663
  "data": {
7405
7664
  "$ref": "#/components/schemas/PaymentCompletedPayload"
7406
7665
  }
@@ -7437,6 +7696,11 @@
7437
7696
  "account": {
7438
7697
  "$ref": "#/components/schemas/WebhookEventAccount"
7439
7698
  },
7699
+ "workspaceId": {
7700
+ "type": "integer",
7701
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7702
+ "example": 2042
7703
+ },
7440
7704
  "data": {
7441
7705
  "$ref": "#/components/schemas/PayoutCompletedPayload"
7442
7706
  }
@@ -7473,6 +7737,11 @@
7473
7737
  "account": {
7474
7738
  "$ref": "#/components/schemas/WebhookEventAccount"
7475
7739
  },
7740
+ "workspaceId": {
7741
+ "type": "integer",
7742
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7743
+ "example": 2042
7744
+ },
7476
7745
  "data": {
7477
7746
  "$ref": "#/components/schemas/PaymentRefundedPayload"
7478
7747
  }
@@ -7509,6 +7778,11 @@
7509
7778
  "account": {
7510
7779
  "$ref": "#/components/schemas/WebhookEventAccount"
7511
7780
  },
7781
+ "workspaceId": {
7782
+ "type": "integer",
7783
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7784
+ "example": 2042
7785
+ },
7512
7786
  "data": {
7513
7787
  "$ref": "#/components/schemas/RepullPingPayload"
7514
7788
  }
@@ -7545,6 +7819,11 @@
7545
7819
  "account": {
7546
7820
  "$ref": "#/components/schemas/WebhookEventAccount"
7547
7821
  },
7822
+ "workspaceId": {
7823
+ "type": "integer",
7824
+ "description": "The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.",
7825
+ "example": 2042
7826
+ },
7548
7827
  "data": {
7549
7828
  "$ref": "#/components/schemas/UsageQuotaWarningPayload"
7550
7829
  }
@@ -7638,7 +7917,7 @@
7638
7917
  },
7639
7918
  "workspaceId": {
7640
7919
  "type": "integer",
7641
- "description": "The migration's workspace \u2014 pass it as `X-Workspace-Id`, or to `GET /v1/migrations/{workspaceId}`."
7920
+ "description": "The migration's workspace \u2014 pass it as `X-Workspace-Id`, or to `GET /v1/migrations/{workspaceId}`. Always present on migration events. A JSON number here; `POST /v1/connect` and `GET /v1/workspaces` return the same id as a string, so compare as strings."
7642
7921
  },
7643
7922
  "data": {
7644
7923
  "$ref": "#/components/schemas/MigrationImportPayload"
@@ -7680,7 +7959,7 @@
7680
7959
  },
7681
7960
  "workspaceId": {
7682
7961
  "type": "integer",
7683
- "description": "The migration's workspace \u2014 pass it as `X-Workspace-Id`, or to `GET /v1/migrations/{workspaceId}`."
7962
+ "description": "The migration's workspace \u2014 pass it as `X-Workspace-Id`, or to `GET /v1/migrations/{workspaceId}`. Always present on migration events. A JSON number here; `POST /v1/connect` and `GET /v1/workspaces` return the same id as a string, so compare as strings."
7684
7963
  },
7685
7964
  "data": {
7686
7965
  "$ref": "#/components/schemas/MigrationImportPayload"
@@ -9486,7 +9765,7 @@
9486
9765
  "type": "string",
9487
9766
  "format": "date-time",
9488
9767
  "nullable": true,
9489
- "description": "The most recent Airbnb import COMPLETED by any account in scope. `null` when none of them ever has. A run that failed or was rate-limited does not move it."
9768
+ "description": "The most recent Airbnb import COMPLETED by any account in scope \u2014 a full re-read of the account, which runs on connect, about once a day, and on `POST /v1/connections/{id}/imports`. `null` when none of them ever has. A run that failed or was rate-limited does not move it. It is not how current reservations and messages are: Airbnb notifies Repull of every new booking, change, cancellation and message as it happens, and those land within seconds between imports, on every access level."
9490
9769
  },
9491
9770
  "stale": {
9492
9771
  "type": "boolean",
@@ -9566,7 +9845,7 @@
9566
9845
  },
9567
9846
  "status": {
9568
9847
  "type": "string",
9569
- "description": "`COMPLETED`: settled in a payout. `UPCOMING`: expected, not paid out yet."
9848
+ "description": "`COMPLETED`: settled in a payout. `RELEASED`: Airbnb released it (its date has passed) but has not paid it out yet \u2014 the payout is held, or accumulating toward the host's next one; it becomes `COMPLETED` under its payout when paid. `UPCOMING`: expected, not released yet."
9570
9849
  },
9571
9850
  "type": {
9572
9851
  "type": "string",
@@ -9634,7 +9913,7 @@
9634
9913
  "payoutId": {
9635
9914
  "type": "string",
9636
9915
  "nullable": true,
9637
- "description": "The payout this line was settled in (its own id on a Payout row). `null` on an UPCOMING line.",
9916
+ "description": "The payout this line was settled in (its own id on a Payout row). `null` on an unpaid (`RELEASED` / `UPCOMING`) line.",
9638
9917
  "example": "M-HQLLNSWKUWK7R"
9639
9918
  },
9640
9919
  "payoutIdSynthetic": {
@@ -9649,7 +9928,7 @@
9649
9928
  "lineIndex": {
9650
9929
  "type": "integer",
9651
9930
  "nullable": true,
9652
- "description": "Position within the payout, from 1. `null` on the Payout row and on UPCOMING lines."
9931
+ "description": "Position within the payout, from 1. `null` on the Payout row and on unpaid lines."
9653
9932
  },
9654
9933
  "paidOutAmount": {
9655
9934
  "type": "number",
@@ -21221,7 +21500,7 @@
21221
21500
  "get": {
21222
21501
  "operationId": "listReviews",
21223
21502
  "summary": "List reviews",
21224
- "description": "Cursor-paginated guest + host review stream for the workspace. This surface returns the complete cross-channel history \u2014 separate from `/v1/channels/airbnb/reviews` which hits Airbnb live.\n\n`?offset=` is also accepted as a first-class alias for shallow paging (0..10000) \u2014 see the `offset` parameter below. Mutually exclusive with `cursor`.\n\nFilters: `platform` (`airbnb`|`booking`|`vrbo`), `listing_id` (internal Repull listing id), `rating_min` / `rating_max` (inclusive bounds, 0..5), `status` (`responded`|`unanswered`|`all`), `reviewer_role` (`guest` (default) | `host` | `all`).\n\n**Inactive listings:** reviews of inactive listings are left out of the page and of `pagination.total`. Filtering by an inactive `listing_id` returns `403 listing_inactive`. Inactive listings keep syncing; activate the listing to use it here.",
21503
+ "description": "Cursor-paginated guest + host review stream for the workspace. This surface returns the complete cross-channel history \u2014 separate from `/v1/channels/airbnb/reviews` which hits Airbnb live.\n\n`?offset=` is also accepted as a first-class alias for shallow paging (0..10000) \u2014 see the `offset` parameter below. Mutually exclusive with `cursor`.\n\n**Reviews from a connected PMS** (Guesty, Hostaway, Hospitable) are in the same stream, with `pms` naming the PMS and `platform` the channel the guest wrote on (so `platform=airbnb` includes Airbnb reviews relayed by a PMS). They arrive with the PMS's first import and then within 30 minutes of the PMS receiving them. When the same stay's review comes both from a channel you connected directly and from a PMS, it is returned once: the channel's copy wins.\n\nFilters: `platform` (`airbnb`|`booking`|`vrbo`), `listing_id` (internal Repull listing id), `rating_min` / `rating_max` (inclusive bounds, 0..5), `status` (`responded`|`unanswered`|`all`), `reviewer_role` (`guest` (default) | `host` | `all`).\n\n**Inactive listings:** reviews of inactive listings are left out of the page and of `pagination.total`. Filtering by an inactive `listing_id` returns `403 listing_inactive`. Inactive listings keep syncing; activate the listing to use it here.",
21225
21504
  "tags": [
21226
21505
  "Reviews"
21227
21506
  ],
@@ -22131,7 +22410,7 @@
22131
22410
  "post": {
22132
22411
  "operationId": "submitHospitableCredentials",
22133
22412
  "summary": "Submit Hospitable credentials for a Connect session",
22134
- "description": "Completes a credentials-pattern connection for Hospitable. Personal access token from Hospitable \u2192 Settings \u2192 API.\n\nThe credentials are validated against Hospitable before anything is persisted, so an invalid pair returns `invalid_credentials` rather than creating a dead connection. On success the `pms_connections` row is written and the Connect session moves to its terminal state.\n\nNo API key required when called with a `sessionId` \u2014 the session is the capability token.",
22413
+ "description": "Completes a credentials-pattern connection for Hospitable. Personal access token from Hospitable \u2192 Apps \u2192 API access \u2192 Access tokens.\n\nThe credentials are validated against Hospitable before anything is persisted, so an invalid pair returns `invalid_credentials` rather than creating a dead connection. On success the `pms_connections` row is written and the Connect session moves to its terminal state. The response carries the connection's `webhook` URL: Hospitable has no API to subscribe webhooks, so show it to the host, who adds it in Hospitable (Apps \u2192 Webhooks \u2192 + Add new) for instant updates.\n\nNo API key required when called with a `sessionId` \u2014 the session is the capability token.",
22135
22414
  "tags": [
22136
22415
  "Connect"
22137
22416
  ],
@@ -22173,6 +22452,15 @@
22173
22452
  "accountInfo": {
22174
22453
  "type": "object",
22175
22454
  "additionalProperties": true
22455
+ },
22456
+ "webhook": {
22457
+ "nullable": true,
22458
+ "allOf": [
22459
+ {
22460
+ "$ref": "#/components/schemas/HospitableWebhook"
22461
+ }
22462
+ ],
22463
+ "description": "The webhook URL to show the host: in Hospitable, Apps \u2192 Webhooks \u2192 + Add new, paste it, tick Reservations, Messages, Properties and Reviews. Optional \u2014 without it the connection is polled every minute. `null` if it could not be set up."
22176
22464
  }
22177
22465
  }
22178
22466
  }
@@ -22950,7 +23238,7 @@
22950
23238
  "post": {
22951
23239
  "operationId": "replyToReview",
22952
23240
  "summary": "Reply to a review on any channel",
22953
- "description": "Resolves the review, reads its channel and dispatches the reply. Channel-neutral: you do not need to know where the review came from.\n\nReplies work on Airbnb, Booking.com and VRBO. Each channel accepts one reply per review (VRBO: a second is `409 already_replied`; a review VRBO no longer takes a response to is `409 reply_not_allowed`). On VRBO the response is signed with a name \u2014 the connected account's host name, or `name` if you send it. A review from a channel without a reply API returns `422 unsupported_channel` naming the channels that do work.\n\n**Reviews read from a PMS** (`pms` set on the review \u2014 Guesty, Hostaway, \u2026) are answered through that PMS. A PMS whose API has no reply returns `422 pms_write_unsupported` naming it (Hostaway today); `GET /v1/connect/{provider}` \u2192 `capabilities.pms.reviews.reply` says so beforehand. A revoked PMS connection is `403 connection_reauth_required`.\n\nTo review a guest (Airbnb and Vrbo), use `POST /v1/reviews/{id}/guest-review`.\n\n**Inactive listings:** a review of an inactive listing returns `403 listing_inactive` and no reply reaches the channel. Activate the listing first.",
23241
+ "description": "Resolves the review, reads its channel and dispatches the reply. Channel-neutral: you do not need to know where the review came from.\n\nReplies work on Airbnb, Booking.com and VRBO. Each channel accepts one reply per review (VRBO: a second is `409 already_replied`; a review VRBO no longer takes a response to is `409 reply_not_allowed`). On VRBO the response is signed with a name \u2014 the connected account's host name, or `name` if you send it. A review from a channel without a reply API returns `422 unsupported_channel` naming the channels that do work.\n\n**Reviews read from a PMS** (`pms` set on the review \u2014 Guesty, Hostaway, Hospitable, \u2026) are answered through that PMS. Guesty and Hospitable reply on Airbnb and Booking.com reviews; Hospitable takes one response per review while the channel's window is open, and refuses otherwise with `422 pms_rejected` carrying its reason. A PMS whose API has no reply returns `422 pms_write_unsupported` naming it (Hostaway today); `GET /v1/connect/{provider}` \u2192 `capabilities.pms.reviews.reply` says so beforehand. A revoked PMS connection is `403 connection_reauth_required`.\n\nTo review a guest (Airbnb and Vrbo), use `POST /v1/reviews/{id}/guest-review`.\n\n**Inactive listings:** a review of an inactive listing returns `403 listing_inactive` and no reply reaches the channel. Activate the listing first.",
22954
23242
  "tags": [
22955
23243
  "Reviews"
22956
23244
  ],
@@ -24842,7 +25130,7 @@
24842
25130
  "get": {
24843
25131
  "operationId": "list_airbnb_reservations",
24844
25132
  "summary": "List Airbnb reservations",
24845
- "description": "Cursor-paginated list of reservations sourced directly from Airbnb. Use this when you need Airbnb-specific fields (guest payout split, cancellation policy snapshot) that the unified `/v1/reservations` endpoint flattens away.\n\nWalk pages with `?cursor=<pagination.nextCursor>` until `pagination.hasMore` is `false`. The cursor is opaque \u2014 never construct or parse it client-side.\n\n`?offset=` is also accepted as a first-class alias for shallow paging (0..10000) \u2014 see the `offset` parameter below. Mutually exclusive with `cursor`. Internally this walks upstream Airbnb cursor pages to skip rows, so deep offsets cost N/limit upstream round-trips; cursor remains the better choice for deep pagination.\n\nWhen `status` is omitted, all statuses are returned (Airbnb defaults to `accepted` only on its own surface, but this endpoint normalises to \"all\"). Pass `?status=accepted` to scope.\n\nReservations on inactive listings are left out (counts and cursors included); they keep syncing and reappear once the listing is activated. Filtering by an inactive listing (`listing_id`) returns `403 listing_inactive`.\n\n**Several Airbnb accounts?** A workspace can connect more than one. By default this returns every connected account's rows; pass `?account_id=<airbnb host id>` to scope to one. Every row carries `accountId` + `accountName` either way, and `dataFreshness.accounts[]` reports each account's freshness separately, so one disconnected host no longer marks the whole response stale.",
25133
+ "description": "Cursor-paginated list of reservations sourced directly from Airbnb. Use this when you need Airbnb-specific fields (guest payout split, cancellation policy snapshot) that the unified `/v1/reservations` endpoint flattens away.\n\n**Real time.** Airbnb notifies Repull of every new booking, change and cancellation as it happens, on every access level (read-only included): it is here within seconds and fires `reservation.created` / `reservation.updated` / `reservation.cancelled` within about a minute. `dataFreshness.lastSyncedAt` is the last full re-read of the account, not the age of these rows. To re-read an account now, `POST /v1/connections/{id}/imports` with `{\"scope\": \"reservations\"}`.\n\nWalk pages with `?cursor=<pagination.nextCursor>` until `pagination.hasMore` is `false`. The cursor is opaque \u2014 never construct or parse it client-side.\n\n`?offset=` is also accepted as a first-class alias for shallow paging (0..10000) \u2014 see the `offset` parameter below. Mutually exclusive with `cursor`. Internally this walks upstream Airbnb cursor pages to skip rows, so deep offsets cost N/limit upstream round-trips; cursor remains the better choice for deep pagination.\n\nWhen `status` is omitted, all statuses are returned (Airbnb defaults to `accepted` only on its own surface, but this endpoint normalises to \"all\"). Pass `?status=accepted` to scope.\n\nReservations on inactive listings are left out (counts and cursors included); they keep syncing and reappear once the listing is activated. Filtering by an inactive listing (`listing_id`) returns `403 listing_inactive`.\n\n**Several Airbnb accounts?** A workspace can connect more than one. By default this returns every connected account's rows; pass `?account_id=<airbnb host id>` to scope to one. Every row carries `accountId` + `accountName` either way, and `dataFreshness.accounts[]` reports each account's freshness separately, so one disconnected host no longer marks the whole response stale.",
24846
25134
  "tags": [
24847
25135
  "Airbnb"
24848
25136
  ],
@@ -25812,7 +26100,7 @@
25812
26100
  "get": {
25813
26101
  "operationId": "list_airbnb_transactions",
25814
26102
  "summary": "List Airbnb transactions (settlement ledger)",
25815
- "description": "The Airbnb settlement ledger for this workspace: every payout Airbnb sent to the host, each followed by the lines it paid \u2014 reservations and their installments, adjustments, resolution payouts and adjustments, cancellation fees. A payout's lines' signed `amount`s sum to its `payout.paidOutAmount` exactly, negative lines included (an adjustment offset against a later payout appears under that payout). `status: UPCOMING` lines are expected earnings not paid out yet; they belong to no payout.\n\n**Ids are stable.** Airbnb sends no line id and no payout id on lines, so Repull derives them deterministically: a Payout row's id is Airbnb's payout id; a line's is `<payoutId>:<type>:<confirmationCode>:<n>`. The same line has the same id on every refresh and every page, so you can upsert on `transactionId`. A payout that nets to $0.00 has no Airbnb id; it gets a derived `Z-<date>-<hash>` id with `payout.payoutIdSynthetic: true`.\n\n**Order:** newest first by the payout's date; each Payout row is followed by its lines in Airbnb's order (`payout.lineIndex`).\n\n**Dates:** `start_date` / `end_date` match the payout's date for settled lines (a line can be dated the day before its payout, and is still returned with it) and the line's own date for UPCOMING lines.\n\n**Pure DB read** \u2014 never calls Airbnb. Refresh with `POST` on this path. `dataFreshness` reports when each account's ledger was last refreshed.\n\nLines on listings that are inactive in Repull are included and flagged `onInactiveListing: true`, so every payout reconciles. Lines Repull cannot match to a reservation keep `reservationId: null`.\n\n**Not in Airbnb's transaction history** (listed in `unavailableFields`): taxes Airbnb collects and remits itself, and the guest-paid total (see the reservation's financial breakdown); pass-through occupancy tax paid to the host does appear, as its own `Pass Through Tot` lines, the original line a refund or reversal reverses (it names the stay and the resolution), and currency-conversion amounts (only the payout currency is reported).",
26103
+ "description": "The Airbnb settlement ledger for this workspace: every payout Airbnb sent to the host, each followed by the lines it paid \u2014 reservations and their installments, adjustments, resolution payouts and adjustments, cancellation fees. A payout's lines' signed `amount`s sum to its `payout.paidOutAmount` exactly, negative lines included (an adjustment offset against a later payout appears under that payout). Lines not paid out yet belong to no payout: `status: RELEASED` lines were released by Airbnb (their date has passed) and are waiting for a payout \u2014 a held payout, or one accumulating toward the host's payout threshold or schedule; `status: UPCOMING` lines are not released yet. When a line is paid it appears as `COMPLETED` under its payout and its unpaid line goes away.\n\n**Ids are stable.** Airbnb sends no line id and no payout id on lines, so Repull derives them deterministically: a Payout row's id is Airbnb's payout id; a line's is `<payoutId>:<type>:<confirmationCode>:<n>`. The same line has the same id on every refresh and every page, so you can upsert on `transactionId`. A payout that nets to $0.00 has no Airbnb id; it gets a derived `Z-<date>-<hash>` id with `payout.payoutIdSynthetic: true`.\n\n**Order:** newest first by the payout's date; each Payout row is followed by its lines in Airbnb's order (`payout.lineIndex`).\n\n**Dates:** `start_date` / `end_date` match the payout's date for settled lines (a line can be dated the day before its payout, and is still returned with it) and the line's own date for UPCOMING lines.\n\n**Pure DB read** \u2014 never calls Airbnb. Refresh with `POST` on this path. `dataFreshness` reports when each account's ledger was last refreshed.\n\nLines on listings that are inactive in Repull are included and flagged `onInactiveListing: true`, so every payout reconciles. Lines Repull cannot match to a reservation keep `reservationId: null`.\n\n**Not in Airbnb's transaction history** (listed in `unavailableFields`): taxes Airbnb collects and remits itself, and the guest-paid total (see the reservation's financial breakdown); pass-through occupancy tax paid to the host does appear, as its own `Pass Through Tot` lines, the original line a refund or reversal reverses (it names the stay and the resolution), and currency-conversion amounts (only the payout currency is reported).",
25816
26104
  "tags": [
25817
26105
  "Airbnb"
25818
26106
  ],
@@ -25824,7 +26112,7 @@
25824
26112
  "name": "start_date",
25825
26113
  "in": "query",
25826
26114
  "required": false,
25827
- "description": "Inclusive lower bound on the payout's date (the line's own date for UPCOMING lines). YYYY-MM-DD.",
26115
+ "description": "Inclusive lower bound on the payout's date (the line's own date for unpaid `RELEASED` / `UPCOMING` lines). YYYY-MM-DD.",
25828
26116
  "schema": {
25829
26117
  "type": "string",
25830
26118
  "format": "date"
@@ -25844,11 +26132,12 @@
25844
26132
  "name": "status",
25845
26133
  "in": "query",
25846
26134
  "required": false,
25847
- "description": "`COMPLETED` (settled) or `UPCOMING` (expected).",
26135
+ "description": "`COMPLETED` (paid out), `RELEASED` (released by Airbnb, not paid out yet) or `UPCOMING` (not released yet).",
25848
26136
  "schema": {
25849
26137
  "type": "string",
25850
26138
  "enum": [
25851
26139
  "COMPLETED",
26140
+ "RELEASED",
25852
26141
  "UPCOMING"
25853
26142
  ]
25854
26143
  }
@@ -25937,7 +26226,7 @@
25937
26226
  "$ref": "#/components/responses/AirbnbAccountNotFound"
25938
26227
  },
25939
26228
  "422": {
25940
- "description": "A filter or body field is malformed (dates are YYYY-MM-DD; status is COMPLETED or UPCOMING).",
26229
+ "description": "A filter or body field is malformed (dates are YYYY-MM-DD; status is COMPLETED, RELEASED or UPCOMING).",
25941
26230
  "content": {
25942
26231
  "application/json": {
25943
26232
  "schema": {
@@ -25954,7 +26243,7 @@
25954
26243
  "post": {
25955
26244
  "operationId": "sync_airbnb_transactions",
25956
26245
  "summary": "Refresh Airbnb transactions",
25957
- "description": "Pull the transaction history from Airbnb into the ledger `GET` serves. Every connected Airbnb account is refreshed, or only `?account_id=`. Without dates: settled lines from the last 12 months and the forecast for the next 12. Safe to repeat: settled lines are upserted on their stable ids, never duplicated or removed; the UPCOMING forecast inside the fetched window is replaced, so a line that has since been paid out moves to its payout. Each account reports its own outcome in `accounts[]`: one account Airbnb refuses (a revoked host, a listing Airbnb no longer serves) is reported there with Airbnb's reason and does not stop the others. When every account fails, the response is Airbnb's answer with its usual code.",
26246
+ "description": "Pull the transaction history from Airbnb into the ledger `GET` serves. Every connected Airbnb account is refreshed, or only `?account_id=`. Without dates: settled lines from the last 12 months, and every line not paid out yet from 12 months back to 12 months ahead \u2014 released lines that are held or accumulating keep their past release date, so the window reaches back for them. Safe to repeat: settled lines are upserted on their stable ids, never duplicated or removed; the unpaid lines inside the fetched window are replaced, so a line that has since been paid out moves to its payout. Each account reports its own outcome in `accounts[]`: one account Airbnb refuses (a revoked host, a listing Airbnb no longer serves) is reported there with Airbnb's reason and does not stop the others. When every account fails, the response is Airbnb's answer with its usual code.",
25958
26247
  "tags": [
25959
26248
  "Airbnb"
25960
26249
  ],
@@ -25986,7 +26275,7 @@
25986
26275
  "COMPLETED",
25987
26276
  "UPCOMING"
25988
26277
  ],
25989
- "description": "Refresh only settled or only upcoming lines. Both when omitted."
26278
+ "description": "Airbnb's two buckets: `COMPLETED` refreshes paid-out lines only, `UPCOMING` every unpaid line (`RELEASED` and `UPCOMING`). Both when omitted."
25990
26279
  }
25991
26280
  }
25992
26281
  }
@@ -26037,7 +26326,7 @@
26037
26326
  },
26038
26327
  "upcomingRemoved": {
26039
26328
  "type": "integer",
26040
- "description": "UPCOMING lines Airbnb no longer lists (paid out or cancelled) and were removed."
26329
+ "description": "Unpaid (RELEASED / UPCOMING) lines Airbnb no longer lists (paid out or cancelled) and were removed."
26041
26330
  },
26042
26331
  "error": {
26043
26332
  "type": "object",
@@ -42295,8 +42584,8 @@
42295
42584
  },
42296
42585
  "post": {
42297
42586
  "operationId": "startConnectionImport",
42298
- "summary": "Refresh a connection's listings",
42299
- "description": "Refresh listings: picks up listings you've added on Airbnb since you connected. Re-reads the connected account's listings now: a new property comes in as a new listing, together with its calendar (pricing and availability), and existing listings are refreshed. On a full-access connection Repull is the source of your calendars, so the calendars of listings already in Repull are not re-read from Airbnb; on read-only and messaging connections they are. Nothing else is re-imported: no reservations, conversations, reviews or payouts.\n\nThe same import runs on its own once a day for every connected Airbnb account, and when the host reconnects. Call this when you know a property was just added and do not want to wait.\n\nNew listings obey your plan's active-listing limit: past it, and when the property is unlisted on Airbnb, they arrive inactive. Existing listings keep their status.\n\nThe import runs in the background (`202`). It is recorded like any other import (trigger `resync`, one `listings` stage): follow it on `GET /v1/connections/{id}/imports` or wait for `account.import.completed`, then read the new listings with `GET /v1/listings`.\n\nAirbnb connections only for now. Returns `409 conflict` while a listings import of the account is already running, and `409 connection_reauth_required` when the account is disconnected.",
42587
+ "summary": "Refresh a connection's listings or reservations",
42588
+ "description": "Two scopes: `listings` (the default) and `reservations`.\n\n**`listings`** \u2014 picks up listings you've added on Airbnb since you connected. Re-reads the connected account's listings now: a new property comes in as a new listing, together with its calendar (pricing and availability), and existing listings are refreshed. On a full-access connection Repull is the source of your calendars, so the calendars of listings already in Repull are not re-read from Airbnb; on read-only and messaging connections they are. Nothing else is re-imported: no reservations, conversations, reviews or payouts. The same import runs on its own once a day for every connected Airbnb account, and when the host reconnects. Call this when you know a property was just added and do not want to wait.\n\n**`reservations`** \u2014 re-reads the account's reservations from Airbnb (stays from the last month and every future one) and applies anything that differs, firing the usual `reservation.*` webhooks for it. You do not need it to stay current: Airbnb notifies Repull of every new booking, change and cancellation as it happens, on every access level (read-only included), and Repull fires `reservation.created` / `reservation.updated` / `reservation.cancelled` within about a minute. Use it as a catch-up \u2014 for example after your own webhook endpoint was down \u2014 or to confirm a stay right now.\n\nNew listings obey your plan's active-listing limit: past it, and when the property is unlisted on Airbnb, they arrive inactive. Existing listings keep their status.\n\nBoth run in the background (`202`) and are recorded like any other import (trigger `resync`, one `listings` or `reservations` stage): follow it on `GET /v1/connections/{id}/imports` or wait for `account.import.completed`, then read the result with `GET /v1/listings` or `GET /v1/reservations`.\n\nAirbnb connections only for now. Returns `409 conflict` while a listings import of the account is already running, and `409 connection_reauth_required` when the account is disconnected. Two reservations refreshes of one account in the same minute are one refresh.",
42300
42589
  "tags": [
42301
42590
  "Connections"
42302
42591
  ],
@@ -42321,10 +42610,11 @@
42321
42610
  "scope": {
42322
42611
  "type": "string",
42323
42612
  "enum": [
42324
- "listings"
42613
+ "listings",
42614
+ "reservations"
42325
42615
  ],
42326
42616
  "default": "listings",
42327
- "description": "What to import. `listings` = the account's listings. New listings come in with their calendar (pricing and availability); on a full-access connection, calendars of listings already in Repull are not re-read. The only scope; the full import runs when an account is connected."
42617
+ "description": "What to import. `listings` = the account's listings; new listings come in with their calendar (pricing and availability); on a full-access connection, calendars of listings already in Repull are not re-read. `reservations` = the account's reservations, stays from the last month and every future one. The full import runs when an account is connected."
42328
42618
  }
42329
42619
  }
42330
42620
  }
@@ -42349,7 +42639,8 @@
42349
42639
  "scope": {
42350
42640
  "type": "string",
42351
42641
  "enum": [
42352
- "listings"
42642
+ "listings",
42643
+ "reservations"
42353
42644
  ]
42354
42645
  },
42355
42646
  "status": {