@tryvital/vital-node 3.1.102 → 3.1.104

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 (101) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +1 -1
  3. package/api/resources/body/client/Client.js +2 -2
  4. package/api/resources/devices/client/Client.js +1 -1
  5. package/api/resources/insurance/client/Client.js +2 -2
  6. package/api/resources/introspect/client/Client.js +2 -2
  7. package/api/resources/labTests/client/Client.js +34 -34
  8. package/api/resources/link/client/Client.js +14 -14
  9. package/api/resources/link/client/requests/LinkTokenBase.d.ts +2 -0
  10. package/api/resources/meal/client/Client.js +1 -1
  11. package/api/resources/menstrualCycle/client/Client.js +1 -1
  12. package/api/resources/profile/client/Client.js +2 -2
  13. package/api/resources/providers/client/Client.js +1 -1
  14. package/api/resources/sleep/client/Client.js +4 -4
  15. package/api/resources/team/client/Client.js +7 -7
  16. package/api/resources/testkit/client/Client.js +2 -2
  17. package/api/resources/user/client/Client.js +16 -16
  18. package/api/resources/vitals/client/Client.js +56 -56
  19. package/api/resources/workouts/client/Client.js +3 -3
  20. package/api/types/BiomarkerResult.d.ts +1 -0
  21. package/api/types/ClientFacingResource.d.ts +2 -1
  22. package/api/types/ClientFacingResource.js +1 -0
  23. package/api/types/ClientFacingSleep.d.ts +2 -2
  24. package/api/types/LinkRequirements.d.ts +9 -0
  25. package/api/types/LinkRequirements.js +5 -0
  26. package/api/types/MissingBiomarkerResult.d.ts +1 -0
  27. package/api/types/ParentBiomarkerData.d.ts +9 -0
  28. package/api/types/ParentBiomarkerData.js +5 -0
  29. package/api/types/SleepColumnExprSleep.d.ts +2 -1
  30. package/api/types/SleepColumnExprSleep.js +1 -0
  31. package/api/types/index.d.ts +2 -0
  32. package/api/types/index.js +2 -0
  33. package/dist/api/resources/activity/client/Client.js +2 -2
  34. package/dist/api/resources/aggregate/client/Client.js +1 -1
  35. package/dist/api/resources/body/client/Client.js +2 -2
  36. package/dist/api/resources/devices/client/Client.js +1 -1
  37. package/dist/api/resources/insurance/client/Client.js +2 -2
  38. package/dist/api/resources/introspect/client/Client.js +2 -2
  39. package/dist/api/resources/labTests/client/Client.js +34 -34
  40. package/dist/api/resources/link/client/Client.js +14 -14
  41. package/dist/api/resources/link/client/requests/LinkTokenBase.d.ts +2 -0
  42. package/dist/api/resources/meal/client/Client.js +1 -1
  43. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  44. package/dist/api/resources/profile/client/Client.js +2 -2
  45. package/dist/api/resources/providers/client/Client.js +1 -1
  46. package/dist/api/resources/sleep/client/Client.js +4 -4
  47. package/dist/api/resources/team/client/Client.js +7 -7
  48. package/dist/api/resources/testkit/client/Client.js +2 -2
  49. package/dist/api/resources/user/client/Client.js +16 -16
  50. package/dist/api/resources/vitals/client/Client.js +56 -56
  51. package/dist/api/resources/workouts/client/Client.js +3 -3
  52. package/dist/api/types/BiomarkerResult.d.ts +1 -0
  53. package/dist/api/types/ClientFacingResource.d.ts +2 -1
  54. package/dist/api/types/ClientFacingResource.js +1 -0
  55. package/dist/api/types/ClientFacingSleep.d.ts +2 -2
  56. package/dist/api/types/LinkRequirements.d.ts +9 -0
  57. package/dist/api/types/LinkRequirements.js +5 -0
  58. package/dist/api/types/MissingBiomarkerResult.d.ts +1 -0
  59. package/dist/api/types/ParentBiomarkerData.d.ts +9 -0
  60. package/dist/api/types/ParentBiomarkerData.js +5 -0
  61. package/dist/api/types/SleepColumnExprSleep.d.ts +2 -1
  62. package/dist/api/types/SleepColumnExprSleep.js +1 -0
  63. package/dist/api/types/index.d.ts +2 -0
  64. package/dist/api/types/index.js +2 -0
  65. package/dist/serialization/resources/link/client/requests/LinkTokenBase.d.ts +2 -0
  66. package/dist/serialization/resources/link/client/requests/LinkTokenBase.js +2 -0
  67. package/dist/serialization/types/BiomarkerResult.d.ts +2 -0
  68. package/dist/serialization/types/BiomarkerResult.js +2 -0
  69. package/dist/serialization/types/ClientFacingResource.d.ts +1 -1
  70. package/dist/serialization/types/ClientFacingResource.js +1 -0
  71. package/dist/serialization/types/LinkRequirements.d.ts +15 -0
  72. package/dist/serialization/types/LinkRequirements.js +36 -0
  73. package/dist/serialization/types/MissingBiomarkerResult.d.ts +2 -0
  74. package/dist/serialization/types/MissingBiomarkerResult.js +2 -0
  75. package/dist/serialization/types/ParentBiomarkerData.d.ts +15 -0
  76. package/dist/serialization/types/ParentBiomarkerData.js +36 -0
  77. package/dist/serialization/types/SleepColumnExprSleep.d.ts +1 -1
  78. package/dist/serialization/types/SleepColumnExprSleep.js +1 -0
  79. package/dist/serialization/types/index.d.ts +2 -0
  80. package/dist/serialization/types/index.js +2 -0
  81. package/dist/version.d.ts +1 -1
  82. package/dist/version.js +1 -1
  83. package/package.json +1 -1
  84. package/serialization/resources/link/client/requests/LinkTokenBase.d.ts +2 -0
  85. package/serialization/resources/link/client/requests/LinkTokenBase.js +2 -0
  86. package/serialization/types/BiomarkerResult.d.ts +2 -0
  87. package/serialization/types/BiomarkerResult.js +2 -0
  88. package/serialization/types/ClientFacingResource.d.ts +1 -1
  89. package/serialization/types/ClientFacingResource.js +1 -0
  90. package/serialization/types/LinkRequirements.d.ts +15 -0
  91. package/serialization/types/LinkRequirements.js +36 -0
  92. package/serialization/types/MissingBiomarkerResult.d.ts +2 -0
  93. package/serialization/types/MissingBiomarkerResult.js +2 -0
  94. package/serialization/types/ParentBiomarkerData.d.ts +15 -0
  95. package/serialization/types/ParentBiomarkerData.js +36 -0
  96. package/serialization/types/SleepColumnExprSleep.d.ts +1 -1
  97. package/serialization/types/SleepColumnExprSleep.js +1 -0
  98. package/serialization/types/index.d.ts +2 -0
  99. package/serialization/types/index.js +2 -0
  100. package/version.d.ts +1 -1
  101. package/version.js +1 -1
