@stuartshay/otel-data-types 1.0.653 → 1.0.661
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 +138 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -606,6 +606,34 @@ export type paths = {
|
|
|
606
606
|
patch?: never;
|
|
607
607
|
trace?: never;
|
|
608
608
|
};
|
|
609
|
+
"/api/v1/garmin/segments/{segment_id}/effort-series": {
|
|
610
|
+
parameters: {
|
|
611
|
+
query?: never;
|
|
612
|
+
header?: never;
|
|
613
|
+
path?: never;
|
|
614
|
+
cookie?: never;
|
|
615
|
+
};
|
|
616
|
+
/**
|
|
617
|
+
* Get Segment Effort Series
|
|
618
|
+
* @description Return one effort's speed/HR series binned by distance along the segment.
|
|
619
|
+
*
|
|
620
|
+
* Bins are normalized to the effort's own traversal; each fraction is the
|
|
621
|
+
* bin midpoint in the open interval between the start and end corridors.
|
|
622
|
+
* Series from different activities are therefore directly comparable at the
|
|
623
|
+
* same fraction despite GPS odometer drift.
|
|
624
|
+
* The effort window is trusted client input from the efforts endpoint and is
|
|
625
|
+
* returned normalized to UTC; an arbitrary window merely aggregates the
|
|
626
|
+
* caller's own read-only track data.
|
|
627
|
+
*/
|
|
628
|
+
get: operations["get_segment_effort_series_api_v1_garmin_segments__segment_id__effort_series_get"];
|
|
629
|
+
put?: never;
|
|
630
|
+
post?: never;
|
|
631
|
+
delete?: never;
|
|
632
|
+
options?: never;
|
|
633
|
+
head?: never;
|
|
634
|
+
patch?: never;
|
|
635
|
+
trace?: never;
|
|
636
|
+
};
|
|
609
637
|
"/api/v1/gps/unified": {
|
|
610
638
|
parameters: {
|
|
611
639
|
query?: never;
|
|
@@ -3957,6 +3985,68 @@ export type components = {
|
|
|
3957
3985
|
*/
|
|
3958
3986
|
max_heart_rate?: number | null;
|
|
3959
3987
|
};
|
|
3988
|
+
/**
|
|
3989
|
+
* SegmentEffortSeriesBin
|
|
3990
|
+
* @description One distance bin of an effort's speed/heart-rate series along a segment.
|
|
3991
|
+
*/
|
|
3992
|
+
SegmentEffortSeriesBin: {
|
|
3993
|
+
/**
|
|
3994
|
+
* Index
|
|
3995
|
+
* @description 0-based bin index from segment start
|
|
3996
|
+
*/
|
|
3997
|
+
index: number;
|
|
3998
|
+
/**
|
|
3999
|
+
* Fraction
|
|
4000
|
+
* @description Bin midpoint strictly within (0, 1) of the effort's traversal distance
|
|
4001
|
+
*/
|
|
4002
|
+
fraction: number;
|
|
4003
|
+
/**
|
|
4004
|
+
* Speed Kmh
|
|
4005
|
+
* @description Average speed within the bin in km/h
|
|
4006
|
+
*/
|
|
4007
|
+
speed_kmh?: number | null;
|
|
4008
|
+
/**
|
|
4009
|
+
* Heart Rate
|
|
4010
|
+
* @description Average heart rate within the bin in bpm
|
|
4011
|
+
*/
|
|
4012
|
+
heart_rate?: number | null;
|
|
4013
|
+
};
|
|
4014
|
+
/**
|
|
4015
|
+
* SegmentEffortSeriesResponse
|
|
4016
|
+
* @description A single effort's speed/HR series, binned by normalized distance along the segment.
|
|
4017
|
+
*
|
|
4018
|
+
* ``bins`` always contains exactly ``bin_count`` entries ordered by index;
|
|
4019
|
+
* bins with no samples (GPS gaps, degenerate traversals) carry null metrics.
|
|
4020
|
+
*/
|
|
4021
|
+
SegmentEffortSeriesResponse: {
|
|
4022
|
+
/**
|
|
4023
|
+
* Activity Id
|
|
4024
|
+
* @description Garmin activity identifier
|
|
4025
|
+
*/
|
|
4026
|
+
activity_id: string;
|
|
4027
|
+
/**
|
|
4028
|
+
* Effort Start
|
|
4029
|
+
* Format: date-time
|
|
4030
|
+
* @description UTC timestamp entering the segment start corridor
|
|
4031
|
+
*/
|
|
4032
|
+
effort_start: string;
|
|
4033
|
+
/**
|
|
4034
|
+
* Effort End
|
|
4035
|
+
* Format: date-time
|
|
4036
|
+
* @description UTC timestamp reaching the segment end corridor
|
|
4037
|
+
*/
|
|
4038
|
+
effort_end: string;
|
|
4039
|
+
/**
|
|
4040
|
+
* Bin Count
|
|
4041
|
+
* @description Number of distance bins in the series
|
|
4042
|
+
*/
|
|
4043
|
+
bin_count: number;
|
|
4044
|
+
/**
|
|
4045
|
+
* Bins
|
|
4046
|
+
* @description Distance-ordered bins spanning the traversal
|
|
4047
|
+
*/
|
|
4048
|
+
bins: components["schemas"]["SegmentEffortSeriesBin"][];
|
|
4049
|
+
};
|
|
3960
4050
|
/**
|
|
3961
4051
|
* SegmentEffortsResponse
|
|
3962
4052
|
* @description Ranked efforts for a segment across all matching activities.
|
|
@@ -5279,6 +5369,54 @@ export interface operations {
|
|
|
5279
5369
|
};
|
|
5280
5370
|
};
|
|
5281
5371
|
};
|
|
5372
|
+
get_segment_effort_series_api_v1_garmin_segments__segment_id__effort_series_get: {
|
|
5373
|
+
parameters: {
|
|
5374
|
+
query: {
|
|
5375
|
+
/** @description Garmin activity ID */
|
|
5376
|
+
activity_id: string;
|
|
5377
|
+
/** @description Effort start timestamp, exactly as returned by the efforts endpoint */
|
|
5378
|
+
effort_start: string;
|
|
5379
|
+
/** @description Effort end timestamp, exactly as returned by the efforts endpoint */
|
|
5380
|
+
effort_end: string;
|
|
5381
|
+
/** @description Number of distance bins in the series */
|
|
5382
|
+
bins?: number;
|
|
5383
|
+
};
|
|
5384
|
+
header?: never;
|
|
5385
|
+
path: {
|
|
5386
|
+
/** @description Saved segment ID */
|
|
5387
|
+
segment_id: number;
|
|
5388
|
+
};
|
|
5389
|
+
cookie?: never;
|
|
5390
|
+
};
|
|
5391
|
+
requestBody?: never;
|
|
5392
|
+
responses: {
|
|
5393
|
+
/** @description Successful Response */
|
|
5394
|
+
200: {
|
|
5395
|
+
headers: {
|
|
5396
|
+
[name: string]: unknown;
|
|
5397
|
+
};
|
|
5398
|
+
content: {
|
|
5399
|
+
"application/json": components["schemas"]["SegmentEffortSeriesResponse"];
|
|
5400
|
+
};
|
|
5401
|
+
};
|
|
5402
|
+
/** @description Segment not found */
|
|
5403
|
+
404: {
|
|
5404
|
+
headers: {
|
|
5405
|
+
[name: string]: unknown;
|
|
5406
|
+
};
|
|
5407
|
+
content?: never;
|
|
5408
|
+
};
|
|
5409
|
+
/** @description Validation Error */
|
|
5410
|
+
422: {
|
|
5411
|
+
headers: {
|
|
5412
|
+
[name: string]: unknown;
|
|
5413
|
+
};
|
|
5414
|
+
content: {
|
|
5415
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
5416
|
+
};
|
|
5417
|
+
};
|
|
5418
|
+
};
|
|
5419
|
+
};
|
|
5282
5420
|
list_unified_gps_api_v1_gps_unified_get: {
|
|
5283
5421
|
parameters: {
|
|
5284
5422
|
query?: {
|