Commit 45f456c
User profile (#162)
* feaet(iam): api defined
* chore(user_profile): examples added
* user-profile
* user-profile
* fix
* fix
* lock
* update fields
* update service
* Refactor user profile service and simplify data model
- Simplify UserProfile protobuf message by removing FirstName, LastName, and ContactDetails fields
- Update CreateUserProfile to return UserProfile directly instead of response wrapper
- Rename GetMyUserProfile to GetUserProfileByUser for clarity
- Regenerate all language bindings (Go, Python) and documentation examples
- Update service interface and mock implementations
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* update api for review
* update
* build
* Add field documentation to User and UserProfile protobuf messages
- Add comprehensive field comments to UserProfile message (user_profile.proto):
* user: Link to associated user resource
* local: Locale/language preference (IETF BCP 47 format)
* profile_picture_url: Avatar image URL
* display_name: User's display identifier
* display_currency: Preferred currency for UI display
* reporting_currency: Currency for financial reporting
- Add field comment to User message (user.proto):
* mobile_number: Phone number for MFA, notifications, and contact
All comments follow existing documentation style with clear descriptions
of field purpose, expected formats, and business context.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* update
* update docs
* remove unused search methods
* fix: UserProfile validation, MobileNumber typo, and doc generator acronym handling
Proto changes:
- Add required validation on UserProfile.user field with proper format checking
- Add optional BCP 47 validation on UserProfile.locale field
- Add optional URI validation on UserProfile.profile_picture_url field
- Fix typo: MobileNumber.verfied -> MobileNumber.verified
- Remove unused CreateUserProfileRequest message
- Remove unused sorting import from user_profile service
Test changes:
- Remove SearchUsersRequest validation tests (method was removed)
- Add comprehensive validation tests for UserProfile and service requests
- Add tests for locale (BCP 47) and profile_picture_url (URI) validation
Doc generator fixes (protoc-gen-meshdoc):
- Fix kebabCase() to handle acronyms properly (CreateAPIUser -> create-api-user)
- Fix snakeCase() with same acronym handling for consistency
- Add goPascalCase() for Go identifiers (api_user -> APIUser)
- Add comprehensive tests for case conversion functions
- Rename API user doc directories from a-p-i-user to api-user format
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* chore: update baseline-browser-mapping to fix Docusaurus build warning
Add resolutions field to root package.json to force baseline-browser-mapping
to latest version (2.9.19) for all transitive dependencies.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Bernard Bussy <bernard.r.bussy@gmail.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent b3aec16 commit 45f456c
91 files changed
Lines changed: 3942 additions & 863 deletions
File tree
- dev
- generate
- test
- docs
- docs/api-reference/iam
- api_user/v1
- service
- activate-api-user
- assign-roles-to-api-user
- create-a-p-i-user
- create-api-user
- deactivate-api-user
- get-api-user-by-key-hash
- get-api-user
- list-api-users
- revoke-roles-from-api-user
- search-api-users
- user_profile/v1
- service
- get-user-profile-by-user
- get-user-profile
- list-user-profiles
- update-user-profile
- user/v1/service/search-users
- go/iam
- role/v1
- user_profile/v1
- user/v1
- java/src/main/java/co/meshtrade/api/auth
- proto/meshtrade/iam
- role/v1
- user_profile/v1
- user/v1
- python/src/meshtrade/iam
- user_profile/v1
- user/v1
- tool/protoc-gen-meshdoc/pkg/generate
- ts-node/src/meshtrade/iam
- role/v1
- user_profile/v1
- ts-old/src/meshtrade/iam
- role/v1
- user_profile/v1
- ts-web
- src/meshtrade/iam
- role/v1
- user_profile
- v1
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments