Repository navigation
Releases
Releases · actorhub/actorhub-sdk
0.10.1
- Retries back off with full jitter, configurable with retryBaseDelay / retryMaxDelay (Node, ms) and retry_base_delay / retry_max_delay (Python, s). A Retry-After on a 503 is honoured as on a 429.
- Node: maxRetries 1 now means one attempt (it was read as 3), and a network failure is retried on calls safe to repeat, as Python already did.
- ValidationError.fieldErrors / field_errors gives {field: message} from either validation shape; ServerError.retryAfter / retry_after is set from a 503's Retry-After.
0.10.0
- New package names: the SDK is published as @actorhubai/sdk on npm and actorhub on PyPI, the names of the earlier consent client, which it replaces. Consent checks are part of this SDK (checkConsent / check_consent). In Node change the import from @actorhubai/platform-sdk to @actorhubai/sdk; in Python the import stays actorhub. Installs from npm and PyPI work once the packages are published there; the GitHub Release links keep working.
- webhooks.allDeliveries / webhooks.all_deliveries reads the delivery log of every subscription (GET /webhooks/deliveries).
- negotiations.list pages: limit (up to 200) and cursor, with next_cursor in the answer. Without them it returns the first 50, as before.
- The wallet top-up sends amount_usd in the JSON body; the query parameter still works.
- A 4xx answer no longer carries the code INTERNAL_ERROR: a negotiation the wallet cannot cover is insufficient_credits, and a refused embed session, theme or origins value is VALIDATION_ERROR. The HTTP status is unchanged, so code that branches on it keeps working.
0.9.0
- No API change. The SDK is open source under the MIT license, and the repository github.com/actorhub/actorhub-sdk is public.
- Install straight from the GitHub Release of each version, with no GitHub login. An API key is still issued by ACTORHUB: a test key on request, a live key after approval.
- A plain npm install in a clean copy of the js or embed folder works again: vite is pinned to 7 and each folder has its package-lock.json.
0.8.1
- No API change. The repository moved to github.com/actorhub/actorhub-sdk; the old address redirects, so nothing you installed breaks.
- Support and licensing questions go to shilo@actorhub.ai.
0.8.0
- Your server learns which of its users became talent: identity.created and identity.verified carry data.end_user_ref (your own id for the person), and are part of PLATFORM_KIT_EVENTS.
- The store side of a shop link can be tried in test mode: a test sales key and a sample code answer like a paid sale and send sale.attributed with test: true. Nothing is recorded.
- Errors: a flat error body keeps its code (rate_limit_exceeded), HTTP 409 is a ConflictError (demo_mode in test mode), and a refused sale carries the API code (bad_key, unknown_code, not_live, invalid). In Node, reportShopLinkSale now throws ActorHubError. In Python, fund_budget, set_shopify_secret and report_shop_link_sale return models instead of dicts.
- webhooks.test takes the type of the sample event. Licences of demo checkouts read test: true. The Python package ships type information.
- Install from the release assets (Node and Python); the docs name one way to do each thing.
0.7.9
- No API change. A partner's signed-in user joins as talent with no sign-up form: send endUser.email (an address they verified with you) and ref when you open the session; ACTORHUB opens or connects their account by ref.
- The talent's dashboard (talent_home) opens inside your page with a short-lived frame token instead of a cookie, so it works in Safari and on iPhone. In test mode it shows a read-only sample talent dashboard.
0.7.8
- The packages have new names, nothing else changed: @actorhubai/platform-sdk on npm (it was @actorhubai/sdk) and actorhub-platform for Python (it was actorhub; the import stays actorhub). The public @actorhubai/sdk and actorhub are a different package, the open consent client.
- The SDK, its docs and every release now live in the private repository github.com/actorhubai/actorhub-sdk.
0.7.7
- Shop links: your users add a tracked link to their product in the talent's Instagram post, and she earns a commission on every sale, from a budget they prepay. Manage them with shopLinks (Python shop_links).
- reportShopLinkSale (Python report_shop_link_sale): a store reports an order with its sales key. Shopify stores can send their order webhook instead.
- New webhook events: promotion.approved, promotion.declined, sale.attributed, promotion.budget_low.
0.7.6
- Tells you when a newer version exists: every API answer carries X-ActorHub-SDK-Latest, and the client warns once and calls onUpdateAvailable (Python on_update_available).
- Your webhook endpoint receives sdk.released when we publish a version, signed like every other event.