repull 0.2.59 → 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.
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.",
@@ -9706,7 +9765,7 @@
9706
9765
  "type": "string",
9707
9766
  "format": "date-time",
9708
9767
  "nullable": true,
9709
- "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."
9710
9769
  },
9711
9770
  "stale": {
9712
9771
  "type": "boolean",
@@ -9786,7 +9845,7 @@
9786
9845
  },
9787
9846
  "status": {
9788
9847
  "type": "string",
9789
- "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."
9790
9849
  },
9791
9850
  "type": {
9792
9851
  "type": "string",
@@ -9854,7 +9913,7 @@
9854
9913
  "payoutId": {
9855
9914
  "type": "string",
9856
9915
  "nullable": true,
9857
- "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.",
9858
9917
  "example": "M-HQLLNSWKUWK7R"
9859
9918
  },
9860
9919
  "payoutIdSynthetic": {
@@ -9869,7 +9928,7 @@
9869
9928
  "lineIndex": {
9870
9929
  "type": "integer",
9871
9930
  "nullable": true,
9872
- "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."
9873
9932
  },
9874
9933
  "paidOutAmount": {
9875
9934
  "type": "number",
@@ -21441,7 +21500,7 @@
21441
21500
  "get": {
21442
21501
  "operationId": "listReviews",
21443
21502
  "summary": "List reviews",
21444
- "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.",
21445
21504
  "tags": [
21446
21505
  "Reviews"
21447
21506
  ],
@@ -22351,7 +22410,7 @@
22351
22410
  "post": {
22352
22411
  "operationId": "submitHospitableCredentials",
22353
22412
  "summary": "Submit Hospitable credentials for a Connect session",
22354
- "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.",
22355
22414
  "tags": [
22356
22415
  "Connect"
22357
22416
  ],
@@ -22393,6 +22452,15 @@
22393
22452
  "accountInfo": {
22394
22453
  "type": "object",
22395
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."
22396
22464
  }
22397
22465
  }
22398
22466
  }
@@ -23170,7 +23238,7 @@
23170
23238
  "post": {
23171
23239
  "operationId": "replyToReview",
23172
23240
  "summary": "Reply to a review on any channel",
23173
- "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.",
23174
23242
  "tags": [
23175
23243
  "Reviews"
23176
23244
  ],
@@ -25062,7 +25130,7 @@
25062
25130
  "get": {
25063
25131
  "operationId": "list_airbnb_reservations",
25064
25132
  "summary": "List Airbnb reservations",
25065
- "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.",
25066
25134
  "tags": [
25067
25135
  "Airbnb"
25068
25136
  ],
@@ -26032,7 +26100,7 @@
26032
26100
  "get": {
26033
26101
  "operationId": "list_airbnb_transactions",
26034
26102
  "summary": "List Airbnb transactions (settlement ledger)",
26035
- "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).",
26036
26104
  "tags": [
26037
26105
  "Airbnb"
26038
26106
  ],
@@ -26044,7 +26112,7 @@
26044
26112
  "name": "start_date",
26045
26113
  "in": "query",
26046
26114
  "required": false,
26047
- "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.",
26048
26116
  "schema": {
26049
26117
  "type": "string",
26050
26118
  "format": "date"
@@ -26064,11 +26132,12 @@
26064
26132
  "name": "status",
26065
26133
  "in": "query",
26066
26134
  "required": false,
26067
- "description": "`COMPLETED` (settled) or `UPCOMING` (expected).",
26135
+ "description": "`COMPLETED` (paid out), `RELEASED` (released by Airbnb, not paid out yet) or `UPCOMING` (not released yet).",
26068
26136
  "schema": {
26069
26137
  "type": "string",
26070
26138
  "enum": [
26071
26139
  "COMPLETED",
26140
+ "RELEASED",
26072
26141
  "UPCOMING"
26073
26142
  ]
26074
26143
  }
@@ -26157,7 +26226,7 @@
26157
26226
  "$ref": "#/components/responses/AirbnbAccountNotFound"
26158
26227
  },
26159
26228
  "422": {
26160
- "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).",
26161
26230
  "content": {
26162
26231
  "application/json": {
26163
26232
  "schema": {
@@ -26174,7 +26243,7 @@
26174
26243
  "post": {
26175
26244
  "operationId": "sync_airbnb_transactions",
26176
26245
  "summary": "Refresh Airbnb transactions",
26177
- "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.",
26178
26247
  "tags": [
26179
26248
  "Airbnb"
26180
26249
  ],
@@ -26206,7 +26275,7 @@
26206
26275
  "COMPLETED",
26207
26276
  "UPCOMING"
26208
26277
  ],
26209
- "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."
26210
26279
  }
26211
26280
  }
26212
26281
  }
@@ -26257,7 +26326,7 @@
26257
26326
  },
26258
26327
  "upcomingRemoved": {
26259
26328
  "type": "integer",
26260
- "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."
26261
26330
  },
26262
26331
  "error": {
26263
26332
  "type": "object",
@@ -42515,8 +42584,8 @@
42515
42584
  },
42516
42585
  "post": {
42517
42586
  "operationId": "startConnectionImport",
42518
- "summary": "Refresh a connection's listings",
42519
- "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.",
42520
42589
  "tags": [
42521
42590
  "Connections"
42522
42591
  ],
@@ -42541,10 +42610,11 @@
42541
42610
  "scope": {
42542
42611
  "type": "string",
42543
42612
  "enum": [
42544
- "listings"
42613
+ "listings",
42614
+ "reservations"
42545
42615
  ],
42546
42616
  "default": "listings",
42547
- "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."
42548
42618
  }
42549
42619
  }
42550
42620
  }
@@ -42569,7 +42639,8 @@
42569
42639
  "scope": {
42570
42640
  "type": "string",
42571
42641
  "enum": [
42572
- "listings"
42642
+ "listings",
42643
+ "reservations"
42573
42644
  ]
42574
42645
  },
42575
42646
  "status": {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repull
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.59
4
+ version: 0.2.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nikolov
@@ -595,6 +595,7 @@ files:
595
595
  - lib/repull/models/guest_update_response.rb
596
596
  - lib/repull/models/guest_update_response_contacts_inner.rb
597
597
  - lib/repull/models/guest_update_response_pms_inner.rb
598
+ - lib/repull/models/hospitable_webhook.rb
598
599
  - lib/repull/models/import_from_channex200_response.rb
599
600
  - lib/repull/models/import_from_channex200_response_data.rb
600
601
  - lib/repull/models/import_from_channex200_response_data_channels_inner.rb
@@ -1005,6 +1006,7 @@ files:
1005
1006
  - lib/repull/models/submit_cloudbeds_credentials_request_credentials.rb
1006
1007
  - lib/repull/models/submit_guest_review200_response.rb
1007
1008
  - lib/repull/models/submit_guesty_credentials_request.rb
1009
+ - lib/repull/models/submit_hospitable_credentials200_response.rb
1008
1010
  - lib/repull/models/submit_hospitable_credentials_request.rb
1009
1011
  - lib/repull/models/submit_hostaway_credentials_request.rb
1010
1012
  - lib/repull/models/submit_igms_credentials_request.rb