Backfill in-progress. Some lexicons and records may be missing or incomplete.

net.anisota.beta.game.session

anisota.net

Documentation

main record

A game session record tracking a continuous period of user engagement with the application

Record Key tid Timestamp-based ID

Properties

clientVersion string Required

Version of the client application

createdAt string datetime Optional

When the session record was created

duration integer Optional

Total session duration in milliseconds (calculated when session ends)

minimum: 0
endReason string Optional

Why the session ended

Allowed: logout, timeout, inactivity, user_initiated, device_switch, app_close, forced_end
endedAt string datetime Optional

When the session ended (ISO 8601)

lastActivityAt string datetime Optional

Timestamp of the last recorded activity in this session

metadata ref #metadata Optional

No description provided.

parentSessionUri string Optional

URI of the previous session if this is a continuation (e.g., after brief inactivity)

platform string Required

Platform where the session occurred

Allowed: web, mobile, desktop, pwa
relatedLogUris array of string Optional

URIs of log records that occurred during this session

relatedProgressUris array of string Optional

URIs of progress records created during this session

relatedSessionUris array of string Optional

URIs of related sessions (e.g., same day, same device)

startedAt string datetime Required

When the session began (ISO 8601)

status string Required

Current status of the session

Allowed: active, ended, expired, invalidated
updatedAt string datetime Optional

When the session record was last updated

View raw schema
{
  "key": "tid",
  "type": "record",
  "record": {
    "type": "object",
    "required": [
      "startedAt",
      "status",
      "platform",
      "clientVersion"
    ],
    "properties": {
      "status": {
        "enum": [
          "active",
          "ended",
          "expired",
          "invalidated"
        ],
        "type": "string",
        "description": "Current status of the session"
      },
      "endedAt": {
        "type": "string",
        "format": "datetime",
        "description": "When the session ended (ISO 8601)"
      },
      "duration": {
        "type": "integer",
        "minimum": 0,
        "description": "Total session duration in milliseconds (calculated when session ends)"
      },
      "metadata": {
        "ref": "#metadata",
        "type": "ref"
      },
      "platform": {
        "enum": [
          "web",
          "mobile",
          "desktop",
          "pwa"
        ],
        "type": "string",
        "description": "Platform where the session occurred"
      },
      "createdAt": {
        "type": "string",
        "format": "datetime",
        "description": "When the session record was created"
      },
      "endReason": {
        "enum": [
          "logout",
          "timeout",
          "inactivity",
          "user_initiated",
          "device_switch",
          "app_close",
          "forced_end"
        ],
        "type": "string",
        "description": "Why the session ended"
      },
      "startedAt": {
        "type": "string",
        "format": "datetime",
        "description": "When the session began (ISO 8601)"
      },
      "updatedAt": {
        "type": "string",
        "format": "datetime",
        "description": "When the session record was last updated"
      },
      "clientVersion": {
        "type": "string",
        "description": "Version of the client application"
      },
      "lastActivityAt": {
        "type": "string",
        "format": "datetime",
        "description": "Timestamp of the last recorded activity in this session"
      },
      "relatedLogUris": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "URIs of log records that occurred during this session"
      },
      "sessionContext": {
        "ref": "#sessionContext",
        "type": "ref"
      },
      "activitySummary": {
        "ref": "#activitySummary",
        "type": "ref"
      },
      "parentSessionUri": {
        "type": "string",
        "description": "URI of the previous session if this is a continuation (e.g., after brief inactivity)"
      },
      "relatedSessionUris": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "URIs of related sessions (e.g., same day, same device)"
      },
      "relatedProgressUris": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "URIs of progress records created during this session"
      }
    }
  },
  "description": "A game session record tracking a continuous period of user engagement with the application"
}
activitySummary object

Summary of activity during this session

Properties

currentLevel integer Optional

Player's current level at the time of this session update

minimum: 1
currentXP integer Optional

Player's total XP at the time of this session update

minimum: 0
gameActions ref #gameActions Optional

No description provided.

pagesVisited array of string Optional

List of unique pages/routes visited

totalEvents integer Optional

