Commit bc6c9ba
Unified API Authentication and Method Options Architecture (#90)
* start new method options type
* Fix proto syntax error and regenerate SDKs
- Fix missing closing quote in api_user service.proto import statement
- Regenerate Go SDK with corrected proto definitions
- Add generated SDK code for new method_options package across Go, Python, and TypeScript
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Refactor all services to use unified method_options
Migrate all 8 services (34 methods total) from legacy separate method_type
and roles options to the new unified method_options pattern.
Changes:
- Replace separate imports with unified method_options import
- Convert method options to consolidated format with type, access_level, and roles
- Apply METHOD_ACCESS_LEVEL_AUTHORISED to all WRITE operations
- Apply METHOD_ACCESS_LEVEL_AUTHENTICATED to all READ operations
Services updated:
- compliance/client/v1 (3 methods)
- iam/group/v1 (5 methods)
- iam/user/v1 (7 methods)
- ledger/transaction/v1 (2 methods)
- reporting/account_report/v1 (2 methods)
- trading/limit_order/v1 (7 methods)
- trading/market_order/v1 (1 method)
- wallet/account/v1 (7 methods)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* start code generation upgrade
* update code generator to generate improved service index files
* add missing required: true
* fix protoc-gen-meshdoc: add type column, fix required detection, support nested tables
- Add Type column to method parameter documentation tables with fully qualified type names
- Fix Required field detection to only use explicit required:true from buf.validate
- Add support for nested tables when documenting inline message types
- Update FieldInfo and FieldTemplateData structs with NestedFields for recursive parsing
- Regenerate Go, Python, and TypeScript SDKs from protobuf changes
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* make sidebar hideable
* bump docusaurus versions
* fix protoc-gen-meshdoc: add response field tables for non-resource returns
Generate HTML tables with Field, Type, and Description columns for response
objects (methods returning *Response types). Resource returns continue to
show links to type documentation.
Changes:
- Add ResponseFields to MethodDocData for template rendering
- Add OutputMessage reference to MethodInfo for field parsing
- Parse response message fields when IsResourceReturn is false
- Update method_doc.mdx.tmpl to render table for response objects
- Support nested field structures with recursive table rendering
Fixes documentation generation issue where response objects showed only
the message name without field details.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Fix message type documentation to use HTML tables instead of MD tables
Update protoc-gen-meshdoc message_doc.mdx.tmpl template to generate
HTML tables for message type documentation files. This improves
rendering in the documentation site and provides better support for
complex field descriptions with proper MDX/JSX escaping.
- Replace MD table syntax with semantic HTML table structure
- Add accessibility attributes (scope="col") to table headers
- Use normalizeTable function for proper curly brace escaping and
newline normalization in descriptions
- Maintain backward compatibility with enum documentation (unchanged)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Clean up after ApiUser to APIUser capitalization change
Fixes all breaking changes from the protobuf service name update:
- Remove duplicate documentation directories (old vs new naming)
- Fix Java package structure and move files to correct api_user package
- Update Python test imports to use new capitalized names
- Fix Go integration tests with proper error handling
- Update generated documentation examples to use NewAPIUserService
All language SDKs now pass linting and tests successfully.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix auto generated docs
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 61c60e2 commit bc6c9ba
100 files changed
Lines changed: 3188 additions & 2626 deletions
File tree
- docs
- docs
- api-reference/iam
- api_user/v1/service
- activate-a-p-i-user
- activate-api-user
- assign-roles-to-a-p-i-user
- create-a-p-i-user
- create-api-user
- deactivate-a-p-i-user
- deactivate-api-user
- get-a-p-i-user-by-key-hash
- get-a-p-i-user
- get-api-user-by-key-hash
- get-api-user
- list-a-p-i-users
- list-api-users
- revoke-roles-from-a-p-i-user
- search-a-p-i-users
- search-api-users
- user/v1/service
- assign-roles-to-user
- revoke-roles-from-user
- introduction/examples
- go
- compliance/client/v1
- iam
- api_user/v1
- group/v1
- role/v1
- user/v1
- ledger/transaction/v1
- option
- method_options/v1
- v1
- reporting/account_report/v1
- trading
- limit_order/v1
- market_order/v1
- wallet/account/v1
- java/src
- main/java/co/meshtrade/api/iam/api_user/v1
- test/java/co/meshtrade/api/iam/api_user/v1
- proto/meshtrade
- compliance/client/v1
- iam
- api_user/v1
- group/v1
- role/v1
- user/v1
- ledger/transaction/v1
- option
- method_options/v1
- v1
- reporting/account_report/v1
- trading
- limit_order/v1
- market_order/v1
- wallet/account/v1
- python
- src/meshtrade
- iam
- api_user/v1
- role/v1
- option/method_options/v1
- tests/unit/iam/api_user/v1
- tool/protoc-gen-meshdoc
- pkg/generate
- templates
- ts/src/meshtrade/option/method_options/v1
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
Lines changed: 0 additions & 59 deletions
This file was deleted.
Binary file not shown.
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
0 commit comments