{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "title": "ax_auth_create_user_finished_event",
  "description": "AxAuth create user finished event schema",
  "additionalProperties": false,
  "required": [
    "tenant_id",
    "environment_id",
    "id",
    "first_name",
    "last_name",
    "profile_picture_url",
    "email",
    "user_store_id",
    "user_store_type",
    "accessible_client_ids"
  ],
  "properties": {
    "tenant_id": {
      "type": "string",
      "minLength": 32,
      "maxLength": 36,
      "format": "uuid",
      "description": "A UUID."
    },
    "environment_id": {
      "type": "string",
      "minLength": 32,
      "maxLength": 36,
      "format": "uuid",
      "description": "A UUID."
    },
    "id": {
      "type": "string",
      "description": "User ID"
    },
    "first_name": {
      "type": "string",
      "description": "First Name"
    },
    "last_name": {
      "type": "string",
      "description": "Last Name"
    },
    "profile_picture_url": {
      "type": "string",
      "description": "Profile Picture URL"
    },
    "email": {
      "type": "string",
      "description": "Email"
    },
    "user_store_id": {
      "type": "string",
      "description": "User Store ID"
    },
    "user_store_type": {
      "type": "string",
      "description": "User Store Type",
      "enum": [
        "MANAGEMENT",
        "END_USER"
      ],
      "title": "userStoreType"
    },
    "accessible_client_ids": {
      "type": "array",
      "description": "Client IDs the user account is accessible",
      "additionalItems": false,
      "items": {
        "type": "string"
      }
    }
  }
}