@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
@@ -0,0 +1,47 @@
1
+ import { createAggregatedClient } from "@smithy/core/client";
2
+ import { CreateEventDestinationCommand, } from "./commands/CreateEventDestinationCommand";
3
+ import { CreateProfessionalClaimSubmissionCommand, } from "./commands/CreateProfessionalClaimSubmissionCommand";
4
+ import { DeleteEventDestinationCommand, } from "./commands/DeleteEventDestinationCommand";
5
+ import { GetClaimCommand } from "./commands/GetClaimCommand";
6
+ import { GetClaimTimelineCommand, } from "./commands/GetClaimTimelineCommand";
7
+ import { GetEventDestinationCommand, } from "./commands/GetEventDestinationCommand";
8
+ import { GetEventDestinationEventCommand, } from "./commands/GetEventDestinationEventCommand";
9
+ import { GetEventDestinationSecretCommand, } from "./commands/GetEventDestinationSecretCommand";
10
+ import { GetProfessionalClaimSubmissionCommand, } from "./commands/GetProfessionalClaimSubmissionCommand";
11
+ import { ListClaimsCommand, } from "./commands/ListClaimsCommand";
12
+ import { ListEventDestinationEventsCommand, } from "./commands/ListEventDestinationEventsCommand";
13
+ import { ListEventDestinationsCommand, } from "./commands/ListEventDestinationsCommand";
14
+ import { RotateEventDestinationSecretCommand, } from "./commands/RotateEventDestinationSecretCommand";
15
+ import { UpdateEventDestinationCommand, } from "./commands/UpdateEventDestinationCommand";
16
+ import { ValidateProfessionalClaimSubmissionCommand, } from "./commands/ValidateProfessionalClaimSubmissionCommand";
17
+ import { paginateGetClaimTimeline } from "./pagination/GetClaimTimelinePaginator";
18
+ import { paginateListClaims } from "./pagination/ListClaimsPaginator";
19
+ import { paginateListEventDestinationEvents } from "./pagination/ListEventDestinationEventsPaginator";
20
+ import { paginateListEventDestinations } from "./pagination/ListEventDestinationsPaginator";
21
+ import { StediClient } from "./StediClient";
22
+ const commands = {
23
+ CreateProfessionalClaimSubmissionCommand,
24
+ GetProfessionalClaimSubmissionCommand,
25
+ ValidateProfessionalClaimSubmissionCommand,
26
+ GetClaimCommand,
27
+ GetClaimTimelineCommand,
28
+ ListClaimsCommand,
29
+ CreateEventDestinationCommand,
30
+ DeleteEventDestinationCommand,
31
+ GetEventDestinationCommand,
32
+ GetEventDestinationEventCommand,
33
+ GetEventDestinationSecretCommand,
34
+ ListEventDestinationEventsCommand,
35
+ ListEventDestinationsCommand,
36
+ RotateEventDestinationSecretCommand,
37
+ UpdateEventDestinationCommand,
38
+ };
39
+ const paginators = {
40
+ paginateGetClaimTimeline,
41
+ paginateListClaims,
42
+ paginateListEventDestinationEvents,
43
+ paginateListEventDestinations,
44
+ };
45
+ export class Stedi extends StediClient {
46
+ }
47
+ createAggregatedClient(commands, Stedi, { paginators });
@@ -0,0 +1,48 @@
1
+ import { getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, getUserAgentPlugin, resolveHostHeaderConfig, resolveUserAgentConfig, } from "@aws-sdk/core/client";
2
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
3
+ import { Client as __Client, } from "@smithy/core/client";
4
+ import { resolveEndpointConfig } from "@smithy/core/endpoints";
5
+ import { getContentLengthPlugin } from "@smithy/core/protocols";
6
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
8
+ import { defaultStediHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
9
+ import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
10
+ import { getStediUserAgentPlugin } from "./middleware/stediUserAgentMiddleware";
11
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
+ import { resolveRuntimeExtensions } from "./runtimeExtensions";
13
+ export { __Client };
14
+ export class StediClient extends __Client {
15
+ config;
16
+ constructor(...[configuration]) {
17
+ const _config_0 = __getRuntimeConfig(configuration || {});
18
+ super(_config_0);
19
+ this.initConfig = _config_0;
20
+ const _config_1 = resolveClientEndpointParameters(_config_0);
21
+ const _config_2 = resolveUserAgentConfig(_config_1);
22
+ const _config_3 = resolveRetryConfig(_config_2);
23
+ const _config_4 = resolveHostHeaderConfig(_config_3);
24
+ const _config_5 = resolveEndpointConfig(_config_4);
25
+ const _config_6 = resolveHttpAuthSchemeConfig(_config_5);
26
+ const _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []);
27
+ this.config = _config_7;
28
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
29
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
30
+ this.middlewareStack.use(getStediUserAgentPlugin(this.config));
31
+ this.middlewareStack.use(getRetryPlugin(this.config));
32
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
33
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
34
+ this.middlewareStack.use(getLoggerPlugin(this.config));
35
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
36
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
37
+ httpAuthSchemeParametersProvider: defaultStediHttpAuthSchemeParametersProvider,
38
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
39
+ "smithy.api#httpApiKeyAuth": config.apiKey,
40
+ "smithy.api#httpBearerAuth": config.token,
41
+ }),
42
+ }));
43
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
44
+ }
45
+ destroy() {
46
+ super.destroy();
47
+ }
48
+ }
@@ -1,10 +1,8 @@
1
- /**
2
- * @internal
3
- */
4
1
  export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
