@tryvital/vital-node 3.1.104 → 3.1.106

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 (126) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +39 -34
  3. package/api/resources/activity/client/Client.js +2 -2
  4. package/api/resources/aggregate/client/Client.js +1 -1
  5. package/api/resources/body/client/Client.js +2 -2
  6. package/api/resources/devices/client/Client.js +1 -1
  7. package/api/resources/index.d.ts +2 -0
  8. package/api/resources/index.js +3 -1
  9. package/api/resources/insurance/client/Client.js +2 -2
  10. package/api/resources/introspect/client/Client.js +2 -2
  11. package/api/resources/labTests/client/Client.js +34 -34
  12. package/api/resources/link/client/Client.js +14 -14
  13. package/api/resources/meal/client/Client.js +1 -1
  14. package/api/resources/menstrualCycle/client/Client.js +1 -1
  15. package/api/resources/profile/client/Client.js +2 -2
  16. package/api/resources/providers/client/Client.js +1 -1
  17. package/api/resources/sleep/client/Client.js +4 -4
  18. package/api/resources/sleepCycle/client/Client.d.ts +42 -0
  19. package/api/resources/sleepCycle/client/Client.js +135 -0
  20. package/api/resources/sleepCycle/client/index.d.ts +1 -0
  21. package/api/resources/sleepCycle/client/index.js +17 -0
  22. package/api/resources/sleepCycle/client/requests/SleepCycleGetRequest.d.ts +17 -0
  23. package/api/resources/sleepCycle/client/requests/SleepCycleGetRequest.js +5 -0
  24. package/api/resources/sleepCycle/client/requests/index.d.ts +1 -0
  25. package/api/resources/sleepCycle/client/requests/index.js +2 -0
  26. package/api/resources/sleepCycle/index.d.ts +1 -0
  27. package/api/resources/sleepCycle/index.js +17 -0
  28. package/api/resources/team/client/Client.js +7 -7
  29. package/api/resources/testkit/client/Client.js +2 -2
  30. package/api/resources/user/client/Client.js +16 -16
  31. package/api/resources/vitals/client/Client.js +56 -56
  32. package/api/resources/workouts/client/Client.js +3 -3
  33. package/api/types/ClientSleepCycleResponse.d.ts +7 -0
  34. package/api/types/ClientSleepCycleResponse.js +5 -0
  35. package/api/types/Labs.d.ts +2 -1
  36. package/api/types/Labs.js +1 -0
  37. package/api/types/SleepCycle.d.ts +17 -0
  38. package/api/types/SleepCycle.js +5 -0
  39. package/api/types/SleepCycleSourceProvider.d.ts +5 -0
  40. package/api/types/SleepCycleSourceProvider.js +5 -0
  41. package/api/types/SleepCycleSourceType.d.ts +19 -0
  42. package/api/types/SleepCycleSourceType.js +21 -0
  43. package/api/types/VitalSleepStage.d.ts +4 -0
  44. package/api/types/VitalSleepStage.js +5 -0
  45. package/api/types/index.d.ts +5 -0
  46. package/api/types/index.js +5 -0
  47. package/dist/Client.d.ts +3 -0
  48. package/dist/Client.js +39 -34
  49. package/dist/api/resources/activity/client/Client.js +2 -2
  50. package/dist/api/resources/aggregate/client/Client.js +1 -1
  51. package/dist/api/resources/body/client/Client.js +2 -2
  52. package/dist/api/resources/devices/client/Client.js +1 -1
  53. package/dist/api/resources/index.d.ts +2 -0
  54. package/dist/api/resources/index.js +3 -1
  55. package/dist/api/resources/insurance/client/Client.js +2 -2
  56. package/dist/api/resources/introspect/client/Client.js +2 -2
  57. package/dist/api/resources/labTests/client/Client.js +34 -34
  58. package/dist/api/resources/link/client/Client.js +14 -14
  59. package/dist/api/resources/meal/client/Client.js +1 -1
  60. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  61. package/dist/api/resources/profile/client/Client.js +2 -2
  62. package/dist/api/resources/providers/client/Client.js +1 -1
  63. package/dist/api/resources/sleep/client/Client.js +4 -4
  64. package/dist/api/resources/sleepCycle/client/Client.d.ts +42 -0
  65. package/dist/api/resources/sleepCycle/client/Client.js +135 -0
  66. package/dist/api/resources/sleepCycle/client/index.d.ts +1 -0
  67. package/dist/api/resources/sleepCycle/client/index.js +17 -0
  68. package/dist/api/resources/sleepCycle/client/requests/SleepCycleGetRequest.d.ts +17 -0
  69. package/dist/api/resources/sleepCycle/client/requests/SleepCycleGetRequest.js +5 -0
  70. package/dist/api/resources/sleepCycle/client/requests/index.d.ts +1 -0
  71. package/dist/api/resources/sleepCycle/client/requests/index.js +2 -0
  72. package/dist/api/resources/sleepCycle/index.d.ts +1 -0
  73. package/dist/api/resources/sleepCycle/index.js +17 -0
  74. package/dist/api/resources/team/client/Client.js +7 -7
  75. package/dist/api/resources/testkit/client/Client.js +2 -2
  76. package/dist/api/resources/user/client/Client.js +16 -16
  77. package/dist/api/resources/vitals/client/Client.js +56 -56
  78. package/dist/api/resources/workouts/client/Client.js +3 -3
  79. package/dist/api/types/ClientSleepCycleResponse.d.ts +7 -0
  80. package/dist/api/types/ClientSleepCycleResponse.js +5 -0
  81. package/dist/api/types/Labs.d.ts +2 -1
  82. package/dist/api/types/Labs.js +1 -0
  83. package/dist/api/types/SleepCycle.d.ts +17 -0
  84. package/dist/api/types/SleepCycle.js +5 -0
  85. package/dist/api/types/SleepCycleSourceProvider.d.ts +5 -0
  86. package/dist/api/types/SleepCycleSourceProvider.js +5 -0
  87. package/dist/api/types/SleepCycleSourceType.d.ts +19 -0
  88. package/dist/api/types/SleepCycleSourceType.js +21 -0
  89. package/dist/api/types/VitalSleepStage.d.ts +4 -0
  90. package/dist/api/types/VitalSleepStage.js +5 -0
  91. package/dist/api/types/index.d.ts +5 -0
  92. package/dist/api/types/index.js +5 -0
  93. package/dist/serialization/types/ClientSleepCycleResponse.d.ts +13 -0
  94. package/dist/serialization/types/ClientSleepCycleResponse.js +34 -0
  95. package/dist/serialization/types/Labs.d.ts +1 -1
  96. package/dist/serialization/types/Labs.js +1 -0
  97. package/dist/serialization/types/SleepCycle.d.ts +25 -0
  98. package/dist/serialization/types/SleepCycle.js +46 -0
  99. package/dist/serialization/types/SleepCycleSourceProvider.d.ts +12 -0
  100. package/dist/serialization/types/SleepCycleSourceProvider.js +33 -0
  101. package/dist/serialization/types/SleepCycleSourceType.d.ts +10 -0
  102. package/dist/serialization/types/SleepCycleSourceType.js +45 -0
  103. package/dist/serialization/types/VitalSleepStage.d.ts +10 -0
  104. package/dist/serialization/types/VitalSleepStage.js +31 -0
  105. package/dist/serialization/types/index.d.ts +5 -0
  106. package/dist/serialization/types/index.js +5 -0
  107. package/dist/version.d.ts +1 -1
  108. package/dist/version.js +1 -1
  109. package/package.json +1 -1
  110. package/reference.md +75 -0
  111. package/serialization/types/ClientSleepCycleResponse.d.ts +13 -0
  112. package/serialization/types/ClientSleepCycleResponse.js +34 -0
  113. package/serialization/types/Labs.d.ts +1 -1
  114. package/serialization/types/Labs.js +1 -0
  115. package/serialization/types/SleepCycle.d.ts +25 -0
  116. package/serialization/types/SleepCycle.js +46 -0
  117. package/serialization/types/SleepCycleSourceProvider.d.ts +12 -0
  118. package/serialization/types/SleepCycleSourceProvider.js +33 -0
  119. package/serialization/types/SleepCycleSourceType.d.ts +10 -0
  120. package/serialization/types/SleepCycleSourceType.js +45 -0
  121. package/serialization/types/VitalSleepStage.d.ts +10 -0
  122. package/serialization/types/VitalSleepStage.js +31 -0
  123. package/serialization/types/index.d.ts +5 -0
  124. package/serialization/types/index.js +5 -0
  125. package/version.d.ts +1 -1
  126. package/version.js +1 -1
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface ClientSleepCycleResponse {
6
+ sleepCycle: Vital.SleepCycle[];
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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 Labs = "ayumetrix" | "spiriplex" | "ussl" | "quest" | "labcorp" | "bioreference" | "us_biotek" | "manual" | "sanocardio";
4
+ export declare type Labs = "ayumetrix" | "spiriplex" | "ussl" | "quest" | "labcorp" | "bioreference" | "us_biotek" | "manual" | "sanocardio" | "ihd";
5
5
  export declare const Labs: {
6
6
  readonly Ayumetrix: "ayumetrix";
7
7
  readonly Spiriplex: "spiriplex";
@@ -12,4 +12,5 @@ export declare const Labs: {
12
12
  readonly UsBiotek: "us_biotek";
13
13
  readonly Manual: "manual";
14
14
  readonly Sanocardio: "sanocardio";
15
+ readonly Ihd: "ihd";
15
16
  };
package/api/types/Labs.js CHANGED
@@ -14,4 +14,5 @@ exports.Labs = {
14
14
  UsBiotek: "us_biotek",
15
15
  Manual: "manual",
16
16
  Sanocardio: "sanocardio",
17
+ Ihd: "ihd",
17
18
  };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface SleepCycle {
6
+ id: string;
7
+ sleepId: string;
8
+ sessionStart: Date;
9
+ sessionEnd: Date;
10
+ stageStartOffsetSecond: number[];
11
+ stageEndOffsetSecond: number[];
12
+ stageType: Vital.VitalSleepStage[];
13
+ timeZone?: string;
14
+ sourceProvider: Vital.SleepCycleSourceProvider;
15
+ sourceType: Vital.SleepCycleSourceType;
16
+ sourceAppId?: string;
17
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export declare type SleepCycleSourceProvider = Vital.Providers | Vital.Labs;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
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: {
6
+ readonly Unknown: "unknown";
7
+ readonly Phone: "phone";
8
+ readonly Watch: "watch";
9
+ readonly App: "app";
10
+ readonly MultipleSources: "multiple_sources";
11
+ readonly Fingerprick: "fingerprick";
12
+ readonly Cuff: "cuff";
13
+ readonly ManualScan: "manual_scan";
14
+ readonly Automatic: "automatic";
15
+ readonly Scale: "scale";
16
+ readonly ChestStrap: "chest_strap";
17
+ readonly Ring: "ring";
18
+ readonly Lab: "lab";
19
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SleepCycleSourceType = void 0;
7
+ exports.SleepCycleSourceType = {
8
+ Unknown: "unknown",
9
+ Phone: "phone",
10
+ Watch: "watch",
11
+ App: "app",
12
+ MultipleSources: "multiple_sources",
13
+ Fingerprick: "fingerprick",
14
+ Cuff: "cuff",
15
+ ManualScan: "manual_scan",
16
+ Automatic: "automatic",
17
+ Scale: "scale",
18
+ ChestStrap: "chest_strap",
19
+ Ring: "ring",
20
+ Lab: "lab",
21
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type VitalSleepStage = number;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -136,6 +136,7 @@ export * from "./ClientFacingWaterTimeseries";
136
136
  export * from "./ClientFacingWorkout";
137
137
  export * from "./ClientFacingWorkoutDurationSampleIntensity";
138
138
  export * from "./ClientFacingWorkoutDurationSample";
139
+ export * from "./ClientSleepCycleResponse";
139
140
  export * from "./ClientSleepResponse";
140
141
  export * from "./ClientUserIdConflict";
141
142
  export * from "./ClientWorkoutResponse";
@@ -275,6 +276,9 @@ export * from "./SingleUserHistoricalPullResponse";
275
276
  export * from "./SingleUserResourceResponse";
276
277
  export * from "./SleepColumnExprSleep";
277
278
  export * from "./SleepColumnExpr";
279
+ export * from "./SleepCycleSourceProvider";
280
+ export * from "./SleepCycleSourceType";
281
+ export * from "./SleepCycle";
278
282
  export * from "./SleepScoreValueMacroExpr";
279
283
  export * from "./SleepSummaryState";
280
284
  export * from "./SleepType";
@@ -299,6 +303,7 @@ export * from "./UserSignInTokenResponse";
299
303
  export * from "./UserSuccessResponse";
300
304
  export * from "./ValidationErrorLocItem";
301
305
  export * from "./ValidationError";
306
+ export * from "./VitalSleepStage";
302
307
  export * from "./VitalTokenCreatedResponse";
303
308
  export * from "./Vitamins";
304
309
  export * from "./WorkoutColumnExprWorkout";
@@ -152,6 +152,7 @@ __exportStar(require("./ClientFacingWaterTimeseries"), exports);
152
152
  __exportStar(require("./ClientFacingWorkout"), exports);
153
153
  __exportStar(require("./ClientFacingWorkoutDurationSampleIntensity"), exports);
154
154
  __exportStar(require("./ClientFacingWorkoutDurationSample"), exports);
155
+ __exportStar(require("./ClientSleepCycleResponse"), exports);
155
156
  __exportStar(require("./ClientSleepResponse"), exports);
156
157
  __exportStar(require("./ClientUserIdConflict"), exports);
157
158
  __exportStar(require("./ClientWorkoutResponse"), exports);
@@ -291,6 +292,9 @@ __exportStar(require("./SingleUserHistoricalPullResponse"), exports);
291
292
  __exportStar(require("./SingleUserResourceResponse"), exports);
292
293
  __exportStar(require("./SleepColumnExprSleep"), exports);
293
294
  __exportStar(require("./SleepColumnExpr"), exports);
295
+ __exportStar(require("./SleepCycleSourceProvider"), exports);
296
+ __exportStar(require("./SleepCycleSourceType"), exports);
297
+ __exportStar(require("./SleepCycle"), exports);
294
298
  __exportStar(require("./SleepScoreValueMacroExpr"), exports);
295
299
  __exportStar(require("./SleepSummaryState"), exports);
296
300
  __exportStar(require("./SleepType"), exports);
@@ -315,6 +319,7 @@ __exportStar(require("./UserSignInTokenResponse"), exports);
315
319
  __exportStar(require("./UserSuccessResponse"), exports);
316
320
  __exportStar(require("./ValidationErrorLocItem"), exports);
317
321
  __exportStar(require("./ValidationError"), exports);
322
+ __exportStar(require("./VitalSleepStage"), exports);
318
323
  __exportStar(require("./VitalTokenCreatedResponse"), exports);
319
324
  __exportStar(require("./Vitamins"), exports);
320
325
  __exportStar(require("./WorkoutColumnExprWorkout"), exports);
package/dist/Client.d.ts CHANGED
@@ -4,6 +4,7 @@
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import { Link } from "./api/resources/link/client/Client";
7
+ import { SleepCycle } from "./api/resources/sleepCycle/client/Client";
7
8
  import { Profile } from "./api/resources/profile/client/Client";
8
9
  import { Devices } from "./api/resources/devices/client/Client";
9
10
  import { Activity } from "./api/resources/activity/client/Client";
@@ -40,6 +41,8 @@ export declare class VitalClient {
40
41
  constructor(_options?: VitalClient.Options);
41
42
  protected _link: Link | undefined;
42
43
  get link(): Link;
44
+ protected _sleepCycle: SleepCycle | undefined;
45
+ get sleepCycle(): SleepCycle;
43
46
  protected _profile: Profile | undefined;
44
47
  get profile(): Profile;
45
48
  protected _devices: Devices | undefined;
package/dist/Client.js CHANGED
@@ -5,23 +5,24 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.VitalClient = void 0;
7
7
  const Client_1 = require("./api/resources/link/client/Client");
8
- const Client_2 = require("./api/resources/profile/client/Client");
9
- const Client_3 = require("./api/resources/devices/client/Client");
10
- const Client_4 = require("./api/resources/activity/client/Client");
11
- const Client_5 = require("./api/resources/workouts/client/Client");
12
- const Client_6 = require("./api/resources/sleep/client/Client");
13
- const Client_7 = require("./api/resources/body/client/Client");
14
- const Client_8 = require("./api/resources/meal/client/Client");
15
- const Client_9 = require("./api/resources/menstrualCycle/client/Client");
16
- const Client_10 = require("./api/resources/vitals/client/Client");
17
- const Client_11 = require("./api/resources/user/client/Client");
18
- const Client_12 = require("./api/resources/team/client/Client");
19
- const Client_13 = require("./api/resources/providers/client/Client");
20
- const Client_14 = require("./api/resources/introspect/client/Client");
21
- const Client_15 = require("./api/resources/labTests/client/Client");
22
- const Client_16 = require("./api/resources/testkit/client/Client");
23
- const Client_17 = require("./api/resources/insurance/client/Client");
24
- const Client_18 = require("./api/resources/aggregate/client/Client");
8
+ const Client_2 = require("./api/resources/sleepCycle/client/Client");
9
+ const Client_3 = require("./api/resources/profile/client/Client");
10
+ const Client_4 = require("./api/resources/devices/client/Client");
11
+ const Client_5 = require("./api/resources/activity/client/Client");
12
+ const Client_6 = require("./api/resources/workouts/client/Client");
13
+ const Client_7 = require("./api/resources/sleep/client/Client");
14
+ const Client_8 = require("./api/resources/body/client/Client");
15
+ const Client_9 = require("./api/resources/meal/client/Client");
16
+ const Client_10 = require("./api/resources/menstrualCycle/client/Client");
17
+ const Client_11 = require("./api/resources/vitals/client/Client");
18
+ const Client_12 = require("./api/resources/user/client/Client");
19
+ const Client_13 = require("./api/resources/team/client/Client");
20
+ const Client_14 = require("./api/resources/providers/client/Client");
21
+ const Client_15 = require("./api/resources/introspect/client/Client");
22
+ const Client_16 = require("./api/resources/labTests/client/Client");
23
+ const Client_17 = require("./api/resources/testkit/client/Client");
24
+ const Client_18 = require("./api/resources/insurance/client/Client");
25
+ const Client_19 = require("./api/resources/aggregate/client/Client");
25
26
  class VitalClient {
26
27
  constructor(_options = {}) {
27
28
  this._options = _options;
@@ -30,73 +31,77 @@ class VitalClient {
30
31
  var _a;
31
32
  return ((_a = this._link) !== null && _a !== void 0 ? _a : (this._link = new Client_1.Link(this._options)));
32
33
  }
34
+ get sleepCycle() {
35
+ var _a;
36
+ return ((_a = this._sleepCycle) !== null && _a !== void 0 ? _a : (this._sleepCycle = new Client_2.SleepCycle(this._options)));
37
+ }
33
38
  get profile() {
34
39
  var _a;
35
- return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new Client_2.Profile(this._options)));
40
+ return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new Client_3.Profile(this._options)));
36
41
  }
37
42
  get devices() {
38
43
  var _a;
39
- return ((_a = this._devices) !== null && _a !== void 0 ? _a : (this._devices = new Client_3.Devices(this._options)));
44
+ return ((_a = this._devices) !== null && _a !== void 0 ? _a : (this._devices = new Client_4.Devices(this._options)));
40
45
  }
41
46
  get activity() {
42
47
  var _a;
43
- return ((_a = this._activity) !== null && _a !== void 0 ? _a : (this._activity = new Client_4.Activity(this._options)));
48
+ return ((_a = this._activity) !== null && _a !== void 0 ? _a : (this._activity = new Client_5.Activity(this._options)));
44
49
  }
45
50
  get workouts() {
46
51
  var _a;
47
- return ((_a = this._workouts) !== null && _a !== void 0 ? _a : (this._workouts = new Client_5.Workouts(this._options)));
52
+ return ((_a = this._workouts) !== null && _a !== void 0 ? _a : (this._workouts = new Client_6.Workouts(this._options)));
48
53
  }
49
54
  get sleep() {
50
55
  var _a;
51
- return ((_a = this._sleep) !== null && _a !== void 0 ? _a : (this._sleep = new Client_6.Sleep(this._options)));
56
+ return ((_a = this._sleep) !== null && _a !== void 0 ? _a : (this._sleep = new Client_7.Sleep(this._options)));
52
57
  }
53
58
  get body() {
54
59
  var _a;
55
- return ((_a = this._body) !== null && _a !== void 0 ? _a : (this._body = new Client_7.Body(this._options)));
60
+ return ((_a = this._body) !== null && _a !== void 0 ? _a : (this._body = new Client_8.Body(this._options)));
56
61
  }
57
62
  get meal() {
58
63
  var _a;
59
- return ((_a = this._meal) !== null && _a !== void 0 ? _a : (this._meal = new Client_8.Meal(this._options)));
64
+ return ((_a = this._meal) !== null && _a !== void 0 ? _a : (this._meal = new Client_9.Meal(this._options)));
60
65
  }
61
66
  get menstrualCycle() {
62
67
  var _a;
63
- return ((_a = this._menstrualCycle) !== null && _a !== void 0 ? _a : (this._menstrualCycle = new Client_9.MenstrualCycle(this._options)));
68
+ return ((_a = this._menstrualCycle) !== null && _a !== void 0 ? _a : (this._menstrualCycle = new Client_10.MenstrualCycle(this._options)));
64
69
  }
65
70
  get vitals() {
66
71
  var _a;
67
- return ((_a = this._vitals) !== null && _a !== void 0 ? _a : (this._vitals = new Client_10.Vitals(this._options)));
72
+ return ((_a = this._vitals) !== null && _a !== void 0 ? _a : (this._vitals = new Client_11.Vitals(this._options)));
68
73
  }
69
74
  get user() {
70
75
  var _a;
71
- return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_11.User(this._options)));
76
+ return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_12.User(this._options)));
72
77
  }
