@tryvital/vital-node 3.1.182 → 3.1.184

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 (78) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.d.ts +11 -0
  3. package/api/resources/aggregate/client/Client.js +63 -1
  4. package/api/resources/body/client/Client.js +2 -2
  5. package/api/resources/devices/client/Client.js +1 -1
  6. package/api/resources/electrocardiogram/client/Client.js +1 -1
  7. package/api/resources/insurance/client/Client.js +3 -3
  8. package/api/resources/introspect/client/Client.js +2 -2
  9. package/api/resources/labTests/client/Client.js +34 -34
  10. package/api/resources/labTests/client/requests/LabTestsGetPscInfoRequest.d.ts +1 -1
  11. package/api/resources/link/client/Client.d.ts +13 -0
  12. package/api/resources/link/client/Client.js +75 -15
  13. package/api/{types → resources/link/client/requests}/BulkTriggerHistoricalPullBody.d.ts +8 -1
  14. package/api/resources/link/client/requests/index.d.ts +1 -0
  15. package/api/resources/meal/client/Client.js +1 -1
  16. package/api/resources/menstrualCycle/client/Client.js +1 -1
  17. package/api/resources/profile/client/Client.js +2 -2
  18. package/api/resources/providers/client/Client.js +1 -1
  19. package/api/resources/sleep/client/Client.js +4 -4
  20. package/api/resources/sleepCycle/client/Client.js +1 -1
  21. package/api/resources/team/client/Client.js +7 -7
  22. package/api/resources/testkit/client/Client.js +2 -2
  23. package/api/resources/user/client/Client.js +16 -16
  24. package/api/resources/vitals/client/Client.js +58 -58
  25. package/api/resources/workouts/client/Client.js +3 -3
  26. package/api/types/AllowedRadius.d.ts +0 -3
  27. package/api/types/index.d.ts +0 -1
  28. package/api/types/index.js +0 -1
  29. package/dist/api/resources/activity/client/Client.js +2 -2
  30. package/dist/api/resources/aggregate/client/Client.d.ts +11 -0
  31. package/dist/api/resources/aggregate/client/Client.js +63 -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/labTests/client/requests/LabTestsGetPscInfoRequest.d.ts +1 -1
  39. package/dist/api/resources/link/client/Client.d.ts +13 -0
  40. package/dist/api/resources/link/client/Client.js +75 -15
  41. package/dist/api/{types → resources/link/client/requests}/BulkTriggerHistoricalPullBody.d.ts +8 -1
  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/AllowedRadius.d.ts +0 -3
  55. package/dist/api/types/index.d.ts +0 -1
  56. package/dist/api/types/index.js +0 -1
  57. package/dist/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +14 -0
  58. package/dist/serialization/{types → resources/link/client/requests}/BulkTriggerHistoricalPullBody.js +2 -2
  59. package/dist/serialization/resources/link/client/requests/index.d.ts +1 -0
  60. package/dist/serialization/resources/link/client/requests/index.js +3 -1
  61. package/dist/serialization/types/index.d.ts +0 -1
  62. package/dist/serialization/types/index.js +0 -1
  63. package/dist/version.d.ts +1 -1
  64. package/dist/version.js +1 -1
  65. package/package.json +1 -1
  66. package/reference.md +107 -0
  67. package/serialization/resources/link/client/requests/BulkTriggerHistoricalPullBody.d.ts +14 -0
  68. package/serialization/{types → resources/link/client/requests}/BulkTriggerHistoricalPullBody.js +2 -2
  69. package/serialization/resources/link/client/requests/index.d.ts +1 -0
  70. package/serialization/resources/link/client/requests/index.js +3 -1
  71. package/serialization/types/index.d.ts +0 -1
  72. package/serialization/types/index.js +0 -1
  73. package/version.d.ts +1 -1
  74. package/version.js +1 -1
  75. package/dist/serialization/types/BulkTriggerHistoricalPullBody.d.ts +0 -14
  76. package/serialization/types/BulkTriggerHistoricalPullBody.d.ts +0 -14
  77. /package/api/{types → resources/link/client/requests}/BulkTriggerHistoricalPullBody.js +0 -0
  78. /package/dist/api/{types → resources/link/client/requests}/BulkTriggerHistoricalPullBody.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.182", "User-Agent": "@tryvital/vital-node/3.1.182", "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.184", "User-Agent": "@tryvital/vital-node/3.1.184", "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.182", "User-Agent": "@tryvital/vital-node/3.1.182", "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.184", "User-Agent": "@tryvital/vital-node/3.1.184", "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.182", "User-Agent": "@tryvital/vital-node/3.1.182", "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.184", "User-Agent": "@tryvital/vital-node/3.1.184", "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,
