candidhealth 0.24.0-2a6d412 → 0.24.2

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 (235) hide show
  1. package/Client.d.ts +3 -0
  2. package/README.md +134 -6
  3. package/api/resources/auth/client/Client.d.ts +3 -0
  4. package/api/resources/auth/resources/v2/client/Client.d.ts +4 -1
  5. package/api/resources/auth/resources/v2/client/Client.js +6 -7
  6. package/api/resources/billingNotes/client/Client.d.ts +3 -0
  7. package/api/resources/billingNotes/resources/v2/client/Client.d.ts +4 -1
  8. package/api/resources/billingNotes/resources/v2/client/Client.js +5 -4
  9. package/api/resources/contracts/client/Client.d.ts +3 -0
  10. package/api/resources/contracts/resources/v2/client/Client.d.ts +8 -5
  11. package/api/resources/contracts/resources/v2/client/Client.js +27 -26
  12. package/api/resources/eligibility/client/Client.d.ts +3 -0
  13. package/api/resources/eligibility/resources/v2/client/Client.d.ts +6 -3
  14. package/api/resources/eligibility/resources/v2/client/Client.js +12 -9
  15. package/api/resources/encounters/client/Client.d.ts +3 -0
  16. package/api/resources/encounters/resources/v4/client/Client.d.ts +7 -19
  17. package/api/resources/encounters/resources/v4/client/Client.js +22 -37
  18. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -21
  19. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
  20. package/api/resources/expectedNetworkStatus/client/Client.d.ts +3 -0
  21. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +4 -1
  22. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +5 -4
  23. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +5 -2
  24. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +13 -11
  25. package/api/resources/exports/client/Client.d.ts +3 -0
  26. package/api/resources/exports/resources/v3/client/Client.d.ts +4 -1
  27. package/api/resources/exports/resources/v3/client/Client.js +5 -4
  28. package/api/resources/externalPaymentAccountConfig/client/Client.d.ts +3 -0
  29. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +4 -1
  30. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +4 -3
  31. package/api/resources/feeSchedules/client/Client.d.ts +3 -0
  32. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +13 -10
  33. package/api/resources/feeSchedules/resources/v3/client/Client.js +52 -44
  34. package/api/resources/guarantor/client/Client.d.ts +3 -0
  35. package/api/resources/guarantor/resources/v1/client/Client.d.ts +6 -3
  36. package/api/resources/guarantor/resources/v1/client/Client.js +18 -19
  37. package/api/resources/importInvoice/client/Client.d.ts +3 -0
  38. package/api/resources/importInvoice/resources/v1/client/Client.d.ts +7 -4
  39. package/api/resources/importInvoice/resources/v1/client/Client.js +22 -18
  40. package/api/resources/insuranceAdjudications/client/Client.d.ts +3 -0
  41. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +6 -3
  42. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +15 -12
  43. package/api/resources/insurancePayments/client/Client.d.ts +3 -0
  44. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +8 -5
  45. package/api/resources/insurancePayments/resources/v1/client/Client.js +29 -24
  46. package/api/resources/insuranceRefunds/client/Client.d.ts +3 -0
  47. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +8 -5
  48. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +29 -24
  49. package/api/resources/organizationProviders/client/Client.d.ts +3 -0
  50. package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +7 -4
  51. package/api/resources/organizationProviders/resources/v3/client/Client.js +23 -19
  52. package/api/resources/organizationServiceFacilities/client/Client.d.ts +3 -0
  53. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +8 -5
  54. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +32 -23
  55. package/api/resources/patientPayments/client/Client.d.ts +3 -0
  56. package/api/resources/patientPayments/resources/v4/client/Client.d.ts +8 -5
  57. package/api/resources/patientPayments/resources/v4/client/Client.js +29 -24
  58. package/api/resources/patientRefunds/client/Client.d.ts +3 -0
  59. package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +8 -5
  60. package/api/resources/patientRefunds/resources/v1/client/Client.js +29 -24
  61. package/api/resources/payers/client/Client.d.ts +3 -0
  62. package/api/resources/payers/resources/v3/client/Client.d.ts +5 -2
  63. package/api/resources/payers/resources/v3/client/Client.js +9 -7
  64. package/api/resources/preEncounter/client/Client.d.ts +3 -0
  65. package/api/resources/preEncounter/resources/coverages/client/Client.d.ts +3 -0
  66. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +3 -0
  67. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +9 -6
  68. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +31 -25
  69. package/api/resources/preEncounter/resources/patients/client/Client.d.ts +3 -0
  70. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +3 -0
  71. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +10 -7
  72. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +38 -31
  73. package/api/resources/serviceFacility/client/Client.d.ts +4 -1
  74. package/api/resources/serviceFacility/client/Client.js +6 -7
  75. package/api/resources/tasks/client/Client.d.ts +3 -0
  76. package/api/resources/tasks/resources/v3/client/Client.d.ts +8 -5
  77. package/api/resources/tasks/resources/v3/client/Client.js +28 -23
  78. package/api/resources/writeOffs/client/Client.d.ts +3 -0
  79. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -4
  80. package/api/resources/writeOffs/resources/v1/client/Client.js +19 -15
  81. package/core/fetcher/Fetcher.d.ts +3 -0
  82. package/core/fetcher/Fetcher.js +22 -153
  83. package/core/fetcher/createRequestUrl.d.ts +1 -0
  84. package/core/fetcher/createRequestUrl.js +13 -0
  85. package/core/fetcher/getFetchFn.d.ts +4 -0
  86. package/core/fetcher/getFetchFn.js +59 -0
  87. package/core/fetcher/getRequestBody.d.ts +7 -0
  88. package/core/fetcher/getRequestBody.js +23 -0
  89. package/core/fetcher/getResponseBody.d.ts +1 -0
  90. package/core/fetcher/getResponseBody.js +48 -0
  91. package/core/fetcher/makeRequest.d.ts +1 -0
  92. package/core/fetcher/makeRequest.js +42 -0
  93. package/core/fetcher/requestWithRetries.d.ts +1 -0
  94. package/core/fetcher/requestWithRetries.js +32 -0
  95. package/core/fetcher/signals.d.ts +12 -0
  96. package/core/fetcher/signals.js +37 -0
  97. package/core/runtime/runtime.d.ts +2 -1
  98. package/core/runtime/runtime.js +12 -1
  99. package/core/schemas/Schema.d.ts +7 -4
  100. package/core/schemas/builders/lazy/lazy.d.ts +2 -2
  101. package/core/schemas/builders/lazy/lazy.js +8 -19
  102. package/core/schemas/builders/lazy/lazyObject.js +1 -10
  103. package/core/schemas/builders/list/list.js +31 -44
  104. package/core/schemas/builders/object/object.js +90 -111
  105. package/core/schemas/builders/object/types.d.ts +2 -2
  106. package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  107. package/core/schemas/builders/record/record.js +49 -60
  108. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  109. package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
  110. package/core/schemas/builders/set/set.js +6 -15
  111. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  112. package/core/schemas/builders/union/union.js +51 -62
  113. package/core/schemas/utils/maybeSkipValidation.js +3 -12
  114. package/dist/Client.d.ts +3 -0
  115. package/dist/api/resources/auth/client/Client.d.ts +3 -0
  116. package/dist/api/resources/auth/resources/v2/client/Client.d.ts +4 -1
  117. package/dist/api/resources/auth/resources/v2/client/Client.js +6 -7
  118. package/dist/api/resources/billingNotes/client/Client.d.ts +3 -0
  119. package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +4 -1
  120. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +5 -4
  121. package/dist/api/resources/contracts/client/Client.d.ts +3 -0
  122. package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +8 -5
  123. package/dist/api/resources/contracts/resources/v2/client/Client.js +27 -26
  124. package/dist/api/resources/eligibility/client/Client.d.ts +3 -0
  125. package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +6 -3
  126. package/dist/api/resources/eligibility/resources/v2/client/Client.js +12 -9
  127. package/dist/api/resources/encounters/client/Client.d.ts +3 -0
  128. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +7 -19
  129. package/dist/api/resources/encounters/resources/v4/client/Client.js +22 -37
  130. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -21
  131. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
  132. package/dist/api/resources/expectedNetworkStatus/client/Client.d.ts +3 -0
  133. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +4 -1
  134. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +5 -4
  135. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +5 -2
  136. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +13 -11
  137. package/dist/api/resources/exports/client/Client.d.ts +3 -0
  138. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +4 -1
  139. package/dist/api/resources/exports/resources/v3/client/Client.js +5 -4
  140. package/dist/api/resources/externalPaymentAccountConfig/client/Client.d.ts +3 -0
  141. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +4 -1
  142. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +4 -3
  143. package/dist/api/resources/feeSchedules/client/Client.d.ts +3 -0
  144. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +13 -10
  145. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +52 -44
  146. package/dist/api/resources/guarantor/client/Client.d.ts +3 -0
  147. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +6 -3
  148. package/dist/api/resources/guarantor/resources/v1/client/Client.js +18 -19
  149. package/dist/api/resources/importInvoice/client/Client.d.ts +3 -0
  150. package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +7 -4
  151. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +22 -18
  152. package/dist/api/resources/insuranceAdjudications/client/Client.d.ts +3 -0
  153. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +6 -3
  154. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +15 -12
  155. package/dist/api/resources/insurancePayments/client/Client.d.ts +3 -0
  156. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +8 -5
  157. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +29 -24
  158. package/dist/api/resources/insuranceRefunds/client/Client.d.ts +3 -0
  159. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +8 -5
  160. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +29 -24
  161. package/dist/api/resources/organizationProviders/client/Client.d.ts +3 -0
  162. package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +7 -4
  163. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +23 -19
  164. package/dist/api/resources/organizationServiceFacilities/client/Client.d.ts +3 -0
  165. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +8 -5
  166. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +32 -23
  167. package/dist/api/resources/patientPayments/client/Client.d.ts +3 -0
  168. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +8 -5
  169. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +29 -24
  170. package/dist/api/resources/patientRefunds/client/Client.d.ts +3 -0
  171. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +8 -5
  172. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +29 -24
  173. package/dist/api/resources/payers/client/Client.d.ts +3 -0
  174. package/dist/api/resources/payers/resources/v3/client/Client.d.ts +5 -2
  175. package/dist/api/resources/payers/resources/v3/client/Client.js +9 -7
  176. package/dist/api/resources/preEncounter/client/Client.d.ts +3 -0
  177. package/dist/api/resources/preEncounter/resources/coverages/client/Client.d.ts +3 -0
  178. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +3 -0
  179. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +9 -6
  180. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +31 -25
  181. package/dist/api/resources/preEncounter/resources/patients/client/Client.d.ts +3 -0
  182. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +3 -0
  183. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +10 -7
  184. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +38 -31
  185. package/dist/api/resources/serviceFacility/client/Client.d.ts +4 -1
  186. package/dist/api/resources/serviceFacility/client/Client.js +6 -7
  187. package/dist/api/resources/tasks/client/Client.d.ts +3 -0
  188. package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +8 -5
  189. package/dist/api/resources/tasks/resources/v3/client/Client.js +28 -23
  190. package/dist/api/resources/writeOffs/client/Client.d.ts +3 -0
  191. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -4
  192. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +19 -15
  193. package/dist/core/fetcher/Fetcher.d.ts +3 -0
  194. package/dist/core/fetcher/Fetcher.js +22 -153
  195. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  196. package/dist/core/fetcher/createRequestUrl.js +13 -0
  197. package/dist/core/fetcher/getFetchFn.d.ts +4 -0
  198. package/dist/core/fetcher/getFetchFn.js +59 -0
  199. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  200. package/dist/core/fetcher/getRequestBody.js +23 -0
  201. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  202. package/dist/core/fetcher/getResponseBody.js +48 -0
  203. package/dist/core/fetcher/makeRequest.d.ts +1 -0
  204. package/dist/core/fetcher/makeRequest.js +42 -0
  205. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  206. package/dist/core/fetcher/requestWithRetries.js +32 -0
  207. package/dist/core/fetcher/signals.d.ts +12 -0
  208. package/dist/core/fetcher/signals.js +37 -0
  209. package/dist/core/runtime/runtime.d.ts +2 -1
  210. package/dist/core/runtime/runtime.js +12 -1
  211. package/dist/core/schemas/Schema.d.ts +7 -4
  212. package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
  213. package/dist/core/schemas/builders/lazy/lazy.js +8 -19
  214. package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
  215. package/dist/core/schemas/builders/list/list.js +31 -44
  216. package/dist/core/schemas/builders/object/object.js +90 -111
  217. package/dist/core/schemas/builders/object/types.d.ts +2 -2
  218. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  219. package/dist/core/schemas/builders/record/record.js +49 -60
  220. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  221. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
  222. package/dist/core/schemas/builders/set/set.js +6 -15
  223. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  224. package/dist/core/schemas/builders/union/union.js +51 -62
  225. package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
  226. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -2
  227. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -2
  228. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
  229. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +0 -1
  230. package/package.json +7 -2
  231. package/reference.md +7177 -0
  232. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -2
  233. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -2
  234. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
  235. package/serialization/resources/encounters/resources/v4/types/Encounter.js +0 -1
