Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

feat: rpc method metadata and /rpc/methods discovery#2

Merged
deepracticexs merged 1 commit intomainfrom
feat/rpc-method-metadata
Mar 18, 2026
Merged

feat: rpc method metadata and /rpc/methods discovery#2
deepracticexs merged 1 commit intomainfrom
feat/rpc-method-metadata

Conversation

@deepracticexs
Copy link
Member

Summary

  • Replace publicMethods() with inline permissions on method definitions (permissions: [] = public, permissions: ["admin"] = requires role, undefined = requires auth)
  • Add RpcMethodDefinition with description and permissions fields for self-documenting RPC methods
  • Add /rpc/methods GET endpoint and rpc.methods built-in RPC method for method discovery (replaces /schema and rpc.describe)
  • Bare handler still supported for backward compatibility (normalized internally)

Breaking changes

  • publicMethods() builder method removed
  • ServiceDefinition.publicMethods field removed
  • /schema endpoint renamed to /rpc/methods
  • rpc.describe renamed to rpc.methods

Test plan

  • All 25 BDD tests pass
  • Build succeeds for all 3 packages

🤖 Generated with Claude Code

Replace publicMethods() with inline permissions on method definitions.
Add /rpc/methods GET endpoint for service method discovery.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@deepracticexs deepracticexs merged commit 9f68ac8 into main Mar 18, 2026
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant