@tryvital/vital-node 3.1.120 → 3.1.122

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 (97) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +1 -1
  3. package/api/resources/body/client/Client.js +2 -2
  4. package/api/resources/devices/client/Client.js +1 -1
  5. package/api/resources/insurance/client/Client.js +2 -2
  6. package/api/resources/introspect/client/Client.js +2 -2
  7. package/api/resources/labTests/client/Client.js +34 -34
  8. package/api/resources/link/client/Client.js +14 -14
  9. package/api/resources/meal/client/Client.js +1 -1
  10. package/api/resources/menstrualCycle/client/Client.js +1 -1
  11. package/api/resources/profile/client/Client.js +2 -2
  12. package/api/resources/providers/client/Client.js +1 -1
  13. package/api/resources/sleep/client/Client.js +4 -4
  14. package/api/resources/sleepCycle/client/Client.js +1 -1
  15. package/api/resources/team/client/Client.js +7 -7
  16. package/api/resources/testkit/client/Client.js +2 -2
  17. package/api/resources/user/client/Client.js +16 -16
  18. package/api/resources/vitals/client/Client.js +56 -56
  19. package/api/resources/workouts/client/Client.js +3 -3
  20. package/api/types/{SleepCycle.d.ts → ClientFacingSleepCycle.d.ts} +5 -3
  21. package/{dist/api/types/SleepCycleSourceProvider.d.ts → api/types/ClientFacingSleepCycleSourceProvider.d.ts} +1 -1
  22. package/{dist/api/types/SleepCycleSourceType.d.ts → api/types/ClientFacingSleepCycleSourceType.d.ts} +2 -2
  23. package/{dist/api/types/SleepCycleSourceType.js → api/types/ClientFacingSleepCycleSourceType.js} +2 -2
  24. package/api/types/ClientSleepCycleResponse.d.ts +1 -1
  25. package/api/types/HttpValidationError.d.ts +1 -2
  26. package/api/types/Providers.d.ts +2 -1
  27. package/api/types/Providers.js +1 -0
  28. package/api/types/index.d.ts +3 -3
  29. package/api/types/index.js +3 -3
  30. package/dist/api/resources/activity/client/Client.js +2 -2
  31. package/dist/api/resources/aggregate/client/Client.js +1 -1
  32. package/dist/api/resources/body/client/Client.js +2 -2
  33. package/dist/api/resources/devices/client/Client.js +1 -1
  34. package/dist/api/resources/insurance/client/Client.js +2 -2
  35. package/dist/api/resources/introspect/client/Client.js +2 -2
  36. package/dist/api/resources/labTests/client/Client.js +34 -34
  37. package/dist/api/resources/link/client/Client.js +14 -14
  38. package/dist/api/resources/meal/client/Client.js +1 -1
  39. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  40. package/dist/api/resources/profile/client/Client.js +2 -2
  41. package/dist/api/resources/providers/client/Client.js +1 -1
  42. package/dist/api/resources/sleep/client/Client.js +4 -4
  43. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  44. package/dist/api/resources/team/client/Client.js +7 -7
  45. package/dist/api/resources/testkit/client/Client.js +2 -2
  46. package/dist/api/resources/user/client/Client.js +16 -16
  47. package/dist/api/resources/vitals/client/Client.js +56 -56
  48. package/dist/api/resources/workouts/client/Client.js +3 -3
  49. package/dist/api/types/{SleepCycle.d.ts → ClientFacingSleepCycle.d.ts} +5 -3
  50. package/{api/types/SleepCycleSourceProvider.d.ts → dist/api/types/ClientFacingSleepCycleSourceProvider.d.ts} +1 -1
  51. package/{api/types/SleepCycleSourceType.d.ts → dist/api/types/ClientFacingSleepCycleSourceType.d.ts} +2 -2
  52. package/{api/types/SleepCycleSourceType.js → dist/api/types/ClientFacingSleepCycleSourceType.js} +2 -2
  53. package/dist/api/types/ClientSleepCycleResponse.d.ts +1 -1
  54. package/dist/api/types/HttpValidationError.d.ts +1 -2
  55. package/dist/api/types/Providers.d.ts +2 -1
  56. package/dist/api/types/Providers.js +1 -0
  57. package/dist/api/types/index.d.ts +3 -3
  58. package/dist/api/types/index.js +3 -3
  59. package/dist/serialization/types/ClientFacingSleepCycle.d.ts +28 -0
  60. package/dist/serialization/types/{SleepCycle.js → ClientFacingSleepCycle.js} +9 -6
  61. package/{serialization/types/SleepCycleSourceProvider.d.ts → dist/serialization/types/ClientFacingSleepCycleSourceProvider.d.ts} +2 -2
  62. package/dist/serialization/types/{SleepCycleSourceProvider.js → ClientFacingSleepCycleSourceProvider.js} +2 -2
  63. package/dist/serialization/types/{SleepCycleSourceType.d.ts → ClientFacingSleepCycleSourceType.d.ts} +2 -2
  64. package/{serialization/types/SleepCycleSourceType.js → dist/serialization/types/ClientFacingSleepCycleSourceType.js} +2 -2
  65. package/dist/serialization/types/ClientSleepCycleResponse.d.ts +2 -2
  66. package/dist/serialization/types/ClientSleepCycleResponse.js +2 -2
  67. package/dist/serialization/types/HttpValidationError.d.ts +1 -2
  68. package/dist/serialization/types/HttpValidationError.js +1 -2
  69. package/dist/serialization/types/Providers.d.ts +1 -1
  70. package/dist/serialization/types/Providers.js +1 -0
  71. package/dist/serialization/types/index.d.ts +3 -3
  72. package/dist/serialization/types/index.js +3 -3
  73. package/dist/version.d.ts +1 -1
  74. package/dist/version.js +1 -1
  75. package/package.json +1 -1
  76. package/serialization/types/ClientFacingSleepCycle.d.ts +28 -0
  77. package/serialization/types/{SleepCycle.js → ClientFacingSleepCycle.js} +9 -6
  78. package/{dist/serialization/types/SleepCycleSourceProvider.d.ts → serialization/types/ClientFacingSleepCycleSourceProvider.d.ts} +2 -2
  79. package/serialization/types/{SleepCycleSourceProvider.js → ClientFacingSleepCycleSourceProvider.js} +2 -2
  80. package/serialization/types/{SleepCycleSourceType.d.ts → ClientFacingSleepCycleSourceType.d.ts} +2 -2
  81. package/{dist/serialization/types/SleepCycleSourceType.js → serialization/types/ClientFacingSleepCycleSourceType.js} +2 -2
  82. package/serialization/types/ClientSleepCycleResponse.d.ts +2 -2
  83. package/serialization/types/ClientSleepCycleResponse.js +2 -2
  84. package/serialization/types/HttpValidationError.d.ts +1 -2
  85. package/serialization/types/HttpValidationError.js +1 -2
  86. package/serialization/types/Providers.d.ts +1 -1
  87. package/serialization/types/Providers.js +1 -0
  88. package/serialization/types/index.d.ts +3 -3
  89. package/serialization/types/index.js +3 -3
  90. package/version.d.ts +1 -1
  91. package/version.js +1 -1
  92. package/dist/serialization/types/SleepCycle.d.ts +0 -25
  93. package/serialization/types/SleepCycle.d.ts +0 -25
  94. /package/api/types/{SleepCycle.js → ClientFacingSleepCycle.js} +0 -0
  95. /package/api/types/{SleepCycleSourceProvider.js → ClientFacingSleepCycleSourceProvider.js} +0 -0
  96. /package/dist/api/types/{SleepCycle.js → ClientFacingSleepCycle.js} +0 -0
  97. /package/dist/api/types/{SleepCycleSourceProvider.js → ClientFacingSleepCycleSourceProvider.js} +0 -0
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vital from "../index";
5
- export interface SleepCycle {
5
+ export interface ClientFacingSleepCycle {
6
6
  id: string;
7
7
  sleepId: string;
8
8
  sessionStart: Date;
@@ -11,7 +11,9 @@ export interface SleepCycle {
11
11
  stageEndOffsetSecond: number[];
12
12
  stageType: Vital.VitalSleepStage[];
13
13
  timeZone?: string;
14
- sourceProvider: Vital.SleepCycleSourceProvider;
15
- sourceType: Vital.SleepCycleSourceType;
14
+ sourceProvider: Vital.ClientFacingSleepCycleSourceProvider;
15
+ sourceType: Vital.ClientFacingSleepCycleSourceType;
16
16
  sourceAppId?: string;
17
+ userId: string;
18
+ source: Vital.ClientFacingSource;
17
19
  }
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vital from "../index";
5
- export declare type SleepCycleSourceProvider = Vital.Providers | Vital.Labs;
5
+ export declare type ClientFacingSleepCycleSourceProvider = Vital.Providers | Vital.Labs;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type SleepCycleSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
5
- export declare const SleepCycleSourceType: {
4
+ export declare type ClientFacingSleepCycleSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
5
+ export declare const ClientFacingSleepCycleSourceType: {
6
6
  readonly Unknown: "unknown";
7
7
  readonly Phone: "phone";
8
8
  readonly Watch: "watch";
@@ -3,8 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SleepCycleSourceType = void 0;
7
- exports.SleepCycleSourceType = {
6
+ exports.ClientFacingSleepCycleSourceType = void 0;
7
+ exports.ClientFacingSleepCycleSourceType = {
8
8
  Unknown: "unknown",
9
9
  Phone: "phone",
10
10
  Watch: "watch",
@@ -3,5 +3,5 @@
3
3
  */
4
4
  import * as Vital from "../index";
5
5
  export interface ClientSleepCycleResponse {
6
- sleepCycle: Vital.SleepCycle[];
6
+ sleepCycle: Vital.ClientFacingSleepCycle[];
7
7
  }
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Vital from "../index";
5
4
  export interface HttpValidationError {
6
- detail?: Vital.ValidationError[];
5
+ detail?: unknown;
7
6
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type Providers = "oura" | "fitbit" | "garmin" | "whoop" | "strava" | "renpho" | "peloton" | "wahoo" | "zwift" | "freestyle_libre" | "abbott_libreview" | "freestyle_libre_ble" | "eight_sleep" | "withings" | "apple_health_kit" | "manual" | "ihealth" | "google_fit" | "beurer_api" | "beurer_ble" | "omron" | "omron_ble" | "onetouch_ble" | "accuchek_ble" | "contour_ble" | "dexcom" | "dexcom_v3" | "hammerhead" | "my_fitness_pal" | "health_connect" | "polar" | "cronometer" | "kardia" | "whoop_v2" | "ultrahuman" | "my_fitness_pal_v2";
4
+ export declare type Providers = "oura" | "fitbit" | "garmin" | "whoop" | "strava" | "renpho" | "peloton" | "wahoo" | "zwift" | "freestyle_libre" | "abbott_libreview" | "freestyle_libre_ble" | "eight_sleep" | "withings" | "apple_health_kit" | "manual" | "ihealth" | "google_fit" | "beurer_api" | "beurer_ble" | "omron" | "omron_ble" | "onetouch_ble" | "accuchek_ble" | "contour_ble" | "dexcom" | "dexcom_v3" | "hammerhead" | "my_fitness_pal" | "health_connect" | "polar" | "cronometer" | "kardia" | "whoop_v2" | "ultrahuman" | "my_fitness_pal_v2" | "map_my_fitness";
5
5
  export declare const Providers: {
6
6
  readonly Oura: "oura";
7
7
  readonly Fitbit: "fitbit";
@@ -39,4 +39,5 @@ export declare const Providers: {
39
39
  readonly WhoopV2: "whoop_v2";
40
40
  readonly Ultrahuman: "ultrahuman";
41
41
  readonly MyFitnessPalV2: "my_fitness_pal_v2";
42
+ readonly MapMyFitness: "map_my_fitness";
42
43
  };
@@ -41,4 +41,5 @@ exports.Providers = {
41
41
  WhoopV2: "whoop_v2",
42
42
  Ultrahuman: "ultrahuman",
43
43
  MyFitnessPalV2: "my_fitness_pal_v2",
44
+ MapMyFitness: "map_my_fitness",
44
45
  };
@@ -102,6 +102,9 @@ export * from "./ClientFacingRespiratoryRateTimeseries";
102
102
  export * from "./ClientFacingResult";
103
103
  export * from "./ClientFacingShipment";
104
104
  export * from "./ClientFacingSleep";
105
+ export * from "./ClientFacingSleepCycleSourceProvider";
106
+ export * from "./ClientFacingSleepCycleSourceType";
107
+ export * from "./ClientFacingSleepCycle";
105
108
  export * from "./ClientFacingSleepStream";
106
109
  export * from "./ClientFacingSource";
107
110
  export * from "./ClientFacingSport";
@@ -275,9 +278,6 @@ export * from "./SingleUserHistoricalPullResponse";
275
278
  export * from "./SingleUserResourceResponse";
276
279
  export * from "./SleepColumnExprSleep";
277
280
  export * from "./SleepColumnExpr";
278
- export * from "./SleepCycleSourceProvider";
279
- export * from "./SleepCycleSourceType";
280
- export * from "./SleepCycle";
281
281
  export * from "./SleepScoreValueMacroExpr";
282
282
  export * from "./SleepSummaryState";
283
283
  export * from "./SleepType";
@@ -118,6 +118,9 @@ __exportStar(require("./ClientFacingRespiratoryRateTimeseries"), exports);
118
118
  __exportStar(require("./ClientFacingResult"), exports);
119
119
  __exportStar(require("./ClientFacingShipment"), exports);
120
120
  __exportStar(require("./ClientFacingSleep"), exports);
121
+ __exportStar(require("./ClientFacingSleepCycleSourceProvider"), exports);
122
+ __exportStar(require("./ClientFacingSleepCycleSourceType"), exports);
123
+ __exportStar(require("./ClientFacingSleepCycle"), exports);
121
124
  __exportStar(require("./ClientFacingSleepStream"), exports);
122
125
  __exportStar(require("./ClientFacingSource"), exports);
123
126
  __exportStar(require("./ClientFacingSport"), exports);
@@ -291,9 +294,6 @@ __exportStar(require("./SingleUserHistoricalPullResponse"), exports);
291
294
  __exportStar(require("./SingleUserResourceResponse"), exports);
292
295
  __exportStar(require("./SleepColumnExprSleep"), exports);
293
296
  __exportStar(require("./SleepColumnExpr"), exports);
294
- __exportStar(require("./SleepCycleSourceProvider"), exports);
295
- __exportStar(require("./SleepCycleSourceType"), exports);
296
- __exportStar(require("./SleepCycle"), exports);
297
297
  __exportStar(require("./SleepScoreValueMacroExpr"), exports);
298
298
  __exportStar(require("./SleepSummaryState"), exports);
299
299
  __exportStar(require("./SleepType"), exports);
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { VitalSleepStage } from "./VitalSleepStage";
8
+ import { ClientFacingSleepCycleSourceProvider } from "./ClientFacingSleepCycleSourceProvider";
9
+ import { ClientFacingSleepCycleSourceType } from "./ClientFacingSleepCycleSourceType";
10
+ import { ClientFacingSource } from "./ClientFacingSource";
11
+ export declare const ClientFacingSleepCycle: core.serialization.ObjectSchema<serializers.ClientFacingSleepCycle.Raw, Vital.ClientFacingSleepCycle>;
12
+ export declare namespace ClientFacingSleepCycle {
13
+ interface Raw {
14
+ id: string;
15
+ sleep_id: string;
16
+ session_start: string;
17
+ session_end: string;
18
+ stage_start_offset_second: number[];
19
+ stage_end_offset_second: number[];
20
+ stage_type: VitalSleepStage.Raw[];
21
+ time_zone?: string | null;
22
+ source_provider: ClientFacingSleepCycleSourceProvider.Raw;
23
+ source_type: ClientFacingSleepCycleSourceType.Raw;
24
+ source_app_id?: string | null;
25
+ user_id: string;
26
+ source: ClientFacingSource.Raw;
27
+ }
28
+ }
@@ -26,12 +26,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.SleepCycle = void 0;
29
+ exports.ClientFacingSleepCycle = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const VitalSleepStage_1 = require("./VitalSleepStage");
32
- const SleepCycleSourceProvider_1 = require("./SleepCycleSourceProvider");
33
- const SleepCycleSourceType_1 = require("./SleepCycleSourceType");
34
- exports.SleepCycle = core.serialization.object({
32
+ const ClientFacingSleepCycleSourceProvider_1 = require("./ClientFacingSleepCycleSourceProvider");
33
+ const ClientFacingSleepCycleSourceType_1 = require("./ClientFacingSleepCycleSourceType");
34
+ const ClientFacingSource_1 = require("./ClientFacingSource");
35
+ exports.ClientFacingSleepCycle = core.serialization.object({
35
36
  id: core.serialization.string(),
36
37
  sleepId: core.serialization.property("sleep_id", core.serialization.string()),
37
38
  sessionStart: core.serialization.property("session_start", core.serialization.date()),
@@ -40,7 +41,9 @@ exports.SleepCycle = core.serialization.object({
40
41
  stageEndOffsetSecond: core.serialization.property("stage_end_offset_second", core.serialization.list(core.serialization.number())),
41
42
  stageType: core.serialization.property("stage_type", core.serialization.list(VitalSleepStage_1.VitalSleepStage)),
42
43
  timeZone: core.serialization.property("time_zone", core.serialization.string().optional()),
43
- sourceProvider: core.serialization.property("source_provider", SleepCycleSourceProvider_1.SleepCycleSourceProvider),
44
- sourceType: core.serialization.property("source_type", SleepCycleSourceType_1.SleepCycleSourceType),
44
+ sourceProvider: core.serialization.property("source_provider", ClientFacingSleepCycleSourceProvider_1.ClientFacingSleepCycleSourceProvider),
45
+ sourceType: core.serialization.property("source_type", ClientFacingSleepCycleSourceType_1.ClientFacingSleepCycleSourceType),
45
46
  sourceAppId: core.serialization.property("source_app_id", core.serialization.string().optional()),
47
+ userId: core.serialization.property("user_id", core.serialization.string()),
48
+ source: ClientFacingSource_1.ClientFacingSource,
46
49
  });
@@ -6,7 +6,7 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { Providers } from "./Providers";
8
8
  import { Labs } from "./Labs";
9
- export declare const SleepCycleSourceProvider: core.serialization.Schema<serializers.SleepCycleSourceProvider.Raw, Vital.SleepCycleSourceProvider>;
10
- export declare namespace SleepCycleSourceProvider {
9
+ export declare const ClientFacingSleepCycleSourceProvider: core.serialization.Schema<serializers.ClientFacingSleepCycleSourceProvider.Raw, Vital.ClientFacingSleepCycleSourceProvider>;
10
+ export declare namespace ClientFacingSleepCycleSourceProvider {
11
11
  type Raw = Providers.Raw | Labs.Raw;
12
12
  }
@@ -26,8 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.SleepCycleSourceProvider = void 0;
29
+ exports.ClientFacingSleepCycleSourceProvider = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const Providers_1 = require("./Providers");
32
32
  const Labs_1 = require("./Labs");
33
- exports.SleepCycleSourceProvider = core.serialization.undiscriminatedUnion([Providers_1.Providers, Labs_1.Labs]);
33
+ exports.ClientFacingSleepCycleSourceProvider = core.serialization.undiscriminatedUnion([Providers_1.Providers, Labs_1.Labs]);
@@ -4,7 +4,7 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
- export declare const SleepCycleSourceType: core.serialization.Schema<serializers.SleepCycleSourceType.Raw, Vital.SleepCycleSourceType>;
8
- export declare namespace SleepCycleSourceType {
7
+ export declare const ClientFacingSleepCycleSourceType: core.serialization.Schema<serializers.ClientFacingSleepCycleSourceType.Raw, Vital.ClientFacingSleepCycleSourceType>;
8
+ export declare namespace ClientFacingSleepCycleSourceType {
9
9
  type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
10
10
  }
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.SleepCycleSourceType = void 0;
29
+ exports.ClientFacingSleepCycleSourceType = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.SleepCycleSourceType = core.serialization.enum_([
31
+ exports.ClientFacingSleepCycleSourceType = core.serialization.enum_([
32
32
  "unknown",
33
33
  "phone",
34
34
  "watch",
@@ -4,10 +4,10 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { SleepCycle } from "./SleepCycle";
7
+ import { ClientFacingSleepCycle } from "./ClientFacingSleepCycle";
8
8
  export declare const ClientSleepCycleResponse: core.serialization.ObjectSchema<serializers.ClientSleepCycleResponse.Raw, Vital.ClientSleepCycleResponse>;
9
9
  export declare namespace ClientSleepCycleResponse {
10
10
  interface Raw {
11
- sleep_cycle: SleepCycle.Raw[];
11
+ sleep_cycle: ClientFacingSleepCycle.Raw[];
12
12
  }
13
13
  }
@@ -28,7 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ClientSleepCycleResponse = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const SleepCycle_1 = require("./SleepCycle");
31
+ const ClientFacingSleepCycle_1 = require("./ClientFacingSleepCycle");
32
32
  exports.ClientSleepCycleResponse = core.serialization.object({
33
- sleepCycle: core.serialization.property("sleep_cycle", core.serialization.list(SleepCycle_1.SleepCycle)),
33
+ sleepCycle: core.serialization.property("sleep_cycle", core.serialization.list(ClientFacingSleepCycle_1.ClientFacingSleepCycle)),
34
34
  });
@@ -4,10 +4,9 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { ValidationError } from "./ValidationError";
8
7
  export declare const HttpValidationError: core.serialization.ObjectSchema<serializers.HttpValidationError.Raw, Vital.HttpValidationError>;
9
8
  export declare namespace HttpValidationError {
10
9
  interface Raw {
11
- detail?: ValidationError.Raw[] | null;
10
+ detail?: unknown | null;
12
11
  }
13
12
  }
@@ -28,7 +28,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.HttpValidationError = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const ValidationError_1 = require("./ValidationError");
32
31
  exports.HttpValidationError = core.serialization.object({
33
- detail: core.serialization.list(ValidationError_1.ValidationError).optional(),
32
+ detail: core.serialization.unknown().optional(),
34
33
  });
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const Providers: core.serialization.Schema<serializers.Providers.Raw, Vital.Providers>;
8
8
  export declare namespace Providers {
9
- type Raw = "oura" | "fitbit" | "garmin" | "whoop" | "strava" | "renpho" | "peloton" | "wahoo" | "zwift" | "freestyle_libre" | "abbott_libreview" | "freestyle_libre_ble" | "eight_sleep" | "withings" | "apple_health_kit" | "manual" | "ihealth" | "google_fit" | "beurer_api" | "beurer_ble" | "omron" | "omron_ble" | "onetouch_ble" | "accuchek_ble" | "contour_ble" | "dexcom" | "dexcom_v3" | "hammerhead" | "my_fitness_pal" | "health_connect" | "polar" | "cronometer" | "kardia" | "whoop_v2" | "ultrahuman" | "my_fitness_pal_v2";
9
+ type Raw = "oura" | "fitbit" | "garmin" | "whoop" | "strava" | "renpho" | "peloton" | "wahoo" | "zwift" | "freestyle_libre" | "abbott_libreview" | "freestyle_libre_ble" | "eight_sleep" | "withings" | "apple_health_kit" | "manual" | "ihealth" | "google_fit" | "beurer_api" | "beurer_ble" | "omron" | "omron_ble" | "onetouch_ble" | "accuchek_ble" | "contour_ble" | "dexcom" | "dexcom_v3" | "hammerhead" | "my_fitness_pal" | "health_connect" | "polar" | "cronometer" | "kardia" | "whoop_v2" | "ultrahuman" | "my_fitness_pal_v2" | "map_my_fitness";
10
10
  }
@@ -65,4 +65,5 @@ exports.Providers = core.serialization.enum_([
65
65
  "whoop_v2",
66
66
  "ultrahuman",
67
67
  "my_fitness_pal_v2",
68
+ "map_my_fitness",
68
69
  ]);
@@ -102,6 +102,9 @@ export * from "./ClientFacingRespiratoryRateTimeseries";
102
102
  export * from "./ClientFacingResult";
103
103
  export * from "./ClientFacingShipment";
104
104
  export * from "./ClientFacingSleep";
105
+ export * from "./ClientFacingSleepCycleSourceProvider";
106
+ export * from "./ClientFacingSleepCycleSourceType";
107
+ export * from "./ClientFacingSleepCycle";
105
108
  export * from "./ClientFacingSleepStream";
106
109
  export * from "./ClientFacingSource";
107
110
  export * from "./ClientFacingSport";
@@ -275,9 +278,6 @@ export * from "./SingleUserHistoricalPullResponse";
275
278
  export * from "./SingleUserResourceResponse";
276
279
  export * from "./SleepColumnExprSleep";
277
280
  export * from "./SleepColumnExpr";
278
- export * from "./SleepCycleSourceProvider";
279
- export * from "./SleepCycleSourceType";
280
- export * from "./SleepCycle";
281
281
  export * from "./SleepScoreValueMacroExpr";
282
282
  export * from "./SleepSummaryState";
283
283
  export * from "./SleepType";
@@ -118,6 +118,9 @@ __exportStar(require("./ClientFacingRespiratoryRateTimeseries"), exports);
118
118
  __exportStar(require("./ClientFacingResult"), exports);
119
119
  __exportStar(require("./ClientFacingShipment"), exports);
120
120
  __exportStar(require("./ClientFacingSleep"), exports);
121
+ __exportStar(require("./ClientFacingSleepCycleSourceProvider"), exports);
122
+ __exportStar(require("./ClientFacingSleepCycleSourceType"), exports);
123
+ __exportStar(require("./ClientFacingSleepCycle"), exports);
121
124
  __exportStar(require("./ClientFacingSleepStream"), exports);
122
125
  __exportStar(require("./ClientFacingSource"), exports);
123
126
  __exportStar(require("./ClientFacingSport"), exports);
@@ -291,9 +294,6 @@ __exportStar(require("./SingleUserHistoricalPullResponse"), exports);
291
294
  __exportStar(require("./SingleUserResourceResponse"), exports);
292
295
  __exportStar(require("./SleepColumnExprSleep"), exports);
293
296
  __exportStar(require("./SleepColumnExpr"), exports);
294
- __exportStar(require("./SleepCycleSourceProvider"), exports);
295
- __exportStar(require("./SleepCycleSourceType"), exports);
296
- __exportStar(require("./SleepCycle"), exports);
297
297
  __exportStar(require("./SleepScoreValueMacroExpr"), exports);
298
298
  __exportStar(require("./SleepSummaryState"), exports);
299
299
  __exportStar(require("./SleepType"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.120";
1
+ export declare const SDK_VERSION = "3.1.122";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "3.1.120";
4
+ exports.SDK_VERSION = "3.1.122";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.120",
3
+ "version": "3.1.122",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { VitalSleepStage } from "./VitalSleepStage";
8
+ import { ClientFacingSleepCycleSourceProvider } from "./ClientFacingSleepCycleSourceProvider";
9
+ import { ClientFacingSleepCycleSourceType } from "./ClientFacingSleepCycleSourceType";
10
+ import { ClientFacingSource } from "./ClientFacingSource";
11
+ export declare const ClientFacingSleepCycle: core.serialization.ObjectSchema<serializers.ClientFacingSleepCycle.Raw, Vital.ClientFacingSleepCycle>;
12
+ export declare namespace ClientFacingSleepCycle {
13
+ interface Raw {
14
+ id: string;
15
+ sleep_id: string;
16
+ session_start: string;
17
+ session_end: string;
18
+ stage_start_offset_second: number[];
19
+ stage_end_offset_second: number[];
20
+ stage_type: VitalSleepStage.Raw[];
21
+ time_zone?: string | null;
22
+ source_provider: ClientFacingSleepCycleSourceProvider.Raw;
23
+ source_type: ClientFacingSleepCycleSourceType.Raw;
24
+ source_app_id?: string | null;
25
+ user_id: string;
26
+ source: ClientFacingSource.Raw;
27
+ }
28
+ }
@@ -26,12 +26,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.SleepCycle = void 0;
29
+ exports.ClientFacingSleepCycle = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const VitalSleepStage_1 = require("./VitalSleepStage");
32
- const SleepCycleSourceProvider_1 = require("./SleepCycleSourceProvider");
33
- const SleepCycleSourceType_1 = require("./SleepCycleSourceType");
34
- exports.SleepCycle = core.serialization.object({
32
+ const ClientFacingSleepCycleSourceProvider_1 = require("./ClientFacingSleepCycleSourceProvider");
33
+ const ClientFacingSleepCycleSourceType_1 = require("./ClientFacingSleepCycleSourceType");
34
+ const ClientFacingSource_1 = require("./ClientFacingSource");
35
+ exports.ClientFacingSleepCycle = core.serialization.object({
35
36
  id: core.serialization.string(),
36
37
  sleepId: core.serialization.property("sleep_id", core.serialization.string()),
37
38
  sessionStart: core.serialization.property("session_start", core.serialization.date()),
@@ -40,7 +41,9 @@ exports.SleepCycle = core.serialization.object({
40
41
  stageEndOffsetSecond: core.serialization.property("stage_end_offset_second", core.serialization.list(core.serialization.number())),
41
42
  stageType: core.serialization.property("stage_type", core.serialization.list(VitalSleepStage_1.VitalSleepStage)),
42
43
  timeZone: core.serialization.property("time_zone", core.serialization.string().optional()),
43
- sourceProvider: core.serialization.property("source_provider", SleepCycleSourceProvider_1.SleepCycleSourceProvider),
44
- sourceType: core.serialization.property("source_type", SleepCycleSourceType_1.SleepCycleSourceType),
44
+ sourceProvider: core.serialization.property("source_provider", ClientFacingSleepCycleSourceProvider_1.ClientFacingSleepCycleSourceProvider),
45
+ sourceType: core.serialization.property("source_type", ClientFacingSleepCycleSourceType_1.ClientFacingSleepCycleSourceType),
45
46
  sourceAppId: core.serialization.property("source_app_id", core.serialization.string().optional()),
47
+ userId: core.serialization.property("user_id", core.serialization.string()),
48
+ source: ClientFacingSource_1.ClientFacingSource,
46
49
  });
@@ -6,7 +6,7 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { Providers } from "./Providers";
8
8
  import { Labs } from "./Labs";
9
- export declare const SleepCycleSourceProvider: core.serialization.Schema<serializers.SleepCycleSourceProvider.Raw, Vital.SleepCycleSourceProvider>;
10
- export declare namespace SleepCycleSourceProvider {
9
+ export declare const ClientFacingSleepCycleSourceProvider: core.serialization.Schema<serializers.ClientFacingSleepCycleSourceProvider.Raw, Vital.ClientFacingSleepCycleSourceProvider>;
10
+ export declare namespace ClientFacingSleepCycleSourceProvider {
11
11
  type Raw = Providers.Raw | Labs.Raw;
12
12
  }
@@ -26,8 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.SleepCycleSourceProvider = void 0;
29
+ exports.ClientFacingSleepCycleSourceProvider = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const Providers_1 = require("./Providers");
32
32
  const Labs_1 = require("./Labs");
33
- exports.SleepCycleSourceProvider = core.serialization.undiscriminatedUnion([Providers_1.Providers, Labs_1.Labs]);
33
+ exports.ClientFacingSleepCycleSourceProvider = core.serialization.undiscriminatedUnion([Providers_1.Providers, Labs_1.Labs]);
@@ -4,7 +4,7 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
- export declare const SleepCycleSourceType: core.serialization.Schema<serializers.SleepCycleSourceType.Raw, Vital.SleepCycleSourceType>;
8
- export declare namespace SleepCycleSourceType {
7
+ export declare const ClientFacingSleepCycleSourceType: core.serialization.Schema<serializers.ClientFacingSleepCycleSourceType.Raw, Vital.ClientFacingSleepCycleSourceType>;
8
+ export declare namespace ClientFacingSleepCycleSourceType {
9
9
  type Raw = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
10
10
  }
@@ -26,9 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.SleepCycleSourceType = void 0;
29
+ exports.ClientFacingSleepCycleSourceType = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.SleepCycleSourceType = core.serialization.enum_([
31
+ exports.ClientFacingSleepCycleSourceType = core.serialization.enum_([
32
32
  "unknown",
33
33
  "phone",
34
34
  "watch",
@@ -4,10 +4,10 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { SleepCycle } from "./SleepCycle";
7
+ import { ClientFacingSleepCycle } from "./ClientFacingSleepCycle";
8
8
  export declare const ClientSleepCycleResponse: core.serialization.ObjectSchema<serializers.ClientSleepCycleResponse.Raw, Vital.ClientSleepCycleResponse>;
9
9
  export declare namespace ClientSleepCycleResponse {
10
10
  interface Raw {
11
- sleep_cycle: SleepCycle.Raw[];
11
+ sleep_cycle: ClientFacingSleepCycle.Raw[];
12
12
  }
13
13
  }
@@ -28,7 +28,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ClientSleepCycleResponse = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const SleepCycle_1 = require("./SleepCycle");
31
+ const ClientFacingSleepCycle_1 = require("./ClientFacingSleepCycle");
32
32
  exports.ClientSleepCycleResponse = core.serialization.object({
33
- sleepCycle: core.serialization.property("sleep_cycle", core.serialization.list(SleepCycle_1.SleepCycle)),
33
+ sleepCycle: core.serialization.property("sleep_cycle", core.serialization.list(ClientFacingSleepCycle_1.ClientFacingSleepCycle)),
34
34
  });
@@ -4,10 +4,9 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { ValidationError } from "./ValidationError";
8
7
  export declare const HttpValidationError: core.serialization.ObjectSchema<serializers.HttpValidationError.Raw, Vital.HttpValidationError>;
9
8
  export declare namespace HttpValidationError {
10
9
  interface Raw {
11
- detail?: ValidationError.Raw[] | null;
10
+ detail?: unknown | null;
12
11
  }
13
12
  }
@@ -28,7 +28,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.HttpValidationError = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- const ValidationError_1 = require("./ValidationError");
32
31
  exports.HttpValidationError = core.serialization.object({
33
- detail: core.serialization.list(ValidationError_1.ValidationError).optional(),
32
+ detail: core.serialization.unknown().optional(),
34
33
  });
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const Providers: core.serialization.Schema<serializers.Providers.Raw, Vital.Providers>;
8
8
  export declare namespace Providers {
9
- type Raw = "oura" | "fitbit" | "garmin" | "whoop" | "strava" | "renpho" | "peloton" | "wahoo" | "zwift" | "freestyle_libre" | "abbott_libreview" | "freestyle_libre_ble" | "eight_sleep" | "withings" | "apple_health_kit" | "manual" | "ihealth" | "google_fit" | "beurer_api" | "beurer_ble" | "omron" | "omron_ble" | "onetouch_ble" | "accuchek_ble" | "contour_ble" | "dexcom" | "dexcom_v3" | "hammerhead" | "my_fitness_pal" | "health_connect" | "polar" | "cronometer" | "kardia" | "whoop_v2" | "ultrahuman" | "my_fitness_pal_v2";
9
+ type Raw = "oura" | "fitbit" | "garmin" | "whoop" | "strava" | "renpho" | "peloton" | "wahoo" | "zwift" | "freestyle_libre" | "abbott_libreview" | "freestyle_libre_ble" | "eight_sleep" | "withings" | "apple_health_kit" | "manual" | "ihealth" | "google_fit" | "beurer_api" | "beurer_ble" | "omron" | "omron_ble" | "onetouch_ble" | "accuchek_ble" | "contour_ble" | "dexcom" | "dexcom_v3" | "hammerhead" | "my_fitness_pal" | "health_connect" | "polar" | "cronometer" | "kardia" | "whoop_v2" | "ultrahuman" | "my_fitness_pal_v2" | "map_my_fitness";
10
10
  }
@@ -65,4 +65,5 @@ exports.Providers = core.serialization.enum_([
65
65
  "whoop_v2",
66
66
  "ultrahuman",
67
67
  "my_fitness_pal_v2",
68
+ "map_my_fitness",
68
69
  ]);
@@ -102,6 +102,9 @@ export * from "./ClientFacingRespiratoryRateTimeseries";
102
102
  export * from "./ClientFacingResult";
103
103
  export * from "./ClientFacingShipment";
104
104
  export * from "./ClientFacingSleep";
105
+ export * from "./ClientFacingSleepCycleSourceProvider";
106
+ export * from "./ClientFacingSleepCycleSourceType";
107
+ export * from "./ClientFacingSleepCycle";
105
108
  export * from "./ClientFacingSleepStream";
106
109
  export * from "./ClientFacingSource";
107
110
  export * from "./ClientFacingSport";
@@ -275,9 +278,6 @@ export * from "./SingleUserHistoricalPullResponse";
275
278
  export * from "./SingleUserResourceResponse";
276
279
  export * from "./SleepColumnExprSleep";
277
280
  export * from "./SleepColumnExpr";
278
- export * from "./SleepCycleSourceProvider";
279
- export * from "./SleepCycleSourceType";
280
- export * from "./SleepCycle";
281
281
  export * from "./SleepScoreValueMacroExpr";
282
282
  export * from "./SleepSummaryState";
283
283
  export * from "./SleepType";
@@ -118,6 +118,9 @@ __exportStar(require("./ClientFacingRespiratoryRateTimeseries"), exports);
118
118
  __exportStar(require("./ClientFacingResult"), exports);
119
119
  __exportStar(require("./ClientFacingShipment"), exports);
120
120
  __exportStar(require("./ClientFacingSleep"), exports);
121
+ __exportStar(require("./ClientFacingSleepCycleSourceProvider"), exports);
122
+ __exportStar(require("./ClientFacingSleepCycleSourceType"), exports);
123
+ __exportStar(require("./ClientFacingSleepCycle"), exports);
121
124
  __exportStar(require("./ClientFacingSleepStream"), exports);
122
125
  __exportStar(require("./ClientFacingSource"), exports);
123
126
  __exportStar(require("./ClientFacingSport"), exports);
@@ -291,9 +294,6 @@ __exportStar(require("./SingleUserHistoricalPullResponse"), exports);
291
294
  __exportStar(require("./SingleUserResourceResponse"), exports);
292
295
  __exportStar(require("./SleepColumnExprSleep"), exports);
293
296
  __exportStar(require("./SleepColumnExpr"), exports);
294
- __exportStar(require("./SleepCycleSourceProvider"), exports);
295
- __exportStar(require("./SleepCycleSourceType"), exports);
296
- __exportStar(require("./SleepCycle"), exports);
297
297
  __exportStar(require("./SleepScoreValueMacroExpr"), exports);
298
298
  __exportStar(require("./SleepSummaryState"), exports);
299
299
  __exportStar(require("./SleepType"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.120";
1
+ export declare const SDK_VERSION = "3.1.122";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "3.1.120";
4
+ exports.SDK_VERSION = "3.1.122";