@tryvital/vital-node 3.1.231 → 3.1.232

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 (129) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +2 -2
  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 +37 -37
  9. package/api/resources/link/client/Client.js +19 -19
  10. package/api/resources/link/client/requests/BulkImportConnectionsBody.d.ts +9 -0
  11. package/api/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +9 -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/order/client/Client.js +1 -1
  15. package/api/resources/profile/client/Client.js +2 -2
  16. package/api/resources/providers/client/Client.js +1 -1
  17. package/api/resources/sleep/client/Client.js +4 -4
  18. package/api/resources/sleepCycle/client/Client.js +1 -1
  19. package/api/resources/team/client/Client.js +7 -7
  20. package/api/resources/testkit/client/Client.js +2 -2
  21. package/api/resources/user/client/Client.js +16 -16
  22. package/api/resources/user/client/requests/UserInfoCreateRequest.d.ts +5 -0
  23. package/api/resources/vitals/client/Client.js +75 -75
  24. package/api/resources/workouts/client/Client.js +3 -3
  25. package/api/types/ClientFacingPatientDetailsCompatible.d.ts +11 -0
  26. package/api/types/Ethnicity.d.ts +10 -0
  27. package/api/types/Ethnicity.js +12 -0
  28. package/api/types/GenderIdentity.d.ts +12 -0
  29. package/api/types/GenderIdentity.js +14 -0
  30. package/api/types/GuarantorDetails.d.ts +2 -0
  31. package/api/types/PatientDetailsWithValidation.d.ts +10 -0
  32. package/api/types/Race.d.ts +12 -0
  33. package/api/types/Race.js +14 -0
  34. package/api/types/SexualOrientation.d.ts +11 -0
  35. package/api/types/SexualOrientation.js +13 -0
  36. package/api/types/UserInfo.d.ts +5 -0
  37. package/api/types/index.d.ts +4 -0
  38. package/api/types/index.js +4 -0
  39. package/dist/api/resources/activity/client/Client.js +2 -2
  40. package/dist/api/resources/aggregate/client/Client.js +2 -2
  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/electrocardiogram/client/Client.js +1 -1
  44. package/dist/api/resources/insurance/client/Client.js +3 -3
  45. package/dist/api/resources/introspect/client/Client.js +2 -2
  46. package/dist/api/resources/labTests/client/Client.js +37 -37
  47. package/dist/api/resources/link/client/Client.js +19 -19
  48. package/dist/api/resources/link/client/requests/BulkImportConnectionsBody.d.ts +9 -0
  49. package/dist/api/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +9 -0
  50. package/dist/api/resources/meal/client/Client.js +1 -1
  51. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  52. package/dist/api/resources/order/client/Client.js +1 -1
  53. package/dist/api/resources/profile/client/Client.js +2 -2
  54. package/dist/api/resources/providers/client/Client.js +1 -1
  55. package/dist/api/resources/sleep/client/Client.js +4 -4
  56. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  57. package/dist/api/resources/team/client/Client.js +7 -7
  58. package/dist/api/resources/testkit/client/Client.js +2 -2
  59. package/dist/api/resources/user/client/Client.js +16 -16
  60. package/dist/api/resources/user/client/requests/UserInfoCreateRequest.d.ts +5 -0
  61. package/dist/api/resources/vitals/client/Client.js +75 -75
  62. package/dist/api/resources/workouts/client/Client.js +3 -3
  63. package/dist/api/types/ClientFacingPatientDetailsCompatible.d.ts +11 -0
  64. package/dist/api/types/Ethnicity.d.ts +10 -0
  65. package/dist/api/types/Ethnicity.js +12 -0
  66. package/dist/api/types/GenderIdentity.d.ts +12 -0
  67. package/dist/api/types/GenderIdentity.js +14 -0
  68. package/dist/api/types/GuarantorDetails.d.ts +2 -0
  69. package/dist/api/types/PatientDetailsWithValidation.d.ts +10 -0
  70. package/dist/api/types/Race.d.ts +12 -0
  71. package/dist/api/types/Race.js +14 -0
  72. package/dist/api/types/SexualOrientation.d.ts +11 -0
  73. package/dist/api/types/SexualOrientation.js +13 -0
  74. package/dist/api/types/UserInfo.d.ts +5 -0
  75. package/dist/api/types/index.d.ts +4 -0
  76. package/dist/api/types/index.js +4 -0
  77. package/dist/serialization/resources/link/client/requests/BulkImportConnectionsBody.d.ts +1 -0
  78. package/dist/serialization/resources/link/client/requests/BulkImportConnectionsBody.js +1 -0
  79. package/dist/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +1 -0
  80. package/dist/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.js +1 -0
  81. package/dist/serialization/resources/user/client/requests/UserInfoCreateRequest.d.ts +10 -0
  82. package/dist/serialization/resources/user/client/requests/UserInfoCreateRequest.js +10 -0
  83. package/dist/serialization/types/ClientFacingPatientDetailsCompatible.d.ts +10 -0
  84. package/dist/serialization/types/ClientFacingPatientDetailsCompatible.js +10 -0
  85. package/dist/serialization/types/Ethnicity.d.ts +10 -0
  86. package/dist/serialization/types/Ethnicity.js +31 -0
  87. package/dist/serialization/types/GenderIdentity.d.ts +10 -0
  88. package/dist/serialization/types/GenderIdentity.js +38 -0
  89. package/dist/serialization/types/GuarantorDetails.d.ts +2 -0
  90. package/dist/serialization/types/GuarantorDetails.js +2 -0
  91. package/dist/serialization/types/PatientDetailsWithValidation.d.ts +10 -0
  92. package/dist/serialization/types/PatientDetailsWithValidation.js +10 -0
  93. package/dist/serialization/types/Race.d.ts +10 -0
  94. package/dist/serialization/types/Race.js +38 -0
  95. package/dist/serialization/types/SexualOrientation.d.ts +10 -0
  96. package/dist/serialization/types/SexualOrientation.js +37 -0
  97. package/dist/serialization/types/UserInfo.d.ts +10 -0
  98. package/dist/serialization/types/UserInfo.js +10 -0
  99. package/dist/serialization/types/index.d.ts +4 -0
  100. package/dist/serialization/types/index.js +4 -0
  101. package/dist/version.d.ts +1 -1
  102. package/dist/version.js +1 -1
  103. package/package.json +1 -1
  104. package/serialization/resources/link/client/requests/BulkImportConnectionsBody.d.ts +1 -0
  105. package/serialization/resources/link/client/requests/BulkImportConnectionsBody.js +1 -0
  106. package/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +1 -0
  107. package/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.js +1 -0
  108. package/serialization/resources/user/client/requests/UserInfoCreateRequest.d.ts +10 -0
  109. package/serialization/resources/user/client/requests/UserInfoCreateRequest.js +10 -0
  110. package/serialization/types/ClientFacingPatientDetailsCompatible.d.ts +10 -0
  111. package/serialization/types/ClientFacingPatientDetailsCompatible.js +10 -0
  112. package/serialization/types/Ethnicity.d.ts +10 -0
  113. package/serialization/types/Ethnicity.js +31 -0
  114. package/serialization/types/GenderIdentity.d.ts +10 -0
  115. package/serialization/types/GenderIdentity.js +38 -0
  116. package/serialization/types/GuarantorDetails.d.ts +2 -0
  117. package/serialization/types/GuarantorDetails.js +2 -0
  118. package/serialization/types/PatientDetailsWithValidation.d.ts +10 -0
  119. package/serialization/types/PatientDetailsWithValidation.js +10 -0
  120. package/serialization/types/Race.d.ts +10 -0
  121. package/serialization/types/Race.js +38 -0
  122. package/serialization/types/SexualOrientation.d.ts +10 -0
  123. package/serialization/types/SexualOrientation.js +37 -0
  124. package/serialization/types/UserInfo.d.ts +10 -0
  125. package/serialization/types/UserInfo.js +10 -0
  126. package/serialization/types/index.d.ts +4 -0
  127. package/serialization/types/index.js +4 -0
  128. package/version.d.ts +1 -1
  129. 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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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,
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Vital from "../index";
4
5
  export interface ClientFacingPatientDetailsCompatible {
5
6
  firstName?: string;
6
7
  lastName?: string;
@@ -8,4 +9,14 @@ export interface ClientFacingPatientDetailsCompatible {
8
9
  gender: string;
9
10
  phoneNumber?: string;
10
11
  email?: string;
12
+ /** Parent/medical_proxy details. Required if patient is a minor. */
13
+ medicalProxy?: Vital.GuarantorDetails;
14
+ /** If not provided, will be set to 'Not Specified' */
15
+ race?: Vital.Race;
16
+ /** If not provided, will be set to 'Not Specified' */
17
+ ethnicity?: Vital.Ethnicity;
18
+ /** If not provided, will be set to 'Not Specified' */
19
+ sexualOrientation?: Vital.SexualOrientation;
20
+ /** If not provided, will be set to 'Not Specified' */
21
+ genderIdentity?: Vital.GenderIdentity;
11
22
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type Ethnicity = "hispanic" | "non_hispanic" | "ashkenazi_jewish" | "other";
5
+ export declare const Ethnicity: {
6
+ readonly Hispanic: "hispanic";
7
+ readonly NonHispanic: "non_hispanic";
8
+ readonly AshkenaziJewish: "ashkenazi_jewish";
9
+ readonly Other: "other";
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.Ethnicity = void 0;
7
+ exports.Ethnicity = {
8
+ Hispanic: "hispanic",
9
+ NonHispanic: "non_hispanic",
10
+ AshkenaziJewish: "ashkenazi_jewish",
11
+ Other: "other",
12
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type GenderIdentity = "male" | "female" | "female_to_male_ftm_transgender_male_trans_man" | "male_to_female_mtf_transgender_female_trans_woman" | "genderqueer" | "other";
5
+ export declare const GenderIdentity: {
6
+ readonly Male: "male";
7
+ readonly Female: "female";
8
+ readonly FemaleToMaleFtmTransgenderMaleTransMan: "female_to_male_ftm_transgender_male_trans_man";
9
+ readonly MaleToFemaleMtfTransgenderFemaleTransWoman: "male_to_female_mtf_transgender_female_trans_woman";
10
+ readonly Genderqueer: "genderqueer";
11
+ readonly Other: "other";
12
+ };
@@ -0,0 +1,14 @@
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.GenderIdentity = void 0;
7
+ exports.GenderIdentity = {
8
+ Male: "male",
9
+ Female: "female",
10
+ FemaleToMaleFtmTransgenderMaleTransMan: "female_to_male_ftm_transgender_male_trans_man",
11
+ MaleToFemaleMtfTransgenderFemaleTransWoman: "male_to_female_mtf_transgender_female_trans_woman",
12
+ Genderqueer: "genderqueer",
13
+ Other: "other",
14
+ };
@@ -7,5 +7,7 @@ export interface GuarantorDetails {
7
7
  lastName: string;
8
8
  address: Vital.Address;
9
9
  phoneNumber: string;
10
+ householdIncome?: number;
11
+ householdSize?: number;
10
12
  email?: string;
11
13
  }
@@ -12,4 +12,14 @@ export interface PatientDetailsWithValidation {
12
12
  gender: Vital.Gender;
13
13
  phoneNumber: string;
14
14
  email: string;
15
+ /** Parent/medical_proxy details. Required if patient is a minor. */
16
+ medicalProxy?: Vital.GuarantorDetails;
17
+ /** If not provided, will be set to 'Not Specified' */
18
+ race?: Vital.Race;
19
+ /** If not provided, will be set to 'Not Specified' */
20
+ ethnicity?: Vital.Ethnicity;
21
+ /** If not provided, will be set to 'Not Specified' */
22
+ sexualOrientation?: Vital.SexualOrientation;
23
+ /** If not provided, will be set to 'Not Specified' */
24
+ genderIdentity?: Vital.GenderIdentity;
15
25
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type Race = "african_american_or_black" | "asian" | "indigenous_native_american_alaska_native" | "other" | "pacific_islander_or_hawaiian" | "white_caucasian";
5
+ export declare const Race: {
6
+ readonly AfricanAmericanOrBlack: "african_american_or_black";
7
+ readonly Asian: "asian";
8
+ readonly IndigenousNativeAmericanAlaskaNative: "indigenous_native_american_alaska_native";
9
+ readonly Other: "other";
10
+ readonly PacificIslanderOrHawaiian: "pacific_islander_or_hawaiian";
11
+ readonly WhiteCaucasian: "white_caucasian";
12
+ };
@@ -0,0 +1,14 @@
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.Race = void 0;
7
+ exports.Race = {
8
+ AfricanAmericanOrBlack: "african_american_or_black",
9
+ Asian: "asian",
10
+ IndigenousNativeAmericanAlaskaNative: "indigenous_native_american_alaska_native",
11
+ Other: "other",
12
+ PacificIslanderOrHawaiian: "pacific_islander_or_hawaiian",
13
+ WhiteCaucasian: "white_caucasian",
14
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type SexualOrientation = "lesbian_gay_or_homosexual" | "heterosexual_or_straight" | "bisexual" | "dont_know" | "other";
5
+ export declare const SexualOrientation: {
6
+ readonly LesbianGayOrHomosexual: "lesbian_gay_or_homosexual";
7
+ readonly HeterosexualOrStraight: "heterosexual_or_straight";
8
+ readonly Bisexual: "bisexual";
9
+ readonly DontKnow: "dont_know";
10
+ readonly Other: "other";
11
+ };
@@ -0,0 +1,13 @@
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.SexualOrientation = void 0;
7
+ exports.SexualOrientation = {
8
+ LesbianGayOrHomosexual: "lesbian_gay_or_homosexual",
9
+ HeterosexualOrStraight: "heterosexual_or_straight",
10
+ Bisexual: "bisexual",
11
+ DontKnow: "dont_know",
12
+ Other: "other",
13
+ };
@@ -10,4 +10,9 @@ export interface UserInfo {
10
10
  gender: string;
11
11
  dob: string;
12
12
  address: Vital.Address;
13
+ medicalProxy?: Vital.GuarantorDetails;
14
+ race?: Vital.Race;
15
+ ethnicity?: Vital.Ethnicity;
16
+ sexualOrientation?: Vital.SexualOrientation;
17
+ genderIdentity?: Vital.GenderIdentity;
13
18
  }
@@ -199,6 +199,7 @@ export * from "./DetectedDeviationEntry";
199
199
  export * from "./DeviceV2InDb";
200
200
  export * from "./EmailProviders";
201
201
  export * from "./Energy";
202
+ export * from "./Ethnicity";
202
203
  export * from "./EventDestinationPreferencesPreferred";
203
204
  export * from "./EventDestinationPreferencesEnabledItem";
204
205
  export * from "./EventDestinationPreferences";
@@ -207,6 +208,7 @@ export * from "./FallbackBirthDate";
207
208
  export * from "./FallbackTimeZone";
208
209
  export * from "./Fats";
209
210
  export * from "./Gender";
211
+ export * from "./GenderIdentity";
210
212
  export * from "./GetMarkersResponse";
211
213
  export * from "./GetOrdersResponse";
212
214
  export * from "./GroupKeyColumnExprGroupKey";
@@ -295,6 +297,7 @@ export * from "./QueryConfigProviderPriorityOverridesItem";
295
297
  export * from "./QueryConfig";
296
298
  export * from "./Question";
297
299
  export * from "./QuestionType";
300
+ export * from "./Race";
298
301
  export * from "./RawActivity";
299
302
  export * from "./RawBody";
300
303
  export * from "./RawDevices";
@@ -311,6 +314,7 @@ export * from "./ResultType";
311
314
  export * from "./ScopeRequirementsGrants";
312
315
  export * from "./ScopeRequirementsStr";
313
316
  export * from "./SexualActivityEntry";
317
+ export * from "./SexualOrientation";
314
318
  export * from "./ShippingAddress";
315
319
  export * from "./ShippingAddressWithValidation";
316
320
  export * from "./SingleHistoricalPullStatistics";
@@ -215,6 +215,7 @@ __exportStar(require("./DetectedDeviationEntry"), exports);
215
215
  __exportStar(require("./DeviceV2InDb"), exports);
216
216
  __exportStar(require("./EmailProviders"), exports);
217
217
  __exportStar(require("./Energy"), exports);
218
+ __exportStar(require("./Ethnicity"), exports);
218
219
  __exportStar(require("./EventDestinationPreferencesPreferred"), exports);
219
220
  __exportStar(require("./EventDestinationPreferencesEnabledItem"), exports);
220
221
  __exportStar(require("./EventDestinationPreferences"), exports);
@@ -223,6 +224,7 @@ __exportStar(require("./FallbackBirthDate"), exports);
223
224
  __exportStar(require("./FallbackTimeZone"), exports);
224
225
  __exportStar(require("./Fats"), exports);
225
226
  __exportStar(require("./Gender"), exports);
227
+ __exportStar(require("./GenderIdentity"), exports);
226
228
  __exportStar(require("./GetMarkersResponse"), exports);
227
229
  __exportStar(require("./GetOrdersResponse"), exports);
228
230
  __exportStar(require("./GroupKeyColumnExprGroupKey"), exports);
@@ -311,6 +313,7 @@ __exportStar(require("./QueryConfigProviderPriorityOverridesItem"), exports);
311
313
  __exportStar(require("./QueryConfig"), exports);
312
314
  __exportStar(require("./Question"), exports);
313
315
  __exportStar(require("./QuestionType"), exports);
316
+ __exportStar(require("./Race"), exports);
314
317
  __exportStar(require("./RawActivity"), exports);
315
318
  __exportStar(require("./RawBody"), exports);
316
319
  __exportStar(require("./RawDevices"), exports);
@@ -327,6 +330,7 @@ __exportStar(require("./ResultType"), exports);
327
330
  __exportStar(require("./ScopeRequirementsGrants"), exports);
328
331
  __exportStar(require("./ScopeRequirementsStr"), exports);
329
332
  __exportStar(require("./SexualActivityEntry"), exports);
333
+ __exportStar(require("./SexualOrientation"), exports);
330
334
  __exportStar(require("./ShippingAddress"), exports);
331
335
  __exportStar(require("./ShippingAddressWithValidation"), exports);
332
336
  __exportStar(require("./SingleHistoricalPullStatistics"), 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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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,
@@ -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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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.231", "User-Agent": "@tryvital/vital-node/3.1.231", "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.232", "User-Agent": "@tryvital/vital-node/3.1.232", "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",