@stedi/sdk 0.0.4 → 0.0.10

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 (393) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/LICENSE +13 -12
  3. package/README.md +148 -33
  4. package/dist-cjs/Stedi.js +51 -0
  5. package/dist-cjs/StediClient.js +52 -0
  6. package/dist-cjs/{generated/payers/auth → auth}/httpAuthExtensionConfiguration.js +8 -7
  7. package/dist-cjs/auth/httpAuthSchemeProvider.js +48 -0
  8. package/dist-cjs/commandBuilder.js +15 -0
  9. package/dist-cjs/commands/CreateEventDestinationCommand.js +8 -0
  10. package/dist-cjs/commands/CreateProfessionalClaimSubmissionCommand.js +8 -0
  11. package/dist-cjs/commands/DeleteEventDestinationCommand.js +8 -0
  12. package/dist-cjs/commands/GetClaimCommand.js +8 -0
  13. package/dist-cjs/commands/GetClaimTimelineCommand.js +8 -0
  14. package/dist-cjs/commands/GetEventDestinationCommand.js +8 -0
  15. package/dist-cjs/commands/GetEventDestinationEventCommand.js +8 -0
  16. package/dist-cjs/commands/GetEventDestinationSecretCommand.js +8 -0
  17. package/dist-cjs/commands/GetProfessionalClaimSubmissionCommand.js +8 -0
  18. package/dist-cjs/commands/ListClaimsCommand.js +8 -0
  19. package/dist-cjs/commands/ListEventDestinationEventsCommand.js +8 -0
  20. package/dist-cjs/commands/ListEventDestinationsCommand.js +8 -0
  21. package/dist-cjs/commands/RotateEventDestinationSecretCommand.js +8 -0
  22. package/dist-cjs/commands/UpdateEventDestinationCommand.js +8 -0
  23. package/dist-cjs/commands/ValidateProfessionalClaimSubmissionCommand.js +8 -0
  24. package/dist-cjs/commands/index.js +18 -0
  25. package/dist-cjs/{generated/claims/endpoint → endpoint}/EndpointParameters.js +1 -8
  26. package/dist-cjs/endpoint/bdd.js +28 -0
  27. package/dist-cjs/endpoint/endpointResolver.js +16 -0
  28. package/dist-cjs/{generated/payers/models/models_0.js → extensionConfiguration.js} +0 -1
  29. package/dist-cjs/index.js +14 -72
  30. package/dist-cjs/middleware/stediUserAgentMiddleware.js +24 -0
  31. package/dist-cjs/models/StediServiceException.js +12 -0
  32. package/dist-cjs/models/enums.js +248 -0
  33. package/dist-cjs/models/errors.js +127 -0
  34. package/dist-cjs/{generated/claims/models → models}/models_0.js +0 -1
  35. package/dist-cjs/pagination/GetClaimTimelinePaginator.js +7 -0
  36. package/dist-cjs/{generated/payers/pagination → pagination}/Interfaces.js +0 -1
  37. package/dist-cjs/pagination/ListClaimsPaginator.js +7 -0
  38. package/dist-cjs/pagination/ListEventDestinationEventsPaginator.js +7 -0
  39. package/dist-cjs/pagination/ListEventDestinationsPaginator.js +7 -0
  40. package/dist-cjs/pagination/index.js +8 -0
  41. package/dist-cjs/protocol/stediRestJsonProtocol.js +53 -0
  42. package/dist-cjs/runtimeConfig.browser.js +30 -0
  43. package/dist-cjs/runtimeConfig.js +40 -0
  44. package/dist-cjs/{generated/claims/runtimeConfig.native.js → runtimeConfig.native.js} +0 -7
  45. package/dist-cjs/{generated/claims/runtimeConfig.shared.js → runtimeConfig.shared.js} +20 -20
  46. package/dist-cjs/runtimeExtensions.js +12 -0
  47. package/dist-cjs/schemas/schemas_0.js +977 -0
  48. package/dist-es/Stedi.js +47 -0
  49. package/dist-es/StediClient.js +48 -0
  50. package/dist-es/{generated/claims/auth → auth}/httpAuthExtensionConfiguration.js +8 -7
  51. package/dist-es/{generated/payers/auth → auth}/httpAuthSchemeProvider.js +11 -14
  52. package/dist-es/commandBuilder.js +11 -0
  53. package/dist-es/commands/CreateEventDestinationCommand.js +4 -0
  54. package/dist-es/commands/CreateProfessionalClaimSubmissionCommand.js +4 -0
  55. package/dist-es/commands/DeleteEventDestinationCommand.js +4 -0
  56. package/dist-es/commands/GetClaimCommand.js +4 -0
  57. package/dist-es/commands/GetClaimTimelineCommand.js +4 -0
  58. package/dist-es/commands/GetEventDestinationCommand.js +4 -0
  59. package/dist-es/commands/GetEventDestinationEventCommand.js +4 -0
  60. package/dist-es/commands/GetEventDestinationSecretCommand.js +4 -0
  61. package/dist-es/commands/GetProfessionalClaimSubmissionCommand.js +4 -0
  62. package/dist-es/commands/ListClaimsCommand.js +4 -0
  63. package/dist-es/commands/ListEventDestinationEventsCommand.js +4 -0
  64. package/dist-es/commands/ListEventDestinationsCommand.js +4 -0
  65. package/dist-es/commands/RotateEventDestinationSecretCommand.js +4 -0
  66. package/dist-es/commands/UpdateEventDestinationCommand.js +4 -0
  67. package/dist-es/commands/ValidateProfessionalClaimSubmissionCommand.js +4 -0
  68. package/dist-es/commands/index.js +15 -0
  69. package/dist-es/{generated/payers/endpoint → endpoint}/EndpointParameters.js +1 -8
  70. package/dist-es/endpoint/bdd.js +25 -0
  71. package/dist-es/endpoint/endpointResolver.js +12 -0
  72. package/dist-es/extensionConfiguration.js +1 -0
  73. package/dist-es/index.js +10 -37
  74. package/dist-es/middleware/stediUserAgentMiddleware.js +20 -0
  75. package/dist-es/models/StediServiceException.js +8 -0
  76. package/dist-es/models/enums.js +245 -0
  77. package/dist-es/models/errors.js +115 -0
  78. package/dist-es/models/models_0.js +1 -0
  79. package/dist-es/pagination/GetClaimTimelinePaginator.js +4 -0
  80. package/dist-es/pagination/Interfaces.js +1 -0
  81. package/dist-es/pagination/ListClaimsPaginator.js +4 -0
  82. package/dist-es/pagination/ListEventDestinationEventsPaginator.js +4 -0
  83. package/dist-es/pagination/ListEventDestinationsPaginator.js +4 -0
  84. package/dist-es/pagination/index.js +5 -0
  85. package/dist-es/protocol/stediRestJsonProtocol.js +49 -0
  86. package/dist-es/runtimeConfig.browser.js +25 -0
  87. package/dist-es/runtimeConfig.js +35 -0
  88. package/dist-es/{generated/payers/runtimeConfig.native.js → runtimeConfig.native.js} +0 -7
  89. package/dist-es/{generated/payers/runtimeConfig.shared.js → runtimeConfig.shared.js} +16 -16
  90. package/dist-es/runtimeExtensions.js +8 -0
  91. package/dist-es/schemas/schemas_0.js +972 -0
  92. package/dist-types/Stedi.d.ts +146 -0
  93. package/dist-types/{generated/payers/PayersClient.d.ts → StediClient.d.ts} +33 -39
  94. package/dist-types/{generated/payers/auth → auth}/httpAuthExtensionConfiguration.d.ts +8 -6
  95. package/dist-types/{generated/claims/auth → auth}/httpAuthSchemeProvider.d.ts +17 -10
  96. package/dist-types/commandBuilder.d.ts +22 -0
  97. package/dist-types/commands/CreateEventDestinationCommand.d.ts +146 -0
  98. package/dist-types/commands/CreateProfessionalClaimSubmissionCommand.d.ts +799 -0
  99. package/dist-types/commands/DeleteEventDestinationCommand.d.ts +105 -0
  100. package/dist-types/commands/GetClaimCommand.d.ts +139 -0
  101. package/dist-types/commands/GetClaimTimelineCommand.d.ts +218 -0
  102. package/dist-types/commands/GetEventDestinationCommand.d.ts +124 -0
  103. package/dist-types/commands/GetEventDestinationEventCommand.d.ts +141 -0
  104. package/dist-types/commands/GetEventDestinationSecretCommand.d.ts +105 -0
  105. package/dist-types/commands/GetProfessionalClaimSubmissionCommand.d.ts +785 -0
  106. package/dist-types/commands/ListClaimsCommand.d.ts +169 -0
  107. package/dist-types/commands/ListEventDestinationEventsCommand.d.ts +120 -0
  108. package/dist-types/commands/ListEventDestinationsCommand.d.ts +132 -0
  109. package/dist-types/commands/RotateEventDestinationSecretCommand.d.ts +113 -0
  110. package/dist-types/commands/UpdateEventDestinationCommand.d.ts +142 -0
  111. package/dist-types/commands/ValidateProfessionalClaimSubmissionCommand.d.ts +786 -0
  112. package/dist-types/commands/index.d.ts +15 -0
  113. package/dist-types/{generated/payers/endpoint → endpoint}/EndpointParameters.d.ts +1 -1
  114. package/dist-types/endpoint/bdd.d.ts +2 -0
  115. package/dist-types/{generated/claims/endpoint → endpoint}/endpointResolver.d.ts +0 -1
  116. package/dist-types/extensionConfiguration.d.ts +8 -0
  117. package/dist-types/index.d.ts +18 -34
  118. package/dist-types/middleware/stediUserAgentMiddleware.d.ts +5 -0
  119. package/dist-types/models/StediServiceException.d.ts +14 -0
  120. package/dist-types/models/enums.d.ts +1038 -0
  121. package/dist-types/models/errors.d.ts +120 -0
  122. package/dist-types/models/models_0.d.ts +2966 -0
  123. package/dist-types/pagination/GetClaimTimelinePaginator.d.ts +7 -0
  124. package/dist-types/pagination/Interfaces.d.ts +8 -0
  125. package/dist-types/pagination/ListClaimsPaginator.d.ts +7 -0
  126. package/dist-types/pagination/ListEventDestinationEventsPaginator.d.ts +7 -0
  127. package/dist-types/pagination/ListEventDestinationsPaginator.d.ts +7 -0
  128. package/dist-types/pagination/index.d.ts +5 -0
  129. package/dist-types/protocol/stediRestJsonProtocol.d.ts +12 -0
  130. package/dist-types/{generated/claims/runtimeConfig.browser.d.ts → runtimeConfig.browser.d.ts} +18 -16
  131. package/dist-types/{generated/payers/runtimeConfig.d.ts → runtimeConfig.d.ts} +18 -16
  132. package/dist-types/{generated/payers/runtimeConfig.native.d.ts → runtimeConfig.native.d.ts} +18 -16
  133. package/dist-types/{generated/claims/runtimeConfig.shared.d.ts → runtimeConfig.shared.d.ts} +13 -10
  134. package/dist-types/{generated/claims/runtimeExtensions.d.ts → runtimeExtensions.d.ts} +2 -3
  135. package/dist-types/schemas/schemas_0.d.ts +123 -0
  136. package/package.json +60 -79
  137. package/dist-cjs/_registry.js +0 -47
  138. package/dist-cjs/_registry.js.map +0 -1
  139. package/dist-cjs/generated/claims/Claims.js +0 -19
  140. package/dist-cjs/generated/claims/Claims.js.map +0 -1
  141. package/dist-cjs/generated/claims/ClaimsClient.js +0 -68
  142. package/dist-cjs/generated/claims/ClaimsClient.js.map +0 -1
  143. package/dist-cjs/generated/claims/auth/httpAuthExtensionConfiguration.js +0 -50
  144. package/dist-cjs/generated/claims/auth/httpAuthExtensionConfiguration.js.map +0 -1
  145. package/dist-cjs/generated/claims/auth/httpAuthSchemeProvider.js +0 -51
  146. package/dist-cjs/generated/claims/auth/httpAuthSchemeProvider.js.map +0 -1
  147. package/dist-cjs/generated/claims/commands/ClaimsCms1500SubmissionCommand.js +0 -494
  148. package/dist-cjs/generated/claims/commands/ClaimsCms1500SubmissionCommand.js.map +0 -1
  149. package/dist-cjs/generated/claims/commands/index.js +0 -19
  150. package/dist-cjs/generated/claims/commands/index.js.map +0 -1
  151. package/dist-cjs/generated/claims/endpoint/EndpointParameters.js.map +0 -1
  152. package/dist-cjs/generated/claims/endpoint/bdd.js +0 -24
  153. package/dist-cjs/generated/claims/endpoint/bdd.js.map +0 -1
  154. package/dist-cjs/generated/claims/endpoint/endpointResolver.js +0 -23
  155. package/dist-cjs/generated/claims/endpoint/endpointResolver.js.map +0 -1
  156. package/dist-cjs/generated/claims/extensionConfiguration.js +0 -3
  157. package/dist-cjs/generated/claims/extensionConfiguration.js.map +0 -1
  158. package/dist-cjs/generated/claims/index.js +0 -34
  159. package/dist-cjs/generated/claims/index.js.map +0 -1
  160. package/dist-cjs/generated/claims/models/ClaimsServiceException.js +0 -22
  161. package/dist-cjs/generated/claims/models/ClaimsServiceException.js.map +0 -1
  162. package/dist-cjs/generated/claims/models/enums.js +0 -591
  163. package/dist-cjs/generated/claims/models/enums.js.map +0 -1
  164. package/dist-cjs/generated/claims/models/errors.js +0 -31
  165. package/dist-cjs/generated/claims/models/errors.js.map +0 -1
  166. package/dist-cjs/generated/claims/models/models_0.js.map +0 -1
  167. package/dist-cjs/generated/claims/runtimeConfig.browser.js +0 -45
  168. package/dist-cjs/generated/claims/runtimeConfig.browser.js.map +0 -1
  169. package/dist-cjs/generated/claims/runtimeConfig.js +0 -60
  170. package/dist-cjs/generated/claims/runtimeConfig.js.map +0 -1
  171. package/dist-cjs/generated/claims/runtimeConfig.native.js.map +0 -1
  172. package/dist-cjs/generated/claims/runtimeConfig.shared.js.map +0 -1
  173. package/dist-cjs/generated/claims/runtimeExtensions.js +0 -18
  174. package/dist-cjs/generated/claims/runtimeExtensions.js.map +0 -1
  175. package/dist-cjs/generated/claims/schemas/schemas_0.js +0 -507
  176. package/dist-cjs/generated/claims/schemas/schemas_0.js.map +0 -1
  177. package/dist-cjs/generated/payers/Payers.js +0 -23
  178. package/dist-cjs/generated/payers/Payers.js.map +0 -1
  179. package/dist-cjs/generated/payers/PayersClient.js +0 -68
  180. package/dist-cjs/generated/payers/PayersClient.js.map +0 -1
  181. package/dist-cjs/generated/payers/auth/httpAuthExtensionConfiguration.js.map +0 -1
  182. package/dist-cjs/generated/payers/auth/httpAuthSchemeProvider.js +0 -51
  183. package/dist-cjs/generated/payers/auth/httpAuthSchemeProvider.js.map +0 -1
  184. package/dist-cjs/generated/payers/commands/SearchPayersCommand.js +0 -753
  185. package/dist-cjs/generated/payers/commands/SearchPayersCommand.js.map +0 -1
  186. package/dist-cjs/generated/payers/commands/index.js +0 -19
  187. package/dist-cjs/generated/payers/commands/index.js.map +0 -1
  188. package/dist-cjs/generated/payers/endpoint/EndpointParameters.js +0 -19
  189. package/dist-cjs/generated/payers/endpoint/EndpointParameters.js.map +0 -1
  190. package/dist-cjs/generated/payers/endpoint/bdd.js +0 -24
  191. package/dist-cjs/generated/payers/endpoint/bdd.js.map +0 -1
  192. package/dist-cjs/generated/payers/endpoint/endpointResolver.js +0 -23
  193. package/dist-cjs/generated/payers/endpoint/endpointResolver.js.map +0 -1
  194. package/dist-cjs/generated/payers/extensionConfiguration.js +0 -3
  195. package/dist-cjs/generated/payers/extensionConfiguration.js.map +0 -1
  196. package/dist-cjs/generated/payers/index.js +0 -35
  197. package/dist-cjs/generated/payers/index.js.map +0 -1
  198. package/dist-cjs/generated/payers/models/PayersServiceException.js +0 -22
  199. package/dist-cjs/generated/payers/models/PayersServiceException.js.map +0 -1
  200. package/dist-cjs/generated/payers/models/enums.js +0 -333
  201. package/dist-cjs/generated/payers/models/enums.js.map +0 -1
  202. package/dist-cjs/generated/payers/models/errors.js +0 -86
  203. package/dist-cjs/generated/payers/models/errors.js.map +0 -1
  204. package/dist-cjs/generated/payers/models/models_0.js.map +0 -1
  205. package/dist-cjs/generated/payers/pagination/Interfaces.js.map +0 -1
  206. package/dist-cjs/generated/payers/pagination/SearchPayersPaginator.js +0 -12
  207. package/dist-cjs/generated/payers/pagination/SearchPayersPaginator.js.map +0 -1
  208. package/dist-cjs/generated/payers/pagination/index.js +0 -20
  209. package/dist-cjs/generated/payers/pagination/index.js.map +0 -1
  210. package/dist-cjs/generated/payers/runtimeConfig.browser.js +0 -45
  211. package/dist-cjs/generated/payers/runtimeConfig.browser.js.map +0 -1
  212. package/dist-cjs/generated/payers/runtimeConfig.js +0 -60
  213. package/dist-cjs/generated/payers/runtimeConfig.js.map +0 -1
  214. package/dist-cjs/generated/payers/runtimeConfig.native.js +0 -20
  215. package/dist-cjs/generated/payers/runtimeConfig.native.js.map +0 -1
  216. package/dist-cjs/generated/payers/runtimeConfig.shared.js +0 -48
  217. package/dist-cjs/generated/payers/runtimeConfig.shared.js.map +0 -1
  218. package/dist-cjs/generated/payers/runtimeExtensions.js +0 -18
  219. package/dist-cjs/generated/payers/runtimeExtensions.js.map +0 -1
  220. package/dist-cjs/generated/payers/schemas/schemas_0.js +0 -231
  221. package/dist-cjs/generated/payers/schemas/schemas_0.js.map +0 -1
  222. package/dist-cjs/index.js.map +0 -1
  223. package/dist-es/_registry.js +0 -11
  224. package/dist-es/_registry.js.map +0 -1
  225. package/dist-es/generated/claims/Claims.js +0 -15
  226. package/dist-es/generated/claims/Claims.js.map +0 -1
  227. package/dist-es/generated/claims/ClaimsClient.js +0 -64
  228. package/dist-es/generated/claims/ClaimsClient.js.map +0 -1
  229. package/dist-es/generated/claims/auth/httpAuthExtensionConfiguration.js.map +0 -1
  230. package/dist-es/generated/claims/auth/httpAuthSchemeProvider.js +0 -45
  231. package/dist-es/generated/claims/auth/httpAuthSchemeProvider.js.map +0 -1
  232. package/dist-es/generated/claims/commands/ClaimsCms1500SubmissionCommand.js +0 -490
  233. package/dist-es/generated/claims/commands/ClaimsCms1500SubmissionCommand.js.map +0 -1
  234. package/dist-es/generated/claims/commands/index.js +0 -3
  235. package/dist-es/generated/claims/commands/index.js.map +0 -1
  236. package/dist-es/generated/claims/endpoint/EndpointParameters.js +0 -15
  237. package/dist-es/generated/claims/endpoint/EndpointParameters.js.map +0 -1
  238. package/dist-es/generated/claims/endpoint/bdd.js +0 -21
  239. package/dist-es/generated/claims/endpoint/bdd.js.map +0 -1
  240. package/dist-es/generated/claims/endpoint/endpointResolver.js +0 -19
  241. package/dist-es/generated/claims/endpoint/endpointResolver.js.map +0 -1
  242. package/dist-es/generated/claims/extensionConfiguration.js +0 -2
  243. package/dist-es/generated/claims/extensionConfiguration.js.map +0 -1
  244. package/dist-es/generated/claims/index.js +0 -16
  245. package/dist-es/generated/claims/index.js.map +0 -1
  246. package/dist-es/generated/claims/models/ClaimsServiceException.js +0 -18
  247. package/dist-es/generated/claims/models/ClaimsServiceException.js.map +0 -1
  248. package/dist-es/generated/claims/models/enums.js +0 -588
  249. package/dist-es/generated/claims/models/enums.js.map +0 -1
  250. package/dist-es/generated/claims/models/errors.js +0 -27
  251. package/dist-es/generated/claims/models/errors.js.map +0 -1
  252. package/dist-es/generated/claims/models/models_0.js +0 -2
  253. package/dist-es/generated/claims/models/models_0.js.map +0 -1
  254. package/dist-es/generated/claims/runtimeConfig.browser.js +0 -38
  255. package/dist-es/generated/claims/runtimeConfig.browser.js.map +0 -1
  256. package/dist-es/generated/claims/runtimeConfig.js +0 -53
  257. package/dist-es/generated/claims/runtimeConfig.js.map +0 -1
  258. package/dist-es/generated/claims/runtimeConfig.native.js +0 -16
  259. package/dist-es/generated/claims/runtimeConfig.native.js.map +0 -1
  260. package/dist-es/generated/claims/runtimeConfig.shared.js +0 -44
  261. package/dist-es/generated/claims/runtimeConfig.shared.js.map +0 -1
  262. package/dist-es/generated/claims/runtimeExtensions.js +0 -14
  263. package/dist-es/generated/claims/runtimeExtensions.js.map +0 -1
  264. package/dist-es/generated/claims/schemas/schemas_0.js +0 -503
  265. package/dist-es/generated/claims/schemas/schemas_0.js.map +0 -1
  266. package/dist-es/generated/payers/Payers.js +0 -19
  267. package/dist-es/generated/payers/Payers.js.map +0 -1
  268. package/dist-es/generated/payers/PayersClient.js +0 -64
  269. package/dist-es/generated/payers/PayersClient.js.map +0 -1
  270. package/dist-es/generated/payers/auth/httpAuthExtensionConfiguration.js +0 -45
  271. package/dist-es/generated/payers/auth/httpAuthExtensionConfiguration.js.map +0 -1
  272. package/dist-es/generated/payers/auth/httpAuthSchemeProvider.js.map +0 -1
  273. package/dist-es/generated/payers/commands/SearchPayersCommand.js +0 -749
  274. package/dist-es/generated/payers/commands/SearchPayersCommand.js.map +0 -1
  275. package/dist-es/generated/payers/commands/index.js +0 -3
  276. package/dist-es/generated/payers/commands/index.js.map +0 -1
  277. package/dist-es/generated/payers/endpoint/EndpointParameters.js.map +0 -1
  278. package/dist-es/generated/payers/endpoint/bdd.js +0 -21
  279. package/dist-es/generated/payers/endpoint/bdd.js.map +0 -1
  280. package/dist-es/generated/payers/endpoint/endpointResolver.js +0 -19
  281. package/dist-es/generated/payers/endpoint/endpointResolver.js.map +0 -1
  282. package/dist-es/generated/payers/extensionConfiguration.js +0 -2
  283. package/dist-es/generated/payers/extensionConfiguration.js.map +0 -1
  284. package/dist-es/generated/payers/index.js +0 -17
  285. package/dist-es/generated/payers/index.js.map +0 -1
  286. package/dist-es/generated/payers/models/PayersServiceException.js +0 -18
  287. package/dist-es/generated/payers/models/PayersServiceException.js.map +0 -1
  288. package/dist-es/generated/payers/models/enums.js +0 -330
  289. package/dist-es/generated/payers/models/enums.js.map +0 -1
  290. package/dist-es/generated/payers/models/errors.js +0 -80
  291. package/dist-es/generated/payers/models/errors.js.map +0 -1
  292. package/dist-es/generated/payers/models/models_0.js +0 -2
  293. package/dist-es/generated/payers/models/models_0.js.map +0 -1
  294. package/dist-es/generated/payers/pagination/Interfaces.js +0 -2
  295. package/dist-es/generated/payers/pagination/Interfaces.js.map +0 -1
  296. package/dist-es/generated/payers/pagination/SearchPayersPaginator.js +0 -9
  297. package/dist-es/generated/payers/pagination/SearchPayersPaginator.js.map +0 -1
  298. package/dist-es/generated/payers/pagination/index.js +0 -4
  299. package/dist-es/generated/payers/pagination/index.js.map +0 -1
  300. package/dist-es/generated/payers/runtimeConfig.browser.js +0 -38
  301. package/dist-es/generated/payers/runtimeConfig.browser.js.map +0 -1
  302. package/dist-es/generated/payers/runtimeConfig.js +0 -53
  303. package/dist-es/generated/payers/runtimeConfig.js.map +0 -1
  304. package/dist-es/generated/payers/runtimeConfig.native.js.map +0 -1
  305. package/dist-es/generated/payers/runtimeConfig.shared.js.map +0 -1
  306. package/dist-es/generated/payers/runtimeExtensions.js +0 -14
  307. package/dist-es/generated/payers/runtimeExtensions.js.map +0 -1
  308. package/dist-es/generated/payers/schemas/schemas_0.js +0 -228
  309. package/dist-es/generated/payers/schemas/schemas_0.js.map +0 -1
  310. package/dist-es/index.js.map +0 -1
  311. package/dist-types/_registry.d.ts +0 -27
  312. package/dist-types/_registry.d.ts.map +0 -1
  313. package/dist-types/generated/claims/Claims.d.ts +0 -18
  314. package/dist-types/generated/claims/Claims.d.ts.map +0 -1
  315. package/dist-types/generated/claims/ClaimsClient.d.ts +0 -183
  316. package/dist-types/generated/claims/ClaimsClient.d.ts.map +0 -1
  317. package/dist-types/generated/claims/auth/httpAuthExtensionConfiguration.d.ts +0 -30
  318. package/dist-types/generated/claims/auth/httpAuthExtensionConfiguration.d.ts.map +0 -1
  319. package/dist-types/generated/claims/auth/httpAuthSchemeProvider.d.ts.map +0 -1
  320. package/dist-types/generated/claims/commands/ClaimsCms1500SubmissionCommand.d.ts +0 -514
  321. package/dist-types/generated/claims/commands/ClaimsCms1500SubmissionCommand.d.ts.map +0 -1
  322. package/dist-types/generated/claims/commands/index.d.ts +0 -2
  323. package/dist-types/generated/claims/commands/index.d.ts.map +0 -1
  324. package/dist-types/generated/claims/endpoint/EndpointParameters.d.ts +0 -33
  325. package/dist-types/generated/claims/endpoint/EndpointParameters.d.ts.map +0 -1
  326. package/dist-types/generated/claims/endpoint/bdd.d.ts +0 -3
  327. package/dist-types/generated/claims/endpoint/bdd.d.ts.map +0 -1
  328. package/dist-types/generated/claims/endpoint/endpointResolver.d.ts.map +0 -1
  329. package/dist-types/generated/claims/extensionConfiguration.d.ts +0 -10
  330. package/dist-types/generated/claims/extensionConfiguration.d.ts.map +0 -1
  331. package/dist-types/generated/claims/index.d.ts +0 -17
  332. package/dist-types/generated/claims/index.d.ts.map +0 -1
  333. package/dist-types/generated/claims/models/ClaimsServiceException.d.ts +0 -15
  334. package/dist-types/generated/claims/models/ClaimsServiceException.d.ts.map +0 -1
  335. package/dist-types/generated/claims/models/enums.d.ts +0 -707
  336. package/dist-types/generated/claims/models/enums.d.ts.map +0 -1
  337. package/dist-types/generated/claims/models/errors.d.ts +0 -20
  338. package/dist-types/generated/claims/models/errors.d.ts.map +0 -1
  339. package/dist-types/generated/claims/models/models_0.d.ts +0 -462
  340. package/dist-types/generated/claims/models/models_0.d.ts.map +0 -1
  341. package/dist-types/generated/claims/runtimeConfig.browser.d.ts.map +0 -1
  342. package/dist-types/generated/claims/runtimeConfig.d.ts +0 -54
  343. package/dist-types/generated/claims/runtimeConfig.d.ts.map +0 -1
  344. package/dist-types/generated/claims/runtimeConfig.native.d.ts +0 -53
  345. package/dist-types/generated/claims/runtimeConfig.native.d.ts.map +0 -1
  346. package/dist-types/generated/claims/runtimeConfig.shared.d.ts.map +0 -1
  347. package/dist-types/generated/claims/runtimeExtensions.d.ts.map +0 -1
  348. package/dist-types/generated/claims/schemas/schemas_0.d.ts +0 -62
  349. package/dist-types/generated/claims/schemas/schemas_0.d.ts.map +0 -1
  350. package/dist-types/generated/payers/Payers.d.ts +0 -26
  351. package/dist-types/generated/payers/Payers.d.ts.map +0 -1
  352. package/dist-types/generated/payers/PayersClient.d.ts.map +0 -1
  353. package/dist-types/generated/payers/auth/httpAuthExtensionConfiguration.d.ts.map +0 -1
  354. package/dist-types/generated/payers/auth/httpAuthSchemeProvider.d.ts +0 -82
  355. package/dist-types/generated/payers/auth/httpAuthSchemeProvider.d.ts.map +0 -1
  356. package/dist-types/generated/payers/commands/SearchPayersCommand.d.ts +0 -773
  357. package/dist-types/generated/payers/commands/SearchPayersCommand.d.ts.map +0 -1
  358. package/dist-types/generated/payers/commands/index.d.ts +0 -2
  359. package/dist-types/generated/payers/commands/index.d.ts.map +0 -1
  360. package/dist-types/generated/payers/endpoint/EndpointParameters.d.ts.map +0 -1
  361. package/dist-types/generated/payers/endpoint/bdd.d.ts +0 -3
  362. package/dist-types/generated/payers/endpoint/bdd.d.ts.map +0 -1
  363. package/dist-types/generated/payers/endpoint/endpointResolver.d.ts +0 -9
  364. package/dist-types/generated/payers/endpoint/endpointResolver.d.ts.map +0 -1
  365. package/dist-types/generated/payers/extensionConfiguration.d.ts +0 -10
  366. package/dist-types/generated/payers/extensionConfiguration.d.ts.map +0 -1
  367. package/dist-types/generated/payers/index.d.ts +0 -18
  368. package/dist-types/generated/payers/index.d.ts.map +0 -1
  369. package/dist-types/generated/payers/models/PayersServiceException.d.ts +0 -15
  370. package/dist-types/generated/payers/models/PayersServiceException.d.ts.map +0 -1
  371. package/dist-types/generated/payers/models/enums.d.ts +0 -353
  372. package/dist-types/generated/payers/models/enums.d.ts.map +0 -1
  373. package/dist-types/generated/payers/models/errors.d.ts +0 -58
  374. package/dist-types/generated/payers/models/errors.d.ts.map +0 -1
  375. package/dist-types/generated/payers/models/models_0.d.ts +0 -575
  376. package/dist-types/generated/payers/models/models_0.d.ts.map +0 -1
  377. package/dist-types/generated/payers/pagination/Interfaces.d.ts +0 -9
  378. package/dist-types/generated/payers/pagination/Interfaces.d.ts.map +0 -1
  379. package/dist-types/generated/payers/pagination/SearchPayersPaginator.d.ts +0 -8
  380. package/dist-types/generated/payers/pagination/SearchPayersPaginator.d.ts.map +0 -1
  381. package/dist-types/generated/payers/pagination/index.d.ts +0 -3
  382. package/dist-types/generated/payers/pagination/index.d.ts.map +0 -1
  383. package/dist-types/generated/payers/runtimeConfig.browser.d.ts +0 -54
  384. package/dist-types/generated/payers/runtimeConfig.browser.d.ts.map +0 -1
  385. package/dist-types/generated/payers/runtimeConfig.d.ts.map +0 -1
  386. package/dist-types/generated/payers/runtimeConfig.native.d.ts.map +0 -1
  387. package/dist-types/generated/payers/runtimeConfig.shared.d.ts +0 -34
  388. package/dist-types/generated/payers/runtimeConfig.shared.d.ts.map +0 -1
  389. package/dist-types/generated/payers/runtimeExtensions.d.ts +0 -18
  390. package/dist-types/generated/payers/runtimeExtensions.d.ts.map +0 -1
  391. package/dist-types/generated/payers/schemas/schemas_0.d.ts +0 -32
  392. package/dist-types/generated/payers/schemas/schemas_0.d.ts.map +0 -1
  393. package/dist-types/index.d.ts.map +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ # Changelog
