Skip to content

docs: spell the brand "Onepin" and feature the OnepinClient client - #121

Merged
kj-podonos merged 1 commit into
mainfrom
kj-podonos/manama
Sep 21, 2026
Merged

kj-podonos merged 1 commit into
mainfrom
kj-podonos/manama

Conversation

@kj-podonos

Copy link
Copy Markdown
Contributor

Summary

Brand fix: spell the product "Onepin" (not "OnePin") in the SDK's docs and examples, and feature the correctly-named OnepinClient as the client users import. This is the no-rebuild slice of the rename — the generated client class rename is deferred (see below).

What changed

  • README + examples now feature OnepinClient / AsyncOnepinClient (the credential-resolving, version-gated hand-rolled client) with api_key= instead of the raw OnePinClient(token=...). Dev targeting uses base_url= rather than the environment enum, because OnepinClient resolves base_url from credentials and would silently ignore environment=.
  • Version-gate response header literal renamed X-OnePin-Required-Version → X-Onepin-Required-Version to match the backend. Safe: the SDK matches header names case-insensitively (_version_gate.required_version_from lowercases keys; test_version_gate asserts both casings).
  • scripts/post_fern.sh now rebrands the generated README to "Onepin" (was "OnePin"), so the next regen is brand-correct.
  • Swept stray brand prose in _version_gate.py docstrings and fern/generators.yml comments.

Deliberately NOT changed (needs the deferred regen)

The generated OnePinClient / AsyncOnePinClient classes, the OnePinClientEnvironment enum, OnePinUpgradeRequiredError, and the CLI's internal exception classes keep their current names. Renaming the generated client requires a Fern regen, and the current generator (latest, unpinned) also flips list endpoints to auto-pagination — an unrelated behavior change. That regen is a separate, deliberate piece of work (pin the generator + handle pagination), tracked for later. OnePinClient(token=...) still works, so no existing code breaks.

Testing

  • make test — full CLI/unit suite passes.
  • make lint (ruff check + format) and make typecheck (mypy) clean.
  • python -c "from onepin import OnepinClient, AsyncOnepinClient" imports OK.

🤖 Generated with Claude Code

No-rebuild brand fix (the generated client class rename needs a Fern regen,
which is deferred because the current generator also flips list endpoints to
auto-pagination — a separate, deliberate change).

- Feature `OnepinClient` / `AsyncOnepinClient` (credential-resolving, version-gated
  hand-rolled client) in the README and examples, using `api_key=` (not `token=`).
  Dev targeting uses `base_url=` rather than the enum, because OnepinClient resolves
  base_url from credentials and would ignore `environment=`.
- Rename the version-gate response header literal `X-OnePin-Required-Version` ->
  `X-Onepin-Required-Version` to match the backend; safe because the SDK matches header
  names case-insensitively (test_version_gate covers both casings).
- Fix `scripts/post_fern.sh` so future regens brand the generated README "Onepin".
- Sweep stray brand prose in `_version_gate.py` docstrings and `fern/generators.yml`
  comments.

Deliberately unchanged (require the deferred regen): the generated `OnePinClient`/
`AsyncOnePinClient` classes, `OnePinClientEnvironment` enum, `OnePinUpgradeRequiredError`,
and the CLI's internal exception classes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kj-podonos kj-podonos self-assigned this Sep 21, 2026
@kj-podonos

Copy link
Copy Markdown
Contributor Author

@claude review

@kj-podonos

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-21T05:08:37.846932Z 22494b3 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 22494b33b6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@kj-podonos
kj-podonos merged commit 59a2c48 into main Sep 21, 2026
23 checks passed
@kj-podonos
kj-podonos deleted the kj-podonos/manama branch September 21, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants