@stuartshay/otel-data-types 1.0.642 → 1.0.645
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/index.d.ts +150 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -389,6 +389,26 @@ export type paths = {
|
|
|
389
389
|
patch?: never;
|
|
390
390
|
trace?: never;
|
|
391
391
|
};
|
|
392
|
+
"/api/v1/garmin/activities/{activity_id}/sensors": {
|
|
393
|
+
parameters: {
|
|
394
|
+
query?: never;
|
|
395
|
+
header?: never;
|
|
396
|
+
path?: never;
|
|
397
|
+
cookie?: never;
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* List Activity Sensors
|
|
401
|
+
* @description Return the FIT device_info rows (head unit + paired sensors) for an activity.
|
|
402
|
+
*/
|
|
403
|
+
get: operations["list_activity_sensors_api_v1_garmin_activities__activity_id__sensors_get"];
|
|
404
|
+
put?: never;
|
|
405
|
+
post?: never;
|
|
406
|
+
delete?: never;
|
|
407
|
+
options?: never;
|
|
408
|
+
head?: never;
|
|
409
|
+
patch?: never;
|
|
410
|
+
trace?: never;
|
|
411
|
+
};
|
|
392
412
|
"/api/v1/garmin/activities/{activity_id}/weather": {
|
|
393
413
|
parameters: {
|
|
394
414
|
query?: never;
|
|
@@ -1933,6 +1953,97 @@ export type components = {
|
|
|
1933
1953
|
*/
|
|
1934
1954
|
uploaded_at?: string | null;
|
|
1935
1955
|
};
|
|
1956
|
+
/**
|
|
1957
|
+
* GarminActivitySensor
|
|
1958
|
+
* @description A FIT device_info record (head unit or paired sensor) for an activity.
|
|
1959
|
+
*/
|
|
1960
|
+
GarminActivitySensor: {
|
|
1961
|
+
/**
|
|
1962
|
+
* Id
|
|
1963
|
+
* @description Unique sensor row identifier
|
|
1964
|
+
*/
|
|
1965
|
+
id: number;
|
|
1966
|
+
/**
|
|
1967
|
+
* Activity Id
|
|
1968
|
+
* @description Parent Garmin activity identifier
|
|
1969
|
+
*/
|
|
1970
|
+
activity_id: string;
|
|
1971
|
+
/**
|
|
1972
|
+
* Device Index
|
|
1973
|
+
* @description FIT device_index: 0 for the head unit, 1+ for each paired sensor
|
|
1974
|
+
*/
|
|
1975
|
+
device_index: number;
|
|
1976
|
+
/**
|
|
1977
|
+
* Is Primary
|
|
1978
|
+
* @description True for the recording device (head unit / FIT creator record)
|
|
1979
|
+
*/
|
|
1980
|
+
is_primary: boolean;
|
|
1981
|
+
/**
|
|
1982
|
+
* Device Type
|
|
1983
|
+
* @description FIT antplus_device_type (e.g. heart_rate, bike_power)
|
|
1984
|
+
*/
|
|
1985
|
+
device_type?: string | null;
|
|
1986
|
+
/**
|
|
1987
|
+
* Manufacturer
|
|
1988
|
+
* @description Sensor manufacturer (e.g. garmin)
|
|
1989
|
+
*/
|
|
1990
|
+
manufacturer?: string | null;
|
|
1991
|
+
/**
|
|
1992
|
+
* Garmin Product
|
|
1993
|
+
* @description Raw Garmin product enum id from the FIT file
|
|
1994
|
+
*/
|
|
1995
|
+
garmin_product?: number | null;
|
|
1996
|
+
/**
|
|
1997
|
+
* Product Name
|
|
1998
|
+
* @description Friendly product name (e.g. Edge 540 Solar, HRM-Pro)
|
|
1999
|
+
*/
|
|
2000
|
+
product_name?: string | null;
|
|
2001
|
+
/**
|
|
2002
|
+
* Serial Number
|
|
2003
|
+
* @description Sensor serial number, when reported
|
|
2004
|
+
*/
|
|
2005
|
+
serial_number?: number | null;
|
|
2006
|
+
/**
|
|
2007
|
+
* Software Version
|
|
2008
|
+
* @description Sensor firmware/software version
|
|
2009
|
+
*/
|
|
2010
|
+
software_version?: string | null;
|
|
2011
|
+
/**
|
|
2012
|
+
* Hardware Version
|
|
2013
|
+
* @description Sensor hardware revision
|
|
2014
|
+
*/
|
|
2015
|
+
hardware_version?: number | null;
|
|
2016
|
+
/**
|
|
2017
|
+
* Battery Status
|
|
2018
|
+
* @description FIT battery_status: new, good, ok, low, critical, charging, unknown
|
|
2019
|
+
*/
|
|
2020
|
+
battery_status?: string | null;
|
|
2021
|
+
/**
|
|
2022
|
+
* Battery Voltage
|
|
2023
|
+
* @description Sensor battery voltage
|
|
2024
|
+
*/
|
|
2025
|
+
battery_voltage?: number | null;
|
|
2026
|
+
/**
|
|
2027
|
+
* Ant Network
|
|
2028
|
+
* @description ANT network the sensor was paired on
|
|
2029
|
+
*/
|
|
2030
|
+
ant_network?: string | null;
|
|
2031
|
+
/**
|
|
2032
|
+
* Source Type
|
|
2033
|
+
* @description Sensor connection type (ant, antplus, bluetooth_low_energy, ...)
|
|
2034
|
+
*/
|
|
2035
|
+
source_type?: string | null;
|
|
2036
|
+
/**
|
|
2037
|
+
* Created At
|
|
2038
|
+
* @description UTC timestamp when the row was inserted
|
|
2039
|
+
*/
|
|
2040
|
+
created_at?: string | null;
|
|
2041
|
+
/**
|
|
2042
|
+
* Updated At
|
|
2043
|
+
* @description UTC timestamp when the row was last updated
|
|
2044
|
+
*/
|
|
2045
|
+
updated_at?: string | null;
|
|
2046
|
+
};
|
|
1936
2047
|
/**
|
|
1937
2048
|
* GarminActivityTotal
|
|
1938
2049
|
* @description Aggregated Garmin activity totals for a single time bucket (week/month/year).
|
|
@@ -4716,6 +4827,45 @@ export interface operations {
|
|
|
4716
4827
|
};
|
|
4717
4828
|
};
|
|
4718
4829
|
};
|
|
4830
|
+
list_activity_sensors_api_v1_garmin_activities__activity_id__sensors_get: {
|
|
4831
|
+
parameters: {
|
|
4832
|
+
query?: never;
|
|
4833
|
+
header?: never;
|
|
4834
|
+
path: {
|
|
4835
|
+
/** @description Garmin activity ID */
|
|
4836
|
+
activity_id: string;
|
|
4837
|
+
};
|
|
4838
|
+
cookie?: never;
|
|
4839
|
+
};
|
|
4840
|
+
requestBody?: never;
|
|
4841
|
+
responses: {
|
|
4842
|
+
/** @description Successful Response */
|
|
4843
|
+
200: {
|
|
4844
|
+
headers: {
|
|
4845
|
+
[name: string]: unknown;
|
|
4846
|
+
};
|
|
4847
|
+
content: {
|
|
4848
|
+
"application/json": components["schemas"]["GarminActivitySensor"][];
|
|
4849
|
+
};
|
|
4850
|
+
};
|
|
4851
|
+
/** @description Activity not found */
|
|
4852
|
+
404: {
|
|
4853
|
+
headers: {
|
|
4854
|
+
[name: string]: unknown;
|
|
4855
|
+
};
|
|
4856
|
+
content?: never;
|
|
4857
|
+
};
|
|
4858
|
+
/** @description Validation Error */
|
|
4859
|
+
422: {
|
|
4860
|
+
headers: {
|
|
4861
|
+
[name: string]: unknown;
|
|
4862
|
+
};
|
|
4863
|
+
content: {
|
|
4864
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4865
|
+
};
|
|
4866
|
+
};
|
|
4867
|
+
};
|
|
4868
|
+
};
|
|
4719
4869
|
get_activity_weather_api_v1_garmin_activities__activity_id__weather_get: {
|
|
4720
4870
|
parameters: {
|
|
4721
4871
|
query?: never;
|