Skip to content

Commit d4a1e50

Browse files
[8.2] Apply changes to UserProfile model
Co-authored-by: Seth Michael Larson <[email protected]>
1 parent 429de0a commit d4a1e50

File tree

4 files changed

+119
-16
lines changed

4 files changed

+119
-16
lines changed

output/schema/schema.json

Lines changed: 97 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 10 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/security/_types/UserProfile.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919

2020
import { Dictionary } from '@spec_utils/Dictionary'
2121
import { UserDefinedValue } from '@spec_utils/UserDefinedValue'
22-
import { User } from './User'
22+
import { Username, Name } from '@_types/common'
23+
import { Metadata } from '@_types/common'
2324
import { long } from '@_types/Numeric'
2425
import { SequenceNumber } from '@_types/common'
2526

@@ -28,11 +29,19 @@ export class UserProfileHitMetadata {
2829
_seq_no: SequenceNumber
2930
}
3031

32+
export class UserProfileUser {
33+
email?: string | null
34+
full_name?: Name | null
35+
metadata: Metadata
36+
roles: string[]
37+
username: Username
38+
}
39+
3140
export class UserProfile {
3241
uid: string
33-
user: User
42+
user: UserProfileUser
3443
data?: Dictionary<string, UserDefinedValue>
35-
access?: Dictionary<string, UserDefinedValue>
44+
labels?: Dictionary<string, UserDefinedValue>
3645
enabled?: boolean
3746
}
3847

0 commit comments

Comments
 (0)