Skip to content

Commit 45f456c

Browse files
12153BRBussyclaude
authored
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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dev/deploy-maven-ci.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,6 @@ fi
133133
echo
134134
echo "############################################################"
135135
echo "# #"
136-
echo "# 🎉 Maven Central deployment complete! 📦 #"
136+
echo "# 🎉 Maven Central deployment complete! 📦 #"
137137
echo "# #"
138-
echo "############################################################"
138+
echo "############################################################"

dev/generate/java.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,4 @@ echo "🧹 Cleaning Java generated files..."
134134
echo "☕ Generating Java code from protobuf definitions..."
135135
buf generate --template "$SCRIPT_DIR/buf/buf.gen.java.yaml"
136136

137-
echo "✅ Java code generation complete!"
137+
echo "✅ Java code generation complete!"

dev/test/go.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,6 @@ echo " Go directive: $(grep 'go [0-9]' go.mod | cut -d' ' -f2)"
9696
echo
9797
echo "############################################################"
9898
echo "# #"
99-
echo "# 🎉 Go testing complete! 🐹 #"
99+
echo "# 🎉 Go testing complete! 🐹 #"
100100
echo "# #"
101-
echo "############################################################"
101+
echo "############################################################"

dev/test/java.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ fi
7474
echo
7575
echo "############################################################"
7676
echo "# #"
77-
echo "# 🎉 Java testing complete! ☕ #"
77+
echo "# 🎉 Java testing complete! ☕ #"
7878
echo "# #"
79-
echo "############################################################"
79+
echo "############################################################"

dev/test/python.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,6 @@ fi
7575
echo
7676
echo "############################################################"
7777
echo "# #"
78-
echo "# 🎉 Python testing complete! 🐍 #"
78+
echo "# 🎉 Python testing complete! 🐍 #"
7979
echo "# #"
80-
echo "############################################################"
80+
echo "############################################################"

dev/test/ts-node.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ echo " Yarn: $(yarn --version)"
7373
echo
7474
echo "############################################################"
7575
echo "# #"
76-
echo "# 🎉 TypeScript Node testing complete! 🔷 #"
76+
echo "# 🎉 TypeScript Node testing complete! 🔷 #"
7777
echo "# #"
7878
echo "############################################################"

dev/test/ts-old.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ echo "===================="
1919

2020
# Check environment first
2121
echo "🔍 Checking TypeScript environment..."
22-
if ! "$SCRIPT_DIR/../env/ts-old.sh"; then
22+
if ! "$SCRIPT_DIR/../env/ts-web.sh"; then
2323
echo "❌ TypeScript environment check failed. Please fix the issues above."
2424
exit 1
2525
fi

dev/test/ts-web.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ echo "############################################################"
7474
echo "# #"
7575
echo "# 🎉 TypeScript (Web) testing complete! 🔷 #"
7676
echo "# #"
77-
echo "############################################################"
77+
echo "############################################################"

docs/docs/api-reference/iam/api_user/v1/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ Deactivates an API user, disabling API key authentication. Use this to temporari
7272

7373
### Role Management
7474

75-
#### [AssignRolesToAPIUser](/docs/api-reference/iam/api_user/v1/service/assign-roles-to-a-p-i-user)
75+
#### [AssignRolesToAPIUser](/docs/api-reference/iam/api_user/v1/service/assign-roles-to-api-user)
7676
Assigns roles to an existing API user within the authenticated group context. The role assignments enable the API user to perform operations according to the permissions associated with those roles. Use this to grant new capabilities to an API user.
7777

78-
#### [RevokeRolesFromAPIUser](/docs/api-reference/iam/api_user/v1/service/revoke-roles-from-a-p-i-user)
78+
#### [RevokeRolesFromAPIUser](/docs/api-reference/iam/api_user/v1/service/revoke-roles-from-api-user)
7979
Revokes roles from an existing API user within the authenticated group context. The role revocations remove the permissions associated with those roles from the API user. Use this to restrict API user capabilities or implement principle of least privilege.
8080

8181
## Authentication & Authorization

docs/docs/api-reference/iam/api_user/v1/service/activate-a-p-i-user/example.go renamed to docs/docs/api-reference/iam/api_user/v1/service/activate-api-user/example.go

File renamed without changes.

0 commit comments

Comments
 (0)