@tryvital/vital-node 3.1.302 → 3.1.304

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 (212) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +7 -2
  3. package/api/resources/activity/client/Client.js +2 -2
  4. package/api/resources/aggregate/client/Client.js +3 -3
  5. package/api/resources/body/client/Client.js +2 -2
  6. package/api/resources/devices/client/Client.js +1 -1
  7. package/api/resources/electrocardiogram/client/Client.js +1 -1
  8. package/api/resources/index.d.ts +2 -0
  9. package/api/resources/index.js +3 -1
  10. package/api/resources/insurance/client/Client.js +3 -3
  11. package/api/resources/introspect/client/Client.js +2 -2
  12. package/api/resources/labTests/client/Client.d.ts +1 -1
  13. package/api/resources/labTests/client/Client.js +42 -42
  14. package/api/resources/link/client/Client.js +19 -19
  15. package/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
  16. package/api/resources/meal/client/Client.js +1 -1
  17. package/api/resources/menstrualCycle/client/Client.js +1 -1
  18. package/api/resources/order/client/Client.js +1 -1
  19. package/api/resources/payor/client/Client.d.ts +46 -0
  20. package/api/resources/payor/client/Client.js +130 -0
  21. package/api/resources/payor/client/index.d.ts +1 -0
  22. package/api/resources/payor/client/index.js +17 -0
  23. package/api/resources/payor/client/requests/CreatePayorBody.d.ts +23 -0
  24. package/api/resources/payor/client/requests/CreatePayorBody.js +5 -0
  25. package/api/resources/payor/client/requests/index.d.ts +1 -0
  26. package/api/resources/payor/client/requests/index.js +2 -0
  27. package/api/resources/payor/index.d.ts +1 -0
  28. package/api/resources/payor/index.js +17 -0
  29. package/api/resources/profile/client/Client.js +2 -2
  30. package/api/resources/providers/client/Client.js +1 -1
  31. package/api/resources/sleep/client/Client.js +4 -4
  32. package/api/resources/sleepCycle/client/Client.js +1 -1
  33. package/api/resources/team/client/Client.js +7 -7
  34. package/api/resources/testkit/client/Client.js +2 -2
  35. package/api/resources/user/client/Client.js +16 -16
  36. package/api/resources/vitals/client/Client.js +78 -78
  37. package/api/resources/workouts/client/Client.js +3 -3
  38. package/api/types/BloodPressureTimeseriesExpr.d.ts +1 -0
  39. package/api/types/BloodPressureTimeseriesExprField.d.ts +3 -0
  40. package/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +1 -1
  41. package/api/types/ClientFacingBodyTemperatureSample.d.ts +1 -1
  42. package/api/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +2 -1
  43. package/api/types/ClientFacingConnectionErrorDetailsErrorType.js +1 -0
  44. package/api/types/ClientFacingElectrocardiogram.d.ts +2 -0
  45. package/api/types/ClientFacingPayor.d.ts +14 -0
  46. package/api/types/ClientFacingPayor.js +5 -0
  47. package/api/types/ClientFacingProfile.d.ts +2 -0
  48. package/api/types/ClientFacingSleepBreathingDisturbanceSample.d.ts +1 -0
  49. package/api/types/ClientFacingSleepCycle.d.ts +1 -0
  50. package/api/types/ClientFacingWorkoutDurationSample.d.ts +1 -1
  51. package/api/types/DatePartExpr.d.ts +1 -0
  52. package/api/types/DatePartExprDatePart.d.ts +3 -0
  53. package/api/types/DiscreteTimeseriesExpr.d.ts +1 -0
  54. package/api/types/DiscreteTimeseriesExprField.d.ts +3 -0
  55. package/api/types/IntervalTimeseriesExpr.d.ts +1 -0
  56. package/api/types/IntervalTimeseriesExprField.d.ts +3 -0
  57. package/api/types/NoteTimeseriesExpr.d.ts +1 -0
  58. package/api/types/NoteTimeseriesExprField.d.ts +3 -0
  59. package/api/types/ProviderConnectionErrorErrorType.d.ts +2 -1
  60. package/api/types/ProviderConnectionErrorErrorType.js +1 -0
  61. package/api/types/ProviderLinkResponse.d.ts +5 -1
  62. package/api/types/ProviderLinkResponseErrorType.d.ts +18 -0
  63. package/api/types/ProviderLinkResponseErrorType.js +20 -0
  64. package/api/types/ProviderMfaRequest.d.ts +2 -1
  65. package/api/types/ProviderMfaRequestMethod.d.ts +1 -1
  66. package/api/types/Sex.d.ts +12 -0
  67. package/api/types/Sex.js +11 -0
  68. package/api/types/SourceColumnExpr.d.ts +1 -0
  69. package/api/types/SourceColumnExprSource.d.ts +3 -0
  70. package/api/types/TemperatureTimeseriesExpr.d.ts +1 -0
  71. package/api/types/TemperatureTimeseriesExprField.d.ts +3 -0
  72. package/api/types/WorkoutDurationTimeseriesExpr.d.ts +1 -0
  73. package/api/types/WorkoutDurationTimeseriesExprField.d.ts +3 -0
  74. package/api/types/index.d.ts +3 -0
  75. package/api/types/index.js +3 -0
  76. package/dist/Client.d.ts +3 -0
  77. package/dist/Client.js +7 -2
  78. package/dist/api/resources/activity/client/Client.js +2 -2
  79. package/dist/api/resources/aggregate/client/Client.js +3 -3
  80. package/dist/api/resources/body/client/Client.js +2 -2
  81. package/dist/api/resources/devices/client/Client.js +1 -1
  82. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  83. package/dist/api/resources/index.d.ts +2 -0
  84. package/dist/api/resources/index.js +3 -1
  85. package/dist/api/resources/insurance/client/Client.js +3 -3
  86. package/dist/api/resources/introspect/client/Client.js +2 -2
  87. package/dist/api/resources/labTests/client/Client.d.ts +1 -1
  88. package/dist/api/resources/labTests/client/Client.js +42 -42
  89. package/dist/api/resources/link/client/Client.js +19 -19
  90. package/dist/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
  91. package/dist/api/resources/meal/client/Client.js +1 -1
  92. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  93. package/dist/api/resources/order/client/Client.js +1 -1
  94. package/dist/api/resources/payor/client/Client.d.ts +46 -0
  95. package/dist/api/resources/payor/client/Client.js +130 -0
  96. package/dist/api/resources/payor/client/index.d.ts +1 -0
  97. package/dist/api/resources/payor/client/index.js +17 -0
  98. package/dist/api/resources/payor/client/requests/CreatePayorBody.d.ts +23 -0
  99. package/dist/api/resources/payor/client/requests/CreatePayorBody.js +5 -0
  100. package/dist/api/resources/payor/client/requests/index.d.ts +1 -0
  101. package/dist/api/resources/payor/client/requests/index.js +2 -0
  102. package/dist/api/resources/payor/index.d.ts +1 -0
  103. package/dist/api/resources/payor/index.js +17 -0
  104. package/dist/api/resources/profile/client/Client.js +2 -2
  105. package/dist/api/resources/providers/client/Client.js +1 -1
  106. package/dist/api/resources/sleep/client/Client.js +4 -4
  107. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  108. package/dist/api/resources/team/client/Client.js +7 -7
  109. package/dist/api/resources/testkit/client/Client.js +2 -2
  110. package/dist/api/resources/user/client/Client.js +16 -16
  111. package/dist/api/resources/vitals/client/Client.js +78 -78
  112. package/dist/api/resources/workouts/client/Client.js +3 -3
  113. package/dist/api/types/BloodPressureTimeseriesExpr.d.ts +1 -0
  114. package/dist/api/types/BloodPressureTimeseriesExprField.d.ts +3 -0
  115. package/dist/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +1 -1
  116. package/dist/api/types/ClientFacingBodyTemperatureSample.d.ts +1 -1
  117. package/dist/api/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +2 -1
  118. package/dist/api/types/ClientFacingConnectionErrorDetailsErrorType.js +1 -0
  119. package/dist/api/types/ClientFacingElectrocardiogram.d.ts +2 -0
  120. package/dist/api/types/ClientFacingPayor.d.ts +14 -0
  121. package/dist/api/types/ClientFacingPayor.js +5 -0
  122. package/dist/api/types/ClientFacingProfile.d.ts +2 -0
  123. package/dist/api/types/ClientFacingSleepBreathingDisturbanceSample.d.ts +1 -0
  124. package/dist/api/types/ClientFacingSleepCycle.d.ts +1 -0
  125. package/dist/api/types/ClientFacingWorkoutDurationSample.d.ts +1 -1
  126. package/dist/api/types/DatePartExpr.d.ts +1 -0
  127. package/dist/api/types/DatePartExprDatePart.d.ts +3 -0
  128. package/dist/api/types/DiscreteTimeseriesExpr.d.ts +1 -0
  129. package/dist/api/types/DiscreteTimeseriesExprField.d.ts +3 -0
  130. package/dist/api/types/IntervalTimeseriesExpr.d.ts +1 -0
  131. package/dist/api/types/IntervalTimeseriesExprField.d.ts +3 -0
  132. package/dist/api/types/NoteTimeseriesExpr.d.ts +1 -0
  133. package/dist/api/types/NoteTimeseriesExprField.d.ts +3 -0
  134. package/dist/api/types/ProviderConnectionErrorErrorType.d.ts +2 -1
  135. package/dist/api/types/ProviderConnectionErrorErrorType.js +1 -0
  136. package/dist/api/types/ProviderLinkResponse.d.ts +5 -1
  137. package/dist/api/types/ProviderLinkResponseErrorType.d.ts +18 -0
  138. package/dist/api/types/ProviderLinkResponseErrorType.js +20 -0
  139. package/dist/api/types/ProviderMfaRequest.d.ts +2 -1
  140. package/dist/api/types/ProviderMfaRequestMethod.d.ts +1 -1
  141. package/dist/api/types/Sex.d.ts +12 -0
  142. package/dist/api/types/Sex.js +11 -0
  143. package/dist/api/types/SourceColumnExpr.d.ts +1 -0
  144. package/dist/api/types/SourceColumnExprSource.d.ts +3 -0
  145. package/dist/api/types/TemperatureTimeseriesExpr.d.ts +1 -0
  146. package/dist/api/types/TemperatureTimeseriesExprField.d.ts +3 -0
  147. package/dist/api/types/WorkoutDurationTimeseriesExpr.d.ts +1 -0
  148. package/dist/api/types/WorkoutDurationTimeseriesExprField.d.ts +3 -0
  149. package/dist/api/types/index.d.ts +3 -0
  150. package/dist/api/types/index.js +3 -0
  151. package/dist/serialization/resources/index.d.ts +2 -0
  152. package/dist/serialization/resources/index.js +3 -1
  153. package/dist/serialization/resources/payor/client/index.d.ts +1 -0
  154. package/dist/serialization/resources/payor/client/index.js +17 -0
  155. package/dist/serialization/resources/payor/client/requests/CreatePayorBody.d.ts +17 -0
  156. package/dist/serialization/resources/payor/client/requests/CreatePayorBody.js +38 -0
  157. package/dist/serialization/resources/payor/client/requests/index.d.ts +1 -0
  158. package/dist/serialization/resources/payor/client/requests/index.js +5 -0
  159. package/dist/serialization/resources/payor/index.d.ts +1 -0
  160. package/dist/serialization/resources/payor/index.js +17 -0
  161. package/dist/serialization/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +1 -1
  162. package/dist/serialization/types/ClientFacingConnectionErrorDetailsErrorType.js +1 -0
  163. package/dist/serialization/types/ClientFacingPayor.d.ts +16 -0
  164. package/dist/serialization/types/ClientFacingPayor.js +37 -0
  165. package/dist/serialization/types/ClientFacingProfile.d.ts +4 -0
  166. package/dist/serialization/types/ClientFacingProfile.js +4 -0
  167. package/dist/serialization/types/ClientFacingSleepCycle.d.ts +1 -0
  168. package/dist/serialization/types/ClientFacingSleepCycle.js +1 -0
  169. package/dist/serialization/types/ProviderConnectionErrorErrorType.d.ts +1 -1
  170. package/dist/serialization/types/ProviderConnectionErrorErrorType.js +1 -0
  171. package/dist/serialization/types/ProviderLinkResponse.d.ts +2 -1
  172. package/dist/serialization/types/ProviderLinkResponse.js +2 -1
  173. package/dist/serialization/types/ProviderLinkResponseErrorType.d.ts +10 -0
  174. package/dist/serialization/types/ProviderLinkResponseErrorType.js +44 -0
  175. package/dist/serialization/types/Sex.d.ts +10 -0
  176. package/dist/serialization/types/Sex.js +35 -0
  177. package/dist/serialization/types/index.d.ts +3 -0
  178. package/dist/serialization/types/index.js +3 -0
  179. package/dist/version.d.ts +1 -1
  180. package/dist/version.js +1 -1
  181. package/package.json +1 -1
  182. package/reference.md +59 -0
  183. package/serialization/resources/index.d.ts +2 -0
  184. package/serialization/resources/index.js +3 -1
  185. package/serialization/resources/payor/client/index.d.ts +1 -0
  186. package/serialization/resources/payor/client/index.js +17 -0
  187. package/serialization/resources/payor/client/requests/CreatePayorBody.d.ts +17 -0
  188. package/serialization/resources/payor/client/requests/CreatePayorBody.js +38 -0
  189. package/serialization/resources/payor/client/requests/index.d.ts +1 -0
  190. package/serialization/resources/payor/client/requests/index.js +5 -0
  191. package/serialization/resources/payor/index.d.ts +1 -0
  192. package/serialization/resources/payor/index.js +17 -0
  193. package/serialization/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +1 -1
  194. package/serialization/types/ClientFacingConnectionErrorDetailsErrorType.js +1 -0
  195. package/serialization/types/ClientFacingPayor.d.ts +16 -0
  196. package/serialization/types/ClientFacingPayor.js +37 -0
  197. package/serialization/types/ClientFacingProfile.d.ts +4 -0
  198. package/serialization/types/ClientFacingProfile.js +4 -0
  199. package/serialization/types/ClientFacingSleepCycle.d.ts +1 -0
  200. package/serialization/types/ClientFacingSleepCycle.js +1 -0
  201. package/serialization/types/ProviderConnectionErrorErrorType.d.ts +1 -1
  202. package/serialization/types/ProviderConnectionErrorErrorType.js +1 -0
  203. package/serialization/types/ProviderLinkResponse.d.ts +2 -1
  204. package/serialization/types/ProviderLinkResponse.js +2 -1
  205. package/serialization/types/ProviderLinkResponseErrorType.d.ts +10 -0
  206. package/serialization/types/ProviderLinkResponseErrorType.js +44 -0
  207. package/serialization/types/Sex.d.ts +10 -0
  208. package/serialization/types/Sex.js +35 -0
  209. package/serialization/types/index.d.ts +3 -0
  210. package/serialization/types/index.js +3 -0
  211. package/version.d.ts +1 -1
  212. package/version.js +1 -1
