@tryvital/vital-node 3.1.527 → 3.1.529

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +3 -3
  3. package/api/resources/body/client/Client.js +2 -2
  4. package/api/resources/devices/client/Client.js +1 -1
  5. package/api/resources/electrocardiogram/client/Client.js +1 -1
  6. package/api/resources/insurance/client/Client.js +3 -3
  7. package/api/resources/introspect/client/Client.js +2 -2
  8. package/api/resources/labReport/client/Client.js +2 -2
  9. package/api/resources/labTests/client/Client.js +42 -42
  10. package/api/resources/link/client/Client.js +19 -19
  11. package/api/resources/meal/client/Client.js +1 -1
  12. package/api/resources/menstrualCycle/client/Client.js +1 -1
  13. package/api/resources/order/client/Client.js +1 -1
  14. package/api/resources/payor/client/Client.js +1 -1
  15. package/api/resources/profile/client/Client.js +2 -2
  16. package/api/resources/providers/client/Client.js +1 -1
  17. package/api/resources/sleep/client/Client.js +3 -3
  18. package/api/resources/sleepCycle/client/Client.js +1 -1
  19. package/api/resources/team/client/Client.js +7 -7
  20. package/api/resources/testkit/client/Client.js +2 -2
  21. package/api/resources/user/client/Client.js +25 -19
  22. package/api/resources/user/client/requests/CreateInsuranceRequest.d.ts +1 -0
  23. package/api/resources/user/client/requests/GetLatestInsuranceUserRequest.d.ts +1 -0
  24. package/api/resources/vitals/client/Client.js +78 -78
  25. package/api/resources/workouts/client/Client.js +3 -3
  26. package/api/types/ClientFacingInsurance.d.ts +1 -0
  27. package/dist/api/resources/activity/client/Client.js +2 -2
  28. package/dist/api/resources/aggregate/client/Client.js +3 -3
  29. package/dist/api/resources/body/client/Client.js +2 -2
  30. package/dist/api/resources/devices/client/Client.js +1 -1
  31. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  32. package/dist/api/resources/insurance/client/Client.js +3 -3
  33. package/dist/api/resources/introspect/client/Client.js +2 -2
  34. package/dist/api/resources/labReport/client/Client.js +2 -2
  35. package/dist/api/resources/labTests/client/Client.js +42 -42
  36. package/dist/api/resources/link/client/Client.js +19 -19
  37. package/dist/api/resources/meal/client/Client.js +1 -1
  38. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  39. package/dist/api/resources/order/client/Client.js +1 -1
  40. package/dist/api/resources/payor/client/Client.js +1 -1
  41. package/dist/api/resources/profile/client/Client.js +2 -2
  42. package/dist/api/resources/providers/client/Client.js +1 -1
  43. package/dist/api/resources/sleep/client/Client.js +3 -3
  44. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  45. package/dist/api/resources/team/client/Client.js +7 -7
  46. package/dist/api/resources/testkit/client/Client.js +2 -2
  47. package/dist/api/resources/user/client/Client.js +25 -19
  48. package/dist/api/resources/user/client/requests/CreateInsuranceRequest.d.ts +1 -0
  49. package/dist/api/resources/user/client/requests/GetLatestInsuranceUserRequest.d.ts +1 -0
  50. package/dist/api/resources/vitals/client/Client.js +78 -78
  51. package/dist/api/resources/workouts/client/Client.js +3 -3
  52. package/dist/api/types/ClientFacingInsurance.d.ts +1 -0
  53. package/dist/serialization/resources/user/client/requests/CreateInsuranceRequest.d.ts +1 -0
  54. package/dist/serialization/resources/user/client/requests/CreateInsuranceRequest.js +1 -0
  55. package/dist/serialization/types/ClientFacingInsurance.d.ts +1 -0
  56. package/dist/serialization/types/ClientFacingInsurance.js +1 -0
  57. package/dist/version.d.ts +1 -1
  58. package/dist/version.js +1 -1
  59. package/package.json +1 -1
  60. package/serialization/resources/user/client/requests/CreateInsuranceRequest.d.ts +1 -0
  61. package/serialization/resources/user/client/requests/CreateInsuranceRequest.js +1 -0
  62. package/serialization/types/ClientFacingInsurance.d.ts +1 -0
  63. package/serialization/types/ClientFacingInsurance.js +1 -0
  64. package/version.d.ts +1 -1
  65. package/version.js +1 -1