@@ -53,7 +53,7 @@ class V4 {
53
53
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
54
54
  *
55
55
  * @example
56
- * await candidApi.encounters.v4.getAll({
56
+ * await client.encounters.v4.getAll({
57
57
  * limit: 100,
58
58
  * claimStatus: CandidApi.ClaimStatus.BillerReceived,
59
59
  * sort: CandidApi.encounters.v4.EncounterSortOptions.CreatedAtAsc,
@@ -132,12 +132,13 @@ class V4 {
132
132
  Authorization: yield this._getAuthorizationHeader(),
133
133
  "X-Fern-Language": "JavaScript",
134
134
  "X-Fern-SDK-Name": "candidhealth",
135
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
135
+ "X-Fern-SDK-Version": "0.24.2",
136
136
  "X-Fern-Runtime": core.RUNTIME.type,
137
137
  "X-Fern-Runtime-Version": core.RUNTIME.version,
138
138
  },
139
139
  contentType: "application/json",
140
140
  queryParameters: _queryParams,
141
+ requestType: "json",
141
142
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
142
143
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
143
144
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -145,7 +146,7 @@ class V4 {
145
146
  if (_response.ok) {
146
147
  return {
147
148
  ok: true,
148
- body: yield serializers.encounters.v4.EncounterPage.parseOrThrow(_response.body, {
149
+ body: serializers.encounters.v4.EncounterPage.parseOrThrow(_response.body, {
149
150
  unrecognizedObjectKeys: "passthrough",
150
151
  allowUnrecognizedUnionMembers: true,
151
152
  allowUnrecognizedEnumValues: true,
@@ -164,24 +165,25 @@ class V4 {
164
165
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
165
166
  *
166
167
  * @example
167
- * await candidApi.encounters.v4.get(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
168
+ * await client.encounters.v4.get(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
168
169
  */
169
170
  get(encounterId, requestOptions) {
170
171
  var _a;
171
172
  return __awaiter(this, void 0, void 0, function* () {
172
173
  const _response = yield core.fetcher({
173
174
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
174
- .candidApi, `/api/encounters/v4/${encodeURIComponent(yield serializers.EncounterId.jsonOrThrow(encounterId))}`),
175
+ .candidApi, `/api/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
175
176
  method: "GET",
176
177
  headers: {
177
178
  Authorization: yield this._getAuthorizationHeader(),
178
179
  "X-Fern-Language": "JavaScript",
179
180
  "X-Fern-SDK-Name": "candidhealth",
180
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
181
+ "X-Fern-SDK-Version": "0.24.2",
181
182
  "X-Fern-Runtime": core.RUNTIME.type,
182
183
  "X-Fern-Runtime-Version": core.RUNTIME.version,
183
184
  },
184
185
  contentType: "application/json",
186
+ requestType: "json",
185
187
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
186
188
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
187
189
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -189,7 +191,7 @@ class V4 {
189
191
  if (_response.ok) {
190
192
  return {
191
193
  ok: true,
192
- body: yield serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
194
+ body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
193
195
  unrecognizedObjectKeys: "passthrough",
194
196
  allowUnrecognizedUnionMembers: true,
195
197
  allowUnrecognizedEnumValues: true,
@@ -208,7 +210,7 @@ class V4 {
208
210
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
209
211
  *
210
212
  * @example
211
- * await candidApi.encounters.v4.create({
213
+ * await client.encounters.v4.create({
212
214
  * dateOfService: "2023-01-15",
213
215
  * endDateOfService: "2023-01-15",
214
216
  * patient: {
@@ -310,21 +312,6 @@ class V4 {
310
312
  * lastName: "string",
311
313
  * organizationName: "string"
312
314
  * },
313
- * orderingProvider: {
314
- * npi: "string",
315
- * taxonomyCode: "string",
316
- * address: {
317
- * address1: "123 Main St",
318
- * address2: "Apt 1",
319
- * city: "New York",
320
- * state: CandidApi.State.Ny,
321
- * zipCode: "10001",
322
- * zipPlusFourCode: "1234"
323
- * },
324
- * firstName: "string",
325
- * lastName: "string",
326
- * organizationName: "string"
327
- * },
328
315
  * serviceFacility: {
329
316
  * organizationName: "string",
330
317
  * npi: "string",
@@ -604,14 +591,13 @@ class V4 {
604
591
  Authorization: yield this._getAuthorizationHeader(),
605
592
  "X-Fern-Language": "JavaScript",
606
593
  "X-Fern-SDK-Name": "candidhealth",
607
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
594
+ "X-Fern-SDK-Version": "0.24.2",
608
595
  "X-Fern-Runtime": core.RUNTIME.type,
609
596
  "X-Fern-Runtime-Version": core.RUNTIME.version,
610
597
  },
611
598
  contentType: "application/json",
612
- body: yield serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
613
- unrecognizedObjectKeys: "strip",
614
- }),
599
+ requestType: "json",
600
+ body: serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
615
601
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
616
602
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
617
603
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -619,7 +605,7 @@ class V4 {
619
605
  if (_response.ok) {
620
606
  return {
621
607
  ok: true,
622
- body: yield serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
608
+ body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
623
609
  unrecognizedObjectKeys: "passthrough",
624
610
  allowUnrecognizedUnionMembers: true,
625
611
  allowUnrecognizedEnumValues: true,
@@ -637,7 +623,7 @@ class V4 {
637
623
  case "CashPayPayerError":
638
624
  return {
639
625
  ok: false,
640
- error: yield serializers.encounters.v4.create.Error.parseOrThrow(_response.error.body, {
626
+ error: serializers.encounters.v4.create.Error.parseOrThrow(_response.error.body, {
641
627
  unrecognizedObjectKeys: "passthrough",
642
628
  allowUnrecognizedUnionMembers: true,
643
629
  allowUnrecognizedEnumValues: true,
@@ -658,7 +644,7 @@ class V4 {
658
644
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
659
645
  *
660
646
  * @example
661
- * await candidApi.encounters.v4.update(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
647
+ * await client.encounters.v4.update(CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
662
648
  * priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
663
649
  * externalId: CandidApi.EncounterExternalId("string"),
664
650
  * dateOfService: "2023-01-15",
@@ -758,20 +744,19 @@ class V4 {
758
744
  return __awaiter(this, void 0, void 0, function* () {
759
745
  const _response = yield core.fetcher({
760
746
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
761
- .candidApi, `/api/encounters/v4/${encodeURIComponent(yield serializers.EncounterId.jsonOrThrow(encounterId))}`),
747
+ .candidApi, `/api/encounters/v4/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
762
748
  method: "PATCH",
763
749
  headers: {
764
750
  Authorization: yield this._getAuthorizationHeader(),
765
751
  "X-Fern-Language": "JavaScript",
766
752
  "X-Fern-SDK-Name": "candidhealth",
767
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
753
+ "X-Fern-SDK-Version": "0.24.2",
768
754
  "X-Fern-Runtime": core.RUNTIME.type,
769
755
  "X-Fern-Runtime-Version": core.RUNTIME.version,
770
756
  },
771
757
  contentType: "application/json",
772
- body: yield serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
773
- unrecognizedObjectKeys: "strip",
774
- }),
758
+ requestType: "json",
759
+ body: serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
775
760
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
776
761
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
777
762
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -779,7 +764,7 @@ class V4 {
779
764
  if (_response.ok) {
780
765
  return {
781
766
  ok: true,
782
- body: yield serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
767
+ body: serializers.encounters.v4.Encounter.parseOrThrow(_response.body, {
783
768
  unrecognizedObjectKeys: "passthrough",
784
769
  allowUnrecognizedUnionMembers: true,
785
770
  allowUnrecognizedEnumValues: true,
@@ -795,7 +780,7 @@ class V4 {
795
780
  case "HttpRequestValidationsError":
796
781
  return {
797
782
  ok: false,
798
- error: yield serializers.encounters.v4.update.Error.parseOrThrow(_response.error.body, {
783
+ error: serializers.encounters.v4.update.Error.parseOrThrow(_response.error.body, {
799
784
  unrecognizedObjectKeys: "passthrough",
800
785
  allowUnrecognizedUnionMembers: true,
801
786
  allowUnrecognizedEnumValues: true,
@@ -106,21 +106,6 @@ import * as CandidApi from "../../../../../../index";
106
106
  * lastName: "string",
107
107
  * organizationName: "string"
108
108
  * },
109
- * orderingProvider: {
110
- * npi: "string",
111
- * taxonomyCode: "string",
112
- * address: {
113
- * address1: "123 Main St",
114
- * address2: "Apt 1",
115
- * city: "New York",
116
- * state: CandidApi.State.Ny,
117
- * zipCode: "10001",
118
- * zipPlusFourCode: "1234"
119
- * },
120
- * firstName: "string",
121
- * lastName: "string",
122
- * organizationName: "string"
123
- * },
124
109
  * serviceFacility: {
125
110
  * organizationName: "string",
126
111
  * npi: "string",
@@ -445,12 +430,6 @@ export interface EncounterCreate extends CandidApi.encounters.v4.EncounterBase {
445
430
  *
446
431
  */
447
432
  supervisingProvider?: CandidApi.encounterProviders.v2.SupervisingProvider;
448
- /**
449
- * Required when the service or supply was ordered by a provider who is different than the rendering provider for this service line.
450
- * If not required by this implementation guide, do not send.
451
- *
452
- */
453
- orderingProvider?: CandidApi.encounterProviders.v2.OrderingProvider;
454
433
  /**
455
434
  * Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that for an in-network claim to be successfully adjudicated, the service facility address listed on claims must match what was provided to the payer during the credentialing process.
456
435
  *
@@ -414,7 +414,6 @@ export interface Encounter extends CandidApi.encounters.v4.EncounterBase {
414
414
  referringProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
415
415
  initialReferringProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
416
416
  supervisingProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
417
- orderingProvider?: CandidApi.encounterProviders.v2.EncounterProvider;
418
417
  /** Encounter Service facility is typically the location a medical service was rendered, such as a provider office or hospital. For telehealth, service facility can represent the provider's location when the service was delivered (e.g., home), or the location where an in-person visit would have taken place, whichever is easier to identify. If the provider is in-network, service facility may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that for an in-network claim to be successfully adjudicated, the service facility address listed on claims must match what was provided to the payer during the credentialing process. */
419
418
  serviceFacility: CandidApi.EncounterServiceFacility;
420
419
  /**
@@ -11,8 +11,11 @@ export declare namespace ExpectedNetworkStatus {
11
11
  token?: core.Supplier<core.BearerToken | undefined>;
12
12
  }
13
13
  interface RequestOptions {
14
+ /** The maximum time to wait for a response in seconds. */
14
15
  timeoutInSeconds?: number;
16
+ /** The number of times to retry the request. Defaults to 2. */
15
17
  maxRetries?: number;
18
+ /** A hook to abort the request. */
16
19
  abortSignal?: AbortSignal;
17
20
  }
18
21
  }
@@ -10,8 +10,11 @@ export declare namespace V1 {
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
13
14
  timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
14
16
  maxRetries?: number;
17
+ /** A hook to abort the request. */
15
18
  abortSignal?: AbortSignal;
16
19
  }
17
20
  }
@@ -25,7 +28,7 @@ export declare class V1 {
25
28
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
26
29
  *
27
30
  * @example
28
- * await candidApi.expectedNetworkStatus.v1.compute({
31
+ * await client.expectedNetworkStatus.v1.compute({
29
32
  * externalPatientId: "string",
30
33
  * subscriberPayerId: "string",
31
34
  * subscriberPayerName: "string",
@@ -55,7 +55,7 @@ class V1 {
55
55
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
56
56
  *
57
57
  * @example
58
- * await candidApi.expectedNetworkStatus.v1.compute({
58
+ * await client.expectedNetworkStatus.v1.compute({
59
59
  * externalPatientId: "string",
60
60
  * subscriberPayerId: "string",
61
61
  * subscriberPayerName: "string",
@@ -79,12 +79,13 @@ class V1 {
79
79
  Authorization: yield this._getAuthorizationHeader(),
80
80
  "X-Fern-Language": "JavaScript",
81
81
  "X-Fern-SDK-Name": "candidhealth",
82
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
82
+ "X-Fern-SDK-Version": "0.24.2",
83
83
  "X-Fern-Runtime": core.RUNTIME.type,
84
84
  "X-Fern-Runtime-Version": core.RUNTIME.version,
85
85
  },
86
86
  contentType: "application/json",
87
- body: yield serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
87
+ requestType: "json",
88
+ body: serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
88
89
  unrecognizedObjectKeys: "strip",
89
90
  }),
90
91
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -94,7 +95,7 @@ class V1 {
94
95
  if (_response.ok) {
95
96
  return {
96
97
  ok: true,
97
- body: yield serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusResponse.parseOrThrow(_response.body, {
98
+ body: serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusResponse.parseOrThrow(_response.body, {
98
99
  unrecognizedObjectKeys: "passthrough",
99
100
  allowUnrecognizedUnionMembers: true,
100
101
  allowUnrecognizedEnumValues: true,
@@ -10,8 +10,11 @@ export declare namespace V2 {
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
13
14
  timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
14
16
  maxRetries?: number;
17
+ /** A hook to abort the request. */
15
18
  abortSignal?: AbortSignal;
16
19
  }
17
20
  }
@@ -28,7 +31,7 @@ export declare class V2 {
28
31
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
29
32
  *
30
33
  * @example
31
- * await candidApi.expectedNetworkStatus.v2.computeForRenderingProvider(CandidApi.organizationProviders.v2.OrganizationProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
34
+ * await client.expectedNetworkStatus.v2.computeForRenderingProvider(CandidApi.organizationProviders.v2.OrganizationProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
32
35
  * serviceType: CandidApi.expectedNetworkStatus.v2.ServiceType.NewPatientVideoAppt,
33
36
  * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
34
37
  * subscriberInformation: {},
@@ -55,7 +58,7 @@ export declare class V2 {
55
58
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
56
59
  *
57
60
  * @example
58
- * await candidApi.expectedNetworkStatus.v2.computeAllInNetworkProviders({
61
+ * await client.expectedNetworkStatus.v2.computeAllInNetworkProviders({
59
62
  * serviceType: CandidApi.expectedNetworkStatus.v2.ServiceType.NewPatientVideoAppt,
60
63
  * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
61
64
  * subscriberInformation: {},
@@ -58,7 +58,7 @@ class V2 {
58
58
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
59
59
  *
60
60
  * @example
61
- * await candidApi.expectedNetworkStatus.v2.computeForRenderingProvider(CandidApi.organizationProviders.v2.OrganizationProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
61
+ * await client.expectedNetworkStatus.v2.computeForRenderingProvider(CandidApi.organizationProviders.v2.OrganizationProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
62
62
  * serviceType: CandidApi.expectedNetworkStatus.v2.ServiceType.NewPatientVideoAppt,
63
63
  * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
64
64
  * subscriberInformation: {},
@@ -80,18 +80,19 @@ class V2 {
80
80
  return __awaiter(this, void 0, void 0, function* () {
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.CandidApiEnvironment.Production)
83
- .candidApi, `/api/expected-network-status/v2/compute/${encodeURIComponent(yield serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(renderingProviderId))}`),
83
+ .candidApi, `/api/expected-network-status/v2/compute/${encodeURIComponent(serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(renderingProviderId))}`),
84
84
  method: "POST",
85
85
  headers: {
86
86
  Authorization: yield this._getAuthorizationHeader(),
87
87
  "X-Fern-Language": "JavaScript",
88
88
  "X-Fern-SDK-Name": "candidhealth",
89
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
89
+ "X-Fern-SDK-Version": "0.24.2",
90
90
  "X-Fern-Runtime": core.RUNTIME.type,
91
91
  "X-Fern-Runtime-Version": core.RUNTIME.version,
92
92
  },
93
93
  contentType: "application/json",
94
- body: yield serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
94
+ requestType: "json",
95
+ body: serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
95
96
  unrecognizedObjectKeys: "strip",
96
97
  }),
97
98
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -101,7 +102,7 @@ class V2 {
101
102
  if (_response.ok) {
102
103
  return {
103
104
  ok: true,
104
- body: yield serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusResponseV2.parseOrThrow(_response.body, {
105
+ body: serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusResponseV2.parseOrThrow(_response.body, {
105
106
  unrecognizedObjectKeys: "passthrough",
106
107
  allowUnrecognizedUnionMembers: true,
107
108
  allowUnrecognizedEnumValues: true,
@@ -115,7 +116,7 @@ class V2 {
115
116
  case "OrganizationNotAuthorizedError":
116
117
  return {
117
118
  ok: false,
118
- error: yield serializers.expectedNetworkStatus.v2.computeForRenderingProvider.Error.parseOrThrow(_response.error
119
+ error: serializers.expectedNetworkStatus.v2.computeForRenderingProvider.Error.parseOrThrow(_response.error
119
120
  .body, {
120
121
  unrecognizedObjectKeys: "passthrough",
121
122
  allowUnrecognizedUnionMembers: true,
@@ -140,7 +141,7 @@ class V2 {
140
141
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
141
142
  *
142
143
  * @example
143
- * await candidApi.expectedNetworkStatus.v2.computeAllInNetworkProviders({
144
+ * await client.expectedNetworkStatus.v2.computeAllInNetworkProviders({
144
145
  * serviceType: CandidApi.expectedNetworkStatus.v2.ServiceType.NewPatientVideoAppt,
145
146
  * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
146
147
  * subscriberInformation: {},
@@ -168,12 +169,13 @@ class V2 {
168
169
  Authorization: yield this._getAuthorizationHeader(),
169
170
  "X-Fern-Language": "JavaScript",
170
171
  "X-Fern-SDK-Name": "candidhealth",
171
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
172
+ "X-Fern-SDK-Version": "0.24.2",
172
173
  "X-Fern-Runtime": core.RUNTIME.type,
173
174
  "X-Fern-Runtime-Version": core.RUNTIME.version,
174
175
  },
175
176
  contentType: "application/json",
176
- body: yield serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
177
+ requestType: "json",
178
+ body: serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
177
179
  unrecognizedObjectKeys: "strip",
178
180
  }),
179
181
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -183,7 +185,7 @@ class V2 {
183
185
  if (_response.ok) {
184
186
  return {
185
187
  ok: true,
186
- body: yield serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersResponse.parseOrThrow(_response.body, {
188
+ body: serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersResponse.parseOrThrow(_response.body, {
187
189
  unrecognizedObjectKeys: "passthrough",
188
190
  allowUnrecognizedUnionMembers: true,
189
191
  allowUnrecognizedEnumValues: true,
@@ -197,7 +199,7 @@ class V2 {
197
199
  case "OrganizationNotAuthorizedError":
198
200
  return {
199
201
  ok: false,
200
- error: yield serializers.expectedNetworkStatus.v2.computeAllInNetworkProviders.Error.parseOrThrow(_response.error
202
+ error: serializers.expectedNetworkStatus.v2.computeAllInNetworkProviders.Error.parseOrThrow(_response.error
201
203
  .body, {
202
204
  unrecognizedObjectKeys: "passthrough",
203
205
  allowUnrecognizedUnionMembers: true,
@@ -10,8 +10,11 @@ export declare namespace Exports {
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
13
14
  timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
14
16
  maxRetries?: number;
17
+ /** A hook to abort the request. */
15
18
  abortSignal?: AbortSignal;
16
19
  }
17
20
  }
@@ -10,8 +10,11 @@ export declare namespace V3 {
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
13
14
  timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
14
16
  maxRetries?: number;
17
+ /** A hook to abort the request. */
15
18
  abortSignal?: AbortSignal;
16
19
  }
17
20
  }
@@ -36,7 +39,7 @@ export declare class V3 {
36
39
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
37
40
  *
38
41
  * @example
39
- * await candidApi.exports.v3.getExports({
42
+ * await client.exports.v3.getExports({
40
43
  * startDate: "2023-10-01",
41
44
  * endDate: "2023-10-02"
42
45
  * })
@@ -66,7 +66,7 @@ class V3 {
66
66
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
67
67
  *
68
68
  * @example
69
- * await candidApi.exports.v3.getExports({
69
+ * await client.exports.v3.getExports({
70
70
  * startDate: "2023-10-01",
71
71
  * endDate: "2023-10-02"
72
72
  * })
@@ -86,12 +86,13 @@ class V3 {
86
86
  Authorization: yield this._getAuthorizationHeader(),
87
87
  "X-Fern-Language": "JavaScript",
88
88
  "X-Fern-SDK-Name": "candidhealth",
89
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
89
+ "X-Fern-SDK-Version": "0.24.2",
90
90
  "X-Fern-Runtime": core.RUNTIME.type,
91
91
  "X-Fern-Runtime-Version": core.RUNTIME.version,
92
92
  },
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
+ requestType: "json",
95
96
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
96
97
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
97
98
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -99,7 +100,7 @@ class V3 {
99
100
  if (_response.ok) {
100
101
  return {
101
102
  ok: true,
102
- body: yield serializers.exports.v3.GetExportsResponse.parseOrThrow(_response.body, {
103
+ body: serializers.exports.v3.GetExportsResponse.parseOrThrow(_response.body, {
103
104
  unrecognizedObjectKeys: "passthrough",
104
105
  allowUnrecognizedUnionMembers: true,
105
106
  allowUnrecognizedEnumValues: true,
@@ -116,7 +117,7 @@ class V3 {
116
117
  case "ExportDateTooEarlyError":
117
118
  return {
118
119
  ok: false,
119
- error: yield serializers.exports.v3.getExports.Error.parseOrThrow(_response.error.body, {
120
+ error: serializers.exports.v3.getExports.Error.parseOrThrow(_response.error.body, {
120
121
  unrecognizedObjectKeys: "passthrough",
121
122
  allowUnrecognizedUnionMembers: true,
122
123
  allowUnrecognizedEnumValues: true,
@@ -10,8 +10,11 @@ export declare namespace ExternalPaymentAccountConfig {
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
13
14
  timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
14
16
  maxRetries?: number;
17
+ /** A hook to abort the request. */
15
18
  abortSignal?: AbortSignal;
16
19
  }
17
20
  }
@@ -10,8 +10,11 @@ export declare namespace V1 {
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
13
14
  timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
14
16
  maxRetries?: number;
17
+ /** A hook to abort the request. */
15
18
  abortSignal?: AbortSignal;
16
19
  }
17
20
  }
@@ -28,7 +31,7 @@ export declare class V1 {
28
31
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
29
32
  *
30
33
  * @example
31
- * await candidApi.externalPaymentAccountConfig.v1.getMulti({
34
+ * await client.externalPaymentAccountConfig.v1.getMulti({
32
35
  * limit: 1,
33
36
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
34
37
  * })
@@ -58,7 +58,7 @@ class V1 {
58
58
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
59
59
  *
60
60
  * @example
61
- * await candidApi.externalPaymentAccountConfig.v1.getMulti({
61
+ * await client.externalPaymentAccountConfig.v1.getMulti({
62
62
  * limit: 1,
63
63
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
64
64
  * })
@@ -82,12 +82,13 @@ class V1 {
82
82
  Authorization: yield this._getAuthorizationHeader(),
83
83
  "X-Fern-Language": "JavaScript",
84
84
  "X-Fern-SDK-Name": "candidhealth",
85
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
85
+ "X-Fern-SDK-Version": "0.24.2",
86
86
  "X-Fern-Runtime": core.RUNTIME.type,
87
87
  "X-Fern-Runtime-Version": core.RUNTIME.version,
88
88
  },
89
89
  contentType: "application/json",
90
90
  queryParameters: _queryParams,
91
+ requestType: "json",
91
92
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
92
93
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
93
94
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -95,7 +96,7 @@ class V1 {
95
96
  if (_response.ok) {
96
97
  return {
97
98
  ok: true,
98
- body: yield serializers.externalPaymentAccountConfig.v1.ExternalPaymentAccountConfigPage.parseOrThrow(_response.body, {
99
+ body: serializers.externalPaymentAccountConfig.v1.ExternalPaymentAccountConfigPage.parseOrThrow(_response.body, {
99
100
  unrecognizedObjectKeys: "passthrough",
100
101
  allowUnrecognizedUnionMembers: true,
101
102
  allowUnrecognizedEnumValues: true,
@@ -10,8 +10,11 @@ export declare namespace FeeSchedules {
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
13
14
  timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
14
16
  maxRetries?: number;
17
+ /** A hook to abort the request. */
15
18
  abortSignal?: AbortSignal;
16
19
  }
17
20
  }