repull 0.2.57 → 0.2.58
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.
- checksums.yaml +4 -4
- data/lib/repull/api/connect_api.rb +137 -6
- data/lib/repull/models/app_connection_health.rb +301 -0
- data/lib/repull/models/app_connection_health_recent_errors_inner.rb +184 -0
- data/lib/repull/models/app_connection_health_writes_per_day_inner.rb +156 -0
- data/lib/repull/models/connect_provider.rb +2 -2
- data/lib/repull/models/connect_status.rb +1 -1
- data/lib/repull/models/connection.rb +81 -5
- data/lib/repull/models/create_connection_request.rb +10 -1
- data/lib/repull/models/create_connection_request_workspace.rb +203 -0
- data/lib/repull/models/create_price_labs_key201_response.rb +399 -0
- data/lib/repull/models/create_price_labs_key201_response_all_of_instructions.rb +159 -0
- data/lib/repull/models/create_price_labs_key_request.rb +207 -0
- data/lib/repull/models/get_price_labs_session_status200_response.rb +192 -0
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +8 -0
- data/openapi/v1.json +354 -6
- metadata +10 -2
data/openapi/v1.json
CHANGED
|
@@ -1883,9 +1883,144 @@
|
|
|
1883
1883
|
],
|
|
1884
1884
|
"nullable": true,
|
|
1885
1885
|
"description": "The account's latest import \u2014 `status: running` while the first sync (or a later one) is going, then `completed` or `failed`. `null` when no import has been recorded. The same run is announced by the `account.import.*` webhooks; the history is on `GET /v1/connections/{id}/imports`."
|
|
1886
|
+
},
|
|
1887
|
+
"scope": {
|
|
1888
|
+
"type": "string",
|
|
1889
|
+
"description": "Apps (`pricelabs`) only. `workspace`: every listing of the workspace, including listings added later. `listings`: only `listingIds`."
|
|
1890
|
+
},
|
|
1891
|
+
"listingIds": {
|
|
1892
|
+
"type": "array",
|
|
1893
|
+
"items": {
|
|
1894
|
+
"type": "string"
|
|
1895
|
+
},
|
|
1896
|
+
"nullable": true,
|
|
1897
|
+
"description": "Apps only: the listings a `listings`-scoped connection covers; `null` for `workspace`."
|
|
1898
|
+
},
|
|
1899
|
+
"listingCount": {
|
|
1900
|
+
"type": "integer",
|
|
1901
|
+
"description": "Apps only: listings the connection covers now.",
|
|
1902
|
+
"example": 12
|
|
1903
|
+
},
|
|
1904
|
+
"keyMasked": {
|
|
1905
|
+
"type": "string",
|
|
1906
|
+
"description": "Apps only: the key the app uses, masked. The key itself is shown once, when created.",
|
|
1907
|
+
"example": "sk_live_4eB3...XYZw"
|
|
1908
|
+
},
|
|
1909
|
+
"label": {
|
|
1910
|
+
"type": "string",
|
|
1911
|
+
"nullable": true,
|
|
1912
|
+
"description": "Apps only: the name given to the key."
|
|
1913
|
+
},
|
|
1914
|
+
"disconnectedAt": {
|
|
1915
|
+
"type": "string",
|
|
1916
|
+
"format": "date-time",
|
|
1917
|
+
"nullable": true,
|
|
1918
|
+
"description": "Apps only: when the connection was revoked."
|
|
1919
|
+
},
|
|
1920
|
+
"health": {
|
|
1921
|
+
"nullable": true,
|
|
1922
|
+
"allOf": [
|
|
1923
|
+
{
|
|
1924
|
+
"$ref": "#/components/schemas/AppConnectionHealth"
|
|
1925
|
+
}
|
|
1926
|
+
],
|
|
1927
|
+
"description": "Apps only: how the app is doing on this connection. `null` once disconnected."
|
|
1886
1928
|
}
|
|
1887
1929
|
}
|
|
1888
1930
|
},
|
|
1931
|
+
"AppConnectionHealth": {
|
|
1932
|
+
"type": "object",
|
|
1933
|
+
"description": "How an app (PriceLabs) is doing on one connection, from its calls with the key.",
|
|
1934
|
+
"properties": {
|
|
1935
|
+
"status": {
|
|
1936
|
+
"type": "string",
|
|
1937
|
+
"description": "`active`: a successful price or minimum-stay push in the last 24 hours. `idle`: the app connected before but has not pushed in the last 24 hours. `failing`: more than 25% of the last 24 hours' requests failed (at least 5 requests); read `recentErrors`. `never_connected`: the app has not used the key yet."
|
|
1938
|
+
},
|
|
1939
|
+
"lastRequestAt": {
|
|
1940
|
+
"type": "string",
|
|
1941
|
+
"format": "date-time",
|
|
1942
|
+
"nullable": true,
|
|
1943
|
+
"description": "The app's last request with the key, of any kind."
|
|
1944
|
+
},
|
|
1945
|
+
"lastSuccessfulWriteAt": {
|
|
1946
|
+
"type": "string",
|
|
1947
|
+
"format": "date-time",
|
|
1948
|
+
"nullable": true,
|
|
1949
|
+
"description": "The app's last successful price or minimum-stay push."
|
|
1950
|
+
},
|
|
1951
|
+
"writesPerDay": {
|
|
1952
|
+
"type": "array",
|
|
1953
|
+
"description": "Successful price and minimum-stay pushes per UTC day, the last 7 days, oldest first.",
|
|
1954
|
+
"items": {
|
|
1955
|
+
"type": "object",
|
|
1956
|
+
"properties": {
|
|
1957
|
+
"date": {
|
|
1958
|
+
"type": "string",
|
|
1959
|
+
"format": "date"
|
|
1960
|
+
},
|
|
1961
|
+
"writes": {
|
|
1962
|
+
"type": "integer"
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
},
|
|
1967
|
+
"requests24h": {
|
|
1968
|
+
"type": "integer"
|
|
1969
|
+
},
|
|
1970
|
+
"errors24h": {
|
|
1971
|
+
"type": "integer"
|
|
1972
|
+
},
|
|
1973
|
+
"errorRate24h": {
|
|
1974
|
+
"type": "number",
|
|
1975
|
+
"description": "`errors24h / requests24h`; 0 when there were no requests.",
|
|
1976
|
+
"example": 0.02
|
|
1977
|
+
},
|
|
1978
|
+
"requests7d": {
|
|
1979
|
+
"type": "integer"
|
|
1980
|
+
},
|
|
1981
|
+
"errors7d": {
|
|
1982
|
+
"type": "integer"
|
|
1983
|
+
},
|
|
1984
|
+
"errorRate7d": {
|
|
1985
|
+
"type": "number",
|
|
1986
|
+
"example": 0.01
|
|
1987
|
+
},
|
|
1988
|
+
"recentErrors": {
|
|
1989
|
+
"type": "array",
|
|
1990
|
+
"description": "The 10 most recent failed requests, newest first.",
|
|
1991
|
+
"items": {
|
|
1992
|
+
"type": "object",
|
|
1993
|
+
"properties": {
|
|
1994
|
+
"at": {
|
|
1995
|
+
"type": "string",
|
|
1996
|
+
"format": "date-time"
|
|
1997
|
+
},
|
|
1998
|
+
"method": {
|
|
1999
|
+
"type": "string",
|
|
2000
|
+
"example": "PUT"
|
|
2001
|
+
},
|
|
2002
|
+
"endpoint": {
|
|
2003
|
+
"type": "string",
|
|
2004
|
+
"example": "/calendar/batch/4118"
|
|
2005
|
+
},
|
|
2006
|
+
"statusCode": {
|
|
2007
|
+
"type": "integer",
|
|
2008
|
+
"example": 404
|
|
2009
|
+
},
|
|
2010
|
+
"message": {
|
|
2011
|
+
"type": "string",
|
|
2012
|
+
"nullable": true
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
},
|
|
2018
|
+
"required": [
|
|
2019
|
+
"status",
|
|
2020
|
+
"writesPerDay",
|
|
2021
|
+
"recentErrors"
|
|
2022
|
+
]
|
|
2023
|
+
},
|
|
1889
2024
|
"ConnectionAccessType": {
|
|
1890
2025
|
"type": "string",
|
|
1891
2026
|
"enum": [
|
|
@@ -1971,11 +2106,11 @@
|
|
|
1971
2106
|
},
|
|
1972
2107
|
"category": {
|
|
1973
2108
|
"type": "string",
|
|
1974
|
-
"description": "
|
|
2109
|
+
"description": "Category \u2014 OTAs are listing marketplaces; PMSes are property management systems; apps are tools that work on the workspace's data (PriceLabs)."
|
|
1975
2110
|
},
|
|
1976
2111
|
"connectPattern": {
|
|
1977
2112
|
"type": "string",
|
|
1978
|
-
"description": "How the host is connected. `oauth`: provider-side consent screen. `credentials`: hosted form collects API keys. `activation`: push-only handshake. `claim`: connectivity-provider designation in the channel's Extranet (Booking.com). `extranet`: the host signs in with their Booking.com Extranet user."
|
|
2113
|
+
"description": "How the host is connected. `oauth`: provider-side consent screen. `credentials`: hosted form collects API keys. `activation`: push-only handshake. `claim`: connectivity-provider designation in the channel's Extranet (Booking.com). `extranet`: the host signs in with their Booking.com Extranet user. `key`: an app \u2014 the hosted page shows a key the host pastes into the app, and the session completes on the app's first call."
|
|
1979
2114
|
},
|
|
1980
2115
|
"status": {
|
|
1981
2116
|
"type": "string",
|
|
@@ -2553,7 +2688,7 @@
|
|
|
2553
2688
|
},
|
|
2554
2689
|
"accounts": {
|
|
2555
2690
|
"type": "array",
|
|
2556
|
-
"description": "One entry per connected account, for every provider: Airbnb, every host account connected (including ones since disconnected), each with its own `accessType`; Booking.com, every hotel (`externalAccountId` is the hotel id); Vrbo, every sign-in; Booking.com Extranet, every hotel login; a PMS, its one account. Pass `externalAccountId` as `accountId` to `DELETE /v1/connect/{provider}` to disconnect one. The top-level fields describe one record and stay for existing integrations; show `accounts[]` to list what is connected. Vrbo sign-ins also carry `accessType` and `import` (a `VrboImportStatus`), with a top-level `dataFreshness` on `GET /v1/connect/vrbo-login`.",
|
|
2691
|
+
"description": "One entry per connected account, for every provider: Airbnb, every host account connected (including ones since disconnected), each with its own `accessType`; Booking.com, every hotel (`externalAccountId` is the hotel id); Vrbo, every sign-in; Booking.com Extranet, every hotel login; a PMS, its one account; PriceLabs (an app), every key, each a connection with its `health` (see `Connection`). Pass `externalAccountId` as `accountId` to `DELETE /v1/connect/{provider}` to disconnect one. The top-level fields describe one record and stay for existing integrations; show `accounts[]` to list what is connected. Vrbo sign-ins also carry `accessType` and `import` (a `VrboImportStatus`), with a top-level `dataFreshness` on `GET /v1/connect/vrbo-login`.",
|
|
2557
2692
|
"items": {
|
|
2558
2693
|
"type": "object",
|
|
2559
2694
|
"properties": {
|
|
@@ -21589,7 +21724,7 @@
|
|
|
21589
21724
|
"get": {
|
|
21590
21725
|
"operationId": "get_connect_status",
|
|
21591
21726
|
"summary": "Get connection status",
|
|
21592
|
-
"description": "Returns the current connection status for a provider, including host metadata (display name + avatar) for Airbnb so clients can render an account-level confirmation UI.\n\n**Access level.** `accessType` says what the connection may do: `read_only`, `messaging` or `full_access` (`null` when unknown). Airbnb reports it per host on `accounts[]` (the tier each host's token was granted with) and at the top level for the host in `externalAccountId`; Vrbo (`vrbo-login`) per account; Booking.com is always `full_access`, the Booking.com Extranet always `messaging`; a PMS is `read_only` when every `writePolicy` switch is off, else `full_access`. See the `ConnectionAccessType` schema for the meaning per provider.",
|
|
21727
|
+
"description": "Returns the current connection status for a provider, including host metadata (display name + avatar) for Airbnb so clients can render an account-level confirmation UI.\n\n**Access level.** `accessType` says what the connection may do: `read_only`, `messaging` or `full_access` (`null` when unknown). Airbnb reports it per host on `accounts[]` (the tier each host's token was granted with) and at the top level for the host in `externalAccountId`; Vrbo (`vrbo-login`) per account; Booking.com is always `full_access`, the Booking.com Extranet always `messaging`; a PMS is `read_only` when every `writePolicy` switch is off, else `full_access`. See the `ConnectionAccessType` schema for the meaning per provider.\n\n**PriceLabs (an app).** `accounts[]` lists every PriceLabs connection of the workspace (each one key), with `scope`, `listingCount`, `keyMasked` and `health`: `status` (`active`, `idle`, `failing`, `never_connected`), last request, last successful price push, pushes per day for 7 days, error rates and the latest errors. Revoked ones stay listed as `disconnected` with `health: null`. `externalAccountId` is `null` (PriceLabs has no account id to give us); `id` is the connection.",
|
|
21593
21728
|
"tags": [
|
|
21594
21729
|
"Connect"
|
|
21595
21730
|
],
|
|
@@ -21614,7 +21749,7 @@
|
|
|
21614
21749
|
"post": {
|
|
21615
21750
|
"operationId": "create_connection",
|
|
21616
21751
|
"summary": "Connect to PMS/OTA provider",
|
|
21617
|
-
"description": "Establish a connection to a PMS or OTA platform. Credentials vary by provider \u2014 see docs for each provider.\n\nAirbnb-specific: pass `redirectUrl` (where to send the user after consent) and optionally `accessType`. Three tiers: `read_only` grants read-only scopes; `messaging` (shown to hosts as \"Messaging & reviews\") grants read scopes plus message read/send and review writes (reply to guest reviews, submit host reviews \u2014 Airbnb's `reviews_write`) but NOT property management, so it can coexist with another app (e.g. an existing PMS) that already holds property management on the same Airbnb account; `full_access` \u2014 the default \u2014 grants full host scopes including the exclusive property management (only one app per Airbnb account can hold it). The response returns a hosted `url` to redirect the user to.\n\nBooking.com: pass `redirectUrl` (no `accessType`). The response returns a hosted `url` \u2014 send the user there to select our connectivity provider in their Booking.com Extranet and paste their Hotel ID. Same response shape as Airbnb (`url`, `sessionId`, `expiresAt`).\n\nPMS providers are not connected by this call: send their credentials to `POST /v1/connect/{provider}/credentials`, or start a hosted session with `POST /v1/connect`.",
|
|
21752
|
+
"description": "Establish a connection to a PMS or OTA platform. Credentials vary by provider \u2014 see docs for each provider.\n\nAirbnb-specific: pass `redirectUrl` (where to send the user after consent) and optionally `accessType`. Three tiers: `read_only` grants read-only scopes; `messaging` (shown to hosts as \"Messaging & reviews\") grants read scopes plus message read/send and review writes (reply to guest reviews, submit host reviews \u2014 Airbnb's `reviews_write`) but NOT property management, so it can coexist with another app (e.g. an existing PMS) that already holds property management on the same Airbnb account; `full_access` \u2014 the default \u2014 grants full host scopes including the exclusive property management (only one app per Airbnb account can hold it). The response returns a hosted `url` to redirect the user to.\n\nBooking.com: pass `redirectUrl` (no `accessType`). The response returns a hosted `url` \u2014 send the user there to select our connectivity provider in their Booking.com Extranet and paste their Hotel ID. Same response shape as Airbnb (`url`, `sessionId`, `expiresAt`).\n\nPMS providers are not connected by this call: send their credentials to `POST /v1/connect/{provider}/credentials`, or start a hosted session with `POST /v1/connect`.\n\n**PriceLabs (an app).** Pass `redirectUrl` (and optionally `state`, `locale`, `workspace`). The response returns a hosted `url` for the session's workspace: yours, the one `X-Workspace-Id` names, or a new sub-workspace when you send `workspace.name` (its id comes back as `workspaceId`). The page shows the host a key for **every listing of that workspace, including listings added later**, with the steps to paste it into PriceLabs, then waits for PriceLabs' first call and completes like every provider: redirect to `redirectUrl` (`status=connected&connectionId=\u2026`) or the `repull:connect:completed` popup message, and `connect.session.completed`. When PriceLabs first uses the key, `account.created` is sent. To keep PriceLabs away from the rest of an account, put the listings it should price in a sub-workspace and connect PriceLabs there. To issue the key yourself (no hosted page, or only some listings) use `POST /v1/connect/pricelabs/key`.",
|
|
21618
21753
|
"tags": [
|
|
21619
21754
|
"Connect"
|
|
21620
21755
|
],
|
|
@@ -21656,6 +21791,24 @@
|
|
|
21656
21791
|
"type": "string",
|
|
21657
21792
|
"description": "Airbnb + Booking.com \u2014 your own correlation token, e.g. your user id (at most 500 characters). Echoed on the redirect back (`&state=`) and in the `connect.session.completed` webhook."
|
|
21658
21793
|
},
|
|
21794
|
+
"workspace": {
|
|
21795
|
+
"type": "object",
|
|
21796
|
+
"description": "PriceLabs only: open a new sub-workspace for this host and connect PriceLabs there (its id is returned as `workspaceId`). Don't send it together with `X-Workspace-Id`.",
|
|
21797
|
+
"properties": {
|
|
21798
|
+
"name": {
|
|
21799
|
+
"type": "string",
|
|
21800
|
+
"maxLength": 120
|
|
21801
|
+
},
|
|
21802
|
+
"externalRef": {
|
|
21803
|
+
"type": "string",
|
|
21804
|
+
"maxLength": 120,
|
|
21805
|
+
"description": "Your own id for this host."
|
|
21806
|
+
}
|
|
21807
|
+
},
|
|
21808
|
+
"required": [
|
|
21809
|
+
"name"
|
|
21810
|
+
]
|
|
21811
|
+
},
|
|
21659
21812
|
"locale": {
|
|
21660
21813
|
"type": "string",
|
|
21661
21814
|
"nullable": true,
|
|
@@ -21683,7 +21836,7 @@
|
|
|
21683
21836
|
"delete": {
|
|
21684
21837
|
"operationId": "delete_connection",
|
|
21685
21838
|
"summary": "Disconnect provider",
|
|
21686
|
-
"description": "Disconnect ONE connected account of a provider from this workspace. Supported for `airbnb`, `booking`, `vrbo-login` and every PMS (`guesty`, `hostaway`, `hospitable`, \u2026).\n\n**Which account.** Pass `accountId` \u2014 for Airbnb the host id (`accounts[].externalAccountId` from `GET /v1/connect/airbnb`), for Booking.com the hotel id, for `vrbo-login` the sign-in's Vrbo account id (`accounts[].externalAccountId` from `GET /v1/connect/vrbo-login`; the old sign-in id still works until 2027-02-12). It is optional only when the workspace has exactly one account for the provider. With several and no `accountId`, the call returns `422` with the account ids in `valid_values` instead of guessing. An `accountId` that is not connected to this workspace returns `404`. Disconnecting one account leaves the others connected.\n\n**What happens.** The account's stored authorization is removed and it stops syncing. Its listings are **deactivated**, not deleted: they stop counting toward your plan's listing limit, their data is kept, and they are returned in `listingsDeactivated`. A listing that is still connected through another account or channel stays active. Reconnect the account, then activate the listings with `POST /v1/listings/status`.\n\nThe change is all or nothing. For Airbnb, the host can also revoke access on Airbnb's side (Account \u2192 Privacy & sharing \u2192 Connected apps); that alone does not update this workspace, so call this endpoint as well.\n\n**PMS.** A workspace has one connection per PMS, so no `accountId` is needed. Disconnecting stops syncing, clears the stored credentials and deactivates the connection's listings; nothing is deleted, and reservations and messages stay. The response also carries `connectionId`. The PMS's own webhook subscription is left in place, because the same PMS account can be connected to another workspace (such as a Repull Migrate workspace). Reconnect with a new Connect session.\n\nOther providers return `501 not_implemented` with instructions for disconnecting on the provider's side. That answer depends only on the provider, not on your workspace: an unsupported provider returns `501` whether or not you have a connection to it. `404 not_found` on a supported provider means this workspace has no connection to it (or, with `accountId`, that the account is not connected here).",
|
|
21839
|
+
"description": "Disconnect ONE connected account of a provider from this workspace. Supported for `airbnb`, `booking`, `vrbo-login` and every PMS (`guesty`, `hostaway`, `hospitable`, \u2026).\n\n**Which account.** Pass `accountId` \u2014 for Airbnb the host id (`accounts[].externalAccountId` from `GET /v1/connect/airbnb`), for Booking.com the hotel id, for `vrbo-login` the sign-in's Vrbo account id (`accounts[].externalAccountId` from `GET /v1/connect/vrbo-login`; the old sign-in id still works until 2027-02-12). It is optional only when the workspace has exactly one account for the provider. With several and no `accountId`, the call returns `422` with the account ids in `valid_values` instead of guessing. An `accountId` that is not connected to this workspace returns `404`. Disconnecting one account leaves the others connected.\n\n**What happens.** The account's stored authorization is removed and it stops syncing. Its listings are **deactivated**, not deleted: they stop counting toward your plan's listing limit, their data is kept, and they are returned in `listingsDeactivated`. A listing that is still connected through another account or channel stays active. Reconnect the account, then activate the listings with `POST /v1/listings/status`.\n\nThe change is all or nothing. For Airbnb, the host can also revoke access on Airbnb's side (Account \u2192 Privacy & sharing \u2192 Connected apps); that alone does not update this workspace, so call this endpoint as well.\n\n**PMS.** A workspace has one connection per PMS, so no `accountId` is needed. Disconnecting stops syncing, clears the stored credentials and deactivates the connection's listings; nothing is deleted, and reservations and messages stay. The response also carries `connectionId`. The PMS's own webhook subscription is left in place, because the same PMS account can be connected to another workspace (such as a Repull Migrate workspace). Reconnect with a new Connect session.\n\nOther providers return `501 not_implemented` with instructions for disconnecting on the provider's side. That answer depends only on the provider, not on your workspace: an unsupported provider returns `501` whether or not you have a connection to it. `404 not_found` on a supported provider means this workspace has no connection to it (or, with `accountId`, that the account is not connected here).\n\n**PriceLabs (an app).** Revokes one PriceLabs connection (its key): PriceLabs loses access at once; nothing it already pushed changes and no listing is deactivated. Pass `id` (an `accounts[].id` from `GET /v1/connect/pricelabs`); it is optional only when the workspace has one connected. Sends `account.disconnected` with reason `manual_disconnect`.",
|
|
21687
21840
|
"tags": [
|
|
21688
21841
|
"Connect"
|
|
21689
21842
|
],
|
|
@@ -21700,6 +21853,16 @@
|
|
|
21700
21853
|
"example": "143778955"
|
|
21701
21854
|
},
|
|
21702
21855
|
"description": "The account to disconnect: the Airbnb host id (`accounts[].externalAccountId` on `GET /v1/connect/airbnb`) or the Booking.com hotel id. Required when the workspace has more than one connected account for the provider. Not the same as the `X-Account-Id` header."
|
|
21856
|
+
},
|
|
21857
|
+
{
|
|
21858
|
+
"name": "id",
|
|
21859
|
+
"in": "query",
|
|
21860
|
+
"required": false,
|
|
21861
|
+
"schema": {
|
|
21862
|
+
"type": "string",
|
|
21863
|
+
"example": "812"
|
|
21864
|
+
},
|
|
21865
|
+
"description": "PriceLabs only: the connection to revoke (`accounts[].id` on `GET /v1/connect/pricelabs`). Required when the workspace has more than one."
|
|
21703
21866
|
}
|
|
21704
21867
|
],
|
|
21705
21868
|
"responses": {
|
|
@@ -72661,6 +72824,191 @@
|
|
|
72661
72824
|
}
|
|
72662
72825
|
}
|
|
72663
72826
|
}
|
|
72827
|
+
},
|
|
72828
|
+
"/v1/connect/pricelabs/key": {
|
|
72829
|
+
"post": {
|
|
72830
|
+
"operationId": "createPriceLabsKey",
|
|
72831
|
+
"summary": "Create a PriceLabs key (headless)",
|
|
72832
|
+
"description": "Issue a PriceLabs key without the hosted page, for platforms that show it in their own app. The key is for this workspace, or the one `X-Workspace-Id` names; it is returned once, in `key`, and the host pastes it into PriceLabs (add an integration, choose Repull).\n\n- No `listingIds`: every listing of the workspace, including listings added later. Recommended, with the listings PriceLabs should price in their own sub-workspace.\n- `listingIds`: only those listings (they must belong to the workspace). Listings added later are not included.\n\nThe key works only inside PriceLabs; it is refused on every Repull API endpoint. The connection appears on `GET /v1/connect/pricelabs` with its `health`; `account.created` is sent when PriceLabs first uses the key. Revoke it with `DELETE /v1/connect/pricelabs?id=`.",
|
|
72833
|
+
"tags": [
|
|
72834
|
+
"Connect"
|
|
72835
|
+
],
|
|
72836
|
+
"requestBody": {
|
|
72837
|
+
"required": false,
|
|
72838
|
+
"content": {
|
|
72839
|
+
"application/json": {
|
|
72840
|
+
"schema": {
|
|
72841
|
+
"type": "object",
|
|
72842
|
+
"properties": {
|
|
72843
|
+
"listingIds": {
|
|
72844
|
+
"type": "array",
|
|
72845
|
+
"minItems": 1,
|
|
72846
|
+
"maxItems": 1000,
|
|
72847
|
+
"items": {
|
|
72848
|
+
"type": "string"
|
|
72849
|
+
},
|
|
72850
|
+
"description": "Only these listings of the workspace (`GET /v1/properties`). Omit for every listing, new ones included.",
|
|
72851
|
+
"example": [
|
|
72852
|
+
"4118",
|
|
72853
|
+
"4119"
|
|
72854
|
+
]
|
|
72855
|
+
},
|
|
72856
|
+
"label": {
|
|
72857
|
+
"type": "string",
|
|
72858
|
+
"maxLength": 120,
|
|
72859
|
+
"description": "A name for the connection.",
|
|
72860
|
+
"example": "PriceLabs \u2014 beach houses"
|
|
72861
|
+
}
|
|
72862
|
+
},
|
|
72863
|
+
"additionalProperties": false
|
|
72864
|
+
},
|
|
72865
|
+
"examples": {
|
|
72866
|
+
"workspace": {
|
|
72867
|
+
"summary": "Every listing of the workspace",
|
|
72868
|
+
"value": {}
|
|
72869
|
+
},
|
|
72870
|
+
"listings": {
|
|
72871
|
+
"summary": "Specific listings",
|
|
72872
|
+
"value": {
|
|
72873
|
+
"listingIds": [
|
|
72874
|
+
"4118",
|
|
72875
|
+
"4119"
|
|
72876
|
+
]
|
|
72877
|
+
}
|
|
72878
|
+
}
|
|
72879
|
+
}
|
|
72880
|
+
}
|
|
72881
|
+
}
|
|
72882
|
+
},
|
|
72883
|
+
"responses": {
|
|
72884
|
+
"201": {
|
|
72885
|
+
"description": "Created. `key` is shown only in this response.",
|
|
72886
|
+
"content": {
|
|
72887
|
+
"application/json": {
|
|
72888
|
+
"schema": {
|
|
72889
|
+
"allOf": [
|
|
72890
|
+
{
|
|
72891
|
+
"$ref": "#/components/schemas/Connection"
|
|
72892
|
+
},
|
|
72893
|
+
{
|
|
72894
|
+
"type": "object",
|
|
72895
|
+
"required": [
|
|
72896
|
+
"key",
|
|
72897
|
+
"instructions"
|
|
72898
|
+
],
|
|
72899
|
+
"properties": {
|
|
72900
|
+
"key": {
|
|
72901
|
+
"type": "string",
|
|
72902
|
+
"example": "sk_live_YOUR_PRICELABS_KEY",
|
|
72903
|
+
"description": "The key to paste into PriceLabs. Returned only here."
|
|
72904
|
+
},
|
|
72905
|
+
"instructions": {
|
|
72906
|
+
"type": "object",
|
|
72907
|
+
"description": "What to tell the host, ready to show.",
|
|
72908
|
+
"properties": {
|
|
72909
|
+
"steps": {
|
|
72910
|
+
"type": "array",
|
|
72911
|
+
"items": {
|
|
72912
|
+
"type": "string"
|
|
72913
|
+
}
|
|
72914
|
+
},
|
|
72915
|
+
"scope": {
|
|
72916
|
+
"type": "string"
|
|
72917
|
+
}
|
|
72918
|
+
}
|
|
72919
|
+
}
|
|
72920
|
+
}
|
|
72921
|
+
}
|
|
72922
|
+
]
|
|
72923
|
+
}
|
|
72924
|
+
}
|
|
72925
|
+
}
|
|
72926
|
+
},
|
|
72927
|
+
"400": {
|
|
72928
|
+
"$ref": "#/components/responses/BadRequest"
|
|
72929
|
+
},
|
|
72930
|
+
"401": {
|
|
72931
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
72932
|
+
},
|
|
72933
|
+
"404": {
|
|
72934
|
+
"$ref": "#/components/responses/NotFound"
|
|
72935
|
+
},
|
|
72936
|
+
"422": {
|
|
72937
|
+
"$ref": "#/components/responses/UnprocessableEntity"
|
|
72938
|
+
},
|
|
72939
|
+
"500": {
|
|
72940
|
+
"$ref": "#/components/responses/InternalError"
|
|
72941
|
+
}
|
|
72942
|
+
}
|
|
72943
|
+
}
|
|
72944
|
+
},
|
|
72945
|
+
"/v1/connect/pricelabs/session": {
|
|
72946
|
+
"get": {
|
|
72947
|
+
"operationId": "getPriceLabsSessionStatus",
|
|
72948
|
+
"summary": "PriceLabs session status",
|
|
72949
|
+
"description": "Where a hosted PriceLabs session stands: `pending` (no key issued yet), `waiting` (the key is shown, PriceLabs has not called yet), `connected` (PriceLabs has called with the key; the session is complete) or `expired`. Called by the hosted Connect page while it waits. No API key \u2014 the session ID is the capability token.",
|
|
72950
|
+
"tags": [
|
|
72951
|
+
"Connect"
|
|
72952
|
+
],
|
|
72953
|
+
"security": [],
|
|
72954
|
+
"parameters": [
|
|
72955
|
+
{
|
|
72956
|
+
"name": "sessionId",
|
|
72957
|
+
"in": "query",
|
|
72958
|
+
"required": true,
|
|
72959
|
+
"schema": {
|
|
72960
|
+
"type": "string"
|
|
72961
|
+
}
|
|
72962
|
+
}
|
|
72963
|
+
],
|
|
72964
|
+
"responses": {
|
|
72965
|
+
"200": {
|
|
72966
|
+
"description": "Session status",
|
|
72967
|
+
"content": {
|
|
72968
|
+
"application/json": {
|
|
72969
|
+
"schema": {
|
|
72970
|
+
"type": "object",
|
|
72971
|
+
"properties": {
|
|
72972
|
+
"status": {
|
|
72973
|
+
"type": "string",
|
|
72974
|
+
"enum": [
|
|
72975
|
+
"pending",
|
|
72976
|
+
"waiting",
|
|
72977
|
+
"connected",
|
|
72978
|
+
"expired"
|
|
72979
|
+
]
|
|
72980
|
+
},
|
|
72981
|
+
"connectionId": {
|
|
72982
|
+
"type": "string",
|
|
72983
|
+
"nullable": true,
|
|
72984
|
+
"description": "The PriceLabs connection once the session holds a key."
|
|
72985
|
+
}
|
|
72986
|
+
}
|
|
72987
|
+
}
|
|
72988
|
+
}
|
|
72989
|
+
}
|
|
72990
|
+
},
|
|
72991
|
+
"400": {
|
|
72992
|
+
"$ref": "#/components/responses/BadRequest"
|
|
72993
|
+
},
|
|
72994
|
+
"404": {
|
|
72995
|
+
"$ref": "#/components/responses/NotFound"
|
|
72996
|
+
},
|
|
72997
|
+
"409": {
|
|
72998
|
+
"$ref": "#/components/responses/Conflict"
|
|
72999
|
+
},
|
|
73000
|
+
"410": {
|
|
73001
|
+
"description": "The session expired",
|
|
73002
|
+
"content": {
|
|
73003
|
+
"application/json": {
|
|
73004
|
+
"schema": {
|
|
73005
|
+
"$ref": "#/components/schemas/Error"
|
|
73006
|
+
}
|
|
73007
|
+
}
|
|
73008
|
+
}
|
|
73009
|
+
}
|
|
73010
|
+
}
|
|
73011
|
+
}
|
|
72664
73012
|
}
|
|
72665
73013
|
}
|
|
72666
73014
|
}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: repull
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.58
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Nikolov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -192,6 +192,9 @@ files:
|
|
|
192
192
|
- lib/repull/models/airbnb_transaction_payout.rb
|
|
193
193
|
- lib/repull/models/alteration_change.rb
|
|
194
194
|
- lib/repull/models/alteration_webhook_object.rb
|
|
195
|
+
- lib/repull/models/app_connection_health.rb
|
|
196
|
+
- lib/repull/models/app_connection_health_recent_errors_inner.rb
|
|
197
|
+
- lib/repull/models/app_connection_health_writes_per_day_inner.rb
|
|
195
198
|
- lib/repull/models/apply_connection_mappings200_response.rb
|
|
196
199
|
- lib/repull/models/apply_connection_mappings200_response_results_inner.rb
|
|
197
200
|
- lib/repull/models/apply_connection_mappings_request.rb
|
|
@@ -315,6 +318,7 @@ files:
|
|
|
315
318
|
- lib/repull/models/create_connect_session_request_copy.rb
|
|
316
319
|
- lib/repull/models/create_connect_session_request_workspace.rb
|
|
317
320
|
- lib/repull/models/create_connection_request.rb
|
|
321
|
+
- lib/repull/models/create_connection_request_workspace.rb
|
|
318
322
|
- lib/repull/models/create_conversation_special_offer201_response.rb
|
|
319
323
|
- lib/repull/models/create_conversation_special_offer201_response_fees_inner.rb
|
|
320
324
|
- lib/repull/models/create_conversation_special_offer201_response_guests.rb
|
|
@@ -322,6 +326,9 @@ files:
|
|
|
322
326
|
- lib/repull/models/create_conversation_special_offer_request.rb
|
|
323
327
|
- lib/repull/models/create_conversation_special_offer_request_fees_inner.rb
|
|
324
328
|
- lib/repull/models/create_conversation_special_offer_request_guests.rb
|
|
329
|
+
- lib/repull/models/create_price_labs_key201_response.rb
|
|
330
|
+
- lib/repull/models/create_price_labs_key201_response_all_of_instructions.rb
|
|
331
|
+
- lib/repull/models/create_price_labs_key_request.rb
|
|
325
332
|
- lib/repull/models/create_vrbo_alteration200_response.rb
|
|
326
333
|
- lib/repull/models/create_vrbo_alteration200_response_data.rb
|
|
327
334
|
- lib/repull/models/create_vrbo_alteration200_response_data_before.rb
|
|
@@ -418,6 +425,7 @@ files:
|
|
|
418
425
|
- lib/repull/models/get_migration200_response.rb
|
|
419
426
|
- lib/repull/models/get_migration_channel_map200_response.rb
|
|
420
427
|
- lib/repull/models/get_migration_report200_response.rb
|
|
428
|
+
- lib/repull/models/get_price_labs_session_status200_response.rb
|
|
421
429
|
- lib/repull/models/get_reservation_summary200_response.rb
|
|
422
430
|
- lib/repull/models/get_reservation_summary200_response_totals_inner.rb
|
|
423
431
|
- lib/repull/models/get_usage_logs200_response.rb
|