Skip to content

Use generated types for phone pairing - #2

Merged
almas-alright merged 1 commit into
mainfrom
claude/keen-edison-tnfd8h
Oct 18, 2026
Merged

almas-alright merged 1 commit into
mainfrom
claude/keen-edison-tnfd8h

Conversation

@almas-alright

Copy link
Copy Markdown
Contributor

pairkit's /v1/pair/* routes now declare response models (pairkit PR #1). So the phone-pairing types come from the API's OpenAPI contract like everything else, and are no longer written by hand.

  • openapi.json is refreshed from the API running the new pairkit, and the types are regenerated (npm run api:types).
  • PairClaim is now the generated Claimed type. PairGrant is the generated Collected type plus the space_id that ScribbleScan's grant hook adds.
  • CLAUDE.md is updated to match.

The JSON on the wire doesn't change. Type-check, Biome, 26 tests and the build all pass.


Generated by Claude Code

pairkit now declares response models for its /v1/pair/* routes, so the
claim and grant types come from the API's OpenAPI contract like
everything else. PairGrant adds the space_id that ScribbleScan's grant
hook puts in the grant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A5s1B8CvD6MoPSJZpL8ScT
@coderabbitai

coderabbitai Bot commented Oct 18, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4eef97ec-ab18-457f-97ed-71159a395b82
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 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-10-18T15:07:58.184632Z 1360350 PR opened
ℹ️ 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.

@almas-alright almas-alright left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

@almas-alright
almas-alright merged commit 232cbb4 into main Oct 18, 2026
3 checks passed
@almas-alright
almas-alright deleted the claude/keen-edison-tnfd8h branch October 27, 2026 05:28
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