@tryvital/vital-node 3.1.179 → 3.1.181

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 (92) 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/link/client/Client.d.ts +19 -0
  10. package/api/resources/link/client/Client.js +85 -14
  11. package/api/resources/link/client/requests/BulkImportConnectionsBody.d.ts +21 -0
  12. package/api/resources/link/client/requests/index.d.ts +1 -0
  13. package/api/resources/meal/client/Client.js +1 -1
  14. package/api/resources/menstrualCycle/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/vitals/client/Client.js +58 -58
  23. package/api/resources/workouts/client/Client.js +3 -3
  24. package/api/types/BulkImportConnectionsResponse.d.ts +7 -0
  25. package/api/types/ConnectionRecipe.d.ts +15 -0
  26. package/api/types/Region.d.ts +44 -5
  27. package/api/types/Region.js +43 -4
  28. package/api/types/index.d.ts +1 -1
  29. package/api/types/index.js +1 -1
  30. package/dist/api/resources/activity/client/Client.js +2 -2
  31. package/dist/api/resources/aggregate/client/Client.js +1 -1
  32. package/dist/api/resources/body/client/Client.js +2 -2
  33. package/dist/api/resources/devices/client/Client.js +1 -1
  34. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  35. package/dist/api/resources/insurance/client/Client.js +3 -3
  36. package/dist/api/resources/introspect/client/Client.js +2 -2
  37. package/dist/api/resources/labTests/client/Client.js +34 -34
  38. package/dist/api/resources/link/client/Client.d.ts +19 -0
  39. package/dist/api/resources/link/client/Client.js +85 -14
  40. package/dist/api/resources/link/client/requests/BulkImportConnectionsBody.d.ts +21 -0
  41. package/dist/api/resources/link/client/requests/BulkImportConnectionsBody.js +5 -0
  42. package/dist/api/resources/link/client/requests/index.d.ts +1 -0
  43. package/dist/api/resources/meal/client/Client.js +1 -1
  44. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  45. package/dist/api/resources/profile/client/Client.js +2 -2
  46. package/dist/api/resources/providers/client/Client.js +1 -1
  47. package/dist/api/resources/sleep/client/Client.js +4 -4
  48. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  49. package/dist/api/resources/team/client/Client.js +7 -7
  50. package/dist/api/resources/testkit/client/Client.js +2 -2
  51. package/dist/api/resources/user/client/Client.js +16 -16
  52. package/dist/api/resources/vitals/client/Client.js +58 -58
  53. package/dist/api/resources/workouts/client/Client.js +3 -3
  54. package/dist/api/types/BulkImportConnectionsResponse.d.ts +7 -0
  55. package/dist/api/types/BulkImportConnectionsResponse.js +5 -0
  56. package/dist/api/types/ConnectionRecipe.d.ts +15 -0
  57. package/dist/api/types/Region.d.ts +44 -5
  58. package/dist/api/types/Region.js +43 -4
  59. package/dist/api/types/index.d.ts +1 -1
  60. package/dist/api/types/index.js +1 -1
  61. package/dist/serialization/resources/link/client/requests/BulkImportConnectionsBody.d.ts +15 -0
  62. package/dist/serialization/{types → resources/link/client/requests}/BulkImportConnectionsBody.js +3 -3
  63. package/dist/serialization/resources/link/client/requests/index.d.ts +1 -0
  64. package/dist/serialization/resources/link/client/requests/index.js +3 -1
  65. package/dist/serialization/types/BulkImportConnectionsResponse.d.ts +13 -0
  66. package/dist/serialization/types/BulkImportConnectionsResponse.js +34 -0
  67. package/dist/serialization/types/Region.d.ts +1 -1
  68. package/dist/serialization/types/Region.js +43 -4
  69. package/dist/serialization/types/index.d.ts +1 -1
  70. package/dist/serialization/types/index.js +1 -1
  71. package/dist/version.d.ts +1 -1
  72. package/dist/version.js +1 -1
  73. package/package.json +1 -1
  74. package/reference.md +59 -0
  75. package/serialization/resources/link/client/requests/BulkImportConnectionsBody.d.ts +15 -0
  76. package/serialization/{types → resources/link/client/requests}/BulkImportConnectionsBody.js +3 -3
  77. package/serialization/resources/link/client/requests/index.d.ts +1 -0
  78. package/serialization/resources/link/client/requests/index.js +3 -1
  79. package/serialization/types/BulkImportConnectionsResponse.d.ts +13 -0
  80. package/serialization/types/BulkImportConnectionsResponse.js +34 -0
  81. package/serialization/types/Region.d.ts +1 -1
  82. package/serialization/types/Region.js +43 -4
  83. package/serialization/types/index.d.ts +1 -1
  84. package/serialization/types/index.js +1 -1
  85. package/version.d.ts +1 -1
  86. package/version.js +1 -1
  87. package/api/types/BulkImportConnectionsBody.d.ts +0 -8
  88. package/dist/api/types/BulkImportConnectionsBody.d.ts +0 -8
  89. package/dist/serialization/types/BulkImportConnectionsBody.d.ts +0 -15
  90. package/serialization/types/BulkImportConnectionsBody.d.ts +0 -15
  91. /package/api/{types → resources/link/client/requests}/BulkImportConnectionsBody.js +0 -0
  92. /package/{dist/api/types/BulkImportConnectionsBody.js → api/types/BulkImportConnectionsResponse.js} +0 -0
