@tryvital/vital-node 3.1.302 → 3.1.303

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 (156) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +7 -2
  3. package/api/resources/activity/client/Client.js +2 -2
  4. package/api/resources/aggregate/client/Client.js +3 -3
  5. package/api/resources/body/client/Client.js +2 -2
  6. package/api/resources/devices/client/Client.js +1 -1
  7. package/api/resources/electrocardiogram/client/Client.js +1 -1
  8. package/api/resources/index.d.ts +2 -0
  9. package/api/resources/index.js +3 -1
  10. package/api/resources/insurance/client/Client.js +3 -3
  11. package/api/resources/introspect/client/Client.js +2 -2
  12. package/api/resources/labTests/client/Client.d.ts +1 -1
  13. package/api/resources/labTests/client/Client.js +42 -42
  14. package/api/resources/link/client/Client.js +19 -19
  15. package/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
  16. package/api/resources/meal/client/Client.js +1 -1
  17. package/api/resources/menstrualCycle/client/Client.js +1 -1
  18. package/api/resources/order/client/Client.js +1 -1
  19. package/api/resources/payor/client/Client.d.ts +46 -0
  20. package/api/resources/payor/client/Client.js +130 -0
  21. package/api/resources/payor/client/index.d.ts +1 -0
  22. package/api/resources/payor/client/index.js +17 -0
  23. package/api/resources/payor/client/requests/CreatePayorBody.d.ts +23 -0
  24. package/api/resources/payor/client/requests/CreatePayorBody.js +5 -0
  25. package/api/resources/payor/client/requests/index.d.ts +1 -0
  26. package/api/resources/payor/client/requests/index.js +2 -0
  27. package/api/resources/payor/index.d.ts +1 -0
  28. package/api/resources/payor/index.js +17 -0
  29. package/api/resources/profile/client/Client.js +2 -2
  30. package/api/resources/providers/client/Client.js +1 -1
  31. package/api/resources/sleep/client/Client.js +4 -4
  32. package/api/resources/sleepCycle/client/Client.js +1 -1
  33. package/api/resources/team/client/Client.js +7 -7
  34. package/api/resources/testkit/client/Client.js +2 -2
  35. package/api/resources/user/client/Client.js +16 -16
  36. package/api/resources/vitals/client/Client.js +78 -78
  37. package/api/resources/workouts/client/Client.js +3 -3
  38. package/api/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +2 -1
  39. package/api/types/ClientFacingConnectionErrorDetailsErrorType.js +1 -0
  40. package/api/types/ClientFacingPayor.d.ts +14 -0
  41. package/api/types/ClientFacingPayor.js +5 -0
  42. package/api/types/ClientFacingSleepCycle.d.ts +1 -0
  43. package/api/types/ProviderConnectionErrorErrorType.d.ts +2 -1
  44. package/api/types/ProviderConnectionErrorErrorType.js +1 -0
  45. package/api/types/ProviderLinkResponse.d.ts +5 -1
  46. package/api/types/ProviderLinkResponseErrorType.d.ts +18 -0
  47. package/api/types/ProviderLinkResponseErrorType.js +20 -0
  48. package/api/types/ProviderMfaRequest.d.ts +2 -1
  49. package/api/types/ProviderMfaRequestMethod.d.ts +1 -1
  50. package/api/types/index.d.ts +2 -0
  51. package/api/types/index.js +2 -0
  52. package/dist/Client.d.ts +3 -0
  53. package/dist/Client.js +7 -2
  54. package/dist/api/resources/activity/client/Client.js +2 -2
  55. package/dist/api/resources/aggregate/client/Client.js +3 -3
  56. package/dist/api/resources/body/client/Client.js +2 -2
  57. package/dist/api/resources/devices/client/Client.js +1 -1
  58. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  59. package/dist/api/resources/index.d.ts +2 -0
  60. package/dist/api/resources/index.js +3 -1
  61. package/dist/api/resources/insurance/client/Client.js +3 -3
  62. package/dist/api/resources/introspect/client/Client.js +2 -2
  63. package/dist/api/resources/labTests/client/Client.d.ts +1 -1
  64. package/dist/api/resources/labTests/client/Client.js +42 -42
  65. package/dist/api/resources/link/client/Client.js +19 -19
  66. package/dist/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
  67. package/dist/api/resources/meal/client/Client.js +1 -1
  68. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  69. package/dist/api/resources/order/client/Client.js +1 -1
  70. package/dist/api/resources/payor/client/Client.d.ts +46 -0
  71. package/dist/api/resources/payor/client/Client.js +130 -0
  72. package/dist/api/resources/payor/client/index.d.ts +1 -0
  73. package/dist/api/resources/payor/client/index.js +17 -0
  74. package/dist/api/resources/payor/client/requests/CreatePayorBody.d.ts +23 -0
  75. package/dist/api/resources/payor/client/requests/CreatePayorBody.js +5 -0
  76. package/dist/api/resources/payor/client/requests/index.d.ts +1 -0
  77. package/dist/api/resources/payor/client/requests/index.js +2 -0
  78. package/dist/api/resources/payor/index.d.ts +1 -0
  79. package/dist/api/resources/payor/index.js +17 -0
  80. package/dist/api/resources/profile/client/Client.js +2 -2
  81. package/dist/api/resources/providers/client/Client.js +1 -1
  82. package/dist/api/resources/sleep/client/Client.js +4 -4
  83. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  84. package/dist/api/resources/team/client/Client.js +7 -7
  85. package/dist/api/resources/testkit/client/Client.js +2 -2
  86. package/dist/api/resources/user/client/Client.js +16 -16
  87. package/dist/api/resources/vitals/client/Client.js +78 -78
  88. package/dist/api/resources/workouts/client/Client.js +3 -3
  89. package/dist/api/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +2 -1
  90. package/dist/api/types/ClientFacingConnectionErrorDetailsErrorType.js +1 -0
  91. package/dist/api/types/ClientFacingPayor.d.ts +14 -0
  92. package/dist/api/types/ClientFacingPayor.js +5 -0
  93. package/dist/api/types/ClientFacingSleepCycle.d.ts +1 -0
  94. package/dist/api/types/ProviderConnectionErrorErrorType.d.ts +2 -1
  95. package/dist/api/types/ProviderConnectionErrorErrorType.js +1 -0
  96. package/dist/api/types/ProviderLinkResponse.d.ts +5 -1
  97. package/dist/api/types/ProviderLinkResponseErrorType.d.ts +18 -0
  98. package/dist/api/types/ProviderLinkResponseErrorType.js +20 -0
  99. package/dist/api/types/ProviderMfaRequest.d.ts +2 -1
  100. package/dist/api/types/ProviderMfaRequestMethod.d.ts +1 -1
  101. package/dist/api/types/index.d.ts +2 -0
  102. package/dist/api/types/index.js +2 -0
  103. package/dist/serialization/resources/index.d.ts +2 -0
  104. package/dist/serialization/resources/index.js +3 -1
  105. package/dist/serialization/resources/payor/client/index.d.ts +1 -0
  106. package/dist/serialization/resources/payor/client/index.js +17 -0
  107. package/dist/serialization/resources/payor/client/requests/CreatePayorBody.d.ts +17 -0
  108. package/dist/serialization/resources/payor/client/requests/CreatePayorBody.js +38 -0
  109. package/dist/serialization/resources/payor/client/requests/index.d.ts +1 -0
  110. package/dist/serialization/resources/payor/client/requests/index.js +5 -0
  111. package/dist/serialization/resources/payor/index.d.ts +1 -0
  112. package/dist/serialization/resources/payor/index.js +17 -0
  113. package/dist/serialization/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +1 -1
  114. package/dist/serialization/types/ClientFacingConnectionErrorDetailsErrorType.js +1 -0
  115. package/dist/serialization/types/ClientFacingPayor.d.ts +16 -0
  116. package/dist/serialization/types/ClientFacingPayor.js +37 -0
  117. package/dist/serialization/types/ClientFacingSleepCycle.d.ts +1 -0
  118. package/dist/serialization/types/ClientFacingSleepCycle.js +1 -0
  119. package/dist/serialization/types/ProviderConnectionErrorErrorType.d.ts +1 -1
  120. package/dist/serialization/types/ProviderConnectionErrorErrorType.js +1 -0
  121. package/dist/serialization/types/ProviderLinkResponse.d.ts +2 -1
  122. package/dist/serialization/types/ProviderLinkResponse.js +2 -1
  123. package/dist/serialization/types/ProviderLinkResponseErrorType.d.ts +10 -0
  124. package/dist/serialization/types/ProviderLinkResponseErrorType.js +44 -0
  125. package/dist/serialization/types/index.d.ts +2 -0
  126. package/dist/serialization/types/index.js +2 -0
  127. package/dist/version.d.ts +1 -1
  128. package/dist/version.js +1 -1
  129. package/package.json +1 -1
  130. package/reference.md +59 -0
  131. package/serialization/resources/index.d.ts +2 -0
  132. package/serialization/resources/index.js +3 -1
  133. package/serialization/resources/payor/client/index.d.ts +1 -0
  134. package/serialization/resources/payor/client/index.js +17 -0
  135. package/serialization/resources/payor/client/requests/CreatePayorBody.d.ts +17 -0
  136. package/serialization/resources/payor/client/requests/CreatePayorBody.js +38 -0
  137. package/serialization/resources/payor/client/requests/index.d.ts +1 -0
  138. package/serialization/resources/payor/client/requests/index.js +5 -0
  139. package/serialization/resources/payor/index.d.ts +1 -0
  140. package/serialization/resources/payor/index.js +17 -0
  141. package/serialization/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +1 -1
  142. package/serialization/types/ClientFacingConnectionErrorDetailsErrorType.js +1 -0
  143. package/serialization/types/ClientFacingPayor.d.ts +16 -0
  144. package/serialization/types/ClientFacingPayor.js +37 -0
  145. package/serialization/types/ClientFacingSleepCycle.d.ts +1 -0
  146. package/serialization/types/ClientFacingSleepCycle.js +1 -0
  147. package/serialization/types/ProviderConnectionErrorErrorType.d.ts +1 -1
  148. package/serialization/types/ProviderConnectionErrorErrorType.js +1 -0
  149. package/serialization/types/ProviderLinkResponse.d.ts +2 -1
  150. package/serialization/types/ProviderLinkResponse.js +2 -1
  151. package/serialization/types/ProviderLinkResponseErrorType.d.ts +10 -0
  152. package/serialization/types/ProviderLinkResponseErrorType.js +44 -0
  153. package/serialization/types/index.d.ts +2 -0
  154. package/serialization/types/index.js +2 -0
  155. package/version.d.ts +1 -1
  156. package/version.js +1 -1
