@drakulavich/oura-cli 0.4.4 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,26 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/activity.json",
4
- "title": "oura-cli activity output",
4
+ "title": "oura-cli fetch activity output",
5
+ "description": "Daily activity score, steps, calories and activity-time buckets",
5
6
  "type": "array",
6
7
  "items": {
7
8
  "type": "object",
8
9
  "additionalProperties": true,
9
- "required": ["id", "day"],
10
+ "required": [
11
+ "id",
12
+ "day"
13
+ ],
10
14
  "properties": {
11
- "id": { "type": "string", "description": "Oura record id" },
12
- "day": { "type": "string", "format": "date", "description": "Date the record applies to (YYYY-MM-DD)" }
15
+ "id": {
16
+ "type": "string",
17
+ "description": "Oura record id"
18
+ },
19
+ "day": {
20
+ "type": "string",
21
+ "format": "date",
22
+ "description": "Date the record applies to (YYYY-MM-DD)"
23
+ }
13
24
  }
14
25
  }
15
26
  }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/cv-age.json",
4
+ "title": "oura-cli fetch cv-age output",
5
+ "description": "Daily cardiovascular (vascular) age estimate",
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "additionalProperties": true,
10
+ "required": [
11
+ "id",
12
+ "day"
13
+ ],
14
+ "properties": {
15
+ "id": {
16
+ "type": "string",
17
+ "description": "Oura record id"
18
+ },
19
+ "day": {
20
+ "type": "string",
21
+ "format": "date",
22
+ "description": "Date the record applies to (YYYY-MM-DD)"
23
+ }
24
+ }
25
+ }
26
+ }
@@ -39,6 +39,7 @@
39
39
  "description": { "type": "string" },
40
40
  "args": { "type": "array", "items": { "$ref": "#/$defs/arg" } },
41
41
  "outputSchema": { "type": "string" },
42
+ "outputSchemas": { "type": "object", "additionalProperties": { "type": "string" } },
42
43
  "subcommands": { "type": "array", "items": { "$ref": "#/$defs/subcommand" } }
43
44
  }
44
45
  }
@@ -0,0 +1,25 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/doctor.json",
4
+ "title": "oura-cli doctor output",
5
+ "type": "object",
6
+ "required": ["ok", "checks", "nextStep"],
7
+ "properties": {
8
+ "ok": { "type": "boolean" },
9
+ "checks": {
10
+ "type": "array",
11
+ "items": {
12
+ "type": "object",
13
+ "required": ["id", "status", "detail"],
14
+ "additionalProperties": false,
15
+ "properties": {
16
+ "id": { "type": "string", "enum": ["token", "token-valid", "database", "data"] },
17
+ "status": { "type": "string", "enum": ["ok", "warn", "fail"] },
18
+ "detail": { "type": "string" },
19
+ "fix": { "type": "string" }
20
+ }
21
+ }
22
+ },
23
+ "nextStep": { "type": ["string", "null"] }
24
+ }
25
+ }
@@ -1,14 +1,21 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/hr.json",
4
- "title": "oura-cli hr output",
4
+ "title": "oura-cli fetch hr output",
5
+ "description": "Heart rate samples (bpm) with source",
5
6
  "type": "array",
6
7
  "items": {
7
8
  "type": "object",
8
9
  "additionalProperties": true,
9
- "required": ["timestamp"],
10
+ "required": [
11
+ "timestamp"
12
+ ],
10
13
  "properties": {
11
- "timestamp": { "type": "string", "format": "date-time", "description": "ISO 8601 timestamp of the sample" }
14
+ "timestamp": {
15
+ "type": "string",
16
+ "format": "date-time",
17
+ "description": "ISO 8601 timestamp of the sample"
18
+ }
12
19
  }
13
20
  }
14
21
  }
@@ -1,15 +1,26 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/readiness.json",
4
- "title": "oura-cli readiness output",
4
+ "title": "oura-cli fetch readiness output",
5
+ "description": "Daily readiness score, contributors and temperature deviation",
5
6
  "type": "array",
6
7
  "items": {
7
8
  "type": "object",
8
9
  "additionalProperties": true,
9
- "required": ["id", "day"],
10
+ "required": [
11
+ "id",
12
+ "day"
13
+ ],
10
14
  "properties": {
11
- "id": { "type": "string", "description": "Oura record id" },
12
- "day": { "type": "string", "format": "date", "description": "Date the record applies to (YYYY-MM-DD)" }
15
+ "id": {
16
+ "type": "string",
17
+ "description": "Oura record id"
18
+ },
19
+ "day": {
20
+ "type": "string",
21
+ "format": "date",
22
+ "description": "Date the record applies to (YYYY-MM-DD)"
23
+ }
13
24
  }
14
25
  }
15
26
  }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/sleep-periods.json",
4
+ "title": "oura-cli fetch sleep-periods output",
5
+ "description": "Individual sleep periods with stages, HRV, heart rate and efficiency",
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "additionalProperties": true,
10
+ "required": [
11
+ "id",
12
+ "day"
13
+ ],
14
+ "properties": {
15
+ "id": {
16
+ "type": "string",
17
+ "description": "Oura record id"
18
+ },
19
+ "day": {
20
+ "type": "string",
21
+ "format": "date",
22
+ "description": "Date the record applies to (YYYY-MM-DD)"
23
+ }
24
+ }
25
+ }
26
+ }
@@ -1,15 +1,26 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/sleep.json",
4
- "title": "oura-cli sleep output",
4
+ "title": "oura-cli fetch sleep output",
5
+ "description": "Daily sleep score and contributors",
5
6
  "type": "array",
