@tryvital/vital-node 3.1.101 → 3.1.103

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 (118) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.d.ts +0 -8
  3. package/api/resources/aggregate/client/Client.js +1 -9
  4. package/api/resources/aggregate/client/requests/Query.d.ts +0 -8
  5. package/api/resources/body/client/Client.js +2 -2
  6. package/api/resources/devices/client/Client.js +1 -1
  7. package/api/resources/insurance/client/Client.js +2 -2
  8. package/api/resources/introspect/client/Client.js +2 -2
  9. package/api/resources/labTests/client/Client.js +34 -34
  10. package/api/resources/link/client/Client.js +14 -14
  11. package/api/resources/meal/client/Client.js +1 -1
  12. package/api/resources/menstrualCycle/client/Client.js +1 -1
  13. package/api/resources/profile/client/Client.js +2 -2
  14. package/api/resources/providers/client/Client.js +1 -1
  15. package/api/resources/sleep/client/Client.js +4 -4
  16. package/api/resources/team/client/Client.js +7 -7
  17. package/api/resources/testkit/client/Client.js +2 -2
  18. package/api/resources/user/client/Client.js +16 -16
  19. package/api/resources/vitals/client/Client.js +56 -56
  20. package/api/resources/workouts/client/Client.js +3 -3
  21. package/api/types/AggregateExprArg.d.ts +1 -1
  22. package/api/types/ClientFacingResource.d.ts +2 -1
  23. package/api/types/ClientFacingResource.js +1 -0
  24. package/api/types/ClientFacingSleep.d.ts +7 -0
  25. package/api/types/QueryInstruction.d.ts +1 -1
  26. package/api/types/QueryInstructionSelectItem.d.ts +1 -1
  27. package/api/types/SleepColumnExprSleep.d.ts +2 -1
  28. package/api/types/SleepColumnExprSleep.js +1 -0
  29. package/api/types/SleepScoreValueMacroExpr.d.ts +7 -0
  30. package/api/types/SleepScoreValueMacroExpr.js +5 -0
  31. package/api/types/SleepType.d.ts +10 -0
  32. package/api/types/SleepType.js +12 -0
  33. package/api/types/UnrecognizedValueMacroExpr.d.ts +6 -0
  34. package/api/types/UnrecognizedValueMacroExpr.js +5 -0
  35. package/api/types/index.d.ts +3 -0
  36. package/api/types/index.js +3 -0
  37. package/dist/api/resources/activity/client/Client.js +2 -2
  38. package/dist/api/resources/aggregate/client/Client.d.ts +0 -8
  39. package/dist/api/resources/aggregate/client/Client.js +1 -9
  40. package/dist/api/resources/aggregate/client/requests/Query.d.ts +0 -8
  41. package/dist/api/resources/body/client/Client.js +2 -2
  42. package/dist/api/resources/devices/client/Client.js +1 -1
  43. package/dist/api/resources/insurance/client/Client.js +2 -2
  44. package/dist/api/resources/introspect/client/Client.js +2 -2
  45. package/dist/api/resources/labTests/client/Client.js +34 -34
  46. package/dist/api/resources/link/client/Client.js +14 -14
  47. package/dist/api/resources/meal/client/Client.js +1 -1
  48. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  49. package/dist/api/resources/profile/client/Client.js +2 -2
  50. package/dist/api/resources/providers/client/Client.js +1 -1
  51. package/dist/api/resources/sleep/client/Client.js +4 -4
  52. package/dist/api/resources/team/client/Client.js +7 -7
  53. package/dist/api/resources/testkit/client/Client.js +2 -2
  54. package/dist/api/resources/user/client/Client.js +16 -16
  55. package/dist/api/resources/vitals/client/Client.js +56 -56
  56. package/dist/api/resources/workouts/client/Client.js +3 -3
  57. package/dist/api/types/AggregateExprArg.d.ts +1 -1
  58. package/dist/api/types/ClientFacingResource.d.ts +2 -1
  59. package/dist/api/types/ClientFacingResource.js +1 -0
  60. package/dist/api/types/ClientFacingSleep.d.ts +7 -0
  61. package/dist/api/types/QueryInstruction.d.ts +1 -1
  62. package/dist/api/types/QueryInstructionSelectItem.d.ts +1 -1
  63. package/dist/api/types/SleepColumnExprSleep.d.ts +2 -1
  64. package/dist/api/types/SleepColumnExprSleep.js +1 -0
  65. package/dist/api/types/SleepScoreValueMacroExpr.d.ts +7 -0
  66. package/dist/api/types/SleepScoreValueMacroExpr.js +5 -0
  67. package/dist/api/types/SleepType.d.ts +10 -0
  68. package/dist/api/types/SleepType.js +12 -0
  69. package/dist/api/types/UnrecognizedValueMacroExpr.d.ts +6 -0
  70. package/dist/api/types/UnrecognizedValueMacroExpr.js +5 -0
  71. package/dist/api/types/index.d.ts +3 -0
  72. package/dist/api/types/index.js +3 -0
  73. package/dist/serialization/types/AggregateExprArg.d.ts +3 -1
  74. package/dist/serialization/types/AggregateExprArg.js +4 -0
  75. package/dist/serialization/types/ClientFacingResource.d.ts +1 -1
  76. package/dist/serialization/types/ClientFacingResource.js +1 -0
  77. package/dist/serialization/types/ClientFacingSleep.d.ts +2 -0
  78. package/dist/serialization/types/ClientFacingSleep.js +2 -0
  79. package/dist/serialization/types/QueryInstruction.d.ts +1 -1
  80. package/dist/serialization/types/QueryInstruction.js +1 -1
  81. package/dist/serialization/types/QueryInstructionSelectItem.d.ts +3 -1
  82. package/dist/serialization/types/QueryInstructionSelectItem.js +4 -0
  83. package/dist/serialization/types/SleepColumnExprSleep.d.ts +1 -1
  84. package/dist/serialization/types/SleepColumnExprSleep.js +1 -0
  85. package/dist/serialization/types/SleepScoreValueMacroExpr.d.ts +13 -0
  86. package/dist/serialization/types/SleepScoreValueMacroExpr.js +34 -0
  87. package/dist/serialization/types/SleepType.d.ts +10 -0
  88. package/dist/serialization/types/SleepType.js +31 -0
  89. package/dist/serialization/types/UnrecognizedValueMacroExpr.d.ts +12 -0
  90. package/dist/serialization/types/UnrecognizedValueMacroExpr.js +33 -0
  91. package/dist/serialization/types/index.d.ts +3 -0
  92. package/dist/serialization/types/index.js +3 -0
  93. package/dist/version.d.ts +1 -1
  94. package/dist/version.js +1 -1
  95. package/package.json +1 -1
  96. package/reference.md +0 -10
  97. package/serialization/types/AggregateExprArg.d.ts +3 -1
  98. package/serialization/types/AggregateExprArg.js +4 -0
  99. package/serialization/types/ClientFacingResource.d.ts +1 -1
  100. package/serialization/types/ClientFacingResource.js +1 -0
  101. package/serialization/types/ClientFacingSleep.d.ts +2 -0
  102. package/serialization/types/ClientFacingSleep.js +2 -0
  103. package/serialization/types/QueryInstruction.d.ts +1 -1
  104. package/serialization/types/QueryInstruction.js +1 -1
  105. package/serialization/types/QueryInstructionSelectItem.d.ts +3 -1
  106. package/serialization/types/QueryInstructionSelectItem.js +4 -0
  107. package/serialization/types/SleepColumnExprSleep.d.ts +1 -1
  108. package/serialization/types/SleepColumnExprSleep.js +1 -0
  109. package/serialization/types/SleepScoreValueMacroExpr.d.ts +13 -0
  110. package/serialization/types/SleepScoreValueMacroExpr.js +34 -0
  111. package/serialization/types/SleepType.d.ts +10 -0
  112. package/serialization/types/SleepType.js +31 -0
  113. package/serialization/types/UnrecognizedValueMacroExpr.d.ts +12 -0
  114. package/serialization/types/UnrecognizedValueMacroExpr.js +33 -0
  115. package/serialization/types/index.d.ts +3 -0
  116. package/serialization/types/index.js +3 -0
  117. package/version.d.ts +1 -1
  118. package/version.js +1 -1
