football-docs 0.16.0 → 0.16.1

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.
package/README.md CHANGED
@@ -276,10 +276,10 @@ As environment variables in the server's MCP configuration:
276
276
  | Transfermarkt | 5 | identity-surfaces, data-provenance |
277
277
  | STATSports | 70 | api-access, api-endpoints, data-model, drill-kpi-metrics (all 319 DrillKpiV7 fields), identity-surfaces, data-provenance |
278
278
  | Firstbeat | 79 | api-access, api-endpoints, data-model, variables (100 scalars, 17 time series), identity-surfaces, data-provenance |
279
- | Hawkin Dynamics | 67 | api-access, api-endpoints, data-model, test-metrics (535 metrics across 13 test types), identity-surfaces, data-provenance |
279
+ | Hawkin Dynamics | 69 | api-access, api-endpoints, data-model, test-metrics (535 metrics across 13 test types), identity-surfaces, data-provenance |
280
280
  | VALD | 318 | api-access, api-endpoints, per-product endpoints and schemas (tenants, profiles, forcedecks, nordbord, forceframe, smartspeed, dynamo, humantrak), identity-surfaces, data-provenance |
281
281
 
282
- **3,394 searchable chunks** across 30 providers and tools.
282
+ **3,396 searchable chunks** across 30 providers and tools.
283
283
 
284
284
  STATSports, Firstbeat, Hawkin Dynamics and VALD sell wearables and testing devices.
285
285
  Their APIs return a customer's own athlete data, which includes personal and health
@@ -463,6 +463,13 @@ git tag -a v0.11.0 -m "v0.11.0"
463
463
  git push origin v0.11.0
464
464
  ```
465
465
 
466
+ 3. The release job attaches `site-stats.json` (version, chunk and provider counts,
467
+ tools, per-provider chunks; `pnpm site:stats` prints the same) to the GitHub
468
+ Release. In nutmeg-site, `pnpm football-docs:release` reads it from the latest
469
+ release, rebuilds the football-docs section and saves the announcement card as
470
+ `cards/football-docs-v<version>.png`. Update its "What's new" text, then
471
+ `pnpm deploy` there.
472
+
466
473
  Release notes come from the body of the `chore: release vX.Y.Z` commit, so write
467
474
  that message as the release notes you want readers to see. The workflow reads it
468
475
  from the second parent when the tag sits on a merge commit, strips the commit
package/data/docs.db CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  source_type: curated
3
3
  source_url: https://connect.hawkindynamics.com/api
4
- upstream_version: Hawkin Force Platform API 1.15 (OpenAPI 3.0.3)
4
+ upstream_version: Hawkin Force Platform API 1.16 (OpenAPI 3.0.3)
5
5
  crawled_at: 2026-09-30
6
6
  ---
7
7
 
@@ -11,7 +11,7 @@ crawled_at: 2026-09-30
11
11
 
12
12
  Hawkin Dynamics makes force plates. The Hawkin Force Platform API returns an
13
13
  organisation's own test results (jumps, isometric tests and others), force-time
14
- data and athlete records. The reference page labels it "Beta API · v1.15".
14
+ data and athlete records. The reference page labels it "Beta API · v1.16".
15
15
 
16
16
  - Reference page: https://connect.hawkindynamics.com/api
17
17
  - OpenAPI 3.0.3 document: inline on the reference page (its "Download OpenAPI Spec"
@@ -91,10 +91,11 @@ From the spec's description and the `GET /api/v1` parameters:
91
91
 
92
92
  ## Version history
93
93
 
94
- The reference page's changelog, checked 2026-09-30:
94
+ The reference page's changelog, checked 2026-10-01:
95
95
 
96
96
  | Date | Version | Change, as the page states it |
97
97
  |---|---|---|
98
+ | Sep 2026 | v1.16 | Response-shape query params on Get Tests: `useNulls` (default `true`; `false` returns the string `"N/A"` instead of `null` for non-calculable metrics), `rounding` (default `false`) and `nestMetrics` (default `false`; metrics as a `metrics` array, see `TestNested`). For customers migrating from a legacy named endpoint; new integrations should leave the defaults |
98
99
  | Jul 2026 | v1.15 | New `GET /api/v1/cop/{test_id}`; force-time shear forces, moments and `eid`; `rsi` is an array; `timestamp` is an integer; non-calculable metrics are `null`, not `"N/A"`; tests include `active`; metrics use `testTypeName`; test types return a bare array; teams, groups and tags include `count`; team-scoped token behaviour documented |
99
100
  | May 2026 | v1.14 | Athlete profile fields `image`, `position`, `dob`, `sport`, `height`, `lastTestedOn`; `includeInactive` on athletes documented |
100
101
  | Apr 2026 | v1.13 | `includeInactive` and cursor pagination (`paginate`, `cursor`) on Get Tests |
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  source_type: curated
3
3
  source_url: https://connect.hawkindynamics.com/api
4
- upstream_version: Hawkin Force Platform API 1.15 (OpenAPI 3.0.3)
4
+ upstream_version: Hawkin Force Platform API 1.16 (OpenAPI 3.0.3)
5
5
  crawled_at: 2026-09-30
6
6
  ---
7
7
 
@@ -10,7 +10,7 @@ crawled_at: 2026-09-30
10
10
  ## Endpoint inventory
11
11
 
12
12
  All 14 operations in the Hawkin Force Platform API spec
13
- (`info.version` "1.15"), from the OpenAPI document published inline on
13
+ (`info.version` "1.16"), from the OpenAPI document published inline on
14
14
  https://connect.hawkindynamics.com/api. Paths are relative to the regional base URL
15
15
  (see Hawkin Dynamics API access), for example
16
16
  `https://cloud.hawkindynamics.com/api/v1/athletes`.
