-
Notifications
You must be signed in to change notification settings - Fork 2
feat(users): add user restriction endpoints #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
marinofranz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Along with the uninstallation of the dependency, we might need to look into merging this into #2 as UserRestriction falls under the universes resource (/cloud/v2/universes/)
marinofranz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove package-lock.json as this codebase uses pnpm
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Roblox's Cloud API reference does list it under Users and Groups, which is why I put it under users.ts 🤷 |
Yeah, we thought the same but we eventually decided to group resources by URL. We've found a few inaccuracies with the Roblox Open Cloud API documentation such as this, but your changes will still come to use, we just need to move them over to the feature branch for universes. Let's keep this PR open and I'll squash-merge your changes into the branch for #2 and move the implementation |
Just asking, is there a specific way you want me to publish PRs if they're a new resource and/or one like the universe endpoints branch? |
Usually you should just send in a PR and it'll get merged into |
- getUserRestriction - updateUserRestriction - updateUserRestriction - listUserRestrictionLogs - types moved to src/types/universes.ts Co-authored-by: Commonly <camblees50@gmail.com>
|
Hey @commonly-ts - got an update for you I've integrated your changes in this PR to our ongoing Universes API implementation in #2 Thanks again for your contribution 🎉 |
Cheers. Just one thing, could you remove my email from the commit message, or replace it with my GitHub no-reply email instead? Thanks! |
- getUserRestriction - updateUserRestriction - updateUserRestriction - listUserRestrictionLogs - types moved to src/types/universes.ts Co-authored-by: Commonly <51011212+commonly-ts@users.noreply.github.com>
Not a problem, I've amended the commit and changed the email from the co-author line 😄 |
- getUserRestriction - updateUserRestriction - updateUserRestriction - listUserRestrictionLogs - types moved to src/types/universes.ts Co-authored-by: Commonly <51011212+commonly-ts@users.noreply.github.com>
- getUserRestriction - updateUserRestriction - updateUserRestriction - listUserRestrictionLogs - types moved to src/types/universes.ts Co-authored-by: Commonly <51011212+commonly-ts@users.noreply.github.com>
- getUserRestriction - updateUserRestriction - updateUserRestriction - listUserRestrictionLogs - types moved to src/types/universes.ts Co-authored-by: Commonly <51011212+commonly-ts@users.noreply.github.com>
# [1.10.0](v1.9.0...v1.10.0) (2025-11-13) ### Bug Fixes * **universes:** replace append with set for URLSearchParams ([0235d34](0235d34)) * **universes:** update translation to use LanguageCode and adjust test cases ([b04246d](b04246d)) * **universes:** update translations to use Partial<Record> and correct language codes ([009a25b](009a25b)) ### Features * add Universes API client ([4ba5fd2](4ba5fd2)) * implement idempotency key generation ([46456c4](46456c4)) * **universes:** add restart universe servers endpoint ([ceeb0e1](ceeb0e1)) * **universes:** add speech asset generation, publishing, and translation methods ([bf5d646](bf5d646)) * **universes:** export Universes resource from index ([d944f85](d944f85)) * **universes:** port UserRestriction endpoints from [#3](#3) ([6a583b5](6a583b5))


Description
Includes all current UserRestriction endpoints according to the cloud API reference.
Type of Change
Changes Made
uuidpackage for generating the idempotency keyTesting
pnpm test)Manual Testing
With the below code, it calls the Roblox API and confirms data has been returned. It also logged the results for manual review of the response.
Invalid universeId and missing credentials (missing/invalid scopes) return OpenCloudError: Unauthorized: invalid or missing Open Cloud credentials.
Code Quality
pnpm lintand fixed any issuespnpm formatto format my codepnpm typecheckand there are no type errorsDocumentation
Screenshots/Recordings
Additional Context
For some reason Roblox decided to call the user Ids "user_restriction_id," so in this "user_restriction_id" just means a Roblox user Id.
updateUserRestriction does support FieldMasks through its updateMask query parameter, but only
game_join_restrictioncan be passed due to it only being able to be updated atomically.Checklist
mainbranch