@stuartshay/otel-data-types 1.0.523 → 1.0.526
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 +389 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -463,6 +463,74 @@ export type paths = {
|
|
|
463
463
|
patch?: never;
|
|
464
464
|
trace?: never;
|
|
465
465
|
};
|
|
466
|
+
"/api/v1/garmin/segments": {
|
|
467
|
+
parameters: {
|
|
468
|
+
query?: never;
|
|
469
|
+
header?: never;
|
|
470
|
+
path?: never;
|
|
471
|
+
cookie?: never;
|
|
472
|
+
};
|
|
473
|
+
/**
|
|
474
|
+
* List Segments
|
|
475
|
+
* @description List saved segments (paths), newest first.
|
|
476
|
+
*/
|
|
477
|
+
get: operations["list_segments_api_v1_garmin_segments_get"];
|
|
478
|
+
put?: never;
|
|
479
|
+
/**
|
|
480
|
+
* Create Segment
|
|
481
|
+
* @description Save a new segment (path) from a climb, lap, or manual selection (auth required).
|
|
482
|
+
*/
|
|
483
|
+
post: operations["create_segment_api_v1_garmin_segments_post"];
|
|
484
|
+
delete?: never;
|
|
485
|
+
options?: never;
|
|
486
|
+
head?: never;
|
|
487
|
+
patch?: never;
|
|
488
|
+
trace?: never;
|
|
489
|
+
};
|
|
490
|
+
"/api/v1/garmin/segments/{segment_id}": {
|
|
491
|
+
parameters: {
|
|
492
|
+
query?: never;
|
|
493
|
+
header?: never;
|
|
494
|
+
path?: never;
|
|
495
|
+
cookie?: never;
|
|
496
|
+
};
|
|
497
|
+
/**
|
|
498
|
+
* Get Segment
|
|
499
|
+
* @description Get a single saved segment by ID.
|
|
500
|
+
*/
|
|
501
|
+
get: operations["get_segment_api_v1_garmin_segments__segment_id__get"];
|
|
502
|
+
put?: never;
|
|
503
|
+
post?: never;
|
|
504
|
+
/**
|
|
505
|
+
* Delete Segment
|
|
506
|
+
* @description Delete a saved segment (auth required).
|
|
507
|
+
*/
|
|
508
|
+
delete: operations["delete_segment_api_v1_garmin_segments__segment_id__delete"];
|
|
509
|
+
options?: never;
|
|
510
|
+
head?: never;
|
|
511
|
+
patch?: never;
|
|
512
|
+
trace?: never;
|
|
513
|
+
};
|
|
514
|
+
"/api/v1/garmin/segments/{segment_id}/efforts": {
|
|
515
|
+
parameters: {
|
|
516
|
+
query?: never;
|
|
517
|
+
header?: never;
|
|
518
|
+
path?: never;
|
|
519
|
+
cookie?: never;
|
|
520
|
+
};
|
|
521
|
+
/**
|
|
522
|
+
* Get Segment Efforts
|
|
523
|
+
* @description Rank activity efforts over a saved segment (matches the saved start/end corridor).
|
|
524
|
+
*/
|
|
525
|
+
get: operations["get_segment_efforts_api_v1_garmin_segments__segment_id__efforts_get"];
|
|
526
|
+
put?: never;
|
|
527
|
+
post?: never;
|
|
528
|
+
delete?: never;
|
|
529
|
+
options?: never;
|
|
530
|
+
head?: never;
|
|
531
|
+
patch?: never;
|
|
532
|
+
trace?: never;
|
|
533
|
+
};
|
|
466
534
|
"/api/v1/gps/unified": {
|
|
467
535
|
parameters: {
|
|
468
536
|
query?: never;
|
|
@@ -2054,6 +2122,145 @@ export type components = {
|
|
|
2054
2122
|
*/
|
|
2055
2123
|
total_ascent_m?: number | null;
|
|
2056
2124
|
};
|
|
2125
|
+
/**
|
|
2126
|
+
* GarminSegment
|
|
2127
|
+
* @description A saved named segment (path) for cross-activity effort comparison.
|
|
2128
|
+
*/
|
|
2129
|
+
GarminSegment: {
|
|
2130
|
+
/**
|
|
2131
|
+
* Id
|
|
2132
|
+
* @description Unique saved segment identifier
|
|
2133
|
+
*/
|
|
2134
|
+
id: number;
|
|
2135
|
+
/**
|
|
2136
|
+
* Name
|
|
2137
|
+
* @description Human-readable segment name
|
|
2138
|
+
*/
|
|
2139
|
+
name: string;
|
|
2140
|
+
/**
|
|
2141
|
+
* Sport
|
|
2142
|
+
* @description Sport type (e.g. cycling)
|
|
2143
|
+
*/
|
|
2144
|
+
sport?: string | null;
|
|
2145
|
+
/**
|
|
2146
|
+
* Start Latitude
|
|
2147
|
+
* @description Segment start latitude
|
|
2148
|
+
*/
|
|
2149
|
+
start_latitude: number;
|
|
2150
|
+
/**
|
|
2151
|
+
* Start Longitude
|
|
2152
|
+
* @description Segment start longitude
|
|
2153
|
+
*/
|
|
2154
|
+
start_longitude: number;
|
|
2155
|
+
/**
|
|
2156
|
+
* End Latitude
|
|
2157
|
+
* @description Segment end latitude
|
|
2158
|
+
*/
|
|
2159
|
+
end_latitude: number;
|
|
2160
|
+
/**
|
|
2161
|
+
* End Longitude
|
|
2162
|
+
* @description Segment end longitude
|
|
2163
|
+
*/
|
|
2164
|
+
end_longitude: number;
|
|
2165
|
+
/**
|
|
2166
|
+
* Distance Meters
|
|
2167
|
+
* @description Segment distance in meters
|
|
2168
|
+
*/
|
|
2169
|
+
distance_meters?: number | null;
|
|
2170
|
+
/**
|
|
2171
|
+
* Match Tolerance Meters
|
|
2172
|
+
* @description Corridor radius (m) used to match traversing activities
|
|
2173
|
+
*/
|
|
2174
|
+
match_tolerance_meters: number;
|
|
2175
|
+
/**
|
|
2176
|
+
* Source Activity Id
|
|
2177
|
+
* @description Activity the segment was created from
|
|
2178
|
+
*/
|
|
2179
|
+
source_activity_id?: string | null;
|
|
2180
|
+
/**
|
|
2181
|
+
* Source Lap Index
|
|
2182
|
+
* @description Lap index the segment was created from
|
|
2183
|
+
*/
|
|
2184
|
+
source_lap_index?: number | null;
|
|
2185
|
+
/**
|
|
2186
|
+
* Source Climb Index
|
|
2187
|
+
* @description Climb split index the segment was created from
|
|
2188
|
+
*/
|
|
2189
|
+
source_climb_index?: number | null;
|
|
2190
|
+
/**
|
|
2191
|
+
* Created At
|
|
2192
|
+
* @description UTC creation timestamp
|
|
2193
|
+
*/
|
|
2194
|
+
created_at?: string | null;
|
|
2195
|
+
/**
|
|
2196
|
+
* Updated At
|
|
2197
|
+
* @description UTC last-update timestamp
|
|
2198
|
+
*/
|
|
2199
|
+
updated_at?: string | null;
|
|
2200
|
+
};
|
|
2201
|
+
/**
|
|
2202
|
+
* GarminSegmentCreate
|
|
2203
|
+
* @description Request body to save a new segment (path).
|
|
2204
|
+
*/
|
|
2205
|
+
GarminSegmentCreate: {
|
|
2206
|
+
/**
|
|
2207
|
+
* Name
|
|
2208
|
+
* @description Human-readable segment name
|
|
2209
|
+
*/
|
|
2210
|
+
name: string;
|
|
2211
|
+
/**
|
|
2212
|
+
* Sport
|
|
2213
|
+
* @description Sport type; defaults to cycling
|
|
2214
|
+
* @default cycling
|
|
2215
|
+
*/
|
|
2216
|
+
sport: string | null;
|
|
2217
|
+
/**
|
|
2218
|
+
* Start Latitude
|
|
2219
|
+
* @description Segment start latitude
|
|
2220
|
+
*/
|
|
2221
|
+
start_latitude: number;
|
|
2222
|
+
/**
|
|
2223
|
+
* Start Longitude
|
|
2224
|
+
* @description Segment start longitude
|
|
2225
|
+
*/
|
|
2226
|
+
start_longitude: number;
|
|
2227
|
+
/**
|
|
2228
|
+
* End Latitude
|
|
2229
|
+
* @description Segment end latitude
|
|
2230
|
+
*/
|
|
2231
|
+
end_latitude: number;
|
|
2232
|
+
/**
|
|
2233
|
+
* End Longitude
|
|
2234
|
+
* @description Segment end longitude
|
|
2235
|
+
*/
|
|
2236
|
+
end_longitude: number;
|
|
2237
|
+
/**
|
|
2238
|
+
* Distance Meters
|
|
2239
|
+
* @description Segment distance in meters
|
|
2240
|
+
*/
|
|
2241
|
+
distance_meters?: number | null;
|
|
2242
|
+
/**
|
|
2243
|
+
* Match Tolerance Meters
|
|
2244
|
+
* @description Corridor radius (m) used to match traversing activities
|
|
2245
|
+
* @default 35
|
|
2246
|
+
*/
|
|
2247
|
+
match_tolerance_meters: number;
|
|
2248
|
+
/**
|
|
2249
|
+
* Source Activity Id
|
|
2250
|
+
* @description Activity the segment was created from
|
|
2251
|
+
*/
|
|
2252
|
+
source_activity_id?: string | null;
|
|
2253
|
+
/**
|
|
2254
|
+
* Source Lap Index
|
|
2255
|
+
* @description Lap index the segment was created from
|
|
2256
|
+
*/
|
|
2257
|
+
source_lap_index?: number | null;
|
|
2258
|
+
/**
|
|
2259
|
+
* Source Climb Index
|
|
2260
|
+
* @description Climb split index the segment was created from
|
|
2261
|
+
*/
|
|
2262
|
+
source_climb_index?: number | null;
|
|
2263
|
+
};
|
|
2057
2264
|
/**
|
|
2058
2265
|
* GarminSyncResponse
|
|
2059
2266
|
* @description Response payload for Garmin on-demand sync trigger requests.
|
|
@@ -4215,6 +4422,188 @@ export interface operations {
|
|
|
4215
4422
|
};
|
|
4216
4423
|
};
|
|
4217
4424
|
};
|
|
4425
|
+
list_segments_api_v1_garmin_segments_get: {
|
|
4426
|
+
parameters: {
|
|
4427
|
+
query?: {
|
|
4428
|
+
/** @description Filter by sport type */
|
|
4429
|
+
sport?: string | null;
|
|
4430
|
+
};
|
|
4431
|
+
header?: never;
|
|
4432
|
+
path?: never;
|
|
4433
|
+
cookie?: never;
|
|
4434
|
+
};
|
|
4435
|
+
requestBody?: never;
|
|
4436
|
+
responses: {
|
|
4437
|
+
/** @description Successful Response */
|
|
4438
|
+
200: {
|
|
4439
|
+
headers: {
|
|
4440
|
+
[name: string]: unknown;
|
|
4441
|
+
};
|
|
4442
|
+
content: {
|
|
4443
|
+
"application/json": components["schemas"]["GarminSegment"][];
|
|
4444
|
+
};
|
|
4445
|
+
};
|
|
4446
|
+
/** @description Validation Error */
|
|
4447
|
+
422: {
|
|
4448
|
+
headers: {
|
|
4449
|
+
[name: string]: unknown;
|
|
4450
|
+
};
|
|
4451
|
+
content: {
|
|
4452
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4453
|
+
};
|
|
4454
|
+
};
|
|
4455
|
+
};
|
|
4456
|
+
};
|
|
4457
|
+
create_segment_api_v1_garmin_segments_post: {
|
|
4458
|
+
parameters: {
|
|
4459
|
+
query?: never;
|
|
4460
|
+
header?: never;
|
|
4461
|
+
path?: never;
|
|
4462
|
+
cookie?: never;
|
|
4463
|
+
};
|
|
4464
|
+
requestBody: {
|
|
4465
|
+
content: {
|
|
4466
|
+
"application/json": components["schemas"]["GarminSegmentCreate"];
|
|
4467
|
+
};
|
|
4468
|
+
};
|
|
4469
|
+
responses: {
|
|
4470
|
+
/** @description Successful Response */
|
|
4471
|
+
201: {
|
|
4472
|
+
headers: {
|
|
4473
|
+
[name: string]: unknown;
|
|
4474
|
+
};
|
|
4475
|
+
content: {
|
|
4476
|
+
"application/json": components["schemas"]["GarminSegment"];
|
|
4477
|
+
};
|
|
4478
|
+
};
|
|
4479
|
+
/** @description Validation Error */
|
|
4480
|
+
422: {
|
|
4481
|
+
headers: {
|
|
4482
|
+
[name: string]: unknown;
|
|
4483
|
+
};
|
|
4484
|
+
content: {
|
|
4485
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4486
|
+
};
|
|
4487
|
+
};
|
|
4488
|
+
};
|
|
4489
|
+
};
|
|
4490
|
+
get_segment_api_v1_garmin_segments__segment_id__get: {
|
|
4491
|
+
parameters: {
|
|
4492
|
+
query?: never;
|
|
4493
|
+
header?: never;
|
|
4494
|
+
path: {
|
|
4495
|
+
/** @description Saved segment ID */
|
|
4496
|
+
segment_id: number;
|
|
4497
|
+
};
|
|
4498
|
+
cookie?: never;
|
|
4499
|
+
};
|
|
4500
|
+
requestBody?: never;
|
|
4501
|
+
responses: {
|
|
4502
|
+
/** @description Successful Response */
|
|
4503
|
+
200: {
|
|
4504
|
+
headers: {
|
|
4505
|
+
[name: string]: unknown;
|
|
4506
|
+
};
|
|
4507
|
+
content: {
|
|
4508
|
+
"application/json": components["schemas"]["GarminSegment"];
|
|
4509
|
+
};
|
|
4510
|
+
};
|
|
4511
|
+
/** @description Segment not found */
|
|
4512
|
+
404: {
|
|
4513
|
+
headers: {
|
|
4514
|
+
[name: string]: unknown;
|
|
4515
|
+
};
|
|
4516
|
+
content?: never;
|
|
4517
|
+
};
|
|
4518
|
+
/** @description Validation Error */
|
|
4519
|
+
422: {
|
|
4520
|
+
headers: {
|
|
4521
|
+
[name: string]: unknown;
|
|
4522
|
+
};
|
|
4523
|
+
content: {
|
|
4524
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4525
|
+
};
|
|
4526
|
+
};
|
|
4527
|
+
};
|
|
4528
|
+
};
|
|
4529
|
+
delete_segment_api_v1_garmin_segments__segment_id__delete: {
|
|
4530
|
+
parameters: {
|
|
4531
|
+
query?: never;
|
|
4532
|
+
header?: never;
|
|
4533
|
+
path: {
|
|
4534
|
+
/** @description Saved segment ID */
|
|
4535
|
+
segment_id: number;
|
|
4536
|
+
};
|
|
4537
|
+
cookie?: never;
|
|
4538
|
+
};
|
|
4539
|
+
requestBody?: never;
|
|
4540
|
+
responses: {
|
|
4541
|
+
/** @description Successful Response */
|
|
4542
|
+
204: {
|
|
4543
|
+
headers: {
|
|
4544
|
+
[name: string]: unknown;
|
|
4545
|
+
};
|
|
4546
|
+
content?: never;
|
|
4547
|
+
};
|
|
4548
|
+
/** @description Validation Error */
|
|
4549
|
+
422: {
|
|
4550
|
+
headers: {
|
|
4551
|
+
[name: string]: unknown;
|
|
4552
|
+
};
|
|
4553
|
+
content: {
|
|
4554
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4555
|
+
};
|
|
4556
|
+
};
|
|
4557
|
+
};
|
|
4558
|
+
};
|
|
4559
|
+
get_segment_efforts_api_v1_garmin_segments__segment_id__efforts_get: {
|
|
4560
|
+
parameters: {
|
|
4561
|
+
query?: {
|
|
4562
|
+
/** @description Filter from date (YYYY-MM-DD) on activity start_time */
|
|
4563
|
+
date_from?: string | null;
|
|
4564
|
+
/** @description Filter to date (YYYY-MM-DD) on activity start_time */
|
|
4565
|
+
date_to?: string | null;
|
|
4566
|
+
/** @description Ignore traversals longer than this */
|
|
4567
|
+
max_effort_seconds?: number;
|
|
4568
|
+
/** @description Maximum number of efforts to return */
|
|
4569
|
+
limit?: number;
|
|
4570
|
+
};
|
|
4571
|
+
header?: never;
|
|
4572
|
+
path: {
|
|
4573
|
+
/** @description Saved segment ID */
|
|
4574
|
+
segment_id: number;
|
|
4575
|
+
};
|
|
4576
|
+
cookie?: never;
|
|
4577
|
+
};
|
|
4578
|
+
requestBody?: never;
|
|
4579
|
+
responses: {
|
|
4580
|
+
/** @description Successful Response */
|
|
4581
|
+
200: {
|
|
4582
|
+
headers: {
|
|
4583
|
+
[name: string]: unknown;
|
|
4584
|
+
};
|
|
4585
|
+
content: {
|
|
4586
|
+
"application/json": components["schemas"]["SegmentEffortsResponse"];
|
|
4587
|
+
};
|
|
4588
|
+
};
|
|
4589
|
+
/** @description Segment not found */
|
|
4590
|
+
404: {
|
|
4591
|
+
headers: {
|
|
4592
|
+
[name: string]: unknown;
|
|
4593
|
+
};
|
|
4594
|
+
content?: never;
|
|
4595
|
+
};
|
|
4596
|
+
/** @description Validation Error */
|
|
4597
|
+
422: {
|
|
4598
|
+
headers: {
|
|
4599
|
+
[name: string]: unknown;
|
|
4600
|
+
};
|
|
4601
|
+
content: {
|
|
4602
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
4603
|
+
};
|
|
4604
|
+
};
|
|
4605
|
+
};
|
|
4606
|
+
};
|
|
4218
4607
|
list_unified_gps_api_v1_gps_unified_get: {
|
|
4219
4608
|
parameters: {
|
|
4220
4609
|
query?: {
|