@@ -62,6 +62,9 @@ Parameters:
62
62
  - `groupId` (query, string) — Filter by one or more group IDs (comma-separated, max 10). Can only be used with `from`/`to` parameters.
63
63
  - `testTypeId` (query, string) — Filter by a specific test type ID. Can only be used with `from`/`to` parameters.
64
64
  - `includeInactive` (query, boolean) default `true` — Default true. Set to false to return only active tests.
65
+ - `useNulls` (query, boolean) default `true` — Default true. Non-calculable metric values are returned as `null`. Set to false to receive the string `"N/A"` instead. Intended for customers migrating from a legacy named endpoint that returned `"N/A"`; new integrations should leave the default. Omit to keep the default; any value other than `true` is treated as false.
66
+ - `rounding` (query, boolean) default `false` — Default false. Set to true to round each metric value to its standard display precision. Has no effect when `nestMetrics=true` (nested metric values are never rounded). Intended for customers migrating from a legacy named endpoint that returned rounded values; new integrations should leave the default. Omit to keep the default; any value other than `true` is treated as false.
67
+ - `nestMetrics` (query, boolean) default `false` — Default false. Set to true to return each test's metrics as a `metrics` array of `{metricId, metricLabel, metricUnits, metricValue}` objects (see the `TestNested` schema) instead of flat metric-name keys. Only metrics with a numeric value are included. Intended for customers migrating from a legacy named endpoint that returned nested metrics; new integrations should leave the default. Omit to keep the default; any value other than `true` is treated as false.
65
68
  - `includeEid` (query, boolean) default `false` — Default false. Set to true to include the hardware `eid` (equipment ID) on each returned test record.
66
69
  - `paginate` (query, boolean) — Set to true to enable paginated responses (1,000 tests per page).
67
70
  - `cursor` (query, string) — Firestore document ID from previous response's nextCursor. Omit on first request.
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  source_type: curated
3
3
  source_url: https://connect.hawkindynamics.com/api
4
- upstream_version: Hawkin Force Platform API 1.15 (OpenAPI 3.0.3)
4
+ upstream_version: Hawkin Force Platform API 1.16 (OpenAPI 3.0.3)
5
5
  crawled_at: 2026-09-30
6
6
  ---
7
7
 
@@ -68,7 +68,7 @@ marked **Personal data** hold data about an identifiable athlete. On `Athlete`,
68
68
  | `active` | `boolean` | | | | Whether the test is active (not archived). Included by default because the public endpoint uses includeInactive=true; set includeInactive=false to return only active tests. |
69
69
  <!-- generated:hawkin-schema-test end -->
70
70
 
71
- Besides the fields above, a `Test` has `additionalProperties` of type `number`, nullable, described as: "Metric values keyed by metric name (e.g. 'Jump Height(m)'). Non-calculable metrics are returned as null (the public endpoint uses useNulls=true), not the string 'N/A'."
71
+ Besides the fields above, a `Test` has `additionalProperties` of type `number`, nullable, described as: "Metric values keyed by metric name (e.g. 'Jump Height(m)'). Non-calculable metrics are returned as null by default (useNulls=true); with useNulls=false they are the string 'N/A'. Values are unrounded unless rounding=true. Omitted entirely when nestMetrics=true (see TestNested)."
72
72
 
