@stuartshay/otel-data-types 1.0.633 → 1.0.642

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.
Files changed (2) hide show
  1. package/index.d.ts +350 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -413,6 +413,31 @@ export type paths = {
413
413
  patch?: never;
414
414
  trace?: never;
415
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
+ };
416
441
  "/api/v1/garmin/laps": {
417
442
  parameters: {
418
443
  query?: never;
@@ -754,6 +779,31 @@ export type paths = {
754
779
  patch?: never;
755
780
  trace?: never;
756
781
  };
782
+ "/api/v1/geocoding/reverse": {
783
+ parameters: {
784
+ query?: never;
785
+ header?: never;
786
+ path?: never;
787
+ cookie?: never;
788
+ };
789
+ /**
790
+ * Reverse Geocode Point
791
+ * @description Resolve a point from the dense cell cache, falling back to Pelias.
792
+ *
793
+ * Coordinates use the same indexed 4-decimal (~11 m) cell key as the Garmin
794
+ * dense-geocoding pipeline. A successful cached row avoids a Pelias request;
795
+ * misses and non-success rows are refreshed through Pelias and persisted.
796
+ * Authentication is required because a fallback can mutate the cell cache.
797
+ */
798
+ get: operations["reverse_geocode_point_api_v1_geocoding_reverse_get"];
799
+ put?: never;
800
+ post?: never;
801
+ delete?: never;
802
+ options?: never;
803
+ head?: never;
804
+ patch?: never;
805
+ trace?: never;
806
+ };
757
807
  "/api/v1/geocoding/status": {
758
808
  parameters: {
759
809
  query?: never;
@@ -2035,6 +2085,122 @@ export type components = {
2035
2085
  */
2036
2086
  updated_at?: string | null;
2037
2087
  };
2088
+ /**
2089
+ * GarminActivityWeatherHourly
2090
+ * @description Route-sampled, hour-by-hour Open-Meteo weather for an activity.
2091
+ *
2092
+ * Unlike GarminActivityWeather (a single "conditions at the start"
2093
+ * snapshot), this is one row per hour the activity spans, each sampled at
2094
+ * the GPS location the athlete was actually at during that hour.
2095
+ */
2096
+ GarminActivityWeatherHourly: {
2097
+ /**
2098
+ * Activity Id
2099
+ * @description Parent Garmin activity identifier
2100
+ */
2101
+ activity_id: string;
2102
+ /**
2103
+ * Hour Index
2104
+ * @description Zero-based hour offset from the activity start
2105
+ */
2106
+ hour_index: number;
2107
+ /**
2108
+ * Observed At
2109
+ * Format: date-time
2110
+ * @description UTC hourly bucket the reading was taken from
2111
+ */
2112
+ observed_at: string;
2113
+ /**
2114
+ * Latitude
2115
+ * @description Latitude sampled from the nearest track point for this hour
2116
+ */
2117
+ latitude: number;
2118
+ /**
2119
+ * Longitude
2120
+ * @description Longitude sampled from the nearest track point for this hour
2121
+ */
2122
+ longitude: number;
2123
+ /**
2124
+ * Temperature C
2125
+ * @description Air temperature in degrees C
2126
+ */
2127
+ temperature_c?: number | null;
2128
+ /**
2129
+ * Apparent Temperature C
2130
+ * @description Feels-like temperature in degrees C
2131
+ */
2132
+ apparent_temperature_c?: number | null;
2133
+ /**
2134
+ * Relative Humidity Pct
2135
+ * @description Relative humidity percent
2136
+ */
2137
+ relative_humidity_pct?: number | null;
2138
+ /**
2139
+ * Precipitation Mm
2140
+ * @description Total precipitation in millimeters
2141
+ */
2142
+ precipitation_mm?: number | null;
2143
+ /**
2144
+ * Rain Mm
2145
+ * @description Rainfall in millimeters
2146
+ */
2147
+ rain_mm?: number | null;
2148
+ /**
2149
+ * Snowfall Cm
2150
+ * @description Snowfall in centimeters
2151
+ */
2152
+ snowfall_cm?: number | null;
2153
+ /**
2154
+ * Cloud Cover Pct
2155
+ * @description Total cloud cover percent
2156
+ */
2157
+ cloud_cover_pct?: number | null;
2158
+ /**
2159
+ * Wind Speed Kmh
2160
+ * @description Wind speed in km/h
2161
+ */
2162
+ wind_speed_kmh?: number | null;
2163
+ /**
2164
+ * Wind Gusts Kmh
2165
+ * @description Wind gust speed in km/h
2166
+ */
2167
+ wind_gusts_kmh?: number | null;
2168
+ /**
2169
+ * Wind Direction Deg
2170
+ * @description Wind direction in degrees
2171
+ */
2172
+ wind_direction_deg?: number | null;
2173
+ /**
2174
+ * Surface Pressure Hpa
2175
+ * @description Surface pressure in hPa
2176
+ */
2177
+ surface_pressure_hpa?: number | null;
2178
+ /**
2179
+ * Weather Code
2180
+ * @description WMO weather interpretation code
2181
+ */
2182
+ weather_code?: number | null;
2183
+ /**
2184
+ * Source
2185
+ * @description Open-Meteo API the row came from: archive or forecast
2186
+ */
2187
+ source: string;
2188
+ /**
2189
+ * Is Provisional
2190
+ * @description True when sourced from the forecast API pending ERA5 archive settlement
2191
+ */
2192
+ is_provisional: boolean;
2193
+ /**
2194
+ * Created At
2195
+ * @description UTC timestamp when the row was inserted
2196
+ */
2197
+ created_at?: string | null;
2198
+ /**
2199
+ * Updated At
2200
+ * @description UTC timestamp when the row was last updated
2201
+ */
2202
+ updated_at?: string | null;
2203
+ };
2038
2204
  /**
2039
2205
  * GarminChartPoint
2040
2206
  * @description Lightweight track point optimised for time-series chart rendering.
@@ -2708,6 +2874,96 @@ export type components = {
2708
2874
  */
2709
2875
  geocoded_at?: string | null;
2710
2876
  };
2877
+ /**
2878
+ * GeocodedPointAddress
2879
+ * @description Address resolved for a rounded GPS coordinate cell.
2880
+ * @example {
2881
+ * "confidence": 0.95,
2882
+ * "country": "United States",
2883
+ * "display_address": "123 Main St, Hoboken, NJ 07030",
2884
+ * "geocoded_at": "2026-02-12T08:10:55+00:00",
2885
+ * "housenumber": "123",
2886
+ * "locality": "Hoboken",
2887
+ * "neighbourhood": "Downtown",
2888
+ * "postalcode": "07030",
2889
+ * "region": "New Jersey",
2890
+ * "status": "success",
2891
+ * "street": "Main St"
2892
+ * }
2893
+ */
2894
+ GeocodedPointAddress: {
2895
+ /**
2896
+ * Display Address
2897
+ * @description Full formatted address label from Pelias
2898
+ */
2899
+ display_address?: string | null;
2900
+ /**
2901
+ * Street
2902
+ * @description Street name
2903
+ */
2904
+ street?: string | null;
2905
+ /**
2906
+ * Housenumber
2907
+ * @description House or building number
2908
+ */
2909
+ housenumber?: string | null;
2910
+ /**
2911
+ * Neighbourhood
2912
+ * @description Neighbourhood name
2913
+ */
2914
+ neighbourhood?: string | null;
2915
+ /**
2916
+ * Locality
2917
+ * @description City or town
2918
+ */
2919
+ locality?: string | null;
2920
+ /**
2921
+ * Region
2922
+ * @description State or province
2923
+ */
2924
+ region?: string | null;
2925
+ /**
2926
+ * Country
2927
+ * @description Country name
2928
+ */
2929
+ country?: string | null;
2930
+ /**
2931
+ * Postalcode
2932
+ * @description Postal or ZIP code
2933
+ */
2934
+ postalcode?: string | null;
2935
+ /**
2936
+ * Confidence
2937
+ * @description Pelias confidence score (0-1)
2938
+ */
2939
+ confidence?: number | null;
2940
+ /**
2941
+ * Status
2942
+ * @description Geocoding status: success, no_coverage, error, pending
2943
+ */
2944
+ status: string;
2945
+ /**
2946
+ * Geocoded At
2947
+ * @description UTC timestamp when geocoding was performed
2948
+ */
2949
+ geocoded_at?: string | null;
2950
+ /**
2951
+ * Latitude
2952
+ * @description Resolved 4-decimal cell latitude
2953
+ */
2954
+ latitude: number;
2955
+ /**
2956
+ * Longitude
2957
+ * @description Resolved 4-decimal cell longitude
2958
+ */
2959
+ longitude: number;
2960
+ /**
2961
+ * Resolution Source
2962
+ * @description Whether the response came from the database cache or a Pelias fallback
2963
+ * @enum {string}
2964
+ */
2965
+ resolution_source: "database" | "pelias";
2966
+ };
2711
2967
  /**
2712
2968
  * GeocodingSourceStatus
2713
2969
  * @description Coverage statistics for a single geocoding source (owntracks or garmin).
@@ -4499,6 +4755,45 @@ export interface operations {
4499
4755
  };
4500
4756
  };
4501
4757
  };
4758
+ list_activity_weather_hourly_api_v1_garmin_activities__activity_id__weather_hourly_get: {
4759
+ parameters: {
4760
+ query?: never;
4761
+ header?: never;
4762
+ path: {
4763
+ /** @description Garmin activity ID */
4764
+ activity_id: string;
4765
+ };
4766
+ cookie?: never;
4767
+ };
4768
+ requestBody?: never;
4769
+ responses: {
4770
+ /** @description Successful Response */
4771
+ 200: {
4772
+ headers: {
4773
+ [name: string]: unknown;
4774
+ };
4775
+ content: {
4776
+ "application/json": components["schemas"]["GarminActivityWeatherHourly"][];
4777
+ };
4778
+ };
4779
+ /** @description Activity not found */
4780
+ 404: {
4781
+ headers: {
4782
+ [name: string]: unknown;
4783
+ };
4784
+ content?: never;
4785
+ };
4786
+ /** @description Validation Error */
4787
+ 422: {
4788
+ headers: {
4789
+ [name: string]: unknown;
4790
+ };
4791
+ content: {
4792
+ "application/json": components["schemas"]["HTTPValidationError"];
4793
+ };
4794
+ };
4795
+ };
4796
+ };
4502
4797
  list_laps_api_v1_garmin_laps_get: {
4503
4798
  parameters: {
4504
4799
  query?: {
@@ -5291,6 +5586,61 @@ export interface operations {
5291
5586
  };
5292
5587
  };
5293
5588
  };
5589
+ reverse_geocode_point_api_v1_geocoding_reverse_get: {
5590
+ parameters: {
5591
+ query: {
5592
+ /** @description Latitude in decimal degrees */
5593
+ latitude: number;
5594
+ /** @description Longitude in decimal degrees */
5595
+ longitude: number;
5596
+ };
5597
+ header?: never;
5598
+ path?: never;
5599
+ cookie?: never;
5600
+ };
5601
+ requestBody?: never;
5602
+ responses: {
5603
+ /** @description Successful Response */
5604
+ 200: {
5605
+ headers: {
5606
+ [name: string]: unknown;
5607
+ };
5608
+ content: {
5609
+ "application/json": components["schemas"]["GeocodedPointAddress"];
5610
+ };
5611
+ };
5612
+ /** @description Authentication required or token invalid */
5613
+ 401: {
5614
+ headers: {
5615
+ [name: string]: unknown;
5616
+ };
5617
+ content?: never;
5618
+ };
5619
+ /** @description Validation Error */
5620
+ 422: {
5621
+ headers: {
5622
+ [name: string]: unknown;
5623
+ };
5624
+ content: {
5625
+ "application/json": components["schemas"]["HTTPValidationError"];
5626
+ };
5627
+ };
5628
+ /** @description Pelias fallback result could not be persisted */
5629
+ 502: {
5630
+ headers: {
5631
+ [name: string]: unknown;
5632
+ };
5633
+ content?: never;
5634
+ };
5635
+ /** @description Authentication service unavailable */
5636
+ 503: {
5637
+ headers: {
5638
+ [name: string]: unknown;
5639
+ };
5640
+ content?: never;
5641
+ };
5642
+ };
5643
+ };
5294
5644
  geocoding_status_api_v1_geocoding_status_get: {
5295
5645
  parameters: {
5296
5646
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stuartshay/otel-data-types",
3
- "version": "1.0.633",
3
+ "version": "1.0.642",
4
4
  "description": "TypeScript types for otel-data-api — Auto-generated from OpenAPI 3.1 specification",
5
5
  "types": "index.d.ts",
6
6
  "exports": {