5
2
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
6
3
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
7
4
  let _apiKey = runtimeConfig.apiKey;
5
+ let _token = runtimeConfig.token;
8
6
  return {
9
7
  setHttpAuthScheme(httpAuthScheme) {
10
8
  const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
@@ -30,16 +28,19 @@ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
30
28
  apiKey() {
31
29
  return _apiKey;
32
30
  },
31
+ setToken(token) {
32
+ _token = token;
33
+ },
34
+ token() {
35
+ return _token;
36
+ },
33
37
  };
34
38
  };
35
- /**
36
- * @internal
37
- */
38
39
  export const resolveHttpAuthRuntimeConfig = (config) => {
39
40
  return {
40
41
  httpAuthSchemes: config.httpAuthSchemes(),
41
42
  httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
42
43
  apiKey: config.apiKey(),
44
+ token: config.token(),
43
45
  };
44
46
  };
45
- //# sourceMappingURL=httpAuthExtensionConfiguration.js.map
@@ -1,11 +1,7 @@
1
- // smithy-typescript generated code
2
1
  import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core";
2
+ import { getSmithyContext, normalizeProvider } from "@smithy/core/client";
3
3
  import { HttpApiKeyAuthLocation, } from "@smithy/types";
4
- import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
5
- /**
6
- * @internal
7
- */
8
- export const defaultPayersHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
+ export const defaultStediHttpAuthSchemeParametersProvider = async (config, context, input) => {
9
5
  return {
10
6
  operation: getSmithyContext(context).operation,
11
7
  };
@@ -20,26 +16,27 @@ function createSmithyApiHttpApiKeyAuthHttpAuthOption(authParameters) {
20
16
  },
21
17
  };
22
18
  }
23
- /**
24
- * @internal
25
- */
26
- export const defaultPayersHttpAuthSchemeProvider = (authParameters) => {
19
+ function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters) {
20
+ return {
21
+ schemeId: "smithy.api#httpBearerAuth",
22
+ };
23
+ }
24
+ export const defaultStediHttpAuthSchemeProvider = (authParameters) => {
27
25
  const options = [];
28
26
  switch (authParameters.operation) {
29
27
  default: {
30
28
  options.push(createSmithyApiHttpApiKeyAuthHttpAuthOption(authParameters));
29
+ options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
31
30
  }
32
31
  }
33
32
  return options;
34
33
  };
35
- /**
36
- * @internal
37
- */
38
34
  export const resolveHttpAuthSchemeConfig = (config) => {
39
35
  const apiKey = memoizeIdentityProvider(config.apiKey, isIdentityExpired, doesIdentityRequireRefresh);
36
+ const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh);
40
37
  return Object.assign(config, {
41
38
  authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
42
39
  apiKey,
40
+ token,
43
41
  });
44
42
  };
