ChronicleSchema
Used on
Session and their subclasses
Expected type
Directory
Values
At most one value
Required
No

Examples

A block of app usage

An ExecuteAction for one block of app usage recorded by Timing.

{
  "@type": "ExecuteAction",
  "@key": ["@type", "source", "result.sourceId"],
  "source": "timing-app",
  "startTime": "2026-03-14T09:20:00.000Z",
  "endTime": "2026-03-14T09:25:00.000Z",
  "agent": {
    "@type": "Agent",
    "@key": ["@type", "source"],
    "source": "timing-app",
    "sameAs": ["@me"]
  },
  "object": {
    "@type": "SoftwareApplication",
    "@key": ["@type", "source", "handle"],
    "source": "apple-bundle-id",
    "handle": "com.mitchellh.ghostty",
    "name": "Ghostty"
  },
  "instrument": [
    {
      "@type": "Device",
      "@key": ["@type", "source", "sourceId"],
      "source": "timing-app",
      "sourceId": "1234567890123456789",
      "name": "pat-mbp",
      "model": "Mac15,3",
      "sameAs": [
        {
          "@type": "Device",
          "@key": ["@type", "source", "handle"],
          "source": "mac-address",
          "handle": "00:11:22:33:44:55"
        }
      ],
      "inRealm": {
        "@type": "Realm",
        "@key": ["@type", "source", "handle"],
        "source": "hostname",
        "handle": "pat-mbp"
      }
    }
  ],
  "result": {
    "@type": "DeviceSession",
    "@key": ["@type", "source", "sourceId"],
    "source": "timing-app",
    "sourceId": "101",
    "name": "npm test",
    "isPartOf": [
      {
        "@type": "Project",
        "@key": ["@type", "source", "sourceId"],
        "source": "timing-app",
        "sourceId": "2",
        "name": "Chronicle"
      }
    ],
    "workingDirectory": {
      "@type": "Directory",
      "@key": ["source", "handle", "inRealm.handle"],
      "source": "filesystem",
      "handle": "/Users/pat/projects/chronicle",
      "name": "chronicle",
      "inRealm": {
        "@type": "Realm",
        "@key": ["@type", "source", "handle"],
        "source": "hostname",
        "handle": "pat-mbp"
      }
    }
  }
}

URI https://schema.chronicle.app/workingDirectory · Suggest a change

Esc

↑↓ to move↵ to open/ or ⌘K to search