73
78
  get team() {
74
79
  var _a;
75
- return ((_a = this._team) !== null && _a !== void 0 ? _a : (this._team = new Client_12.Team(this._options)));
80
+ return ((_a = this._team) !== null && _a !== void 0 ? _a : (this._team = new Client_13.Team(this._options)));
76
81
  }
77
82
  get providers() {
78
83
  var _a;
79
- return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_13.Providers(this._options)));
84
+ return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_14.Providers(this._options)));
80
85
  }
81
86
  get introspect() {
82
87
  var _a;
83
- return ((_a = this._introspect) !== null && _a !== void 0 ? _a : (this._introspect = new Client_14.Introspect(this._options)));
88
+ return ((_a = this._introspect) !== null && _a !== void 0 ? _a : (this._introspect = new Client_15.Introspect(this._options)));
84
89
  }
85
90
  get labTests() {
86
91
  var _a;
87
- return ((_a = this._labTests) !== null && _a !== void 0 ? _a : (this._labTests = new Client_15.LabTests(this._options)));
92
+ return ((_a = this._labTests) !== null && _a !== void 0 ? _a : (this._labTests = new Client_16.LabTests(this._options)));
88
93
  }
89
94
  get testkit() {
90
95
  var _a;
91
- return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new Client_16.Testkit(this._options)));
96
+ return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new Client_17.Testkit(this._options)));
92
97
  }