@@ -74,7 +74,7 @@ class User {
74
74
  const _response = yield core.fetcher({
75
75
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user"),
76
76
  method: "GET",
77
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
78
  contentType: "application/json",
79
79
  queryParameters: _queryParams,
80
80
  requestType: "json",
@@ -141,7 +141,7 @@ class User {
141
141
  const _response = yield core.fetcher({
142
142
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user"),
143
143
  method: "POST",
144
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
144
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
145
145
  contentType: "application/json",
146
146
  requestType: "json",
147
147
  body: serializers.UserCreateBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -204,7 +204,7 @@ class User {
204
204
  const _response = yield core.fetcher({
205
205
  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"),
206
206
  method: "GET",
207
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
207
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
208
208
  contentType: "application/json",
209
209
  requestType: "json",
210
210
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -258,7 +258,7 @@ class User {
258
258
  const _response = yield core.fetcher({
259
259
  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/${encodeURIComponent(userId)}`),
260
260
  method: "GET",
261
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
261
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
262
262
  contentType: "application/json",
263
263
  requestType: "json",
264
264
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -320,7 +320,7 @@ class User {
320
320
  const _response = yield core.fetcher({
321
321
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${encodeURIComponent(userId)}/info/latest`),
322
322
  method: "GET",
323
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
323
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
324
324
  contentType: "application/json",
325
325
  requestType: "json",
326
326
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -401,7 +401,7 @@ class User {
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/user/${encodeURIComponent(userId)}/insurance`),
403
403
  method: "POST",
404
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
404
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
405
405
  contentType: "application/json",
406
406
  requestType: "json",
407
407
  body: serializers.CreateInsuranceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -461,11 +461,17 @@ class User {
461
461
  getLatestInsurance(userId, request = {}, requestOptions) {
462
462
  var _a;
463
463
  return __awaiter(this, void 0, void 0, function* () {
464
+ const { isPrimary } = request;
465
+ const _queryParams = {};
466
+ if (isPrimary != null) {
467
+ _queryParams["is_primary"] = isPrimary.toString();
468
+ }
464
469
  const _response = yield core.fetcher({
465
470
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${encodeURIComponent(userId)}/insurance/latest`),
466
471
  method: "GET",
467
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
472
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
468
473
  contentType: "application/json",
474
+ queryParameters: _queryParams,
469
475
  requestType: "json",
470
476
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
471
477
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -540,7 +546,7 @@ class User {
540
546
  const _response = yield core.fetcher({
541
547
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${encodeURIComponent(userId)}/info`),
542
548
  method: "PATCH",
543
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
549
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
544
550
  contentType: "application/json",
545
551
  requestType: "json",
546
552
  body: serializers.UserInfoCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -605,7 +611,7 @@ class User {
605
611
  const _response = yield core.fetcher({
606
612
  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/${encodeURIComponent(clientUserId)}`),
607
613
  method: "GET",
608
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
614
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
609
615
  contentType: "application/json",
610
616
  requestType: "json",
611
617
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -668,7 +674,7 @@ class User {
668
674
  const _response = yield core.fetcher({
669
675
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${encodeURIComponent(userId)}/${encodeURIComponent(serializers.Providers.jsonOrThrow(provider))}`),
670
676
  method: "DELETE",
671
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
677
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
672
678
  contentType: "application/json",
673
679
  requestType: "json",
674
680
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -730,7 +736,7 @@ class User {
730
736
  const _response = yield core.fetcher({
731
737
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${encodeURIComponent(userId)}`),
732
738
  method: "GET",
733
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
739
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
734
740
  contentType: "application/json",
735
741
  requestType: "json",
736
742
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -792,7 +798,7 @@ class User {
792
798
  const _response = yield core.fetcher({
793
799
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${encodeURIComponent(userId)}`),
794
800
  method: "DELETE",
795
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
801
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
796
802
  contentType: "application/json",
797
803
  requestType: "json",
798
804
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -854,7 +860,7 @@ class User {
854
860
  const _response = yield core.fetcher({
855
861
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${encodeURIComponent(userId)}`),
856
862
  method: "PATCH",
857
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
863
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
858
864
  contentType: "application/json",
859
865
  requestType: "json",
860
866
  body: serializers.UserPatchBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -919,7 +925,7 @@ class User {
919
925
  const _response = yield core.fetcher({
920
926
  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"),
921
927
  method: "POST",
922
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
928
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
923
929
  contentType: "application/json",
924
930
  queryParameters: _queryParams,
925
931
  requestType: "json",
@@ -990,7 +996,7 @@ class User {
990
996
  const _response = yield core.fetcher({
991
997
  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/${encodeURIComponent(userId)}`),
992
998
  method: "POST",
993
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
999
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
994
1000
  contentType: "application/json",
995
1001
  queryParameters: _queryParams,
996
1002
  requestType: "json",
@@ -1055,7 +1061,7 @@ class User {
1055
1061
  const _response = yield core.fetcher({
1056
1062
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${encodeURIComponent(userId)}/device`),
1057
1063
  method: "GET",
1058
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1064
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1059
1065
  contentType: "application/json",
1060
1066
  requestType: "json",
1061
1067
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1118,7 +1124,7 @@ class User {
1118
1124
  const _response = yield core.fetcher({
1119
1125
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${encodeURIComponent(userId)}/device/${encodeURIComponent(deviceId)}`),
1120
1126
  method: "GET",
1121
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1127
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1122
1128
  contentType: "application/json",
1123
1129
  requestType: "json",
1124
1130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1180,7 +1186,7 @@ class User {
1180
1186
  const _response = yield core.fetcher({
1181
1187
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${encodeURIComponent(userId)}/sign_in_token`),
1182
1188
  method: "POST",
1183
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1189
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1184
1190
  contentType: "application/json",
1185
1191
  requestType: "json",
1186
1192
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1244,7 +1250,7 @@ class User {
1244
1250
  const _response = yield core.fetcher({
1245
1251
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${encodeURIComponent(userId)}/create_portal_url`),
1246
1252
  method: "POST",
1247
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.527", "User-Agent": "@tryvital/vital-node/3.1.527", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1253
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.529", "User-Agent": "@tryvital/vital-node/3.1.529", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1248
1254
  contentType: "application/json",
1249
1255
  requestType: "json",
1250
1256
  body: serializers.CreateUserPortalUrlBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -32,4 +32,5 @@ export interface CreateInsuranceRequest {
32
32
  relationship: Vital.ResponsibleRelationship;
33
33
  insured: Vital.VitalCoreSchemasDbSchemasLabTestInsurancePersonDetails;
34
34
  guarantor?: Vital.GuarantorDetails;
35
+ isPrimary?: boolean;
35
36
  }
@@ -6,4 +6,5 @@
6
6
  * {}
7
7
  */
8
8
  export interface GetLatestInsuranceUserRequest {
9
+ isPrimary?: boolean;
9
10
  }