@tryvital/vital-node 3.1.152 → 3.1.170

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +1 -1
  3. package/api/resources/body/client/Client.js +2 -2
  4. package/api/resources/devices/client/Client.js +1 -1
  5. package/api/resources/electrocardiogram/client/Client.js +1 -1
  6. package/api/resources/insurance/client/Client.js +3 -3
  7. package/api/resources/introspect/client/Client.js +2 -2
  8. package/api/resources/labTests/client/Client.js +34 -34
  9. package/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
  10. package/api/resources/link/client/Client.js +14 -14
  11. package/api/resources/link/client/requests/LinkTokenExchange.d.ts +1 -0
  12. package/api/resources/meal/client/Client.js +1 -1
  13. package/api/resources/menstrualCycle/client/Client.js +1 -1
  14. package/api/resources/profile/client/Client.js +2 -2
  15. package/api/resources/providers/client/Client.js +1 -1
  16. package/api/resources/sleep/client/Client.js +4 -4
  17. package/api/resources/sleepCycle/client/Client.js +1 -1
  18. package/api/resources/team/client/Client.js +7 -7
  19. package/api/resources/testkit/client/Client.d.ts +0 -1
  20. package/api/resources/testkit/client/Client.js +2 -3
  21. package/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +2 -2
  22. package/api/resources/user/client/Client.js +16 -16
  23. package/api/resources/vitals/client/Client.js +58 -58
  24. package/api/resources/workouts/client/Client.js +3 -3
  25. package/api/types/BulkExportConnectionsBody.d.ts +8 -0
  26. package/api/types/{QueryConfigWeekStartsOn.js → BulkExportConnectionsBody.js} +0 -5
  27. package/api/types/BulkExportConnectionsResponse.d.ts +8 -0
  28. package/{dist/api/types/QueryConfigWeekStartsOn.js → api/types/BulkExportConnectionsResponse.js} +0 -5
  29. package/api/types/BulkImportConnectionsBody.d.ts +8 -0
  30. package/api/types/BulkImportConnectionsBody.js +5 -0
  31. package/api/types/BulkPauseConnectionsBody.d.ts +8 -0
  32. package/api/types/BulkPauseConnectionsBody.js +5 -0
  33. package/api/types/BulkTriggerHistoricalPullBody.d.ts +8 -0
  34. package/api/types/BulkTriggerHistoricalPullBody.js +5 -0
  35. package/api/types/ClientFacingResource.d.ts +2 -2
  36. package/api/types/ClientFacingResource.js +1 -1
  37. package/api/types/ConnectionRecipe.d.ts +11 -0
  38. package/api/types/ConnectionRecipe.js +5 -0
  39. package/api/types/PatientAddressWithValidation.d.ts +13 -0
  40. package/api/types/PatientAddressWithValidation.js +5 -0
  41. package/api/types/QueryConfig.d.ts +0 -1
  42. package/api/types/index.d.ts +8 -2
  43. package/api/types/index.js +8 -2
  44. package/dist/api/resources/activity/client/Client.js +2 -2
  45. package/dist/api/resources/aggregate/client/Client.js +1 -1
  46. package/dist/api/resources/body/client/Client.js +2 -2
  47. package/dist/api/resources/devices/client/Client.js +1 -1
  48. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  49. package/dist/api/resources/insurance/client/Client.js +3 -3
  50. package/dist/api/resources/introspect/client/Client.js +2 -2
  51. package/dist/api/resources/labTests/client/Client.js +34 -34
  52. package/dist/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
  53. package/dist/api/resources/link/client/Client.js +14 -14
  54. package/dist/api/resources/link/client/requests/LinkTokenExchange.d.ts +1 -0
  55. package/dist/api/resources/meal/client/Client.js +1 -1
  56. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  57. package/dist/api/resources/profile/client/Client.js +2 -2
  58. package/dist/api/resources/providers/client/Client.js +1 -1
  59. package/dist/api/resources/sleep/client/Client.js +4 -4
  60. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  61. package/dist/api/resources/team/client/Client.js +7 -7
  62. package/dist/api/resources/testkit/client/Client.d.ts +0 -1
  63. package/dist/api/resources/testkit/client/Client.js +2 -3
  64. package/dist/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +2 -2
  65. package/dist/api/resources/user/client/Client.js +16 -16
  66. package/dist/api/resources/vitals/client/Client.js +58 -58
  67. package/dist/api/resources/workouts/client/Client.js +3 -3
  68. package/dist/api/types/BulkExportConnectionsBody.d.ts +8 -0
  69. package/dist/api/types/BulkExportConnectionsBody.js +5 -0
  70. package/dist/api/types/BulkExportConnectionsResponse.d.ts +8 -0
  71. package/dist/api/types/BulkExportConnectionsResponse.js +5 -0
  72. package/dist/api/types/BulkImportConnectionsBody.d.ts +8 -0
  73. package/dist/api/types/BulkImportConnectionsBody.js +5 -0
  74. package/dist/api/types/BulkPauseConnectionsBody.d.ts +8 -0
  75. package/dist/api/types/BulkPauseConnectionsBody.js +5 -0
  76. package/dist/api/types/BulkTriggerHistoricalPullBody.d.ts +8 -0
  77. package/dist/api/types/BulkTriggerHistoricalPullBody.js +5 -0
  78. package/dist/api/types/ClientFacingResource.d.ts +2 -2
  79. package/dist/api/types/ClientFacingResource.js +1 -1
  80. package/dist/api/types/ConnectionRecipe.d.ts +11 -0
  81. package/dist/api/types/ConnectionRecipe.js +5 -0
  82. package/dist/api/types/PatientAddressWithValidation.d.ts +13 -0
  83. package/dist/api/types/PatientAddressWithValidation.js +5 -0
  84. package/dist/api/types/QueryConfig.d.ts +0 -1
  85. package/dist/api/types/index.d.ts +8 -2
  86. package/dist/api/types/index.js +8 -2
  87. package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +2 -2
  88. package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +2 -2
  89. package/dist/serialization/resources/link/client/requests/LinkTokenExchange.d.ts +1 -0
  90. package/dist/serialization/resources/link/client/requests/LinkTokenExchange.js +1 -0
  91. package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +1 -1
  92. package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.js +1 -1
  93. package/dist/serialization/types/BulkExportConnectionsBody.d.ts +14 -0
  94. package/dist/serialization/types/BulkExportConnectionsBody.js +35 -0
  95. package/dist/serialization/types/BulkExportConnectionsResponse.d.ts +14 -0
  96. package/dist/serialization/types/BulkExportConnectionsResponse.js +35 -0
  97. package/dist/serialization/types/BulkImportConnectionsBody.d.ts +15 -0
  98. package/dist/serialization/types/BulkImportConnectionsBody.js +36 -0
  99. package/dist/serialization/types/BulkPauseConnectionsBody.d.ts +14 -0
  100. package/dist/serialization/types/{QueryConfigWeekStartsOn.js → BulkPauseConnectionsBody.js} +6 -2
  101. package/dist/serialization/types/BulkTriggerHistoricalPullBody.d.ts +14 -0
  102. package/dist/serialization/types/BulkTriggerHistoricalPullBody.js +35 -0
  103. package/dist/serialization/types/ClientFacingResource.d.ts +1 -1
  104. package/dist/serialization/types/ClientFacingResource.js +1 -1
  105. package/dist/serialization/types/ConnectionRecipe.d.ts +17 -0
  106. package/dist/serialization/types/ConnectionRecipe.js +38 -0
  107. package/dist/serialization/types/PatientAddressWithValidation.d.ts +19 -0
  108. package/dist/serialization/types/PatientAddressWithValidation.js +40 -0
  109. package/dist/serialization/types/QueryConfig.d.ts +0 -2
  110. package/dist/serialization/types/QueryConfig.js +0 -2
  111. package/dist/serialization/types/index.d.ts +8 -2
  112. package/dist/serialization/types/index.js +8 -2
  113. package/dist/version.d.ts +1 -1
  114. package/dist/version.js +1 -1
  115. package/package.json +1 -1
  116. package/reference.md +0 -1
  117. package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +2 -2
  118. package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +2 -2
  119. package/serialization/resources/link/client/requests/LinkTokenExchange.d.ts +1 -0
  120. package/serialization/resources/link/client/requests/LinkTokenExchange.js +1 -0
  121. package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +1 -1
  122. package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.js +1 -1
  123. package/serialization/types/BulkExportConnectionsBody.d.ts +14 -0
  124. package/serialization/types/BulkExportConnectionsBody.js +35 -0
  125. package/serialization/types/BulkExportConnectionsResponse.d.ts +14 -0
  126. package/serialization/types/BulkExportConnectionsResponse.js +35 -0
  127. package/serialization/types/BulkImportConnectionsBody.d.ts +15 -0
  128. package/serialization/types/BulkImportConnectionsBody.js +36 -0
  129. package/serialization/types/BulkPauseConnectionsBody.d.ts +14 -0
  130. package/serialization/types/{QueryConfigWeekStartsOn.js → BulkPauseConnectionsBody.js} +6 -2
  131. package/serialization/types/BulkTriggerHistoricalPullBody.d.ts +14 -0
  132. package/serialization/types/BulkTriggerHistoricalPullBody.js +35 -0
  133. package/serialization/types/ClientFacingResource.d.ts +1 -1
  134. package/serialization/types/ClientFacingResource.js +1 -1
  135. package/serialization/types/ConnectionRecipe.d.ts +17 -0
  136. package/serialization/types/ConnectionRecipe.js +38 -0
  137. package/serialization/types/PatientAddressWithValidation.d.ts +19 -0
  138. package/serialization/types/PatientAddressWithValidation.js +40 -0
  139. package/serialization/types/QueryConfig.d.ts +0 -2
  140. package/serialization/types/QueryConfig.js +0 -2
  141. package/serialization/types/index.d.ts +8 -2
  142. package/serialization/types/index.js +8 -2
  143. package/version.d.ts +1 -1
  144. package/version.js +1 -1
  145. package/api/types/QueryConfigWeekStartsOn.d.ts +0 -8
  146. package/dist/api/types/QueryConfigWeekStartsOn.d.ts +0 -8
  147. package/dist/serialization/types/QueryConfigWeekStartsOn.d.ts +0 -10
  148. package/serialization/types/QueryConfigWeekStartsOn.d.ts +0 -10
