@stuartshay/otel-data-types 1.0.629 → 1.0.636
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 +350 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -389,6 +389,55 @@ export type paths = {
|
|
|
389
389
|
patch?: never;
|
|
390
390
|
trace?: never;
|
|
391
391
|
};
|
|
392
|
+
"/api/v1/garmin/activities/{activity_id}/weather": {
|
|
393
|
+
parameters: {
|
|
394
|
+
query?: never;
|
|
395
|
+
header?: never;
|
|
396
|
+
path?: never;
|
|
397
|
+
cookie?: never;
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* Get Activity Weather
|
|
401
|
+
* @description Return Open-Meteo weather conditions for an activity's start location/time.
|
|
402
|
+
*
|
|
403
|
+
* Returns ``null`` (not 404) when the activity exists but hasn't been
|
|
404
|
+
* backfilled with weather yet — garmin-sync's weather backfill job fills
|
|
405
|
+
* this in asynchronously.
|
|
406
|
+
*/
|
|
407
|
+
get: operations["get_activity_weather_api_v1_garmin_activities__activity_id__weather_get"];
|
|
408
|
+
put?: never;
|
|
409
|
+
post?: never;
|
|
410
|
+
delete?: never;
|
|
411
|
+
options?: never;
|
|
412
|
+
head?: never;
|
|
413
|
+
patch?: never;
|
|
414
|
+
trace?: never;
|
|
415
|
+
};
|
|
416
|
+
"/api/v1/garmin/activities/{activity_id}/weather-hourly": {
|
|
417
|
+
parameters: {
|
|
418
|
+
query?: never;
|
|
419
|
+
header?: never;
|
|
420
|
+
path?: never;
|
|
421
|
+
cookie?: never;
|
|
422
|
+
};
|
|
423
|
+
/**
|
|
424
|
+
* List Activity Weather Hourly
|
|
425
|
+
* @description Return route-sampled, hour-by-hour Open-Meteo weather for an activity.
|
|
426
|
+
*
|
|
427
|
+
* Unlike ``/weather`` (a single "conditions at the start" snapshot), each
|
|
428
|
+
* row here is sampled at the GPS location the athlete was actually at
|
|
429
|
+
* during that hour. Returns an empty list (not 404) when the activity
|
|
430
|
+
* exists but hasn't been hourly-backfilled yet.
|
|
431
|
+
*/
|
|
432
|
+
get: operations["list_activity_weather_hourly_api_v1_garmin_activities__activity_id__weather_hourly_get"];
|
|
433
|
+
put?: never;
|
|
434
|
+
post?: never;
|
|
435
|
+
delete?: never;
|
|
436
|
+
options?: never;
|
|
437
|
+
head?: never;
|
|
438
|
+
patch?: never;
|
|
439
|
+
trace?: never;
|
|
440
|
+
};
|
|
392
441
|
"/api/v1/garmin/laps": {
|
|
393
442
|
parameters: {
|
|
394
443
|
query?: never;
|
|
@@ -1904,6 +1953,229 @@ export type components = {
|
|
|
1904
1953
|
*/
|
|
1905
1954
|
total_calories?: number | null;
|
|
1906
1955
|
};
|
|
1956
|
+
/**
|
|
1957
|
+
* GarminActivityWeather
|
|
1958
|
+
* @description Open-Meteo weather conditions matched to an activity's start location/time.
|
|
1959
|
+
*/
|
|
1960
|
+
GarminActivityWeather: {
|
|
1961
|
+
/**
|
|
1962
|
+
* Activity Id
|
|
1963
|
+
* @description Parent Garmin activity identifier
|
|
1964
|
+
*/
|
|
1965
|
+
activity_id: string;
|
|
1966
|
+
/**
|
|
1967
|
+
* Observed At
|
|
1968
|
+
* Format: date-time
|
|
1969
|
+
* @description UTC hourly bucket the reading was taken from
|
|
1970
|
+
*/
|
|
1971
|
+
observed_at: string;
|
|
1972
|
+
/**
|
|
1973
|
+
* Latitude
|
|
1974
|
+
* @description Latitude the weather was looked up for
|
|
1975
|
+
*/
|
|
1976
|
+
latitude: number;
|
|
1977
|
+
/**
|
|
1978
|
+
* Longitude
|
|
1979
|
+
* @description Longitude the weather was looked up for
|
|
1980
|
+
*/
|
|
1981
|
+
longitude: number;
|
|
1982
|
+
/**
|
|
1983
|
+
* Temperature C
|
|
1984
|
+
* @description Air temperature in degrees C
|
|
1985
|
+
*/
|
|
1986
|
+
temperature_c?: number | null;
|
|
1987
|
+
/**
|
|
1988
|
+
* Apparent Temperature C
|
|
1989
|
+
* @description Feels-like temperature in degrees C
|
|
1990
|
+
*/
|
|
1991
|
+
apparent_temperature_c?: number | null;
|
|
1992
|
+
/**
|
|
1993
|
+
* Relative Humidity Pct
|
|
1994
|
+
* @description Relative humidity percent
|
|
1995
|
+
*/
|
|
1996
|
+
relative_humidity_pct?: number | null;
|
|
1997
|
+
/**
|
|
1998
|
+
* Precipitation Mm
|
|
1999
|
+
* @description Total precipitation in millimeters
|
|
2000
|
+
*/
|
|
2001
|
+
precipitation_mm?: number | null;
|
|
2002
|
+
/**
|
|
2003
|
+
* Rain Mm
|
|
2004
|
+
* @description Rainfall in millimeters
|
|
2005
|
+
*/
|
|
2006
|
+
rain_mm?: number | null;
|
|
2007
|
+
/**
|
|
2008
|
+
* Snowfall Cm
|
|
2009
|
+
* @description Snowfall in centimeters
|
|
2010
|
+
*/
|
|
2011
|
+
snowfall_cm?: number | null;
|
|
2012
|
+
/**
|
|
2013
|
+
* Cloud Cover Pct
|
|
2014
|
+
* @description Total cloud cover percent
|
|
2015
|
+
*/
|
|
2016
|
+
cloud_cover_pct?: number | null;
|
|
2017
|
+
/**
|
|
2018
|
+
* Wind Speed Kmh
|
|
2019
|
+
* @description Wind speed in km/h
|
|
2020
|
+
*/
|
|
2021
|
+
wind_speed_kmh?: number | null;
|
|
2022
|
+
/**
|
|
2023
|
+
* Wind Gusts Kmh
|
|
2024
|
+
* @description Wind gust speed in km/h
|
|
2025
|
+
*/
|
|
2026
|
+
wind_gusts_kmh?: number | null;
|
|
2027
|
+
/**
|
|
2028
|
+
* Wind Direction Deg
|
|
2029
|
+
* @description Wind direction in degrees
|
|
2030
|
+
*/
|
|
2031
|
+
wind_direction_deg?: number | null;
|
|
2032
|
+
/**
|
|
2033
|
+
* Surface Pressure Hpa
|
|
2034
|
+
* @description Surface pressure in hPa
|
|
2035
|
+
*/
|
|
2036
|
+
surface_pressure_hpa?: number | null;
|
|
2037
|
+
/**
|
|
2038
|
+
* Weather Code
|
|
2039
|
+
* @description WMO weather interpretation code
|
|
2040
|
+
*/
|
|
2041
|
+
weather_code?: number | null;
|
|
2042
|
+
/**
|
|
2043
|
+
* Source
|
|
2044
|
+
* @description Open-Meteo API the row came from: archive or forecast
|
|
2045
|
+
*/
|
|
2046
|
+
source: string;
|
|
2047
|
+
/**
|
|
2048
|
+
* Is Provisional
|
|
2049
|
+
* @description True when sourced from the forecast API pending ERA5 archive settlement
|
|
2050
|
+
*/
|
|
2051
|
+
is_provisional: boolean;
|
|
2052
|
+
/**
|
|
2053
|
+
* Created At
|
|
2054
|
+
* @description UTC timestamp when the row was inserted
|
|
2055
|
+
*/
|
|
2056
|
+
created_at?: string | null;
|
|
2057
|
+
/**
|
|
2058
|
+
* Updated At
|
|
2059
|
+
* @description UTC timestamp when the row was last updated
|
|
2060
|
+
*/
|
|
2061
|
+
updated_at?: string | null;
|
|
2062
|
+
};
|
|
2063
|
+
/**
|
|
2064
|
+
* GarminActivityWeatherHourly
|
|
2065
|
+
* @description Route-sampled, hour-by-hour Open-Meteo weather for an activity.
|
|
2066
|
+
*
|
|
2067
|
+
* Unlike GarminActivityWeather (a single "conditions at the start"
|
|
2068
|
+
* snapshot), this is one row per hour the activity spans, each sampled at
|
|
2069
|
+
* the GPS location the athlete was actually at during that hour.
|
|
2070
|
+
*/
|
|
2071
|
+
GarminActivityWeatherHourly: {
|
|
2072
|
+
/**
|
|
2073
|
+
* Activity Id
|
|
2074
|
+
* @description Parent Garmin activity identifier
|
|
2075
|
+
*/
|
|
2076
|
+
activity_id: string;
|
|
2077
|
+
/**
|
|
2078
|
+
* Hour Index
|
|
2079
|
+
* @description Zero-based hour offset from the activity start
|
|
2080
|
+
*/
|
|
2081
|
+
hour_index: number;
|
|
2082
|
+
/**
|
|
2083
|
+
* Observed At
|
|
2084
|
+
* Format: date-time
|
|
2085
|
+
* @description UTC hourly bucket the reading was taken from
|
|
2086
|
+
*/
|
|
2087
|
+
observed_at: string;
|
|
2088
|
+
/**
|
|
2089
|
+
* Latitude
|
|
2090
|
+
* @description Latitude sampled from the nearest track point for this hour
|
|
2091
|
+
*/
|
|
2092
|
+
latitude: number;
|
|
2093
|
+
/**
|
|
2094
|
+
* Longitude
|
|
2095
|
+
* @description Longitude sampled from the nearest track point for this hour
|
|
2096
|
+
*/
|
|
2097
|
+
longitude: number;
|
|
2098
|
+
/**
|
|
2099
|
+
* Temperature C
|
|
2100
|
+
* @description Air temperature in degrees C
|
|
2101
|
+
*/
|
|
2102
|
+
temperature_c?: number | null;
|
|
2103
|
+
/**
|
|
2104
|
+
* Apparent Temperature C
|
|
2105
|
+
* @description Feels-like temperature in degrees C
|
|
2106
|
+
*/
|
|
2107
|
+
apparent_temperature_c?: number | null;
|
|
2108
|
+
/**
|
|
2109
|
+
* Relative Humidity Pct
|
|
2110
|
+
* @description Relative humidity percent
|
|
2111
|
+
*/
|
|
2112
|
+
relative_humidity_pct?: number | null;
|
|
2113
|
+
/**
|
|
2114
|
+
* Precipitation Mm
|
|
2115
|
+
* @description Total precipitation in millimeters
|
|
2116
|
+
*/
|
|
2117
|
+
precipitation_mm?: number | null;
|
|
2118
|
+
/**
|
|
2119
|
+
* Rain Mm
|
|
2120
|
+
* @description Rainfall in millimeters
|
|
2121
|
+
*/
|
|
2122
|
+
rain_mm?: number | null;
|
|
2123
|
+
/**
|
|
2124
|
+
* Snowfall Cm
|
|
2125
|
+
* @description Snowfall in centimeters
|
|
2126
|
+
*/
|
|
2127
|
+
snowfall_cm?: number | null;
|
|
2128
|
+
/**
|
|
2129
|
+
* Cloud Cover Pct
|
|
2130
|
+
* @description Total cloud cover percent
|
|
2131
|
+
*/
|
|
2132
|
+
cloud_cover_pct?: number | null;
|
|
2133
|
+
/**
|
|
2134
|
+
* Wind Speed Kmh
|
|
2135
|
+
* @description Wind speed in km/h
|
|
2136
|
+
*/
|
|
2137
|
+
wind_speed_kmh?: number | null;
|
|
2138
|
+
/**
|
|
2139
|
+
* Wind Gusts Kmh
|
|
2140
|
+
* @description Wind gust speed in km/h
|
|
2141
|
+
*/
|
|
2142
|
+
wind_gusts_kmh?: number | null;
|
|
2143
|
+
/**
|
|
2144
|
+
* Wind Direction Deg
|
|
2145
|
+
* @description Wind direction in degrees
|
|
2146
|
+
*/
|
|
2147
|
+
wind_direction_deg?: number | null;
|
|
2148
|
+
/**
|
|
2149
|
+
* Surface Pressure Hpa
|
|
2150
|
+
* @description Surface pressure in hPa
|
|
2151
|
+
*/
|
|
2152
|
+
surface_pressure_hpa?: number | null;
|
|
2153
|
+
/**
|
|
2154
|
+
* Weather Code
|
|
2155
|
+
* @description WMO weather interpretation code
|
|
2156
|
+
*/
|
|
2157
|
+
weather_code?: number | null;
|
|
2158
|
+
/**
|
|
2159
|
+
* Source
|
|
2160
|
+
* @description Open-Meteo API the row came from: archive or forecast
|
|
2161
|
+
*/
|
|
2162
|
+
source: string;
|
|
2163
|
+
/**
|
|
2164
|
+
* Is Provisional
|
|
2165
|
+
* @description True when sourced from the forecast API pending ERA5 archive settlement
|
|
2166
|
+
*/
|
|
2167
|
+
is_provisional: boolean;
|
|
2168
|
+
/**
|
|
2169
|
+
* Created At
|
|
2170
|
+
* @description UTC timestamp when the row was inserted
|
|
2171
|
+
*/
|
|
2172
|
+
created_at?: string | null;
|
|
2173
|
+
/**
|
|
2174
|
+
* Updated At
|
|
2175
|
+
* @description UTC timestamp when the row was last updated
|
|
2176
|
+
*/
|
|
2177
|
+
updated_at?: string | null;
|
|
2178
|
+
};
|
|
1907
2179
|
/**
|
|
1908
2180
|
* GarminChartPoint
|
|
1909
2181
|
* @description Lightweight track point optimised for time-series chart rendering.
|
|
@@ -4329,6 +4601,84 @@ export interface operations {
|
|
|
4329
4601
|
};
|
|
4330
4602
|
};
|
|
4331
4603
|
};
|
|
4604
|
+
get_activity_weather_api_v1_garmin_activities__activity_id__weather_get: {
|
|
4605
|
+
parameters: {
|
|
4606
|
+
query?: never;
|
|
4607
|
+
header?: never;
|
|
4608
|
+
path: {
|
|
4609
|
+
/** @description Garmin activity ID */
|
|
4610
|
+
activity_id: string;
|
|
4611
|
+
};
|
|
4612
|
+
cookie?: never;
|
|
4613
|
+
};
|
|
4614
|
+
requestBody?: never;
|
|
4615
|
+
responses: {
|
|
4616
|
+
/** @description Successful Response */
|
|
4617
|
+
200: {
|
|
4618
|
+
headers: {
|
|
4619
|
+
[name: string]: unknown;
|
|
4620
|
+
};
|
|
4621
|
+
content: {
|
|
4622
|
+
"application/json": components["schemas"]["GarminActivityWeather"] | null;
|
|
4623
|
+
};
|
|
4624
|
+
};
|
|
4625
|
+
/** @description Activity not found */
|
|
4626
|
+
404: {
|
|
4627
|
+
headers: {
|
|
4628
|
+
[name: string]: unknown;
|
|
4629
|
+
};
|
|
4630
|
+
content?: never;
|
|
4631
|
+
};
|
|
4632
|
+
/** @description Validation Error */
|
|
4633
|
+
422: {
|
|
4634
|
+
headers: {
|
|
4635
|
+
[name: string]: unknown;
|
|
4636
|
+
};
|
|
4637
|
+
content: {
|
|
4638
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4639
|
+
};
|
|
4640
|
+
};
|
|
4641
|
+
};
|
|
4642
|
+
};
|
|
4643
|
+
list_activity_weather_hourly_api_v1_garmin_activities__activity_id__weather_hourly_get: {
|
|
4644
|
+
parameters: {
|
|
4645
|
+
query?: never;
|
|
4646
|
+
header?: never;
|
|
4647
|
+
path: {
|
|
4648
|
+
/** @description Garmin activity ID */
|
|
4649
|
+
activity_id: string;
|
|
4650
|
+
};
|
|
4651
|
+
cookie?: never;
|
|
4652
|
+
};
|
|
4653
|
+
requestBody?: never;
|
|
4654
|
+
responses: {
|
|
4655
|
+
/** @description Successful Response */
|
|
4656
|
+
200: {
|
|
4657
|
+
headers: {
|
|
4658
|
+
[name: string]: unknown;
|
|
4659
|
+
};
|
|
4660
|
+
content: {
|
|
4661
|
+
"application/json": components["schemas"]["GarminActivityWeatherHourly"][];
|
|
4662
|
+
};
|
|
4663
|
+
};
|
|
4664
|
+
/** @description Activity not found */
|
|
4665
|
+
404: {
|
|
4666
|
+
headers: {
|
|
4667
|
+
[name: string]: unknown;
|
|
4668
|
+
};
|
|
4669
|
+
content?: never;
|
|
4670
|
+
};
|
|
4671
|
+
/** @description Validation Error */
|
|
4672
|
+
422: {
|
|
4673
|
+
headers: {
|
|
4674
|
+
[name: string]: unknown;
|
|
4675
|
+
};
|
|
4676
|
+
content: {
|
|
4677
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4678
|
+
};
|
|
4679
|
+
};
|
|
4680
|
+
};
|
|
4681
|
+
};
|
|
4332
4682
|
list_laps_api_v1_garmin_laps_get: {
|
|
4333
4683
|
parameters: {
|
|
4334
4684
|
query?: {
|