Skip to content

Commit 8661ed8

Browse files
dshoen619claude
andcommitted
Add missing roles field to TenantPermissions and ResourcePermissions 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>
1 parent 1898747 commit 8661ed8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/enforcement/interfaces.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export interface AllTenantsResponse {
147147

148148
interface TenantPermissions {
149149
permissions: string[];
150+
roles?: string[];
150151
tenant?: {
151152
key: string;
152153
attributes: {
@@ -157,6 +158,7 @@ interface TenantPermissions {
157158

158159
interface ResourcePermissions {
159160
permissions: string[];
161+
roles?: string[];
160162
resource?: {
161163
type: string;
162164
key: string;

0 commit comments

Comments
 (0)