@tryvital/vital-node 3.1.179 → 3.1.181

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 (92) 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/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/labTests/client/Client.js +34 -34
  9. package/api/resources/link/client/Client.d.ts +19 -0
  10. package/api/resources/link/client/Client.js +85 -14
  11. package/api/resources/link/client/requests/BulkImportConnectionsBody.d.ts +21 -0
  12. package/api/resources/link/client/requests/index.d.ts +1 -0
  13. package/api/resources/meal/client/Client.js +1 -1
  14. package/api/resources/menstrualCycle/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 +4 -4
  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 +16 -16
  22. package/api/resources/vitals/client/Client.js +58 -58
  23. package/api/resources/workouts/client/Client.js +3 -3
  24. package/api/types/BulkImportConnectionsResponse.d.ts +7 -0
  25. package/api/types/ConnectionRecipe.d.ts +15 -0
  26. package/api/types/Region.d.ts +44 -5
  27. package/api/types/Region.js +43 -4
  28. package/api/types/index.d.ts +1 -1
  29. package/api/types/index.js +1 -1
  30. package/dist/api/resources/activity/client/Client.js +2 -2
  31. package/dist/api/resources/aggregate/client/Client.js +1 -1
  32. package/dist/api/resources/body/client/Client.js +2 -2
  33. package/dist/api/resources/devices/client/Client.js +1 -1
  34. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  35. package/dist/api/resources/insurance/client/Client.js +3 -3
  36. package/dist/api/resources/introspect/client/Client.js +2 -2
  37. package/dist/api/resources/labTests/client/Client.js +34 -34
  38. package/dist/api/resources/link/client/Client.d.ts +19 -0
  39. package/dist/api/resources/link/client/Client.js +85 -14
  40. package/dist/api/resources/link/client/requests/BulkImportConnectionsBody.d.ts +21 -0
  41. package/dist/api/resources/link/client/requests/BulkImportConnectionsBody.js +5 -0
  42. package/dist/api/resources/link/client/requests/index.d.ts +1 -0
  43. package/dist/api/resources/meal/client/Client.js +1 -1
  44. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  45. package/dist/api/resources/profile/client/Client.js +2 -2
  46. package/dist/api/resources/providers/client/Client.js +1 -1
  47. package/dist/api/resources/sleep/client/Client.js +4 -4
  48. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  49. package/dist/api/resources/team/client/Client.js +7 -7
  50. package/dist/api/resources/testkit/client/Client.js +2 -2
  51. package/dist/api/resources/user/client/Client.js +16 -16
  52. package/dist/api/resources/vitals/client/Client.js +58 -58
  53. package/dist/api/resources/workouts/client/Client.js +3 -3
  54. package/dist/api/types/BulkImportConnectionsResponse.d.ts +7 -0
  55. package/dist/api/types/BulkImportConnectionsResponse.js +5 -0
  56. package/dist/api/types/ConnectionRecipe.d.ts +15 -0
  57. package/dist/api/types/Region.d.ts +44 -5
  58. package/dist/api/types/Region.js +43 -4
  59. package/dist/api/types/index.d.ts +1 -1
  60. package/dist/api/types/index.js +1 -1
  61. package/dist/serialization/resources/link/client/requests/BulkImportConnectionsBody.d.ts +15 -0
  62. package/dist/serialization/{types → resources/link/client/requests}/BulkImportConnectionsBody.js +3 -3
  63. package/dist/serialization/resources/link/client/requests/index.d.ts +1 -0
  64. package/dist/serialization/resources/link/client/requests/index.js +3 -1
  65. package/dist/serialization/types/BulkImportConnectionsResponse.d.ts +13 -0
  66. package/dist/serialization/types/BulkImportConnectionsResponse.js +34 -0
  67. package/dist/serialization/types/Region.d.ts +1 -1
  68. package/dist/serialization/types/Region.js +43 -4
  69. package/dist/serialization/types/index.d.ts +1 -1
  70. package/dist/serialization/types/index.js +1 -1
  71. package/dist/version.d.ts +1 -1
  72. package/dist/version.js +1 -1
  73. package/package.json +1 -1
  74. package/reference.md +59 -0
  75. package/serialization/resources/link/client/requests/BulkImportConnectionsBody.d.ts +15 -0
  76. package/serialization/{types → resources/link/client/requests}/BulkImportConnectionsBody.js +3 -3
  77. package/serialization/resources/link/client/requests/index.d.ts +1 -0
  78. package/serialization/resources/link/client/requests/index.js +3 -1
  79. package/serialization/types/BulkImportConnectionsResponse.d.ts +13 -0
  80. package/serialization/types/BulkImportConnectionsResponse.js +34 -0
  81. package/serialization/types/Region.d.ts +1 -1
  82. package/serialization/types/Region.js +43 -4
  83. package/serialization/types/index.d.ts +1 -1
  84. package/serialization/types/index.js +1 -1
  85. package/version.d.ts +1 -1
  86. package/version.js +1 -1
  87. package/api/types/BulkImportConnectionsBody.d.ts +0 -8
  88. package/dist/api/types/BulkImportConnectionsBody.d.ts +0 -8
  89. package/dist/serialization/types/BulkImportConnectionsBody.d.ts +0 -15
  90. package/serialization/types/BulkImportConnectionsBody.d.ts +0 -15
  91. /package/api/{types → resources/link/client/requests}/BulkImportConnectionsBody.js +0 -0
  92. /package/{dist/api/types/BulkImportConnectionsBody.js → api/types/BulkImportConnectionsResponse.js} +0 -0