@@ -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 AggregateExprArg = Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr;
5
+ export declare type AggregateExprArg = Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.UnrecognizedValueMacroExpr;
@@ -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 ClientFacingResource = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "electrocardiogram_voltage" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream";
4
+ export declare type ClientFacingResource = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "sleep_cycle" | "electrocardiogram_voltage" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream";
5
5
  export declare const ClientFacingResource: {
6
6
  readonly Profile: "profile";
7
7
  readonly Activity: "activity";
@@ -40,6 +40,7 @@ export declare const ClientFacingResource: {
40
40
  readonly CaloriesBasal: "calories_basal";
41
41
  readonly StressLevel: "stress_level";
42
42
  readonly MenstrualCycle: "menstrual_cycle";
43
+ readonly SleepCycle: "sleep_cycle";
43
44
  readonly ElectrocardiogramVoltage: "electrocardiogram_voltage";
44
45
  readonly WorkoutDuration: "workout_duration";
45
46
  readonly InsulinInjection: "insulin_injection";
@@ -42,6 +42,7 @@ exports.ClientFacingResource = {
42
42
  CaloriesBasal: "calories_basal",
43
43
  StressLevel: "stress_level",
44
44
  MenstrualCycle: "menstrual_cycle",
45
+ SleepCycle: "sleep_cycle",
45
46
  ElectrocardiogramVoltage: "electrocardiogram_voltage",
46
47
  WorkoutDuration: "workout_duration",
47
48
  InsulinInjection: "insulin_injection",
@@ -14,6 +14,13 @@ export interface ClientFacingSleep {
14
14
  bedtimeStart: string;
15
15
  /** UTC Time when the sleep period ended */
16
16
  bedtimeStop: string;
17
+ /**
18
+ * `long_sleep`: >=3 hours of sleep;
19
+ * `short_sleep`: <3 hours of sleep;
20
+ * `acknowledged_nap`: User-acknowledged naps, typically under 3 hours of sleep;
21
+ * `unknown`: The sleep session recording is ongoing.
22
+ */
23
+ type: Vital.SleepType;
17
24
  /** Timezone offset from UTC as seconds. For example, EEST (Eastern European Summer Time, +3h) is 10800. PST (Pacific Standard Time, -8h) is -28800::seconds */
18
25
  timezoneOffset?: number;
19
26
  /** Total duration of the sleep period (sleep.duration = sleep.bedtime_end - sleep.bedtime_start)::seconds */
@@ -4,6 +4,6 @@
4
4
  import * as Vital from "../index";
5
5
  export interface QueryInstruction {
6
6
  select: Vital.QueryInstructionSelectItem[];
7
- groupBy: Vital.QueryInstructionGroupByItem[];
7
+ groupBy?: Vital.QueryInstructionGroupByItem[];
8
8
  splitBySource?: boolean;
9
9
  }
@@ -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 QueryInstructionSelectItem = Vital.AggregateExpr | Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr;
5
+ export declare type QueryInstructionSelectItem = Vital.AggregateExpr | Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.UnrecognizedValueMacroExpr;
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type SleepColumnExprSleep = "session_start" | "session_end" | "state" | "duration_second" | "stage_asleep_second" | "stage_awake_second" | "stage_light_second" | "stage_rem_second" | "stage_deep_second" | "stage_unknown_second" | "latency_second" | "heart_rate_minimum" | "heart_rate_mean" | "heart_rate_maximum" | "heart_rate_dip" | "efficiency" | "hrv_mean_rmssd" | "hrv_mean_sdnn" | "skin_temperature_delta" | "respiratory_rate" | "score" | "source_type" | "source_provider" | "source_app_id";
4
+ export declare type SleepColumnExprSleep = "session_start" | "session_end" | "state" | "type" | "duration_second" | "stage_asleep_second" | "stage_awake_second" | "stage_light_second" | "stage_rem_second" | "stage_deep_second" | "stage_unknown_second" | "latency_second" | "heart_rate_minimum" | "heart_rate_mean" | "heart_rate_maximum" | "heart_rate_dip" | "efficiency" | "hrv_mean_rmssd" | "hrv_mean_sdnn" | "skin_temperature_delta" | "respiratory_rate" | "score" | "source_type" | "source_provider" | "source_app_id";
5
5
  export declare const SleepColumnExprSleep: {
6
6
  readonly SessionStart: "session_start";
7
7
  readonly SessionEnd: "session_end";
8
8
  readonly State: "state";
9
+ readonly Type: "type";
9
10
  readonly DurationSecond: "duration_second";
10
11
  readonly StageAsleepSecond: "stage_asleep_second";
11
12
  readonly StageAwakeSecond: "stage_awake_second";
@@ -8,6 +8,7 @@ exports.SleepColumnExprSleep = {
8
8
  SessionStart: "session_start",
9
9
  SessionEnd: "session_end",
10
10
  State: "state",
11
+ Type: "type",
11
12
  DurationSecond: "duration_second",
12
13
  StageAsleepSecond: "stage_asleep_second",
13
14
  StageAwakeSecond: "stage_awake_second",
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface SleepScoreValueMacroExpr {
5
+ valueMacro: "sleep_score";
6
+ version?: "automatic";
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 });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type SleepType = "long_sleep" | "short_sleep" | "acknowledged_nap" | "unknown";
5
+ export declare const SleepType: {
6
+ readonly LongSleep: "long_sleep";
7
+ readonly ShortSleep: "short_sleep";
8
+ readonly AcknowledgedNap: "acknowledged_nap";
9
+ readonly Unknown: "unknown";
10
+ };
@@ -0,0 +1,12 @@
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.SleepType = void 0;
7
+ exports.SleepType = {
8
+ LongSleep: "long_sleep",
9
+ ShortSleep: "short_sleep",
10
+ AcknowledgedNap: "acknowledged_nap",
11
+ Unknown: "unknown",
12
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface UnrecognizedValueMacroExpr {
5
+ valueMacro: string;
6
+ }
@@ -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 });
@@ -273,7 +273,9 @@ export * from "./SingleUserHistoricalPullResponse";
273
273
  export * from "./SingleUserResourceResponse";
274
274
  export * from "./SleepColumnExprSleep";
275
275
  export * from "./SleepColumnExpr";
276
+ export * from "./SleepScoreValueMacroExpr";
276
277
  export * from "./SleepSummaryState";
278
+ export * from "./SleepType";
277
279
  export * from "./SleepV2InDb";
278
280
  export * from "./Source";
279
281
  export * from "./SourceAuthType";
@@ -285,6 +287,7 @@ export * from "./TimeseriesMetricPoint";
285
287
  export * from "./TimeseriesResource";
286
288
  export * from "./TraceElements";
287
289
  export * from "./UsAddress";
290
+ export * from "./UnrecognizedValueMacroExpr";
288
291
  export * from "./UserHistoricalPullsResponse";
289
292
  export * from "./UserInfo";
290
293
  export * from "./UserRefreshErrorResponse";
@@ -289,7 +289,9 @@ __exportStar(require("./SingleUserHistoricalPullResponse"), exports);
289
289
  __exportStar(require("./SingleUserResourceResponse"), exports);
290
290
  __exportStar(require("./SleepColumnExprSleep"), exports);
291
291
  __exportStar(require("./SleepColumnExpr"), exports);
292
+ __exportStar(require("./SleepScoreValueMacroExpr"), exports);
292
293
  __exportStar(require("./SleepSummaryState"), exports);
294
+ __exportStar(require("./SleepType"), exports);
293
295
  __exportStar(require("./SleepV2InDb"), exports);
294
296
  __exportStar(require("./Source"), exports);
295
297
  __exportStar(require("./SourceAuthType"), exports);
@@ -301,6 +303,7 @@ __exportStar(require("./TimeseriesMetricPoint"), exports);
301
303
  __exportStar(require("./TimeseriesResource"), exports);
302
304
  __exportStar(require("./TraceElements"), exports);
303
305
  __exportStar(require("./UsAddress"), exports);
306
+ __exportStar(require("./UnrecognizedValueMacroExpr"), exports);
304
307
  __exportStar(require("./UserHistoricalPullsResponse"), exports);
305
308
  __exportStar(require("./UserInfo"), exports);
306
309
  __exportStar(require("./UserRefreshErrorResponse"), exports);
@@ -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.101", "User-Agent": "@tryvital/vital-node/3.1.101", "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.103", "User-Agent": "@tryvital/vital-node/3.1.103", "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.101", "User-Agent": "@tryvital/vital-node/3.1.101", "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.103", "User-Agent": "@tryvital/vital-node/3.1.103", "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",
@@ -43,14 +43,6 @@ export declare class Aggregate {
43
43
  * sleep: "session_start"
44
44
  * },
45
45
  * func: "mean"
46
- * }],
47
- * groupBy: [{
48
- * dateTrunc: {
49
- * unit: "minute"
50
- * },
51
- * arg: {
52
- * index: "sleep"
53
- * }
54
46
  * }]
55
47
  * }]
