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