@stuartshay/otel-data-types 1.0.166 → 1.0.170

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 +154 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -127,6 +127,26 @@ export type paths = {
127
127
  patch?: never;
128
128
  trace?: never;
129
129
  };
130
+ "/api/v1/garmin/sync": {
131
+ parameters: {
132
+ query?: never;
133
+ header?: never;
134
+ path?: never;
135
+ cookie?: never;
136
+ };
137
+ get?: never;
138
+ put?: never;
139
+ /**
140
+ * Trigger Sync
141
+ * @description Trigger an on-demand Garmin sync via the in-cluster garmin-sync service.
142
+ */
143
+ post: operations["trigger_sync_api_v1_garmin_sync_post"];
144
+ delete?: never;
145
+ options?: never;
146
+ head?: never;
147
+ patch?: never;
148
+ trace?: never;
149
+ };
130
150
  "/api/v1/garmin/activities": {
131
151
  parameters: {
132
152
  query?: never;
@@ -780,6 +800,61 @@ export type components = {
780
800
  */
781
801
  longitude: number;
782
802
  };
803
+ /**
804
+ * GarminSyncResponse
805
+ * @description Response payload for Garmin on-demand sync trigger requests.
806
+ * @example {
807
+ * "message": "Sync started",
808
+ * "status": "accepted",
809
+ * "triggered_at": "2026-03-12T01:25:14.586353+00:00",
810
+ * "window_hours": 48,
811
+ * "window_start": "2026-03-10T01:25:14.586331+00:00"
812
+ * }
813
+ * @example {
814
+ * "message": "Sync already in progress",
815
+ * "started_at": "2026-03-12T01:24:58.102924+00:00",
816
+ * "status": "conflict"
817
+ * }
818
+ */
819
+ GarminSyncResponse: {
820
+ /**
821
+ * Status
822
+ * @description Sync trigger status (accepted, conflict, bad_request, error)
823
+ */
824
+ status: string;
825
+ /**
826
+ * Message
827
+ * @description Human-readable status message
828
+ */
829
+ message: string;
830
+ /**
831
+ * Triggered At
832
+ * @description UTC timestamp when sync was triggered
833
+ */
834
+ triggered_at?: string | null;
835
+ /**
836
+ * Started At
837
+ * @description UTC timestamp when active sync started
838
+ */
839
+ started_at?: string | null;
840
+ /**
841
+ * Lookback
842
+ * @description Effective lookback override used for this trigger
843
+ */
844
+ lookback?: number | null;
845
+ /**
846
+ * Window Hours
847
+ * @description Effective window in hours used for this trigger
848
+ */
849
+ window_hours?: number | null;
850
+ /**
851
+ * Window Start
852
+ * @description Computed UTC window start timestamp
853
+ */
854
+ window_start?: string | null;
855
+ } & {
856
+ [key: string]: unknown;
857
+ };
783
858
  /**
784
859
  * GarminTrackPoint
785
860
  * @description Individual GPS track point within a Garmin activity.
@@ -1680,6 +1755,85 @@ export interface operations {
1680
1755
  };
1681
1756
  };
1682
1757
  };
1758
+ trigger_sync_api_v1_garmin_sync_post: {
1759
+ parameters: {
1760
+ query?: {
1761
+ /** @description Optional activity lookback override. Non-negative integer. */
1762
+ lookback?: number | null;
1763
+ /** @description Optional sync window in hours. Positive integer. */
1764
+ window_hours?: number | null;
1765
+ };
1766
+ header?: never;
1767
+ path?: never;
1768
+ cookie?: never;
1769
+ };
1770
+ requestBody?: never;
1771
+ responses: {
1772
+ /** @description Successful Response */
1773
+ 202: {
1774
+ headers: {
1775
+ [name: string]: unknown;
1776
+ };
1777
+ content: {
1778
+ "application/json": components["schemas"]["GarminSyncResponse"];
1779
+ };
1780
+ };
1781
+ /** @description Invalid sync trigger parameters */
1782
+ 400: {
1783
+ headers: {
1784
+ [name: string]: unknown;
1785
+ };
1786
+ content: {
1787
+ "application/json": components["schemas"]["GarminSyncResponse"];
1788
+ };
1789
+ };
1790
+ /** @description Sync already in progress */
1791
+ 409: {
1792
+ headers: {
1793
+ [name: string]: unknown;
1794
+ };
1795
+ content: {
1796
+ "application/json": components["schemas"]["GarminSyncResponse"];
1797
+ };
1798
+ };
1799
+ /** @description Validation Error */
1800
+ 422: {
1801
+ headers: {
1802
+ [name: string]: unknown;
1803
+ };
1804
+ content: {
1805
+ "application/json": components["schemas"]["HTTPValidationError"];
1806
+ };
1807
+ };
1808
+ /** @description Bad gateway from Garmin sync service */
1809
+ 502: {
1810
+ headers: {
1811
+ [name: string]: unknown;
1812
+ };
1813
+ content: {
1814
+ "application/json": components["schemas"]["GarminSyncResponse"];
1815
+ };
1816
+ };
1817
+ /** @description Garmin sync service unavailable */
1818
+ 503: {
1819
+ headers: {
1820
+ [name: string]: unknown;
1821
+ };
1822
+ content: {
1823
+ "application/json": components["schemas"]["GarminSyncResponse"];
1824
+ };
1825
+ };
1826
+ /** @description Garmin sync service timeout */
1827
+ 504: {
1828
+ headers: {
1829
+ [name: string]: unknown;
1830
+ };
1831
+ content: {
1832
+ "application/json": components["schemas"]["GarminSyncResponse"];
1833
+ };
1834
+ };
1835
+ };
1836
+ };
1683
1837
  list_activities_api_v1_garmin_activities_get: {
1684
1838
  parameters: {
1685
1839
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stuartshay/otel-data-types",
3
- "version": "1.0.166",
3
+ "version": "1.0.170",
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": {