Skip to content

feat: mark OrgRule endpoint fields optional for app-permission rules#47

Merged
guyb1 merged 1 commit into
mainfrom
feat/identity-only-permission-catalog
Jul 5, 2026
Merged

feat: mark OrgRule endpoint fields optional for app-permission rules#47
guyb1 merged 1 commit into
mainfrom
feat/identity-only-permission-catalog

Conversation

@guyb1

@guyb1 guyb1 commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

What

  • OrgRule.hostPattern/pathPattern/method become optional: present on custom (user-authored) rules, omitted on app-permission rules, which are identified by metadata.provider + metadata.toolId (JSDoc added).
  • README notes the two rule kinds in the org-rules section.
  • New test pins decoding of a mixed listing (masked app-permission rule + custom rule).

Inputs (CreateOrgRuleInput/UpdateOrgRuleInput) are unchanged; runtime behavior is a pass-through as before — this is a type-accuracy release.

Merge order

Server side ships first: onecli/onecli-cloud#626 (merge + deploy), then this PR any time after. Sibling CLI PR: onecli/onecli-cli#91.

Gates: pnpm typecheck, pnpm test (88 tests), pnpm build — all green.

🤖 Generated with Claude Code

Rule listings mix custom rules (which carry hostPattern/pathPattern/method)
with app-permission rules, which omit those endpoint fields and are
identified by metadata.provider + metadata.toolId. Type OrgRule accordingly,
document the two kinds in the README, and pin the mixed-list decode in a
test. Inputs (CreateOrgRuleInput/UpdateOrgRuleInput) are unchanged.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@guyb1 guyb1 merged commit 411ff24 into main Jul 5, 2026
3 checks passed
@guyb1 guyb1 deleted the feat/identity-only-permission-catalog branch July 5, 2026 00:47
@guyb1 guyb1 mentioned this pull request Jul 5, 2026
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.

1 participant