2
+
3
+ All notable changes to the Stedi SDK are documented here.
package/LICENSE CHANGED
@@ -1,3 +1,4 @@
1
+
1
2
  Apache License
2
3
  Version 2.0, January 2004
3
4
  http://www.apache.org/licenses/
@@ -137,8 +138,8 @@
137
138
 
138
139
  6. Trademarks. This License does not grant permission to use the trade
139
140
  names, trademarks, service marks, or product names of the Licensor,
140
- except as required for describing the origin of the Work and
141
- reproducing the content of the NOTICE file.
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
142
143
 
143
144
  7. Disclaimer of Warranty. Unless required by applicable law or
144
145
  agreed to in writing, Licensor provides the Work (and each
@@ -162,16 +163,16 @@
162
163
  other commercial damages or losses), even if such Contributor
163
164
  has been advised of the possibility of such damages.
164
165
 
165
- 9. Accepting Warranty or Support. While redistributing the Work or
166
- Derivative Works thereof, You may accept and charge a fee for
167
- acceptance of support, warranty, indemnity, or other liability
168
- obligations and/or rights consistent with this License. However,
169
- in accepting such obligations, You may act only on Your own
170
- behalf and on Your sole responsibility, not on behalf of any other
171
- Contributor, and only if You agree to indemnify, defend, and hold
172
- each Contributor harmless for any liability incurred by, or claims
173
- asserted against, such Contributor by reason of your accepting any
174
- such warranty or support.
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
175
176
 
