@tryvital/vital-node 3.1.98 → 3.1.100
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/aggregate/client/Client.d.ts +5 -5
- package/api/resources/aggregate/client/Client.js +6 -6
- package/api/resources/aggregate/client/requests/Query.d.ts +5 -5
- 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.d.ts +3 -3
- package/api/resources/labTests/client/Client.js +37 -37
- package/api/resources/labTests/client/requests/CreateLabTestRequest.d.ts +1 -1
- package/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
- package/api/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +1 -1
- package/api/resources/link/client/Client.d.ts +10 -10
- package/api/resources/link/client/Client.js +24 -24
- package/api/resources/link/client/requests/BeginLinkTokenRequest.d.ts +1 -1
- package/api/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +1 -1
- package/api/resources/link/client/requests/EmailAuthLink.d.ts +2 -2
- package/api/resources/link/client/requests/PasswordAuthLink.d.ts +2 -2
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/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.d.ts +1 -1
- package/api/resources/testkit/client/Client.js +3 -3
- package/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +1 -1
- package/api/resources/user/client/Client.d.ts +3 -3
- package/api/resources/user/client/Client.js +19 -19
- package/api/resources/user/client/requests/CreateInsuranceRequest.d.ts +2 -2
- package/api/resources/vitals/client/Client.js +56 -56
- package/api/resources/workouts/client/Client.js +3 -3
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/getResponseBody.js +3 -0
- package/core/fetcher/requestWithRetries.js +13 -4
- package/core/schemas/Schema.d.ts +1 -0
- package/core/schemas/Schema.js +1 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +50 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.d.ts +5 -5
- package/dist/api/resources/aggregate/client/Client.js +6 -6
- package/dist/api/resources/aggregate/client/requests/Query.d.ts +5 -5
- 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.d.ts +3 -3
- package/dist/api/resources/labTests/client/Client.js +37 -37
- package/dist/api/resources/labTests/client/requests/CreateLabTestRequest.d.ts +1 -1
- package/dist/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
- package/dist/api/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +1 -1
- package/dist/api/resources/link/client/Client.d.ts +10 -10
- package/dist/api/resources/link/client/Client.js +24 -24
- package/dist/api/resources/link/client/requests/BeginLinkTokenRequest.d.ts +1 -1
- package/dist/api/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +1 -1
- package/dist/api/resources/link/client/requests/EmailAuthLink.d.ts +2 -2
- package/dist/api/resources/link/client/requests/PasswordAuthLink.d.ts +2 -2
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/menstrualCycle/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.d.ts +1 -1
- package/dist/api/resources/testkit/client/Client.js +3 -3
- package/dist/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +1 -1
- package/dist/api/resources/user/client/Client.d.ts +3 -3
- package/dist/api/resources/user/client/Client.js +19 -19
- package/dist/api/resources/user/client/requests/CreateInsuranceRequest.d.ts +2 -2
- package/dist/api/resources/vitals/client/Client.js +56 -56
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/getResponseBody.js +3 -0
- package/dist/core/fetcher/requestWithRetries.js +13 -4
- package/dist/core/schemas/Schema.d.ts +1 -0
- package/dist/core/schemas/Schema.js +1 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +50 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +22 -22
- package/version.d.ts +1 -1
- package/version.js +1 -1
@@ -78,7 +78,7 @@ export declare class Link {
|
|
78
78
|
* @example
|
79
79
|
* await client.link.startConnect({
|
80
80
|
* linkToken: "link_token",
|
81
|
-
* provider:
|
81
|
+
* provider: "oura"
|
82
82
|
* })
|
83
83
|
*/
|
84
84
|
startConnect(request: Vital.BeginLinkTokenRequest, requestOptions?: Link.RequestOptions): Promise<Record<string, unknown>>;
|
@@ -106,8 +106,8 @@ export declare class Link {
|
|
106
106
|
* @example
|
107
107
|
* await client.link.emailAuth({
|
108
108
|
* email: "email",
|
109
|
-
* provider:
|
110
|
-
* authType:
|
109
|
+
* provider: "oura",
|
110
|
+
* authType: "password"
|
111
111
|
* })
|
112
112
|
*/
|
113
113
|
emailAuth(request: Vital.EmailAuthLink, requestOptions?: Link.RequestOptions): Promise<Vital.ConnectionStatus>;
|
@@ -123,8 +123,8 @@ export declare class Link {
|
|
123
123
|
* await client.link.passwordAuth({
|
124
124
|
* username: "username",
|
125
125
|
* password: "password",
|
126
|
-
* provider:
|
127
|
-
* authType:
|
126
|
+
* provider: "oura",
|
127
|
+
* authType: "password"
|
128
128
|
* })
|
129
129
|
*/
|
130
130
|
passwordAuth(request: Vital.PasswordAuthLink, requestOptions?: Link.RequestOptions): Promise<Vital.ConnectionStatus>;
|
@@ -138,7 +138,7 @@ export declare class Link {
|
|
138
138
|
* @throws {@link Vital.UnprocessableEntityError}
|
139
139
|
*
|
140
140
|
* @example
|
141
|
-
* await client.link.generateOauthLink(
|
141
|
+
* await client.link.generateOauthLink("oura")
|
142
142
|
*/
|
143
143
|
generateOauthLink(oauthProvider: Vital.OAuthProviders, request?: Vital.LinkGenerateOauthLinkRequest, requestOptions?: Link.RequestOptions): Promise<Vital.Source>;
|
144
144
|
/**
|
@@ -151,7 +151,7 @@ export declare class Link {
|
|
151
151
|
* @throws {@link Vital.UnprocessableEntityError}
|
152
152
|
*
|
153
153
|
* @example
|
154
|
-
* await client.link.connectPasswordProvider(
|
154
|
+
* await client.link.connectPasswordProvider("whoop", {
|
155
155
|
* username: "username",
|
156
156
|
* password: "password"
|
157
157
|
* })
|
@@ -167,7 +167,7 @@ export declare class Link {
|
|
167
167
|
* @throws {@link Vital.UnprocessableEntityError}
|
168
168
|
*
|
169
169
|
* @example
|
170
|
-
* await client.link.completePasswordProviderMfa(
|
170
|
+
* await client.link.completePasswordProviderMfa("whoop", {
|
171
171
|
* mfaCode: "mfa_code"
|
172
172
|
* })
|
173
173
|
*/
|
@@ -207,7 +207,7 @@ export declare class Link {
|
|
207
207
|
* @throws {@link Vital.UnprocessableEntityError}
|
208
208
|
*
|
209
209
|
* @example
|
210
|
-
* await client.link.connectManualProvider(
|
210
|
+
* await client.link.connectManualProvider("beurer_ble", {
|
211
211
|
* userId: "user_id"
|
212
212
|
* })
|
213
213
|
*/
|
@@ -223,7 +223,7 @@ export declare class Link {
|
|
223
223
|
* @example
|
224
224
|
* await client.link.connectDemoProvider({
|
225
225
|
* userId: "user_id",
|
226
|
-
* provider:
|
226
|
+
* provider: "apple_health_kit"
|
227
227
|
* })
|
228
228
|
*/
|
229
229
|
connectDemoProvider(request: Vital.DemoConnectionCreationPayload, requestOptions?: Link.RequestOptions): Promise<Vital.DemoConnectionStatus>;
|
@@ -84,7 +84,7 @@ class Link {
|
|
84
84
|
const _response = yield core.fetcher({
|
85
85
|
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"),
|
86
86
|
method: "POST",
|
87
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
87
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
88
88
|
contentType: "application/json",
|
89
89
|
requestType: "json",
|
90
90
|
body: serializers.LinkTokenExchange.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -148,7 +148,7 @@ class Link {
|
|
148
148
|
const _response = yield core.fetcher({
|
149
149
|
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"),
|
150
150
|
method: "POST",
|
151
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
151
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
152
152
|
contentType: "application/json",
|
153
153
|
requestType: "json",
|
154
154
|
body: serializers.LinkTokenBase.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -220,7 +220,7 @@ class Link {
|
|
220
220
|
const _response = yield core.fetcher({
|
221
221
|
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"),
|
222
222
|
method: "POST",
|
223
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
223
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
224
224
|
contentType: "application/json",
|
225
225
|
queryParameters: _queryParams,
|
226
226
|
requestType: "json",
|
@@ -279,7 +279,7 @@ class Link {
|
|
279
279
|
* @example
|
280
280
|
* await client.link.startConnect({
|
281
281
|
* linkToken: "link_token",
|
282
|
-
* provider:
|
282
|
+
* provider: "oura"
|
283
283
|
* })
|
284
284
|
*/
|
285
285
|
startConnect(request, requestOptions) {
|
@@ -288,7 +288,7 @@ class Link {
|
|
288
288
|
const _response = yield core.fetcher({
|
289
289
|
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"),
|
290
290
|
method: "POST",
|
291
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
291
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
292
292
|
contentType: "application/json",
|
293
293
|
requestType: "json",
|
294
294
|
body: serializers.BeginLinkTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -354,7 +354,7 @@ class Link {
|
|
354
354
|
const _response = yield core.fetcher({
|
355
355
|
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"),
|
356
356
|
method: "GET",
|
357
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
357
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
358
358
|
contentType: "application/json",
|
359
359
|
requestType: "json",
|
360
360
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -411,8 +411,8 @@ class Link {
|
|
411
411
|
* @example
|
412
412
|
* await client.link.emailAuth({
|
413
413
|
* email: "email",
|
414
|
-
* provider:
|
415
|
-
* authType:
|
414
|
+
* provider: "oura",
|
415
|
+
* authType: "password"
|
416
416
|
* })
|
417
417
|
*/
|
418
418
|
emailAuth(request, requestOptions) {
|
@@ -422,7 +422,7 @@ class Link {
|
|
422
422
|
const _response = yield core.fetcher({
|
423
423
|
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"),
|
424
424
|
method: "POST",
|
425
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
425
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
426
426
|
contentType: "application/json",
|
427
427
|
requestType: "json",
|
428
428
|
body: serializers.EmailAuthLink.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
@@ -481,8 +481,8 @@ class Link {
|
|
481
481
|
* await client.link.passwordAuth({
|
482
482
|
* username: "username",
|
483
483
|
* password: "password",
|
484
|
-
* provider:
|
485
|
-
* authType:
|
484
|
+
* provider: "oura",
|
485
|
+
* authType: "password"
|
486
486
|
* })
|
487
487
|
*/
|
488
488
|
passwordAuth(request, requestOptions) {
|
@@ -492,7 +492,7 @@ class Link {
|
|
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/link/auth"),
|
494
494
|
method: "POST",
|
495
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
495
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
496
496
|
contentType: "application/json",
|
497
497
|
requestType: "json",
|
498
498
|
body: serializers.PasswordAuthLink.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
@@ -549,7 +549,7 @@ class Link {
|
|
549
549
|
* @throws {@link Vital.UnprocessableEntityError}
|
550
550
|
*
|
551
551
|
* @example
|
552
|
-
* await client.link.generateOauthLink(
|
552
|
+
* await client.link.generateOauthLink("oura")
|
553
553
|
*/
|
554
554
|
generateOauthLink(oauthProvider, request = {}, requestOptions) {
|
555
555
|
var _a;
|
@@ -558,7 +558,7 @@ class Link {
|
|
558
558
|
const _response = yield core.fetcher({
|
559
559
|
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/${encodeURIComponent(serializers.OAuthProviders.jsonOrThrow(oauthProvider))}`),
|
560
560
|
method: "GET",
|
561
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
561
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
562
562
|
contentType: "application/json",
|
563
563
|
requestType: "json",
|
564
564
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -614,7 +614,7 @@ class Link {
|
|
614
614
|
* @throws {@link Vital.UnprocessableEntityError}
|
615
615
|
*
|
616
616
|
* @example
|
617
|
-
* await client.link.connectPasswordProvider(
|
617
|
+
* await client.link.connectPasswordProvider("whoop", {
|
618
618
|
* username: "username",
|
619
619
|
* password: "password"
|
620
620
|
* })
|
@@ -626,7 +626,7 @@ class Link {
|
|
626
626
|
const _response = yield core.fetcher({
|
627
627
|
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/${encodeURIComponent(serializers.PasswordProviders.jsonOrThrow(provider))}`),
|
628
628
|
method: "POST",
|
629
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
629
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
630
630
|
contentType: "application/json",
|
631
631
|
requestType: "json",
|
632
632
|
body: serializers.IndividualProviderData.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
@@ -683,7 +683,7 @@ class Link {
|
|
683
683
|
* @throws {@link Vital.UnprocessableEntityError}
|
684
684
|
*
|
685
685
|
* @example
|
686
|
-
* await client.link.completePasswordProviderMfa(
|
686
|
+
* await client.link.completePasswordProviderMfa("whoop", {
|
687
687
|
* mfaCode: "mfa_code"
|
688
688
|
* })
|
689
689
|
*/
|
@@ -694,7 +694,7 @@ class Link {
|
|
694
694
|
const _response = yield core.fetcher({
|
695
695
|
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/${encodeURIComponent(serializers.PasswordProviders.jsonOrThrow(provider))}/complete_mfa`),
|
696
696
|
method: "POST",
|
697
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
697
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
698
698
|
contentType: "application/json",
|
699
699
|
requestType: "json",
|
700
700
|
body: serializers.CompletePasswordProviderMfaBody.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
@@ -762,7 +762,7 @@ class Link {
|
|
762
762
|
const _response = yield core.fetcher({
|
763
763
|
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/${encodeURIComponent(serializers.EmailProviders.jsonOrThrow(provider))}`),
|
764
764
|
method: "POST",
|
765
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
765
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
766
766
|
contentType: "application/json",
|
767
767
|
requestType: "json",
|
768
768
|
body: serializers.EmailProviderAuthLink.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
@@ -827,7 +827,7 @@ class Link {
|
|
827
827
|
const _response = yield core.fetcher({
|
828
828
|
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"),
|
829
829
|
method: "GET",
|
830
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
830
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
831
831
|
contentType: "application/json",
|
832
832
|
requestType: "json",
|
833
833
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -881,7 +881,7 @@ class Link {
|
|
881
881
|
* @throws {@link Vital.UnprocessableEntityError}
|
882
882
|
*
|
883
883
|
* @example
|
884
|
-
* await client.link.connectManualProvider(
|
884
|
+
* await client.link.connectManualProvider("beurer_ble", {
|
885
885
|
* userId: "user_id"
|
886
886
|
* })
|
887
887
|
*/
|
@@ -891,7 +891,7 @@ class Link {
|
|
891
891
|
const _response = yield core.fetcher({
|
892
892
|
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/${encodeURIComponent(serializers.ManualProviders.jsonOrThrow(provider))}`),
|
893
893
|
method: "POST",
|
894
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
894
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
895
895
|
contentType: "application/json",
|
896
896
|
requestType: "json",
|
897
897
|
body: serializers.ManualConnectionData.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -949,7 +949,7 @@ class Link {
|
|
949
949
|
* @example
|
950
950
|
* await client.link.connectDemoProvider({
|
951
951
|
* userId: "user_id",
|
952
|
-
* provider:
|
952
|
+
* provider: "apple_health_kit"
|
953
953
|
* })
|
954
954
|
*/
|
955
955
|
connectDemoProvider(request, requestOptions) {
|
@@ -958,7 +958,7 @@ class Link {
|
|
958
958
|
const _response = yield core.fetcher({
|
959
959
|
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"),
|
960
960
|
method: "POST",
|
961
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
961
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
962
962
|
contentType: "application/json",
|
963
963
|
requestType: "json",
|
964
964
|
body: serializers.DemoConnectionCreationPayload.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -7,8 +7,8 @@ import * as Vital from "../../../../index";
|
|
7
7
|
* {
|
8
8
|
* username: "username",
|
9
9
|
* password: "password",
|
10
|
-
* provider:
|
11
|
-
* authType:
|
10
|
+
* provider: "oura",
|
11
|
+
* authType: "password"
|
12
12
|
* }
|
13
13
|
*/
|
14
14
|
export interface PasswordAuthLink {
|
@@ -78,7 +78,7 @@ class Meal {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/meal/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -76,7 +76,7 @@ class MenstrualCycle {
|
|
76
76
|
const _response = yield core.fetcher({
|
77
77
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/menstrual_cycle/${encodeURIComponent(userId)}`),
|
78
78
|
method: "GET",
|
79
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
79
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
80
80
|
contentType: "application/json",
|
81
81
|
queryParameters: _queryParams,
|
82
82
|
requestType: "json",
|
@@ -72,7 +72,7 @@ class Profile {
|
|
72
72
|
const _response = yield core.fetcher({
|
73
73
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/profile/${encodeURIComponent(userId)}`),
|
74
74
|
method: "GET",
|
75
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
75
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
76
76
|
contentType: "application/json",
|
77
77
|
queryParameters: _queryParams,
|
78
78
|
requestType: "json",
|
@@ -142,7 +142,7 @@ class Profile {
|
|
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/profile/${encodeURIComponent(userId)}/raw`),
|
144
144
|
method: "GET",
|
145
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
145
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "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
|
requestType: "json",
|
@@ -71,7 +71,7 @@ class Providers {
|
|
71
71
|
const _response = yield core.fetcher({
|
72
72
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/providers"),
|
73
73
|
method: "GET",
|
74
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
74
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
75
75
|
contentType: "application/json",
|
76
76
|
queryParameters: _queryParams,
|
77
77
|
requestType: "json",
|
@@ -78,7 +78,7 @@ class Sleep {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/sleep/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -154,7 +154,7 @@ class Sleep {
|
|
154
154
|
const _response = yield core.fetcher({
|
155
155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/sleep/${encodeURIComponent(userId)}/stream`),
|
156
156
|
method: "GET",
|
157
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
158
158
|
contentType: "application/json",
|
159
159
|
queryParameters: _queryParams,
|
160
160
|
requestType: "json",
|
@@ -230,7 +230,7 @@ class Sleep {
|
|
230
230
|
const _response = yield core.fetcher({
|
231
231
|
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/${encodeURIComponent(userId)}/raw`),
|
232
232
|
method: "GET",
|
233
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
233
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
234
234
|
contentType: "application/json",
|
235
235
|
queryParameters: _queryParams,
|
236
236
|
requestType: "json",
|
@@ -294,7 +294,7 @@ class Sleep {
|
|
294
294
|
const _response = yield core.fetcher({
|
295
295
|
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/${encodeURIComponent(sleepId)}/stream`),
|
296
296
|
method: "GET",
|
297
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
297
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
298
298
|
contentType: "application/json",
|
299
299
|
requestType: "json",
|
300
300
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -67,7 +67,7 @@ class Team {
|
|
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/team/link/config"),
|
69
69
|
method: "GET",
|
70
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
70
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
|
71
71
|
contentType: "application/json",
|
72
72
|
requestType: "json",
|
73
73
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -130,7 +130,7 @@ class Team {
|
|
130
130
|
const _response = yield core.fetcher({
|
131
131
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/team/${encodeURIComponent(teamId)}`),
|
132
132
|
method: "GET",
|
133
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
133
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
134
134
|
contentType: "application/json",
|
135
135
|
requestType: "json",
|
136
136
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -198,7 +198,7 @@ class Team {
|
|
198
198
|
const _response = yield core.fetcher({
|
199
199
|
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"),
|
200
200
|
method: "GET",
|
201
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
201
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
202
202
|
contentType: "application/json",
|
203
203
|
queryParameters: _queryParams,
|
204
204
|
requestType: "json",
|
@@ -257,7 +257,7 @@ class Team {
|
|
257
257
|
const _response = yield core.fetcher({
|
258
258
|
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"),
|
259
259
|
method: "GET",
|
260
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
260
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
261
261
|
contentType: "application/json",
|
262
262
|
requestType: "json",
|
263
263
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -315,7 +315,7 @@ class Team {
|
|
315
315
|
const _response = yield core.fetcher({
|
316
316
|
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"),
|
317
317
|
method: "GET",
|
318
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
318
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
319
319
|
contentType: "application/json",
|
320
320
|
queryParameters: _queryParams,
|
321
321
|
requestType: "json",
|
@@ -376,7 +376,7 @@ class Team {
|
|
376
376
|
const _response = yield core.fetcher({
|
377
377
|
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"),
|
378
378
|
method: "PATCH",
|
379
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
379
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
380
380
|
contentType: "application/json",
|
381
381
|
requestType: "json",
|
382
382
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -427,7 +427,7 @@ class Team {
|
|
427
427
|
const _response = yield core.fetcher({
|
428
428
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/team/${encodeURIComponent(teamId)}/physicians`),
|
429
429
|
method: "GET",
|
430
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
430
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
431
431
|
contentType: "application/json",
|
432
432
|
requestType: "json",
|
433
433
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -63,7 +63,7 @@ class Testkit {
|
|
63
63
|
* firstName: "first_name",
|
64
64
|
* lastName: "last_name",
|
65
65
|
* dob: "2024-01-15T09:30:00Z",
|
66
|
-
* gender:
|
66
|
+
* gender: "female",
|
67
67
|
* phoneNumber: "phone_number",
|
68
68
|
* email: "email"
|
69
69
|
* },
|
@@ -82,7 +82,7 @@ class Testkit {
|
|
82
82
|
const _response = yield core.fetcher({
|
83
83
|
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"),
|
84
84
|
method: "POST",
|
85
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
85
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
86
86
|
contentType: "application/json",
|
87
87
|
requestType: "json",
|
88
88
|
body: serializers.RegisterTestkitRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -158,7 +158,7 @@ class Testkit {
|
|
158
158
|
const _response = yield core.fetcher({
|
159
159
|
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"),
|
160
160
|
method: "POST",
|
161
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
161
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.100", "User-Agent": "@tryvital/vital-node/3.1.100", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
162
162
|
contentType: "application/json",
|
163
163
|
requestType: "json",
|
164
164
|
body: serializers.CreateRegistrableTestkitOrderRequest.jsonOrThrow(request, {
|
@@ -133,11 +133,11 @@ export declare class User {
|
|
133
133
|
* await client.user.createInsurance("user_id", {
|
134
134
|
* payorCode: "payor_code",
|
135
135
|
* memberId: "member_id",
|
136
|
-
* relationship:
|
136
|
+
* relationship: "Self",
|
137
137
|
* insured: {
|
138
138
|
* firstName: "first_name",
|
139
139
|
* lastName: "last_name",
|
140
|
-
* gender:
|
140
|
+
* gender: "female",
|
141
141
|
* address: {
|
142
142
|
* firstLine: "first_line",
|
143
143
|
* country: "country",
|
@@ -207,7 +207,7 @@ export declare class User {
|
|
207
207
|
* @throws {@link Vital.UnprocessableEntityError}
|
208
208
|
*
|
209
209
|
* @example
|
210
|
-
* await client.user.deregisterProvider("user_id",
|
210
|
+
* await client.user.deregisterProvider("user_id", "oura")
|
211
211
|
*/
|
212
212
|
deregisterProvider(userId: string, provider: Vital.Providers, requestOptions?: User.RequestOptions): Promise<Vital.UserSuccessResponse>;
|
213
213
|
/**
|