@@ -78,7 +78,7 @@ class Workouts {
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/workouts/${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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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 Workouts {
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/workouts/${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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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",
@@ -216,7 +216,7 @@ class Workouts {
216
216
  const _response = yield core.fetcher({
217
217
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/workouts/${encodeURIComponent(workoutId)}/stream`),
218
218
  method: "GET",
219
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.302", "User-Agent": "@tryvital/vital-node/3.1.302", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
219
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.304", "User-Agent": "@tryvital/vital-node/3.1.304", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -4,5 +4,6 @@
4
4
  import * as Vital from "../index";
5
5
  export interface BloodPressureTimeseriesExpr {
6
6
  timeseries: "blood_pressure";
7
+ /** ℹ️ This enum is non-exhaustive. */
7
8
  field: Vital.BloodPressureTimeseriesExprField;
8
9
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type BloodPressureTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "systolic" | "diastolic";
5
8
  export declare const BloodPressureTimeseriesExprField: {
6
9
  readonly SourceProvider: "source_provider";
@@ -18,6 +18,6 @@ export interface ClientFacingBodyTemperatureDeltaSample {
18
18
  end: Date;
19
19
  /** The recorded value for the interval. */
20
20
  value: number;
21
- /** Location of the temperature sensor. */
21
+ /** Location of the temperature sensor. ℹ️ This enum is non-exhaustive. */
22
22
  sensorLocation?: Vital.ClientFacingBodyTemperatureDeltaSampleSensorLocation;
23
23
  }
@@ -18,6 +18,6 @@ export interface ClientFacingBodyTemperatureSample {
18
18
  end: Date;
19
19
  /** The recorded value for the interval. */
20
20
  value: number;
21
- /** Location of the temperature sensor. */
21
+ /** Location of the temperature sensor. ℹ️ This enum is non-exhaustive. */
22
22
  sensorLocation?: Vital.ClientFacingBodyTemperatureSampleSensorLocation;
23
23
  }
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * ℹ️ This enum is non-exhaustive.
6
6
  */
7
- export declare type ClientFacingConnectionErrorDetailsErrorType = "token_refresh_failed" | "webhook_registration_failed" | "user_not_found" | "deregistered_per_provider" | "required_scopes_not_granted" | "provider_credential_error" | "unknown";
7
+ export declare type ClientFacingConnectionErrorDetailsErrorType = "token_refresh_failed" | "webhook_registration_failed" | "user_not_found" | "deregistered_per_provider" | "required_scopes_not_granted" | "provider_credential_error" | "provider_password_expired" | "unknown";
8
8
  export declare const ClientFacingConnectionErrorDetailsErrorType: {
9
9
  readonly TokenRefreshFailed: "token_refresh_failed";
10
10
  readonly WebhookRegistrationFailed: "webhook_registration_failed";
@@ -12,5 +12,6 @@ export declare const ClientFacingConnectionErrorDetailsErrorType: {
12
12
  readonly DeregisteredPerProvider: "deregistered_per_provider";
13
13
  readonly RequiredScopesNotGranted: "required_scopes_not_granted";
14
14
  readonly ProviderCredentialError: "provider_credential_error";
15
+ readonly ProviderPasswordExpired: "provider_password_expired";
15
16
  readonly Unknown: "unknown";
16
17
  };
@@ -11,5 +11,6 @@ exports.ClientFacingConnectionErrorDetailsErrorType = {
11
11
  DeregisteredPerProvider: "deregistered_per_provider",
12
12
  RequiredScopesNotGranted: "required_scopes_not_granted",
13
13
  ProviderCredentialError: "provider_credential_error",
14
+ ProviderPasswordExpired: "provider_password_expired",
14
15
  Unknown: "unknown",
15
16
  };
@@ -9,7 +9,9 @@ export interface ClientFacingElectrocardiogram {
9
9
  voltageSampleCount: number;
10
10
  heartRateMean?: number;
11
11
  samplingFrequencyHz?: number;
12
+ /** ℹ️ This enum is non-exhaustive. */
12
13
  classification?: Vital.ClientFacingElectrocardiogramClassification;
14
+ /** ℹ️ This enum is non-exhaustive. */
13
15
  inconclusiveCause?: Vital.ClientFacingElectrocardiogramInconclusiveCause;
14
16
  algorithmVersion?: string;
15
17
  timeZone?: string;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface ClientFacingPayor {
6
+ /** Payor code returned for the insurance information. */
7
+ payorCode: string;
8
+ /** Insurance name returned for the insurance information. */
9
+ name: string;
10
+ /** Insurance name aliases returned for the insurance information. */
11
+ aliases: string[];
12
+ /** Insurance business address returned for the insurance information. */
13
+ orgAddress: Vital.Address;
14
+ }
@@ -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 });
@@ -9,6 +9,8 @@ export interface ClientFacingProfile {
9
9
  height?: number;
10
10
  birthDate?: string;
11
11
  wheelchairUse?: boolean;
12
+ gender?: Vital.Gender;
13
+ sex?: Vital.Sex;
12
14
  source: Vital.ClientFacingSource;
13
15
  createdAt: Date;
14
16
  updatedAt: Date;
@@ -7,6 +7,7 @@ export interface ClientFacingSleepBreathingDisturbanceSample {
7
7
  id?: number;
8
8
  /** Time zone UTC offset in seconds. Positive offset indicates east of UTC; negative offset indicates west of UTC; and null indicates the time zone information is unavailable at source. */
9
9
  timezoneOffset?: number;
10
+ /** ℹ️ This enum is non-exhaustive. */
10
11
  type?: Vital.ClientFacingSleepBreathingDisturbanceSampleType;
11
12
  unit: "count";
12
13
  /** Depracated. The start time (inclusive) of the interval. */
@@ -24,6 +24,7 @@ export interface ClientFacingSleepCycle {
24
24
  /** ℹ️ This enum is non-exhaustive. */
25
25
  sourceType: Vital.ClientFacingSleepCycleSourceType;
26
26
  sourceAppId?: string;
27
+ sourceDeviceId?: string;
27
28
  createdAt: Date;
28
29
  updatedAt: Date;
29
30
  userId: string;
@@ -18,6 +18,6 @@ export interface ClientFacingWorkoutDurationSample {
18
18
  end: Date;
19
19
  /** The recorded value for the interval. */
20
20
  value: number;
21
- /** Workout intensity. */
21
+ /** Workout intensity. ℹ️ This enum is non-exhaustive. */
22
22
  intensity?: Vital.ClientFacingWorkoutDurationSampleIntensity;
23
23
  }
@@ -4,5 +4,6 @@
4
4
  import * as Vital from "../index";
5
5
  export interface DatePartExpr {
6
6
  arg: Vital.DatePartExprArg;
7
+ /** ℹ️ This enum is non-exhaustive. */
7
8
  datePart: Vital.DatePartExprDatePart;
8
9
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type DatePartExprDatePart = "minute" | "hour" | "day" | "week" | "month" | "year" | "weekday" | "week_of_year" | "day_of_year";
5
8
  export declare const DatePartExprDatePart: {
6
9
  readonly Minute: "minute";
@@ -5,5 +5,6 @@ import * as Vital from "../index";
5
5
  export interface DiscreteTimeseriesExpr {
6
6
  /** ℹ️ This enum is non-exhaustive. */
7
7
  timeseries: Vital.DiscreteTimeseriesExprTimeseries;
8
+ /** ℹ️ This enum is non-exhaustive. */
8
9
  field: Vital.DiscreteTimeseriesExprField;
9
10
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type DiscreteTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "value";
5
8
  export declare const DiscreteTimeseriesExprField: {
6
9
  readonly SourceProvider: "source_provider";
@@ -5,5 +5,6 @@ import * as Vital from "../index";
5
5
  export interface IntervalTimeseriesExpr {
6
6
  /** ℹ️ This enum is non-exhaustive. */
7
7
  timeseries: Vital.IntervalTimeseriesExprTimeseries;
8
+ /** ℹ️ This enum is non-exhaustive. */
8
9
  field: Vital.IntervalTimeseriesExprField;
9
10
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type IntervalTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "duration" | "value";
5
8
  export declare const IntervalTimeseriesExprField: {
6
9
  readonly SourceProvider: "source_provider";
@@ -4,5 +4,6 @@
4
4
  import * as Vital from "../index";
5
5
  export interface NoteTimeseriesExpr {
6
6
  timeseries: "note";
7
+ /** ℹ️ This enum is non-exhaustive. */
7
8
  field: Vital.NoteTimeseriesExprField;
8
9
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type NoteTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "tags" | "content";
5
8
  export declare const NoteTimeseriesExprField: {
6
9
  readonly SourceProvider: "source_provider";
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * ℹ️ This enum is non-exhaustive.
6
6
  */
7
- export declare type ProviderConnectionErrorErrorType = "token_refresh_failed" | "webhook_registration_failed" | "user_not_found" | "deregistered_per_provider" | "required_scopes_not_granted" | "provider_credential_error" | "unknown";
7
+ export declare type ProviderConnectionErrorErrorType = "token_refresh_failed" | "webhook_registration_failed" | "user_not_found" | "deregistered_per_provider" | "required_scopes_not_granted" | "provider_credential_error" | "provider_password_expired" | "unknown";
8
8
  export declare const ProviderConnectionErrorErrorType: {
9
9
  readonly TokenRefreshFailed: "token_refresh_failed";
10
10
  readonly WebhookRegistrationFailed: "webhook_registration_failed";
@@ -12,5 +12,6 @@ export declare const ProviderConnectionErrorErrorType: {
12
12
  readonly DeregisteredPerProvider: "deregistered_per_provider";
13
13
  readonly RequiredScopesNotGranted: "required_scopes_not_granted";
14
14
  readonly ProviderCredentialError: "provider_credential_error";
15
+ readonly ProviderPasswordExpired: "provider_password_expired";
15
16
  readonly Unknown: "unknown";
16
17
  };
@@ -11,5 +11,6 @@ exports.ProviderConnectionErrorErrorType = {
11
11
  DeregisteredPerProvider: "deregistered_per_provider",
12
12
  RequiredScopesNotGranted: "required_scopes_not_granted",
13
13
  ProviderCredentialError: "provider_credential_error",
14
+ ProviderPasswordExpired: "provider_password_expired",
14
15
  Unknown: "unknown",
15
16
  };
@@ -5,9 +5,13 @@ import * as Vital from "../index";
5
5
  export interface ProviderLinkResponse {
6
6
  /** ℹ️ This enum is non-exhaustive. */
7
7
  state: Vital.ProviderLinkResponseState;
8
+ /** The redirect URL you supplied when creating the Link Token (via `POST /v2/link/token`). */
8
9
  redirectUrl?: string;
9
- errorType?: string;
10
+ /** The Link Error Type. This field is populated only when state is `error`. ℹ️ This enum is non-exhaustive. */
11
+ errorType?: Vital.ProviderLinkResponseErrorType;
12
+ /** A developer-readable debug description of the Link Error. This field is populated only when state is `error`. */
10
13
  error?: string;
14
+ /** The provider MFA request. This field is populated only when state is `pending_provider_mfa`. */
11
15
  providerMfa?: Vital.ProviderMfaRequest;
12
16
  provider: Vital.PasswordProviders;
13
17
  connected: boolean;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type ProviderLinkResponseErrorType = "invalid_token" | "token_expired" | "token_not_validated" | "token_consumed" | "provider_credential_error" | "provider_password_expired" | "provider_api_error" | "unsupported_region" | "duplicate_connection" | "required_scopes_not_granted" | "incorrect_mfa_code" | "user_cancelled";
5
+ export declare const ProviderLinkResponseErrorType: {
6
+ readonly InvalidToken: "invalid_token";
7
+ readonly TokenExpired: "token_expired";
8
+ readonly TokenNotValidated: "token_not_validated";
9
+ readonly TokenConsumed: "token_consumed";
10
+ readonly ProviderCredentialError: "provider_credential_error";
11
+ readonly ProviderPasswordExpired: "provider_password_expired";
12
+ readonly ProviderApiError: "provider_api_error";
13
+ readonly UnsupportedRegion: "unsupported_region";
14
+ readonly DuplicateConnection: "duplicate_connection";
15
+ readonly RequiredScopesNotGranted: "required_scopes_not_granted";
16
+ readonly IncorrectMfaCode: "incorrect_mfa_code";
17
+ readonly UserCancelled: "user_cancelled";
18
+ };
@@ -0,0 +1,20 @@
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.ProviderLinkResponseErrorType = void 0;
7
+ exports.ProviderLinkResponseErrorType = {
8
+ InvalidToken: "invalid_token",
9
+ TokenExpired: "token_expired",
10
+ TokenNotValidated: "token_not_validated",
11
+ TokenConsumed: "token_consumed",
12
+ ProviderCredentialError: "provider_credential_error",
13
+ ProviderPasswordExpired: "provider_password_expired",
14
+ ProviderApiError: "provider_api_error",
15
+ UnsupportedRegion: "unsupported_region",
16
+ DuplicateConnection: "duplicate_connection",
17
+ RequiredScopesNotGranted: "required_scopes_not_granted",
18
+ IncorrectMfaCode: "incorrect_mfa_code",
19
+ UserCancelled: "user_cancelled",
20
+ };
@@ -3,7 +3,8 @@
3
3
  */
4
4
  import * as Vital from "../index";
5
5
  export interface ProviderMfaRequest {
6
- /** ℹ️ This enum is non-exhaustive. */
6
+ /** The MFA method requested by the password provider to complete authentication. ℹ️ This enum is non-exhaustive. */
7
7
  method: Vital.ProviderMfaRequestMethod;
8
+ /** The MFA hint provided by the password provider, e.g., the redacted phone number. */
8
9
  hint: string;
9
10
  }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * ℹ️ This enum is non-exhaustive.
5
+ * The MFA method requested by the password provider to complete authentication. ℹ️ This enum is non-exhaustive.
6
6
  */
7
7
  export declare type ProviderMfaRequestMethod = "sms" | "email";
8
8
  export declare const ProviderMfaRequestMethod: {
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
7
+ export declare type Sex = "female" | "male" | "other";
8
+ export declare const Sex: {
9
+ readonly Female: "female";
10
+ readonly Male: "male";
11
+ readonly Other: "other";
12
+ };
@@ -0,0 +1,11 @@
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.Sex = void 0;
7
+ exports.Sex = {
8
+ Female: "female",
9
+ Male: "male",
10
+ Other: "other",
11
+ };
@@ -3,5 +3,6 @@
3
3
  */
4
4
  import * as Vital from "../index";
5
5
  export interface SourceColumnExpr {
6
+ /** ℹ️ This enum is non-exhaustive. */
6
7
  source: Vital.SourceColumnExprSource;
7
8
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type SourceColumnExprSource = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport";
5
8
  export declare const SourceColumnExprSource: {
6
9
  readonly SourceProvider: "source_provider";
@@ -5,5 +5,6 @@ import * as Vital from "../index";
5
5
  export interface TemperatureTimeseriesExpr {
6
6
  /** ℹ️ This enum is non-exhaustive. */
7
7
  timeseries: Vital.TemperatureTimeseriesExprTimeseries;
8
+ /** ℹ️ This enum is non-exhaustive. */
8
9
  field: Vital.TemperatureTimeseriesExprField;
9
10
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type TemperatureTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "duration" | "value" | "sensor_location";
5
8
  export declare const TemperatureTimeseriesExprField: {
6
9
  readonly SourceProvider: "source_provider";
@@ -4,5 +4,6 @@
4
4
  import * as Vital from "../index";
5
5
  export interface WorkoutDurationTimeseriesExpr {
6
6
  timeseries: "workout_duration";
7
+ /** ℹ️ This enum is non-exhaustive. */
7
8
  field: Vital.WorkoutDurationTimeseriesExprField;
8
9
  }
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * ℹ️ This enum is non-exhaustive.
6
+ */
4
7
  export declare type WorkoutDurationTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "duration" | "value" | "intensity";
5
8
  export declare const WorkoutDurationTimeseriesExprField: {
6
9
  readonly SourceProvider: "source_provider";
@@ -123,6 +123,7 @@ export * from "./ClientFacingOrderDetails";
123
123
  export * from "./ClientFacingOrder";
124
124
  export * from "./ClientFacingOrderEvent";
125
125
  export * from "./ClientFacingPatientDetailsCompatible";
126
+ export * from "./ClientFacingPayor";
126
127
  export * from "./ClientFacingPayorSearchResponse";
127
128
  export * from "./ClientFacingPayorSearchResponseDeprecated";
128
129
  export * from "./ClientFacingPeakExpiratoryFlowRateSample";
@@ -315,6 +316,7 @@ export * from "./ProviderConnectionCreated";
315
316
  export * from "./ProviderConnectionErrorErrorType";
316
317
  export * from "./ProviderConnectionError";
317
318
  export * from "./ProviderLinkResponseState";
319
+ export * from "./ProviderLinkResponseErrorType";
318
320
  export * from "./ProviderLinkResponse";
319
321
  export * from "./ProviderMfaRequestMethod";
320
322
  export * from "./ProviderMfaRequest";
@@ -346,6 +348,7 @@ export * from "./SampleDataDateReported";
346
348
  export * from "./SampleData";
347
349
  export * from "./ScopeRequirementsGrants";
348
350
  export * from "./ScopeRequirementsStr";
351
+ export * from "./Sex";
349
352
  export * from "./SexualActivityEntry";
350
353
  export * from "./SexualOrientation";
351
354
  export * from "./ShippingAddress";
@@ -139,6 +139,7 @@ __exportStar(require("./ClientFacingOrderDetails"), exports);
139
139
  __exportStar(require("./ClientFacingOrder"), exports);
140
140
  __exportStar(require("./ClientFacingOrderEvent"), exports);
141
141
  __exportStar(require("./ClientFacingPatientDetailsCompatible"), exports);
142
+ __exportStar(require("./ClientFacingPayor"), exports);
142
143
  __exportStar(require("./ClientFacingPayorSearchResponse"), exports);
143
144
  __exportStar(require("./ClientFacingPayorSearchResponseDeprecated"), exports);
144
145
  __exportStar(require("./ClientFacingPeakExpiratoryFlowRateSample"), exports);
@@ -331,6 +332,7 @@ __exportStar(require("./ProviderConnectionCreated"), exports);
331
332
  __exportStar(require("./ProviderConnectionErrorErrorType"), exports);
332
333
  __exportStar(require("./ProviderConnectionError"), exports);
333
334
  __exportStar(require("./ProviderLinkResponseState"), exports);
335
+ __exportStar(require("./ProviderLinkResponseErrorType"), exports);
334
336
  __exportStar(require("./ProviderLinkResponse"), exports);
335
337
  __exportStar(require("./ProviderMfaRequestMethod"), exports);
336
338
  __exportStar(require("./ProviderMfaRequest"), exports);
@@ -362,6 +364,7 @@ __exportStar(require("./SampleDataDateReported"), exports);
362
364
  __exportStar(require("./SampleData"), exports);
363
365
  __exportStar(require("./ScopeRequirementsGrants"), exports);
364
366
  __exportStar(require("./ScopeRequirementsStr"), exports);
367
+ __exportStar(require("./Sex"), exports);
365
368
  __exportStar(require("./SexualActivityEntry"), exports);
366
369
  __exportStar(require("./SexualOrientation"), exports);
367
370
  __exportStar(require("./ShippingAddress"), exports);
package/dist/Client.d.ts CHANGED
@@ -23,6 +23,7 @@ import { LabTests } from "./api/resources/labTests/client/Client";
23
23
  import { Testkit } from "./api/resources/testkit/client/Client";
24
24
  import { Order } from "./api/resources/order/client/Client";
25
25
  import { Insurance } from "./api/resources/insurance/client/Client";
26
+ import { Payor } from "./api/resources/payor/client/Client";
26
27
  import { Aggregate } from "./api/resources/aggregate/client/Client";
27
28
  export declare namespace VitalClient {
28
29
  interface Options {
@@ -81,6 +82,8 @@ export declare class VitalClient {
81
82
  get order(): Order;
82
83
  protected _insurance: Insurance | undefined;
83
84
  get insurance(): Insurance;
85
+ protected _payor: Payor | undefined;
86
+ get payor(): Payor;
84
87
  protected _aggregate: Aggregate | undefined;
85
88
  get aggregate(): Aggregate;
86
89
  }
package/dist/Client.js CHANGED
@@ -24,7 +24,8 @@ const Client_17 = require("./api/resources/labTests/client/Client");
24
24
  const Client_18 = require("./api/resources/testkit/client/Client");
25
25
  const Client_19 = require("./api/resources/order/client/Client");
26
26
  const Client_20 = require("./api/resources/insurance/client/Client");
27
- const Client_21 = require("./api/resources/aggregate/client/Client");
27
+ const Client_21 = require("./api/resources/payor/client/Client");
28
+ const Client_22 = require("./api/resources/aggregate/client/Client");
28
29
  class VitalClient {
29
30
  constructor(_options = {}) {
30
31
  this._options = _options;
@@ -109,9 +110,13 @@ class VitalClient {
109
110
  var _a;
110
111
  return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new Client_20.Insurance(this._options)));
111
112
  }
113
+ get payor() {
114
+ var _a;
115
+ return ((_a = this._payor) !== null && _a !== void 0 ? _a : (this._payor = new Client_21.Payor(this._options)));
116
+ }
112
117
  get aggregate() {
113
118
  var _a;
114
- return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new Client_21.Aggregate(this._options)));
119
+ return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new Client_22.Aggregate(this._options)));
115
120
  }
116
121
  }
117
122
  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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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/user/${encodeURIComponent(userId)}/query`),
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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.QueryBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -144,7 +144,7 @@ class Aggregate {
144
144
  const _response = yield core.fetcher({
145
145
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/user/${encodeURIComponent(userId)}/continuous_query/${encodeURIComponent(queryIdOrSlug)}/result_table`),
146
146
  method: "GET",
147
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.302", "User-Agent": "@tryvital/vital-node/3.1.302", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
147
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.304", "User-Agent": "@tryvital/vital-node/3.1.304", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
148
148
  contentType: "application/json",
149
149
  requestType: "json",
150
150
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -215,7 +215,7 @@ class Aggregate {
215
215
  const _response = yield core.fetcher({
216
216
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/user/${encodeURIComponent(userId)}/continuous_query/${encodeURIComponent(queryIdOrSlug)}/task_history`),
217
217
  method: "GET",
218
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.302", "User-Agent": "@tryvital/vital-node/3.1.302", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
218
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.304", "User-Agent": "@tryvital/vital-node/3.1.304", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
219
219
  contentType: "application/json",
220
220
  queryParameters: _queryParams,
221
221
  requestType: "json",
@@ -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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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.302", "User-Agent": "@tryvital/vital-node/3.1.302", "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.304", "User-Agent": "@tryvital/vital-node/3.1.304", "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",