@@ -78,7 +78,7 @@ class Workouts {
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/workouts/${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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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 Workouts {
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/workouts/${encodeURIComponent(userId)}/raw`),
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.179", "User-Agent": "@tryvital/vital-node/3.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
157
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.181", "User-Agent": "@tryvital/vital-node/3.1.181", "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",
@@ -216,7 +216,7 @@ class Workouts {
216
216
  const _response = yield core.fetcher({
217
217
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/workouts/${encodeURIComponent(workoutId)}/stream`),
218
218
  method: "GET",
219
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.179", "User-Agent": "@tryvital/vital-node/3.1.179", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
219
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.181", "User-Agent": "@tryvital/vital-node/3.1.181", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface BulkImportConnectionsResponse {
5
+ userIdsImported: string[];
6
+ userIdsFailed: string[];
7
+ }
@@ -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 });
@@ -2,10 +2,25 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface ConnectionRecipe {
5
+ /** Vital User ID. The user must be created ahead of the bulk import operation. */
5
6
  userId: string;
6
7
  accessToken: string;
7
8
  refreshToken: string;
9
+ /**
10
+ * User ID of the data provider.
11
+ *
12
+ * - Fitbit: 6-character Fitbit User ID
13
+ * - Garmin: 36-character Garmin User ID
14
+ */
8
15
  providerId: string;
16
+ /** Access token expiry date, in terms of UNIX epoch seconds. */
9
17
  expiresAt: number;
18
+ /**
19
+ * OAuth scopes of the data provider. Specify `null` if you do not
20
+ * have any scopes on record.
21
+ *
22
+ * - Fitbit: Has scopes
23
+ * - Garmin: No scope
24
+ */
10
25
  oauthScopes?: string[];
11
26
  }