@@ -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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "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.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "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.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "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.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface BulkImportConnectionsResponse {
5
+ userIdsImported: string[];
6
+ userIdsFailed: string[];
7
+ }
@@ -2,10 +2,25 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface ConnectionRecipe {
5
+ /** Vital User ID. The user must be created ahead of the bulk import operation. */
5
6
  userId: string;
6
7
  accessToken: string;
7
8
  refreshToken: string;
9
+ /**
10
+ * User ID of the data provider.
11
+ *
12
+ * - Fitbit: 6-character Fitbit User ID
13
+ * - Garmin: 36-character Garmin User ID
14
+ */
8
15
  providerId: string;
16
+ /** Access token expiry date, in terms of UNIX epoch seconds. */
9
17
  expiresAt: number;
18
+ /**
19
+ * OAuth scopes of the data provider. Specify `null` if you do not
20
+ * have any scopes on record.
21
+ *
22
+ * - Fitbit: Has scopes
23
+ * - Garmin: No scope
24
+ */
10
25
  oauthScopes?: string[];
11
26
  }
@@ -1,16 +1,55 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type Region = "us" | "eu" | "sg" | "de" | "au" | "br" | "nl" | "fr" | "ca" | "in";
4
+ export declare type Region = "us" | "eu" | "de" | "fr" | "ca" | "br" | "ar" | "cl" | "co" | "mx" | "gb" | "ie" | "au" | "nz" | "nl" | "at" | "be" | "bh" | "ch" | "cz" | "dk" | "eg" | "es" | "fi" | "gr" | "hr" | "il" | "it" | "jo" | "kw" | "lb" | "lu" | "no" | "om" | "pl" | "pt" | "qa" | "sa" | "se" | "si" | "sk" | "tr" | "za" | "in" | "sg" | "hk" | "kr" | "ph" | "tw";
5
5
  export declare const Region: {
6
6
  readonly Us: "us";
7
7
  readonly Eu: "eu";
8
- readonly Sg: "sg";
9
8
  readonly De: "de";
10
- readonly Au: "au";
11
- readonly Br: "br";
12
- readonly Nl: "nl";
13
9
  readonly Fr: "fr";
14
10
  readonly Ca: "ca";
11
+ readonly Br: "br";
12
+ readonly Ar: "ar";
13
+ readonly Cl: "cl";
14
+ readonly Co: "co";
15
+ readonly Mx: "mx";
16
+ readonly Gb: "gb";
17
+ readonly Ie: "ie";
18
+ readonly Au: "au";
19
+ readonly Nz: "nz";
20
+ readonly Nl: "nl";
21
+ readonly At: "at";
22
+ readonly Be: "be";
23
+ readonly Bh: "bh";
24
+ readonly Ch: "ch";
25
+ readonly Cz: "cz";
26
+ readonly Dk: "dk";
27
+ readonly Eg: "eg";
28
+ readonly Es: "es";
29
+ readonly Fi: "fi";
30
+ readonly Gr: "gr";
31
+ readonly Hr: "hr";
32
+ readonly Il: "il";
33
+ readonly It: "it";
34
+ readonly Jo: "jo";
35
+ readonly Kw: "kw";
36
+ readonly Lb: "lb";
37
+ readonly Lu: "lu";
38
+ readonly No: "no";
39
+ readonly Om: "om";
40
+ readonly Pl: "pl";
41
+ readonly Pt: "pt";
42
+ readonly Qa: "qa";
43
+ readonly Sa: "sa";
44
+ readonly Se: "se";
45
+ readonly Si: "si";
46
+ readonly Sk: "sk";
47
+ readonly Tr: "tr";
48
+ readonly Za: "za";
15
49
  readonly In: "in";
50
+ readonly Sg: "sg";
51
+ readonly Hk: "hk";
52
+ readonly Kr: "kr";
53
+ readonly Ph: "ph";
54
+ readonly Tw: "tw";
16
55
  };
