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,24 +53,25 @@ class V3 {
53
53
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
54
54
  *
55
55
  * @example
56
- * await candidApi.organizationProviders.v3.get(CandidApi.organizationProviders.v2.OrganizationProviderId("965A563A-0285-4910-9569-E3739C0F6EAB"))
56
+ * await client.organizationProviders.v3.get(CandidApi.organizationProviders.v2.OrganizationProviderId("965A563A-0285-4910-9569-E3739C0F6EAB"))
57
57
  */
58
58
  get(organizationProviderId, requestOptions) {
59
59
  var _a, _b;
60
60
  return __awaiter(this, void 0, void 0, function* () {
61
61
  const _response = yield core.fetcher({
62
62
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
63
- .candidApi, `/api/organization-providers/v3/${encodeURIComponent(yield serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(organizationProviderId))}`),
63
+ .candidApi, `/api/organization-providers/v3/${encodeURIComponent(serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(organizationProviderId))}`),
64
64
  method: "GET",
65
65
  headers: {
66
66
  Authorization: yield this._getAuthorizationHeader(),
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "candidhealth",
69
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
69
+ "X-Fern-SDK-Version": "0.24.2",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
73
73
  contentType: "application/json",
74
+ requestType: "json",
74
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
75
76
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
76
77
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -78,7 +79,7 @@ class V3 {
78
79
  if (_response.ok) {
79
80
  return {
80
81
  ok: true,
81
- body: yield serializers.organizationProviders.v3.OrganizationProviderV2.parseOrThrow(_response.body, {
82
+ body: serializers.organizationProviders.v3.OrganizationProviderV2.parseOrThrow(_response.body, {
82
83
  unrecognizedObjectKeys: "passthrough",
83
84
  allowUnrecognizedUnionMembers: true,
84
85
  allowUnrecognizedEnumValues: true,
@@ -91,7 +92,7 @@ class V3 {
91
92
  case "EntityNotFoundError":
92
93
  return {
93
94
  ok: false,
94
- error: yield serializers.organizationProviders.v3.get.Error.parseOrThrow(_response.error.body, {
95
+ error: serializers.organizationProviders.v3.get.Error.parseOrThrow(_response.error.body, {
95
96
  unrecognizedObjectKeys: "passthrough",
96
97
  allowUnrecognizedUnionMembers: true,
97
98
  allowUnrecognizedEnumValues: true,
@@ -111,7 +112,7 @@ class V3 {
111
112
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
112
113
  *
113
114
  * @example
114
- * await candidApi.organizationProviders.v3.getMulti({
115
+ * await client.organizationProviders.v3.getMulti({
115
116
  * limit: 100,
116
117
  * searchTerm: "john",
117
118
  * npi: "1234567890",
@@ -155,12 +156,13 @@ class V3 {
155
156
  Authorization: yield this._getAuthorizationHeader(),
156
157
  "X-Fern-Language": "JavaScript",
157
158
  "X-Fern-SDK-Name": "candidhealth",
158
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
159
+ "X-Fern-SDK-Version": "0.24.2",
159
160
  "X-Fern-Runtime": core.RUNTIME.type,
160
161
  "X-Fern-Runtime-Version": core.RUNTIME.version,
161
162
  },
162
163
  contentType: "application/json",
163
164
  queryParameters: _queryParams,
165
+ requestType: "json",
164
166
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
165
167
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
166
168
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -168,7 +170,7 @@ class V3 {
168
170
  if (_response.ok) {
169
171
  return {
170
172
  ok: true,
171
- body: yield serializers.organizationProviders.v3.OrganizationProviderPageV2.parseOrThrow(_response.body, {
173
+ body: serializers.organizationProviders.v3.OrganizationProviderPageV2.parseOrThrow(_response.body, {
172
174
  unrecognizedObjectKeys: "passthrough",
173
175
  allowUnrecognizedUnionMembers: true,
174
176
  allowUnrecognizedEnumValues: true,
@@ -187,7 +189,7 @@ class V3 {
187
189
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
188
190
  *
189
191
  * @example
190
- * await candidApi.organizationProviders.v3.create({
192
+ * await client.organizationProviders.v3.create({
191
193
  * npi: "string",
192
194
  * isRendering: true,
193
195
  * isBilling: true,
@@ -225,12 +227,13 @@ class V3 {
225
227
  Authorization: yield this._getAuthorizationHeader(),
226
228
  "X-Fern-Language": "JavaScript",
227
229
  "X-Fern-SDK-Name": "candidhealth",
228
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
230
+ "X-Fern-SDK-Version": "0.24.2",
229
231
  "X-Fern-Runtime": core.RUNTIME.type,
230
232
  "X-Fern-Runtime-Version": core.RUNTIME.version,
231
233
  },
232
234
  contentType: "application/json",
233
- body: yield serializers.organizationProviders.v3.OrganizationProviderCreateV2.jsonOrThrow(request, {
235
+ requestType: "json",
236
+ body: serializers.organizationProviders.v3.OrganizationProviderCreateV2.jsonOrThrow(request, {
234
237
  unrecognizedObjectKeys: "strip",
235
238
  }),
236
239
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -240,7 +243,7 @@ class V3 {
240
243
  if (_response.ok) {
241
244
  return {
242
245
  ok: true,
243
- body: yield serializers.organizationProviders.v3.OrganizationProviderV2.parseOrThrow(_response.body, {
246
+ body: serializers.organizationProviders.v3.OrganizationProviderV2.parseOrThrow(_response.body, {
244
247
  unrecognizedObjectKeys: "passthrough",
245
248
  allowUnrecognizedUnionMembers: true,
246
249
  allowUnrecognizedEnumValues: true,
@@ -254,7 +257,7 @@ class V3 {
254
257
  case "UpdatesDisabledDueToExternalSystemIntegrationError":
255
258
  return {
256
259
  ok: false,
257
- error: yield serializers.organizationProviders.v3.create.Error.parseOrThrow(_response.error.body, {
260
+ error: serializers.organizationProviders.v3.create.Error.parseOrThrow(_response.error.body, {
258
261
  unrecognizedObjectKeys: "passthrough",
259
262
  allowUnrecognizedUnionMembers: true,
260
263
  allowUnrecognizedEnumValues: true,
@@ -275,7 +278,7 @@ class V3 {
275
278
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
276
279
  *
277
280
  * @example
278
- * await candidApi.organizationProviders.v3.update(CandidApi.organizationProviders.v2.OrganizationProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
281
+ * await client.organizationProviders.v3.update(CandidApi.organizationProviders.v2.OrganizationProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
279
282
  * npi: "string",
280
283
  * isRendering: true,
281
284
  * isBilling: true,
@@ -309,18 +312,19 @@ class V3 {
309
312
  return __awaiter(this, void 0, void 0, function* () {
310
313
  const _response = yield core.fetcher({
311
314
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
312
- .candidApi, `/api/organization-providers/v3/${encodeURIComponent(yield serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(organizationProviderId))}`),
315
+ .candidApi, `/api/organization-providers/v3/${encodeURIComponent(serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(organizationProviderId))}`),
313
316
  method: "PATCH",
314
317
  headers: {
315
318
  Authorization: yield this._getAuthorizationHeader(),
316
319
  "X-Fern-Language": "JavaScript",
317
320
  "X-Fern-SDK-Name": "candidhealth",
318
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
321
+ "X-Fern-SDK-Version": "0.24.2",
319
322
  "X-Fern-Runtime": core.RUNTIME.type,
320
323
  "X-Fern-Runtime-Version": core.RUNTIME.version,
321
324
  },
322
325
  contentType: "application/json",
323
- body: yield serializers.organizationProviders.v3.OrganizationProviderUpdateV2.jsonOrThrow(request, {
326
+ requestType: "json",
327
+ body: serializers.organizationProviders.v3.OrganizationProviderUpdateV2.jsonOrThrow(request, {
324
328
  unrecognizedObjectKeys: "strip",
325
329
  }),
326
330
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -330,7 +334,7 @@ class V3 {
330
334
  if (_response.ok) {
331
335
  return {
332
336
  ok: true,
333
- body: yield serializers.organizationProviders.v3.OrganizationProviderV2.parseOrThrow(_response.body, {
337
+ body: serializers.organizationProviders.v3.OrganizationProviderV2.parseOrThrow(_response.body, {
334
338
  unrecognizedObjectKeys: "passthrough",
335
339
  allowUnrecognizedUnionMembers: true,
336
340
  allowUnrecognizedEnumValues: true,
@@ -345,7 +349,7 @@ class V3 {
345
349
  case "UpdatesDisabledDueToExternalSystemIntegrationError":
346
350
  return {
347
351
  ok: false,
348
- error: yield serializers.organizationProviders.v3.update.Error.parseOrThrow(_response.error.body, {
352
+ error: serializers.organizationProviders.v3.update.Error.parseOrThrow(_response.error.body, {
349
353
  unrecognizedObjectKeys: "passthrough",
350
354
  allowUnrecognizedUnionMembers: true,
351
355
  allowUnrecognizedEnumValues: true,
@@ -10,8 +10,11 @@ export declare namespace OrganizationServiceFacilities {
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 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
  }
@@ -23,7 +26,7 @@ export declare class V2 {
23
26
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
24
27
  *
25
28
  * @example
26
- * await candidApi.organizationServiceFacilities.v2.get(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
29
+ * await client.organizationServiceFacilities.v2.get(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
27
30
  */
28
31
  get(organizationServiceFacilityId: CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacility, CandidApi.organizationServiceFacilities.v2.get.Error>>;
29
32
  /**
@@ -31,7 +34,7 @@ export declare class V2 {
31
34
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
32
35
  *
33
36
  * @example
34
- * await candidApi.organizationServiceFacilities.v2.getMulti({
37
+ * await client.organizationServiceFacilities.v2.getMulti({
35
38
  * limit: 100,
36
39
  * name: "Test Service Facility",
37
40
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
@@ -43,7 +46,7 @@ export declare class V2 {
43
46
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
44
47
  *
45
48
  * @example
46
- * await candidApi.organizationServiceFacilities.v2.create({
49
+ * await client.organizationServiceFacilities.v2.create({
47
50
  * name: "Test Service Facility",
48
51
  * aliases: ["Test Service Facility Alias"],
49
52
  * description: "Test Service Facility Description",
@@ -70,7 +73,7 @@ export declare class V2 {
70
73
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
71
74
  *
72
75
  * @example
73
- * await candidApi.organizationServiceFacilities.v2.update(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"), {
76
+ * await client.organizationServiceFacilities.v2.update(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"), {
74
77
  * name: "Test Service Facility",
75
78
  * aliases: ["Test Service Facility Alias"],
76
79
  * description: "Test Service Facility Description",
@@ -96,7 +99,7 @@ export declare class V2 {
96
99
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
97
100
  *
98
101
  * @example
99
- * await candidApi.organizationServiceFacilities.v2.delete(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
102
+ * await client.organizationServiceFacilities.v2.delete(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
100
103
  */
101
104
  delete(organizationServiceFacilityId: CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<void, CandidApi.organizationServiceFacilities.v2.delete.Error>>;
102
105
  protected _getAuthorizationHeader(): Promise<string | undefined>;
@@ -53,24 +53,25 @@ class V2 {
53
53
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
54
54
  *
55
55
  * @example
56
- * await candidApi.organizationServiceFacilities.v2.get(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
56
+ * await client.organizationServiceFacilities.v2.get(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
57
57
  */
58
58
  get(organizationServiceFacilityId, requestOptions) {
59
59
  var _a, _b;
60
60
  return __awaiter(this, void 0, void 0, function* () {
61
61
  const _response = yield core.fetcher({
62
62
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
63
- .candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
63
+ .candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
64
64
  method: "GET",
65
65
  headers: {
66
66
  Authorization: yield this._getAuthorizationHeader(),
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "candidhealth",
69
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
69
+ "X-Fern-SDK-Version": "0.24.2",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
73
73
  contentType: "application/json",
74
+ requestType: "json",
74
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
75
76
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
76
77
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -78,7 +79,7 @@ class V2 {
78
79
  if (_response.ok) {
79
80
  return {
80
81
  ok: true,
81
- body: yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
82
+ body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
82
83
  unrecognizedObjectKeys: "passthrough",
83
84
  allowUnrecognizedUnionMembers: true,
84
85
  allowUnrecognizedEnumValues: true,
@@ -91,7 +92,7 @@ class V2 {
91
92
  case "EntityNotFoundError":
92
93
  return {
93
94
  ok: false,
94
- error: yield serializers.organizationServiceFacilities.v2.get.Error.parseOrThrow(_response.error.body, {
95
+ error: serializers.organizationServiceFacilities.v2.get.Error.parseOrThrow(_response.error.body, {
95
96
  unrecognizedObjectKeys: "passthrough",
96
97
  allowUnrecognizedUnionMembers: true,
97
98
  allowUnrecognizedEnumValues: true,
@@ -111,7 +112,7 @@ class V2 {
111
112
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
112
113
  *
113
114
  * @example
114
- * await candidApi.organizationServiceFacilities.v2.getMulti({
115
+ * await client.organizationServiceFacilities.v2.getMulti({
115
116
  * limit: 100,
116
117
  * name: "Test Service Facility",
117
118
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
@@ -139,12 +140,13 @@ class V2 {
139
140
  Authorization: yield this._getAuthorizationHeader(),
140
141
  "X-Fern-Language": "JavaScript",
141
142
  "X-Fern-SDK-Name": "candidhealth",
142
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
143
+ "X-Fern-SDK-Version": "0.24.2",
143
144
  "X-Fern-Runtime": core.RUNTIME.type,
144
145
  "X-Fern-Runtime-Version": core.RUNTIME.version,
145
146
  },
146
147
  contentType: "application/json",
147
148
  queryParameters: _queryParams,
149
+ requestType: "json",
148
150
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
149
151
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
150
152
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -152,7 +154,7 @@ class V2 {
152
154
  if (_response.ok) {
153
155
  return {
154
156
  ok: true,
155
- body: yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityPage.parseOrThrow(_response.body, {
157
+ body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityPage.parseOrThrow(_response.body, {
156
158
  unrecognizedObjectKeys: "passthrough",
157
159
  allowUnrecognizedUnionMembers: true,
158
160
  allowUnrecognizedEnumValues: true,
@@ -171,7 +173,7 @@ class V2 {
171
173
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
172
174
  *
173
175
  * @example
174
- * await candidApi.organizationServiceFacilities.v2.create({
176
+ * await client.organizationServiceFacilities.v2.create({
175
177
  * name: "Test Service Facility",
176
178
  * aliases: ["Test Service Facility Alias"],
177
179
  * description: "Test Service Facility Description",
@@ -202,12 +204,15 @@ class V2 {
202
204
  Authorization: yield this._getAuthorizationHeader(),
203
205
  "X-Fern-Language": "JavaScript",
204
206
  "X-Fern-SDK-Name": "candidhealth",
205
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
207
+ "X-Fern-SDK-Version": "0.24.2",
206
208
  "X-Fern-Runtime": core.RUNTIME.type,
207
209
  "X-Fern-Runtime-Version": core.RUNTIME.version,
208
210
  },
209
211
  contentType: "application/json",
210
- body: yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
212
+ requestType: "json",
213
+ body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityCreate.jsonOrThrow(request, {
214
+ unrecognizedObjectKeys: "strip",
215
+ }),
211
216
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
212
217
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
213
218
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -215,7 +220,7 @@ class V2 {
215
220
  if (_response.ok) {
216
221
  return {
217
222
  ok: true,
218
- body: yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
223
+ body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
219
224
  unrecognizedObjectKeys: "passthrough",
220
225
  allowUnrecognizedUnionMembers: true,
221
226
  allowUnrecognizedEnumValues: true,
@@ -228,7 +233,7 @@ class V2 {
228
233
  case "HttpRequestValidationError":
229
234
  return {
230
235
  ok: false,
231
- error: yield serializers.organizationServiceFacilities.v2.create.Error.parseOrThrow(_response.error.body, {
236
+ error: serializers.organizationServiceFacilities.v2.create.Error.parseOrThrow(_response.error.body, {
232
237
  unrecognizedObjectKeys: "passthrough",
233
238
  allowUnrecognizedUnionMembers: true,
234
239
  allowUnrecognizedEnumValues: true,
@@ -249,7 +254,7 @@ class V2 {
249
254
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
250
255
  *
251
256
  * @example
252
- * await candidApi.organizationServiceFacilities.v2.update(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"), {
257
+ * await client.organizationServiceFacilities.v2.update(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"), {
253
258
  * name: "Test Service Facility",
254
259
  * aliases: ["Test Service Facility Alias"],
255
260
  * description: "Test Service Facility Description",
@@ -274,18 +279,21 @@ class V2 {
274
279
  return __awaiter(this, void 0, void 0, function* () {
275
280
  const _response = yield core.fetcher({
276
281
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
277
- .candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
282
+ .candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
278
283
  method: "PATCH",
279
284
  headers: {
280
285
  Authorization: yield this._getAuthorizationHeader(),
281
286
  "X-Fern-Language": "JavaScript",
282
287
  "X-Fern-SDK-Name": "candidhealth",
283
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
288
+ "X-Fern-SDK-Version": "0.24.2",
284
289
  "X-Fern-Runtime": core.RUNTIME.type,
285
290
  "X-Fern-Runtime-Version": core.RUNTIME.version,
286
291
  },
287
292
  contentType: "application/json",
288
- body: yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
293
+ requestType: "json",
294
+ body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityUpdate.jsonOrThrow(request, {
295
+ unrecognizedObjectKeys: "strip",
296
+ }),
289
297
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
290
298
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
291
299
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -293,7 +301,7 @@ class V2 {
293
301
  if (_response.ok) {
294
302
  return {
295
303
  ok: true,
296
- body: yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
304
+ body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
297
305
  unrecognizedObjectKeys: "passthrough",
298
306
  allowUnrecognizedUnionMembers: true,
299
307
  allowUnrecognizedEnumValues: true,
@@ -307,7 +315,7 @@ class V2 {
307
315
  case "EntityNotFoundError":
308
316
  return {
309
317
  ok: false,
310
- error: yield serializers.organizationServiceFacilities.v2.update.Error.parseOrThrow(_response.error.body, {
318
+ error: serializers.organizationServiceFacilities.v2.update.Error.parseOrThrow(_response.error.body, {
311
319
  unrecognizedObjectKeys: "passthrough",
312
320
  allowUnrecognizedUnionMembers: true,
313
321
  allowUnrecognizedEnumValues: true,
@@ -327,24 +335,25 @@ class V2 {
327
335
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
328
336
  *
329
337
  * @example
330
- * await candidApi.organizationServiceFacilities.v2.delete(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
338
+ * await client.organizationServiceFacilities.v2.delete(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
331
339
  */
332
340
  delete(organizationServiceFacilityId, requestOptions) {
333
341
  var _a, _b;
334
342
  return __awaiter(this, void 0, void 0, function* () {
335
343
  const _response = yield core.fetcher({
336
344
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
337
- .candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
345
+ .candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
338
346
  method: "DELETE",
339
347
  headers: {
340
348
  Authorization: yield this._getAuthorizationHeader(),
341
349
  "X-Fern-Language": "JavaScript",
342
350
  "X-Fern-SDK-Name": "candidhealth",
343
- "X-Fern-SDK-Version": "0.24.0-2a6d412",
351
+ "X-Fern-SDK-Version": "0.24.2",
344
352
  "X-Fern-Runtime": core.RUNTIME.type,
345
353
  "X-Fern-Runtime-Version": core.RUNTIME.version,
346
354
  },
347
355
  contentType: "application/json",
356
+ requestType: "json",
348
357
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
349
358
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
350
359
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -360,7 +369,7 @@ class V2 {
360
369
  case "EntityNotFoundError":
361
370
  return {
362
371
  ok: false,
363
- error: yield serializers.organizationServiceFacilities.v2.delete.Error.parseOrThrow(_response.error.body, {
372
+ error: serializers.organizationServiceFacilities.v2.delete.Error.parseOrThrow(_response.error.body, {
364
373
  unrecognizedObjectKeys: "passthrough",
365
374
  allowUnrecognizedUnionMembers: true,
366
375
  allowUnrecognizedEnumValues: true,
@@ -10,8 +10,11 @@ export declare namespace PatientPayments {
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 V4 {
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
  }
@@ -26,7 +29,7 @@ export declare class V4 {
26
29
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
27
30
  *
28
31
  * @example
29
- * await candidApi.patientPayments.v4.getMulti({
32
+ * await client.patientPayments.v4.getMulti({
30
33
  * limit: 1,
31
34
  * patientExternalId: CandidApi.PatientExternalId("string"),
32
35
  * claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
@@ -48,7 +51,7 @@ export declare class V4 {
48
51
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
49
52
  *
50
53
  * @example
51
- * await candidApi.patientPayments.v4.get(CandidApi.patientPayments.v4.PatientPaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
54
+ * await client.patientPayments.v4.get(CandidApi.patientPayments.v4.PatientPaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
52
55
  */
53
56
  get(patientPaymentId: CandidApi.patientPayments.v4.PatientPaymentId, requestOptions?: V4.RequestOptions): Promise<core.APIResponse<CandidApi.patientPayments.v4.PatientPayment, CandidApi.patientPayments.v4.get.Error>>;
54
57
  /**
@@ -60,7 +63,7 @@ export declare class V4 {
60
63
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
61
64
  *
62
65
  * @example
63
- * await candidApi.patientPayments.v4.create({
66
+ * await client.patientPayments.v4.create({
64
67
  * amountCents: 1,
65
68
  * paymentTimestamp: new Date("2024-01-15T09:30:00.000Z"),
66
69
  * paymentNote: "string",
@@ -84,7 +87,7 @@ export declare class V4 {
84
87
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
85
88
  *
86
89
  * @example
87
- * await candidApi.patientPayments.v4.update(CandidApi.patientPayments.v4.PatientPaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
90
+ * await client.patientPayments.v4.update(CandidApi.patientPayments.v4.PatientPaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
88
91
  * paymentTimestamp: new Date("2024-01-15T09:30:00.000Z"),
89
92
  * paymentNote: {
90
93
  * type: "set",
@@ -104,7 +107,7 @@ export declare class V4 {
104
107
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
105
108
  *
106
109
  * @example
107
- * await candidApi.patientPayments.v4.delete(CandidApi.patientPayments.v4.PatientPaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
110
+ * await client.patientPayments.v4.delete(CandidApi.patientPayments.v4.PatientPaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
108
111
  */
109
112
  delete(patientPaymentId: CandidApi.patientPayments.v4.PatientPaymentId, requestOptions?: V4.RequestOptions): Promise<core.APIResponse<void, CandidApi.patientPayments.v4.delete.Error>>;
110
113
  protected _getAuthorizationHeader(): Promise<string | undefined>;