@tryvital/vital-node 3.1.241 → 3.1.243

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 (89) 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 +40 -40
  9. package/api/resources/link/client/Client.js +19 -19
  10. package/api/resources/meal/client/Client.js +1 -1
  11. package/api/resources/menstrualCycle/client/Client.js +1 -1
  12. package/api/resources/order/client/Client.js +1 -1
  13. package/api/resources/profile/client/Client.js +2 -2
  14. package/api/resources/providers/client/Client.js +1 -1
  15. package/api/resources/sleep/client/Client.js +4 -4
  16. package/api/resources/sleepCycle/client/Client.js +1 -1
  17. package/api/resources/team/client/Client.js +7 -7
  18. package/api/resources/testkit/client/Client.js +2 -2
  19. package/api/resources/user/client/Client.js +16 -16
  20. package/api/resources/vitals/client/Client.js +75 -75
  21. package/api/resources/workouts/client/Client.js +3 -3
  22. package/api/types/ClientFacingActivity.d.ts +3 -1
  23. package/api/types/ClientFacingBody.d.ts +3 -1
  24. package/api/types/ClientFacingElectrocardiogram.d.ts +2 -2
  25. package/api/types/ClientFacingMenstrualCycle.d.ts +2 -2
  26. package/api/types/ClientFacingSleep.d.ts +3 -1
  27. package/api/types/ClientFacingSleepCycle.d.ts +2 -2
  28. package/api/types/ClientFacingWorkout.d.ts +3 -1
  29. package/dist/api/resources/activity/client/Client.js +2 -2
  30. package/dist/api/resources/aggregate/client/Client.js +2 -2
  31. package/dist/api/resources/body/client/Client.js +2 -2
  32. package/dist/api/resources/devices/client/Client.js +1 -1
  33. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  34. package/dist/api/resources/insurance/client/Client.js +3 -3
  35. package/dist/api/resources/introspect/client/Client.js +2 -2
  36. package/dist/api/resources/labTests/client/Client.js +40 -40
  37. package/dist/api/resources/link/client/Client.js +19 -19
  38. package/dist/api/resources/meal/client/Client.js +1 -1
  39. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  40. package/dist/api/resources/order/client/Client.js +1 -1
  41. package/dist/api/resources/profile/client/Client.js +2 -2
  42. package/dist/api/resources/providers/client/Client.js +1 -1
  43. package/dist/api/resources/sleep/client/Client.js +4 -4
  44. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  45. package/dist/api/resources/team/client/Client.js +7 -7
  46. package/dist/api/resources/testkit/client/Client.js +2 -2
  47. package/dist/api/resources/user/client/Client.js +16 -16
  48. package/dist/api/resources/vitals/client/Client.js +75 -75
  49. package/dist/api/resources/workouts/client/Client.js +3 -3
  50. package/dist/api/types/ClientFacingActivity.d.ts +3 -1
  51. package/dist/api/types/ClientFacingBody.d.ts +3 -1
  52. package/dist/api/types/ClientFacingElectrocardiogram.d.ts +2 -2
  53. package/dist/api/types/ClientFacingMenstrualCycle.d.ts +2 -2
  54. package/dist/api/types/ClientFacingSleep.d.ts +3 -1
  55. package/dist/api/types/ClientFacingSleepCycle.d.ts +2 -2
  56. package/dist/api/types/ClientFacingWorkout.d.ts +3 -1
  57. package/dist/serialization/types/ClientFacingActivity.d.ts +3 -1
  58. package/dist/serialization/types/ClientFacingActivity.js +3 -1
  59. package/dist/serialization/types/ClientFacingBody.d.ts +3 -1
  60. package/dist/serialization/types/ClientFacingBody.js +3 -1
  61. package/dist/serialization/types/ClientFacingElectrocardiogram.d.ts +2 -2
  62. package/dist/serialization/types/ClientFacingElectrocardiogram.js +2 -2
  63. package/dist/serialization/types/ClientFacingMenstrualCycle.d.ts +2 -2
  64. package/dist/serialization/types/ClientFacingMenstrualCycle.js +2 -2
  65. package/dist/serialization/types/ClientFacingSleep.d.ts +3 -1
  66. package/dist/serialization/types/ClientFacingSleep.js +3 -1
  67. package/dist/serialization/types/ClientFacingSleepCycle.d.ts +2 -2
  68. package/dist/serialization/types/ClientFacingSleepCycle.js +2 -2
  69. package/dist/serialization/types/ClientFacingWorkout.d.ts +3 -1
  70. package/dist/serialization/types/ClientFacingWorkout.js +3 -1
  71. package/dist/version.d.ts +1 -1
  72. package/dist/version.js +1 -1
  73. package/package.json +1 -1
  74. package/serialization/types/ClientFacingActivity.d.ts +3 -1
  75. package/serialization/types/ClientFacingActivity.js +3 -1
  76. package/serialization/types/ClientFacingBody.d.ts +3 -1
  77. package/serialization/types/ClientFacingBody.js +3 -1
  78. package/serialization/types/ClientFacingElectrocardiogram.d.ts +2 -2
  79. package/serialization/types/ClientFacingElectrocardiogram.js +2 -2
  80. package/serialization/types/ClientFacingMenstrualCycle.d.ts +2 -2
  81. package/serialization/types/ClientFacingMenstrualCycle.js +2 -2
  82. package/serialization/types/ClientFacingSleep.d.ts +3 -1
  83. package/serialization/types/ClientFacingSleep.js +3 -1
  84. package/serialization/types/ClientFacingSleepCycle.d.ts +2 -2
  85. package/serialization/types/ClientFacingSleepCycle.js +2 -2
  86. package/serialization/types/ClientFacingWorkout.d.ts +3 -1
  87. package/serialization/types/ClientFacingWorkout.js +3 -1
  88. package/version.d.ts +1 -1
  89. 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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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,
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import * as Vital from "../index";
5
5
  export interface ClientFacingActivity {
6
+ id: string;
6
7
  /** User id returned by vital create user request. This id should be stored in your database against the user and used for all interactions with the vital api. */
7
8
  userId: string;
8
- id: string;
9
9
  /** Date of the specified record, formatted as ISO8601 datetime string in UTC 00:00. Deprecated in favour of calendar_date. */
10
10
  date: Date;
11
11
  /** Date of the summary in the YYYY-mm-dd format. */
@@ -38,4 +38,6 @@ export interface ClientFacingActivity {
38
38
  heartRate?: Vital.ClientFacingHeartRate;
39
39
  wheelchairUse?: boolean;
40
40
  wheelchairPush?: number;
41
+ createdAt: Date;
42
+ updatedAt: Date;
41
43
  }
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import * as Vital from "../index";
5
5
  export interface ClientFacingBody {
6
+ id: string;
6
7
  /** User id returned by vital create user request. This id should be stored in your database against the user and used for all interactions with the vital api. */
7
8
  userId: string;
8
- id: string;
9
9
  /** Date of the specified record, formatted as ISO8601 datetime string in UTC 00:00. Deprecated in favour of calendar_date. */
10
10
  date: Date;
11
11
  /** Date of the summary in the YYYY-mm-dd format. */
@@ -26,4 +26,6 @@ export interface ClientFacingBody {
26
26
  leanBodyMassKilogram?: number;
27
27
  waistCircumferenceCentimeter?: number;
28
28
  source: Vital.ClientFacingSource;
29
+ createdAt: Date;
30
+ updatedAt: Date;
29
31
  }
@@ -18,8 +18,8 @@ export interface ClientFacingElectrocardiogram {
18
18
  sourceType: Vital.ClientFacingElectrocardiogramSourceType;
19
19
  sourceAppId?: string;
20
20
  sourceDeviceModel?: string;
21
- createdAt?: Date;
22
- updatedAt?: Date;
21
+ createdAt: Date;
22
+ updatedAt: Date;
23
23
  userId: string;
24
24
  source: Vital.ClientFacingSource;
25
25
  }
@@ -22,8 +22,8 @@ export interface ClientFacingMenstrualCycle {
22
22
  /** ℹ️ This enum is non-exhaustive. */
23
23
  sourceType: Vital.ClientFacingMenstrualCycleSourceType;
24
24
  sourceAppId?: string;
25
- createdAt?: Date;
26
- updatedAt?: Date;
25
+ createdAt: Date;
26
+ updatedAt: Date;
27
27
  userId: string;
28
28
  source: Vital.ClientFacingSource;
29
29
  }
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import * as Vital from "../index";
5
5
  export interface ClientFacingSleep {
6
+ id: string;
6
7
  /** User id returned by vital create user request. This id should be stored in your database against the user and used for all interactions with the vital api. */
7
8
  userId: string;
8
- id: string;
9
9
  /** Date of the specified record, formatted as ISO8601 datetime string in UTC 00:00. Deprecated in favour of calendar_date. */
10
10
  date: Date;
11
11
  /** Date of the sleep summary in the YYYY-mm-dd format. This generally matches the sleep end date. */
@@ -62,4 +62,6 @@ export interface ClientFacingSleep {
62
62
  /** Source the data has come from. */
63
63
  source: Vital.ClientFacingSource;
64
64
  sleepStream?: Vital.ClientFacingSleepStream;
65
+ createdAt: Date;
66
+ updatedAt: Date;
65
67
  }
@@ -24,8 +24,8 @@ export interface ClientFacingSleepCycle {
24
24
  /** ℹ️ This enum is non-exhaustive. */
25
25
  sourceType: Vital.ClientFacingSleepCycleSourceType;
26
26
  sourceAppId?: string;
27
- createdAt?: Date;
28
- updatedAt?: Date;
27
+ createdAt: Date;
28
+ updatedAt: Date;
29
29
  userId: string;
30
30
  source: Vital.ClientFacingSource;
31
31
  }
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import * as Vital from "../index";
5
5
  export interface ClientFacingWorkout {
6
+ id: string;
6
7
  /** User id returned by vital create user request. This id should be stored in your database against the user and used for all interactions with the vital api. */
7
8
  userId: string;
8
- id: string;
9
9
  /** Title given for the workout */
10
10
  title?: string;
11
11
  /** Timezone offset from UTC as seconds. For example, EEST (Eastern European Summer Time, +3h) is 10800. PST (Pacific Standard Time, -8h) is -28800::seconds */
@@ -56,4 +56,6 @@ export interface ClientFacingWorkout {
56
56
  providerId: string;
57
57
  /** Source the data has come from. */
58
58
  source: Vital.ClientFacingSource;
59
+ createdAt: Date;
60
+ updatedAt: Date;
59
61
  }
@@ -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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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.241", "User-Agent": "@tryvital/vital-node/3.1.241", "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.243", "User-Agent": "@tryvital/vital-node/3.1.243", "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",