Skip to content

Add missing roles field to getUserPermissions types#126

Open
dshoen619 wants to merge 1 commit intomainfrom
per-14323-missing-roles-field-in-getuserpermissions
Open

Add missing roles field to getUserPermissions types#126
dshoen619 wants to merge 1 commit intomainfrom
per-14323-missing-roles-field-in-getuserpermissions

Conversation

@dshoen619
Copy link
Copy Markdown

@dshoen619 dshoen619 commented Apr 1, 2026

Summary

  • Adds roles?: string[] to TenantPermissions and ResourcePermissions interfaces in src/enforcement/interfaces.ts
  • The PDP returns a roles array in getUserPermissions responses, but the SDK types were missing this field, forcing users to use as any type assertions

Fixes PER-14323

…types

The PDP returns a roles array in getUserPermissions responses, but the
SDK types did not include it, forcing users to use type assertions.

Fixes PER-14323

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@linear
Copy link
Copy Markdown

linear bot commented Apr 1, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant