Skip to content

Commit a89f2f5

Browse files
authored
Fix property and field names for User Profile APIs
1 parent f6bef56 commit a89f2f5

File tree

4 files changed

+32
-19
lines changed

4 files changed

+32
-19
lines changed

output/schema/schema.json

Lines changed: 20 additions & 9 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: 6 additions & 5 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: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,21 @@ export class UserProfileHitMetadata {
3232
export class UserProfileUser {
3333
email?: string | null
3434
full_name?: Name | null
35-
metadata: Metadata
35+
realm_name: Name
36+
realm_domain?: Name
3637
roles: string[]
3738
username: Username
3839
}
3940

4041
export class UserProfile {
4142
uid: string
4243
user: UserProfileUser
43-
data?: Dictionary<string, UserDefinedValue>
44-
labels?: Dictionary<string, UserDefinedValue>
44+
data: Dictionary<string, UserDefinedValue>
45+
labels: Dictionary<string, UserDefinedValue>
4546
enabled?: boolean
4647
}
4748

4849
export class UserProfileWithMetadata extends UserProfile {
4950
last_synchronized: long
50-
_doc?: UserProfileHitMetadata
51+
_doc: UserProfileHitMetadata
5152
}

specification/security/update_user_profile_data/Request.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export interface Request extends RequestBase {
5858
* Searchable data that you want to associate with the user profile. This
5959
* field supports a nested data structure.
6060
*/
61-
access?: Dictionary<string, UserDefinedValue>
61+
labels?: Dictionary<string, UserDefinedValue>
6262
/**
6363
* Non-searchable data that you want to associate with the user profile.
6464
* This field supports a nested data structure.

0 commit comments

Comments
 (0)