@@ -1,16 +1,55 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type Region = "us" | "eu" | "sg" | "de" | "au" | "br" | "nl" | "fr" | "ca" | "in";
4
+ export declare type Region = "us" | "eu" | "de" | "fr" | "ca" | "br" | "ar" | "cl" | "co" | "mx" | "gb" | "ie" | "au" | "nz" | "nl" | "at" | "be" | "bh" | "ch" | "cz" | "dk" | "eg" | "es" | "fi" | "gr" | "hr" | "il" | "it" | "jo" | "kw" | "lb" | "lu" | "no" | "om" | "pl" | "pt" | "qa" | "sa" | "se" | "si" | "sk" | "tr" | "za" | "in" | "sg" | "hk" | "kr" | "ph" | "tw";
5
5
  export declare const Region: {
6
6
  readonly Us: "us";
7
7
  readonly Eu: "eu";
8
- readonly Sg: "sg";
9
8
  readonly De: "de";
10
- readonly Au: "au";
11
- readonly Br: "br";
12
- readonly Nl: "nl";
13
9
  readonly Fr: "fr";
14
10
  readonly Ca: "ca";
11
+ readonly Br: "br";
12
+ readonly Ar: "ar";
13
+ readonly Cl: "cl";
14
+ readonly Co: "co";
15
+ readonly Mx: "mx";
16
+ readonly Gb: "gb";
17
+ readonly Ie: "ie";
18
+ readonly Au: "au";
19
+ readonly Nz: "nz";
20
+ readonly Nl: "nl";
21
+ readonly At: "at";
22
+ readonly Be: "be";
23
+ readonly Bh: "bh";
24
+ readonly Ch: "ch";
25
+ readonly Cz: "cz";
26
+ readonly Dk: "dk";
27
+ readonly Eg: "eg";
28
+ readonly Es: "es";
29
+ readonly Fi: "fi";
30
+ readonly Gr: "gr";
31
+ readonly Hr: "hr";
32
+ readonly Il: "il";
33
+ readonly It: "it";
34
+ readonly Jo: "jo";
35
+ readonly Kw: "kw";
36
+ readonly Lb: "lb";
37
+ readonly Lu: "lu";
38
+ readonly No: "no";
39
+ readonly Om: "om";
40
+ readonly Pl: "pl";
41
+ readonly Pt: "pt";
42
+ readonly Qa: "qa";
43
+ readonly Sa: "sa";
44
+ readonly Se: "se";
45
+ readonly Si: "si";
46
+ readonly Sk: "sk";
47
+ readonly Tr: "tr";
48
+ readonly Za: "za";
15
49
  readonly In: "in";
50
+ readonly Sg: "sg";
51
+ readonly Hk: "hk";
52
+ readonly Kr: "kr";
53
+ readonly Ph: "ph";
54
+ readonly Tw: "tw";
16
55
  };
@@ -7,12 +7,51 @@ exports.Region = void 0;
7
7
  exports.Region = {
8
8
  Us: "us",
9
9
  Eu: "eu",
10
- Sg: "sg",
11
10
  De: "de",
12
- Au: "au",
13
- Br: "br",
14
- Nl: "nl",
15
11
  Fr: "fr",
16
12
  Ca: "ca",
13
+ Br: "br",
14
+ Ar: "ar",
15
+ Cl: "cl",
16
+ Co: "co",
17
+ Mx: "mx",
18
+ Gb: "gb",
19
+ Ie: "ie",
20
+ Au: "au",
21
+ Nz: "nz",
22
+ Nl: "nl",
23
+ At: "at",
24
+ Be: "be",
25
+ Bh: "bh",
26
+ Ch: "ch",
27
+ Cz: "cz",
28
+ Dk: "dk",
29
+ Eg: "eg",
30
+ Es: "es",
31
+ Fi: "fi",
32
+ Gr: "gr",
33
+ Hr: "hr",
34
+ Il: "il",
35
+ It: "it",
36
+ Jo: "jo",
37
+ Kw: "kw",
38
+ Lb: "lb",
39
+ Lu: "lu",
40
+ No: "no",
41
+ Om: "om",
42
+ Pl: "pl",
43
+ Pt: "pt",
44
+ Qa: "qa",
45
+ Sa: "sa",
46
+ Se: "se",
47
+ Si: "si",
48
+ Sk: "sk",
49
+ Tr: "tr",
50
+ Za: "za",
17
51
  In: "in",
52
+ Sg: "sg",
53
+ Hk: "hk",
54
+ Kr: "kr",
55
+ Ph: "ph",
56
+ Tw: "tw",
18
57
  };
@@ -34,7 +34,7 @@ export * from "./BodyColumnExpr";
34
34
  export * from "./BodyV2InDb";
35
35
  export * from "./BulkExportConnectionsBody";
36
36
  export * from "./BulkExportConnectionsResponse";
37
- export * from "./BulkImportConnectionsBody";
37
+ export * from "./BulkImportConnectionsResponse";
38
38
  export * from "./BulkPauseConnectionsBody";
39
39
  export * from "./BulkTriggerHistoricalPullBody";