73
73
  The reference page's Metrics section says something different: "The id shown for each metric is the property name you'll see in API responses". The metric `id` values are camelCase (for example `jumpHeight`), while the spec's example key is `Jump Height(m)`, which is the metric's `label` followed by its `units` in brackets. The two statements disagree; check a live response before relying on either.
74
74
 
@@ -77,7 +77,7 @@ The reference page's Metrics section says something different: "The id shown for
77
77
  <!-- generated:hawkin-schema-testsresponse start -->
78
78
  | Field | Type | Format | Nullable | Required | Description |
79
79
  |---|---|---|---|---|---|
80
- | `data` | array of `Test` | | | | |
80
+ | `data` | array of `Test` | | | | Test records. Each item is a Test, or a TestNested when the request was made with nestMetrics=true. |
81
81
  | `count` | `integer` | | | | |
82
82
  | `lastTestTime` | `integer` | | | | Unix timestamp of the most recent test |
83
83
  | `lastSyncTime` | `integer` | | | | Unix timestamp to use as syncFrom in your next request |
@@ -85,6 +85,37 @@ The reference page's Metrics section says something different: "The id shown for
85
85
  | `nextCursor` | `string` | | yes | | Cursor for next page. Null on last page. Only present when paginate=true. |
86
86
  <!-- generated:hawkin-schema-testsresponse end -->
87
87
 
88
+ ## `TestNested`
89
+
90
+ Shape of each test when the request was made with nestMetrics=true. Metadata fields match Test; metrics move into a `metrics` array and are never rounded.
91
+
92
+ <!-- generated:hawkin-schema-testnested start -->
93
+ | Field | Type | Format | Nullable | Required | Description |
94
+ |---|---|---|---|---|---|
95
+ | `id` | `string` | | | | |
96
+ | `testType` | `TestType` | | | | |
97
+ | `athlete` | `AthleteRef` | | | | |
98
+ | `timestamp` | `integer` | | | | Unix timestamp of the test |
99
+ | `segment` | `string` | | | | Test type and trial number within session |
100
+ | `active` | `boolean` | | | | Whether the test is active (not archived). Present when includeInactive=true (the default). |
101
+ | `metrics` | array of `NestedMetric` | | | | |
102
+ <!-- generated:hawkin-schema-testnested end -->
103
+
104
+ ## `NestedMetric`
105
+
106
+ One metric on a test when the request was made with nestMetrics=true. Only metrics with a numeric value are included (from the `nestMetrics` parameter's description).
107
+
108
+ <!-- generated:hawkin-schema-nestedmetric start -->
109
+ | Field | Type | Format | Nullable | Required | Description |
110
+ |---|---|---|---|---|---|
111
+ | `metricId` | `string` | | | | Stable metric ID |
112
+ | `metricLabel` | `string` | | | | Metric label |
113
+ | `metricUnits` | `string` | | | | Units, may be empty |
114
+ | `metricValue` | `number` | | | | Unrounded metric value |
115
+ <!-- generated:hawkin-schema-nestedmetric end -->
116
+
117
+ In this shape each metric carries its `metricId` (for example `jumpHeight`), its `metricLabel` and its `metricUnits` as separate fields, rather than a single `Jump Height(m)` style key.
118
+
88
119
  ## `Athlete`
89
120
 
90
121
  <!-- generated:hawkin-schema-athlete start -->
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  source_type: curated
3
3
  source_url: https://connect.hawkindynamics.com/api
4
- upstream_version: Hawkin Force Platform API 1.15 (OpenAPI 3.0.3)
4
+ upstream_version: Hawkin Force Platform API 1.16 (OpenAPI 3.0.3)
5
5
  crawled_at: 2026-09-30
6
6
  ---
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "football-docs",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "Searchable football data provider documentation for AI coding agents. Like Context7 for football data.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.34.4",
@@ -21,6 +21,7 @@
21
21
  "discover": "tsx src/crawl.ts --discover",
22
22
  "impect:truth": "tsx src/impect-truth.ts",
23
23
  "statsbomb:truth": "tsx src/statsbomb-truth.ts",
24
+ "site:stats": "tsx scripts/site-stats.ts",
24
25
  "lint": "biome check src/",
25
26
  "lint:fix": "biome check --write src/",
26
27
  "prepublishOnly": "pnpm build && pnpm ingest",