176
177
  END OF TERMS AND CONDITIONS
177
178
 
package/README.md CHANGED
@@ -1,62 +1,177 @@
1
1
  # @stedi/sdk
2
2
 
3
- The Stedi SDK for TypeScript / Node.js.
3
+ [![npm](https://img.shields.io/npm/v/@stedi/sdk.svg)](https://www.npmjs.com/package/@stedi/sdk)
4
+ [![node](https://img.shields.io/node/v/@stedi/sdk.svg)](https://www.npmjs.com/package/@stedi/sdk)
5
+ [![License](https://img.shields.io/npm/l/@stedi/sdk.svg)][license]
4
6
 
5
- ## Install
7
+ The Stedi SDK for TypeScript / Node.js — unified, typed access to Stedi's
8
+ APIs from a single client.
9
+
10
+ ## Requirements
11
+
12
+ - Node.js ≥ 22 [download][nodejs]
13
+ - Stedi account [sign up free][signup]
14
+ - Stedi API key: [docs][apikeydocs]
15
+
16
+ ## Installing
6
17
 
7
18
  ```sh
8
19
  npm install @stedi/sdk
20
+ # or: yarn add @stedi/sdk
21
+ # or: pnpm add @stedi/sdk
9
22
  ```
10
23
 
11
- ## Usage
24
+ ## Authentication
25
+
26
+ You must authenticate every request, either with a Stedi API key or with an OAuth access token. You pass the credential once when you construct the client.
27
+
28
+ With an API key:
29
+
30
+ ```ts
31
+ import { Stedi } from "@stedi/sdk";
32
+
33
+ const client = new Stedi({ apiKey: { apiKey: process.env.STEDI_API_KEY! } });
34
+ ```
35
+
36
+ Visit the [Stedi documentation][apikeydocs] for instructions on creating and managing API keys.
37
+
38
+ ### OAuth access tokens
39
+
40
+ If your app authenticates through a Stedi OAuth app, pass a `token` instead. Stedi's access tokens are short-lived, so supply a function rather than a fixed string — the client calls it for the first request and again once the token is close to expiring:
41
+
42
+ ```ts
43
+ import { Stedi } from "@stedi/sdk";
44
+
45
+ const client = new Stedi({
46
+ // `getAccessToken` is your own function — see below.
47
+ token: async () => {
48
+ const { access_token, expires_in } = await getAccessToken();
49
+ // Include `expiration`, or the client keeps this token for its lifetime and never calls you again.
50
+ return { token: access_token, expiration: new Date(Date.now() + expires_in * 1000) };
51
+ },
52
+ });
53
+ ```
54
+
55
+ Obtaining and refreshing the token is your app's job — `getAccessToken` above is yours to write, and an OAuth client library such as [`openid-client`][openidclient] does most of it. Supply exactly one of `apiKey` or `token`; if you set both, the API key is used.
56
+
57
+ ## Quickstart
58
+
59
+ Create one `Stedi` client with your API key. Every operation is a method on it that
60
+ takes the operation's typed input:
61
+
62
+ ```ts
63
+ import { randomUUID } from "node:crypto";
64
+ import { readFileSync } from "node:fs";
65
+
66
+ import { Stedi, type CreateProfessionalClaimSubmissionInput } from "@stedi/sdk";
67
+
68
+ const client = new Stedi({ apiKey: { apiKey: process.env.STEDI_API_KEY! } });
69
+
70
+ // Submit a complete CMS-1500 claim. See the runnable claims example for a full payload.
71
+ // `claim.json` is your own payload; the runnable examples ship one.
72
+ const claim = JSON.parse(readFileSync("claim.json", "utf8")) as CreateProfessionalClaimSubmissionInput;
73
+
74
+ const response = await client.createProfessionalClaimSubmission({ ...claim, idempotencyKey: randomUUID() });
75
+
76
+ console.log(`claim ${response.claimId}, submission ${response.submissionId}`);
77
+ ```
78
+
79
+ ## One client for every Stedi API
80
+
81
+ A single client routes each operation to the correct Stedi host automatically. This lets you use one client and one set of credentials for the entire SDK.
82
+
83
+ ```ts
84
+ import { Stedi } from "@stedi/sdk";
85
+
86
+ const client = new Stedi({ apiKey: { apiKey: process.env.STEDI_API_KEY! } });
87
+
88
+ // `claim` is a CreateProfessionalClaimSubmissionInput, as built in the Quickstart above.
89
+ await client.createProfessionalClaimSubmission(claim);
90
+ ```
91
+
92
+ ## Available operations
93
+
94
+ ### Claims
95
+
96
+ | Method | Description |
97
+ | --- | --- |
98
+ | `createProfessionalClaimSubmission` | Submit a professional claim in JSON modeled after the CMS-1500 form structure |
99
+ | `getClaim` | Retrieve summary information for a claim, including current processing status and key details from its most recent submission |
100
+ | `getClaimTimeline` | Retrieve a paginated list of a claim's timeline entries, newest first. Timeline entries include submissions, acknowledgments, and claim payment information |
101
+ | `getProfessionalClaimSubmission` | Retrieve a claim's data and map it to Stedi's CMS-1500 JSON format |
102
+ | `listClaims` | Retrieve a paginated list of claim records, newest first. Filter by status, patient control numbers, or submission time |
103
+ | `validateProfessionalClaimSubmission` | Validate a professional claim in the Stedi JSON format without submitting it |
104
+
105
+ ### Event Destinations
106
+
107
+ | Method | Description |
108
+ | --- | --- |
109
+ | `createEventDestination` | Creates an event destination. Returns destination details and a signing secret for verifying event payloads. |
110
+ | `deleteEventDestination` | Deletes an existing destination. This action is irreversible. Deleting a destination that is already deleted succeeds with the same response (idempotent). |
111
+ | `getEventDestination` | Retrieves details for an existing event destination. |
112
+ | `getEventDestinationEvent` | Retrieves the details of an existing event by its identifier. |
113
+ | `getEventDestinationSecret` | Retrieves the current signing secret for a destination. Use this secret to verify the authenticity of event payloads. |
114
+ | `listEventDestinationEvents` | Lists all events for your account. Results are paginated. |
115
+ | `listEventDestinations` | Lists all destinations configured for your account. Results are paginated. |
116
+ | `rotateEventDestinationSecret` | Rotates the signing secret for a destination. The previous secret remains valid for the period specified by `previousSecretExpiryHours` (or `0` for immediate invalidation) to allow for a graceful transition. |
117
+ | `updateEventDestination` | Updates an existing destination configuration. |
118
+
119
+ This list grows as Stedi releases more APIs through the SDK.
120
+
121
+ ## Configuration
122
+
123
+ Every client option goes in the same object as the credential:
12
124
 
13
125
  ```ts
14
- import { Stedi, Payers, Claims } from "@stedi/sdk";
15
-
16
- // `STEDI_API_KEY` is read from the environment automatically.
17
- const stedi = new Stedi();
18
-
19
- // Payers
20
- const payersResponse = await stedi.payers.send(
21
- new Payers.SearchPayersCommand({ query: "Aetna" }),
22
- );
23
-
24
- // Claims (production key required for submission)
25
- const claim = await stedi.claims.send(
26
- new Claims.ClaimsCms1500SubmissionCommand({
27
- carrier: { /* mode: "TEST", payerId: "STEDITEST", ... */ },
28
- /* insured, patient, signature, encounter, billing, serviceLines ... */
29
- }),
30
- );
126
+ import { Stedi } from "@stedi/sdk";
127
+
128
+ const client = new Stedi({
129
+ apiKey: { apiKey: process.env.STEDI_API_KEY! },
130
+ // Retry policy — the client defaults to 3 attempts.
131
+ maxAttempts: 4,
132
+ // A request has no time limit by default. Without `throwOnRequestTimeout`, exceeding the
133
+ // limit is logged as a warning and the request keeps going.
134
+ requestHandler: { requestTimeout: 30_000, throwOnRequestTimeout: true },
135
+ });
31
136
  ```
32
137
 
33
- Get an API key from [your Stedi account](https://www.stedi.com/app).
138
+ ## Error handling
34
139
 
35
- ## Errors
140
+ Stedi throws service errors as `StediServiceException`:
36
141
 
37
142
  ```ts
38
- import { Payers, Claims } from "@stedi/sdk";
143
+ import { StediServiceException } from "@stedi/sdk";
39
144
 
40
145
  try {
41
- await stedi.payers.send(new Payers.SearchPayersCommand({ query: "Aetna" }));
146
+ await client.createProfessionalClaimSubmission(claim);
42
147
  } catch (err) {
43
- if (err instanceof Payers.PayersServiceException) {
44
- console.error(err.name, err.$metadata.httpStatusCode, err.message);
148
+ if (err instanceof StediServiceException) {
149
+ console.error(`[${err.name}] ${err.$metadata.httpStatusCode}: ${err.message}`);
45
150
  }
46
151
  throw err;
47
152
  }
48
153
  ```
49
154
 
50
- ## More examples
155
+ ## Examples
51
156
 
52
- [github.com/Stedi/sdk/tree/main/examples/typescript](https://github.com/Stedi/sdk/tree/main/examples/typescript)
157
+ Access runnable, end-to-end examples for every operation in the
158
+ [`examples/`][examples] directory.
53
159
 
54
- ## Docs
160
+ ## Documentation & support
55
161
 
56
- - [docs.stedi.com](https://docs.stedi.com)
57
- - [Source](https://github.com/Stedi/sdk)
58
- - [Report an issue](https://github.com/Stedi/sdk/issues)
162
+ - Stedi documentation: [stedi.com/docs][docs]
163
+ - Issues: [github.com/Stedi/sdk/issues][issues]
59
164
 
60
165
  ## License
61
166
 
62
- Apache-2.0
167
+ [Apache-2.0][license]
168
+
169
+ <!-- Reference links — swap these in one place if URLs change. -->
170
+ [docs]: https://www.stedi.com/docs
171
+ [examples]: https://github.com/Stedi/sdk/tree/main/examples
172
+ [issues]: https://github.com/Stedi/sdk/issues
173
+ [license]: https://github.com/Stedi/sdk/blob/main/LICENSE
174
+ [nodejs]: https://nodejs.org/en/download
175
+ [openidclient]: https://github.com/panva/openid-client
176
+ [signup]: https://portal.stedi.com/auth/sign-up-intent
177
+ [apikeydocs]: https://www.stedi.com/docs/healthcare/api-reference#authentication
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Stedi = void 0;
4
+ const client_1 = require("@smithy/core/client");
5
+ const CreateEventDestinationCommand_1 = require("./commands/CreateEventDestinationCommand");
6
+ const CreateProfessionalClaimSubmissionCommand_1 = require("./commands/CreateProfessionalClaimSubmissionCommand");
7
+ const DeleteEventDestinationCommand_1 = require("./commands/DeleteEventDestinationCommand");
8
+ const GetClaimCommand_1 = require("./commands/GetClaimCommand");
9
+ const GetClaimTimelineCommand_1 = require("./commands/GetClaimTimelineCommand");
10
+ const GetEventDestinationCommand_1 = require("./commands/GetEventDestinationCommand");
11
+ const GetEventDestinationEventCommand_1 = require("./commands/GetEventDestinationEventCommand");
12
+ const GetEventDestinationSecretCommand_1 = require("./commands/GetEventDestinationSecretCommand");
13
+ const GetProfessionalClaimSubmissionCommand_1 = require("./commands/GetProfessionalClaimSubmissionCommand");
14
+ const ListClaimsCommand_1 = require("./commands/ListClaimsCommand");
15
+ const ListEventDestinationEventsCommand_1 = require("./commands/ListEventDestinationEventsCommand");
16
+ const ListEventDestinationsCommand_1 = require("./commands/ListEventDestinationsCommand");
17
+ const RotateEventDestinationSecretCommand_1 = require("./commands/RotateEventDestinationSecretCommand");
18
+ const UpdateEventDestinationCommand_1 = require("./commands/UpdateEventDestinationCommand");
19
+ const ValidateProfessionalClaimSubmissionCommand_1 = require("./commands/ValidateProfessionalClaimSubmissionCommand");
20
+ const GetClaimTimelinePaginator_1 = require("./pagination/GetClaimTimelinePaginator");
21
+ const ListClaimsPaginator_1 = require("./pagination/ListClaimsPaginator");
22
+ const ListEventDestinationEventsPaginator_1 = require("./pagination/ListEventDestinationEventsPaginator");
23
+ const ListEventDestinationsPaginator_1 = require("./pagination/ListEventDestinationsPaginator");
24
+ const StediClient_1 = require("./StediClient");
25
+ const commands = {
26
+ CreateProfessionalClaimSubmissionCommand: CreateProfessionalClaimSubmissionCommand_1.CreateProfessionalClaimSubmissionCommand,
27
+ GetProfessionalClaimSubmissionCommand: GetProfessionalClaimSubmissionCommand_1.GetProfessionalClaimSubmissionCommand,
28
+ ValidateProfessionalClaimSubmissionCommand: ValidateProfessionalClaimSubmissionCommand_1.ValidateProfessionalClaimSubmissionCommand,
29
+ GetClaimCommand: GetClaimCommand_1.GetClaimCommand,
30
+ GetClaimTimelineCommand: GetClaimTimelineCommand_1.GetClaimTimelineCommand,
31
+ ListClaimsCommand: ListClaimsCommand_1.ListClaimsCommand,
32
+ CreateEventDestinationCommand: CreateEventDestinationCommand_1.CreateEventDestinationCommand,
33
+ DeleteEventDestinationCommand: DeleteEventDestinationCommand_1.DeleteEventDestinationCommand,
34
+ GetEventDestinationCommand: GetEventDestinationCommand_1.GetEventDestinationCommand,
35
+ GetEventDestinationEventCommand: GetEventDestinationEventCommand_1.GetEventDestinationEventCommand,
36
+ GetEventDestinationSecretCommand: GetEventDestinationSecretCommand_1.GetEventDestinationSecretCommand,
37
+ ListEventDestinationEventsCommand: ListEventDestinationEventsCommand_1.ListEventDestinationEventsCommand,
38
+ ListEventDestinationsCommand: ListEventDestinationsCommand_1.ListEventDestinationsCommand,
39
+ RotateEventDestinationSecretCommand: RotateEventDestinationSecretCommand_1.RotateEventDestinationSecretCommand,
40
+ UpdateEventDestinationCommand: UpdateEventDestinationCommand_1.UpdateEventDestinationCommand,
41
+ };
42
+ const paginators = {
43
+ paginateGetClaimTimeline: GetClaimTimelinePaginator_1.paginateGetClaimTimeline,
44
+ paginateListClaims: ListClaimsPaginator_1.paginateListClaims,
45
+ paginateListEventDestinationEvents: ListEventDestinationEventsPaginator_1.paginateListEventDestinationEvents,
46
+ paginateListEventDestinations: ListEventDestinationsPaginator_1.paginateListEventDestinations,
47
+ };
48
+ class Stedi extends StediClient_1.StediClient {
49
+ }
50
+ exports.Stedi = Stedi;
51
+ (0, client_1.createAggregatedClient)(commands, Stedi, { paginators });
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StediClient = exports.__Client = void 0;
4
+ const client_1 = require("@aws-sdk/core/client");
5
+ const core_1 = require("@smithy/core");
6
+ const client_2 = require("@smithy/core/client");
7
+ Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return client_2.Client; } });
8
+ const endpoints_1 = require("@smithy/core/endpoints");
9
+ const protocols_1 = require("@smithy/core/protocols");
10
+ const retry_1 = require("@smithy/core/retry");
11
+ const schema_1 = require("@smithy/core/schema");
12
+ const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
13
+ const EndpointParameters_1 = require("./endpoint/EndpointParameters");
14
+ const stediUserAgentMiddleware_1 = require("./middleware/stediUserAgentMiddleware");
15
+ const runtimeConfig_1 = require("./runtimeConfig");
16
+ const runtimeExtensions_1 = require("./runtimeExtensions");
17
+ class StediClient extends client_2.Client {
18
+ config;
19
+ constructor(...[configuration]) {
20
+ const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
21
+ super(_config_0);
22
+ this.initConfig = _config_0;
23
+ const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
24
+ const _config_2 = (0, client_1.resolveUserAgentConfig)(_config_1);
25
+ const _config_3 = (0, retry_1.resolveRetryConfig)(_config_2);
26
+ const _config_4 = (0, client_1.resolveHostHeaderConfig)(_config_3);
27
+ const _config_5 = (0, endpoints_1.resolveEndpointConfig)(_config_4);
28
+ const _config_6 = (0, httpAuthSchemeProvider_1.resolveHttpAuthSchemeConfig)(_config_5);
29
+ const _config_7 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_6, configuration?.extensions || []);
30
+ this.config = _config_7;
31
+ this.middlewareStack.use((0, schema_1.getSchemaSerdePlugin)(this.config));
32
+ this.middlewareStack.use((0, client_1.getUserAgentPlugin)(this.config));
33
+ this.middlewareStack.use((0, stediUserAgentMiddleware_1.getStediUserAgentPlugin)(this.config));
34
+ this.middlewareStack.use((0, retry_1.getRetryPlugin)(this.config));
35
+ this.middlewareStack.use((0, protocols_1.getContentLengthPlugin)(this.config));
36
+ this.middlewareStack.use((0, client_1.getHostHeaderPlugin)(this.config));
37
+ this.middlewareStack.use((0, client_1.getLoggerPlugin)(this.config));
38
+ this.middlewareStack.use((0, client_1.getRecursionDetectionPlugin)(this.config));
39
+ this.middlewareStack.use((0, core_1.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
40
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider_1.defaultStediHttpAuthSchemeParametersProvider,
41
+ identityProviderConfigProvider: async (config) => new core_1.DefaultIdentityProviderConfig({
42
+ "smithy.api#httpApiKeyAuth": config.apiKey,
43
+ "smithy.api#httpBearerAuth": config.token,
44
+ }),
45
+ }));
46
+ this.middlewareStack.use((0, core_1.getHttpSigningPlugin)(this.config));
47
+ }
48
+ destroy() {
49
+ super.destroy();
50
+ }
51
+ }
52
+ exports.StediClient = StediClient;
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveHttpAuthRuntimeConfig = exports.getHttpAuthExtensionConfiguration = void 0;
4
- /**
5
- * @internal
6
- */
7
4
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
8
5
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
9
6
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
10
7
  let _apiKey = runtimeConfig.apiKey;
8
+ let _token = runtimeConfig.token;
11
9
  return {
12
10
  setHttpAuthScheme(httpAuthScheme) {
13
11
  const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
@@ -33,18 +31,21 @@ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
33
31
  apiKey() {
34
32
  return _apiKey;
35
33
  },
34
+ setToken(token) {
35
+ _token = token;
36
+ },
37
+ token() {
38
+ return _token;
39
+ },
36
40
  };
37
41
  };
38
42
  exports.getHttpAuthExtensionConfiguration = getHttpAuthExtensionConfiguration;
39
- /**
40
- * @internal
41
- */
42
43
  const resolveHttpAuthRuntimeConfig = (config) => {
43
44
  return {
44
45
  httpAuthSchemes: config.httpAuthSchemes(),
45
46
  httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
46
47
  apiKey: config.apiKey(),
48
+ token: config.token(),
47
49
  };
48
50
  };
49
51
  exports.resolveHttpAuthRuntimeConfig = resolveHttpAuthRuntimeConfig;
50
- //# sourceMappingURL=httpAuthExtensionConfiguration.js.map
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveHttpAuthSchemeConfig = exports.defaultStediHttpAuthSchemeProvider = exports.defaultStediHttpAuthSchemeParametersProvider = void 0;
4
+ const core_1 = require("@smithy/core");
5
+ const client_1 = require("@smithy/core/client");
6
+ const types_1 = require("@smithy/types");
7
+ const defaultStediHttpAuthSchemeParametersProvider = async (config, context, input) => {
8
+ return {
9
+ operation: (0, client_1.getSmithyContext)(context).operation,
10
+ };
11
+ };
12
+ exports.defaultStediHttpAuthSchemeParametersProvider = defaultStediHttpAuthSchemeParametersProvider;
13
+ function createSmithyApiHttpApiKeyAuthHttpAuthOption(authParameters) {
14
+ return {
15
+ schemeId: "smithy.api#httpApiKeyAuth",
16
+ signingProperties: {
17
+ name: "Authorization",
18
+ in: types_1.HttpApiKeyAuthLocation.HEADER,
19
+ scheme: "Key",
20
+ },
21
+ };
22
+ }
23
+ function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
24
+ return {
25
+ schemeId: "smithy.api#httpBearerAuth",
26
+ };
27
+ }
28
+ const defaultStediHttpAuthSchemeProvider = (authParameters) => {
29
+ const options = [];
30
+ switch (authParameters.operation) {
31
+ default: {
32
+ options.push(createSmithyApiHttpApiKeyAuthHttpAuthOption(authParameters));
33
+ options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
34
+ }
35
+ }
36
+ return options;
37
+ };
38
+ exports.defaultStediHttpAuthSchemeProvider = defaultStediHttpAuthSchemeProvider;
39
+ const resolveHttpAuthSchemeConfig = (config) => {
40
+ const apiKey = (0, core_1.memoizeIdentityProvider)(config.apiKey, core_1.isIdentityExpired, core_1.doesIdentityRequireRefresh);
41
+ const token = (0, core_1.memoizeIdentityProvider)(config.token, core_1.isIdentityExpired, core_1.doesIdentityRequireRefresh);
42
+ return Object.assign(config, {
43
+ authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
44
+ apiKey,
45
+ token,
46
+ });
47
+ };
48
+ exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports._mw0 = exports._ep1 = exports._ep0 = exports.command = void 0;
4
+ const client_1 = require("@smithy/core/client");
5
+ const endpoints_1 = require("@smithy/core/endpoints");
6
+ const EndpointParameters_1 = require("./endpoint/EndpointParameters");
7
+ exports.command = (0, client_1.makeBuilder)(EndpointParameters_1.commonParams, "Stedi", "StediClient", endpoints_1.getEndpointPlugin);
8
+ exports._ep0 = {
9
+ ServiceComponent: { type: "staticContextParams", value: `EventsService` },
10
+ };
11
+ exports._ep1 = {
12
+ ServiceComponent: { type: "staticContextParams", value: `SdkClaimsService` },
13
+ };
14
+ const _mw0 = (Command, cs, config, o) => [];
15
+ exports._mw0 = _mw0;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateEventDestinationCommand = void 0;
4
+ const commandBuilder_1 = require("../commandBuilder");
5
+ const schemas_0_1 = require("../schemas/schemas_0");
6
+ class CreateEventDestinationCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "CreateEventDestination", schemas_0_1.CreateEventDestination$) {
7
+ }
8
+ exports.CreateEventDestinationCommand = CreateEventDestinationCommand;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateProfessionalClaimSubmissionCommand = void 0;
4
+ const commandBuilder_1 = require("../commandBuilder");
5
+ const schemas_0_1 = require("../schemas/schemas_0");
6
+ class CreateProfessionalClaimSubmissionCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep1, commandBuilder_1._mw0, "CreateProfessionalClaimSubmission", schemas_0_1.CreateProfessionalClaimSubmission$) {
7
+ }
8
+ exports.CreateProfessionalClaimSubmissionCommand = CreateProfessionalClaimSubmissionCommand;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteEventDestinationCommand = void 0;
4
+ const commandBuilder_1 = require("../commandBuilder");
5
+ const schemas_0_1 = require("../schemas/schemas_0");
6
+ class DeleteEventDestinationCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "DeleteEventDestination", schemas_0_1.DeleteEventDestination$) {
7
+ }
8
+ exports.DeleteEventDestinationCommand = DeleteEventDestinationCommand;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetClaimCommand = void 0;
4
+ const commandBuilder_1 = require("../commandBuilder");
5
+ const schemas_0_1 = require("../schemas/schemas_0");
6
+ class GetClaimCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep1, commandBuilder_1._mw0, "GetClaim", schemas_0_1.GetClaim$) {
7
+ }
8
+ exports.GetClaimCommand = GetClaimCommand;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetClaimTimelineCommand = void 0;
4
+ const commandBuilder_1 = require("../commandBuilder");
5
+ const schemas_0_1 = require("../schemas/schemas_0");
6
+ class GetClaimTimelineCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep1, commandBuilder_1._mw0, "GetClaimTimeline", schemas_0_1.GetClaimTimeline$) {
7
+ }
8
+ exports.GetClaimTimelineCommand = GetClaimTimelineCommand;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetEventDestinationCommand = void 0;
4
+ const commandBuilder_1 = require("../commandBuilder");
5
+ const schemas_0_1 = require("../schemas/schemas_0");
6
+ class GetEventDestinationCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "GetEventDestination", schemas_0_1.GetEventDestination$) {
7
+ }
8
+ exports.GetEventDestinationCommand = GetEventDestinationCommand;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetEventDestinationEventCommand = void 0;
4
+ const commandBuilder_1 = require("../commandBuilder");
5
+ const schemas_0_1 = require("../schemas/schemas_0");
6
+ class GetEventDestinationEventCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "GetEventDestinationEvent", schemas_0_1.GetEventDestinationEvent$) {
7
+ }
8
+ exports.GetEventDestinationEventCommand = GetEventDestinationEventCommand;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetEventDestinationSecretCommand = void 0;
4
+ const commandBuilder_1 = require("../commandBuilder");
5
+ const schemas_0_1 = require("../schemas/schemas_0");
6
+ class GetEventDestinationSecretCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "GetEventDestinationSecret", schemas_0_1.GetEventDestinationSecret$) {
7
+ }
8
+ exports.GetEventDestinationSecretCommand = GetEventDestinationSecretCommand;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetProfessionalClaimSubmissionCommand = void 0;
4
+ const commandBuilder_1 = require("../commandBuilder");
5
+ const schemas_0_1 = require("../schemas/schemas_0");
6
+ class GetProfessionalClaimSubmissionCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep1, commandBuilder_1._mw0, "GetProfessionalClaimSubmission", schemas_0_1.GetProfessionalClaimSubmission$) {
7
+ }
8
+ exports.GetProfessionalClaimSubmissionCommand = GetProfessionalClaimSubmissionCommand;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListClaimsCommand = void 0;
4
+ const commandBuilder_1 = require("../commandBuilder");
5
+ const schemas_0_1 = require("../schemas/schemas_0");
6
+ class ListClaimsCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep1, commandBuilder_1._mw0, "ListClaims", schemas_0_1.ListClaims$) {
7
+ }
8
+ exports.ListClaimsCommand = ListClaimsCommand;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListEventDestinationEventsCommand = void 0;
4
+ const commandBuilder_1 = require("../commandBuilder");
5
+ const schemas_0_1 = require("../schemas/schemas_0");
6
+ class ListEventDestinationEventsCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "ListEventDestinationEvents", schemas_0_1.ListEventDestinationEvents$) {
7
+ }
8
+ exports.ListEventDestinationEventsCommand = ListEventDestinationEventsCommand;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListEventDestinationsCommand = void 0;
4
+ const commandBuilder_1 = require("../commandBuilder");
5
+ const schemas_0_1 = require("../schemas/schemas_0");
6
+ class ListEventDestinationsCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "ListEventDestinations", schemas_0_1.ListEventDestinations$) {
7
+ }
8
+ exports.ListEventDestinationsCommand = ListEventDestinationsCommand;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RotateEventDestinationSecretCommand = void 0;
4
+ const commandBuilder_1 = require("../commandBuilder");
5
+ const schemas_0_1 = require("../schemas/schemas_0");
6
+ class RotateEventDestinationSecretCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "RotateEventDestinationSecret", schemas_0_1.RotateEventDestinationSecret$) {
7
+ }
8
+ exports.RotateEventDestinationSecretCommand = RotateEventDestinationSecretCommand;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateEventDestinationCommand = void 0;
4
+ const commandBuilder_1 = require("../commandBuilder");
5
+ const schemas_0_1 = require("../schemas/schemas_0");
6
+ class UpdateEventDestinationCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep0, commandBuilder_1._mw0, "UpdateEventDestination", schemas_0_1.UpdateEventDestination$) {
7
+ }
8
+ exports.UpdateEventDestinationCommand = UpdateEventDestinationCommand;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidateProfessionalClaimSubmissionCommand = void 0;
4
+ const commandBuilder_1 = require("../commandBuilder");
5
+ const schemas_0_1 = require("../schemas/schemas_0");
6
+ class ValidateProfessionalClaimSubmissionCommand extends (0, commandBuilder_1.command)(commandBuilder_1._ep1, commandBuilder_1._mw0, "ValidateProfessionalClaimSubmission", schemas_0_1.ValidateProfessionalClaimSubmission$) {
7
+ }
8
+ exports.ValidateProfessionalClaimSubmissionCommand = ValidateProfessionalClaimSubmissionCommand;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CreateEventDestinationCommand"), exports);
5
+ tslib_1.__exportStar(require("./CreateProfessionalClaimSubmissionCommand"), exports);
6
+ tslib_1.__exportStar(require("./DeleteEventDestinationCommand"), exports);
7
+ tslib_1.__exportStar(require("./GetClaimCommand"), exports);
8
+ tslib_1.__exportStar(require("./GetClaimTimelineCommand"), exports);
9
+ tslib_1.__exportStar(require("./GetEventDestinationCommand"), exports);
10
+ tslib_1.__exportStar(require("./GetEventDestinationEventCommand"), exports);
11
+ tslib_1.__exportStar(require("./GetEventDestinationSecretCommand"), exports);
12
+ tslib_1.__exportStar(require("./GetProfessionalClaimSubmissionCommand"), exports);
13
+ tslib_1.__exportStar(require("./ListClaimsCommand"), exports);
14
+ tslib_1.__exportStar(require("./ListEventDestinationEventsCommand"), exports);
15
+ tslib_1.__exportStar(require("./ListEventDestinationsCommand"), exports);
16
+ tslib_1.__exportStar(require("./RotateEventDestinationSecretCommand"), exports);
17
+ tslib_1.__exportStar(require("./UpdateEventDestinationCommand"), exports);
18
+ tslib_1.__exportStar(require("./ValidateProfessionalClaimSubmissionCommand"), exports);