package/reference.md CHANGED
@@ -11022,6 +11022,65 @@ await client.insurance.searchDiagnosis({
11022
11022
  </dl>
11023
11023
  </details>
11024
11024
 
11025
+ ## Payor
11026
+
11027
+ <details><summary><code>client.payor.<a href="/src/api/resources/payor/client/Client.ts">createPayor</a>({ ...params }) -> Vital.ClientFacingPayor</code></summary>
11028
+ <dl>
11029
+ <dd>
11030
+
11031
+ #### 🔌 Usage
11032
+
11033
+ <dl>
11034
+ <dd>
11035
+
11036
+ <dl>
11037
+ <dd>
11038
+
11039
+ ```typescript
11040
+ await client.payor.createPayor({
11041
+ name: "name",
11042
+ address: {
11043
+ firstLine: "first_line",
11044
+ country: "country",
11045
+ zip: "zip",
11046
+ city: "city",
11047
+ state: "state",
11048
+ },
11049
+ });
11050
+ ```
11051
+
11052
+ </dd>
11053
+ </dl>
11054
+ </dd>
11055
+ </dl>
11056
+
11057
+ #### ⚙️ Parameters
11058
+
11059
+ <dl>
11060
+ <dd>
11061
+
11062
+ <dl>
11063
+ <dd>
11064
+
11065
+ **request:** `Vital.CreatePayorBody`
11066
+
11067
+ </dd>
11068
+ </dl>
11069
+
11070
+ <dl>
11071
+ <dd>
11072
+
11073
+ **requestOptions:** `Payor.RequestOptions`
11074
+
11075
+ </dd>
11076
+ </dl>
11077
+ </dd>
11078
+ </dl>
11079
+
11080
+ </dd>
11081
+ </dl>
11082
+ </details>
11083
+
11025
11084
  ## Aggregate
11026
11085
 
11027
11086
  <details><summary><code>client.aggregate.<a href="/src/api/resources/aggregate/client/Client.ts">queryOne</a>(userId, { ...params }) -> Vital.AggregationResponse</code></summary>
@@ -17,4 +17,6 @@ export * from "./testkit/client/requests";
17
17
  export * as order from "./order";
18
18
  export * from "./order/client/requests";
19
19
  export * from "./insurance/client/requests";
20
+ export * as payor from "./payor";
21
+ export * from "./payor/client/requests";
20
22
  export * from "./aggregate/client/requests";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.order = exports.testkit = exports.insurance = exports.providers = exports.team = exports.user = exports.vitals = exports.aggregate = exports.labTests = exports.link = void 0;
29
+ exports.payor = exports.order = exports.testkit = exports.insurance = exports.providers = exports.team = exports.user = exports.vitals = exports.aggregate = exports.labTests = exports.link = void 0;
30
30
  exports.link = __importStar(require("./link"));
31
31
  __exportStar(require("./link/types"), exports);
32
32
  exports.labTests = __importStar(require("./labTests"));
@@ -46,4 +46,6 @@ __exportStar(require("./testkit/client/requests"), exports);
46
46
  exports.order = __importStar(require("./order"));
47
47
  __exportStar(require("./order/client/requests"), exports);
48
48
  __exportStar(require("./insurance/client/requests"), exports);
49
+ exports.payor = __importStar(require("./payor"));
50
+ __exportStar(require("./payor/client/requests"), exports);
49
51
  __exportStar(require("./aggregate/client/requests"), exports);
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,17 @@
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 { Address } from "../../../../types/Address";
8
+ import { PayorCodeExternalProvider } from "../../../../types/PayorCodeExternalProvider";
9
+ export declare const CreatePayorBody: core.serialization.Schema<serializers.CreatePayorBody.Raw, Vital.CreatePayorBody>;
10
+ export declare namespace CreatePayorBody {
11
+ interface Raw {
12
+ name: string;
13
+ address: Address.Raw;
14
+ provider?: PayorCodeExternalProvider.Raw | null;
15
+ provider_payor_id?: string | null;
16
+ }
17
+ }
@@ -0,0 +1,38 @@
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.CreatePayorBody = void 0;
30
+ const core = __importStar(require("../../../../../core"));
31
+ const Address_1 = require("../../../../types/Address");
32
+ const PayorCodeExternalProvider_1 = require("../../../../types/PayorCodeExternalProvider");
33
+ exports.CreatePayorBody = core.serialization.object({
34
+ name: core.serialization.string(),
35
+ address: Address_1.Address,
36
+ provider: PayorCodeExternalProvider_1.PayorCodeExternalProvider.optional(),
37
+ providerPayorId: core.serialization.property("provider_payor_id", core.serialization.string().optional()),
38
+ });
@@ -0,0 +1 @@
1
+ export { CreatePayorBody } from "./CreatePayorBody";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreatePayorBody = void 0;
4
+ var CreatePayorBody_1 = require("./CreatePayorBody");
5
+ Object.defineProperty(exports, "CreatePayorBody", { enumerable: true, get: function () { return CreatePayorBody_1.CreatePayorBody; } });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ClientFacingConnectionErrorDetailsErrorType: core.serialization.Schema<serializers.ClientFacingConnectionErrorDetailsErrorType.Raw, Vital.ClientFacingConnectionErrorDetailsErrorType>;
8
8
  export declare namespace ClientFacingConnectionErrorDetailsErrorType {
9
- type Raw = "token_refresh_failed" | "webhook_registration_failed" | "user_not_found" | "deregistered_per_provider" | "required_scopes_not_granted" | "provider_credential_error" | "unknown";
9
+ type Raw = "token_refresh_failed" | "webhook_registration_failed" | "user_not_found" | "deregistered_per_provider" | "required_scopes_not_granted" | "provider_credential_error" | "provider_password_expired" | "unknown";
10
10
  }
@@ -35,5 +35,6 @@ exports.ClientFacingConnectionErrorDetailsErrorType = core.serialization.enum_([
35
35
  "deregistered_per_provider",
36
36
  "required_scopes_not_granted",
37
37
  "provider_credential_error",
38
+ "provider_password_expired",
38
39
  "unknown",
39
40
  ]);
@@ -0,0 +1,16 @@
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 { Address } from "./Address";
8
+ export declare const ClientFacingPayor: core.serialization.ObjectSchema<serializers.ClientFacingPayor.Raw, Vital.ClientFacingPayor>;
9
+ export declare namespace ClientFacingPayor {
10
+ interface Raw {
11
+ payor_code: string;
12
+ name: string;
13
+ aliases: string[];
14
+ org_address: Address.Raw;
15
+ }
16
+ }
@@ -0,0 +1,37 @@
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.ClientFacingPayor = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const Address_1 = require("./Address");
32
+ exports.ClientFacingPayor = core.serialization.object({
33
+ payorCode: core.serialization.property("payor_code", core.serialization.string()),
34
+ name: core.serialization.string(),
35
+ aliases: core.serialization.list(core.serialization.string()),
36
+ orgAddress: core.serialization.property("org_address", Address_1.Address),
37
+ });
@@ -22,6 +22,7 @@ export declare namespace ClientFacingSleepCycle {
22
22
  source_provider: ClientFacingSleepCycleSourceProvider.Raw;
23
23
  source_type: ClientFacingSleepCycleSourceType.Raw;
24
24
  source_app_id?: string | null;
25
+ source_device_id?: string | null;
25
26
  created_at: string;
26
27
  updated_at: string;
27
28
  user_id: string;
@@ -44,6 +44,7 @@ exports.ClientFacingSleepCycle = core.serialization.object({
44
44
  sourceProvider: core.serialization.property("source_provider", ClientFacingSleepCycleSourceProvider_1.ClientFacingSleepCycleSourceProvider),
45
45
  sourceType: core.serialization.property("source_type", ClientFacingSleepCycleSourceType_1.ClientFacingSleepCycleSourceType),
46
46
  sourceAppId: core.serialization.property("source_app_id", core.serialization.string().optional()),
47
+ sourceDeviceId: core.serialization.property("source_device_id", core.serialization.string().optional()),
47
48
  createdAt: core.serialization.property("created_at", core.serialization.date()),
48
49
  updatedAt: core.serialization.property("updated_at", core.serialization.date()),
49
50
  userId: core.serialization.property("user_id", core.serialization.string()),
@@ -6,5 +6,5 @@ import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ProviderConnectionErrorErrorType: core.serialization.Schema<serializers.ProviderConnectionErrorErrorType.Raw, Vital.ProviderConnectionErrorErrorType>;
8
8
  export declare namespace ProviderConnectionErrorErrorType {
9
- type Raw = "token_refresh_failed" | "webhook_registration_failed" | "user_not_found" | "deregistered_per_provider" | "required_scopes_not_granted" | "provider_credential_error" | "unknown";
9
+ type Raw = "token_refresh_failed" | "webhook_registration_failed" | "user_not_found" | "deregistered_per_provider" | "required_scopes_not_granted" | "provider_credential_error" | "provider_password_expired" | "unknown";
10
10
  }
@@ -35,5 +35,6 @@ exports.ProviderConnectionErrorErrorType = core.serialization.enum_([
35
35
  "deregistered_per_provider",
36
36
  "required_scopes_not_granted",
37
37
  "provider_credential_error",
38
+ "provider_password_expired",
38
39
  "unknown",
39
40
  ]);
@@ -5,6 +5,7 @@ import * as serializers from "../index";
5
5
  import * as Vital from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { ProviderLinkResponseState } from "./ProviderLinkResponseState";
8
+ import { ProviderLinkResponseErrorType } from "./ProviderLinkResponseErrorType";
8
9
  import { ProviderMfaRequest } from "./ProviderMfaRequest";
9
10
  import { PasswordProviders } from "./PasswordProviders";
10
11
  export declare const ProviderLinkResponse: core.serialization.ObjectSchema<serializers.ProviderLinkResponse.Raw, Vital.ProviderLinkResponse>;
@@ -12,7 +13,7 @@ export declare namespace ProviderLinkResponse {
12
13
  interface Raw {
13
14
  state: ProviderLinkResponseState.Raw;
14
15
  redirect_url?: string | null;
15
- error_type?: string | null;
16
+ error_type?: ProviderLinkResponseErrorType.Raw | null;
16
17
  error?: string | null;
17
18
  provider_mfa?: ProviderMfaRequest.Raw | null;
18
19
  provider: PasswordProviders.Raw;
@@ -29,12 +29,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ProviderLinkResponse = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const ProviderLinkResponseState_1 = require("./ProviderLinkResponseState");
32
+ const ProviderLinkResponseErrorType_1 = require("./ProviderLinkResponseErrorType");
32
33
  const ProviderMfaRequest_1 = require("./ProviderMfaRequest");
33
34
  const PasswordProviders_1 = require("./PasswordProviders");
34
35
  exports.ProviderLinkResponse = core.serialization.object({
35
36
  state: ProviderLinkResponseState_1.ProviderLinkResponseState,
36
37
  redirectUrl: core.serialization.property("redirect_url", core.serialization.string().optional()),
37
- errorType: core.serialization.property("error_type", core.serialization.string().optional()),
38
+ errorType: core.serialization.property("error_type", ProviderLinkResponseErrorType_1.ProviderLinkResponseErrorType.optional()),
38
39
  error: core.serialization.string().optional(),
39
40
  providerMfa: core.serialization.property("provider_mfa", ProviderMfaRequest_1.ProviderMfaRequest.optional()),
40
41
  provider: PasswordProviders_1.PasswordProviders,
@@ -0,0 +1,10 @@
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 ProviderLinkResponseErrorType: core.serialization.Schema<serializers.ProviderLinkResponseErrorType.Raw, Vital.ProviderLinkResponseErrorType>;
8
+ export declare namespace ProviderLinkResponseErrorType {
9
+ type Raw = "invalid_token" | "token_expired" | "token_not_validated" | "token_consumed" | "provider_credential_error" | "provider_password_expired" | "provider_api_error" | "unsupported_region" | "duplicate_connection" | "required_scopes_not_granted" | "incorrect_mfa_code" | "user_cancelled";
10
+ }
@@ -0,0 +1,44 @@
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.ProviderLinkResponseErrorType = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ProviderLinkResponseErrorType = core.serialization.enum_([
32
+ "invalid_token",
33
+ "token_expired",
34
+ "token_not_validated",
35
+ "token_consumed",
36
+ "provider_credential_error",
37
+ "provider_password_expired",
38
+ "provider_api_error",
39
+ "unsupported_region",
40
+ "duplicate_connection",
41
+ "required_scopes_not_granted",
42
+ "incorrect_mfa_code",
43
+ "user_cancelled",
44
+ ]);
@@ -123,6 +123,7 @@ export * from "./ClientFacingOrderDetails";
123
123
  export * from "./ClientFacingOrder";
124
124
  export * from "./ClientFacingOrderEvent";
125
125
  export * from "./ClientFacingPatientDetailsCompatible";
126
+ export * from "./ClientFacingPayor";
126
127
  export * from "./ClientFacingPayorSearchResponse";
127
128
  export * from "./ClientFacingPayorSearchResponseDeprecated";
128
129
  export * from "./ClientFacingPeakExpiratoryFlowRateSample";
@@ -315,6 +316,7 @@ export * from "./ProviderConnectionCreated";
315
316
  export * from "./ProviderConnectionErrorErrorType";
316
317
  export * from "./ProviderConnectionError";
317
318
  export * from "./ProviderLinkResponseState";
319
+ export * from "./ProviderLinkResponseErrorType";
318
320
  export * from "./ProviderLinkResponse";
319
321
  export * from "./ProviderMfaRequestMethod";
320
322
  export * from "./ProviderMfaRequest";
@@ -139,6 +139,7 @@ __exportStar(require("./ClientFacingOrderDetails"), exports);
139
139
  __exportStar(require("./ClientFacingOrder"), exports);
140
140
  __exportStar(require("./ClientFacingOrderEvent"), exports);
141
141
  __exportStar(require("./ClientFacingPatientDetailsCompatible"), exports);
142
+ __exportStar(require("./ClientFacingPayor"), exports);
142
143
  __exportStar(require("./ClientFacingPayorSearchResponse"), exports);
143
144
  __exportStar(require("./ClientFacingPayorSearchResponseDeprecated"), exports);
144
145
  __exportStar(require("./ClientFacingPeakExpiratoryFlowRateSample"), exports);
@@ -331,6 +332,7 @@ __exportStar(require("./ProviderConnectionCreated"), exports);
331
332
  __exportStar(require("./ProviderConnectionErrorErrorType"), exports);
332
333
  __exportStar(require("./ProviderConnectionError"), exports);
333
334
  __exportStar(require("./ProviderLinkResponseState"), exports);
335
+ __exportStar(require("./ProviderLinkResponseErrorType"), exports);
334
336
  __exportStar(require("./ProviderLinkResponse"), exports);
335
337
  __exportStar(require("./ProviderMfaRequestMethod"), exports);
336
338
  __exportStar(require("./ProviderMfaRequest"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "3.1.302";
1
+ export declare const SDK_VERSION = "3.1.303";
package/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.302";
4
+ exports.SDK_VERSION = "3.1.303";