snapshot of https://github.com/ActivityWatch/aw-core.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Build / Test on ubuntu-latest, py-3.8 (push) Successful in 4m21s
Lint / lint (push) Successful in 25s
Build / Test on macOS-latest, py-3.8 (push) Has been cancelled
Build / Test on windows-latest, py-3.8 (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1s
Some checks failed
Build / Test on ubuntu-latest, py-3.8 (push) Successful in 4m21s
Lint / lint (push) Successful in 25s
Build / Test on macOS-latest, py-3.8 (push) Has been cancelled
Build / Test on windows-latest, py-3.8 (push) Has been cancelled
CodeQL / Analyze (python) (push) Failing after 1s
This commit is contained in:
45
aw_core/schemas/bucket.json
Normal file
45
aw_core/schemas/bucket.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"$id": "https://activitywatch.net/schemas/bucket.v0.json",
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"title": "Bucket",
|
||||
"description": "The Bucket model that is used in ActivityWatch",
|
||||
"type": "object",
|
||||
"required": ["id", "type", "client", "hostname"],
|
||||
"properties": {
|
||||
"id": {
|
||||
"description": "The unique id for the bucket",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "The readable and renameable name for the bucket",
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"description": "The event type",
|
||||
"type": "string"
|
||||
},
|
||||
"client": {
|
||||
"description": "The name of the client that is reporting to the bucket",
|
||||
"type": "string"
|
||||
},
|
||||
"hostname": {
|
||||
"description": "The hostname of the machine on which the client is running",
|
||||
"type": "string"
|
||||
},
|
||||
"created": {
|
||||
"description": "The creation datetime of the bucket",
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"data": {
|
||||
"description": "",
|
||||
"type": "object"
|
||||
},
|
||||
"events": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Event"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
19
aw_core/schemas/event.json
Normal file
19
aw_core/schemas/event.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"title": "Event",
|
||||
"description": "The Event model that is used in ActivityWatch",
|
||||
"type": "object",
|
||||
"required": ["timestamp"],
|
||||
"properties": {
|
||||
"timestamp": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"duration": {
|
||||
"type": "number"
|
||||
},
|
||||
"data": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
16
aw_core/schemas/export.json
Normal file
16
aw_core/schemas/export.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"$id": "https://activitywatch.net/schemas/export.v0.json",
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"title": "Export",
|
||||
"description": "The Export model that is used by ActivityWatch",
|
||||
"type": "object",
|
||||
"required": [],
|
||||
"properties": {
|
||||
"buckets": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/Bucket"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user