@stuartshay/otel-data-types 1.0.97 → 1.0.107

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 +627 -146
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -410,6 +410,7 @@ export type components = {
410
410
  schemas: {
411
411
  /**
412
412
  * DailyActivitySummary
413
+ * @description Per-day aggregate combining OwnTracks location stats and Garmin activity metrics.
413
414
  * @example {
414
415
  * "activity_date": "2026-02-11",
415
416
  * "avg_accuracy": 4.89,
@@ -426,43 +427,84 @@ export type components = {
426
427
  * }
427
428
  */
428
429
  DailyActivitySummary: {
429
- /** Activity Date */
430
+ /**
431
+ * Activity Date
432
+ * @description Calendar date in YYYY-MM-DD format
433
+ */
430
434
  activity_date?: string | null;
431
- /** Owntracks Device */
435
+ /**
436
+ * Owntracks Device
437
+ * @description OwnTracks device that reported data for this day
438
+ */
432
439
  owntracks_device?: string | null;
433
- /** Owntracks Points */
440
+ /**
441
+ * Owntracks Points
442
+ * @description Number of OwnTracks GPS points recorded
443
+ */
434
444
  owntracks_points?: number | null;
435
- /** Min Battery */
445
+ /**
446
+ * Min Battery
447
+ * @description Lowest device battery percentage observed
448
+ */
436
449
  min_battery?: number | null;
437
- /** Max Battery */
450
+ /**
451
+ * Max Battery
452
+ * @description Highest device battery percentage observed
453
+ */
438
454
  max_battery?: number | null;
439
- /** Avg Accuracy */
455
+ /**
456
+ * Avg Accuracy
457
+ * @description Mean horizontal GPS accuracy in meters
458
+ */
440
459
  avg_accuracy?: number | null;
441
- /** Garmin Sport */
460
+ /**
461
+ * Garmin Sport
462
+ * @description Garmin sport type for activities on this day
463
+ */
442
464
  garmin_sport?: string | null;
443
- /** Garmin Activities */
465
+ /**
466
+ * Garmin Activities
467
+ * @description Number of Garmin activities recorded
468
+ */
444
469
  garmin_activities?: number | null;
445
- /** Total Distance Km */
470
+ /**
471
+ * Total Distance Km
472
+ * @description Combined Garmin activity distance in km
473
+ */
446
474
  total_distance_km?: number | null;
447
- /** Total Duration Seconds */
475
+ /**
476
+ * Total Duration Seconds
477
+ * @description Combined Garmin activity duration in seconds
478
+ */
448
479
  total_duration_seconds?: number | null;
449
- /** Avg Heart Rate */
480
+ /**
481
+ * Avg Heart Rate
482
+ * @description Mean heart rate across Garmin activities in BPM
483
+ */
450
484
  avg_heart_rate?: number | null;
451
- /** Total Calories */
485
+ /**
486
+ * Total Calories
487
+ * @description Total calories burned across Garmin activities
488
+ */
452
489
  total_calories?: number | null;
453
490
  };
454
491
  /**
455
492
  * DeviceInfo
493
+ * @description Distinct OwnTracks device identifier.
456
494
  * @example {
457
495
  * "device_id": "iphone_stuart"
458
496
  * }
459
497
  */
460
498
  DeviceInfo: {
461
- /** Device Id */
499
+ /**
500
+ * Device Id
501
+ * @description OwnTracks device identifier
502
+ */
462
503
  device_id: string;
463
504
  };
464
505
  /**
465
506
  * DistanceResult
507
+ * @description Geodesic distance calculation result between two geographic points.
466
508
  * @example {
467
509
  * "distance_meters": 5309.71,
468
510
  * "from_lat": 40.7128,
@@ -472,19 +514,35 @@ export type components = {
472
514
  * }
473
515
  */
474
516
  DistanceResult: {
475
- /** Distance Meters */
517
+ /**
518
+ * Distance Meters
519
+ * @description Geodesic distance between the two points in meters
520
+ */
476
521
  distance_meters: number;
477
- /** From Lat */
522
+ /**
523
+ * From Lat
524
+ * @description Origin latitude in decimal degrees
525
+ */
478
526
  from_lat: number;
479
- /** From Lon */
527
+ /**
528
+ * From Lon
529
+ * @description Origin longitude in decimal degrees
530
+ */
480
531
  from_lon: number;
481
- /** To Lat */
532
+ /**
533
+ * To Lat
534
+ * @description Destination latitude in decimal degrees
535
+ */
482
536
  to_lat: number;
483
- /** To Lon */
537
+ /**
538
+ * To Lon
539
+ * @description Destination longitude in decimal degrees
540
+ */
484
541
  to_lon: number;
485
542
  };
486
543
  /**
487
544
  * GarminActivity
545
+ * @description Summary of a Garmin Connect activity parsed from a FIT file.
488
546
  * @example {
489
547
  * "activity_id": "20932993811",
490
548
  * "avg_cadence": 78,
@@ -516,63 +574,145 @@ export type components = {
516
574
  * }
517
575
  */
518
576
  GarminActivity: {
519
- /** Activity Id */
577
+ /**
578
+ * Activity Id
579
+ * @description Garmin Connect activity identifier
580
+ */
520
581
  activity_id: string;
521
- /** Sport */
582
+ /**
583
+ * Sport
584
+ * @description Primary sport type (e.g. cycling, running)
585
+ */
522
586
  sport: string;
523
- /** Sub Sport */
587
+ /**
588
+ * Sub Sport
589
+ * @description Sub-sport classification (e.g. road, trail)
590
+ */
524
591
  sub_sport?: string | null;
525
- /** Start Time */
592
+ /**
593
+ * Start Time
594
+ * @description Activity start time in UTC
595
+ */
526
596
  start_time?: string | null;
527
- /** End Time */
597
+ /**
598
+ * End Time
599
+ * @description Activity end time in UTC
600
+ */
528
601
  end_time?: string | null;
529
- /** Distance Km */
602
+ /**
603
+ * Distance Km
604
+ * @description Total distance in kilometres
605
+ */
530
606
  distance_km?: number | null;
531
- /** Duration Seconds */
607
+ /**
608
+ * Duration Seconds
609
+ * @description Active duration in seconds (excludes pauses)
610
+ */
532
611
  duration_seconds?: number | null;
533
- /** Avg Heart Rate */
612
+ /**
613
+ * Avg Heart Rate
614
+ * @description Average heart rate in beats per minute
615
+ */
534
616
  avg_heart_rate?: number | null;
535
- /** Max Heart Rate */
617
+ /**
618
+ * Max Heart Rate
619
+ * @description Maximum heart rate in beats per minute
620
+ */
536
621
  max_heart_rate?: number | null;
537
- /** Avg Cadence */
622
+ /**
623
+ * Avg Cadence
624
+ * @description Average cadence in RPM
625
+ */
538
626
  avg_cadence?: number | null;
539
- /** Max Cadence */
627
+ /**
628
+ * Max Cadence
629
+ * @description Maximum cadence in RPM
630
+ */
540
631
  max_cadence?: number | null;
541
- /** Calories */
632
+ /**
633
+ * Calories
634
+ * @description Total calories burned
635
+ */
542
636
  calories?: number | null;
543
- /** Avg Speed Kmh */
637
+ /**
638
+ * Avg Speed Kmh
639
+ * @description Average speed in km/h
640
+ */
544
641
  avg_speed_kmh?: number | null;
545
- /** Max Speed Kmh */
642
+ /**
643
+ * Max Speed Kmh
644
+ * @description Maximum speed in km/h
645
+ */
546
646
  max_speed_kmh?: number | null;
547
- /** Total Ascent M */
647
+ /**
648
+ * Total Ascent M
649
+ * @description Total elevation gain in meters
650
+ */
548
651
  total_ascent_m?: number | null;
549
- /** Total Descent M */
652
+ /**
653
+ * Total Descent M
654
+ * @description Total elevation loss in meters
655
+ */
550
656
  total_descent_m?: number | null;
551
- /** Total Distance */
657
+ /**
658
+ * Total Distance
659
+ * @description Raw total distance in meters from FIT file
660
+ */
552
661
  total_distance?: number | null;
553
- /** Avg Pace */
662
+ /**
663
+ * Avg Pace
664
+ * @description Average pace in minutes per kilometre
665
+ */
554
666
  avg_pace?: number | null;
555
- /** Device Manufacturer */
667
+ /**
668
+ * Device Manufacturer
669
+ * @description Device manufacturer (e.g. garmin)
670
+ */
556
671
  device_manufacturer?: string | null;
557
- /** Avg Temperature C */
672
+ /**
673
+ * Avg Temperature C
674
+ * @description Average ambient temperature in degrees C
675
+ */
558
676
  avg_temperature_c?: number | null;
559
- /** Min Temperature C */
677
+ /**
678
+ * Min Temperature C
679
+ * @description Minimum ambient temperature in degrees C
680
+ */
560
681
  min_temperature_c?: number | null;
561
- /** Max Temperature C */
682
+ /**
683
+ * Max Temperature C
684
+ * @description Maximum ambient temperature in degrees C
685
+ */
562
686
  max_temperature_c?: number | null;
563
- /** Total Elapsed Time */
687
+ /**
688
+ * Total Elapsed Time
689
+ * @description Total elapsed time in seconds (includes pauses)
690
+ */
564
691
  total_elapsed_time?: number | null;
565
- /** Total Timer Time */
692
+ /**
693
+ * Total Timer Time
694
+ * @description Total timer time in seconds (active recording)
695
+ */
566
696
  total_timer_time?: number | null;
567
- /** Created At */
697
+ /**
698
+ * Created At
699
+ * @description UTC timestamp when the record was inserted
700
+ */
568
701
  created_at?: string | null;
569
- /** Uploaded At */
702
+ /**
703
+ * Uploaded At
704
+ * @description UTC timestamp when the FIT file was uploaded
705
+ */
570
706
  uploaded_at?: string | null;
571
- /** Track Point Count */
707
+ /**
708
+ * Track Point Count
709
+ * @description Number of GPS track points in this activity
710
+ */
572
711
  track_point_count?: number | null;
573
712
  };
574
713
  /**
575
714
  * GarminChartPoint
715
+ * @description Lightweight track point optimised for time-series chart rendering.
576
716
  * @example {
577
717
  * "altitude": 12.4,
578
718
  * "cadence": 80,
@@ -589,27 +729,53 @@ export type components = {
589
729
  /**
590
730
  * Timestamp
591
731
  * Format: date-time
732
+ * @description UTC timestamp of the data point
592
733
  */
593
734
  timestamp: string;
594
- /** Altitude */
735
+ /**
736
+ * Altitude
737
+ * @description Elevation above sea level in meters
738
+ */
595
739
  altitude?: number | null;
596
- /** Distance From Start Km */
740
+ /**
741
+ * Distance From Start Km
742
+ * @description Cumulative distance from activity start in km
743
+ */
597
744
  distance_from_start_km?: number | null;
598
- /** Speed Kmh */
745
+ /**
746
+ * Speed Kmh
747
+ * @description Instantaneous speed in km/h
748
+ */
599
749
  speed_kmh?: number | null;
600
- /** Heart Rate */
750
+ /**
751
+ * Heart Rate
752
+ * @description Heart rate in beats per minute
753
+ */
601
754
  heart_rate?: number | null;
602
- /** Cadence */
755
+ /**
756
+ * Cadence
757
+ * @description Pedal/step cadence in RPM
758
+ */
603
759
  cadence?: number | null;
604
- /** Temperature C */
760
+ /**
761
+ * Temperature C
762
+ * @description Ambient temperature in degrees C
763
+ */
605
764
  temperature_c?: number | null;
606
- /** Latitude */
765
+ /**
766
+ * Latitude
767
+ * @description GPS latitude in decimal degrees (WGS 84)
768
+ */
607
769
  latitude: number;
608
- /** Longitude */
770
+ /**
771
+ * Longitude
772
+ * @description GPS longitude in decimal degrees (WGS 84)
773
+ */
609
774
  longitude: number;
610
775
  };
611
776
  /**
612
777
  * GarminTrackPoint
778
+ * @description Individual GPS track point within a Garmin activity.
613
779
  * @example {
614
780
  * "activity_id": "20932993811",
615
781
  * "altitude": 12.4,
@@ -626,32 +792,66 @@ export type components = {
626
792
  * }
627
793
  */
628
794
  GarminTrackPoint: {
629
- /** Id */
795
+ /**
796
+ * Id
797
+ * @description Unique track point record identifier
798
+ */
630
799
  id: number;
631
- /** Activity Id */
800
+ /**
801
+ * Activity Id
802
+ * @description Parent Garmin activity identifier
803
+ */
632
804
  activity_id: string;
633
- /** Latitude */
805
+ /**
806
+ * Latitude
807
+ * @description GPS latitude in decimal degrees (WGS 84)
808
+ */
634
809
  latitude: number;
635
- /** Longitude */
810
+ /**
811
+ * Longitude
812
+ * @description GPS longitude in decimal degrees (WGS 84)
813
+ */
636
814
  longitude: number;
637
815
  /**
638
816
  * Timestamp
639
817
  * Format: date-time
818
+ * @description UTC timestamp of the track point recording
640
819
  */
641
820
  timestamp: string;
642
- /** Altitude */
821
+ /**
822
+ * Altitude
823
+ * @description Elevation above sea level in meters
824
+ */
643
825
  altitude?: number | null;
644
- /** Distance From Start Km */
826
+ /**
827
+ * Distance From Start Km
828
+ * @description Cumulative distance from activity start in km
829
+ */
645
830
  distance_from_start_km?: number | null;
646
- /** Speed Kmh */
831
+ /**
832
+ * Speed Kmh
833
+ * @description Instantaneous speed in km/h
834
+ */
647
835
  speed_kmh?: number | null;
648
- /** Heart Rate */
836
+ /**
837
+ * Heart Rate
838
+ * @description Heart rate in beats per minute
839
+ */
649
840
  heart_rate?: number | null;
650
- /** Cadence */
841
+ /**
842
+ * Cadence
843
+ * @description Pedal/step cadence in RPM
844
+ */
651
845
  cadence?: number | null;
652
- /** Temperature C */
846
+ /**
847
+ * Temperature C
848
+ * @description Ambient temperature in degrees C
849
+ */
653
850
  temperature_c?: number | null;
654
- /** Created At */
851
+ /**
852
+ * Created At
853
+ * @description UTC timestamp when the record was inserted
854
+ */
655
855
  created_at?: string | null;
656
856
  };
657
857
  /** HTTPValidationError */
@@ -661,6 +861,7 @@ export type components = {
661
861
  };
662
862
  /**
663
863
  * Location
864
+ * @description GPS location recorded by the OwnTracks mobile app.
664
865
  * @example {
665
866
  * "accuracy": 7,
666
867
  * "altitude": 4,
@@ -678,55 +879,106 @@ export type components = {
678
879
  * }
679
880
  */
680
881
  Location: {
681
- /** Id */
882
+ /**
883
+ * Id
884
+ * @description Unique location record identifier
885
+ */
682
886
  id: number;
683
- /** Device Id */
887
+ /**
888
+ * Device Id
889
+ * @description OwnTracks device identifier (e.g. iphone_stuart)
890
+ */
684
891
  device_id: string;
685
- /** Tid */
892
+ /**
893
+ * Tid
894
+ * @description Two-character tracker ID set in the OwnTracks app
895
+ */
686
896
  tid?: string | null;
687
- /** Latitude */
897
+ /**
898
+ * Latitude
899
+ * @description GPS latitude in decimal degrees (WGS 84)
900
+ */
688
901
  latitude: number;
689
- /** Longitude */
902
+ /**
903
+ * Longitude
904
+ * @description GPS longitude in decimal degrees (WGS 84)
905
+ */
690
906
  longitude: number;
691
- /** Accuracy */
907
+ /**
908
+ * Accuracy
909
+ * @description Horizontal accuracy of the GPS fix in meters
910
+ */
692
911
  accuracy?: number | null;
693
- /** Altitude */
912
+ /**
913
+ * Altitude
914
+ * @description Altitude above sea level in meters
915
+ */
694
916
  altitude?: number | null;
695
- /** Velocity */
917
+ /**
918
+ * Velocity
919
+ * @description Device velocity in km/h at time of report
920
+ */
696
921
  velocity?: number | null;
697
- /** Battery */
922
+ /**
923
+ * Battery
924
+ * @description Device battery level as a percentage (0-100)
925
+ */
698
926
  battery?: number | null;
699
- /** Battery Status */
927
+ /**
928
+ * Battery Status
929
+ * @description Battery charging state (0=unknown, 1=unplugged, 2=charging, 3=full)
930
+ */
700
931
  battery_status?: number | null;
701
- /** Connection Type */
932
+ /**
933
+ * Connection Type
934
+ * @description Network connection type (w=WiFi, m=mobile)
935
+ */
702
936
  connection_type?: string | null;
703
- /** Trigger */
937
+ /**
938
+ * Trigger
939
+ * @description What triggered this location report (p=ping, c=circular, t=timer)
940
+ */
704
941
  trigger?: string | null;
705
942
  /**
706
943
  * Timestamp
707
944
  * Format: date-time
945
+ * @description UTC timestamp when the device recorded the location
708
946
  */
709
947
  timestamp: string;
710
- /** Created At */
948
+ /**
949
+ * Created At
950
+ * @description UTC timestamp when the record was inserted into the database
951
+ */
711
952
  created_at?: string | null;
712
953
  };
713
954
  /**
714
955
  * LocationCount
956
+ * @description Aggregate location count with optional filter context.
715
957
  * @example {
716
958
  * "count": 45883,
717
959
  * "device_id": "iphone_stuart"
718
960
  * }
719
961
  */
720
962
  LocationCount: {
721
- /** Count */
963
+ /**
964
+ * Count
965
+ * @description Total number of location records matching the filter
966
+ */
722
967
  count: number;
723
- /** Date */
968
+ /**
969
+ * Date
970
+ * @description Date filter applied (YYYY-MM-DD), if any
971
+ */
724
972
  date?: string | null;
725
- /** Device Id */
973
+ /**
974
+ * Device Id
975
+ * @description Device ID filter applied, if any
976
+ */
726
977
  device_id?: string | null;
727
978
  };
728
979
  /**
729
980
  * LocationDetail
981
+ * @description Full location detail including the original OwnTracks JSON payload.
730
982
  * @example {
731
983
  * "accuracy": 7,
732
984
  * "altitude": 4,
@@ -752,44 +1004,88 @@ export type components = {
752
1004
  * }
753
1005
  */
754
1006
  LocationDetail: {
755
- /** Id */
1007
+ /**
1008
+ * Id
1009
+ * @description Unique location record identifier
1010
+ */
756
1011
  id: number;
757
- /** Device Id */
1012
+ /**
1013
+ * Device Id
1014
+ * @description OwnTracks device identifier (e.g. iphone_stuart)
1015
+ */
758
1016
  device_id: string;
759
- /** Tid */
1017
+ /**
1018
+ * Tid
1019
+ * @description Two-character tracker ID set in the OwnTracks app
1020
+ */
760
1021
  tid?: string | null;
761
- /** Latitude */
1022
+ /**
1023
+ * Latitude
1024
+ * @description GPS latitude in decimal degrees (WGS 84)
1025
+ */
762
1026
  latitude: number;
763
- /** Longitude */
1027
+ /**
1028
+ * Longitude
1029
+ * @description GPS longitude in decimal degrees (WGS 84)
1030
+ */
764
1031
  longitude: number;
765
- /** Accuracy */
1032
+ /**
1033
+ * Accuracy
1034
+ * @description Horizontal accuracy of the GPS fix in meters
1035
+ */
766
1036
  accuracy?: number | null;
767
- /** Altitude */
1037
+ /**
1038
+ * Altitude
1039
+ * @description Altitude above sea level in meters
1040
+ */
768
1041
  altitude?: number | null;
769
- /** Velocity */
1042
+ /**
1043
+ * Velocity
1044
+ * @description Device velocity in km/h at time of report
1045
+ */
770
1046
  velocity?: number | null;
771
- /** Battery */
1047
+ /**
1048
+ * Battery
1049
+ * @description Device battery level as a percentage (0-100)
1050
+ */
772
1051
  battery?: number | null;
773
- /** Battery Status */
1052
+ /**
1053
+ * Battery Status
1054
+ * @description Battery charging state (0=unknown, 1=unplugged, 2=charging, 3=full)
1055
+ */
774
1056
  battery_status?: number | null;
775
- /** Connection Type */
1057
+ /**
1058
+ * Connection Type
1059
+ * @description Network connection type (w=WiFi, m=mobile)
1060
+ */
776
1061
  connection_type?: string | null;
777
- /** Trigger */
1062
+ /**
1063
+ * Trigger
1064
+ * @description What triggered this location report (p=ping, c=circular, t=timer)
1065
+ */
778
1066
  trigger?: string | null;
779
1067
  /**
780
1068
  * Timestamp
781
1069
  * Format: date-time
1070
+ * @description UTC timestamp when the device recorded the location
782
1071
  */
783
1072
  timestamp: string;
784
- /** Created At */
1073
+ /**
1074
+ * Created At
1075
+ * @description UTC timestamp when the record was inserted into the database
1076
+ */
785
1077
  created_at?: string | null;
786
- /** Raw Payload */
1078
+ /**
1079
+ * Raw Payload
1080
+ * @description Original OwnTracks JSON payload as received from the MQTT broker
1081
+ */
787
1082
  raw_payload?: {
788
1083
  [key: string]: unknown;
789
1084
  } | null;
790
1085
  };
791
1086
  /**
792
1087
  * NearbyPoint
1088
+ * @description GPS point found within a spatial proximity search.
793
1089
  * @example {
794
1090
  * "distance_meters": 0.4,
795
1091
  * "id": 35144,
@@ -800,68 +1096,133 @@ export type components = {
800
1096
  * }
801
1097
  */
802
1098
  NearbyPoint: {
803
- /** Source */
1099
+ /**
1100
+ * Source
1101
+ * @description Data source: 'owntracks' or 'garmin'
1102
+ */
804
1103
  source: string;
805
- /** Id */
1104
+ /**
1105
+ * Id
1106
+ * @description Record identifier in the source table
1107
+ */
806
1108
  id: number;
807
- /** Latitude */
1109
+ /**
1110
+ * Latitude
1111
+ * @description GPS latitude in decimal degrees (WGS 84)
1112
+ */
808
1113
  latitude: number;
809
- /** Longitude */
1114
+ /**
1115
+ * Longitude
1116
+ * @description GPS longitude in decimal degrees (WGS 84)
1117
+ */
810
1118
  longitude: number;
811
- /** Distance Meters */
1119
+ /**
1120
+ * Distance Meters
1121
+ * @description Distance from the search center point in meters
1122
+ */
812
1123
  distance_meters: number;
813
1124
  /**
814
1125
  * Timestamp
815
1126
  * Format: date-time
1127
+ * @description UTC timestamp of the GPS recording
816
1128
  */
817
1129
  timestamp: string;
818
1130
  };
819
1131
  /** PaginatedResponse[GarminActivity] */
820
1132
  PaginatedResponse_GarminActivity_: {
821
- /** Items */
1133
+ /**
1134
+ * Items
1135
+ * @description List of items in the current page
1136
+ */
822
1137
  items: components["schemas"]["GarminActivity"][];
823
- /** Total */
1138
+ /**
1139
+ * Total
1140
+ * @description Total number of items matching the query
1141
+ */
824
1142
  total: number;
825
- /** Limit */
1143
+ /**
1144
+ * Limit
1145
+ * @description Maximum number of items per page
1146
+ */
826
1147
  limit: number;
827
- /** Offset */
1148
+ /**
1149
+ * Offset
1150
+ * @description Number of items skipped from the start
1151
+ */
828
1152
  offset: number;
829
1153
  };
830
1154
  /** PaginatedResponse[GarminTrackPoint] */
831
1155
  PaginatedResponse_GarminTrackPoint_: {
832
- /** Items */
1156
+ /**
1157
+ * Items
1158
+ * @description List of items in the current page
1159
+ */
833
1160
  items: components["schemas"]["GarminTrackPoint"][];
834
- /** Total */
1161
+ /**
1162
+ * Total
1163
+ * @description Total number of items matching the query
1164
+ */
835
1165
  total: number;
836
- /** Limit */
1166
+ /**
1167
+ * Limit
1168
+ * @description Maximum number of items per page
1169
+ */
837
1170
  limit: number;
838
- /** Offset */
1171
+ /**
1172
+ * Offset
1173
+ * @description Number of items skipped from the start
1174
+ */
839
1175
  offset: number;
840
1176
  };
841
1177
  /** PaginatedResponse[Location] */
842
1178
  PaginatedResponse_Location_: {
843
- /** Items */
1179
+ /**
1180
+ * Items
1181
+ * @description List of items in the current page
1182
+ */
844
1183
  items: components["schemas"]["Location"][];
845
- /** Total */
1184
+ /**
1185
+ * Total
1186
+ * @description Total number of items matching the query
1187
+ */
846
1188
  total: number;
847
- /** Limit */
1189
+ /**
1190
+ * Limit
1191
+ * @description Maximum number of items per page
1192
+ */
848
1193
  limit: number;
849
- /** Offset */
1194
+ /**
1195
+ * Offset
1196
+ * @description Number of items skipped from the start
1197
+ */
850
1198
  offset: number;
851
1199
  };
852
1200
  /** PaginatedResponse[UnifiedGpsPoint] */
853
1201
  PaginatedResponse_UnifiedGpsPoint_: {
854
- /** Items */
1202
+ /**
1203
+ * Items
1204
+ * @description List of items in the current page
1205
+ */
855
1206
  items: components["schemas"]["UnifiedGpsPoint"][];
856
- /** Total */
1207
+ /**
1208
+ * Total
1209
+ * @description Total number of items matching the query
1210
+ */
857
1211
  total: number;
858
- /** Limit */
1212
+ /**
1213
+ * Limit
1214
+ * @description Maximum number of items per page
1215
+ */
859
1216
  limit: number;
860
- /** Offset */
1217
+ /**
1218
+ * Offset
1219
+ * @description Number of items skipped from the start
1220
+ */
861
1221
  offset: number;
862
1222
  };
863
1223
  /**
864
1224
  * ReferenceLocation
1225
+ * @description Named geographic reference point used for spatial queries (e.g. home, office).
865
1226
  * @example {
866
1227
  * "created_at": "2026-02-03T22:49:07+00:00",
867
1228
  * "description": "Primary apartment - 40m radius",
@@ -874,28 +1235,51 @@ export type components = {
874
1235
  * }
875
1236
  */
876
1237
  ReferenceLocation: {
877
- /** Id */
1238
+ /**
1239
+ * Id
1240
+ * @description Unique reference location identifier
1241
+ */
878
1242
  id: number;
879
- /** Name */
1243
+ /**
1244
+ * Name
1245
+ * @description Short, unique name for the location (e.g. home, office)
1246
+ */
880
1247
  name: string;
881
- /** Latitude */
1248
+ /**
1249
+ * Latitude
1250
+ * @description GPS latitude in decimal degrees (WGS 84)
1251
+ */
882
1252
  latitude: number;
883
- /** Longitude */
1253
+ /**
1254
+ * Longitude
1255
+ * @description GPS longitude in decimal degrees (WGS 84)
1256
+ */
884
1257
  longitude: number;
885
1258
  /**
886
1259
  * Radius Meters
1260
+ * @description Geofence radius in meters for proximity queries
887
1261
  * @default 50
888
1262
  */
889
1263
  radius_meters: number;
890
- /** Description */
1264
+ /**
1265
+ * Description
1266
+ * @description Optional human-readable description of the location
1267
+ */
891
1268
  description?: string | null;
892
- /** Created At */
1269
+ /**
1270
+ * Created At
1271
+ * @description UTC timestamp when the record was created
1272
+ */
893
1273
  created_at?: string | null;
894
- /** Updated At */
1274
+ /**
1275
+ * Updated At
1276
+ * @description UTC timestamp when the record was last updated
1277
+ */
895
1278
  updated_at?: string | null;
896
1279
  };
897
1280
  /**
898
1281
  * ReferenceLocationCreate
1282
+ * @description Request body for creating a new reference location.
899
1283
  * @example {
900
1284
  * "description": "Downtown office building",
901
1285
  * "latitude": 40.7128,
@@ -905,54 +1289,91 @@ export type components = {
905
1289
  * }
906
1290
  */
907
1291
  ReferenceLocationCreate: {
908
- /** Name */
1292
+ /**
1293
+ * Name
1294
+ * @description Short, unique name for the location (e.g. home, office)
1295
+ */
909
1296
  name: string;
910
- /** Latitude */
1297
+ /**
1298
+ * Latitude
1299
+ * @description GPS latitude in decimal degrees (WGS 84)
1300
+ */
911
1301
  latitude: number;
912
- /** Longitude */
1302
+ /**
1303
+ * Longitude
1304
+ * @description GPS longitude in decimal degrees (WGS 84)
1305
+ */
913
1306
  longitude: number;
914
1307
  /**
915
1308
  * Radius Meters
1309
+ * @description Geofence radius in meters for proximity queries
916
1310
  * @default 50
917
1311
  */
918
1312
  radius_meters: number;
919
- /** Description */
1313
+ /**
1314
+ * Description
1315
+ * @description Optional human-readable description of the location
1316
+ */
920
1317
  description?: string | null;
921
1318
  };
922
1319
  /**
923
1320
  * ReferenceLocationUpdate
1321
+ * @description Request body for partially updating a reference location. All fields are optional.
924
1322
  * @example {
925
1323
  * "description": "Updated radius for office building",
926
1324
  * "radius_meters": 75
927
1325
  * }
928
1326
  */
929
1327
  ReferenceLocationUpdate: {
930
- /** Name */
1328
+ /**
1329
+ * Name
1330
+ * @description Updated location name
1331
+ */
931
1332
  name?: string | null;
932
- /** Latitude */
1333
+ /**
1334
+ * Latitude
1335
+ * @description Updated GPS latitude in decimal degrees
1336
+ */
933
1337
  latitude?: number | null;
934
- /** Longitude */
1338
+ /**
1339
+ * Longitude
1340
+ * @description Updated GPS longitude in decimal degrees
1341
+ */
935
1342
  longitude?: number | null;
936
- /** Radius Meters */
1343
+ /**
1344
+ * Radius Meters
1345
+ * @description Updated geofence radius in meters
1346
+ */
937
1347
  radius_meters?: number | null;
938
- /** Description */
1348
+ /**
1349
+ * Description
1350
+ * @description Updated description text
1351
+ */
939
1352
  description?: string | null;
940
1353
  };
941
1354
  /**
942
1355
  * SportInfo
1356
+ * @description Sport type with its activity count.
943
1357
  * @example {
944
1358
  * "activity_count": 20,
945
1359
  * "sport": "cycling"
946
1360
  * }
947
1361
  */
948
1362
  SportInfo: {
949
- /** Sport */
1363
+ /**
1364
+ * Sport
1365
+ * @description Sport type name (e.g. cycling, running)
1366
+ */
950
1367
  sport: string;
951
- /** Activity Count */
1368
+ /**
1369
+ * Activity Count
1370
+ * @description Number of activities for this sport
1371
+ */
952
1372
  activity_count: number;
953
1373
  };
954
1374
  /**
955
1375
  * UnifiedGpsPoint
1376
+ * @description Single GPS data point from the unified view combining OwnTracks and Garmin sources.
956
1377
  * @example {
957
1378
  * "accuracy": 7,
958
1379
  * "battery": 100,
@@ -965,28 +1386,56 @@ export type components = {
965
1386
  * }
966
1387
  */
967
1388
  UnifiedGpsPoint: {
968
- /** Source */
1389
+ /**
1390
+ * Source
1391
+ * @description Data source: 'owntracks' or 'garmin'
1392
+ */
969
1393
  source: string;
970
- /** Identifier */
1394
+ /**
1395
+ * Identifier
1396
+ * @description Device or activity identifier from the source
1397
+ */
971
1398
  identifier: string;
972
- /** Latitude */
1399
+ /**
1400
+ * Latitude
1401
+ * @description GPS latitude in decimal degrees (WGS 84)
1402
+ */
973
1403
  latitude: number;
974
- /** Longitude */
1404
+ /**
1405
+ * Longitude
1406
+ * @description GPS longitude in decimal degrees (WGS 84)
1407
+ */
975
1408
  longitude: number;
976
1409
  /**
977
1410
  * Timestamp
978
1411
  * Format: date-time
1412
+ * @description UTC timestamp of the GPS recording
979
1413
  */
980
1414
  timestamp: string;
981
- /** Accuracy */
1415
+ /**
1416
+ * Accuracy
1417
+ * @description Horizontal GPS accuracy in meters (OwnTracks only)
1418
+ */
982
1419
  accuracy?: number | null;
983
- /** Battery */
1420
+ /**
1421
+ * Battery
1422
+ * @description Device battery percentage (OwnTracks only)
1423
+ */
984
1424
  battery?: number | null;
985
- /** Speed Kmh */
1425
+ /**
1426
+ * Speed Kmh
1427
+ * @description Instantaneous speed in km/h (Garmin only)
1428
+ */
986
1429
  speed_kmh?: number | null;
987
- /** Heart Rate */
1430
+ /**
1431
+ * Heart Rate
1432
+ * @description Heart rate in BPM (Garmin only)
1433
+ */
988
1434
  heart_rate?: number | null;
989
- /** Created At */
1435
+ /**
1436
+ * Created At
1437
+ * @description UTC timestamp when the record was inserted
1438
+ */
990
1439
  created_at?: string | null;
991
1440
  };
992
1441
  /** ValidationError */
@@ -1004,6 +1453,7 @@ export type components = {
1004
1453
  };
1005
1454
  /**
1006
1455
  * WithinReferenceResult
1456
+ * @description GPS points found within a named reference location's geofence radius.
1007
1457
  * @example {
1008
1458
  * "points": [
1009
1459
  * {
@@ -1021,13 +1471,25 @@ export type components = {
1021
1471
  * }
1022
1472
  */
1023
1473
  WithinReferenceResult: {
1024
- /** Reference Name */
1474
+ /**
1475
+ * Reference Name
1476
+ * @description Name of the reference location searched
1477
+ */
1025
1478
  reference_name: string;
1026
- /** Radius Meters */
1479
+ /**
1480
+ * Radius Meters
1481
+ * @description Geofence radius used for the search in meters
1482
+ */
1027
1483
  radius_meters: number;
1028
- /** Total Points */
1484
+ /**
1485
+ * Total Points
1486
+ * @description Number of GPS points found within the radius
1487
+ */
1029
1488
  total_points: number;
1030
- /** Points */
1489
+ /**
1490
+ * Points
1491
+ * @description GPS points within the radius, sorted by distance
1492
+ */
1031
1493
  points: components["schemas"]["NearbyPoint"][];
1032
1494
  };
1033
1495
  };
