@stuartshay/otel-data-types 1.0.636 → 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 +320 -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;
|
|
@@ -779,6 +799,31 @@ export type paths = {
|
|
|
779
799
|
patch?: never;
|
|
780
800
|
trace?: never;
|
|
781
801
|
};
|
|
802
|
+
"/api/v1/geocoding/reverse": {
|
|
803
|
+
parameters: {
|
|
804
|
+
query?: never;
|
|
805
|
+
header?: never;
|
|
806
|
+
path?: never;
|
|
807
|
+
cookie?: never;
|
|
808
|
+
};
|
|
809
|
+
/**
|
|
810
|
+
* Reverse Geocode Point
|
|
811
|
+
* @description Resolve a point from the dense cell cache, falling back to Pelias.
|
|
812
|
+
*
|
|
813
|
+
* Coordinates use the same indexed 4-decimal (~11 m) cell key as the Garmin
|
|
814
|
+
* dense-geocoding pipeline. A successful cached row avoids a Pelias request;
|
|
815
|
+
* misses and non-success rows are refreshed through Pelias and persisted.
|
|
816
|
+
* Authentication is required because a fallback can mutate the cell cache.
|
|
817
|
+
*/
|
|
818
|
+
get: operations["reverse_geocode_point_api_v1_geocoding_reverse_get"];
|
|
819
|
+
put?: never;
|
|
820
|
+
post?: never;
|
|
821
|
+
delete?: never;
|
|
822
|
+
options?: never;
|
|
823
|
+
head?: never;
|
|
824
|
+
patch?: never;
|
|
825
|
+
trace?: never;
|
|
826
|
+
};
|
|
782
827
|
"/api/v1/geocoding/status": {
|
|
783
828
|
parameters: {
|
|
784
829
|
query?: never;
|
|
@@ -1908,6 +1953,97 @@ export type components = {
|
|
|
1908
1953
|
*/
|
|
1909
1954
|
uploaded_at?: string | null;
|
|
1910
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
|
+
};
|
|
1911
2047
|
/**
|
|
1912
2048
|
* GarminActivityTotal
|
|
1913
2049
|
* @description Aggregated Garmin activity totals for a single time bucket (week/month/year).
|
|
@@ -2849,6 +2985,96 @@ export type components = {
|
|
|
2849
2985
|
*/
|
|
2850
2986
|
geocoded_at?: string | null;
|
|
2851
2987
|
};
|
|
2988
|
+
/**
|
|
2989
|
+
* GeocodedPointAddress
|
|
2990
|
+
* @description Address resolved for a rounded GPS coordinate cell.
|
|
2991
|
+
* @example {
|
|
2992
|
+
* "confidence": 0.95,
|
|
2993
|
+
* "country": "United States",
|
|
2994
|
+
* "display_address": "123 Main St, Hoboken, NJ 07030",
|
|
2995
|
+
* "geocoded_at": "2026-02-12T08:10:55+00:00",
|
|
2996
|
+
* "housenumber": "123",
|
|
2997
|
+
* "locality": "Hoboken",
|
|
2998
|
+
* "neighbourhood": "Downtown",
|
|
2999
|
+
* "postalcode": "07030",
|
|
3000
|
+
* "region": "New Jersey",
|
|
3001
|
+
* "status": "success",
|
|
3002
|
+
* "street": "Main St"
|
|
3003
|
+
* }
|
|
3004
|
+
*/
|
|
3005
|
+
GeocodedPointAddress: {
|
|
3006
|
+
/**
|
|
3007
|
+
* Display Address
|
|
3008
|
+
* @description Full formatted address label from Pelias
|
|
3009
|
+
*/
|
|
3010
|
+
display_address?: string | null;
|
|
3011
|
+
/**
|
|
3012
|
+
* Street
|
|
3013
|
+
* @description Street name
|
|
3014
|
+
*/
|
|
3015
|
+
street?: string | null;
|
|
3016
|
+
/**
|
|
3017
|
+
* Housenumber
|
|
3018
|
+
* @description House or building number
|
|
3019
|
+
*/
|
|
3020
|
+
housenumber?: string | null;
|
|
3021
|
+
/**
|
|
3022
|
+
* Neighbourhood
|
|
3023
|
+
* @description Neighbourhood name
|
|
3024
|
+
*/
|
|
3025
|
+
neighbourhood?: string | null;
|
|
3026
|
+
/**
|
|
3027
|
+
* Locality
|
|
3028
|
+
* @description City or town
|
|
3029
|
+
*/
|
|
3030
|
+
locality?: string | null;
|
|
3031
|
+
/**
|
|
3032
|
+
* Region
|
|
3033
|
+
* @description State or province
|
|
3034
|
+
*/
|
|
3035
|
+
region?: string | null;
|
|
3036
|
+
/**
|
|
3037
|
+
* Country
|
|
3038
|
+
* @description Country name
|
|
3039
|
+
*/
|
|
3040
|
+
country?: string | null;
|
|
3041
|
+
/**
|
|
3042
|
+
* Postalcode
|
|
3043
|
+
* @description Postal or ZIP code
|
|
3044
|
+
*/
|
|
3045
|
+
postalcode?: string | null;
|
|
3046
|
+
/**
|
|
3047
|
+
* Confidence
|
|
3048
|
+
* @description Pelias confidence score (0-1)
|
|
3049
|
+
*/
|
|
3050
|
+
confidence?: number | null;
|
|
3051
|
+
/**
|
|
3052
|
+
* Status
|
|
3053
|
+
* @description Geocoding status: success, no_coverage, error, pending
|
|
3054
|
+
*/
|
|
3055
|
+
status: string;
|
|
3056
|
+
/**
|
|
3057
|
+
* Geocoded At
|
|
3058
|
+
* @description UTC timestamp when geocoding was performed
|
|
3059
|
+
*/
|
|
3060
|
+
geocoded_at?: string | null;
|
|
3061
|
+
/**
|
|
3062
|
+
* Latitude
|
|
3063
|
+
* @description Resolved 4-decimal cell latitude
|
|
3064
|
+
*/
|
|
3065
|
+
latitude: number;
|
|
3066
|
+
/**
|
|
3067
|
+
* Longitude
|
|
3068
|
+
* @description Resolved 4-decimal cell longitude
|
|
3069
|
+
*/
|
|
3070
|
+
longitude: number;
|
|
3071
|
+
/**
|
|
3072
|
+
* Resolution Source
|
|
3073
|
+
* @description Whether the response came from the database cache or a Pelias fallback
|
|
3074
|
+
* @enum {string}
|
|
3075
|
+
*/
|
|
3076
|
+
resolution_source: "database" | "pelias";
|
|
3077
|
+
};
|
|
2852
3078
|
/**
|
|
2853
3079
|
* GeocodingSourceStatus
|
|
2854
3080
|
* @description Coverage statistics for a single geocoding source (owntracks or garmin).
|
|
@@ -4601,6 +4827,45 @@ export interface operations {
|
|
|
4601
4827
|
};
|
|
4602
4828
|
};
|
|
4603
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
|
+
};
|
|
4604
4869
|
get_activity_weather_api_v1_garmin_activities__activity_id__weather_get: {
|
|
4605
4870
|
parameters: {
|
|
4606
4871
|
query?: never;
|
|
@@ -5471,6 +5736,61 @@ export interface operations {
|
|
|
5471
5736
|
};
|
|
5472
5737
|
};
|
|
5473
5738
|
};
|
|
5739
|
+
reverse_geocode_point_api_v1_geocoding_reverse_get: {
|
|
5740
|
+
parameters: {
|
|
5741
|
+
query: {
|
|
5742
|
+
/** @description Latitude in decimal degrees */
|
|
5743
|
+
latitude: number;
|
|
5744
|
+
/** @description Longitude in decimal degrees */
|
|
5745
|
+
longitude: number;
|
|
5746
|
+
};
|
|
5747
|
+
header?: never;
|
|
5748
|
+
path?: never;
|
|
5749
|
+
cookie?: never;
|
|
5750
|
+
};
|
|
5751
|
+
requestBody?: never;
|
|
5752
|
+
responses: {
|
|
5753
|
+
/** @description Successful Response */
|
|
5754
|
+
200: {
|
|
5755
|
+
headers: {
|
|
5756
|
+
[name: string]: unknown;
|
|
5757
|
+
};
|
|
5758
|
+
content: {
|
|
5759
|
+
"application/json": components["schemas"]["GeocodedPointAddress"];
|
|
5760
|
+
};
|
|
5761
|
+
};
|
|
5762
|
+
/** @description Authentication required or token invalid */
|
|
5763
|
+
401: {
|
|
5764
|
+
headers: {
|
|
5765
|
+
[name: string]: unknown;
|
|
5766
|
+
};
|
|
5767
|
+
content?: never;
|
|
5768
|
+
};
|
|
5769
|
+
/** @description Validation Error */
|
|
5770
|
+
422: {
|
|
5771
|
+
headers: {
|
|
5772
|
+
[name: string]: unknown;
|
|
5773
|
+
};
|
|
5774
|
+
content: {
|
|
5775
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
5776
|
+
};
|
|
5777
|
+
};
|
|
5778
|
+
/** @description Pelias fallback result could not be persisted */
|
|
5779
|
+
502: {
|
|
5780
|
+
headers: {
|
|
5781
|
+
[name: string]: unknown;
|
|
5782
|
+
};
|
|
5783
|
+
content?: never;
|
|
5784
|
+
};
|
|
5785
|
+
/** @description Authentication service unavailable */
|
|
5786
|
+
503: {
|
|
5787
|
+
headers: {
|
|
5788
|
+
[name: string]: unknown;
|
|
5789
|
+
};
|
|
5790
|
+
content?: never;
|
|
5791
|
+
};
|
|
5792
|
+
};
|
|
5793
|
+
};
|
|
5474
5794
|
geocoding_status_api_v1_geocoding_status_get: {
|
|
5475
5795
|
parameters: {
|
|
5476
5796
|
query?: never;
|