56
48
  * })
@@ -71,14 +71,6 @@ class Aggregate {
71
71
  * sleep: "session_start"
72
72
  * },
73
73
  * func: "mean"
74
- * }],
75
- * groupBy: [{
76
- * dateTrunc: {
77
- * unit: "minute"
78
- * },
79
- * arg: {
80
- * index: "sleep"
81
- * }
82
74
  * }]
83
75
  * }]
84
76
  * })
@@ -89,7 +81,7 @@ class Aggregate {
89
81
  const _response = yield core.fetcher({
90
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)}`),
91
83
  method: "POST",
92
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.101", "User-Agent": "@tryvital/vital-node/3.1.101", "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.103", "User-Agent": "@tryvital/vital-node/3.1.103", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
93
85
  contentType: "application/json",
94
86
  requestType: "json",
95
87
  body: serializers.Query.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -18,14 +18,6 @@ import * as Vital from "../../../../index";
18
18
  * sleep: "session_start"
19
19
  * },
20
20
  * func: "mean"
21
- * }],
22
- * groupBy: [{
23
- * dateTrunc: {
24
- * unit: "minute"
25
- * },
26
- * arg: {
27
- * index: "sleep"
28
- * }
29
21
  * }]
30
22
  * }]
31
23
  * }
@@ -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.101", "User-Agent": "@tryvital/vital-node/3.1.101", "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.103", "User-Agent": "@tryvital/vital-node/3.1.103", "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.101", "User-Agent": "@tryvital/vital-node/3.1.101", "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.103", "User-Agent": "@tryvital/vital-node/3.1.103", "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.101", "User-Agent": "@tryvital/vital-node/3.1.101", "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.103", "User-Agent": "@tryvital/vital-node/3.1.103", "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",
@@ -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.101", "User-Agent": "@tryvital/vital-node/3.1.101", "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.103", "User-Agent": "@tryvital/vital-node/3.1.103", "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.101", "User-Agent": "@tryvital/vital-node/3.1.101", "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.103", "User-Agent": "@tryvital/vital-node/3.1.103", "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.101", "User-Agent": "@tryvital/vital-node/3.1.101", "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.103", "User-Agent": "@tryvital/vital-node/3.1.103", "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.101", "User-Agent": "@tryvital/vital-node/3.1.101", "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.103", "User-Agent": "@tryvital/vital-node/3.1.103", "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",