@@ -1090,10 +1552,13 @@ export interface operations {
1090
1552
  date_from?: string | null;
1091
1553
  /** @description Filter to date (YYYY-MM-DD) */
1092
1554
  date_to?: string | null;
1555
+ /** @description Maximum number of locations to return per page */
1093
1556
  limit?: number;
1557
+ /** @description Number of locations to skip for pagination */
1094
1558
  offset?: number;
1095
1559
  /** @description Sort column (id, device_id, timestamp, created_at, battery, accuracy) */
1096
1560
  sort?: string;
1561
+ /** @description Sort direction: asc (oldest first) or desc (newest first) */
1097
1562
  order?: "asc" | "desc";
1098
1563
  };
1099
1564
  header?: never;
@@ -1181,6 +1646,7 @@ export interface operations {
1181
1646
  query?: never;
1182
1647
  header?: never;
1183
1648
  path: {
1649
+ /** @description Unique location record ID */
1184
1650
  location_id: number;
1185
1651
  };
1186
1652
  cookie?: never;
@@ -1216,10 +1682,13 @@ export interface operations {
1216
1682
  date_from?: string | null;
1217
1683
  /** @description Filter to date (YYYY-MM-DD) */
1218
1684
  date_to?: string | null;
1685
+ /** @description Maximum number of activities to return per page */
1219
1686
  limit?: number;
1687
+ /** @description Number of activities to skip for pagination */
1220
1688
  offset?: number;
1221
1689
  /** @description Sort column (start_time, distance_km, duration_seconds, sport, created_at) */
1222
1690
  sort?: string;
1691
+ /** @description Sort direction: asc (oldest first) or desc (newest first) */
1223
1692
  order?: "asc" | "desc";
1224
1693
  };
1225
1694
  header?: never;
@@ -1310,10 +1779,13 @@ export interface operations {
1310
1779
  list_track_points_api_v1_garmin_activities__activity_id__tracks_get: {
1311
1780
  parameters: {
1312
1781
  query?: {
1782
+ /** @description Maximum number of track points to return per page */
1313
1783
  limit?: number;
1784
+ /** @description Number of track points to skip for pagination */
1314
1785
  offset?: number;
1315
1786
  /** @description Sort column (timestamp, altitude, speed_kmh, heart_rate, created_at) */
1316
1787
  sort?: string;
1788
+ /** @description Sort direction: asc (earliest first) or desc (latest first) */
1317
1789
  order?: "asc" | "desc";
1318
1790
  /** @description Douglas-Peucker simplification tolerance in degrees. When set, returns the full route simplified via PostGIS ST_Simplify, ignoring limit/offset. Recommended: 0.00001 (~1m), 0.00005 (~5m). */
1319
1791
  simplify?: number | null;
@@ -1402,8 +1874,11 @@ export interface operations {
1402
1874
  date_from?: string | null;
1403
1875
  /** @description Filter to date (YYYY-MM-DD) */
1404
1876
  date_to?: string | null;
1877
+ /** @description Maximum number of GPS points to return per page */
1405
1878
  limit?: number;
1879
+ /** @description Number of GPS points to skip for pagination */
1406
1880
  offset?: number;
1881
+ /** @description Sort direction: asc (oldest first) or desc (newest first) */
1407
1882
  order?: "asc" | "desc";
1408
1883
  };
1409
1884
  header?: never;
@@ -1439,6 +1914,7 @@ export interface operations {
1439
1914
  date_from?: string | null;
1440
1915
  /** @description Filter to date (YYYY-MM-DD) */
1441
1916
  date_to?: string | null;
1917
+ /** @description Maximum number of daily summaries to return */
1442
1918
  limit?: number;
1443
1919
  };
1444
1920
  header?: never;
@@ -1525,6 +2001,7 @@ export interface operations {
1525
2001
  query?: never;
1526
2002
  header?: never;
1527
2003
  path: {
2004
+ /** @description Unique reference location ID */
1528
2005
  location_id: number;
1529
2006
  };
1530
2007
  cookie?: never;
@@ -1556,6 +2033,7 @@ export interface operations {
1556
2033
  query?: never;
1557
2034
  header?: never;
1558
2035
  path: {
2036
+ /** @description Unique reference location ID */
1559
2037
  location_id: number;
1560
2038
  };
1561
2039
  cookie?: never;
@@ -1591,6 +2069,7 @@ export interface operations {
1591
2069
  query?: never;
1592
2070
  header?: never;
1593
2071
  path: {
2072
+ /** @description Unique reference location ID */
1594
2073
  location_id: number;
1595
2074
  };
1596
2075
  cookie?: never;
@@ -1626,6 +2105,7 @@ export interface operations {
1626
2105
  radius_meters?: number;
1627
2106
  /** @description Filter by source: owntracks or garmin */
1628
2107
  source?: string | null;
2108
+ /** @description Maximum number of nearby points to return */
1629
2109
  limit?: number;
1630
2110
  };
1631
2111
  header?: never;
@@ -1697,6 +2177,7 @@ export interface operations {
1697
2177
  query?: {
1698
2178
  /** @description Filter by source: owntracks or garmin */
1699
2179
  source?: string | null;
2180
+ /** @description Maximum number of points to return within the reference area */
1700
2181
  limit?: number;
1701
2182
  };
1702
2183
  header?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stuartshay/otel-data-types",
3
- "version": "1.0.97",
3
+ "version": "1.0.107",
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": {