{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-audit-log-schema.json",
  "title": "audit.Log",
  "description": "An audit Log",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-me-openapi.yml#/components/schemas/audit.Log",
  "type": "object",
  "properties": {
    "authDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogAuthDetails"
        }
      ],
      "description": "authentication details",
      "nullable": true,
      "readOnly": true
    },
    "createdAt": {
      "type": "string",
      "description": "event's date",
      "format": "date-time",
      "readOnly": true
    },
    "groupCreatedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogGroupCreatedDetails"
        }
      ],
      "description": "specific fields for GROUP_CREATED events",
      "nullable": true,
      "readOnly": true
    },
    "groupDeletedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogGroupDeletedDetails"
        }
      ],
      "description": "specific fields for GROUP_DELETED events",
      "nullable": true,
      "readOnly": true
    },
    "groupModifiedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogGroupModifiedDetails"
        }
      ],
      "description": "specific fields for GROUP_MODIFIED events",
      "nullable": true,
      "readOnly": true
    },
    "ip": {
      "allOf": [
        {
          "$ref": "#/$defs/ip"
        }
      ],
      "description": "IP associated to this event",
      "nullable": true,
      "readOnly": true
    },
    "keystoneUserCreatedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogKeystoneUserCreatedDetails"
        }
      ],
      "description": "specific fields for KEYSTONE_USER_CREATED events",
      "nullable": true,
      "readOnly": true
    },
    "keystoneUserDeletedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogKeystoneUserDeletedDetails"
        }
      ],
      "description": "specific fields for KEYSTONE_USER_DELETED events",
      "nullable": true,
      "readOnly": true
    },
    "keystoneUserModifiedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogKeystoneUserModifiedDetails"
        }
      ],
      "description": "specific fields for KEYSTONE_USER_MODIFIED events",
      "nullable": true,
      "readOnly": true
    },
    "keystoneUserPasswordResetDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogKeystoneUserPasswordResetDetails"
        }
      ],
      "description": "specific fields for KEYSTONE_USER_PASSWORD_RESET events",
      "nullable": true,
      "readOnly": true
    },
    "loginSuccessDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogLoginSuccessDetails"
        }
      ],
      "description": "specific fields for LOGIN_SUCCESS events",
      "nullable": true,
      "readOnly": true
    },
    "policyCreatedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogPolicyCreatedDetails"
        }
      ],
      "description": "specific fields for POLICY_CREATED events",
      "nullable": true,
      "readOnly": true
    },
    "policyDeletedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogPolicyDeletedDetails"
        }
      ],
      "description": "specific fields for POLICY_DELETED events",
      "nullable": true,
      "readOnly": true
    },
    "policyModifiedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogPolicyModifiedDetails"
        }
      ],
      "description": "specific fields for POLICY_MODIFIED events",
      "nullable": true,
      "readOnly": true
    },
    "providerCreatedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogProviderCreatedDetails"
        }
      ],
      "description": "specific fields for PROVIDER_CREATED events",
      "nullable": true,
      "readOnly": true
    },
    "providerDeletedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogProviderDeletedDetails"
        }
      ],
      "description": "specific fields for PROVIDER_DELETED events",
      "nullable": true,
      "readOnly": true
    },
    "providerModifiedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogProviderModifiedDetails"
        }
      ],
      "description": "specific fields for PROVIDER_MODIFIED events",
      "nullable": true,
      "readOnly": true
    },
    "resourceGroupCreatedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogResourceGroupCreatedDetails"
        }
      ],
      "description": "specific fields for RESOURCE_GROUP_CREATED events",
      "nullable": true,
      "readOnly": true
    },
    "resourceGroupDeletedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogResourceGroupDeletedDetails"
        }
      ],
      "description": "specific fields for RESOURCE_GROUP_DELETED events",
      "nullable": true,
      "readOnly": true
    },
    "resourceGroupModifiedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogResourceGroupModifiedDetails"
        }
      ],
      "description": "specific fields for RESOURCE_GROUP_MODIFIED events",
      "nullable": true,
      "readOnly": true
    },
    "tokenCreatedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogTokenCreatedDetails"
        }
      ],
      "description": "specific fields for TOKEN_CREATED events",
      "nullable": true,
      "readOnly": true
    },
    "tokenDeletedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogTokenDeletedDetails"
        }
      ],
      "description": "specific fields for TOKEN_DELETED events",
      "nullable": true,
      "readOnly": true
    },
    "tokenModifiedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogTokenModifiedDetails"
        }
      ],
      "description": "specific fields for TOKEN_MODIFIED events",
      "nullable": true,
      "readOnly": true
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogTypeEnum"
        }
      ],
      "description": "type of event",
      "readOnly": true
    },
    "userCreatedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogUserCreatedDetails"
        }
      ],
      "description": "specific fields for USER_CREATED events",
      "nullable": true,
      "readOnly": true
    },
    "userDeletedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogUserDeletedDetails"
        }
      ],
      "description": "specific fields for USER_DELETED events",
      "nullable": true,
      "readOnly": true
    },
    "userModifiedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogUserModifiedDetails"
        }
      ],
      "description": "specific fields for USER_MODIFIED events",
      "nullable": true,
      "readOnly": true
    },
    "userPasswordChangedDetails": {
      "allOf": [
        {
          "$ref": "#/$defs/audit.LogUserPasswordChangedDetails"
        }
      ],
      "description": "specific fields for USER_PASSWORD_CHANGED events",
      "nullable": true,
      "readOnly": true
    }
  },
  "$defs": {
    "audit.LogAuthDetails": {
      "type": "object",
      "description": "Authentication details",
      "properties": {
        "userDetails": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogAuthUserDetails"
            }
          ],
          "description": "authenticated user details",
          "readOnly": true
        }
      }
    },
    "audit.LogAuthMFATypeEnum": {
      "type": "string",
      "description": "Authentication MFA type",
      "enum": [
        "BACKUP_CODE",
        "MAIL",
        "NONE",
        "SMS",
        "TOTP",
        "U2F",
        "UNKNOWN"
      ]
    },
    "audit.LogAuthUserDetails": {
      "type": "object",
      "description": "Authenticated user details",
      "properties": {
        "type": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogAuthUserTypeEnum"
            }
          ],
          "description": "authentication type",
          "readOnly": true
        },
        "user": {
          "type": [
            "string",
            "null"
          ],
          "description": "authenticated user name",
          "readOnly": true
        }
      }
    },
    "audit.LogAuthUserTypeEnum": {
      "type": "string",
      "description": "Authentication type",
      "enum": [
        "ACCOUNT",
        "PROVIDER",
        "USER"
      ]
    },
    "audit.LogGroupCreatedDetails": {
      "type": "object",
      "description": "specific fields for GROUP_CREATED events",
      "properties": {
        "group": {
          "type": "string",
          "description": "Identifier of the group",
          "readOnly": true
        },
        "new": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogGroupDetails"
            }
          ],
          "description": "Group details after creation",
          "nullable": true,
          "readOnly": true
        }
      }
    },
    "audit.LogGroupDeletedDetails": {
      "type": "object",
      "description": "specific fields for GROUP_DELETED events",
      "properties": {
        "group": {
          "type": "string",
          "description": "Identifier of the group",
          "readOnly": true
        },
        "old": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogGroupDetails"
            }
          ],
          "description": "Group details before deletion",
          "nullable": true,
          "readOnly": true
        }
      }
    },
    "audit.LogGroupDetails": {
      "type": "object",
      "description": "Specific fields for GROUP events",
      "properties": {
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Description of the group",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Name of the group",
          "readOnly": true
        },
        "role": {
          "type": "string",
          "description": "Role of the group",
          "readOnly": true
        }
      }
    },
    "audit.LogGroupModifiedDetails": {
      "type": "object",
      "description": "specific fields for GROUP_MODIFIED events",
      "properties": {
        "group": {
          "type": "string",
          "description": "Identifier of the group",
          "readOnly": true
        },
        "new": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogGroupDetails"
            }
          ],
          "description": "Group details after update",
          "nullable": true,
          "readOnly": true
        },
        "old": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogGroupDetails"
            }
          ],
          "description": "Group details before update",
          "nullable": true,
          "readOnly": true
        }
      }
    },
    "audit.LogKeystoneUserCreatedDetails": {
      "type": "object",
      "description": "specific fields for KEYSTONE_USER_CREATED events",
      "properties": {
        "keystoneUserCreatedAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "Keystone user's creation date",
          "format": "date-time",
          "readOnly": true
        },
        "new": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogKeystoneUserDetails"
            }
          ],
          "description": "Keystone user details after creation",
          "nullable": true,
          "readOnly": true
        },
        "user": {
          "type": "string",
          "description": "Login of the IAM user owning the Keystone user, empty for the account's root user",
          "readOnly": true
        },
        "username": {
          "type": "string",
          "description": "Username of the Keystone user",
          "readOnly": true
        }
      }
    },
    "audit.LogKeystoneUserDeletedDetails": {
      "type": "object",
      "description": "specific fields for KEYSTONE_USER_DELETED events",
      "properties": {
        "keystoneUserCreatedAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "Keystone user's creation date",
          "format": "date-time",
          "readOnly": true
        },
        "old": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogKeystoneUserDetails"
            }
          ],
          "description": "Keystone user details before deletion",
          "nullable": true,
          "readOnly": true
        },
        "user": {
          "type": "string",
          "description": "Login of the IAM user owning the Keystone user, empty for the account's root user",
          "readOnly": true
        },
        "username": {
          "type": "string",
          "description": "Username of the Keystone user",
          "readOnly": true
        }
      }
    },
    "audit.LogKeystoneUserDetails": {
      "type": "object",
      "description": "specific fields for KEYSTONE_USER events",
      "properties": {
        "description": {
          "type": "string",
          "description": "Description of the Keystone user",
          "readOnly": true
        },
        "expiresAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "Keystone user's expiration date",
          "format": "date-time",
          "readOnly": true
        }
      }
    },
    "audit.LogKeystoneUserModifiedDetails": {
      "type": "object",
      "description": "specific fields for KEYSTONE_USER_MODIFIED events",
      "properties": {
        "keystoneUserCreatedAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "Keystone user's creation date",
          "format": "date-time",
          "readOnly": true
        },
        "new": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogKeystoneUserDetails"
            }
          ],
          "description": "Keystone user details after update",
          "nullable": true,
          "readOnly": true
        },
        "old": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogKeystoneUserDetails"
            }
          ],
          "description": "Keystone user details before update",
          "nullable": true,
          "readOnly": true
        },
        "user": {
          "type": "string",
          "description": "Login of the IAM user owning the Keystone user, empty for the account's root user",
          "readOnly": true
        },
        "username": {
          "type": "string",
          "description": "Username of the Keystone user",
          "readOnly": true
        }
      }
    },
    "audit.LogKeystoneUserPasswordResetDetails": {
      "type": "object",
      "description": "specific fields for KEYSTONE_USER_PASSWORD_RESET events",
      "properties": {
        "keystoneUserCreatedAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "Keystone user's creation date",
          "format": "date-time",
          "readOnly": true
        },
        "user": {
          "type": "string",
          "description": "Login of the IAM user owning the Keystone user, empty for the account's root user",
          "readOnly": true
        },
        "username": {
          "type": "string",
          "description": "Username of the Keystone user",
          "readOnly": true
        }
      }
    },
    "audit.LogLoginSuccessDetails": {
      "type": "object",
      "description": "specific fields for LOGIN_SUCCESS events",
      "properties": {
        "mfaType": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogAuthMFATypeEnum"
            }
          ],
          "description": "Used MFA while login",
          "nullable": true,
          "readOnly": true
        },
        "userAgent": {
          "type": "string",
          "description": "Browser's user agent",
          "readOnly": true
        }
      }
    },
    "audit.LogPolicyChanges": {
      "type": "object",
      "description": "Changed fields for POLICY events",
      "properties": {
        "identities": {
          "type": [
            "array",
            "null"
          ],
          "description": "Identities changed on the policy",
          "items": {
            "type": "string"
          },
          "readOnly": true
        },
        "resources": {
          "type": [
            "array",
            "null"
          ],
          "description": "Resources changed on the policy",
          "items": {
            "type": "string"
          },
          "readOnly": true
        }
      }
    },
    "audit.LogPolicyCreatedDetails": {
      "type": "object",
      "description": "specific fields for POLICY_CREATED events",
      "properties": {
        "added": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogPolicyChanges"
            }
          ],
          "description": "Policy changes",
          "nullable": true,
          "readOnly": true
        },
        "new": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogPolicyDetails"
            }
          ],
          "description": "Policy details after creation",
          "nullable": true,
          "readOnly": true
        },
        "policyId": {
          "type": "string",
          "description": "Id of the policy",
          "format": "uuid",
          "readOnly": true
        },
        "policyName": {
          "type": "string",
          "description": "Name of the policy",
          "readOnly": true
        }
      }
    },
    "audit.LogPolicyDeletedDetails": {
      "type": "object",
      "description": "specific fields for POLICY_DELETED events",
      "properties": {
        "old": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogPolicyDetails"
            }
          ],
          "description": "Policy details before deletion",
          "nullable": true,
          "readOnly": true
        },
        "policyId": {
          "type": "string",
          "description": "Id of the policy",
          "format": "uuid",
          "readOnly": true
        },
        "policyName": {
          "type": "string",
          "description": "Name of the policy",
          "readOnly": true
        },
        "removed": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogPolicyChanges"
            }
          ],
          "description": "Policy changes",
          "nullable": true,
          "readOnly": true
        }
      }
    },
    "audit.LogPolicyDetails": {
      "type": "object",
      "description": "Specific fields for POLICY events",
      "properties": {
        "description": {
          "type": "string",
          "description": "Description of the policy",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Name of the policy",
          "readOnly": true
        }
      }
    },
    "audit.LogPolicyModifiedDetails": {
      "type": "object",
      "description": "specific fields for POLICY_MODIFIED events",
      "properties": {
        "added": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogPolicyChanges"
            }
          ],
          "description": "Policy changes (addition)",
          "nullable": true,
          "readOnly": true
        },
        "new": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogPolicyDetails"
            }
          ],
          "description": "Policy details after update",
          "nullable": true,
          "readOnly": true
        },
        "old": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogPolicyDetails"
            }
          ],
          "description": "Policy details before update",
          "nullable": true,
          "readOnly": true
        },
        "policyId": {
          "type": "string",
          "description": "Id of the policy",
          "format": "uuid",
          "readOnly": true
        },
        "policyName": {
          "type": "string",
          "description": "Name of the policy",
          "readOnly": true
        },
        "removed": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogPolicyChanges"
            }
          ],
          "description": "Policy changes (removal)",
          "nullable": true,
          "readOnly": true
        }
      }
    },
    "audit.LogProviderCreatedDetails": {
      "type": "object",
      "description": "specific fields for PROVIDER_CREATED events",
      "properties": {
        "new": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogProviderDetails"
            }
          ],
          "description": "Provider details after creation",
          "nullable": true,
          "readOnly": true
        },
        "ssoServiceURL": {
          "type": "string",
          "description": "SSO URL of the provider",
          "readOnly": true
        }
      }
    },
    "audit.LogProviderDeletedDetails": {
      "type": "object",
      "description": "specific fields for PROVIDER_DELETED events",
      "properties": {
        "old": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogProviderDetails"
            }
          ],
          "description": "Provider details before deletion",
          "nullable": true,
          "readOnly": true
        },
        "ssoServiceURL": {
          "type": "string",
          "description": "SSO URL of the provider",
          "readOnly": true
        }
      }
    },
    "audit.LogProviderDetails": {
      "type": "object",
      "description": "specific fields for PROVIDER events",
      "properties": {
        "groupAttributeName": {
          "type": "string",
          "description": "SAML group attribute name of the provider",
          "readOnly": true
        },
        "requestSignatureEnabled": {
          "type": "boolean",
          "description": "SAML request signature enabled",
          "readOnly": true
        },
        "userAttributeName": {
          "type": "string",
          "description": "SAML user attribute name of the provider",
          "readOnly": true
        },
        "usersDisabled": {
          "type": "boolean",
          "description": "Provider use disabled account users",
          "readOnly": true
        }
      }
    },
    "audit.LogProviderModifiedDetails": {
      "type": "object",
      "description": "specific fields for PROVIDER_MODIFIED events",
      "properties": {
        "new": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogProviderDetails"
            }
          ],
          "description": "Provider details after update",
          "nullable": true,
          "readOnly": true
        },
        "old": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogProviderDetails"
            }
          ],
          "description": "Provider details before update",
          "nullable": true,
          "readOnly": true
        },
        "ssoServiceURL": {
          "type": "string",
          "description": "SSO URL of the provider",
          "readOnly": true
        }
      }
    },
    "audit.LogResourceGroupChanges": {
      "type": "object",
      "description": "Changed fields for RESOURCE_GROUP events",
      "properties": {
        "resources": {
          "type": [
            "array",
            "null"
          ],
          "description": "Resources changed on the resource group",
          "items": {
            "type": "string"
          },
          "readOnly": true
        }
      }
    },
    "audit.LogResourceGroupCreatedDetails": {
      "type": "object",
      "description": "specific fields for RESOURCE_GROUP_CREATED events",
      "properties": {
        "added": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogResourceGroupChanges"
            }
          ],
          "description": "Resource group changes",
          "nullable": true,
          "readOnly": true
        },
        "new": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogResourceGroupDetails"
            }
          ],
          "description": "Resource group details after creation",
          "nullable": true,
          "readOnly": true
        },
        "resourceGroupId": {
          "type": "string",
          "description": "Id of the resource group",
          "format": "uuid",
          "readOnly": true
        },
        "resourceGroupName": {
          "type": "string",
          "description": "Name of the resource group",
          "readOnly": true
        }
      }
    },
    "audit.LogResourceGroupDeletedDetails": {
      "type": "object",
      "description": "specific fields for RESOURCE_GROUP_DELETED events",
      "properties": {
        "old": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogResourceGroupDetails"
            }
          ],
          "description": "Resource group details before deletion",
          "nullable": true,
          "readOnly": true
        },
        "removed": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogResourceGroupChanges"
            }
          ],
          "description": "Resource group changes",
          "nullable": true,
          "readOnly": true
        },
        "resourceGroupId": {
          "type": "string",
          "description": "Id of the resource group",
          "format": "uuid",
          "readOnly": true
        },
        "resourceGroupName": {
          "type": "string",
          "description": "Name of the resource group",
          "readOnly": true
        }
      }
    },
    "audit.LogResourceGroupDetails": {
      "type": "object",
      "description": "Specific fields for RESOURCE_GROUP events",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the policy",
          "readOnly": true
        }
      }
    },
    "audit.LogResourceGroupModifiedDetails": {
      "type": "object",
      "description": "specific fields for RESOURCE_GROUP_MODIFIED events",
      "properties": {
        "added": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogResourceGroupChanges"
            }
          ],
          "description": "Resource group changes (addition)",
          "nullable": true,
          "readOnly": true
        },
        "new": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogResourceGroupDetails"
            }
          ],
          "description": "Resource group details after update",
          "nullable": true,
          "readOnly": true
        },
        "old": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogResourceGroupDetails"
            }
          ],
          "description": "Resource group details before update",
          "nullable": true,
          "readOnly": true
        },
        "removed": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogResourceGroupChanges"
            }
          ],
          "description": "Resource group changes (removal)",
          "nullable": true,
          "readOnly": true
        },
        "resourceGroupId": {
          "type": "string",
          "description": "Id of the resource group",
          "format": "uuid",
          "readOnly": true
        },
        "resourceGroupName": {
          "type": "string",
          "description": "Name of the resource group",
          "readOnly": true
        }
      }
    },
    "audit.LogTokenCreatedDetails": {
      "type": "object",
      "description": "specific fields for TOKEN_CREATED events",
      "properties": {
        "new": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogTokenDetails"
            }
          ],
          "description": "Token details after creation",
          "nullable": true,
          "readOnly": true
        },
        "tokenCreatedAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "Token's creation date",
          "format": "date-time",
          "readOnly": true
        },
        "tokenName": {
          "type": "string",
          "description": "Name of the token",
          "readOnly": true
        },
        "user": {
          "type": "string",
          "description": "Login of the user",
          "readOnly": true
        }
      }
    },
    "audit.LogTokenDeletedDetails": {
      "type": "object",
      "description": "specific fields for TOKEN_DELETED events",
      "properties": {
        "old": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogTokenDetails"
            }
          ],
          "description": "Token details before deletion",
          "nullable": true,
          "readOnly": true
        },
        "tokenCreatedAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "Token's creation date",
          "format": "date-time",
          "readOnly": true
        },
        "tokenName": {
          "type": "string",
          "description": "Name of the token",
          "readOnly": true
        },
        "user": {
          "type": "string",
          "description": "Login of the user",
          "readOnly": true
        }
      }
    },
    "audit.LogTokenDetails": {
      "type": "object",
      "description": "specific fields for TOKEN events",
      "properties": {
        "description": {
          "type": "string",
          "description": "Description of the token",
          "readOnly": true
        },
        "expiresAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "Token's expiration date",
          "format": "date-time",
          "readOnly": true
        }
      }
    },
    "audit.LogTokenModifiedDetails": {
      "type": "object",
      "description": "specific fields for TOKEN_MODIFIED events",
      "properties": {
        "new": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogTokenDetails"
            }
          ],
          "description": "Token details after update",
          "nullable": true,
          "readOnly": true
        },
        "old": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogTokenDetails"
            }
          ],
          "description": "Token details before update",
          "nullable": true,
          "readOnly": true
        },
        "tokenCreatedAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "Token's creation date",
          "format": "date-time",
          "readOnly": true
        },
        "tokenName": {
          "type": "string",
          "description": "Name of the token",
          "readOnly": true
        },
        "user": {
          "type": "string",
          "description": "Login of the user",
          "readOnly": true
        }
      }
    },
    "audit.LogTypeEnum": {
      "type": "string",
      "description": "Audit event type",
      "enum": [
        "ACCOUNT_PASSWORD_CHANGED",
        "GROUP_CREATED",
        "GROUP_DELETED",
        "GROUP_MODIFIED",
        "KEYSTONE_USER_CREATED",
        "KEYSTONE_USER_DELETED",
        "KEYSTONE_USER_MODIFIED",
        "KEYSTONE_USER_PASSWORD_RESET",
        "LOGIN_SUCCESS",
        "POLICY_CREATED",
        "POLICY_DELETED",
        "POLICY_MODIFIED",
        "PROVIDER_CREATED",
        "PROVIDER_DELETED",
        "PROVIDER_MODIFIED",
        "RESOURCE_GROUP_CREATED",
        "RESOURCE_GROUP_DELETED",
        "RESOURCE_GROUP_MODIFIED",
        "TOKEN_CREATED",
        "TOKEN_DELETED",
        "TOKEN_MODIFIED",
        "USER_CREATED",
        "USER_DELETED",
        "USER_MODIFIED",
        "USER_PASSWORD_CHANGED"
      ]
    },
    "audit.LogUserCreatedDetails": {
      "type": "object",
      "description": "specific fields for USER_CREATED events",
      "properties": {
        "new": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogUserDetails"
            }
          ],
          "description": "User details after creation",
          "nullable": true,
          "readOnly": true
        },
        "user": {
          "type": "string",
          "description": "Login of the user",
          "readOnly": true
        },
        "userCreatedAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "User's creation date",
          "format": "date-time",
          "readOnly": true
        },
        "userType": {
          "allOf": [
            {
              "$ref": "#/$defs/auth.UserTypeEnum"
            }
          ],
          "description": "Type of user created",
          "nullable": true,
          "readOnly": true
        }
      }
    },
    "audit.LogUserDeletedDetails": {
      "type": "object",
      "description": "specific fields for USER_DELETED events",
      "properties": {
        "old": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogUserDetails"
            }
          ],
          "description": "User details before deletion",
          "nullable": true,
          "readOnly": true
        },
        "user": {
          "type": "string",
          "description": "Login of the user",
          "readOnly": true
        },
        "userCreatedAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "User's creation date",
          "format": "date-time",
          "readOnly": true
        },
        "userType": {
          "allOf": [
            {
              "$ref": "#/$defs/auth.UserTypeEnum"
            }
          ],
          "description": "Type of user created",
          "nullable": true,
          "readOnly": true
        }
      }
    },
    "audit.LogUserDetails": {
      "type": "object",
      "description": "specific fields for USER events",
      "properties": {
        "description": {
          "type": "string",
          "description": "Description of the user",
          "readOnly": true
        },
        "group": {
          "type": "string",
          "description": "Group of the user",
          "readOnly": true
        },
        "passwordRecoveryEmail": {
          "type": [
            "string",
            "null"
          ],
          "description": "Email of the user",
          "readOnly": true
        },
        "userType": {
          "allOf": [
            {
              "$ref": "#/$defs/auth.UserTypeEnum"
            }
          ],
          "description": "Type of user created",
          "nullable": true,
          "readOnly": true
        }
      }
    },
    "audit.LogUserModifiedDetails": {
      "type": "object",
      "description": "specific fields for USER_MODIFIED events",
      "properties": {
        "new": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogUserDetails"
            }
          ],
          "description": "User details after update",
          "nullable": true,
          "readOnly": true
        },
        "old": {
          "allOf": [
            {
              "$ref": "#/$defs/audit.LogUserDetails"
            }
          ],
          "description": "User details before update",
          "nullable": true,
          "readOnly": true
        },
        "user": {
          "type": "string",
          "description": "Login of the user",
          "readOnly": true
        },
        "userCreatedAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "User's creation date",
          "format": "date-time",
          "readOnly": true
        }
      }
    },
    "audit.LogUserPasswordChangedDetails": {
      "type": "object",
      "description": "specific fields for USER_PASSWORD_CHANGED events",
      "properties": {
        "user": {
          "type": "string",
          "description": "User name",
          "readOnly": true
        },
        "userCreatedAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "User's creation date",
          "format": "date-time",
          "readOnly": true
        }
      }
    },
    "auth.UserTypeEnum": {
      "type": "string",
      "description": "Type of user",
      "enum": [
        "ROOT",
        "SERVICE",
        "USER"
      ]
    },
    "ip": {
      "type": "string",
      "description": "IP address (e.g., 192.0.2.0)",
      "format": "ipv4"
    }
  }
}