@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
@@ -73,7 +73,7 @@ class Body {
73
73
  const _response = yield core.fetcher({
74
74
  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/${userId}`),
75
75
  method: "GET",
76
- 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())),
76
+ 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())),
77
77
  contentType: "application/json",
78
78
  queryParameters: _queryParams,
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -142,7 +142,7 @@ class Body {
142
142
  const _response = yield core.fetcher({
143
143
  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/${userId}/raw`),
144
144
  method: "GET",
145
- 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())),
145
+ 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())),
146
146
  contentType: "application/json",
147
147
  queryParameters: _queryParams,
148
148
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -8,7 +8,6 @@ export declare namespace Devices {
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;
@@ -67,7 +67,7 @@ class Devices {
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/summary/devices/${userId}/raw`),
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,
@@ -8,7 +8,6 @@ export declare namespace Insurance {
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;
@@ -58,7 +58,7 @@ class Insurance {
58
58
  const _response = yield core.fetcher({
59
59
  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"),
60
60
  method: "POST",
61
- 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())),
61
+ 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())),
62
62
  contentType: "application/json",
63
63
  body: yield serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
64
64
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -120,7 +120,7 @@ class Insurance {
120
120
  const _response = yield core.fetcher({
121
121
  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"),
122
122
  method: "GET",
123
- 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())),
123
+ 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())),
124
124
  contentType: "application/json",
125
125
  queryParameters: _queryParams,
126
126
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -8,7 +8,6 @@ export declare namespace Introspect {
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;
@@ -77,7 +77,7 @@ class Introspect {
77
77
  const _response = yield core.fetcher({
78
78
  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"),
79
79
  method: "GET",
80
- 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())),
80
+ 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())),
81
81
  contentType: "application/json",
82
82
  queryParameters: _queryParams,
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -150,7 +150,7 @@ class Introspect {
150
150
  const _response = yield core.fetcher({
151
151
  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"),
152
152
  method: "GET",
153
- 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())),
153
+ 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())),
154
154
  contentType: "application/json",
155
155
  queryParameters: _queryParams,
156
156
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -10,7 +10,6 @@ export declare namespace LabTests {
10
10
  interface Options {
11
11
  environment?: core.Supplier<environments.VitalEnvironment | string>;
12
12
  apiKey: core.Supplier<string>;
13
- vitalLinkToken: core.Supplier<string>;
14
13
  }
15
14
  interface RequestOptions {
16
15
  timeoutInSeconds?: number;
@@ -61,7 +61,7 @@ class LabTests {
61
61
  const _response = yield core.fetcher({
62
62
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests"),
63
63
  method: "GET",
64
- 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())),
64
+ 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())),
65
65
  contentType: "application/json",
66
66
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
67
67
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -104,7 +104,7 @@ class LabTests {
104
104
  const _response = yield core.fetcher({
105
105
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests"),
106
106
  method: "POST",
107
- 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())),
107
+ 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())),
108
108
  contentType: "application/json",
109
109
  body: yield serializers.CreateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
110
110
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -181,7 +181,7 @@ class LabTests {
181
181
  const _response = yield core.fetcher({
182
182
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/markers"),
183
183
  method: "GET",
184
- 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())),
184
+ 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())),
185
185
  contentType: "application/json",
186
186
  queryParameters: _queryParams,
187
187
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -246,7 +246,7 @@ class LabTests {
246
246
  const _response = yield core.fetcher({
247
247
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${labTestId}/markers`),
248
248
  method: "GET",
249
- 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())),
249
+ 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())),
250
250
  contentType: "application/json",
251
251
  queryParameters: _queryParams,
252
252
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -301,7 +301,7 @@ class LabTests {
301
301
  const _response = yield core.fetcher({
302
302
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${labId}/markers/${providerId}`),
303
303
  method: "GET",
304
- 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())),
304
+ 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())),
305
305
  contentType: "application/json",
306
306
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
307
307
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -357,7 +357,7 @@ class LabTests {
357
357
  const _response = yield core.fetcher({
358
358
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/labs"),
359
359
  method: "GET",
360
- 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())),
360
+ 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())),
361
361
  contentType: "application/json",
362
362
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
363
363
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -401,7 +401,7 @@ class LabTests {
401
401
  const _response = yield core.fetcher({
402
402
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${labTestId}`),
403
403
  method: "GET",
404
- 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())),
404
+ 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())),
405
405
  contentType: "application/json",
406
406
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
407
407
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -456,7 +456,7 @@ class LabTests {
456
456
  const _response = yield core.fetcher({
457
457
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/phlebotomy/appointment/availability"),
458
458
  method: "POST",
459
- 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())),
459
+ 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())),
460
460
  contentType: "application/json",
461
461
  body: yield serializers.UsAddress.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