93
98
  get insurance() {
94
99
  var _a;
95
- return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new Client_17.Insurance(this._options)));
100
+ return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new Client_18.Insurance(this._options)));
96
101
  }
97
102
  get aggregate() {
98
103
  var _a;
99
- return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new Client_18.Aggregate(this._options)));
104
+ return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new Client_19.Aggregate(this._options)));
100
105
  }
101
106
  }
102
107
  exports.VitalClient = VitalClient;
@@ -78,7 +78,7 @@ class Activity {
78
78
  const _response = yield core.fetcher({
79
79
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${encodeURIComponent(userId)}`),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.104", "User-Agent": "@tryvital/vital-node/3.1.104", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.106", "User-Agent": "@tryvital/vital-node/3.1.106", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -154,7 +154,7 @@ class Activity {
154
154
  const _response = yield core.fetcher({
155
155
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${encodeURIComponent(userId)}/raw`),
156
156
  method: "GET",
157
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.104", "User-Agent": "@tryvital/vital-node/3.1.104", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
157
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.106", "User-Agent": "@tryvital/vital-node/3.1.106", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
158
158
  contentType: "application/json",
159
159
  queryParameters: _queryParams,
160
160
  requestType: "json",
@@ -81,7 +81,7 @@ class Aggregate {
81
81
  const _response = yield core.fetcher({
82
82
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/query_one/${encodeURIComponent(userId)}`),
83
83
  method: "POST",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.104", "User-Agent": "@tryvital/vital-node/3.1.104", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.106", "User-Agent": "@tryvital/vital-node/3.1.106", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.Query.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -78,7 +78,7 @@ class Body {
78
78
  const _response = yield core.fetcher({
79
79
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${encodeURIComponent(userId)}`),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.104", "User-Agent": "@tryvital/vital-node/3.1.104", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.106", "User-Agent": "@tryvital/vital-node/3.1.106", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -154,7 +154,7 @@ class Body {
154
154
  const _response = yield core.fetcher({
155
155
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${encodeURIComponent(userId)}/raw`),
156
156
  method: "GET",
157
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.104", "User-Agent": "@tryvital/vital-node/3.1.104", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
157
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.106", "User-Agent": "@tryvital/vital-node/3.1.106", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
158
158
  contentType: "application/json",
159
159
  queryParameters: _queryParams,
160
160
  requestType: "json",
@@ -72,7 +72,7 @@ class Devices {
72
72
  const _response = yield core.fetcher({
73
73
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/devices/${encodeURIComponent(userId)}/raw`),
74
74
  method: "GET",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.104", "User-Agent": "@tryvital/vital-node/3.1.104", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.106", "User-Agent": "@tryvital/vital-node/3.1.106", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
76
  contentType: "application/json",
77
77
  queryParameters: _queryParams,
78
78
  requestType: "json",
@@ -3,6 +3,7 @@ export * from "./labTests/types";
3
3
  export * as aggregate from "./aggregate";
4
4
  export * from "./aggregate/types";
5
5
  export * as link from "./link";
6
+ export * as sleepCycle from "./sleepCycle";
6
7
  export * as profile from "./profile";
7
8
  export * as devices from "./devices";
8
9
  export * as activity from "./activity";
@@ -19,6 +20,7 @@ export * as introspect from "./introspect";
19
20
  export * as testkit from "./testkit";
20
21
  export * as insurance from "./insurance";
21
22
  export * from "./link/client/requests";
23
+ export * from "./sleepCycle/client/requests";
22
24
  export * from "./profile/client/requests";
23
25
  export * from "./devices/client/requests";
24
26
  export * from "./activity/client/requests";
@@ -26,12 +26,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.insurance = exports.testkit = exports.introspect = exports.providers = exports.team = exports.user = exports.vitals = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.link = exports.aggregate = exports.labTests = void 0;
29
+ exports.insurance = exports.testkit = exports.introspect = exports.providers = exports.team = exports.user = exports.vitals = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.sleepCycle = exports.link = exports.aggregate = exports.labTests = void 0;
30
30
  exports.labTests = __importStar(require("./labTests"));
31
31
  __exportStar(require("./labTests/types"), exports);
32
32
  exports.aggregate = __importStar(require("./aggregate"));
33
33
  __exportStar(require("./aggregate/types"), exports);
34
34
  exports.link = __importStar(require("./link"));
35
+ exports.sleepCycle = __importStar(require("./sleepCycle"));
35
36
  exports.profile = __importStar(require("./profile"));
36
37
  exports.devices = __importStar(require("./devices"));
37
38
  exports.activity = __importStar(require("./activity"));
@@ -48,6 +49,7 @@ exports.introspect = __importStar(require("./introspect"));
48
49
  exports.testkit = __importStar(require("./testkit"));
49
50
  exports.insurance = __importStar(require("./insurance"));
50
51
  __exportStar(require("./link/client/requests"), exports);
52
+ __exportStar(require("./sleepCycle/client/requests"), exports);
51
53
  __exportStar(require("./profile/client/requests"), exports);
52
54
  __exportStar(require("./devices/client/requests"), exports);
53
55
  __exportStar(require("./activity/client/requests"), exports);
@@ -66,7 +66,7 @@ class Insurance {
66
66
  const _response = yield core.fetcher({
67
67
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
68
68
  method: "POST",
69
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.104", "User-Agent": "@tryvital/vital-node/3.1.104", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
69
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.106", "User-Agent": "@tryvital/vital-node/3.1.106", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
70
70
  contentType: "application/json",
71
71
  requestType: "json",
72
72
  body: serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -133,7 +133,7 @@ class Insurance {
133
133
  const _response = yield core.fetcher({
134
134
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/diagnosis"),
135
135
  method: "GET",
136
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.104", "User-Agent": "@tryvital/vital-node/3.1.104", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
136
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.106", "User-Agent": "@tryvital/vital-node/3.1.106", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
137
137
  contentType: "application/json",
138
138
  queryParameters: _queryParams,
139
139
  requestType: "json",
@@ -81,7 +81,7 @@ class Introspect {
81
81
  const _response = yield core.fetcher({
82
82
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/resources"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.104", "User-Agent": "@tryvital/vital-node/3.1.104", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.106", "User-Agent": "@tryvital/vital-node/3.1.106", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -160,7 +160,7 @@ class Introspect {
160
160
  const _response = yield core.fetcher({
161
161
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/historical_pull"),
162
162
  method: "GET",
163
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.104", "User-Agent": "@tryvital/vital-node/3.1.104", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
163
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.106", "User-Agent": "@tryvital/vital-node/3.1.106", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
164
164
  contentType: "application/json",
165
165
  queryParameters: _queryParams,
166
166
  requestType: "json",