Total number of events logged in this session

minimum: 0
xpGainedThisSession integer Optional

Total XP gained during this specific session

minimum: 0
View raw schema
{
  "type": "object",
  "properties": {
    "currentXP": {
      "type": "integer",
      "minimum": 0,
      "description": "Player's total XP at the time of this session update"
    },
    "gameActions": {
      "ref": "#gameActions",
      "type": "ref"
    },
    "totalEvents": {
      "type": "integer",
      "minimum": 0,
      "description": "Total number of events logged in this session"
    },
    "currentLevel": {
      "type": "integer",
      "minimum": 1,
      "description": "Player's current level at the time of this session update"
    },
    "pagesVisited": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of unique pages/routes visited"
    },
    "xpGainedThisSession": {
      "type": "integer",
      "minimum": 0,
      "description": "Total XP gained during this specific session"
    }
  },
  "description": "Summary of activity during this session"
}
gameActions object

Game-specific actions performed

Properties

dailyRewardsClaimed integer Optional

No description provided.

minimum: 0
feedsLoaded integer Optional

No description provided.

minimum: 0
itemsCollected integer Optional

No description provided.

minimum: 0
levelUps integer Optional

No description provided.

minimum: 0
postsViewed integer Optional

No description provided.

minimum: 0
specimensCollected integer Optional

No description provided.

minimum: 0
View raw schema
{
  "type": "object",
  "properties": {
    "levelUps": {
      "type": "integer",
      "minimum": 0
    },
    "feedsLoaded": {
      "type": "integer",
      "minimum": 0
    },
    "postsViewed": {
      "type": "integer",
      "minimum": 0
    },
    "itemsCollected": {
      "type": "integer",
      "minimum": 0
    },
    "specimensCollected": {
      "type": "integer",
      "minimum": 0
    },
    "dailyRewardsClaimed": {
      "type": "integer",
      "minimum": 0
    }
  },
  "description": "Game-specific actions performed"
}
metadata object

Additional session metadata

Properties

features array of string Optional

List of features used during the session

networkCondition string Optional

Network condition during session

View raw schema
{
  "type": "object",
  "properties": {
    "features": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of features used during the session"
    },
    "networkCondition": {
      "enum": [
        "online",
        "offline",
        "slow",
        "unknown"
      ],
      "type": "string",
      "description": "Network condition during session"
    },
    "performanceMetrics": {
      "ref": "#performanceMetrics",
      "type": "ref"
    }
  },
  "description": "Additional session metadata"
}
performanceMetrics object

Performance-related data

Properties

averageResponseTime integer Optional

Average API response time in milliseconds (rounded to nearest integer)

minimum: 0
errorCount integer Optional

Number of errors encountered

minimum: 0
View raw schema
{
  "type": "object",
  "properties": {
    "errorCount": {
      "type": "integer",
      "minimum": 0,
      "description": "Number of errors encountered"
    },
    "averageResponseTime": {
      "type": "integer",
      "minimum": 0,
      "description": "Average API response time in milliseconds (rounded to nearest integer)"
    }
  },
  "description": "Performance-related data"
}
sessionContext object

Context about how the session started

Properties

authenticationMethod string Optional

How the user was authenticated

entryPoint string Optional

How the user entered the app

isNewUser boolean Optional

Whether this was a new user's first session

referrer string Optional

Referrer URL if applicable

View raw schema
{
  "type": "object",
  "properties": {
    "referrer": {
      "type": "string",
      "description": "Referrer URL if applicable"
    },
    "isNewUser": {
      "type": "boolean",
      "description": "Whether this was a new user's first session"
    },
    "entryPoint": {
      "enum": [
        "direct",
        "refresh",
        "login",
        "oauth_callback",
        "pwa_launch",
        "deep_link"
      ],
      "type": "string",
      "description": "How the user entered the app"
    },
    "authenticationMethod": {
      "enum": [
        "oauth",
        "existing_session",
        "anonymous"
      ],
      "type": "string",
      "description": "How the user was authenticated"
    }
  },
  "description": "Context about how the session started"
}

Lexicon Garden

@