45
- //# sourceMappingURL=httpAuthSchemeProvider.js.map
@@ -0,0 +1,11 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "Stedi", "StediClient", getEndpointPlugin);
5
+ export const _ep0 = {
6
+ ServiceComponent: { type: "staticContextParams", value: `EventsService` },
7
+ };
8
+ export const _ep1 = {
9
+ ServiceComponent: { type: "staticContextParams", value: `SdkClaimsService` },
10
+ };
11
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { CreateEventDestination$ } from "../schemas/schemas_0";
3
+ export class CreateEventDestinationCommand extends command(_ep0, _mw0, "CreateEventDestination", CreateEventDestination$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { CreateProfessionalClaimSubmission$ } from "../schemas/schemas_0";
3
+ export class CreateProfessionalClaimSubmissionCommand extends command(_ep1, _mw0, "CreateProfessionalClaimSubmission", CreateProfessionalClaimSubmission$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { DeleteEventDestination$ } from "../schemas/schemas_0";
3
+ export class DeleteEventDestinationCommand extends command(_ep0, _mw0, "DeleteEventDestination", DeleteEventDestination$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { GetClaim$ } from "../schemas/schemas_0";
3
+ export class GetClaimCommand extends command(_ep1, _mw0, "GetClaim", GetClaim$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { GetClaimTimeline$ } from "../schemas/schemas_0";
3
+ export class GetClaimTimelineCommand extends command(_ep1, _mw0, "GetClaimTimeline", GetClaimTimeline$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetEventDestination$ } from "../schemas/schemas_0";
3
+ export class GetEventDestinationCommand extends command(_ep0, _mw0, "GetEventDestination", GetEventDestination$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetEventDestinationEvent$ } from "../schemas/schemas_0";
3
+ export class GetEventDestinationEventCommand extends command(_ep0, _mw0, "GetEventDestinationEvent", GetEventDestinationEvent$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetEventDestinationSecret$ } from "../schemas/schemas_0";
3
+ export class GetEventDestinationSecretCommand extends command(_ep0, _mw0, "GetEventDestinationSecret", GetEventDestinationSecret$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { GetProfessionalClaimSubmission$ } from "../schemas/schemas_0";
3
+ export class GetProfessionalClaimSubmissionCommand extends command(_ep1, _mw0, "GetProfessionalClaimSubmission", GetProfessionalClaimSubmission$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { ListClaims$ } from "../schemas/schemas_0";
3
+ export class ListClaimsCommand extends command(_ep1, _mw0, "ListClaims", ListClaims$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListEventDestinationEvents$ } from "../schemas/schemas_0";
3
+ export class ListEventDestinationEventsCommand extends command(_ep0, _mw0, "ListEventDestinationEvents", ListEventDestinationEvents$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { ListEventDestinations$ } from "../schemas/schemas_0";
3
+ export class ListEventDestinationsCommand extends command(_ep0, _mw0, "ListEventDestinations", ListEventDestinations$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { RotateEventDestinationSecret$ } from "../schemas/schemas_0";
3
+ export class RotateEventDestinationSecretCommand extends command(_ep0, _mw0, "RotateEventDestinationSecret", RotateEventDestinationSecret$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { UpdateEventDestination$ } from "../schemas/schemas_0";
3
+ export class UpdateEventDestinationCommand extends command(_ep0, _mw0, "UpdateEventDestination", UpdateEventDestination$) {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { _ep1, _mw0, command } from "../commandBuilder";
2
+ import { ValidateProfessionalClaimSubmission$ } from "../schemas/schemas_0";
3
+ export class ValidateProfessionalClaimSubmissionCommand extends command(_ep1, _mw0, "ValidateProfessionalClaimSubmission", ValidateProfessionalClaimSubmission$) {
4
+ }
@@ -0,0 +1,15 @@
1
+ export * from "./CreateEventDestinationCommand";
2
+ export * from "./CreateProfessionalClaimSubmissionCommand";
3
+ export * from "./DeleteEventDestinationCommand";
4
+ export * from "./GetClaimCommand";
5
+ export * from "./GetClaimTimelineCommand";
6
+ export * from "./GetEventDestinationCommand";
7
+ export * from "./GetEventDestinationEventCommand";
8
+ export * from "./GetEventDestinationSecretCommand";
9
+ export * from "./GetProfessionalClaimSubmissionCommand";
10
+ export * from "./ListClaimsCommand";
11
+ export * from "./ListEventDestinationEventsCommand";
12
+ export * from "./ListEventDestinationsCommand";
13
+ export * from "./RotateEventDestinationSecretCommand";
14
+ export * from "./UpdateEventDestinationCommand";
15
+ export * from "./ValidateProfessionalClaimSubmissionCommand";
@@ -1,15 +1,8 @@
1
- /**
2
- * @internal
3
- */
4
1
  export const resolveClientEndpointParameters = (options) => {
5
2
  return Object.assign(options, {
6
- defaultSigningName: "payers",
3
+ defaultSigningName: "",
7
4
  });
8
5
  };
9
- /**
10
- * @internal
11
- */
12
6
  export const commonParams = {
13
7
  Endpoint: { type: "builtInParams", name: "endpoint" },
14
8
  };
15
- //# sourceMappingURL=EndpointParameters.js.map
@@ -0,0 +1,25 @@
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
+ const a = "stringEquals", b = { "ref": "Endpoint" }, c = { "ref": "ServiceComponent" };
3
+ const _data = {
4
+ conditions: [
5
+ ["isSet", [b]],
6
+ [a, [c, "EventsService"]],
7
+ [a, [c, "SdkClaimsService"]]
8
+ ],
9
+ results: [
10
+ [-1],
11
+ [b, {}],
12
+ ["https://events.us.stedi.com", {}],
13
+ ["https://claims.us.stedi.com", {}],
14
+ [-1, "Unknown ServiceComponent"]
15
+ ]
16
+ };
17
+ const root = 2;
18
+ const r = 100_000_000;
19
+ const nodes = new Int32Array([
20
+ -1, 1, -1,
21
+ 0, r + 1, 3,
22
+ 1, r + 2, 4,
23
+ 2, r + 3, r + 4,
24
+ ]);
25
+ export const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -0,0 +1,12 @@
1
+ import { decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
2
+ import { bdd } from "./bdd";
3
+ const cache = new EndpointCache({
4
+ size: 50,
5
+ params: ["Endpoint", "ServiceComponent"],
6
+ });
7
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
8
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
9
+ endpointParams: endpointParams,
10
+ logger: context.logger,
11
+ }));
12
+ };
@@ -0,0 +1 @@
1
+ export {};
package/dist-es/index.js CHANGED
@@ -1,37 +1,10 @@
1
- // The Stedi SDK — primary entry point for all Stedi APIs.
2
- import { PayersClient } from "./generated/payers/PayersClient";
3
- import { ClaimsClient } from "./generated/claims/ClaimsClient";
4
- function resolveApiKey(input) {
5
- if (typeof input === "string")
6
- return { apiKey: input };
7
- if (input && typeof input === "object" && input.apiKey)
8
- return input;
9
- const envKey = typeof process !== "undefined" ? process.env["STEDI_API_KEY"] : undefined;
10
- if (!envKey) {
11
- throw new Error("Stedi API key required. Pass `apiKey` to `new Stedi({ apiKey })` or set `STEDI_API_KEY` in the environment.");
12
- }
13
- return { apiKey: envKey };
14
- }
15
- export class Stedi {
16
- payers;
17
- claims;
18
- constructor(config = {}) {
19
- const apiKey = resolveApiKey(config.apiKey);
20
- const region = config.region ?? "us-east-1";
21
- this.payers = new PayersClient({ apiKey, region });
22
- this.claims = new ClaimsClient({ apiKey, region });
23
- }
24
- /**
25
- * Free underlying HTTP transports. Optional in short-lived scripts;
26
- * recommended in long-running processes.
27
- */
28
- destroy() {
29
- this.payers.destroy();
30
- this.claims.destroy();
31
- }
32
- }
33
- // Per-product namespaces — `Payers.SearchPayersCommand`, `Claims.ClaimsCms1500SubmissionCommand`, etc.
34
- export * as Payers from "./generated/payers/index";
35
- export * as Claims from "./generated/claims/index";
36
- export const VERSION = "0.0.4";
37
- //# sourceMappingURL=index.js.map
1
+ export * from "./StediClient";
2
+ export * from "./Stedi";
3
+ export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
5
+ export * from "./schemas/schemas_0";
6
+ export * from "./pagination";
7
+ export * from "./models/enums";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
10
+ export { StediServiceException } from "./models/StediServiceException";
@@ -0,0 +1,20 @@
1
+ import packageInfo from "../../package.json";
2
+ import { HttpRequest } from "@smithy/protocol-http";
3
+ export function getStediUserAgentPlugin(config) {
4
+ return {
5
+ applyToStack: (stack) => {
6
+ stack.addRelativeTo((next) => async (args) => {
7
+ if (HttpRequest.isInstance(args.request)) {
8
+ const runtime = config.runtime ?? "unknown";
9
+ const onNode = runtime === "node" && typeof process !== "undefined" && !!process.versions?.node;
10
+ const runtimeTag = onNode ? `node/${process.versions.node}` : runtime;
11
+ const stediAgent = `stedi-sdk-typescript/${packageInfo.version} ${runtimeTag}`;
12
+ args.request.headers["stedi-agent"] = stediAgent;
13
+ args.request.headers["user-agent"] = stediAgent;
14
+ delete args.request.headers["x-amz-user-agent"];
15
+ }
16
+ return next(args);
17
+ }, { relation: "after", toMiddleware: "getUserAgentMiddleware", name: "stediUserAgentMiddleware", override: true });
18
+ },
19
+ };
20
+ }
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
+ export { __ServiceException };
3
+ export class StediServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, StediServiceException.prototype);
7
+ }
8
+ }