Tags: meshtrade/api
Tags
Update Go SDK role utilities to use 4-part resource name format (#79) Changes role full resource name format from 3-part (groups/{groupID}/{roleNumber}) to 4-part (groups/{groupID}/roles/{roleNumber}) for consistency with Python and Java SDKs and protobuf validation patterns. Updated functions: - FullResourceNameFromGroupID: Now includes /roles/ segment - FullResourceNameFromGroupName: Now includes /roles/ segment - RoleFromFullResourceName: Parses 4-part format - ParseRoleParts: Validates 4-part format with /roles/ keyword All tests pass with comprehensive coverage of the new format. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
Add missing Python SDK companion function exports (#74) * Add missing Python SDK companion function exports to __init__.py files Export 48 handwritten SDK helper functions and 1 exception class across 6 packages: - meshtrade/type/v1: Add 33 exports (amount, decimal_operations, token, ledger helpers) - Amount functions: amount_is_equal_to, amount_add, amount_sub, etc. - Decimal operations: decimal_add, decimal_equal, decimal_round, etc. - Token helpers: token_is_undefined, token_pretty_string, etc. - Ledger helpers: ledger_is_valid, UnsupportedLedgerError, etc. - meshtrade/iam/api_user/v1: Add 3 credential helper exports - default_credentials_path, load_default_credentials, find_credentials - meshtrade/iam/role/v1: Add 6 role utility exports - role_is_valid, parse_role_parts, role_from_full_resource_name, etc. - meshtrade/compliance/client/v1: Add 4 client role exports - get_client_default_roles, must_get_client_default_roles, etc. - meshtrade/ledger/transaction/v1: Add 1 state machine export - transaction_state_can_perform_action_at_state - meshtrade/reporting/account_report/v1: Add 1 formatting export - income_narrative_pretty_string All changes pass ruff linting and formatting checks. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * Add Iterator type hints to Python SDK streaming methods Updates protoc-gen-meshpy template to add proper return type annotations for server-side streaming methods using Iterator[ResponseType]. Uses collections.abc.Iterator (Python 3.9+ best practice) instead of typing.Iterator for modern Python compatibility. Changes: - Add Iterator import from collections.abc - Add -> Iterator[ResponseType] return type to streaming method signature All 306 tests passing. Production ready. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
PreviousNext