Skip to content
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

Update schema definitions - 20240328164504 #11

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions schemas/all-log-types.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,9 @@
},
{
"$ref": "#/definitions/w"
},
{
"$ref": "#/definitions/wum"
}
]
},
Expand Down Expand Up @@ -14295,6 +14298,72 @@
"type"
],
"type": "object"
},
"wum": {
"description": "A warning has happened during user management related tasks",
"properties": {
"$event_schema": {
"description": "Event schema meta",
"allOf": [
{
"$ref": "#/definitions/SchemaMeta"
}
]
},
"description": {
"description": "Description of the event. This can also contain a description of the issue for failure logs.",
"type": "string"
},
"details": {
"description": "Log details",
"properties": {
"tenant": {
"type": "string"
},
"user_id": {
"type": "string"
}
},
"type": "object"
},
"log_id": {
"description": "Log id",
"type": "string"
},
"type": {
"const": "wum",
"description": "Warning User Management",
"type": "string"
},
"user_agent": {
"description": "The user_agent behind this log, when available",
"examples": [
"Chrome 120.0.0 / Mac OS X 10.15.7"
],
"type": "string"
},
"user_id": {
"description": "ID of the user behind the auth flow, or of the user executing the action, whichever applies. For machine to machine auth flows, this field may contain an empty string. For failure logs, the value may be a valid ID, an invalid ID, or empty string",
"type": "string"
},
"user_name": {
"description": "Username of the user related to the ID is shown in `user_id`, when available. For failure logs, the value may be a valid username, an invalid username, or empty string.",
"examples": [
[
"example@example.com",
"+14155554321"
]
],
"type": "string"
}
},
"required": [
"description",
"details",
"log_id",
"type"
],
"type": "object"
}
}
}
75 changes: 75 additions & 0 deletions schemas/log-types/wum.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "A warning has happened during user management related tasks",
"properties": {
"$event_schema": {
"description": "Event schema meta",
"allOf": [
{
"properties": {
"version": {
"type": "string"
}
},
"required": [
"version"
],
"type": "object"
}
]
},
"description": {
"description": "Description of the event. This can also contain a description of the issue for failure logs.",
"type": "string"
},
"details": {
"description": "Log details",
"properties": {
"tenant": {
"type": "string"
},
"user_id": {
"type": "string"
}
},
"type": "object"
},
"log_id": {
"description": "Log id",
"type": "string"
},
"type": {
"const": "wum",
"description": "Warning User Management",
"type": "string"
},
"user_agent": {
"description": "The user_agent behind this log, when available",
"examples": [
"Chrome 120.0.0 / Mac OS X 10.15.7"
],
"type": "string"
},
"user_id": {
"description": "ID of the user behind the auth flow, or of the user executing the action, whichever applies. For machine to machine auth flows, this field may contain an empty string. For failure logs, the value may be a valid ID, an invalid ID, or empty string",
"type": "string"
},
"user_name": {
"description": "Username of the user related to the ID is shown in `user_id`, when available. For failure logs, the value may be a valid username, an invalid username, or empty string.",
"examples": [
[
"example@example.com",
"+14155554321"
]
],
"type": "string"
}
},
"required": [
"description",
"details",
"log_id",
"type"
],
"type": "object"
}
Loading