462
462
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -511,7 +511,7 @@ class LabTests {
511
511
  const _response = yield core.fetcher({
512
512
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/book`),
513
513
  method: "POST",
514
- 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())),
514
+ 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())),
515
515
  contentType: "application/json",
516
516
  body: yield serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
517
517
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -566,7 +566,7 @@ class LabTests {
566
566
  const _response = yield core.fetcher({
567
567
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/request`),
568
568
  method: "POST",
569
- 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())),
569
+ 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())),
570
570
  contentType: "application/json",
571
571
  body: yield serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
572
572
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -621,7 +621,7 @@ class LabTests {
621
621
  const _response = yield core.fetcher({
622
622
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/reschedule`),
623
623
  method: "PATCH",
624
- 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())),
624
+ 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())),
625
625
  contentType: "application/json",
626
626
  body: yield serializers.AppointmentRescheduleRequest.jsonOrThrow(request, {
627
627
  unrecognizedObjectKeys: "strip",
@@ -678,7 +678,7 @@ class LabTests {
678
678
  const _response = yield core.fetcher({
679
679
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/cancel`),
680
680
  method: "PATCH",
681
- 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())),
681
+ 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())),
682
682
  contentType: "application/json",
683
683
  body: yield serializers.AppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
684
684
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -735,7 +735,7 @@ class LabTests {
735
735
  const _response = yield core.fetcher({
736
736
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/phlebotomy/appointment/cancellation-reasons"),
737
737
  method: "GET",
738
- 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())),
738
+ 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())),
739
739
  contentType: "application/json",
740
740
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
741
741
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -779,7 +779,7 @@ class LabTests {
779
779
  const _response = yield core.fetcher({
780
780
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment`),
781
781
  method: "GET",
782
- 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())),
782
+ 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())),
783
783
  contentType: "application/json",
784
784
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
785
785
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -840,7 +840,7 @@ class LabTests {
840
840
  const _response = yield core.fetcher({
841
841
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/area/info"),
842
842
  method: "GET",
843
- 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())),
843
+ 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())),
844
844
  contentType: "application/json",
845
845
  queryParameters: _queryParams,
846
846
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -894,7 +894,7 @@ class LabTests {
894
894
  const _response = yield core.fetcher({
895
895
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/result/pdf`),
896
896
  method: "GET",
897
- 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())),
897
+ 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())),
898
898
  contentType: "application/json",
899
899
  responseType: "streaming",
900
900
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -935,7 +935,7 @@ class LabTests {
935
935
  const _response = yield core.fetcher({
936
936
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/result/metadata`),
937
937
  method: "GET",
938
- 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())),
938
+ 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())),
939
939
  contentType: "application/json",
940
940
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
941
941
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -989,7 +989,7 @@ class LabTests {
989
989
  const _response = yield core.fetcher({
990
990
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/result`),
991
991
  method: "GET",
992
- 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())),
992
+ 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())),
993
993
  contentType: "application/json",
994
994
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
995
995
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1042,7 +1042,7 @@ class LabTests {
1042
1042
  const _response = yield core.fetcher({
1043
1043
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/requisition/pdf`),
1044
1044
  method: "GET",
1045
- 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())),
1045
+ 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())),
1046
1046
  contentType: "application/json",
1047
1047
  responseType: "streaming",
1048
1048
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1082,7 +1082,7 @@ class LabTests {
1082
1082
  const _response = yield core.fetcher({
1083
1083
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}`),
1084
1084
  method: "GET",
1085
- 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())),
1085
+ 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())),
1086
1086
  contentType: "application/json",
1087
1087
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1088
1088
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1136,7 +1136,7 @@ class LabTests {
1136
1136
  const _response = yield core.fetcher({
1137
1137
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order"),
1138
1138
  method: "POST",
1139
- 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())),
1139
+ 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())),
1140
1140
  contentType: "application/json",
1141
1141
  body: yield serializers.CreateOrderRequestCompatible.jsonOrThrow(request, {
1142
1142
  unrecognizedObjectKeys: "strip",
@@ -1193,7 +1193,7 @@ class LabTests {
1193
1193
  const _response = yield core.fetcher({
1194
1194
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/cancel`),
1195
1195
  method: "POST",
1196
- 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())),
1196
+ 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())),
1197
1197
  contentType: "application/json",
1198
1198
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1199
1199
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1255,7 +1255,7 @@ class LabTests {
1255
1255
  const _response = yield core.fetcher({
1256
1256
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/test`),
1257
1257
  method: "POST",
1258
- 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())),
1258
+ 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())),
1259
1259
  contentType: "application/json",
1260
1260
  queryParameters: _queryParams,
1261
1261
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1336,7 +1336,7 @@ class LabTests {
1336
1336
  const _response = yield core.fetcher({
1337
1337
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/orders"),
1338
1338
  method: "GET",
1339
- 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())),
1339
+ 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())),
1340
1340
  contentType: "application/json",
