@tryvital/vital-node 3.1.5 → 3.1.7

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 (103) hide show
  1. package/Client.d.ts +0 -1
  2. package/api/resources/activity/client/Client.d.ts +0 -1
  3. package/api/resources/activity/client/Client.js +2 -2
  4. package/api/resources/body/client/Client.d.ts +0 -1
  5. package/api/resources/body/client/Client.js +2 -2
  6. package/api/resources/devices/client/Client.d.ts +0 -1
  7. package/api/resources/devices/client/Client.js +1 -1
  8. package/api/resources/insurance/client/Client.d.ts +0 -1
  9. package/api/resources/insurance/client/Client.js +2 -2
  10. package/api/resources/introspect/client/Client.d.ts +0 -1
  11. package/api/resources/introspect/client/Client.js +2 -2
  12. package/api/resources/labTests/client/Client.d.ts +0 -1
  13. package/api/resources/labTests/client/Client.js +24 -24
  14. package/api/resources/link/client/Client.d.ts +3 -4
  15. package/api/resources/link/client/Client.js +26 -20
  16. package/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -0
  17. package/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -0
  18. package/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
  19. package/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +6 -0
  20. package/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.js +5 -0
  21. package/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +10 -0
  22. package/api/resources/link/client/requests/LinkGetAllProvidersRequest.js +5 -0
  23. package/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +10 -0
  24. package/api/resources/link/client/requests/LinkTokenStateRequest.js +5 -0
  25. package/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -0
  26. package/api/resources/link/client/requests/index.d.ts +3 -0
  27. package/api/resources/meal/client/Client.d.ts +0 -1
  28. package/api/resources/meal/client/Client.js +1 -1
  29. package/api/resources/profile/client/Client.d.ts +0 -1
  30. package/api/resources/profile/client/Client.js +2 -2
  31. package/api/resources/providers/client/Client.d.ts +0 -1
  32. package/api/resources/providers/client/Client.js +1 -1
  33. package/api/resources/sleep/client/Client.d.ts +0 -1
  34. package/api/resources/sleep/client/Client.js +4 -4
  35. package/api/resources/team/client/Client.d.ts +1 -2
  36. package/api/resources/team/client/Client.js +9 -8
  37. package/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +10 -0
  38. package/api/resources/team/client/requests/TeamGetLinkConfigRequest.js +5 -0
  39. package/api/resources/team/client/requests/index.d.ts +1 -0
  40. package/api/resources/testkit/client/Client.d.ts +0 -1
  41. package/api/resources/testkit/client/Client.js +2 -2
  42. package/api/resources/user/client/Client.d.ts +0 -1
  43. package/api/resources/user/client/Client.js +12 -12
  44. package/api/resources/vitals/client/Client.d.ts +0 -1
  45. package/api/resources/vitals/client/Client.js +50 -50
  46. package/api/resources/workouts/client/Client.d.ts +0 -1
  47. package/api/resources/workouts/client/Client.js +3 -3
  48. package/dist/Client.d.ts +0 -1
  49. package/dist/api/resources/activity/client/Client.d.ts +0 -1
  50. package/dist/api/resources/activity/client/Client.js +2 -2
  51. package/dist/api/resources/body/client/Client.d.ts +0 -1
  52. package/dist/api/resources/body/client/Client.js +2 -2
  53. package/dist/api/resources/devices/client/Client.d.ts +0 -1
  54. package/dist/api/resources/devices/client/Client.js +1 -1
  55. package/dist/api/resources/insurance/client/Client.d.ts +0 -1
  56. package/dist/api/resources/insurance/client/Client.js +2 -2
  57. package/dist/api/resources/introspect/client/Client.d.ts +0 -1
  58. package/dist/api/resources/introspect/client/Client.js +2 -2
  59. package/dist/api/resources/labTests/client/Client.d.ts +0 -1
  60. package/dist/api/resources/labTests/client/Client.js +24 -24
  61. package/dist/api/resources/link/client/Client.d.ts +3 -4
  62. package/dist/api/resources/link/client/Client.js +26 -20
  63. package/dist/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -0
  64. package/dist/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -0
  65. package/dist/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
  66. package/dist/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +6 -0
  67. package/dist/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.js +5 -0
  68. package/dist/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +10 -0
  69. package/dist/api/resources/link/client/requests/LinkGetAllProvidersRequest.js +5 -0
  70. package/dist/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +10 -0
  71. package/dist/api/resources/link/client/requests/LinkTokenStateRequest.js +5 -0
  72. package/dist/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -0
  73. package/dist/api/resources/link/client/requests/index.d.ts +3 -0
  74. package/dist/api/resources/meal/client/Client.d.ts +0 -1
  75. package/dist/api/resources/meal/client/Client.js +1 -1
  76. package/dist/api/resources/profile/client/Client.d.ts +0 -1
  77. package/dist/api/resources/profile/client/Client.js +2 -2
  78. package/dist/api/resources/providers/client/Client.d.ts +0 -1
  79. package/dist/api/resources/providers/client/Client.js +1 -1
  80. package/dist/api/resources/sleep/client/Client.d.ts +0 -1
  81. package/dist/api/resources/sleep/client/Client.js +4 -4
  82. package/dist/api/resources/team/client/Client.d.ts +1 -2
  83. package/dist/api/resources/team/client/Client.js +9 -8
  84. package/dist/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +10 -0
  85. package/dist/api/resources/team/client/requests/TeamGetLinkConfigRequest.js +5 -0
  86. package/dist/api/resources/team/client/requests/index.d.ts +1 -0
  87. package/dist/api/resources/testkit/client/Client.d.ts +0 -1
  88. package/dist/api/resources/testkit/client/Client.js +2 -2
  89. package/dist/api/resources/user/client/Client.d.ts +0 -1
  90. package/dist/api/resources/user/client/Client.js +12 -12
  91. package/dist/api/resources/vitals/client/Client.d.ts +0 -1
  92. package/dist/api/resources/vitals/client/Client.js +50 -50
  93. package/dist/api/resources/workouts/client/Client.d.ts +0 -1
  94. package/dist/api/resources/workouts/client/Client.js +3 -3
  95. package/dist/serialization/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
  96. package/dist/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
  97. package/dist/serialization/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
  98. package/dist/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
  99. package/package.json +1 -1
  100. package/serialization/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
  101. package/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
  102. package/serialization/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
  103. package/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