@@ -22,4 +22,5 @@ export interface BiomarkerResult {
22
22
  loinc?: string;
23
23
  loincSlug?: string;
24
24
  providerId?: string;
25
+ sourceMarkers?: Vital.ParentBiomarkerData[];
25
26
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type ClientFacingResource = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "electrocardiogram_voltage" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream";
4
+ export declare type ClientFacingResource = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "sleep_cycle" | "electrocardiogram_voltage" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream";
5
5
  export declare const ClientFacingResource: {
6
6
  readonly Profile: "profile";
7
7
  readonly Activity: "activity";
@@ -40,6 +40,7 @@ export declare const ClientFacingResource: {
40
40
  readonly CaloriesBasal: "calories_basal";
41
41
  readonly StressLevel: "stress_level";
42
42
  readonly MenstrualCycle: "menstrual_cycle";
43
+ readonly SleepCycle: "sleep_cycle";
43
44
  readonly ElectrocardiogramVoltage: "electrocardiogram_voltage";
44
45
  readonly WorkoutDuration: "workout_duration";
45
46
  readonly InsulinInjection: "insulin_injection";
@@ -42,6 +42,7 @@ exports.ClientFacingResource = {
42
42
  CaloriesBasal: "calories_basal",
43
43
  StressLevel: "stress_level",
44
44
  MenstrualCycle: "menstrual_cycle",
45
+ SleepCycle: "sleep_cycle",
45
46
  ElectrocardiogramVoltage: "electrocardiogram_voltage",
46
47
  WorkoutDuration: "workout_duration",
47
48
  InsulinInjection: "insulin_injection",
@@ -16,9 +16,9 @@ export interface ClientFacingSleep {
16
16
  bedtimeStop: string;
17
17
  /**
18
18
  * `long_sleep`: >=3 hours of sleep;
19
- * `short_sleep`: <3 hours of sleep that was ended before 6:00 PM in local time;
19
+ * `short_sleep`: <3 hours of sleep;
20
20
  * `acknowledged_nap`: User-acknowledged naps, typically under 3 hours of sleep;
21
- * `indeterminate`: The sleep session recording is ongoing.
21
+ * `unknown`: The sleep session recording is ongoing.
22
22
  */
23
23
  type: Vital.SleepType;
24
24
  /** Timezone offset from UTC as seconds. For example, EEST (Eastern European Summer Time, +3h) is 10800. PST (Pacific Standard Time, -8h) is -28800::seconds */
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../index";
5
+ export interface LinkRequirements {
6
+ provider?: Vital.Providers;
7
+ providerAllowlist?: Vital.Providers[];
8
+ redirectUrl?: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,4 +10,5 @@ export interface MissingBiomarkerResult {
10
10
  loinc?: string;
11
11
  loincSlug?: string;
12
12
  providerId?: string;
13
+ sourceMarkers?: Vital.ParentBiomarkerData[];
13
14
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ParentBiomarkerData {
5
+ markerId: number;
6
+ name: string;
7
+ slug: string;
8
+ providerId?: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type SleepColumnExprSleep = "session_start" | "session_end" | "state" | "duration_second" | "stage_asleep_second" | "stage_awake_second" | "stage_light_second" | "stage_rem_second" | "stage_deep_second" | "stage_unknown_second" | "latency_second" | "heart_rate_minimum" | "heart_rate_mean" | "heart_rate_maximum" | "heart_rate_dip" | "efficiency" | "hrv_mean_rmssd" | "hrv_mean_sdnn" | "skin_temperature_delta" | "respiratory_rate" | "score" | "source_type" | "source_provider" | "source_app_id";
4
+ export declare type SleepColumnExprSleep = "session_start" | "session_end" | "state" | "type" | "duration_second" | "stage_asleep_second" | "stage_awake_second" | "stage_light_second" | "stage_rem_second" | "stage_deep_second" | "stage_unknown_second" | "latency_second" | "heart_rate_minimum" | "heart_rate_mean" | "heart_rate_maximum" | "heart_rate_dip" | "efficiency" | "hrv_mean_rmssd" | "hrv_mean_sdnn" | "skin_temperature_delta" | "respiratory_rate" | "score" | "source_type" | "source_provider" | "source_app_id";
5
5
  export declare const SleepColumnExprSleep: {
6
6
  readonly SessionStart: "session_start";
7
7
  readonly SessionEnd: "session_end";
8
8
  readonly State: "state";
9
+ readonly Type: "type";
9
10
  readonly DurationSecond: "duration_second";
10
11
  readonly StageAsleepSecond: "stage_asleep_second";
11
12
  readonly StageAwakeSecond: "stage_awake_second";
@@ -8,6 +8,7 @@ exports.SleepColumnExprSleep = {
8
8
  SessionStart: "session_start",
9
9
  SessionEnd: "session_end",
10
10
  State: "state",
11
+ Type: "type",
11
12
  DurationSecond: "duration_second",
12
13
  StageAsleepSecond: "stage_asleep_second",
13
14
  StageAwakeSecond: "stage_awake_second",
@@ -199,6 +199,7 @@ export * from "./LabTestStatus";
199
199
  export * from "./Labs";
200
200
  export * from "./LastAttempt";
201
201
  export * from "./LibreConfig";
202
+ export * from "./LinkRequirements";
202
203
  export * from "./LinkTokenExchangeResponse";
203
204
  export * from "./LngLat";
204
205
  export * from "./Macros";
@@ -223,6 +224,7 @@ export * from "./PscAreaInfo";
223
224
  export * from "./PscAreaInfoDetails";
224
225
  export * from "./PscInfo";
225
226
  export * from "./PaginatedUsersResponse";
227
+ export * from "./ParentBiomarkerData";
226
228
  export * from "./PasswordProviders";
227
229
  export * from "./PatientAddressCompatible";
228
230
  export * from "./PatientDetails";
@@ -215,6 +215,7 @@ __exportStar(require("./LabTestStatus"), exports);
215
215
  __exportStar(require("./Labs"), exports);
216
216
  __exportStar(require("./LastAttempt"), exports);
217
217
  __exportStar(require("./LibreConfig"), exports);
218
+ __exportStar(require("./LinkRequirements"), exports);
218
219
  __exportStar(require("./LinkTokenExchangeResponse"), exports);
219
220
  __exportStar(require("./LngLat"), exports);
220
221
  __exportStar(require("./Macros"), exports);
@@ -239,6 +240,7 @@ __exportStar(require("./PscAreaInfo"), exports);
239
240
  __exportStar(require("./PscAreaInfoDetails"), exports);
240
241
  __exportStar(require("./PscInfo"), exports);
241
242
  __exportStar(require("./PaginatedUsersResponse"), exports);
243
+ __exportStar(require("./ParentBiomarkerData"), exports);
242
244
  __exportStar(require("./PasswordProviders"), exports);
243
245
  __exportStar(require("./PatientAddressCompatible"), exports);
244
246
  __exportStar(require("./PatientDetails"), exports);
@@ -4,11 +4,13 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Vital from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
+ import { LinkRequirements } from "../../../../types/LinkRequirements";
7
8
  export declare const LinkTokenBase: core.serialization.Schema<serializers.LinkTokenBase.Raw, Vital.LinkTokenBase>;
8
9
  export declare namespace LinkTokenBase {
9
10
  interface Raw {
10
11
  token: string;
11
12
  is_used?: boolean | null;
12
13
  oauth_info?: Record<string, unknown> | null;
14
+ requirements?: LinkRequirements.Raw | null;
13
15
  }
14
16
  }
@@ -28,8 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.LinkTokenBase = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
+ const LinkRequirements_1 = require("../../../../types/LinkRequirements");
31
32
  exports.LinkTokenBase = core.serialization.object({
32
33
  token: core.serialization.string(),
33
34
  isUsed: core.serialization.property("is_used", core.serialization.boolean().optional()),
34
35
  oauthInfo: core.serialization.property("oauth_info", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
36
+ requirements: LinkRequirements_1.LinkRequirements.optional(),
35
37
  });
@@ -5,6 +5,7 @@ import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { ResultType } from "./ResultType";
8
+ import { ParentBiomarkerData } from "./ParentBiomarkerData";
8
9
  export declare const BiomarkerResult: core.serialization.ObjectSchema<serializers.BiomarkerResult.Raw, Vital.BiomarkerResult>;
9
10
  export declare namespace BiomarkerResult {
10
11
  interface Raw {
@@ -24,5 +25,6 @@ export declare namespace BiomarkerResult {
24
25
  loinc?: string | null;
25
26
  loinc_slug?: string | null;
26
27
  provider_id?: string | null;
28
+ source_markers?: ParentBiomarkerData.Raw[] | null;
27
29
  }
28
30
  }
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.BiomarkerResult = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const ResultType_1 = require("./ResultType");
32
+ const ParentBiomarkerData_1 = require("./ParentBiomarkerData");
32
33
  exports.BiomarkerResult = core.serialization.object({
33
34
  name: core.serialization.string(),
34
35
  slug: core.serialization.string().optional(),
@@ -46,4 +47,5 @@ exports.BiomarkerResult = core.serialization.object({
46
47
  loinc: core.serialization.string().optional(),
47
48
  loincSlug: core.serialization.property("loinc_slug", core.serialization.string().optional()),
48
49
  providerId: core.serialization.property("provider_id", core.serialization.string().optional()),
50
+ sourceMarkers: core.serialization.property("source_markers", core.serialization.list(ParentBiomarkerData_1.ParentBiomarkerData).optional()),
49
51
  });
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ClientFacingResource: core.serialization.Schema<serializers.ClientFacingResource.Raw, Vital.ClientFacingResource>;
8
8
  export declare namespace ClientFacingResource {
9
- type Raw = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "electrocardiogram_voltage" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream";
9
+ type Raw = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "sleep_cycle" | "electrocardiogram_voltage" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream";
10
10
  }
@@ -66,6 +66,7 @@ exports.ClientFacingResource = core.serialization.enum_([
66
66
  "calories_basal",
67
67
  "stress_level",
68
68
  "menstrual_cycle",
69
+ "sleep_cycle",
69
70
  "electrocardiogram_voltage",
70
71
  "workout_duration",
71
72
  "insulin_injection",
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { Providers } from "./Providers";
8
+ export declare const LinkRequirements: core.serialization.ObjectSchema<serializers.LinkRequirements.Raw, Vital.LinkRequirements>;
9
+ export declare namespace LinkRequirements {
10
+ interface Raw {
11
+ provider?: Providers.Raw | null;
12
+ provider_allowlist?: Providers.Raw[] | null;
13
+ redirect_url?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.LinkRequirements = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const Providers_1 = require("./Providers");
32
+ exports.LinkRequirements = core.serialization.object({
33
+ provider: Providers_1.Providers.optional(),
34
+ providerAllowlist: core.serialization.property("provider_allowlist", core.serialization.list(Providers_1.Providers).optional()),
35
+ redirectUrl: core.serialization.property("redirect_url", core.serialization.string().optional()),
36
+ });
@@ -5,6 +5,7 @@ import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { FailureType } from "./FailureType";
8
+ import { ParentBiomarkerData } from "./ParentBiomarkerData";
8
9
  export declare const MissingBiomarkerResult: core.serialization.ObjectSchema<serializers.MissingBiomarkerResult.Raw, Vital.MissingBiomarkerResult>;
9
10
  export declare namespace MissingBiomarkerResult {
10
11
  interface Raw {
@@ -15,5 +16,6 @@ export declare namespace MissingBiomarkerResult {
15
16
  loinc?: string | null;
16
17
  loinc_slug?: string | null;
17
18
  provider_id?: string | null;
19
+ source_markers?: ParentBiomarkerData.Raw[] | null;
18
20
  }
19
21
  }
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.MissingBiomarkerResult = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const FailureType_1 = require("./FailureType");
32
+ const ParentBiomarkerData_1 = require("./ParentBiomarkerData");
32
33
  exports.MissingBiomarkerResult = core.serialization.object({
33
34
  name: core.serialization.string(),
34
35
  slug: core.serialization.string(),
@@ -37,4 +38,5 @@ exports.MissingBiomarkerResult = core.serialization.object({
37
38
  loinc: core.serialization.string().optional(),
38
39
  loincSlug: core.serialization.property("loinc_slug", core.serialization.string().optional()),
39
40
  providerId: core.serialization.property("provider_id", core.serialization.string().optional()),
41
+ sourceMarkers: core.serialization.property("source_markers", core.serialization.list(ParentBiomarkerData_1.ParentBiomarkerData).optional()),
40
42
  });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ParentBiomarkerData: core.serialization.ObjectSchema<serializers.ParentBiomarkerData.Raw, Vital.ParentBiomarkerData>;
8
+ export declare namespace ParentBiomarkerData {
9
+ interface Raw {
10
+ marker_id: number;
11
+ name: string;
12
+ slug: string;
13
+ provider_id?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ParentBiomarkerData = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ParentBiomarkerData = core.serialization.object({
32
+ markerId: core.serialization.property("marker_id", core.serialization.number()),
33
+ name: core.serialization.string(),
34
+ slug: core.serialization.string(),
35
+ providerId: core.serialization.property("provider_id", core.serialization.string().optional()),
36
+ });
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const SleepColumnExprSleep: core.serialization.Schema<serializers.SleepColumnExprSleep.Raw, Vital.SleepColumnExprSleep>;
8
8
  export declare namespace SleepColumnExprSleep {
9
- type Raw = "session_start" | "session_end" | "state" | "duration_second" | "stage_asleep_second" | "stage_awake_second" | "stage_light_second" | "stage_rem_second" | "stage_deep_second" | "stage_unknown_second" | "latency_second" | "heart_rate_minimum" | "heart_rate_mean" | "heart_rate_maximum" | "heart_rate_dip" | "efficiency" | "hrv_mean_rmssd" | "hrv_mean_sdnn" | "skin_temperature_delta" | "respiratory_rate" | "score" | "source_type" | "source_provider" | "source_app_id";
9
+ type Raw = "session_start" | "session_end" | "state" | "type" | "duration_second" | "stage_asleep_second" | "stage_awake_second" | "stage_light_second" | "stage_rem_second" | "stage_deep_second" | "stage_unknown_second" | "latency_second" | "heart_rate_minimum" | "heart_rate_mean" | "heart_rate_maximum" | "heart_rate_dip" | "efficiency" | "hrv_mean_rmssd" | "hrv_mean_sdnn" | "skin_temperature_delta" | "respiratory_rate" | "score" | "source_type" | "source_provider" | "source_app_id";
10
10
  }
@@ -32,6 +32,7 @@ exports.SleepColumnExprSleep = core.serialization.enum_([
32
32
  "session_start",
33
33
  "session_end",
34
34
  "state",
35
+ "type",
35
36
  "duration_second",
36
37
  "stage_asleep_second",
37
38
  "stage_awake_second",
@@ -199,6 +199,7 @@ export * from "./LabTestStatus";
199
199
  export * from "./Labs";
200
200
  export * from "./LastAttempt";
201
201
  export * from "./LibreConfig";
202
+ export * from "./LinkRequirements";
202
203
  export * from "./LinkTokenExchangeResponse";
203
204
  export * from "./LngLat";
204
205
  export * from "./Macros";
@@ -223,6 +224,7 @@ export * from "./PscAreaInfo";
223
224
  export * from "./PscAreaInfoDetails";
224
225
  export * from "./PscInfo";
225
226
  export * from "./PaginatedUsersResponse";
227
+ export * from "./ParentBiomarkerData";
226
228
  export * from "./PasswordProviders";
227
229
  export * from "./PatientAddressCompatible";
228
230
  export * from "./PatientDetails";
@@ -215,6 +215,7 @@ __exportStar(require("./LabTestStatus"), exports);
215
215
  __exportStar(require("./Labs"), exports);
216
216
  __exportStar(require("./LastAttempt"), exports);
217
217
  __exportStar(require("./LibreConfig"), exports);
218
+ __exportStar(require("./LinkRequirements"), exports);
218
219
  __exportStar(require("./LinkTokenExchangeResponse"), exports);
219
220
  __exportStar(require("./LngLat"), exports);
220
221
  __exportStar(require("./Macros"), exports);
@@ -239,6 +240,7 @@ __exportStar(require("./PscAreaInfo"), exports);
239
240
  __exportStar(require("./PscAreaInfoDetails"), exports);
240
241
  __exportStar(require("./PscInfo"), exports);
241
242
  __exportStar(require("./PaginatedUsersResponse"), exports);
243
+ __exportStar(require("./ParentBiomarkerData"), exports);
242
244
  __exportStar(require("./PasswordProviders"), exports);
243
245
  __exportStar(require("./PatientAddressCompatible"), exports);
244
246
  __exportStar(require("./PatientDetails"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.102";
1
+ export declare const SDK_VERSION = "3.1.104";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "3.1.102";
4
+ exports.SDK_VERSION = "3.1.104";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.102",
3
+ "version": "3.1.104",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
@@ -4,11 +4,13 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Vital from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
+ import { LinkRequirements } from "../../../../types/LinkRequirements";
7
8
  export declare const LinkTokenBase: core.serialization.Schema<serializers.LinkTokenBase.Raw, Vital.LinkTokenBase>;
8
9
  export declare namespace LinkTokenBase {
9
10
  interface Raw {
10
11
  token: string;
11
12
  is_used?: boolean | null;
12
13
  oauth_info?: Record<string, unknown> | null;
14
+ requirements?: LinkRequirements.Raw | null;
13
15
  }
14
16
  }
@@ -28,8 +28,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.LinkTokenBase = void 0;
30
30
  const core = __importStar(require("../../../../../core"));
31
+ const LinkRequirements_1 = require("../../../../types/LinkRequirements");
31
32
  exports.LinkTokenBase = core.serialization.object({
32
33
  token: core.serialization.string(),
33
34
  isUsed: core.serialization.property("is_used", core.serialization.boolean().optional()),
34
35
  oauthInfo: core.serialization.property("oauth_info", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
36
+ requirements: LinkRequirements_1.LinkRequirements.optional(),
35
37
  });
@@ -5,6 +5,7 @@ import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { ResultType } from "./ResultType";
8
+ import { ParentBiomarkerData } from "./ParentBiomarkerData";
8
9
  export declare const BiomarkerResult: core.serialization.ObjectSchema<serializers.BiomarkerResult.Raw, Vital.BiomarkerResult>;
9
10
  export declare namespace BiomarkerResult {
10
11
  interface Raw {
@@ -24,5 +25,6 @@ export declare namespace BiomarkerResult {
24
25
  loinc?: string | null;
25
26
  loinc_slug?: string | null;
26
27
  provider_id?: string | null;
28
+ source_markers?: ParentBiomarkerData.Raw[] | null;
27
29
  }
28
30
  }
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.BiomarkerResult = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const ResultType_1 = require("./ResultType");
32
+ const ParentBiomarkerData_1 = require("./ParentBiomarkerData");
32
33
  exports.BiomarkerResult = core.serialization.object({
33
34
  name: core.serialization.string(),
34
35
  slug: core.serialization.string().optional(),
@@ -46,4 +47,5 @@ exports.BiomarkerResult = core.serialization.object({
46
47
  loinc: core.serialization.string().optional(),
47
48
  loincSlug: core.serialization.property("loinc_slug", core.serialization.string().optional()),
48
49
  providerId: core.serialization.property("provider_id", core.serialization.string().optional()),
50
+ sourceMarkers: core.serialization.property("source_markers", core.serialization.list(ParentBiomarkerData_1.ParentBiomarkerData).optional()),
49
51
  });
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ClientFacingResource: core.serialization.Schema<serializers.ClientFacingResource.Raw, Vital.ClientFacingResource>;
8
8
  export declare namespace ClientFacingResource {
9
- type Raw = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "electrocardiogram_voltage" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream";
9
+ type Raw = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "sleep_cycle" | "electrocardiogram_voltage" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream";
10
10
  }
@@ -66,6 +66,7 @@ exports.ClientFacingResource = core.serialization.enum_([
66
66
  "calories_basal",
67
67
  "stress_level",
68
68
  "menstrual_cycle",
69
+ "sleep_cycle",
69
70
  "electrocardiogram_voltage",
70
71
  "workout_duration",
71
72
  "insulin_injection",
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { Providers } from "./Providers";
8
+ export declare const LinkRequirements: core.serialization.ObjectSchema<serializers.LinkRequirements.Raw, Vital.LinkRequirements>;
9
+ export declare namespace LinkRequirements {
10
+ interface Raw {
11
+ provider?: Providers.Raw | null;
12
+ provider_allowlist?: Providers.Raw[] | null;
13
+ redirect_url?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.LinkRequirements = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const Providers_1 = require("./Providers");
32
+ exports.LinkRequirements = core.serialization.object({
33
+ provider: Providers_1.Providers.optional(),
34
+ providerAllowlist: core.serialization.property("provider_allowlist", core.serialization.list(Providers_1.Providers).optional()),
35
+ redirectUrl: core.serialization.property("redirect_url", core.serialization.string().optional()),
36
+ });
@@ -5,6 +5,7 @@ import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { FailureType } from "./FailureType";
8
+ import { ParentBiomarkerData } from "./ParentBiomarkerData";
8
9
  export declare const MissingBiomarkerResult: core.serialization.ObjectSchema<serializers.MissingBiomarkerResult.Raw, Vital.MissingBiomarkerResult>;
9
10
  export declare namespace MissingBiomarkerResult {
10
11
  interface Raw {
@@ -15,5 +16,6 @@ export declare namespace MissingBiomarkerResult {
15
16
  loinc?: string | null;
16
17
  loinc_slug?: string | null;
17
18
  provider_id?: string | null;
19
+ source_markers?: ParentBiomarkerData.Raw[] | null;
18
20
  }
19
21
  }
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.MissingBiomarkerResult = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const FailureType_1 = require("./FailureType");
32
+ const ParentBiomarkerData_1 = require("./ParentBiomarkerData");
32
33
  exports.MissingBiomarkerResult = core.serialization.object({
33
34
  name: core.serialization.string(),
34
35
  slug: core.serialization.string(),
@@ -37,4 +38,5 @@ exports.MissingBiomarkerResult = core.serialization.object({
37
38
  loinc: core.serialization.string().optional(),
38
39
  loincSlug: core.serialization.property("loinc_slug", core.serialization.string().optional()),
39
40
  providerId: core.serialization.property("provider_id", core.serialization.string().optional()),
41
+ sourceMarkers: core.serialization.property("source_markers", core.serialization.list(ParentBiomarkerData_1.ParentBiomarkerData).optional()),
40
42
  });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vital from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ParentBiomarkerData: core.serialization.ObjectSchema<serializers.ParentBiomarkerData.Raw, Vital.ParentBiomarkerData>;
8
+ export declare namespace ParentBiomarkerData {
9
+ interface Raw {
10
+ marker_id: number;
11
+ name: string;
12
+ slug: string;
13
+ provider_id?: string | null;
14
+ }
15
+ }