1341
1341
  queryParameters: _queryParams,
1342
1342
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -8,7 +8,6 @@ export declare namespace Link {
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;
@@ -51,7 +50,7 @@ export declare class Link {
51
50
  * @example
52
51
  * await vital.link.tokenState()
53
52
  */
54
- tokenState(requestOptions?: Link.RequestOptions): Promise<Record<string, unknown>>;
53
+ tokenState(request?: Vital.LinkTokenStateRequest, requestOptions?: Link.RequestOptions): Promise<Record<string, unknown>>;
55
54
  /**
56
55
  * Deprecated. Use `POST /v2/link/provider/email/{provider}` instead.
57
56
  * @throws {@link Vital.UnprocessableEntityError}
@@ -66,7 +65,7 @@ export declare class Link {
66
65
  * This endpoint generates an OAuth link for oauth provider
67
66
  * @throws {@link Vital.UnprocessableEntityError}
68
67
  */
69
- generateOauthLink(oauthProvider: Vital.OAuthProviders, requestOptions?: Link.RequestOptions): Promise<Vital.Source>;
68
+ generateOauthLink(oauthProvider: Vital.OAuthProviders, request?: Vital.LinkGenerateOauthLinkRequest, requestOptions?: Link.RequestOptions): Promise<Vital.Source>;
70
69
  /**
71
70
  * This connects auth providers that are password based.
72
71
  * @throws {@link Vital.UnprocessableEntityError}
@@ -84,7 +83,7 @@ export declare class Link {
84
83
  * @example
85
84
  * await vital.link.getAllProviders()
86
85
  */
87
- getAllProviders(requestOptions?: Link.RequestOptions): Promise<Vital.SourceLink[]>;
86
+ getAllProviders(request?: Vital.LinkGetAllProvidersRequest, requestOptions?: Link.RequestOptions): Promise<Vital.SourceLink[]>;
88
87
  /**
89
88
  * @throws {@link Vital.UnprocessableEntityError}
90
89
  */
@@ -75,7 +75,7 @@ class Link {
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, "v2/link/token"),
77
77
  method: "POST",
78
- 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())),
78
+ 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())),
79
79
  contentType: "application/json",
80
80
  body: yield serializers.LinkTokenExchange.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -129,7 +129,7 @@ class Link {
129
129
  const _response = yield core.fetcher({
130
130
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/token/isValid"),
131
131
  method: "POST",
132
- 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())),
132
+ 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())),
133
133
  contentType: "application/json",
134
134
  body: yield serializers.LinkTokenBase.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
135
135
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -190,7 +190,7 @@ class Link {
190
190
  const _response = yield core.fetcher({
191
191
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/code/create"),
192
192
  method: "POST",
193
- 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())),
193
+ 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())),
194
194
  contentType: "application/json",
195
195
  queryParameters: _queryParams,
196
196
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -246,7 +246,7 @@ class Link {
246
246
  const _response = yield core.fetcher({
247
247
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/start"),
248
248
  method: "POST",
249
- 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())),
249
+ 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())),
250
250
  contentType: "application/json",
251
251
  body: yield serializers.BeginLinkTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
