candidhealth 0.24.0-2a6d412 → 0.24.1

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
@@ -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.1",
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.1",
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
  }
@@ -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
  }
@@ -25,7 +28,7 @@ export declare class V3 {
25
28
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
26
29
  *
27
30
  * @example
28
- * await candidApi.feeSchedules.v3.getMatch(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
31
+ * await client.feeSchedules.v3.getMatch(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
29
32
  */
30
33
  getMatch(serviceLineId: CandidApi.ServiceLineId, requestOptions?: V3.RequestOptions): Promise<core.APIResponse<CandidApi.feeSchedules.v3.MatchResult | undefined, CandidApi.feeSchedules.v3.getMatch.Error>>;
31
34
  /**
@@ -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.feeSchedules.v3.testMatch(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
42
+ * await client.feeSchedules.v3.testMatch(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
40
43
  */
41
44
  testMatch(serviceLineId: CandidApi.ServiceLineId, rateId: CandidApi.RateId, requestOptions?: V3.RequestOptions): Promise<core.APIResponse<CandidApi.feeSchedules.v3.MatchTestResult, CandidApi.feeSchedules.v3.testMatch.Error>>;
42
45
  /**
@@ -46,7 +49,7 @@ export declare class V3 {
46
49
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
47
50
  *
48
51
  * @example
49
- * await candidApi.feeSchedules.v3.getMulti({
52
+ * await client.feeSchedules.v3.getMulti({
50
53
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
51
54
  * limit: 1,
52
55
  * activeDate: "2023-01-15",
@@ -69,7 +72,7 @@ export declare class V3 {
69
72
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
70
73
  *
71
74
  * @example
72
- * await candidApi.feeSchedules.v3.getUniqueValuesForDimension({
75
+ * await client.feeSchedules.v3.getUniqueValuesForDimension({
73
76
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
74
77
  * limit: 1,
75
78
  * pivotDimension: CandidApi.feeSchedules.v3.DimensionName.PayerUuid,
@@ -92,7 +95,7 @@ export declare class V3 {
92
95
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
93
96
  *
94
97
  * @example
95
- * await candidApi.feeSchedules.v3.getRateHistory(CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
98
+ * await client.feeSchedules.v3.getRateHistory(CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
96
99
  */
97
100
  getRateHistory(rateId: CandidApi.RateId, requestOptions?: V3.RequestOptions): Promise<core.APIResponse<CandidApi.feeSchedules.v3.Rate[], CandidApi.feeSchedules.v3.getRateHistory.Error>>;
98
101
  /**
@@ -102,7 +105,7 @@ export declare class V3 {
102
105
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
103
106
  *
104
107
  * @example
105
- * await candidApi.feeSchedules.v3.uploadFeeSchedule({
108
+ * await client.feeSchedules.v3.uploadFeeSchedule({
106
109
  * dryRun: true,
107
110
  * rates: [{
108
111
  * type: "new_rate",
@@ -134,7 +137,7 @@ export declare class V3 {
134
137
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
135
138
  *
136
139
  * @example
137
- * await candidApi.feeSchedules.v3.deleteRate(CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), 1)
140
+ * await client.feeSchedules.v3.deleteRate(CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), 1)
138
141
  */
139
142
  deleteRate(rateId: CandidApi.RateId, version: number, requestOptions?: V3.RequestOptions): Promise<core.APIResponse<void, CandidApi.feeSchedules.v3.deleteRate.Error>>;
140
143
  /**
@@ -143,7 +146,7 @@ export declare class V3 {
143
146
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
144
147
  *
145
148
  * @example
146
- * await candidApi.feeSchedules.v3.getPayerThresholdsDefault()
149
+ * await client.feeSchedules.v3.getPayerThresholdsDefault()
147
150
  */
148
151
  getPayerThresholdsDefault(requestOptions?: V3.RequestOptions): Promise<core.APIResponse<CandidApi.feeSchedules.v3.PayerThreshold, CandidApi.feeSchedules.v3.getPayerThresholdsDefault.Error>>;
149
152
  /**
@@ -153,7 +156,7 @@ export declare class V3 {
153
156
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
154
157
  *
155
158
  * @example
156
- * await candidApi.feeSchedules.v3.getPayerThresholds({
159
+ * await client.feeSchedules.v3.getPayerThresholds({
157
160
  * payerUuids: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
158
161
  * })
159
162
  */
@@ -166,7 +169,7 @@ export declare class V3 {
166
169
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
167
170
  *
168
171
  * @example
169
- * await candidApi.feeSchedules.v3.setPayerThreshold(CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
172
+ * await client.feeSchedules.v3.setPayerThreshold(CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
170
173
  * upperThresholdCents: 1,
171
174
  * lowerThresholdCents: 1,
172
175
  * disablePaidIncorrectly: true
@@ -55,24 +55,25 @@ class V3 {
55
55
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
56
56
  *
57
57
  * @example
58
- * await candidApi.feeSchedules.v3.getMatch(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
58
+ * await client.feeSchedules.v3.getMatch(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
59
59
  */
60
60
  getMatch(serviceLineId, requestOptions) {
61
61
  var _a, _b;
62
62
  return __awaiter(this, void 0, void 0, function* () {
63
63
  const _response = yield core.fetcher({
64
64
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
65
- .candidApi, `/api/fee-schedules/v3/service-line/${encodeURIComponent(yield serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/match`),
65
+ .candidApi, `/api/fee-schedules/v3/service-line/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/match`),
66
66
  method: "GET",
67
67
  headers: {
68
68
  Authorization: yield this._getAuthorizationHeader(),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "candidhealth",
71
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
71
+ "X-Fern-SDK-Version": "0.24.1",
72
72
  "X-Fern-Runtime": core.RUNTIME.type,
73
73
  "X-Fern-Runtime-Version": core.RUNTIME.version,
74
74
  },
75
75
  contentType: "application/json",
76
+ requestType: "json",
76
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
77
78
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
78
79
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -80,7 +81,7 @@ class V3 {
80
81
  if (_response.ok) {
81
82
  return {
82
83
  ok: true,
83
- body: yield serializers.feeSchedules.v3.getMatch.Response.parseOrThrow(_response.body, {
84
+ body: serializers.feeSchedules.v3.getMatch.Response.parseOrThrow(_response.body, {
84
85
  unrecognizedObjectKeys: "passthrough",
85
86
  allowUnrecognizedUnionMembers: true,
86
87
  allowUnrecognizedEnumValues: true,
@@ -94,7 +95,7 @@ class V3 {
94
95
  case "FailedToBuildServiceLineDimensions":
95
96
  return {
96
97
  ok: false,
97
- error: yield serializers.feeSchedules.v3.getMatch.Error.parseOrThrow(_response.error.body, {
98
+ error: serializers.feeSchedules.v3.getMatch.Error.parseOrThrow(_response.error.body, {
98
99
  unrecognizedObjectKeys: "passthrough",
99
100
  allowUnrecognizedUnionMembers: true,
100
101
  allowUnrecognizedEnumValues: true,
@@ -117,24 +118,25 @@ class V3 {
117
118
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
118
119
  *
119
120
  * @example
120
- * await candidApi.feeSchedules.v3.testMatch(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
121
+ * await client.feeSchedules.v3.testMatch(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
121
122
  */
122
123
  testMatch(serviceLineId, rateId, requestOptions) {
123
124
  var _a, _b;
124
125
  return __awaiter(this, void 0, void 0, function* () {
125
126
  const _response = yield core.fetcher({
126
127
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
127
- .candidApi, `/api/fee-schedules/v3/service-line/${encodeURIComponent(yield serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/match/${encodeURIComponent(yield serializers.RateId.jsonOrThrow(rateId))}`),
128
+ .candidApi, `/api/fee-schedules/v3/service-line/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/match/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}`),
128
129
  method: "GET",
129
130
  headers: {
130
131
  Authorization: yield this._getAuthorizationHeader(),
131
132
  "X-Fern-Language": "JavaScript",
132
133
  "X-Fern-SDK-Name": "candidhealth",
133
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
134
+ "X-Fern-SDK-Version": "0.24.1",
134
135
  "X-Fern-Runtime": core.RUNTIME.type,
135
136
  "X-Fern-Runtime-Version": core.RUNTIME.version,
136
137
  },
137
138
  contentType: "application/json",
139
+ requestType: "json",
138
140
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
139
141
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
140
142
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -142,7 +144,7 @@ class V3 {
142
144
  if (_response.ok) {
143
145
  return {
144
146
  ok: true,
145
- body: yield serializers.feeSchedules.v3.MatchTestResult.parseOrThrow(_response.body, {
147
+ body: serializers.feeSchedules.v3.MatchTestResult.parseOrThrow(_response.body, {
146
148
  unrecognizedObjectKeys: "passthrough",
147
149
  allowUnrecognizedUnionMembers: true,
148
150
  allowUnrecognizedEnumValues: true,
@@ -156,7 +158,7 @@ class V3 {
156
158
  case "FailedToBuildServiceLineDimensions":
157
159
  return {
158
160
  ok: false,
159
- error: yield serializers.feeSchedules.v3.testMatch.Error.parseOrThrow(_response.error.body, {
161
+ error: serializers.feeSchedules.v3.testMatch.Error.parseOrThrow(_response.error.body, {
160
162
  unrecognizedObjectKeys: "passthrough",
161
163
  allowUnrecognizedUnionMembers: true,
162
164
  allowUnrecognizedEnumValues: true,
@@ -178,7 +180,7 @@ class V3 {
178
180
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
179
181
  *
180
182
  * @example
181
- * await candidApi.feeSchedules.v3.getMulti({
183
+ * await client.feeSchedules.v3.getMulti({
182
184
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
183
185
  * limit: 1,
184
186
  * activeDate: "2023-01-15",
@@ -272,12 +274,13 @@ class V3 {
272
274
  Authorization: yield this._getAuthorizationHeader(),
273
275
  "X-Fern-Language": "JavaScript",
274
276
  "X-Fern-SDK-Name": "candidhealth",
275
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
277
+ "X-Fern-SDK-Version": "0.24.1",
276
278
  "X-Fern-Runtime": core.RUNTIME.type,
277
279
  "X-Fern-Runtime-Version": core.RUNTIME.version,
278
280
  },
279
281
  contentType: "application/json",
280
282
  queryParameters: _queryParams,
283
+ requestType: "json",
281
284
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
282
285
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
283
286
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -285,7 +288,7 @@ class V3 {
285
288
  if (_response.ok) {
286
289
  return {
287
290
  ok: true,
288
- body: yield serializers.feeSchedules.v3.RatesPage.parseOrThrow(_response.body, {
291
+ body: serializers.feeSchedules.v3.RatesPage.parseOrThrow(_response.body, {
289
292
  unrecognizedObjectKeys: "passthrough",
290
293
  allowUnrecognizedUnionMembers: true,
291
294
  allowUnrecognizedEnumValues: true,
@@ -306,7 +309,7 @@ class V3 {
306
309
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
307
310
  *
308
311
  * @example
309
- * await candidApi.feeSchedules.v3.getUniqueValuesForDimension({
312
+ * await client.feeSchedules.v3.getUniqueValuesForDimension({
310
313
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
311
314
  * limit: 1,
312
315
  * pivotDimension: CandidApi.feeSchedules.v3.DimensionName.PayerUuid,
@@ -398,12 +401,13 @@ class V3 {
398
401
  Authorization: yield this._getAuthorizationHeader(),
399
402
  "X-Fern-Language": "JavaScript",
400
403
  "X-Fern-SDK-Name": "candidhealth",
401
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
404
+ "X-Fern-SDK-Version": "0.24.1",
402
405
  "X-Fern-Runtime": core.RUNTIME.type,
403
406
  "X-Fern-Runtime-Version": core.RUNTIME.version,
404
407
  },
405
408
  contentType: "application/json",
406
409
  queryParameters: _queryParams,
410
+ requestType: "json",
407
411
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
408
412
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
409
413
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -411,7 +415,7 @@ class V3 {
411
415
  if (_response.ok) {
412
416
  return {
413
417
  ok: true,
414
- body: yield serializers.feeSchedules.v3.DimensionsPage.parseOrThrow(_response.body, {
418
+ body: serializers.feeSchedules.v3.DimensionsPage.parseOrThrow(_response.body, {
415
419
  unrecognizedObjectKeys: "passthrough",
416
420
  allowUnrecognizedUnionMembers: true,
417
421
  allowUnrecognizedEnumValues: true,
@@ -432,24 +436,25 @@ class V3 {
432
436
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
433
437
  *
434
438
  * @example
435
- * await candidApi.feeSchedules.v3.getRateHistory(CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
439
+ * await client.feeSchedules.v3.getRateHistory(CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
436
440
  */
437
441
  getRateHistory(rateId, requestOptions) {
438
442
  var _a, _b;
439
443
  return __awaiter(this, void 0, void 0, function* () {
440
444
  const _response = yield core.fetcher({
441
445
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
442
- .candidApi, `/api/fee-schedules/v3/${encodeURIComponent(yield serializers.RateId.jsonOrThrow(rateId))}/history`),
446
+ .candidApi, `/api/fee-schedules/v3/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}/history`),
443
447
  method: "GET",
444
448
  headers: {
445
449
  Authorization: yield this._getAuthorizationHeader(),
446
450
  "X-Fern-Language": "JavaScript",
447
451
  "X-Fern-SDK-Name": "candidhealth",
448
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
452
+ "X-Fern-SDK-Version": "0.24.1",
449
453
  "X-Fern-Runtime": core.RUNTIME.type,
450
454
  "X-Fern-Runtime-Version": core.RUNTIME.version,
451
455
  },
452
456
  contentType: "application/json",
457
+ requestType: "json",
453
458
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
454
459
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
455
460
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -457,7 +462,7 @@ class V3 {
457
462
  if (_response.ok) {
458
463
  return {
459
464
  ok: true,
460
- body: yield serializers.feeSchedules.v3.getRateHistory.Response.parseOrThrow(_response.body, {
465
+ body: serializers.feeSchedules.v3.getRateHistory.Response.parseOrThrow(_response.body, {
461
466
  unrecognizedObjectKeys: "passthrough",
462
467
  allowUnrecognizedUnionMembers: true,
463
468
  allowUnrecognizedEnumValues: true,
@@ -470,7 +475,7 @@ class V3 {
470
475
  case "EntityNotFoundError":
471
476
  return {
472
477
  ok: false,
473
- error: yield serializers.feeSchedules.v3.getRateHistory.Error.parseOrThrow(_response.error.body, {
478
+ error: serializers.feeSchedules.v3.getRateHistory.Error.parseOrThrow(_response.error.body, {
474
479
  unrecognizedObjectKeys: "passthrough",
475
480
  allowUnrecognizedUnionMembers: true,
476
481
  allowUnrecognizedEnumValues: true,
@@ -492,7 +497,7 @@ class V3 {
492
497
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
493
498
  *
494
499
  * @example
495
- * await candidApi.feeSchedules.v3.uploadFeeSchedule({
500
+ * await client.feeSchedules.v3.uploadFeeSchedule({
496
501
  * dryRun: true,
497
502
  * rates: [{
498
503
  * type: "new_rate",
@@ -526,12 +531,13 @@ class V3 {
526
531
  Authorization: yield this._getAuthorizationHeader(),
527
532
  "X-Fern-Language": "JavaScript",
528
533
  "X-Fern-SDK-Name": "candidhealth",
529
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
534
+ "X-Fern-SDK-Version": "0.24.1",
530
535
  "X-Fern-Runtime": core.RUNTIME.type,
531
536
  "X-Fern-Runtime-Version": core.RUNTIME.version,
532
537
  },
533
538
  contentType: "application/json",
534
- body: yield serializers.feeSchedules.v3.FeeScheduleUploadRequest.jsonOrThrow(request, {
539
+ requestType: "json",
540
+ body: serializers.feeSchedules.v3.FeeScheduleUploadRequest.jsonOrThrow(request, {
535
541
  unrecognizedObjectKeys: "strip",
536
542
  }),
537
543
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -541,7 +547,7 @@ class V3 {
541
547
  if (_response.ok) {
542
548
  return {
543
549
  ok: true,
544
- body: yield serializers.feeSchedules.v3.uploadFeeSchedule.Response.parseOrThrow(_response.body, {
550
+ body: serializers.feeSchedules.v3.uploadFeeSchedule.Response.parseOrThrow(_response.body, {
545
551
  unrecognizedObjectKeys: "passthrough",
546
552
  allowUnrecognizedUnionMembers: true,
547
553
  allowUnrecognizedEnumValues: true,
@@ -554,7 +560,7 @@ class V3 {
554
560
  case "FeeScheduleValidationHttpError":
555
561
  return {
556
562
  ok: false,
557
- error: yield serializers.feeSchedules.v3.uploadFeeSchedule.Error.parseOrThrow(_response.error.body, {
563
+ error: serializers.feeSchedules.v3.uploadFeeSchedule.Error.parseOrThrow(_response.error.body, {
558
564
  unrecognizedObjectKeys: "passthrough",
559
565
  allowUnrecognizedUnionMembers: true,
560
566
  allowUnrecognizedEnumValues: true,
@@ -577,24 +583,25 @@ class V3 {
577
583
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
578
584
  *
579
585
  * @example
580
- * await candidApi.feeSchedules.v3.deleteRate(CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), 1)
586
+ * await client.feeSchedules.v3.deleteRate(CandidApi.RateId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), 1)
581
587
  */
582
588
  deleteRate(rateId, version, requestOptions) {
583
589
  var _a, _b;
584
590
  return __awaiter(this, void 0, void 0, function* () {
585
591
  const _response = yield core.fetcher({
586
592
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
587
- .candidApi, `/api/fee-schedules/v3/${encodeURIComponent(yield serializers.RateId.jsonOrThrow(rateId))}/${encodeURIComponent(version)}`),
593
+ .candidApi, `/api/fee-schedules/v3/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}/${encodeURIComponent(version)}`),
588
594
  method: "DELETE",
589
595
  headers: {
590
596
  Authorization: yield this._getAuthorizationHeader(),
591
597
  "X-Fern-Language": "JavaScript",
592
598
  "X-Fern-SDK-Name": "candidhealth",
593
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
599
+ "X-Fern-SDK-Version": "0.24.1",
594
600
  "X-Fern-Runtime": core.RUNTIME.type,
595
601
  "X-Fern-Runtime-Version": core.RUNTIME.version,
596
602
  },
597
603
  contentType: "application/json",
604
+ requestType: "json",
598
605
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
599
606
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
600
607
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -611,7 +618,7 @@ class V3 {
611
618
  case "EntityConflictError":
612
619
  return {
613
620
  ok: false,
614
- error: yield serializers.feeSchedules.v3.deleteRate.Error.parseOrThrow(_response.error.body, {
621
+ error: serializers.feeSchedules.v3.deleteRate.Error.parseOrThrow(_response.error.body, {
615
622
  unrecognizedObjectKeys: "passthrough",
616
623
  allowUnrecognizedUnionMembers: true,
617
624
  allowUnrecognizedEnumValues: true,
@@ -632,7 +639,7 @@ class V3 {
632
639
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
633
640
  *
634
641
  * @example
635
- * await candidApi.feeSchedules.v3.getPayerThresholdsDefault()
642
+ * await client.feeSchedules.v3.getPayerThresholdsDefault()
636
643
  */
637
644
  getPayerThresholdsDefault(requestOptions) {
638
645
  var _a;
@@ -645,11 +652,12 @@ class V3 {
645
652
  Authorization: yield this._getAuthorizationHeader(),
646
653
  "X-Fern-Language": "JavaScript",
647
654
  "X-Fern-SDK-Name": "candidhealth",
648
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
655
+ "X-Fern-SDK-Version": "0.24.1",
649
656
  "X-Fern-Runtime": core.RUNTIME.type,
650
657
  "X-Fern-Runtime-Version": core.RUNTIME.version,
651
658
  },
652
659
  contentType: "application/json",
660
+ requestType: "json",
653
661
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
654
662
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
655
663
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -657,7 +665,7 @@ class V3 {
657
665
  if (_response.ok) {
658
666
  return {
659
667
  ok: true,
660
- body: yield serializers.feeSchedules.v3.PayerThreshold.parseOrThrow(_response.body, {
668
+ body: serializers.feeSchedules.v3.PayerThreshold.parseOrThrow(_response.body, {
661
669
  unrecognizedObjectKeys: "passthrough",
662
670
  allowUnrecognizedUnionMembers: true,
663
671
  allowUnrecognizedEnumValues: true,
@@ -678,7 +686,7 @@ class V3 {
678
686
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
679
687
  *
680
688
  * @example
681
- * await candidApi.feeSchedules.v3.getPayerThresholds({
689
+ * await client.feeSchedules.v3.getPayerThresholds({
682
690
  * payerUuids: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
683
691
  * })
684
692
  */
@@ -701,12 +709,13 @@ class V3 {
701
709
  Authorization: yield this._getAuthorizationHeader(),
702
710
  "X-Fern-Language": "JavaScript",
703
711
  "X-Fern-SDK-Name": "candidhealth",
704
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
712
+ "X-Fern-SDK-Version": "0.24.1",
705
713
  "X-Fern-Runtime": core.RUNTIME.type,
706
714
  "X-Fern-Runtime-Version": core.RUNTIME.version,
707
715
  },
708
716
  contentType: "application/json",
709
717
  queryParameters: _queryParams,
718
+ requestType: "json",
710
719
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
711
720
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
712
721
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -714,7 +723,7 @@ class V3 {
714
723
  if (_response.ok) {
715
724
  return {
716
725
  ok: true,
717
- body: yield serializers.feeSchedules.v3.PayerThresholdsPage.parseOrThrow(_response.body, {
726
+ body: serializers.feeSchedules.v3.PayerThresholdsPage.parseOrThrow(_response.body, {
718
727
  unrecognizedObjectKeys: "passthrough",
719
728
  allowUnrecognizedUnionMembers: true,
720
729
  allowUnrecognizedEnumValues: true,
@@ -736,7 +745,7 @@ class V3 {
736
745
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
737
746
  *
738
747
  * @example
739
- * await candidApi.feeSchedules.v3.setPayerThreshold(CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
748
+ * await client.feeSchedules.v3.setPayerThreshold(CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
740
749
  * upperThresholdCents: 1,
741
750
  * lowerThresholdCents: 1,
742
751
  * disablePaidIncorrectly: true
@@ -747,20 +756,19 @@ class V3 {
747
756
  return __awaiter(this, void 0, void 0, function* () {
748
757
  const _response = yield core.fetcher({
749
758
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
750
- .candidApi, `/api/fee-schedules/v3/payer-threshold/${encodeURIComponent(yield serializers.payers.v3.PayerUuid.jsonOrThrow(payerUuid))}`),
759
+ .candidApi, `/api/fee-schedules/v3/payer-threshold/${encodeURIComponent(serializers.payers.v3.PayerUuid.jsonOrThrow(payerUuid))}`),
751
760
  method: "PUT",
752
761
  headers: {
753
762
  Authorization: yield this._getAuthorizationHeader(),
754
763
  "X-Fern-Language": "JavaScript",
755
764
  "X-Fern-SDK-Name": "candidhealth",
756
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
765
+ "X-Fern-SDK-Version": "0.24.1",
757
766
  "X-Fern-Runtime": core.RUNTIME.type,
758
767
  "X-Fern-Runtime-Version": core.RUNTIME.version,
759
768
  },
760
769
  contentType: "application/json",
761
- body: yield serializers.feeSchedules.v3.PayerThreshold.jsonOrThrow(request, {
762
- unrecognizedObjectKeys: "strip",
763
- }),
770
+ requestType: "json",
771
+ body: serializers.feeSchedules.v3.PayerThreshold.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
764
772
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
765
773
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
766
774
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -768,7 +776,7 @@ class V3 {
768
776
  if (_response.ok) {
769
777
  return {
770
778
  ok: true,
771
- body: yield serializers.feeSchedules.v3.PayerThreshold.parseOrThrow(_response.body, {
779
+ body: serializers.feeSchedules.v3.PayerThreshold.parseOrThrow(_response.body, {
772
780
  unrecognizedObjectKeys: "passthrough",
773
781
  allowUnrecognizedUnionMembers: true,
774
782
  allowUnrecognizedEnumValues: true,
@@ -781,7 +789,7 @@ class V3 {
781
789
  case "EntityNotFoundError":
782
790
  return {
783
791
  ok: false,
784
- error: yield serializers.feeSchedules.v3.setPayerThreshold.Error.parseOrThrow(_response.error.body, {
792
+ error: serializers.feeSchedules.v3.setPayerThreshold.Error.parseOrThrow(_response.error.body, {
785
793
  unrecognizedObjectKeys: "passthrough",
786
794
  allowUnrecognizedUnionMembers: true,
787
795
  allowUnrecognizedEnumValues: true,
@@ -10,8 +10,11 @@ export declare namespace Guarantor {
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
  }