@@ -7,12 +7,51 @@ exports.Region = void 0;
7
7
  exports.Region = {
8
8
  Us: "us",
9
9
  Eu: "eu",
10
- Sg: "sg",
11
10
  De: "de",
12
- Au: "au",
13
- Br: "br",
14
- Nl: "nl",
15
11
  Fr: "fr",
16
12
  Ca: "ca",
13
+ Br: "br",
14
+ Ar: "ar",
15
+ Cl: "cl",
16
+ Co: "co",
17
+ Mx: "mx",
18
+ Gb: "gb",
19
+ Ie: "ie",
20
+ Au: "au",
21
+ Nz: "nz",
22
+ Nl: "nl",
23
+ At: "at",
24
+ Be: "be",
25
+ Bh: "bh",
26
+ Ch: "ch",
27
+ Cz: "cz",
28
+ Dk: "dk",
29
+ Eg: "eg",
30
+ Es: "es",
31
+ Fi: "fi",
32
+ Gr: "gr",
33
+ Hr: "hr",
34
+ Il: "il",
35
+ It: "it",
36
+ Jo: "jo",
37
+ Kw: "kw",
38
+ Lb: "lb",
39
+ Lu: "lu",
40
+ No: "no",
41
+ Om: "om",
42
+ Pl: "pl",
43
+ Pt: "pt",
44
+ Qa: "qa",
45
+ Sa: "sa",
46
+ Se: "se",
47
+ Si: "si",
48
+ Sk: "sk",
49
+ Tr: "tr",
50
+ Za: "za",
17
51
  In: "in",
52
+ Sg: "sg",
53
+ Hk: "hk",
54
+ Kr: "kr",
55
+ Ph: "ph",
56
+ Tw: "tw",
18
57
  };
@@ -34,7 +34,7 @@ export * from "./BodyColumnExpr";
34
34
  export * from "./BodyV2InDb";
35
35
  export * from "./BulkExportConnectionsBody";
36
36
  export * from "./BulkExportConnectionsResponse";
37
- export * from "./BulkImportConnectionsBody";
37
+ export * from "./BulkImportConnectionsResponse";
38
38
  export * from "./BulkPauseConnectionsBody";
39
39
  export * from "./BulkTriggerHistoricalPullBody";
40
40
  export * from "./CervicalMucusEntryQuality";
@@ -50,7 +50,7 @@ __exportStar(require("./BodyColumnExpr"), exports);
50
50
  __exportStar(require("./BodyV2InDb"), exports);
51
51
  __exportStar(require("./BulkExportConnectionsBody"), exports);
52
52
  __exportStar(require("./BulkExportConnectionsResponse"), exports);
53
- __exportStar(require("./BulkImportConnectionsBody"), exports);
53
+ __exportStar(require("./BulkImportConnectionsResponse"), exports);
54
54
  __exportStar(require("./BulkPauseConnectionsBody"), exports);
55
55
  __exportStar(require("./BulkTriggerHistoricalPullBody"), exports);
56
56
  __exportStar(require("./CervicalMucusEntryQuality"), 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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "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.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "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.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "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.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "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.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "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.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "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.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "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.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "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.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "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.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "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.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "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.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "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.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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",