@tryvital/vital-node 3.1.5 → 3.1.6
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.
- package/api/resources/activity/client/Client.js +2 -2
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.js +2 -2
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.js +24 -24
- package/api/resources/link/client/Client.js +13 -13
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.js +4 -4
- package/api/resources/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +12 -12
- package/api/resources/vitals/client/Client.js +50 -50
- package/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/insurance/client/Client.js +2 -2
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.js +24 -24
- package/dist/api/resources/link/client/Client.js +13 -13
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +1 -1
- package/dist/api/resources/sleep/client/Client.js +4 -4
- package/dist/api/resources/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +12 -12
- package/dist/api/resources/vitals/client/Client.js +50 -50
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/package.json +1 -1
@@ -62,7 +62,7 @@ class Team {
|
|
62
62
|
const _response = yield core.fetcher({
|
63
63
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/link/config"),
|
64
64
|
method: "GET",
|
65
|
-
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.
|
65
|
+
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.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
66
66
|
contentType: "application/json",
|
67
67
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
68
68
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -116,7 +116,7 @@ class Team {
|
|
116
116
|
const _response = yield core.fetcher({
|
117
117
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/team/${teamId}`),
|
118
118
|
method: "GET",
|
119
|
-
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.
|
119
|
+
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.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
120
120
|
contentType: "application/json",
|
121
121
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
122
122
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -178,7 +178,7 @@ class Team {
|
|
178
178
|
const _response = yield core.fetcher({
|
179
179
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/users/search"),
|
180
180
|
method: "GET",
|
181
|
-
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.
|
181
|
+
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.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
182
182
|
contentType: "application/json",
|
183
183
|
queryParameters: _queryParams,
|
184
184
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -229,7 +229,7 @@ class Team {
|
|
229
229
|
const _response = yield core.fetcher({
|
230
230
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/svix/url"),
|
231
231
|
method: "GET",
|
232
|
-
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.
|
232
|
+
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.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
233
233
|
contentType: "application/json",
|
234
234
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
235
235
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -281,7 +281,7 @@ class Team {
|
|
281
281
|
const _response = yield core.fetcher({
|
282
282
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/source/priorities"),
|
283
283
|
method: "GET",
|
284
|
-
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.
|
284
|
+
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.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
285
285
|
contentType: "application/json",
|
286
286
|
queryParameters: _queryParams,
|
287
287
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -344,7 +344,7 @@ class Team {
|
|
344
344
|
const _response = yield core.fetcher({
|
345
345
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/source/priorities"),
|
346
346
|
method: "PATCH",
|
347
|
-
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.
|
347
|
+
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.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
348
348
|
contentType: "application/json",
|
349
349
|
queryParameters: _queryParams,
|
350
350
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -401,7 +401,7 @@ class Team {
|
|
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, `v2/team/${teamId}/physicians`),
|
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.
|
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.6", "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,
|
@@ -58,7 +58,7 @@ class Testkit {
|
|
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/order/testkit/register"),
|
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.
|
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.6", "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.RegisterTestkitRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
64
64
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -113,7 +113,7 @@ class Testkit {
|
|
113
113
|
const _response = yield core.fetcher({
|
114
114
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/testkit"),
|
115
115
|
method: "POST",
|
116
|
-
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.
|
116
|
+
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.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
117
117
|
contentType: "application/json",
|
118
118
|
body: yield serializers.CreateRegistrableTestkitOrderRequest.jsonOrThrow(request, {
|
119
119
|
unrecognizedObjectKeys: "strip",
|
@@ -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.
|
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.6", "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.
|
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.6", "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.
|
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.6", "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.
|
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.6", "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.
|
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.6", "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.
|
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.6", "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.
|
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.6", "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.
|
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.6", "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.
|
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.6", "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.
|
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.6", "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.
|
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.6", "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.
|
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.6", "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,
|