@@ -1,9 +1,6 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- /**
5
- * Maps miles to meters
6
- */
7
4
  export declare type AllowedRadius = "10" | "20" | "25" | "50";
8
5
  export declare const AllowedRadius: {
9
6
  readonly Ten: "10";
@@ -36,7 +36,6 @@ export * from "./BulkExportConnectionsBody";
36
36
  export * from "./BulkExportConnectionsResponse";
37
37
  export * from "./BulkImportConnectionsResponse";
38
38
  export * from "./BulkPauseConnectionsBody";
39
- export * from "./BulkTriggerHistoricalPullBody";
40
39
  export * from "./CervicalMucusEntryQuality";
41
40
  export * from "./CervicalMucusEntry";
42
41
  export * from "./ChronotypeValueMacroExpr";
@@ -52,7 +52,6 @@ __exportStar(require("./BulkExportConnectionsBody"), exports);
52
52
  __exportStar(require("./BulkExportConnectionsResponse"), exports);
53
53
  __exportStar(require("./BulkImportConnectionsResponse"), exports);
54
54
  __exportStar(require("./BulkPauseConnectionsBody"), exports);
55
- __exportStar(require("./BulkTriggerHistoricalPullBody"), exports);
56
55
  __exportStar(require("./CervicalMucusEntryQuality"), exports);
57
56
  __exportStar(require("./CervicalMucusEntry"), exports);
58
57
  __exportStar(require("./ChronotypeValueMacroExpr"), exports);
@@ -78,7 +78,7 @@ class Activity {
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/activity/${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.182", "User-Agent": "@tryvital/vital-node/3.1.182", "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.184", "User-Agent": "@tryvital/vital-node/3.1.184", "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 Activity {
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/activity/${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.182", "User-Agent": "@tryvital/vital-node/3.1.182", "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.184", "User-Agent": "@tryvital/vital-node/3.1.184", "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",
@@ -48,6 +48,17 @@ export declare class Aggregate {
48
48
  * })
49
49
  */
50
50
  queryOne(userId: string, request: Vital.QueryBatch, requestOptions?: Aggregate.RequestOptions): Promise<Vital.AggregationResponse>;
51
+ /**
52
+ * @param {string} userId
53
+ * @param {string} queryId
54
+ * @param {Aggregate.RequestOptions} requestOptions - Request-specific configuration.
55
+ *
56
+ * @throws {@link Vital.UnprocessableEntityError}
57
+ *
58
+ * @example
59
+ * await client.aggregate.getResultTableForContinuousQuery("user_id", "query_id")
60
+ */
61
+ getResultTableForContinuousQuery(userId: string, queryId: string, requestOptions?: Aggregate.RequestOptions): Promise<Vital.AggregationResult>;
51
62
  protected _getCustomAuthorizationHeaders(): Promise<{
52
63
  "x-vital-api-key": string | undefined;
53
64
  }>;
@@ -81,7 +81,7 @@ class Aggregate {
81
81
  const _response = yield core.fetcher({
82
82
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/user/${encodeURIComponent(userId)}/query`),
83
83
  method: "POST",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.182", "User-Agent": "@tryvital/vital-node/3.1.182", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.184", "User-Agent": "@tryvital/vital-node/3.1.184", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.QueryBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -128,6 +128,68 @@ class Aggregate {
128
128
  }
129
129
  });
130
130
  }
131
+ /**
132
+ * @param {string} userId
133
+ * @param {string} queryId
134
+ * @param {Aggregate.RequestOptions} requestOptions - Request-specific configuration.
135
+ *
136
+ * @throws {@link Vital.UnprocessableEntityError}
137
+ *
138
+ * @example
139
+ * await client.aggregate.getResultTableForContinuousQuery("user_id", "query_id")
140
+ */
141
+ getResultTableForContinuousQuery(userId, queryId, requestOptions) {
142
+ var _a;
143
+ return __awaiter(this, void 0, void 0, function* () {
144
+ const _response = yield core.fetcher({
145
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/user/${encodeURIComponent(userId)}/continuous_query/${encodeURIComponent(queryId)}/result_table`),
146
+ method: "GET",
147
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.184", "User-Agent": "@tryvital/vital-node/3.1.184", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
148
+ contentType: "application/json",
149
+ requestType: "json",
150
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
151
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
152
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
153
+ });
154
+ if (_response.ok) {
155
+ return serializers.AggregationResult.parseOrThrow(_response.body, {
156
+ unrecognizedObjectKeys: "passthrough",
157
+ allowUnrecognizedUnionMembers: true,
158
+ allowUnrecognizedEnumValues: true,
159
+ breadcrumbsPrefix: ["response"],
160
+ });
161
+ }
162
+ if (_response.error.reason === "status-code") {
163
+ switch (_response.error.statusCode) {
164
+ case 422:
165
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
166
+ unrecognizedObjectKeys: "passthrough",
167
+ allowUnrecognizedUnionMembers: true,
168
+ allowUnrecognizedEnumValues: true,
169
+ breadcrumbsPrefix: ["response"],
170
+ }));
171
+ default:
172
+ throw new errors.VitalError({
173
+ statusCode: _response.error.statusCode,
174
+ body: _response.error.body,
175
+ });
176
+ }
177
+ }
178
+ switch (_response.error.reason) {
179
+ case "non-json":
180
+ throw new errors.VitalError({
181
+ statusCode: _response.error.statusCode,
182
+ body: _response.error.rawBody,
183
+ });
184
+ case "timeout":
185
+ throw new errors.VitalTimeoutError();
186
+ case "unknown":
187
+ throw new errors.VitalError({
188
+ message: _response.error.errorMessage,
189
+ });
190
+ }
191
+ });
192
+ }
131
193
  _getCustomAuthorizationHeaders() {
132
194
  return __awaiter(this, void 0, void 0, function* () {
133
195
  const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
@@ -78,7 +78,7 @@ class Body {
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/body/${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.182", "User-Agent": "@tryvital/vital-node/3.1.182", "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.184", "User-Agent": "@tryvital/vital-node/3.1.184", "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 Body {
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/body/${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.182", "User-Agent": "@tryvital/vital-node/3.1.182", "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.184", "User-Agent": "@tryvital/vital-node/3.1.184", "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",
@@ -72,7 +72,7 @@ class Devices {
72
72
  const _response = yield core.fetcher({
73
73
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/devices/${encodeURIComponent(userId)}/raw`),
74
74
  method: "GET",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.182", "User-Agent": "@tryvital/vital-node/3.1.182", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.184", "User-Agent": "@tryvital/vital-node/3.1.184", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
76
  contentType: "application/json",
77
77
  queryParameters: _queryParams,
78
78
  requestType: "json",
@@ -78,7 +78,7 @@ class Electrocardiogram {
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/electrocardiogram/${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.182", "User-Agent": "@tryvital/vital-node/3.1.182", "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.184", "User-Agent": "@tryvital/vital-node/3.1.184", "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",
@@ -75,7 +75,7 @@ class Insurance {
75
75
  const _response = yield core.fetcher({
76
76
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
77
77
  method: "GET",
78
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.182", "User-Agent": "@tryvital/vital-node/3.1.182", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.184", "User-Agent": "@tryvital/vital-node/3.1.184", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
79
  contentType: "application/json",
80
80
  queryParameters: _queryParams,
81
81
  requestType: "json",
@@ -137,7 +137,7 @@ class Insurance {
137
137
  const _response = yield core.fetcher({
138
138
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
139
139
  method: "POST",
140
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.182", "User-Agent": "@tryvital/vital-node/3.1.182", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
140
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.184", "User-Agent": "@tryvital/vital-node/3.1.184", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
141
141
  contentType: "application/json",
142
142
  requestType: "json",
143
143
  body: serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -204,7 +204,7 @@ class Insurance {
204
204
  const _response = yield core.fetcher({
205
205
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/diagnosis"),
206
206
  method: "GET",
207
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.182", "User-Agent": "@tryvital/vital-node/3.1.182", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
207
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.184", "User-Agent": "@tryvital/vital-node/3.1.184", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
208
208
  contentType: "application/json",
209
209
  queryParameters: _queryParams,
210
210
  requestType: "json",
@@ -81,7 +81,7 @@ class Introspect {
81
81
  const _response = yield core.fetcher({
82
82
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/resources"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.182", "User-Agent": "@tryvital/vital-node/3.1.182", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.184", "User-Agent": "@tryvital/vital-node/3.1.184", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -160,7 +160,7 @@ class Introspect {
160
160
  const _response = yield core.fetcher({
161
161
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/historical_pull"),
162
162
  method: "GET",
163
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.182", "User-Agent": "@tryvital/vital-node/3.1.182", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
163
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.184", "User-Agent": "@tryvital/vital-node/3.1.184", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
164
164
  contentType: "application/json",
165
165
  queryParameters: _queryParams,
166
166
  requestType: "json",