@tryvital/vital-node 3.1.5 → 3.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/Client.d.ts +0 -1
  2. package/api/resources/activity/client/Client.d.ts +0 -1
  3. package/api/resources/activity/client/Client.js +2 -2
  4. package/api/resources/body/client/Client.d.ts +0 -1
  5. package/api/resources/body/client/Client.js +2 -2
  6. package/api/resources/devices/client/Client.d.ts +0 -1
  7. package/api/resources/devices/client/Client.js +1 -1
  8. package/api/resources/insurance/client/Client.d.ts +0 -1
  9. package/api/resources/insurance/client/Client.js +2 -2
  10. package/api/resources/introspect/client/Client.d.ts +0 -1
  11. package/api/resources/introspect/client/Client.js +2 -2
  12. package/api/resources/labTests/client/Client.d.ts +0 -1
  13. package/api/resources/labTests/client/Client.js +24 -24
  14. package/api/resources/link/client/Client.d.ts +3 -4
  15. package/api/resources/link/client/Client.js +26 -20
  16. package/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -0
  17. package/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -0
  18. package/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
  19. package/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +6 -0
  20. package/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.js +5 -0
  21. package/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +10 -0
  22. package/api/resources/link/client/requests/LinkGetAllProvidersRequest.js +5 -0
  23. package/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +10 -0
  24. package/api/resources/link/client/requests/LinkTokenStateRequest.js +5 -0
  25. package/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -0
  26. package/api/resources/link/client/requests/index.d.ts +3 -0
  27. package/api/resources/meal/client/Client.d.ts +0 -1
  28. package/api/resources/meal/client/Client.js +1 -1
  29. package/api/resources/profile/client/Client.d.ts +0 -1
  30. package/api/resources/profile/client/Client.js +2 -2
  31. package/api/resources/providers/client/Client.d.ts +0 -1
  32. package/api/resources/providers/client/Client.js +1 -1
  33. package/api/resources/sleep/client/Client.d.ts +0 -1
  34. package/api/resources/sleep/client/Client.js +4 -4
  35. package/api/resources/team/client/Client.d.ts +1 -2
  36. package/api/resources/team/client/Client.js +9 -8
  37. package/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +10 -0
  38. package/api/resources/team/client/requests/TeamGetLinkConfigRequest.js +5 -0
  39. package/api/resources/team/client/requests/index.d.ts +1 -0
  40. package/api/resources/testkit/client/Client.d.ts +0 -1
  41. package/api/resources/testkit/client/Client.js +2 -2
  42. package/api/resources/user/client/Client.d.ts +0 -1
  43. package/api/resources/user/client/Client.js +12 -12
  44. package/api/resources/vitals/client/Client.d.ts +0 -1
  45. package/api/resources/vitals/client/Client.js +50 -50
  46. package/api/resources/workouts/client/Client.d.ts +0 -1
  47. package/api/resources/workouts/client/Client.js +3 -3
  48. package/dist/Client.d.ts +0 -1
  49. package/dist/api/resources/activity/client/Client.d.ts +0 -1
  50. package/dist/api/resources/activity/client/Client.js +2 -2
  51. package/dist/api/resources/body/client/Client.d.ts +0 -1
  52. package/dist/api/resources/body/client/Client.js +2 -2
  53. package/dist/api/resources/devices/client/Client.d.ts +0 -1
  54. package/dist/api/resources/devices/client/Client.js +1 -1
  55. package/dist/api/resources/insurance/client/Client.d.ts +0 -1
  56. package/dist/api/resources/insurance/client/Client.js +2 -2
  57. package/dist/api/resources/introspect/client/Client.d.ts +0 -1
  58. package/dist/api/resources/introspect/client/Client.js +2 -2
  59. package/dist/api/resources/labTests/client/Client.d.ts +0 -1
  60. package/dist/api/resources/labTests/client/Client.js +24 -24
  61. package/dist/api/resources/link/client/Client.d.ts +3 -4
  62. package/dist/api/resources/link/client/Client.js +26 -20
  63. package/dist/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -0
  64. package/dist/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -0
  65. package/dist/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
  66. package/dist/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +6 -0
  67. package/dist/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.js +5 -0
  68. package/dist/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +10 -0
  69. package/dist/api/resources/link/client/requests/LinkGetAllProvidersRequest.js +5 -0
  70. package/dist/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +10 -0
  71. package/dist/api/resources/link/client/requests/LinkTokenStateRequest.js +5 -0
  72. package/dist/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -0
  73. package/dist/api/resources/link/client/requests/index.d.ts +3 -0
  74. package/dist/api/resources/meal/client/Client.d.ts +0 -1
  75. package/dist/api/resources/meal/client/Client.js +1 -1
  76. package/dist/api/resources/profile/client/Client.d.ts +0 -1
  77. package/dist/api/resources/profile/client/Client.js +2 -2
  78. package/dist/api/resources/providers/client/Client.d.ts +0 -1
  79. package/dist/api/resources/providers/client/Client.js +1 -1
  80. package/dist/api/resources/sleep/client/Client.d.ts +0 -1
  81. package/dist/api/resources/sleep/client/Client.js +4 -4
  82. package/dist/api/resources/team/client/Client.d.ts +1 -2
  83. package/dist/api/resources/team/client/Client.js +9 -8
  84. package/dist/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +10 -0
  85. package/dist/api/resources/team/client/requests/TeamGetLinkConfigRequest.js +5 -0
  86. package/dist/api/resources/team/client/requests/index.d.ts +1 -0
  87. package/dist/api/resources/testkit/client/Client.d.ts +0 -1
  88. package/dist/api/resources/testkit/client/Client.js +2 -2
  89. package/dist/api/resources/user/client/Client.d.ts +0 -1
  90. package/dist/api/resources/user/client/Client.js +12 -12
  91. package/dist/api/resources/vitals/client/Client.d.ts +0 -1
  92. package/dist/api/resources/vitals/client/Client.js +50 -50
  93. package/dist/api/resources/workouts/client/Client.d.ts +0 -1
  94. package/dist/api/resources/workouts/client/Client.js +3 -3
  95. package/dist/serialization/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
  96. package/dist/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
  97. package/dist/serialization/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
  98. package/dist/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
  99. package/package.json +1 -1
  100. package/serialization/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
  101. package/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
  102. package/serialization/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
  103. package/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export interface IndividualProviderData {
5
5
  vitalLinkClientRegion?: string;
6
+ vitalLinkToken?: string;
6
7
  /** Username for provider */
7
8
  username: string;
8
9
  /** Password for provider */
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface LinkGenerateOauthLinkRequest {
5
+ vitalLinkToken?: string;
6
+ }
@@ -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 });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface LinkGetAllProvidersRequest {
9
+ vitalLinkToken?: string;
10
+ }
@@ -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 });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface LinkTokenStateRequest {
9
+ vitalLinkToken?: string;
10
+ }
@@ -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 });
@@ -3,6 +3,7 @@
3
3
  */