@@ -67,7 +67,7 @@ class User {
67
67
  const _response = yield core.fetcher({
68
68
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user"),
69
69
  method: "GET",
70
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
70
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
71
71
  contentType: "application/json",
72
72
  queryParameters: _queryParams,
73
73
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -123,7 +123,7 @@ class User {
123
123
  const _response = yield core.fetcher({
124
124
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user"),
125
125
  method: "POST",
126
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
126
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
127
  contentType: "application/json",
128
128
  body: yield serializers.UserCreateBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
129
129
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -179,7 +179,7 @@ class User {
179
179
  const _response = yield core.fetcher({
180
180
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user/metrics"),
181
181
  method: "GET",
182
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
182
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
183
183
  contentType: "application/json",
184
184
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
185
185
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -222,7 +222,7 @@ class User {
222
222
  const _response = yield core.fetcher({
223
223
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}/sign_in_token`),
224
224
  method: "POST",
225
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
225
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
226
226
  contentType: "application/json",
227
227
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
228
228
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -279,7 +279,7 @@ class User {
279
279
  const _response = yield core.fetcher({
280
280
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/providers/${userId}`),
281
281
  method: "GET",
282
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
282
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
283
283
  contentType: "application/json",
284
284
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
285
285
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -333,7 +333,7 @@ class User {
333
333
  const _response = yield core.fetcher({
334
334
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
335
335
  method: "GET",
336
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
336
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
337
337
  contentType: "application/json",
338
338
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
339
339
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -386,7 +386,7 @@ class User {
386
386
  const _response = yield core.fetcher({
387
387
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
388
388
  method: "DELETE",
389
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
389
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
390
390
  contentType: "application/json",
391
391
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
392
392
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -442,7 +442,7 @@ class User {
442
442
  const _response = yield core.fetcher({
443
443
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
444
444
  method: "PATCH",
445
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
445
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
446
446
  contentType: "application/json",
447
447
  body: yield serializers.UserPatchBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
448
448
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -492,7 +492,7 @@ class User {
492
492
  const _response = yield core.fetcher({
493
493
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/resolve/${clientUserId}`),
494
494
  method: "GET",
495
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
495
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
496
496
  contentType: "application/json",
497
497
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
498
498
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -545,7 +545,7 @@ class User {
545
545
  const _response = yield core.fetcher({
546
546
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}/${yield serializers.Providers.jsonOrThrow(provider)}`),
547
547
  method: "DELETE",
548
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
548
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
549
549
  contentType: "application/json",
550
550
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
551
551
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -606,7 +606,7 @@ class User {
606
606
  const _response = yield core.fetcher({
607
607
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user/undo_delete"),
608
608
  method: "POST",
609
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
609
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
610
610
  contentType: "application/json",
611
611
  queryParameters: _queryParams,
612
612
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -667,7 +667,7 @@ class User {
667
667
  const _response = yield core.fetcher({
668
668
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/refresh/${userId}`),
669
669
  method: "POST",
670
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
670
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
671
671
  contentType: "application/json",
672
672
  queryParameters: _queryParams,
673
673
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -8,7 +8,6 @@ export declare namespace Vitals {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VitalEnvironment | string>;
10
10
  apiKey: core.Supplier<string>;
11
- vitalLinkToken: core.Supplier<string>;
12
11
  }
13
12
  interface RequestOptions {
14
13
  timeoutInSeconds?: number;