@@ -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.152", "User-Agent": "@tryvital/vital-node/3.1.152", "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.170", "User-Agent": "@tryvital/vital-node/3.1.170", "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.152", "User-Agent": "@tryvital/vital-node/3.1.152", "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.170", "User-Agent": "@tryvital/vital-node/3.1.170", "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.152", "User-Agent": "@tryvital/vital-node/3.1.152", "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.170", "User-Agent": "@tryvital/vital-node/3.1.170", "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,
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface BulkExportConnectionsBody {
6
+ userIds?: string[];
7
+ provider: Vital.OAuthProviders;
8
+ }
@@ -3,8 +3,3 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.QueryConfigWeekStartsOn = void 0;
7
- exports.QueryConfigWeekStartsOn = {
8
- Sunday: "sunday",
9
- Monday: "monday",
10
- };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface BulkExportConnectionsResponse {
6
+ data: Vital.ConnectionRecipe[];
7
+ nextToken?: string;
8
+ }
@@ -3,8 +3,3 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.QueryConfigWeekStartsOn = void 0;
7
- exports.QueryConfigWeekStartsOn = {
8
- Sunday: "sunday",
9
- Monday: "monday",
10
- };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface BulkImportConnectionsBody {
6
+ provider: Vital.OAuthProviders;
7
+ connections: Vital.ConnectionRecipe[];
8
+ }
@@ -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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface BulkPauseConnectionsBody {
6
+ userIds: string[];
7
+ provider: Vital.OAuthProviders;
8
+ }
@@ -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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface BulkTriggerHistoricalPullBody {
6
+ userIds: string[];
7
+ provider: Vital.OAuthProviders;
8
+ }
@@ -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 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" | "electrocardiogram_voltage" | "afib_burden" | "heart_rate_alert" | "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" | "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" | "electrocardiogram_voltage" | "afib_burden" | "heart_rate_alert" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream" | "hypnogram";
5
5
  export declare const ClientFacingResource: {
6
6
  readonly Profile: "profile";
7
7
  readonly Activity: "activity";
@@ -16,7 +16,6 @@ export declare const ClientFacingResource: {
16
16
  readonly Glucose: "glucose";
17
17
  readonly Heartrate: "heartrate";
18
18
  readonly Hrv: "hrv";
19
- readonly Hypnogram: "hypnogram";
20
19
  readonly Ige: "ige";
21
20
  readonly Igg: "igg";
22
21
  readonly BloodOxygen: "blood_oxygen";
@@ -50,4 +49,5 @@ export declare const ClientFacingResource: {
50
49
  readonly Carbohydrates: "carbohydrates";
51
50
  readonly Note: "note";
52
51
  readonly SleepStream: "sleep_stream";
52
+ readonly Hypnogram: "hypnogram";
53
53
  };
@@ -18,7 +18,6 @@ exports.ClientFacingResource = {
18
18
  Glucose: "glucose",
19
19
  Heartrate: "heartrate",
20
20
  Hrv: "hrv",
21
- Hypnogram: "hypnogram",
22
21
  Ige: "ige",
23
22
  Igg: "igg",
24
23
  BloodOxygen: "blood_oxygen",
@@ -52,4 +51,5 @@ exports.ClientFacingResource = {
52
51
  Carbohydrates: "carbohydrates",
53
52
  Note: "note",
54
53
  SleepStream: "sleep_stream",
54
+ Hypnogram: "hypnogram",
55
55
  };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ConnectionRecipe {
5
+ userId: string;
6
+ accessToken: string;
7
+ refreshToken: string;
8
+ providerId: string;
9
+ expiresAt: number;
10
+ oauthScopes?: string[];
11
+ }
@@ -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,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface PatientAddressWithValidation {
5
+ receiverName?: string;
6
+ firstLine: string;
7
+ secondLine?: string;
8
+ city: string;
9
+ state: string;
10
+ zip: string;
11
+ country: string;
12
+ phoneNumber?: string;
13
+ }
@@ -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 });
@@ -3,6 +3,5 @@
3
3
  */
4
4
  import * as Vital from "../index";
5
5
  export interface QueryConfig {
6
- weekStartsOn?: Vital.QueryConfigWeekStartsOn;
7
6
  providerPriorityOverrides?: Vital.QueryConfigProviderPriorityOverridesItem[];
8
7
  }
@@ -32,6 +32,11 @@ export * from "./BiomarkerResult";
32
32
  export * from "./BodyColumnExprBody";
33
33
  export * from "./BodyColumnExpr";
34
34
  export * from "./BodyV2InDb";
35
+ export * from "./BulkExportConnectionsBody";
36
+ export * from "./BulkExportConnectionsResponse";
37
+ export * from "./BulkImportConnectionsBody";
38
+ export * from "./BulkPauseConnectionsBody";
39
+ export * from "./BulkTriggerHistoricalPullBody";
35
40
  export * from "./CervicalMucusEntryQuality";
36
41
  export * from "./CervicalMucusEntry";
37
42
  export * from "./ChronotypeValueMacroExpr";
@@ -117,7 +122,6 @@ export * from "./ClientFacingProfile";
117
122
  export * from "./ClientFacingProvider";
118
123
  export * from "./ClientFacingProviderDetailed";
119
124
  export * from "./ClientFacingProviderWithStatus";
120
- export * from "./ClientFacingResource";
121
125
  export * from "./ClientFacingRespiratoryRateTimeseries";
122
126
  export * from "./ClientFacingResult";
123
127
  export * from "./ClientFacingShipment";
@@ -167,6 +171,7 @@ export * from "./ClientUserIdConflict";
167
171
  export * from "./ClientWorkoutResponse";
168
172
  export * from "./CompanyDetails";
169
173
  export * from "./ConnectedSourceClientFacing";
174
+ export * from "./ConnectionRecipe";
170
175
  export * from "./ConnectionStatusState";
171
176
  export * from "./ConnectionStatus";
172
177
  export * from "./Consent";
@@ -251,6 +256,7 @@ export * from "./PaginatedUsersResponse";
251
256
  export * from "./ParentBiomarkerData";
252
257
  export * from "./PasswordProviders";
253
258
  export * from "./PatientAddressCompatible";
259
+ export * from "./PatientAddressWithValidation";
254
260
  export * from "./PatientDetails";
255
261
  export * from "./PatientDetailsWithValidation";
256
262
  export * from "./PayorCodeExternalProvider";
@@ -274,7 +280,6 @@ export * from "./Providers";
274
280
  export * from "./QuerySelectItem";
275
281
  export * from "./QueryGroupByItem";
276
282
  export * from "./Query";
277
- export * from "./QueryConfigWeekStartsOn";
278
283
  export * from "./QueryConfigProviderPriorityOverridesItem";
279
284
  export * from "./QueryConfig";
280
285
  export * from "./Question";
@@ -287,6 +292,7 @@ export * from "./RawSleep";
287
292
  export * from "./RawWorkout";
288
293
  export * from "./Region";
289
294
  export * from "./RelativeTimeframe";
295
+ export * from "./ClientFacingResource";
290
296
  export * from "./ResourceAvailability";
291
297
  export * from "./ResponsibleRelationship";
292
298
  export * from "./ResultType";
@@ -48,6 +48,11 @@ __exportStar(require("./BiomarkerResult"), exports);
48
48
  __exportStar(require("./BodyColumnExprBody"), exports);
49
49
  __exportStar(require("./BodyColumnExpr"), exports);
50
50
  __exportStar(require("./BodyV2InDb"), exports);
51
+ __exportStar(require("./BulkExportConnectionsBody"), exports);
52
+ __exportStar(require("./BulkExportConnectionsResponse"), exports);
53
+ __exportStar(require("./BulkImportConnectionsBody"), exports);
54
+ __exportStar(require("./BulkPauseConnectionsBody"), exports);
55
+ __exportStar(require("./BulkTriggerHistoricalPullBody"), exports);
51
56
  __exportStar(require("./CervicalMucusEntryQuality"), exports);
52
57
  __exportStar(require("./CervicalMucusEntry"), exports);
53
58
  __exportStar(require("./ChronotypeValueMacroExpr"), exports);
@@ -133,7 +138,6 @@ __exportStar(require("./ClientFacingProfile"), exports);
133
138
  __exportStar(require("./ClientFacingProvider"), exports);
134
139
  __exportStar(require("./ClientFacingProviderDetailed"), exports);
135
140
  __exportStar(require("./ClientFacingProviderWithStatus"), exports);
136
- __exportStar(require("./ClientFacingResource"), exports);
137
141
  __exportStar(require("./ClientFacingRespiratoryRateTimeseries"), exports);
138
142
  __exportStar(require("./ClientFacingResult"), exports);
139
143
  __exportStar(require("./ClientFacingShipment"), exports);
@@ -183,6 +187,7 @@ __exportStar(require("./ClientUserIdConflict"), exports);
183
187
  __exportStar(require("./ClientWorkoutResponse"), exports);
184
188
  __exportStar(require("./CompanyDetails"), exports);
185
189
  __exportStar(require("./ConnectedSourceClientFacing"), exports);
190
+ __exportStar(require("./ConnectionRecipe"), exports);
186
191
  __exportStar(require("./ConnectionStatusState"), exports);
187
192
  __exportStar(require("./ConnectionStatus"), exports);
188
193
  __exportStar(require("./Consent"), exports);
@@ -267,6 +272,7 @@ __exportStar(require("./PaginatedUsersResponse"), exports);
267
272
  __exportStar(require("./ParentBiomarkerData"), exports);
268
273
  __exportStar(require("./PasswordProviders"), exports);
269
274
  __exportStar(require("./PatientAddressCompatible"), exports);
275
+ __exportStar(require("./PatientAddressWithValidation"), exports);
270
276
  __exportStar(require("./PatientDetails"), exports);
271
277
  __exportStar(require("./PatientDetailsWithValidation"), exports);
272
278
  __exportStar(require("./PayorCodeExternalProvider"), exports);
@@ -290,7 +296,6 @@ __exportStar(require("./Providers"), exports);
290
296
  __exportStar(require("./QuerySelectItem"), exports);
291
297
  __exportStar(require("./QueryGroupByItem"), exports);
292
298
  __exportStar(require("./Query"), exports);
293
- __exportStar(require("./QueryConfigWeekStartsOn"), exports);
294
299
  __exportStar(require("./QueryConfigProviderPriorityOverridesItem"), exports);
295
300
  __exportStar(require("./QueryConfig"), exports);
296
301
  __exportStar(require("./Question"), exports);
@@ -303,6 +308,7 @@ __exportStar(require("./RawSleep"), exports);
303
308
  __exportStar(require("./RawWorkout"), exports);
304
309
  __exportStar(require("./Region"), exports);
305
310
  __exportStar(require("./RelativeTimeframe"), exports);
311
+ __exportStar(require("./ClientFacingResource"), exports);
306
312
  __exportStar(require("./ResourceAvailability"), exports);
307
313
  __exportStar(require("./ResponsibleRelationship"), exports);
308
314
  __exportStar(require("./ResultType"), 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.152", "User-Agent": "@tryvital/vital-node/3.1.152", "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.170", "User-Agent": "@tryvital/vital-node/3.1.170", "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.152", "User-Agent": "@tryvital/vital-node/3.1.152", "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.170", "User-Agent": "@tryvital/vital-node/3.1.170", "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.152", "User-Agent": "@tryvital/vital-node/3.1.152", "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.170", "User-Agent": "@tryvital/vital-node/3.1.170", "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" }),
@@ -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.152", "User-Agent": "@tryvital/vital-node/3.1.152", "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.170", "User-Agent": "@tryvital/vital-node/3.1.170", "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.152", "User-Agent": "@tryvital/vital-node/3.1.152", "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.170", "User-Agent": "@tryvital/vital-node/3.1.170", "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.152", "User-Agent": "@tryvital/vital-node/3.1.152", "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.170", "User-Agent": "@tryvital/vital-node/3.1.170", "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",
@@ -78,7 +78,7 @@ class Electrocardiogram {
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/electrocardiogram/${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.152", "User-Agent": "@tryvital/vital-node/3.1.152", "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.170", "User-Agent": "@tryvital/vital-node/3.1.170", "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",
@@ -75,7 +75,7 @@ class Insurance {
75
75
  const _response = yield core.fetcher({
76
76
  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"),
77
77
  method: "GET",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.152", "User-Agent": "@tryvital/vital-node/3.1.152", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.170", "User-Agent": "@tryvital/vital-node/3.1.170", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
79
  contentType: "application/json",
80
80
  queryParameters: _queryParams,
81
81
  requestType: "json",
@@ -137,7 +137,7 @@ class Insurance {
137
137
  const _response = yield core.fetcher({
138
138
  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"),
139
139
  method: "POST",
140
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.152", "User-Agent": "@tryvital/vital-node/3.1.152", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
140
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.170", "User-Agent": "@tryvital/vital-node/3.1.170", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
141
141
  contentType: "application/json",
142
142
  requestType: "json",
143
143
  body: serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -204,7 +204,7 @@ class Insurance {
204
204
  const _response = yield core.fetcher({
205
205
  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"),
206
206
  method: "GET",
207
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.152", "User-Agent": "@tryvital/vital-node/3.1.152", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
207
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.170", "User-Agent": "@tryvital/vital-node/3.1.170", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
208
208
  contentType: "application/json",
209
209
  queryParameters: _queryParams,
210
210
  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.152", "User-Agent": "@tryvital/vital-node/3.1.152", "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.170", "User-Agent": "@tryvital/vital-node/3.1.170", "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.152", "User-Agent": "@tryvital/vital-node/3.1.152", "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.170", "User-Agent": "@tryvital/vital-node/3.1.170", "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",