6
7
  "items": {
7
8
  "type": "object",
8
9
  "additionalProperties": true,
9
- "required": ["id", "day"],
10
+ "required": [
11
+ "id",
12
+ "day"
13
+ ],
10
14
  "properties": {
11
- "id": { "type": "string", "description": "Oura record id" },
12
- "day": { "type": "string", "format": "date", "description": "Date the record applies to (YYYY-MM-DD)" }
15
+ "id": {
16
+ "type": "string",
17
+ "description": "Oura record id"
18
+ },
19
+ "day": {
20
+ "type": "string",
21
+ "format": "date",
22
+ "description": "Date the record applies to (YYYY-MM-DD)"
23
+ }
13
24
  }
14
25
  }
15
26
  }
@@ -1,15 +1,26 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/spo2.json",
4
- "title": "oura-cli spo2 output",
4
+ "title": "oura-cli fetch spo2 output",
5
+ "description": "Daily blood-oxygen average and breathing disturbance index",
5
6
  "type": "array",
6
7
  "items": {
7
8
  "type": "object",
8
9
  "additionalProperties": true,
9
- "required": ["id", "day"],
10
+ "required": [
11
+ "id",
12
+ "day"
13
+ ],
10
14
  "properties": {
11
- "id": { "type": "string", "description": "Oura record id" },
12
- "day": { "type": "string", "format": "date", "description": "Date the record applies to (YYYY-MM-DD)" }
15
+ "id": {
16
+ "type": "string",
17
+ "description": "Oura record id"
18
+ },
19
+ "day": {
20
+ "type": "string",
21
+ "format": "date",
22
+ "description": "Date the record applies to (YYYY-MM-DD)"
23
+ }
13
24
  }
14
25
  }
15
26
  }
@@ -1,15 +1,26 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/stress.json",
4
- "title": "oura-cli stress output",
4
+ "title": "oura-cli fetch stress output",
5
+ "description": "Daily stress summary with high-stress and high-recovery seconds",
5
6
  "type": "array",
6
7
  "items": {
7
8
  "type": "object",
8
9
  "additionalProperties": true,
9
- "required": ["id", "day"],
10
+ "required": [
11
+ "id",
12
+ "day"
13
+ ],
10
14
  "properties": {
11
- "id": { "type": "string", "description": "Oura record id" },
12
- "day": { "type": "string", "format": "date", "description": "Date the record applies to (YYYY-MM-DD)" }
15
+ "id": {
16
+ "type": "string",
17
+ "description": "Oura record id"
18
+ },
19
+ "day": {
20
+ "type": "string",
21
+ "format": "date",
22
+ "description": "Date the record applies to (YYYY-MM-DD)"
23
+ }
13
24
  }
14
25
  }
15
26
  }
@@ -1,15 +1,26 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://github.com/drakulavich/oura-cli/blob/main/docs/schemas/workout.json",
4
- "title": "oura-cli workout output",
4
+ "title": "oura-cli fetch workout output",
5
+ "description": "Workout sessions with activity, calories, distance and intensity",
5
6
  "type": "array",
6
7
  "items": {
7
8
  "type": "object",
8
9
  "additionalProperties": true,
9
- "required": ["id", "day"],
10
+ "required": [
11
+ "id",
12
+ "day"
13
+ ],
10
14
  "properties": {
11
- "id": { "type": "string", "description": "Oura record id" },
12
- "day": { "type": "string", "format": "date", "description": "Date the record applies to (YYYY-MM-DD)" }
15
+ "id": {
16
+ "type": "string",
17
+ "description": "Oura record id"
18
+ },
19
+ "day": {
20
+ "type": "string",
21
+ "format": "date",
22
+ "description": "Date the record applies to (YYYY-MM-DD)"
23
+ }
13
24
  }
14
25
  }
15
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drakulavich/oura-cli",
3
- "version": "0.4.4",
3
+ "version": "0.5.0",
4
4
  "description": "Oura Ring CLI — query and analyze Oura Ring health data from the command line, designed for humans and AI agents.",
5
5
  "keywords": [
6
6
  "oura",
@@ -22,6 +22,7 @@
22
22
  "build": "bun build src/index.ts --outdir dist --target bun --banner '#!/usr/bin/env bun'",
23
23
  "dev": "bun run src/index.ts",
24
24
  "test": "bun test",
25
+ "schemas": "bun run scripts/generate-schemas.ts",
25
26
  "prepublishOnly": "bun run build"
26
27
  },
27
28
  "exports": {
@@ -51,15 +52,14 @@
51
52
  "access": "public"
52
53
  },
53
54
  "dependencies": {
54
- "chalk": "^5.6.2",
55
+ "chalk": "^6.0.0",
55
56
  "citty": "^0.2.2"
56
57
  },
57
58
  "devDependencies": {
58
59
  "@types/bun": "^1.3.14",
59
- "@types/node": "^25.3.3",
60
- "@typescript/native-preview": "^7.0.0-dev.20260513.1",
60
+ "@types/node": "^26.0.0",
61
61
  "ajv": "^8.20.0",
62
62
  "ajv-formats": "^3.0.1",
63
- "typescript": "^6.0.3"
63
+ "typescript": "^7.0.2"
64
64
  }
65
65
  }