@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.
- package/Client.d.ts +0 -1
- package/api/resources/activity/client/Client.d.ts +0 -1
- package/api/resources/activity/client/Client.js +2 -2
- package/api/resources/body/client/Client.d.ts +0 -1
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.d.ts +0 -1
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.d.ts +0 -1
- package/api/resources/insurance/client/Client.js +2 -2
- package/api/resources/introspect/client/Client.d.ts +0 -1
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.d.ts +0 -1
- package/api/resources/labTests/client/Client.js +24 -24
- package/api/resources/link/client/Client.d.ts +3 -4
- package/api/resources/link/client/Client.js +26 -20
- package/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -0
- package/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -0
- package/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
- package/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +6 -0
- package/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.js +5 -0
- package/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +10 -0
- package/api/resources/link/client/requests/LinkGetAllProvidersRequest.js +5 -0
- package/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +10 -0
- package/api/resources/link/client/requests/LinkTokenStateRequest.js +5 -0
- package/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -0
- package/api/resources/link/client/requests/index.d.ts +3 -0
- package/api/resources/meal/client/Client.d.ts +0 -1
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/profile/client/Client.d.ts +0 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.d.ts +0 -1
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.d.ts +0 -1
- package/api/resources/sleep/client/Client.js +4 -4
- package/api/resources/team/client/Client.d.ts +1 -2
- package/api/resources/team/client/Client.js +9 -8
- package/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +10 -0
- package/api/resources/team/client/requests/TeamGetLinkConfigRequest.js +5 -0
- package/api/resources/team/client/requests/index.d.ts +1 -0
- package/api/resources/testkit/client/Client.d.ts +0 -1
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.d.ts +0 -1
- package/api/resources/user/client/Client.js +12 -12
- package/api/resources/vitals/client/Client.d.ts +0 -1
- package/api/resources/vitals/client/Client.js +50 -50
- package/api/resources/workouts/client/Client.d.ts +0 -1
- package/api/resources/workouts/client/Client.js +3 -3
- package/dist/Client.d.ts +0 -1
- package/dist/api/resources/activity/client/Client.d.ts +0 -1
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/body/client/Client.d.ts +0 -1
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.d.ts +0 -1
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/insurance/client/Client.d.ts +0 -1
- package/dist/api/resources/insurance/client/Client.js +2 -2
- package/dist/api/resources/introspect/client/Client.d.ts +0 -1
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +0 -1
- package/dist/api/resources/labTests/client/Client.js +24 -24
- package/dist/api/resources/link/client/Client.d.ts +3 -4
- package/dist/api/resources/link/client/Client.js +26 -20
- package/dist/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -0
- package/dist/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -0
- package/dist/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
- package/dist/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +6 -0
- package/dist/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.js +5 -0
- package/dist/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +10 -0
- package/dist/api/resources/link/client/requests/LinkGetAllProvidersRequest.js +5 -0
- package/dist/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +10 -0
- package/dist/api/resources/link/client/requests/LinkTokenStateRequest.js +5 -0
- package/dist/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -0
- package/dist/api/resources/link/client/requests/index.d.ts +3 -0
- package/dist/api/resources/meal/client/Client.d.ts +0 -1
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.d.ts +0 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.d.ts +0 -1
- package/dist/api/resources/providers/client/Client.js +1 -1
- package/dist/api/resources/sleep/client/Client.d.ts +0 -1
- package/dist/api/resources/sleep/client/Client.js +4 -4
- package/dist/api/resources/team/client/Client.d.ts +1 -2
- package/dist/api/resources/team/client/Client.js +9 -8
- package/dist/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +10 -0
- package/dist/api/resources/team/client/requests/TeamGetLinkConfigRequest.js +5 -0
- package/dist/api/resources/team/client/requests/index.d.ts +1 -0
- package/dist/api/resources/testkit/client/Client.d.ts +0 -1
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.d.ts +0 -1
- package/dist/api/resources/user/client/Client.js +12 -12
- package/dist/api/resources/vitals/client/Client.d.ts +0 -1
- package/dist/api/resources/vitals/client/Client.js +50 -50
- package/dist/api/resources/workouts/client/Client.d.ts +0 -1
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/serialization/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
- package/dist/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
- package/dist/serialization/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
- package/dist/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
- package/package.json +1 -1
- package/serialization/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
- package/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
- package/serialization/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
- package/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
@@ -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({ "
|
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({ "
|
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({ "
|
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({ "
|
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({ "
|
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({ "
|
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(
|
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({ "
|
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(
|
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({ "
|
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({ "
|
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({ "
|
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(
|
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({ "
|
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({ "
|
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({ "
|
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",
|
@@ -2,9 +2,12 @@ export { LinkTokenExchange } from "./LinkTokenExchange";
|
|
2
2
|
export { LinkTokenBase } from "./LinkTokenBase";
|
3
3
|
export { LinkCodeCreateRequest } from "./LinkCodeCreateRequest";
|
4
4
|
export { BeginLinkTokenRequest } from "./BeginLinkTokenRequest";
|
5
|
+
export { LinkTokenStateRequest } from "./LinkTokenStateRequest";
|
5
6
|
export { EmailAuthLink } from "./EmailAuthLink";
|
6
7
|
export { PasswordAuthLink } from "./PasswordAuthLink";
|
8
|
+
export { LinkGenerateOauthLinkRequest } from "./LinkGenerateOauthLinkRequest";
|
7
9
|
export { IndividualProviderData } from "./IndividualProviderData";
|
8
10
|
export { EmailProviderAuthLink } from "./EmailProviderAuthLink";
|
11
|
+
export { LinkGetAllProvidersRequest } from "./LinkGetAllProvidersRequest";
|
9
12
|
export { ManualConnectionData } from "./ManualConnectionData";
|
10
13
|
export { DemoConnectionCreationPayload } from "./DemoConnectionCreationPayload";
|
@@ -73,7 +73,7 @@ class Meal {
|
|
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/meal/${userId}`),
|
75
75
|
method: "GET",
|
76
|
-
headers: Object.assign({ "
|
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,
|
@@ -8,7 +8,6 @@ export declare namespace Profile {
|
|
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;
|
@@ -64,7 +64,7 @@ class Profile {
|
|
64
64
|
const _response = yield core.fetcher({
|
65
65
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/profile/${userId}`),
|
66
66
|
method: "GET",
|
67
|
-
headers: Object.assign({ "
|
67
|
+
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())),
|
68
68
|
contentType: "application/json",
|
69
69
|
queryParameters: _queryParams,
|
70
70
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -124,7 +124,7 @@ class Profile {
|
|
124
124
|
const _response = yield core.fetcher({
|
125
125
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/profile/${userId}/raw`),
|
126
126
|
method: "GET",
|
127
|
-
headers: Object.assign({ "
|
127
|
+
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())),
|
128
128
|
contentType: "application/json",
|
129
129
|
queryParameters: _queryParams,
|
130
130
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -8,7 +8,6 @@ export declare namespace Providers {
|
|
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;
|
@@ -60,7 +60,7 @@ class Providers {
|
|
60
60
|
const _response = yield core.fetcher({
|
61
61
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/providers"),
|
62
62
|
method: "GET",
|
63
|
-
headers: Object.assign({ "
|
63
|
+
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())),
|
64
64
|
contentType: "application/json",
|
65
65
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
66
66
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -8,7 +8,6 @@ export declare namespace Sleep {
|
|
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;
|
@@ -73,7 +73,7 @@ class Sleep {
|
|
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/sleep/${userId}`),
|
75
75
|
method: "GET",
|
76
|
-
headers: Object.assign({ "
|
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 Sleep {
|
|
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/sleep/${userId}/stream`),
|
144
144
|
method: "GET",
|
145
|
-
headers: Object.assign({ "
|
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,
|
@@ -211,7 +211,7 @@ class Sleep {
|
|
211
211
|
const _response = yield core.fetcher({
|
212
212
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/sleep/${userId}/raw`),
|
213
213
|
method: "GET",
|
214
|
-
headers: Object.assign({ "
|
214
|
+
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())),
|
215
215
|
contentType: "application/json",
|
216
216
|
queryParameters: _queryParams,
|
217
217
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -269,7 +269,7 @@ class Sleep {
|
|
269
269
|
const _response = yield core.fetcher({
|
270
270
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/sleep/${sleepId}/stream`),
|
271
271
|
method: "GET",
|
272
|
-
headers: Object.assign({ "
|
272
|
+
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())),
|
273
273
|
contentType: "application/json",
|
274
274
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
275
275
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -8,7 +8,6 @@ export declare namespace Team {
|
|
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;
|
@@ -25,7 +24,7 @@ export declare class Team {
|
|
25
24
|
* @example
|
26
25
|
* await vital.team.getLinkConfig()
|
27
26
|
*/
|
28
|
-
getLinkConfig(requestOptions?: Team.RequestOptions): Promise<Record<string, unknown>>;
|
27
|
+
getLinkConfig(request?: Vital.TeamGetLinkConfigRequest, requestOptions?: Team.RequestOptions): Promise<Record<string, unknown>>;
|
29
28
|
/**
|
30
29
|
* Get team.
|
31
30
|
* @throws {@link Vital.UnprocessableEntityError}
|
@@ -56,13 +56,14 @@ class Team {
|
|
56
56
|
* @example
|
57
57
|
* await vital.team.getLinkConfig()
|
58
58
|
*/
|
59
|
-
getLinkConfig(requestOptions) {
|
59
|
+
getLinkConfig(request = {}, requestOptions) {
|
60
60
|
var _a;
|
61
61
|
return __awaiter(this, void 0, void 0, function* () {
|
62
|
+
const { vitalLinkToken } = request;
|
62
63
|
const _response = yield core.fetcher({
|
63
64
|
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
65
|
method: "GET",
|
65
|
-
headers: Object.assign({ "
|
66
|
+
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())),
|
66
67
|
contentType: "application/json",
|
67
68
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
68
69
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -116,7 +117,7 @@ class Team {
|
|
116
117
|
const _response = yield core.fetcher({
|
117
118
|
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
119
|
method: "GET",
|
119
|
-
headers: Object.assign({ "
|
120
|
+
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())),
|
120
121
|
contentType: "application/json",
|
121
122
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
122
123
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -178,7 +179,7 @@ class Team {
|
|
178
179
|
const _response = yield core.fetcher({
|
179
180
|
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
181
|
method: "GET",
|
181
|
-
headers: Object.assign({ "
|
182
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
182
183
|
contentType: "application/json",
|
183
184
|
queryParameters: _queryParams,
|
184
185
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -229,7 +230,7 @@ class Team {
|
|
229
230
|
const _response = yield core.fetcher({
|
230
231
|
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
232
|
method: "GET",
|
232
|
-
headers: Object.assign({ "
|
233
|
+
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())),
|
233
234
|
contentType: "application/json",
|
234
235
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
235
236
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -281,7 +282,7 @@ class Team {
|
|
281
282
|
const _response = yield core.fetcher({
|
282
283
|
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
284
|
method: "GET",
|
284
|
-
headers: Object.assign({ "
|
285
|
+
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())),
|
285
286
|
contentType: "application/json",
|
286
287
|
queryParameters: _queryParams,
|
287
288
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -344,7 +345,7 @@ class Team {
|
|
344
345
|
const _response = yield core.fetcher({
|
345
346
|
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
347
|
method: "PATCH",
|
347
|
-
headers: Object.assign({ "
|
348
|
+
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())),
|
348
349
|
contentType: "application/json",
|
349
350
|
queryParameters: _queryParams,
|
350
351
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -401,7 +402,7 @@ class Team {
|
|
401
402
|
const _response = yield core.fetcher({
|
402
403
|
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
404
|
method: "GET",
|
404
|
-
headers: Object.assign({ "
|
405
|
+
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
406
|
contentType: "application/json",
|
406
407
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
407
408
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -1,3 +1,4 @@
|
|
1
|
+
export { TeamGetLinkConfigRequest } from "./TeamGetLinkConfigRequest";
|
1
2
|
export { TeamGetUserByIdRequest } from "./TeamGetUserByIdRequest";
|
2
3
|
export { TeamGetSourcePrioritiesRequest } from "./TeamGetSourcePrioritiesRequest";
|
3
4
|
export { TeamUpdateSourcePrioritiesRequest } from "./TeamUpdateSourcePrioritiesRequest";
|
@@ -8,7 +8,6 @@ export declare namespace Testkit {
|
|
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 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({ "
|
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.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({ "
|
116
|
+
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())),
|
117
117
|
contentType: "application/json",
|
118
118
|
body: yield serializers.CreateRegistrableTestkitOrderRequest.jsonOrThrow(request, {
|
119
119
|
unrecognizedObjectKeys: "strip",
|