252
252
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -299,13 +299,14 @@ class Link {
299
299
  * @example
300
300
  * await vital.link.tokenState()
301
301
  */
302
- tokenState(requestOptions) {
302
+ tokenState(request = {}, requestOptions) {
303
303
  var _a;
304
304
  return __awaiter(this, void 0, void 0, function* () {
305
+ const { vitalLinkToken } = request;
305
306
  const _response = yield core.fetcher({
306
307
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/state"),
307
308
  method: "GET",
308
- 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())),
309
+ 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, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
309
310
  contentType: "application/json",
310
311
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
311
312
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -356,12 +357,13 @@ class Link {
356
357
  emailAuth(request, requestOptions) {
357
358
  var _a;
358
359
  return __awaiter(this, void 0, void 0, function* () {
360
+ const { vitalLinkToken } = request, _body = __rest(request, ["vitalLinkToken"]);
359
361
  const _response = yield core.fetcher({
360
362
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/auth/email"),
361
363
  method: "POST",
362
- 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())),
364
+ 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, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
363
365
  contentType: "application/json",
364
- body: yield serializers.EmailAuthLink.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
366
+ body: yield serializers.EmailAuthLink.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
365
367
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
366
368
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
367
369
  });
@@ -411,12 +413,13 @@ class Link {
411
413
  passwordAuth(request, requestOptions) {
412
414
  var _a;
413
415
  return __awaiter(this, void 0, void 0, function* () {
416
+ const { vitalLinkToken } = request, _body = __rest(request, ["vitalLinkToken"]);
414
417
  const _response = yield core.fetcher({
415
418
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/auth"),
416
419
  method: "POST",
417
- 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())),
420
+ 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, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
418
421
  contentType: "application/json",
419
- body: yield serializers.PasswordAuthLink.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
422
+ body: yield serializers.PasswordAuthLink.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
420
423
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
421
424
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
422
425
  });
@@ -463,13 +466,14 @@ class Link {
463
466
  * This endpoint generates an OAuth link for oauth provider
464
467
  * @throws {@link Vital.UnprocessableEntityError}
465
468
  */
466
- generateOauthLink(oauthProvider, requestOptions) {
469
+ generateOauthLink(oauthProvider, request = {}, requestOptions) {
467
470
  var _a;
468
471
  return __awaiter(this, void 0, void 0, function* () {
472
+ const { vitalLinkToken } = request;
469
473
  const _response = yield core.fetcher({
470
474
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/link/provider/oauth/${yield serializers.OAuthProviders.jsonOrThrow(oauthProvider)}`),
471
475
  method: "GET",
472
- 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())),
476
+ 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, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
473
477
  contentType: "application/json",
474
478
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
475
479
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -520,11 +524,11 @@ class Link {
520
524
  connectPasswordProvider(provider, request, requestOptions) {
521
525
  var _a;
522
526
  return __awaiter(this, void 0, void 0, function* () {
523
- const { vitalLinkClientRegion } = request, _body = __rest(request, ["vitalLinkClientRegion"]);
527
+ const { vitalLinkClientRegion, vitalLinkToken } = request, _body = __rest(request, ["vitalLinkClientRegion", "vitalLinkToken"]);
524
528
  const _response = yield core.fetcher({
525
529
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/link/provider/password/${yield serializers.PasswordProviders.jsonOrThrow(provider)}`),
526
530
  method: "POST",
527
- 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, "x-vital-link-client-region": vitalLinkClientRegion != null ? vitalLinkClientRegion : undefined }, (yield this._getCustomAuthorizationHeaders())),
531
+ 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, "x-vital-link-client-region": vitalLinkClientRegion != null ? vitalLinkClientRegion : undefined, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
528
532
  contentType: "application/json",
529
533
  body: yield serializers.IndividualProviderData.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
530
534
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -576,12 +580,13 @@ class Link {
576
580
  connectEmailAuthProvider(provider, request, requestOptions) {
577
581
  var _a;
578
582
  return __awaiter(this, void 0, void 0, function* () {
583
+ const { vitalLinkToken } = request, _body = __rest(request, ["vitalLinkToken"]);
579
584
  const _response = yield core.fetcher({
580
585
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/link/provider/email/${yield serializers.EmailProviders.jsonOrThrow(provider)}`),
581
586
  method: "POST",
582
- 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())),
587
+ 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, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
583
588
  contentType: "application/json",
584
- body: yield serializers.EmailProviderAuthLink.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
589
+ body: yield serializers.EmailProviderAuthLink.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
585
590
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
586
591
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
587
592
  });
@@ -631,13 +636,14 @@ class Link {
631
636
  * @example
632
637
  * await vital.link.getAllProviders()
633
638
  */
634
- getAllProviders(requestOptions) {
639
+ getAllProviders(request = {}, requestOptions) {
635
640
  var _a;
636
641
  return __awaiter(this, void 0, void 0, function* () {
642
+ const { vitalLinkToken } = request;
637
643
  const _response = yield core.fetcher({
638
644
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/providers"),
639
645
  method: "GET",
640
- 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())),
646
+ 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, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
641
647
  contentType: "application/json",
642
648
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
643
649
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -690,7 +696,7 @@ class Link {
690
696
  const _response = yield core.fetcher({
691
697
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/link/provider/manual/${yield serializers.ManualProviders.jsonOrThrow(provider)}`),
692
698
  method: "POST",
693
- 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())),
699
+ 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())),
694
700
  contentType: "application/json",
695
701
  body: yield serializers.ManualConnectionData.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
696
702
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -745,7 +751,7 @@ class Link {
745
751
  const _response = yield core.fetcher({
746
752
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/link/connect/demo"),
747
753
  method: "POST",
748
- 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())),
754
+ 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())),
749
755
  contentType: "application/json",
750
756
  body: yield serializers.DemoConnectionCreationPayload.jsonOrThrow(request, {
751
757
  unrecognizedObjectKeys: "strip",
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as Vital from "../../../..";
5
5
  export interface EmailAuthLink {
6
+ vitalLinkToken?: string;
6
7
  email: string;
7
8
  provider: Vital.Providers;
8
9
  authType: Vital.AuthType;
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as Vital from "../../../..";
5
5
  export interface EmailProviderAuthLink {
6
+ vitalLinkToken?: string;
6
7
  email: string;
7
8
  emailProviderAuthLinkProvider?: Vital.Providers;
8
9
  region?: Vital.Region;