Repository navigation
feat(adapters): add read-only Faire adapter (#1408) - #1563
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…1408) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Thanks @aj-codespy, this looks good. We checked it: GET only, fixed base URL, credentials only as variable references, CI green. On the auth question: keep the documented OAuth pair as it is. No second variant for the Brand Portal token for now. If a user asks for it later, we can add it then. When you're happy with it, mark the PR as ready for review. We'll update the branch and merge it. |
aj-codespy
marked this pull request as ready for review
November 7, 2026 08:05
helpcodeai
enabled auto-merge (squash)
November 8, 2026 08:02
Contributor
|
Merged, thanks @aj-codespy! After updating the branch, main already had one more adapter, so we bumped the quoted counts to 715 on your branch before merging. Faire will be on Cloud with the next deploy, today. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Read-only Faire adapter for brands, from #1408. It's a draft so you can comment on the tool list and the auth choice before it's marked ready.
Auth: one question for you
The issue says
X-FAIRE-ACCESS-TOKEN. The current brand-side docs (developers.faire.com, where faire.github.io/external-api-v2-docs now redirects) list only OAuth as the security scheme. Every request sends two headers:X-FAIRE-OAUTH-ACCESS-TOKEN: the OAuth access tokenX-FAIRE-APP-CREDENTIALS:applicationId:applicationSecret, Base64-encodedThe docs say OAuth tokens differ from "the access tokens used for V1 and V2". They still suggest single brands generate a token in the Brand Portal, but no longer name the header for it.
So the adapter uses the documented OAuth pair:
authType: API_KEYwithheaderNameplusextraHeaders, the same pattern asde/clockodo.jsonandbe/falco.json. Both values are{{FAIRE_OAUTH_ACCESS_TOKEN}}and{{FAIRE_APP_CREDENTIALS}}variable references.Would you also like support for the Brand Portal token (
X-FAIRE-ACCESS-TOKEN)? If so, should it be a second adapter variant, or should I switch to it entirely?Tools (all GET, read-only)
faire_get_brand_profileGET /brands/profilefaire_list_ordersGET /ordersupdated_at_min,created_at_min,excluded_states,ship_after_max; mapping keeps state, dates, retailer, items, shipments, payout total (drops street address and phone)faire_get_orderGET /orders/{order_id}faire_list_productsGET /productssku,updated_at_min,include_deleted; mapping keeps variants with SKU, options, stock, pricesfaire_get_productGET /products/{product_id}faire_get_inventory_by_skusGET /product-inventory/by-skusfaire_get_inventory_by_variant_idsGET /product-inventory/by-product-variant-idsThe issue's "inventory levels" now maps to
/product-inventory/by-*: Faire removed the old/products/variants/inventory-levels-by-*endpoints on 2026-06-01.Changes
packages/backend/src/adapters/intl/faire.jsonand the regeneratedcatalog.tspackages/backend/src/adapters/intl/faire.live.spec.ts: static tests always run; live tests run only withRUN_FAIRE_LIVE=1llms.txtandllms-full.txtpackages/frontend/public/logos/connectors/faire.svg: a simple monogram placeholder; happy to swap in the official mark if you preferTesting
Run from the repository root:
None of the 1,440 warnings is in
intl/faire.json; all of them existed before.Run in
packages/backend:I didn't run the full backend suite or
tsclocally; I'm relying on CI for those.Live calls: none. I don't have a Faire brand account with an authorized app, so this is built from the docs. The live tests run only when
RUN_FAIRE_LIVE=1is set.Type
Related Issues
Closes #1408
🤖 Generated with Claude Code