40
40
  export * from "./CervicalMucusEntryQuality";
@@ -50,7 +50,7 @@ __exportStar(require("./BodyColumnExpr"), exports);
50
50
  __exportStar(require("./BodyV2InDb"), exports);
51
51
  __exportStar(require("./BulkExportConnectionsBody"), exports);
52
52
  __exportStar(require("./BulkExportConnectionsResponse"), exports);
53
- __exportStar(require("./BulkImportConnectionsBody"), exports);
53
+ __exportStar(require("./BulkImportConnectionsResponse"), exports);
54
54
  __exportStar(require("./BulkPauseConnectionsBody"), exports);
55
55
  __exportStar(require("./BulkTriggerHistoricalPullBody"), exports);
56
56
  __exportStar(require("./CervicalMucusEntryQuality"), exports);
@@ -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 { OAuthProviders } from "../../../../types/OAuthProviders";
8
+ import { ConnectionRecipe } from "../../../../types/ConnectionRecipe";
9
+ export declare const BulkImportConnectionsBody: core.serialization.Schema<serializers.BulkImportConnectionsBody.Raw, Vital.BulkImportConnectionsBody>;
10
+ export declare namespace BulkImportConnectionsBody {
11
+ interface Raw {
12
+ provider: OAuthProviders.Raw;
13
+ connections: ConnectionRecipe.Raw[];
14
+ }
15
+ }
@@ -27,9 +27,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.BulkImportConnectionsBody = void 0;
30
- const core = __importStar(require("../../core"));
31
- const OAuthProviders_1 = require("./OAuthProviders");
32
- const ConnectionRecipe_1 = require("./ConnectionRecipe");
30
+ const core = __importStar(require("../../../../../core"));
31
+ const OAuthProviders_1 = require("../../../../types/OAuthProviders");
32
+ const ConnectionRecipe_1 = require("../../../../types/ConnectionRecipe");
33
33
  exports.BulkImportConnectionsBody = core.serialization.object({
34
34
  provider: OAuthProviders_1.OAuthProviders,
35
35
  connections: core.serialization.list(ConnectionRecipe_1.ConnectionRecipe),
@@ -1,3 +1,4 @@
1
+ export { BulkImportConnectionsBody } from "./BulkImportConnectionsBody";
1
2
  export { LinkTokenExchange } from "./LinkTokenExchange";
2
3
  export { LinkTokenValidationRequest } from "./LinkTokenValidationRequest";
3
4
  export { BeginLinkTokenRequest } from "./BeginLinkTokenRequest";
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DemoConnectionCreationPayload = exports.ManualConnectionData = exports.EmailProviderAuthLink = exports.CompletePasswordProviderMfaBody = exports.IndividualProviderData = exports.PasswordAuthLink = exports.EmailAuthLink = exports.BeginLinkTokenRequest = exports.LinkTokenValidationRequest = exports.LinkTokenExchange = void 0;
3
+ exports.DemoConnectionCreationPayload = exports.ManualConnectionData = exports.EmailProviderAuthLink = exports.CompletePasswordProviderMfaBody = exports.IndividualProviderData = exports.PasswordAuthLink = exports.EmailAuthLink = exports.BeginLinkTokenRequest = exports.LinkTokenValidationRequest = exports.LinkTokenExchange = exports.BulkImportConnectionsBody = void 0;
4
+ var BulkImportConnectionsBody_1 = require("./BulkImportConnectionsBody");
5
+ Object.defineProperty(exports, "BulkImportConnectionsBody", { enumerable: true, get: function () { return BulkImportConnectionsBody_1.BulkImportConnectionsBody; } });
4
6
  var LinkTokenExchange_1 = require("./LinkTokenExchange");
5
7
  Object.defineProperty(exports, "LinkTokenExchange", { enumerable: true, get: function () { return LinkTokenExchange_1.LinkTokenExchange; } });
6
8
  var LinkTokenValidationRequest_1 = require("./LinkTokenValidationRequest");
@@ -0,0 +1,13 @@
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 BulkImportConnectionsResponse: core.serialization.ObjectSchema<serializers.BulkImportConnectionsResponse.Raw, Vital.BulkImportConnectionsResponse>;
8
+ export declare namespace BulkImportConnectionsResponse {
9
+ interface Raw {
10
+ user_ids_imported: string[];
11
+ user_ids_failed: string[];
12
+ }
13
+ }
@@ -0,0 +1,34 @@
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.BulkImportConnectionsResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.BulkImportConnectionsResponse = core.serialization.object({
32
+ userIdsImported: core.serialization.property("user_ids_imported", core.serialization.list(core.serialization.string())),
33
+ userIdsFailed: core.serialization.property("user_ids_failed", core.serialization.list(core.serialization.string())),
34
+ });
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const Region: core.serialization.Schema<serializers.Region.Raw, Vital.Region>;
8
8
  export declare namespace Region {
9
- type Raw = "us" | "eu" | "sg" | "de" | "au" | "br" | "nl" | "fr" | "ca" | "in";
9
+ type Raw = "us" | "eu" | "de" | "fr" | "ca" | "br" | "ar" | "cl" | "co" | "mx" | "gb" | "ie" | "au" | "nz" | "nl" | "at" | "be" | "bh" | "ch" | "cz" | "dk" | "eg" | "es" | "fi" | "gr" | "hr" | "il" | "it" | "jo" | "kw" | "lb" | "lu" | "no" | "om" | "pl" | "pt" | "qa" | "sa" | "se" | "si" | "sk" | "tr" | "za" | "in" | "sg" | "hk" | "kr" | "ph" | "tw";
10
10
  }
@@ -31,12 +31,51 @@ const core = __importStar(require("../../core"));
31
31
  exports.Region = core.serialization.enum_([
32
32
  "us",
33
33
  "eu",
34
- "sg",
35
34
  "de",
36
- "au",
37
- "br",
38
- "nl",
39
35
  "fr",
40
36
  "ca",
37
+ "br",
38
+ "ar",
39
+ "cl",
40
+ "co",
41
+ "mx",
42
+ "gb",
43
+ "ie",
44
+ "au",
45
+ "nz",
46
+ "nl",
47
+ "at",
48
+ "be",
49
+ "bh",
50
+ "ch",
51
+ "cz",
52
+ "dk",
53
+ "eg",
54
+ "es",
55
+ "fi",
56
+ "gr",
57
+ "hr",
58
+ "il",
59
+ "it",
60
+ "jo",
61
+ "kw",
62
+ "lb",
63
+ "lu",
64
+ "no",
65
+ "om",
66
+ "pl",
67
+ "pt",
68
+ "qa",
69
+ "sa",
70
+ "se",
71
+ "si",
72
+ "sk",
73
+ "tr",
74
+ "za",
41
75
  "in",
76
+ "sg",
77
+ "hk",
78
+ "kr",
79
+ "ph",
80
+ "tw",
42
81
  ]);
@@ -34,7 +34,7 @@ export * from "./BodyColumnExpr";
34
34
  export * from "./BodyV2InDb";
35
35
  export * from "./BulkExportConnectionsBody";
36
36
  export * from "./BulkExportConnectionsResponse";
37
- export * from "./BulkImportConnectionsBody";
37
+ export * from "./BulkImportConnectionsResponse";
38
38
  export * from "./BulkPauseConnectionsBody";
39
39
  export * from "./BulkTriggerHistoricalPullBody";
40
40
  export * from "./CervicalMucusEntryQuality";
@@ -50,7 +50,7 @@ __exportStar(require("./BodyColumnExpr"), exports);
50
50
  __exportStar(require("./BodyV2InDb"), exports);
51
51
  __exportStar(require("./BulkExportConnectionsBody"), exports);
52
52
  __exportStar(require("./BulkExportConnectionsResponse"), exports);
53
- __exportStar(require("./BulkImportConnectionsBody"), exports);
53
+ __exportStar(require("./BulkImportConnectionsResponse"), exports);
54
54
  __exportStar(require("./BulkPauseConnectionsBody"), exports);
55
55
  __exportStar(require("./BulkTriggerHistoricalPullBody"), exports);
56
56
  __exportStar(require("./CervicalMucusEntryQuality"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.179";
1
+ export declare const SDK_VERSION = "3.1.181";
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.179";
4
+ exports.SDK_VERSION = "3.1.181";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-node",
3
- "version": "3.1.179",
3
+ "version": "3.1.181",
4
4
  "private": false,
5
5
  "repository": "https://github.com/tryVital/vital-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2,6 +2,65 @@
2
2
 
3
3
  ## Link
4
4
 
5
+ <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">bulkImport</a>({ ...params }) -> Vital.BulkImportConnectionsResponse</code></summary>
6
+ <dl>
7
+ <dd>
8
+
9
+ #### 🔌 Usage
10
+
11
+ <dl>
12
+ <dd>
13
+
14
+ <dl>
15
+ <dd>
16
+
17
+ ```typescript
18
+ await client.link.bulkImport({
19
+ provider: "oura",
20
+ connections: [
21
+ {
22
+ userId: "user_id",
23
+ accessToken: "access_token",
24
+ refreshToken: "refresh_token",
25
+ providerId: "provider_id",
26
+ expiresAt: 1,
27
+ },
28
+ ],
29
+ });
30
+ ```
31
+
32
+ </dd>
33
+ </dl>
34
+ </dd>
35
+ </dl>
36
+
37
+ #### ⚙️ Parameters
38
+
39
+ <dl>
40
+ <dd>
41
+
42
+ <dl>
43
+ <dd>
44
+
45
+ **request:** `Vital.BulkImportConnectionsBody`
46
+
47
+ </dd>
48
+ </dl>
49
+
50
+ <dl>
51
+ <dd>
52
+
53
+ **requestOptions:** `Link.RequestOptions`
54
+
55
+ </dd>
56
+ </dl>
57
+ </dd>
58
+ </dl>
59
+
60
+ </dd>
61
+ </dl>
62
+ </details>
63
+
5
64
  <details><summary><code>client.link.<a href="/src/api/resources/link/client/Client.ts">token</a>({ ...params }) -> Vital.LinkTokenExchangeResponse</code></summary>
6
65
  <dl>
7
66
  <dd>
@@ -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 { OAuthProviders } from "../../../../types/OAuthProviders";
8
+ import { ConnectionRecipe } from "../../../../types/ConnectionRecipe";
9
+ export declare const BulkImportConnectionsBody: core.serialization.Schema<serializers.BulkImportConnectionsBody.Raw, Vital.BulkImportConnectionsBody>;
10
+ export declare namespace BulkImportConnectionsBody {
11
+ interface Raw {
12
+ provider: OAuthProviders.Raw;
13
+ connections: ConnectionRecipe.Raw[];
14
+ }
15
+ }
@@ -27,9 +27,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.BulkImportConnectionsBody = void 0;
30
- const core = __importStar(require("../../core"));
31
- const OAuthProviders_1 = require("./OAuthProviders");
32
- const ConnectionRecipe_1 = require("./ConnectionRecipe");
30
+ const core = __importStar(require("../../../../../core"));
31
+ const OAuthProviders_1 = require("../../../../types/OAuthProviders");
32
+ const ConnectionRecipe_1 = require("../../../../types/ConnectionRecipe");
33
33
  exports.BulkImportConnectionsBody = core.serialization.object({
34
34
  provider: OAuthProviders_1.OAuthProviders,
35
35
  connections: core.serialization.list(ConnectionRecipe_1.ConnectionRecipe),
@@ -1,3 +1,4 @@
1
+ export { BulkImportConnectionsBody } from "./BulkImportConnectionsBody";
1
2
  export { LinkTokenExchange } from "./LinkTokenExchange";
2
3
  export { LinkTokenValidationRequest } from "./LinkTokenValidationRequest";
3
4
  export { BeginLinkTokenRequest } from "./BeginLinkTokenRequest";
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DemoConnectionCreationPayload = exports.ManualConnectionData = exports.EmailProviderAuthLink = exports.CompletePasswordProviderMfaBody = exports.IndividualProviderData = exports.PasswordAuthLink = exports.EmailAuthLink = exports.BeginLinkTokenRequest = exports.LinkTokenValidationRequest = exports.LinkTokenExchange = void 0;
3
+ exports.DemoConnectionCreationPayload = exports.ManualConnectionData = exports.EmailProviderAuthLink = exports.CompletePasswordProviderMfaBody = exports.IndividualProviderData = exports.PasswordAuthLink = exports.EmailAuthLink = exports.BeginLinkTokenRequest = exports.LinkTokenValidationRequest = exports.LinkTokenExchange = exports.BulkImportConnectionsBody = void 0;
4
+ var BulkImportConnectionsBody_1 = require("./BulkImportConnectionsBody");
5
+ Object.defineProperty(exports, "BulkImportConnectionsBody", { enumerable: true, get: function () { return BulkImportConnectionsBody_1.BulkImportConnectionsBody; } });
4
6
  var LinkTokenExchange_1 = require("./LinkTokenExchange");
5
7
  Object.defineProperty(exports, "LinkTokenExchange", { enumerable: true, get: function () { return LinkTokenExchange_1.LinkTokenExchange; } });
6
8
  var LinkTokenValidationRequest_1 = require("./LinkTokenValidationRequest");
@@ -0,0 +1,13 @@
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 BulkImportConnectionsResponse: core.serialization.ObjectSchema<serializers.BulkImportConnectionsResponse.Raw, Vital.BulkImportConnectionsResponse>;
8
+ export declare namespace BulkImportConnectionsResponse {
9
+ interface Raw {
10
+ user_ids_imported: string[];
11
+ user_ids_failed: string[];
12
+ }
13
+ }
@@ -0,0 +1,34 @@
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.BulkImportConnectionsResponse = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.BulkImportConnectionsResponse = core.serialization.object({
32
+ userIdsImported: core.serialization.property("user_ids_imported", core.serialization.list(core.serialization.string())),
33
+ userIdsFailed: core.serialization.property("user_ids_failed", core.serialization.list(core.serialization.string())),
34
+ });
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const Region: core.serialization.Schema<serializers.Region.Raw, Vital.Region>;
8
8
  export declare namespace Region {
9
- type Raw = "us" | "eu" | "sg" | "de" | "au" | "br" | "nl" | "fr" | "ca" | "in";
9
+ type Raw = "us" | "eu" | "de" | "fr" | "ca" | "br" | "ar" | "cl" | "co" | "mx" | "gb" | "ie" | "au" | "nz" | "nl" | "at" | "be" | "bh" | "ch" | "cz" | "dk" | "eg" | "es" | "fi" | "gr" | "hr" | "il" | "it" | "jo" | "kw" | "lb" | "lu" | "no" | "om" | "pl" | "pt" | "qa" | "sa" | "se" | "si" | "sk" | "tr" | "za" | "in" | "sg" | "hk" | "kr" | "ph" | "tw";
10
10
  }
@@ -31,12 +31,51 @@ const core = __importStar(require("../../core"));
31
31
  exports.Region = core.serialization.enum_([
32
32
  "us",
33
33
  "eu",
34
- "sg",
35
34
  "de",
36
- "au",
37
- "br",
38
- "nl",
39
35
  "fr",
40
36
  "ca",
37
+ "br",
38
+ "ar",
39
+ "cl",
40
+ "co",
41
+ "mx",
42
+ "gb",
43
+ "ie",
44
+ "au",
45
+ "nz",
46
+ "nl",
47
+ "at",
48
+ "be",
49
+ "bh",
50
+ "ch",
51
+ "cz",
52
+ "dk",
53
+ "eg",
54
+ "es",
55
+ "fi",
56
+ "gr",
57
+ "hr",
58
+ "il",
59
+ "it",
60
+ "jo",
61
+ "kw",
62
+ "lb",
63
+ "lu",
64
+ "no",
65
+ "om",
66
+ "pl",
67
+ "pt",
68
+ "qa",
69
+ "sa",
70
+ "se",
71
+ "si",
72
+ "sk",
73
+ "tr",
74
+ "za",
41
75
  "in",
76
+ "sg",
77
+ "hk",
78
+ "kr",
79
+ "ph",
80
+ "tw",
42
81
  ]);