4
4
  import * as Vital from "../../../..";
5
5
  export interface PasswordAuthLink {
6
+ vitalLinkToken?: string;
6
7
  username: string;
7
8
  password: string;
8
9
  provider: Vital.Providers;
@@ -2,9 +2,12 @@ export { LinkTokenExchange } from "./LinkTokenExchange";
2
2
  export { LinkTokenBase } from "./LinkTokenBase";
3
3
  export { LinkCodeCreateRequest } from "./LinkCodeCreateRequest";
4
4
  export { BeginLinkTokenRequest } from "./BeginLinkTokenRequest";
5
+ export { LinkTokenStateRequest } from "./LinkTokenStateRequest";
5
6
  export { EmailAuthLink } from "./EmailAuthLink";
6
7
  export { PasswordAuthLink } from "./PasswordAuthLink";
8
+ export { LinkGenerateOauthLinkRequest } from "./LinkGenerateOauthLinkRequest";
7
9
  export { IndividualProviderData } from "./IndividualProviderData";
8
10
  export { EmailProviderAuthLink } from "./EmailProviderAuthLink";
11
+ export { LinkGetAllProvidersRequest } from "./LinkGetAllProvidersRequest";
9
12
  export { ManualConnectionData } from "./ManualConnectionData";
10
13
  export { DemoConnectionCreationPayload } from "./DemoConnectionCreationPayload";
@@ -8,7 +8,6 @@ export declare namespace Meal {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VitalEnvironment | string>;
10
10
  apiKey: core.Supplier<string>;
11
- vitalLinkToken: core.Supplier<string>;
12
11
  }
13
12
  interface RequestOptions {
14
13
  timeoutInSeconds?: number;
@@ -73,7 +73,7 @@ class Meal {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/meal/${userId}`),
75
75
  method: "GET",
76
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
77
  contentType: "application/json",
78
78
  queryParameters: _queryParams,
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -8,7 +8,6 @@ export declare namespace Profile {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VitalEnvironment | string>;
10
10
  apiKey: core.Supplier<string>;
11
- vitalLinkToken: core.Supplier<string>;
12
11
  }
13
12
  interface RequestOptions {
14
13
  timeoutInSeconds?: number;
@@ -64,7 +64,7 @@ class Profile {
64
64
  const _response = yield core.fetcher({
65
65
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/profile/${userId}`),
66
66
  method: "GET",
67
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  queryParameters: _queryParams,
70
70
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -124,7 +124,7 @@ class Profile {
124
124
  const _response = yield core.fetcher({
125
125
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/profile/${userId}/raw`),
126
126
  method: "GET",
127
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
128
  contentType: "application/json",
129
129
  queryParameters: _queryParams,
130
130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -8,7 +8,6 @@ export declare namespace Providers {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VitalEnvironment | string>;
10
10
  apiKey: core.Supplier<string>;
11
- vitalLinkToken: core.Supplier<string>;
12
11
  }
13
12
  interface RequestOptions {
14
13
  timeoutInSeconds?: number;
@@ -60,7 +60,7 @@ class Providers {
60
60
  const _response = yield core.fetcher({
61
61
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/providers"),
62
62
  method: "GET",
63
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
63
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
64
64
  contentType: "application/json",
65
65
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
66
66
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -8,7 +8,6 @@ export declare namespace Sleep {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VitalEnvironment | string>;
10
10
  apiKey: core.Supplier<string>;
11
- vitalLinkToken: core.Supplier<string>;
12
11
  }
13
12
  interface RequestOptions {
14
13
  timeoutInSeconds?: number;
@@ -73,7 +73,7 @@ class Sleep {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/sleep/${userId}`),
75
75
  method: "GET",
76
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
77
  contentType: "application/json",
78
78
  queryParameters: _queryParams,
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -142,7 +142,7 @@ class Sleep {
142
142
  const _response = yield core.fetcher({
143
143
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/sleep/${userId}/stream`),
144
144
  method: "GET",
145
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
145
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
146
146
  contentType: "application/json",
147
147
  queryParameters: _queryParams,
148
148
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -211,7 +211,7 @@ class Sleep {
211
211
  const _response = yield core.fetcher({
212
212
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/sleep/${userId}/raw`),
213
213
  method: "GET",
214
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
214
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
215
215
  contentType: "application/json",
216
216
  queryParameters: _queryParams,
217
217
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -269,7 +269,7 @@ class Sleep {
269
269
  const _response = yield core.fetcher({
270
270
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/sleep/${sleepId}/stream`),
271
271
  method: "GET",
272
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
272
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
273
273
  contentType: "application/json",
274
274
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
275
275
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -8,7 +8,6 @@ export declare namespace Team {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VitalEnvironment | string>;
10
10
  apiKey: core.Supplier<string>;
11
- vitalLinkToken: core.Supplier<string>;
12
11
  }
13
12
  interface RequestOptions {
14
13
  timeoutInSeconds?: number;
@@ -25,7 +24,7 @@ export declare class Team {
25
24
  * @example
26
25
  * await vital.team.getLinkConfig()
27
26
  */
28
- getLinkConfig(requestOptions?: Team.RequestOptions): Promise<Record<string, unknown>>;
27
+ getLinkConfig(request?: Vital.TeamGetLinkConfigRequest, requestOptions?: Team.RequestOptions): Promise<Record<string, unknown>>;
29
28
  /**
30
29
  * Get team.
31
30
  * @throws {@link Vital.UnprocessableEntityError}
@@ -56,13 +56,14 @@ class Team {
56
56
  * @example
57
57
  * await vital.team.getLinkConfig()
58
58
  */
59
- getLinkConfig(requestOptions) {
59
+ getLinkConfig(request = {}, requestOptions) {
60
60
  var _a;
61
61
  return __awaiter(this, void 0, void 0, function* () {
62
+ const { vitalLinkToken } = request;
62
63
  const _response = yield core.fetcher({
63
64
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/link/config"),
64
65
  method: "GET",
65
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
66
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined }, (yield this._getCustomAuthorizationHeaders())),
66
67
  contentType: "application/json",
67
68
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
68
69
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -116,7 +117,7 @@ class Team {
116
117
  const _response = yield core.fetcher({
117
118
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/team/${teamId}`),
118
119
  method: "GET",
119
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
121
  contentType: "application/json",
121
122
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
122
123
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -178,7 +179,7 @@ class Team {
178
179
  const _response = yield core.fetcher({
179
180
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/users/search"),
180
181
  method: "GET",
181
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
182
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
182
183
  contentType: "application/json",
183
184
  queryParameters: _queryParams,
184
185
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -229,7 +230,7 @@ class Team {
229
230
  const _response = yield core.fetcher({
230
231
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/svix/url"),
231
232
  method: "GET",
232
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
233
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
233
234
  contentType: "application/json",
234
235
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
235
236
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -281,7 +282,7 @@ class Team {
281
282
  const _response = yield core.fetcher({
282
283
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/source/priorities"),
283
284
  method: "GET",
284
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
285
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
285
286
  contentType: "application/json",
286
287
  queryParameters: _queryParams,
287
288
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -344,7 +345,7 @@ class Team {
344
345
  const _response = yield core.fetcher({
345
346
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/team/source/priorities"),
346
347
  method: "PATCH",
347
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
348
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
348
349
  contentType: "application/json",
349
350
  queryParameters: _queryParams,
350
351
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -401,7 +402,7 @@ class Team {
401
402
  const _response = yield core.fetcher({
402
403
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/team/${teamId}/physicians`),
403
404
  method: "GET",
404
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
405
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
405
406
  contentType: "application/json",
406
407
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
407
408
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface TeamGetLinkConfigRequest {
9
+ vitalLinkToken?: string;
10
+ }
@@ -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,3 +1,4 @@
1
+ export { TeamGetLinkConfigRequest } from "./TeamGetLinkConfigRequest";
1
2
  export { TeamGetUserByIdRequest } from "./TeamGetUserByIdRequest";
2
3
  export { TeamGetSourcePrioritiesRequest } from "./TeamGetSourcePrioritiesRequest";
3
4
  export { TeamUpdateSourcePrioritiesRequest } from "./TeamUpdateSourcePrioritiesRequest";
@@ -8,7 +8,6 @@ export declare namespace Testkit {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VitalEnvironment | string>;
10
10
  apiKey: core.Supplier<string>;
11
- vitalLinkToken: core.Supplier<string>;
12
11
  }
13
12
  interface RequestOptions {
14
13
  timeoutInSeconds?: number;
@@ -58,7 +58,7 @@ class Testkit {
58
58
  const _response = yield core.fetcher({
59
59
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/testkit/register"),
60
60
  method: "POST",
61
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
61
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
62
62
  contentType: "application/json",
63
63
  body: yield serializers.RegisterTestkitRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
64
64
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -113,7 +113,7 @@ class Testkit {
113
113
  const _response = yield core.fetcher({
114
114
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/testkit"),
115
115
  method: "POST",
116
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
116
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
117
117
  contentType: "application/json",
118
118
  body: yield serializers.CreateRegistrableTestkitOrderRequest.jsonOrThrow(request, {
119
119
  unrecognizedObjectKeys: "strip",
@@ -8,7 +8,6 @@ export declare namespace User {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VitalEnvironment | string>;
10
10
  apiKey: core.Supplier<string>;
11
- vitalLinkToken: core.Supplier<string>;
12
11
  }
13
12
  interface RequestOptions {
14
13
  timeoutInSeconds?: number;
@@ -67,7 +67,7 @@ class User {
67
67
  const _response = yield core.fetcher({
68
68
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user"),
69
69
  method: "GET",
70
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
70
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
71
71
  contentType: "application/json",
72
72
  queryParameters: _queryParams,
73
73
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -123,7 +123,7 @@ class User {
123
123
  const _response = yield core.fetcher({
124
124
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user"),
125
125
  method: "POST",
126
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
126
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
127
  contentType: "application/json",
128
128
  body: yield serializers.UserCreateBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
129
129
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -179,7 +179,7 @@ class User {
179
179
  const _response = yield core.fetcher({
180
180
  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"),
181
181
  method: "GET",
182
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
182
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
183
183
  contentType: "application/json",
184
184
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
185
185
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -222,7 +222,7 @@ class User {
222
222
  const _response = yield core.fetcher({
223
223
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}/sign_in_token`),
224
224
  method: "POST",
225
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
225
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
226
226
  contentType: "application/json",
227
227
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
228
228
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -279,7 +279,7 @@ class User {
279
279
  const _response = yield core.fetcher({
280
280
  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/${userId}`),
281
281
  method: "GET",
282
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
282
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
283
283
  contentType: "application/json",
284
284
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
285
285
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -333,7 +333,7 @@ class User {
333
333
  const _response = yield core.fetcher({
334
334
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
335
335
  method: "GET",
336
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
336
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
337
337
  contentType: "application/json",
338
338
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
339
339
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -386,7 +386,7 @@ class User {
386
386
  const _response = yield core.fetcher({
387
387
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
388
388
  method: "DELETE",
389
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
389
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
390
390
  contentType: "application/json",
391
391
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
392
392
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -442,7 +442,7 @@ class User {
442
442
  const _response = yield core.fetcher({
443
443
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
444
444
  method: "PATCH",
445
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
445
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
446
446
  contentType: "application/json",
447
447
  body: yield serializers.UserPatchBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
448
448
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -492,7 +492,7 @@ class User {
492
492
  const _response = yield core.fetcher({
493
493
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/resolve/${clientUserId}`),
494
494
  method: "GET",
495
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
495
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
496
496
  contentType: "application/json",
497
497
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
498
498
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -545,7 +545,7 @@ class User {
545
545
  const _response = yield core.fetcher({
546
546
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}/${yield serializers.Providers.jsonOrThrow(provider)}`),
547
547
  method: "DELETE",
548
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
548
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
549
549
  contentType: "application/json",
550
550
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
551
551
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -606,7 +606,7 @@ class User {
606
606
  const _response = yield core.fetcher({
607
607
  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"),
608
608
  method: "POST",
609
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
609
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
610
610
  contentType: "application/json",
611
611
  queryParameters: _queryParams,
612
612
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -667,7 +667,7 @@ class User {
667
667
  const _response = yield core.fetcher({
668
668
  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/${userId}`),
669
669
  method: "POST",
670
- headers: Object.assign({ "x-vital-link-token": yield core.Supplier.get(this._options.vitalLinkToken), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
670
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
671
671
  contentType: "application/json",
672
672
  queryParameters: _queryParams,
673
673
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -8,7 +8,6 @@ export declare namespace Vitals {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VitalEnvironment | string>;
10
10
  apiKey: core.Supplier<string>;
11
- vitalLinkToken: core.Supplier<string>;
12
11
  }
13
12
  interface RequestOptions {
14
13
  timeoutInSeconds?: number;