@greensecurity/javascript-sdk 0.18.2 → 0.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. package/REACT_QUERY.md +15 -15
  2. package/README.md +96 -9
  3. package/bin/mcp-server.js +1945 -233
  4. package/bin/mcp-server.js.map +67 -39
  5. package/funcs/organizationsListOrSearchFacilities.d.ts +2 -1
  6. package/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
  7. package/funcs/organizationsListOrSearchFacilities.js +3 -2
  8. package/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  9. package/funcs/vendorScansVendorScanOut.d.ts +17 -0
  10. package/funcs/vendorScansVendorScanOut.d.ts.map +1 -0
  11. package/funcs/vendorScansVendorScanOut.js +120 -0
  12. package/funcs/vendorScansVendorScanOut.js.map +1 -0
  13. package/funcs/vendorsGetVendorsDetails.d.ts +32 -0
  14. package/funcs/vendorsGetVendorsDetails.d.ts.map +1 -0
  15. package/funcs/vendorsGetVendorsDetails.js +139 -0
  16. package/funcs/vendorsGetVendorsDetails.js.map +1 -0
  17. package/funcs/vendorsListVendorCredentials.d.ts +4 -1
  18. package/funcs/vendorsListVendorCredentials.d.ts.map +1 -1
  19. package/funcs/vendorsListVendorCredentials.js +46 -6
  20. package/funcs/vendorsListVendorCredentials.js.map +1 -1
  21. package/funcs/vendorsListVendorFacilityStatuses.d.ts +20 -0
  22. package/funcs/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
  23. package/funcs/vendorsListVendorFacilityStatuses.js +155 -0
  24. package/funcs/vendorsListVendorFacilityStatuses.js.map +1 -0
  25. package/funcs/vendorsListVendorJobTitles.d.ts +1 -1
  26. package/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
  27. package/funcs/vendorsListVendorJobTitles.js +21 -6
  28. package/funcs/vendorsListVendorJobTitles.js.map +1 -1
  29. package/funcs/vendorsListVendorScrubDetails.d.ts +18 -0
  30. package/funcs/vendorsListVendorScrubDetails.d.ts.map +1 -0
  31. package/funcs/vendorsListVendorScrubDetails.js +121 -0
  32. package/funcs/vendorsListVendorScrubDetails.js.map +1 -0
  33. package/funcs/vendorsListVendorScrubPurchases.d.ts +20 -0
  34. package/funcs/vendorsListVendorScrubPurchases.d.ts.map +1 -0
  35. package/funcs/vendorsListVendorScrubPurchases.js +160 -0
  36. package/funcs/vendorsListVendorScrubPurchases.js.map +1 -0
  37. package/funcs/webhooksGetWebhookEndpoint.d.ts +18 -0
  38. package/funcs/webhooksGetWebhookEndpoint.d.ts.map +1 -0
  39. package/funcs/webhooksGetWebhookEndpoint.js +121 -0
  40. package/funcs/webhooksGetWebhookEndpoint.js.map +1 -0
  41. package/funcs/webhooksListAllWebhookEndpoints.d.ts +17 -0
  42. package/funcs/webhooksListAllWebhookEndpoints.d.ts.map +1 -0
  43. package/funcs/webhooksListAllWebhookEndpoints.js +121 -0
  44. package/funcs/webhooksListAllWebhookEndpoints.js.map +1 -0
  45. package/jsr.json +1 -1
  46. package/lib/config.d.ts +3 -3
  47. package/lib/config.js +3 -3
  48. package/lib/sdks.d.ts.map +1 -1
  49. package/lib/sdks.js +2 -8
  50. package/lib/sdks.js.map +1 -1
  51. package/lib/security.d.ts +4 -3
  52. package/lib/security.d.ts.map +1 -1
  53. package/lib/security.js +6 -1
  54. package/lib/security.js.map +1 -1
  55. package/mcp-server/extensions.d.ts +2 -0
  56. package/mcp-server/extensions.d.ts.map +1 -1
  57. package/mcp-server/mcp-server.js +1 -1
  58. package/mcp-server/prompts.d.ts +26 -0
  59. package/mcp-server/prompts.d.ts.map +1 -0
  60. package/mcp-server/prompts.js +47 -0
  61. package/mcp-server/prompts.js.map +1 -0
  62. package/mcp-server/resources.d.ts.map +1 -1
  63. package/mcp-server/resources.js +1 -0
  64. package/mcp-server/resources.js.map +1 -1
  65. package/mcp-server/server.d.ts.map +1 -1
  66. package/mcp-server/server.js +18 -4
  67. package/mcp-server/server.js.map +1 -1
  68. package/mcp-server/tools/organizationsGetFacility.js +1 -1
  69. package/mcp-server/tools/organizationsListOrSearchFacilities.js +1 -1
  70. package/mcp-server/tools/supportArticlesGetSupportArticle.js +1 -1
  71. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js +1 -1
  72. package/mcp-server/tools/usersGetCurrentUser.js +1 -1
  73. package/mcp-server/tools/usersGetUserById.js +1 -1
  74. package/mcp-server/tools/usersLogsUserIntoTheSystem.js +1 -1
  75. package/mcp-server/tools/usersMagiclink.js +1 -1
  76. package/mcp-server/tools/usersPassword.js +1 -1
  77. package/mcp-server/tools/usersPasswordResetRequest.js +1 -1
  78. package/mcp-server/tools/vendorScansVendorScanOut.d.ts +8 -0
  79. package/mcp-server/tools/vendorScansVendorScanOut.d.ts.map +1 -0
  80. package/mcp-server/tools/{userPasswordResetRequest.js → vendorScansVendorScanOut.js} +9 -9
  81. package/mcp-server/tools/{userPasswordResetRequest.js.map → vendorScansVendorScanOut.js.map} +1 -1
  82. package/mcp-server/tools/vendorsCreateVendorRegistration.js +1 -1
  83. package/mcp-server/tools/vendorsExpediteTimeRemaining.js +1 -1
  84. package/mcp-server/tools/vendorsGetVendorInvoiceDetails.js +1 -1
  85. package/mcp-server/tools/vendorsGetVendorsDetails.d.ts +8 -0
  86. package/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -0
  87. package/mcp-server/tools/vendorsGetVendorsDetails.js +78 -0
  88. package/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -0
  89. package/mcp-server/tools/vendorsListVendorCredentials.js +2 -2
  90. package/mcp-server/tools/vendorsListVendorCredentials.js.map +1 -1
  91. package/mcp-server/tools/vendorsListVendorFacilityStatuses.d.ts +8 -0
  92. package/mcp-server/tools/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
  93. package/mcp-server/tools/vendorsListVendorFacilityStatuses.js +64 -0
  94. package/mcp-server/tools/vendorsListVendorFacilityStatuses.js.map +1 -0
  95. package/mcp-server/tools/vendorsListVendorInvoices.js +1 -1
  96. package/mcp-server/tools/vendorsListVendorScrubDetails.d.ts +8 -0
  97. package/mcp-server/tools/vendorsListVendorScrubDetails.d.ts.map +1 -0
  98. package/mcp-server/tools/{userGetUserById.js → vendorsListVendorScrubDetails.js} +9 -9
  99. package/mcp-server/tools/vendorsListVendorScrubDetails.js.map +1 -0
  100. package/mcp-server/tools/vendorsListVendorScrubPurchases.d.ts +8 -0
  101. package/mcp-server/tools/vendorsListVendorScrubPurchases.d.ts.map +1 -0
  102. package/mcp-server/tools/{userPassword.js → vendorsListVendorScrubPurchases.js} +10 -11
  103. package/mcp-server/tools/vendorsListVendorScrubPurchases.js.map +1 -0
  104. package/mcp-server/tools/webhooksGetWebhookEndpoint.d.ts +8 -0
  105. package/mcp-server/tools/webhooksGetWebhookEndpoint.d.ts.map +1 -0
  106. package/mcp-server/tools/{vendorsListVendorJobTitles.js → webhooksGetWebhookEndpoint.js} +10 -10
  107. package/mcp-server/tools/webhooksGetWebhookEndpoint.js.map +1 -0
  108. package/mcp-server/tools/webhooksListAllWebhookEndpoints.d.ts +8 -0
  109. package/mcp-server/tools/webhooksListAllWebhookEndpoints.d.ts.map +1 -0
  110. package/mcp-server/tools/{userMagiclink.js → webhooksListAllWebhookEndpoints.js} +9 -9
  111. package/mcp-server/tools/webhooksListAllWebhookEndpoints.js.map +1 -0
  112. package/mcp-server/tools.d.ts.map +1 -1
  113. package/mcp-server/tools.js +4 -0
  114. package/mcp-server/tools.js.map +1 -1
  115. package/models/components/company.d.ts +15 -15
  116. package/models/components/company.d.ts.map +1 -1
  117. package/models/components/company.js +19 -18
  118. package/models/components/company.js.map +1 -1
  119. package/models/components/contact.d.ts +13 -13
  120. package/models/components/contact.d.ts.map +1 -1
  121. package/models/components/contact.js +16 -16
  122. package/models/components/contact.js.map +1 -1
  123. package/models/components/department.d.ts +34 -0
  124. package/models/components/department.d.ts.map +1 -0
  125. package/models/components/department.js +71 -0
  126. package/models/components/department.js.map +1 -0
  127. package/models/components/expand.d.ts +24 -0
  128. package/models/components/expand.d.ts.map +1 -1
  129. package/models/components/expand.js +8 -0
  130. package/models/components/expand.js.map +1 -1
  131. package/models/components/facility.d.ts +17 -17
  132. package/models/components/facility.d.ts.map +1 -1
  133. package/models/components/facility.js +20 -20
  134. package/models/components/facility.js.map +1 -1
  135. package/models/components/index.d.ts +8 -0
  136. package/models/components/index.d.ts.map +1 -1
  137. package/models/components/index.js +8 -0
  138. package/models/components/index.js.map +1 -1
  139. package/models/components/scantype.d.ts +31 -0
  140. package/models/components/scantype.d.ts.map +1 -0
  141. package/models/components/scantype.js +62 -0
  142. package/models/components/scantype.js.map +1 -0
  143. package/models/components/subscription.d.ts +42 -0
  144. package/models/components/subscription.d.ts.map +1 -0
  145. package/models/components/subscription.js +92 -0
  146. package/models/components/subscription.js.map +1 -0
  147. package/models/components/user.d.ts +8 -25
  148. package/models/components/user.d.ts.map +1 -1
  149. package/models/components/user.js +8 -31
  150. package/models/components/user.js.map +1 -1
  151. package/models/components/vendor.d.ts +374 -0
  152. package/models/components/vendor.d.ts.map +1 -0
  153. package/models/components/vendor.js +523 -0
  154. package/models/components/vendor.js.map +1 -0
  155. package/models/components/vendorfacilitystatusview.d.ts +42 -0
  156. package/models/components/vendorfacilitystatusview.d.ts.map +1 -0
  157. package/models/components/vendorfacilitystatusview.js +98 -0
  158. package/models/components/vendorfacilitystatusview.js.map +1 -0
  159. package/models/components/vendorscrubdetails.d.ts +42 -0
  160. package/models/components/vendorscrubdetails.d.ts.map +1 -0
  161. package/models/components/vendorscrubdetails.js +98 -0
  162. package/models/components/vendorscrubdetails.js.map +1 -0
  163. package/models/components/vendorscrubpurchase.d.ts +38 -0
  164. package/models/components/vendorscrubpurchase.d.ts.map +1 -0
  165. package/models/components/vendorscrubpurchase.js +84 -0
  166. package/models/components/vendorscrubpurchase.js.map +1 -0
  167. package/models/components/webhookendpoint.d.ts +135 -0
  168. package/models/components/webhookendpoint.d.ts.map +1 -0
  169. package/models/components/webhookendpoint.js +158 -0
  170. package/models/components/webhookendpoint.js.map +1 -0
  171. package/models/operations/getvendorsdetails.d.ts +38 -0
  172. package/models/operations/getvendorsdetails.d.ts.map +1 -0
  173. package/models/operations/getvendorsdetails.js +81 -0
  174. package/models/operations/getvendorsdetails.js.map +1 -0
  175. package/models/operations/getwebhookendpoint.d.ts +32 -0
  176. package/models/operations/getwebhookendpoint.d.ts.map +1 -0
  177. package/models/operations/getwebhookendpoint.js +69 -0
  178. package/models/operations/getwebhookendpoint.js.map +1 -0
  179. package/models/operations/index.d.ts +7 -0
  180. package/models/operations/index.d.ts.map +1 -1
  181. package/models/operations/index.js +7 -0
  182. package/models/operations/index.js.map +1 -1
  183. package/models/operations/listallwebhookendpoints.d.ts +81 -0
  184. package/models/operations/listallwebhookendpoints.d.ts.map +1 -0
  185. package/models/operations/listallwebhookendpoints.js +114 -0
  186. package/models/operations/listallwebhookendpoints.js.map +1 -0
  187. package/models/operations/listorsearchfacilities.d.ts +2 -2
  188. package/models/operations/listorsearchfacilities.d.ts.map +1 -1
  189. package/models/operations/listorsearchfacilities.js +2 -2
  190. package/models/operations/listorsearchfacilities.js.map +1 -1
  191. package/models/operations/listvendorcredentials.d.ts +77 -5
  192. package/models/operations/listvendorcredentials.d.ts.map +1 -1
  193. package/models/operations/listvendorcredentials.js +78 -3
  194. package/models/operations/listvendorcredentials.js.map +1 -1
  195. package/models/operations/listvendorfacilitystatuses.d.ts +111 -0
  196. package/models/operations/listvendorfacilitystatuses.d.ts.map +1 -0
  197. package/models/operations/listvendorfacilitystatuses.js +153 -0
  198. package/models/operations/listvendorfacilitystatuses.js.map +1 -0
  199. package/models/operations/listvendorjobtitles.d.ts +27 -0
  200. package/models/operations/listvendorjobtitles.d.ts.map +1 -1
  201. package/models/operations/listvendorjobtitles.js +38 -1
  202. package/models/operations/listvendorjobtitles.js.map +1 -1
  203. package/models/operations/listvendorscrubdetails.d.ts +32 -0
  204. package/models/operations/listvendorscrubdetails.d.ts.map +1 -0
  205. package/models/operations/listvendorscrubdetails.js +78 -0
  206. package/models/operations/listvendorscrubdetails.js.map +1 -0
  207. package/models/operations/listvendorscrubpurchases.d.ts +111 -0
  208. package/models/operations/listvendorscrubpurchases.d.ts.map +1 -0
  209. package/models/operations/listvendorscrubpurchases.js +153 -0
  210. package/models/operations/listvendorscrubpurchases.js.map +1 -0
  211. package/models/operations/vendorscanout.d.ts +64 -0
  212. package/models/operations/vendorscanout.d.ts.map +1 -0
  213. package/models/operations/vendorscanout.js +100 -0
  214. package/models/operations/vendorscanout.js.map +1 -0
  215. package/package.json +1 -1
  216. package/react-query/index.d.ts +7 -0
  217. package/react-query/index.d.ts.map +1 -1
  218. package/react-query/index.js +7 -0
  219. package/react-query/index.js.map +1 -1
  220. package/react-query/vendorScansVendorScanOut.d.ts +23 -0
  221. package/react-query/vendorScansVendorScanOut.d.ts.map +1 -0
  222. package/react-query/vendorScansVendorScanOut.js +47 -0
  223. package/react-query/vendorScansVendorScanOut.js.map +1 -0
  224. package/react-query/vendorsGetVendorsDetails.d.ts +71 -0
  225. package/react-query/vendorsGetVendorsDetails.d.ts.map +1 -0
  226. package/react-query/vendorsGetVendorsDetails.js +123 -0
  227. package/react-query/vendorsGetVendorsDetails.js.map +1 -0
  228. package/react-query/vendorsListVendorCredentials.d.ts +40 -3
  229. package/react-query/vendorsListVendorCredentials.d.ts.map +1 -1
  230. package/react-query/vendorsListVendorCredentials.js +67 -0
  231. package/react-query/vendorsListVendorCredentials.js.map +1 -1
  232. package/react-query/vendorsListVendorFacilityStatuses.d.ts +78 -0
  233. package/react-query/vendorsListVendorFacilityStatuses.d.ts.map +1 -0
  234. package/react-query/vendorsListVendorFacilityStatuses.js +161 -0
  235. package/react-query/vendorsListVendorFacilityStatuses.js.map +1 -0
  236. package/react-query/vendorsListVendorJobTitles.d.ts +7 -7
  237. package/react-query/vendorsListVendorJobTitles.d.ts.map +1 -1
  238. package/react-query/vendorsListVendorJobTitles.js +15 -15
  239. package/react-query/vendorsListVendorJobTitles.js.map +1 -1
  240. package/react-query/vendorsListVendorScrubDetails.d.ts +31 -0
  241. package/react-query/vendorsListVendorScrubDetails.d.ts.map +1 -0
  242. package/react-query/vendorsListVendorScrubDetails.js +96 -0
  243. package/react-query/vendorsListVendorScrubDetails.js.map +1 -0
  244. package/react-query/vendorsListVendorScrubPurchases.d.ts +77 -0
  245. package/react-query/vendorsListVendorScrubPurchases.d.ts.map +1 -0
  246. package/react-query/vendorsListVendorScrubPurchases.js +160 -0
  247. package/react-query/vendorsListVendorScrubPurchases.js.map +1 -0
  248. package/react-query/webhooksGetWebhookEndpoint.d.ts +31 -0
  249. package/react-query/webhooksGetWebhookEndpoint.d.ts.map +1 -0
  250. package/react-query/webhooksGetWebhookEndpoint.js +96 -0
  251. package/react-query/webhooksGetWebhookEndpoint.js.map +1 -0
  252. package/react-query/webhooksListAllWebhookEndpoints.d.ts +50 -0
  253. package/react-query/webhooksListAllWebhookEndpoints.d.ts.map +1 -0
  254. package/react-query/webhooksListAllWebhookEndpoints.js +101 -0
  255. package/react-query/webhooksListAllWebhookEndpoints.js.map +1 -0
  256. package/sdk/sdk.d.ts +6 -0
  257. package/sdk/sdk.d.ts.map +1 -1
  258. package/sdk/sdk.js +8 -0
  259. package/sdk/sdk.js.map +1 -1
  260. package/sdk/vendors.d.ts +50 -2
  261. package/sdk/vendors.d.ts.map +1 -1
  262. package/sdk/vendors.js +57 -3
  263. package/sdk/vendors.js.map +1 -1
  264. package/sdk/vendorscans.d.ts +12 -0
  265. package/sdk/vendorscans.d.ts.map +1 -0
  266. package/sdk/vendorscans.js +22 -0
  267. package/sdk/vendorscans.js.map +1 -0
  268. package/sdk/webhooks.d.ts +20 -0
  269. package/sdk/webhooks.d.ts.map +1 -0
  270. package/sdk/webhooks.js +32 -0
  271. package/sdk/webhooks.js.map +1 -0
  272. package/src/__tests__/vendors.test.ts +51 -118
  273. package/src/__tests__/vendorscans.test.ts +27 -0
  274. package/src/__tests__/webhooks.test.ts +45 -0
  275. package/src/funcs/organizationsListOrSearchFacilities.ts +12 -1
  276. package/src/funcs/vendorScansVendorScanOut.ts +172 -0
  277. package/src/funcs/vendorsGetVendorsDetails.ts +192 -0
  278. package/src/funcs/vendorsListVendorCredentials.ts +104 -27
  279. package/src/funcs/vendorsListVendorFacilityStatuses.ts +246 -0
  280. package/src/funcs/vendorsListVendorJobTitles.ts +25 -2
  281. package/src/funcs/vendorsListVendorScrubDetails.ts +172 -0
  282. package/src/funcs/vendorsListVendorScrubPurchases.ts +249 -0
  283. package/src/funcs/webhooksGetWebhookEndpoint.ts +173 -0
  284. package/src/funcs/webhooksListAllWebhookEndpoints.ts +174 -0
  285. package/src/lib/config.ts +3 -3
  286. package/src/lib/sdks.ts +2 -7
  287. package/src/lib/security.ts +11 -3
  288. package/src/mcp-server/extensions.ts +4 -0
  289. package/src/mcp-server/mcp-server.ts +1 -1
  290. package/src/mcp-server/prompts.ts +110 -0
  291. package/src/mcp-server/resources.ts +1 -0
  292. package/src/mcp-server/server.ts +18 -4
  293. package/src/mcp-server/tools/organizationsGetFacility.ts +1 -1
  294. package/src/mcp-server/tools/organizationsListOrSearchFacilities.ts +1 -1
  295. package/src/mcp-server/tools/supportArticlesGetSupportArticle.ts +1 -1
  296. package/src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts +1 -1
  297. package/src/mcp-server/tools/usersGetCurrentUser.ts +1 -1
  298. package/src/mcp-server/tools/usersGetUserById.ts +1 -1
  299. package/src/mcp-server/tools/usersLogsUserIntoTheSystem.ts +1 -1
  300. package/src/mcp-server/tools/usersMagiclink.ts +1 -1
  301. package/src/mcp-server/tools/usersPassword.ts +1 -1
  302. package/src/mcp-server/tools/usersPasswordResetRequest.ts +1 -1
  303. package/src/mcp-server/tools/vendorScansVendorScanOut.ts +37 -0
  304. package/src/mcp-server/tools/vendorsCreateVendorRegistration.ts +1 -1
  305. package/src/mcp-server/tools/vendorsExpediteTimeRemaining.ts +1 -1
  306. package/src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts +1 -1
  307. package/src/mcp-server/tools/vendorsGetVendorsDetails.ts +51 -0
  308. package/src/mcp-server/tools/vendorsListVendorCredentials.ts +2 -2
  309. package/src/mcp-server/tools/{vendorsListVendorJobTitles.ts → vendorsListVendorFacilityStatuses.ts} +9 -7
  310. package/src/mcp-server/tools/vendorsListVendorInvoices.ts +1 -1
  311. package/src/mcp-server/tools/vendorsListVendorScrubDetails.ts +37 -0
  312. package/src/mcp-server/tools/vendorsListVendorScrubPurchases.ts +38 -0
  313. package/src/mcp-server/tools/webhooksGetWebhookEndpoint.ts +37 -0
  314. package/src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts +38 -0
  315. package/src/mcp-server/tools.ts +5 -0
  316. package/src/models/components/company.ts +27 -24
  317. package/src/models/components/contact.ts +24 -20
  318. package/src/models/components/department.ts +69 -0
  319. package/src/models/components/expand.ts +8 -0
  320. package/src/models/components/facility.ts +28 -32
  321. package/src/models/components/index.ts +8 -0
  322. package/src/models/components/scantype.ts +32 -0
  323. package/src/models/components/subscription.ts +98 -0
  324. package/src/models/components/user.ts +19 -53
  325. package/src/models/components/vendor.ts +925 -0
  326. package/src/models/components/vendorfacilitystatusview.ts +108 -0
  327. package/src/models/components/vendorscrubdetails.ts +108 -0
  328. package/src/models/components/vendorscrubpurchase.ts +90 -0
  329. package/src/models/components/webhookendpoint.ts +244 -0
  330. package/src/models/operations/getvendorsdetails.ts +86 -0
  331. package/src/models/operations/getwebhookendpoint.ts +69 -0
  332. package/src/models/operations/index.ts +7 -0
  333. package/src/models/operations/listallwebhookendpoints.ts +175 -0
  334. package/src/models/operations/listorsearchfacilities.ts +4 -4
  335. package/src/models/operations/listvendorcredentials.ts +160 -7
  336. package/src/models/operations/listvendorfacilitystatuses.ts +256 -0
  337. package/src/models/operations/listvendorjobtitles.ts +72 -0
  338. package/src/models/operations/listvendorscrubdetails.ts +80 -0
  339. package/src/models/operations/listvendorscrubpurchases.ts +252 -0
  340. package/src/models/operations/vendorscanout.ts +138 -0
  341. package/src/react-query/index.ts +7 -0
  342. package/src/react-query/vendorScansVendorScanOut.ts +89 -0
  343. package/src/react-query/vendorsGetVendorsDetails.ts +201 -0
  344. package/src/react-query/vendorsListVendorCredentials.ts +169 -1
  345. package/src/react-query/vendorsListVendorFacilityStatuses.ts +347 -0
  346. package/src/react-query/vendorsListVendorJobTitles.ts +15 -0
  347. package/src/react-query/vendorsListVendorScrubDetails.ts +166 -0
  348. package/src/react-query/vendorsListVendorScrubPurchases.ts +346 -0
  349. package/src/react-query/webhooksGetWebhookEndpoint.ts +163 -0
  350. package/src/react-query/webhooksListAllWebhookEndpoints.ts +193 -0
  351. package/src/sdk/sdk.ts +12 -0
  352. package/src/sdk/vendors.ts +99 -2
  353. package/src/sdk/vendorscans.ts +27 -0
  354. package/src/sdk/webhooks.ts +46 -0
  355. package/mcp-server/tools/userGetCurrentUser.d.ts +0 -3
  356. package/mcp-server/tools/userGetCurrentUser.d.ts.map +0 -1
  357. package/mcp-server/tools/userGetCurrentUser.js +0 -26
  358. package/mcp-server/tools/userGetCurrentUser.js.map +0 -1
  359. package/mcp-server/tools/userGetUserById.d.ts +0 -8
  360. package/mcp-server/tools/userGetUserById.d.ts.map +0 -1
  361. package/mcp-server/tools/userGetUserById.js.map +0 -1
  362. package/mcp-server/tools/userLogsUserIntoTheSystem.d.ts +0 -8
  363. package/mcp-server/tools/userLogsUserIntoTheSystem.d.ts.map +0 -1
  364. package/mcp-server/tools/userLogsUserIntoTheSystem.js +0 -94
  365. package/mcp-server/tools/userLogsUserIntoTheSystem.js.map +0 -1
  366. package/mcp-server/tools/userMagiclink.d.ts +0 -8
  367. package/mcp-server/tools/userMagiclink.d.ts.map +0 -1
  368. package/mcp-server/tools/userMagiclink.js.map +0 -1
  369. package/mcp-server/tools/userPassword.d.ts +0 -8
  370. package/mcp-server/tools/userPassword.d.ts.map +0 -1
  371. package/mcp-server/tools/userPassword.js.map +0 -1
  372. package/mcp-server/tools/userPasswordResetRequest.d.ts +0 -8
  373. package/mcp-server/tools/userPasswordResetRequest.d.ts.map +0 -1
  374. package/mcp-server/tools/vendorsListVendorJobTitles.d.ts +0 -8
  375. package/mcp-server/tools/vendorsListVendorJobTitles.d.ts.map +0 -1
  376. package/mcp-server/tools/vendorsListVendorJobTitles.js.map +0 -1
  377. package/src/__tests__/organizations.test.ts +0 -78
  378. package/src/__tests__/supportarticles.test.ts +0 -64
  379. package/src/__tests__/user.test.ts +0 -218
  380. package/vitest.config.ts +0 -8
package/bin/mcp-server.js CHANGED
@@ -34172,9 +34172,9 @@ var init_config = __esm(() => {
34172
34172
  SDK_METADATA = {
34173
34173
  language: "typescript",
34174
34174
  openapiDocVersion: "0.0.3",
34175
- sdkVersion: "0.18.2",
34176
- genVersion: "2.546.0",
34177
- userAgent: "speakeasy-sdk/typescript 0.18.2 2.546.0 0.0.3 @greensecurity/javascript-sdk"
34175
+ sdkVersion: "0.21.1",
34176
+ genVersion: "2.558.2",
34177
+ userAgent: "speakeasy-sdk/typescript 0.21.1 2.558.2 0.0.3 @greensecurity/javascript-sdk"
34178
34178
  };
34179
34179
  });
34180
34180
 
@@ -34818,12 +34818,9 @@ class ClientSDK {
34818
34818
  }
34819
34819
  if (conf.body instanceof ReadableStream) {
34820
34820
  if (!fetchOptions) {
34821
- fetchOptions = {
34822
- duplex: "half"
34823
- };
34824
- } else {
34825
- fetchOptions.duplex = "half";
34821
+ fetchOptions = {};
34826
34822
  }
34823
+ Object.assign(fetchOptions, { duplex: "half" });
34827
34824
  }
34828
34825
  let input;
34829
34826
  try {
@@ -34979,6 +34976,30 @@ var init_core = __esm(() => {
34979
34976
  };
34980
34977
  });
34981
34978
 
34979
+ // src/mcp-server/prompts.ts
34980
+ function createRegisterPrompt(logger, server, sdk, allowedScopes) {
34981
+ return (prompt) => {
34982
+ const scopes = prompt.scopes ?? [];
34983
+ if (!scopes.every((s) => allowedScopes.has(s))) {
34984
+ return;
34985
+ }
34986
+ if (prompt.args) {
34987
+ if (prompt.description) {
34988
+ server.prompt(prompt.name, prompt.description, prompt.args, async (args, ctx) => prompt.prompt(sdk, args, ctx));
34989
+ } else {
34990
+ server.prompt(prompt.name, prompt.args, async (args, ctx) => prompt.prompt(sdk, args, ctx));
34991
+ }
34992
+ } else {
34993
+ if (prompt.description) {
34994
+ server.prompt(prompt.name, prompt.description, async (ctx) => prompt.prompt(sdk, ctx));
34995
+ } else {
34996
+ server.prompt(prompt.name, async (ctx) => prompt.prompt(sdk, ctx));
34997
+ }
34998
+ }
34999
+ logger.debug("Registered prompt", { name: prompt.name });
35000
+ };
35001
+ }
35002
+
34982
35003
  // src/mcp-server/shared.ts
34983
35004
  async function consumeStream(stream) {
34984
35005
  const reader = stream.getReader();
@@ -35103,6 +35124,9 @@ function createRegisterTool(logger, server, sdk, allowedScopes, allowedTools) {
35103
35124
  return;
35104
35125
  }
35105
35126
  const toolScopes = tool.scopes ?? [];
35127
+ if (allowedScopes.size > 0 && toolScopes.length === 0) {
35128
+ return;
35129
+ }
35106
35130
  if (!toolScopes.every((s) => allowedScopes.has(s))) {
35107
35131
  return;
35108
35132
  }
@@ -35418,6 +35442,9 @@ function resolveSecurity(...options) {
35418
35442
  } else if (o.type === "oauth2:password") {
35419
35443
  return typeof o.value === "string" && !!o.value;
35420
35444
  } else if (o.type === "oauth2:client_credentials") {
35445
+ if (typeof o.value == "string") {
35446
+ return !!o.value;
35447
+ }
35421
35448
  return o.value.clientID != null || o.value.clientSecret != null;
35422
35449
  } else if (typeof o.value === "string") {
35423
35450
  return !!o.value;
@@ -35483,7 +35510,9 @@ function applyBearer(state, spec) {
35483
35510
  if (value.slice(0, 7).toLowerCase() !== "bearer ") {
35484
35511
  value = `Bearer ${value}`;
35485
35512
  }
35486
- state.headers[spec.fieldName] = value;
35513
+ if (spec.fieldName !== undefined) {
35514
+ state.headers[spec.fieldName] = value;
35515
+ }
35487
35516
  }
35488
35517
  function resolveGlobalSecurity(security) {
35489
35518
  return resolveSecurity([
@@ -35574,12 +35603,12 @@ var init_rfcdate = __esm(() => {
35574
35603
  });
35575
35604
 
35576
35605
  // src/models/components/company.ts
35577
- var Location$inboundSchema, Location$outboundSchema, Location$, CompanyContact$inboundSchema, CompanyContact$outboundSchema, CompanyContact$, Tax$inboundSchema, Tax$outboundSchema, Tax$, Stats$inboundSchema, Stats$outboundSchema, Stats$, Company$inboundSchema, Company$outboundSchema, Company$;
35606
+ var CompanyLocation$inboundSchema, CompanyLocation$outboundSchema, CompanyLocation$, CompanyContact$inboundSchema, CompanyContact$outboundSchema, CompanyContact$, Tax$inboundSchema, Tax$outboundSchema, Tax$, Stats$inboundSchema, Stats$outboundSchema, Stats$, Company$inboundSchema, Company$outboundSchema, Company$;
35578
35607
  var init_company = __esm(() => {
35579
35608
  init_lib();
35580
35609
  init_primitives();
35581
35610
  init_rfcdate();
35582
- Location$inboundSchema = objectType({
35611
+ CompanyLocation$inboundSchema = objectType({
35583
35612
  address: nullableType(stringType()),
35584
35613
  phone: nullableType(stringType()).optional(),
35585
35614
  city: nullableType(stringType()).optional(),
@@ -35587,7 +35616,7 @@ var init_company = __esm(() => {
35587
35616
  zip: nullableType(stringType()).optional(),
35588
35617
  country: nullableType(stringType()).optional()
35589
35618
  });
35590
- Location$outboundSchema = objectType({
35619
+ CompanyLocation$outboundSchema = objectType({
35591
35620
  address: nullableType(stringType()),
35592
35621
  phone: nullableType(stringType()).optional(),
35593
35622
  city: nullableType(stringType()).optional(),
@@ -35595,10 +35624,10 @@ var init_company = __esm(() => {
35595
35624
  zip: nullableType(stringType()).optional(),
35596
35625
  country: nullableType(stringType()).optional()
35597
35626
  });
35598
- ((Location$) => {
35599
- Location$.inboundSchema = Location$inboundSchema;
35600
- Location$.outboundSchema = Location$outboundSchema;
35601
- })(Location$ ||= {});
35627
+ ((CompanyLocation$) => {
35628
+ CompanyLocation$.inboundSchema = CompanyLocation$inboundSchema;
35629
+ CompanyLocation$.outboundSchema = CompanyLocation$outboundSchema;
35630
+ })(CompanyLocation$ ||= {});
35602
35631
  CompanyContact$inboundSchema = objectType({
35603
35632
  name: nullableType(stringType()),
35604
35633
  email: nullableType(stringType()).optional()
@@ -35688,7 +35717,7 @@ var init_company = __esm(() => {
35688
35717
  name: nullableType(stringType()),
35689
35718
  status: nullableType(stringType()).optional(),
35690
35719
  credit_balance: nullableType(stringType()).optional(),
35691
- location: nullableType(lazyType(() => Location$inboundSchema)).optional(),
35720
+ location: nullableType(lazyType(() => CompanyLocation$inboundSchema)).optional(),
35692
35721
  contact: lazyType(() => CompanyContact$inboundSchema).optional(),
35693
35722
  tax: lazyType(() => Tax$inboundSchema).optional(),
35694
35723
  stats: lazyType(() => Stats$inboundSchema).optional()
@@ -35702,7 +35731,7 @@ var init_company = __esm(() => {
35702
35731
  name: nullableType(stringType()),
35703
35732
  status: nullableType(stringType()).optional(),
35704
35733
  creditBalance: nullableType(stringType()).optional(),
35705
- location: nullableType(lazyType(() => Location$outboundSchema)).optional(),
35734
+ location: nullableType(lazyType(() => CompanyLocation$outboundSchema)).optional(),
35706
35735
  contact: lazyType(() => CompanyContact$outboundSchema).optional(),
35707
35736
  tax: lazyType(() => Tax$outboundSchema).optional(),
35708
35737
  stats: lazyType(() => Stats$outboundSchema).optional()
@@ -35772,7 +35801,7 @@ var init_systemsummary = __esm(() => {
35772
35801
  });
35773
35802
 
35774
35803
  // src/models/components/contact.ts
35775
- var Status, ContactFacility$inboundSchema, ContactFacility$outboundSchema, ContactFacility$, System$inboundSchema, System$outboundSchema, System$, Status$inboundSchema, Status$outboundSchema, Status$, Department$inboundSchema, Department$outboundSchema, Department$, Contact$inboundSchema, Contact$outboundSchema, Contact$;
35804
+ var Status, ContactFacility$inboundSchema, ContactFacility$outboundSchema, ContactFacility$, System$inboundSchema, System$outboundSchema, System$, Status$inboundSchema, Status$outboundSchema, Status$, ContactDepartment$inboundSchema, ContactDepartment$outboundSchema, ContactDepartment$, Contact$inboundSchema, Contact$outboundSchema, Contact$;
35776
35805
  var init_contact = __esm(() => {
35777
35806
  init_lib();
35778
35807
  init_departmentsummary();
@@ -35801,12 +35830,12 @@ var init_contact = __esm(() => {
35801
35830
  Status$.inboundSchema = Status$inboundSchema;
35802
35831
  Status$.outboundSchema = Status$outboundSchema;
35803
35832
  })(Status$ ||= {});
35804
- Department$inboundSchema = unionType([DepartmentSummary$inboundSchema, numberType().int()]);
35805
- Department$outboundSchema = unionType([DepartmentSummary$outboundSchema, numberType().int()]);
35806
- ((Department$) => {
35807
- Department$.inboundSchema = Department$inboundSchema;
35808
- Department$.outboundSchema = Department$outboundSchema;
35809
- })(Department$ ||= {});
35833
+ ContactDepartment$inboundSchema = unionType([DepartmentSummary$inboundSchema, numberType().int()]);
35834
+ ContactDepartment$outboundSchema = unionType([DepartmentSummary$outboundSchema, numberType().int()]);
35835
+ ((ContactDepartment$) => {
35836
+ ContactDepartment$.inboundSchema = ContactDepartment$inboundSchema;
35837
+ ContactDepartment$.outboundSchema = ContactDepartment$outboundSchema;
35838
+ })(ContactDepartment$ ||= {});
35810
35839
  Contact$inboundSchema = objectType({
35811
35840
  facility: unionType([FacilitySummary$inboundSchema, numberType().int()]).optional(),
35812
35841
  system: unionType([SystemSummary$inboundSchema, numberType().int()]).optional(),
@@ -35848,6 +35877,24 @@ var init_credentialstatus = __esm(() => {
35848
35877
  })(CredentialStatus$ ||= {});
35849
35878
  });
35850
35879
 
35880
+ // src/models/components/department.ts
35881
+ var Department$inboundSchema, Department$outboundSchema, Department$;
35882
+ var init_department = __esm(() => {
35883
+ init_lib();
35884
+ Department$inboundSchema = objectType({
35885
+ id: numberType().int(),
35886
+ name: stringType()
35887
+ });
35888
+ Department$outboundSchema = objectType({
35889
+ id: numberType().int(),
35890
+ name: stringType()
35891
+ });
35892
+ ((Department$) => {
35893
+ Department$.inboundSchema = Department$inboundSchema;
35894
+ Department$.outboundSchema = Department$outboundSchema;
35895
+ })(Department$ ||= {});
35896
+ });
35897
+
35851
35898
  // src/models/components/desc.ts
35852
35899
  var Desc$inboundSchema, Desc$outboundSchema, Desc$;
35853
35900
  var init_desc = __esm(() => {
@@ -35882,6 +35929,14 @@ var init_expand = __esm(() => {
35882
35929
  VendorUser: "vendor.user",
35883
35930
  VendorVendorType: "vendor.vendor_type",
35884
35931
  VendorPaymentProfile: "vendor.payment_profile",
35932
+ VendorImageUrls: "vendor.image_urls",
35933
+ VendorPrimaryFacility: "vendor.primary_facility",
35934
+ VendorPrimaryDepartment: "vendor.primary_department",
35935
+ VendorCompany: "vendor.company",
35936
+ VendorCredentialingSubscription: "vendor.credentialing_subscription",
35937
+ VendorScrubsSubscription: "vendor.scrubs_subscription",
35938
+ VendorPaymentResponsibility: "vendor.payment_responsibility",
35939
+ VendorBackgroundCheckDateExpires: "vendor.background_check_date_expires",
35885
35940
  SupportArticleDescription: "support_article.description",
35886
35941
  SupportArticlePublished: "support_article.published",
35887
35942
  SupportArticleNotes: "support_article.notes",
@@ -35985,7 +36040,7 @@ var init_vendortype = __esm(() => {
35985
36040
  });
35986
36041
 
35987
36042
  // src/models/components/facility.ts
35988
- var VendorGuestLimitAndOr, AppointmentPolicy$inboundSchema, AppointmentPolicy$outboundSchema, AppointmentPolicy$, Contacts$inboundSchema, Contacts$outboundSchema, Contacts$, VendorCounts$inboundSchema, VendorCounts$outboundSchema, VendorCounts$, FacilityFluCredential$inboundSchema, FacilityFluCredential$outboundSchema, FacilityFluCredential$, FluCredential$inboundSchema, FluCredential$outboundSchema, FluCredential$, FacilityLocation$inboundSchema, FacilityLocation$outboundSchema, FacilityLocation$, ScrubsPolicy$inboundSchema, ScrubsPolicy$outboundSchema, ScrubsPolicy$, FacilitySystem$inboundSchema, FacilitySystem$outboundSchema, FacilitySystem$, Uses$inboundSchema, Uses$outboundSchema, Uses$, VendorGuestLimitAndOr$inboundSchema, VendorGuestLimitAndOr$outboundSchema, VendorGuestLimitAndOr$, VendorGuestPolicy$inboundSchema, VendorGuestPolicy$outboundSchema, VendorGuestPolicy$, VendorPolicy$inboundSchema, VendorPolicy$outboundSchema, VendorPolicy$, VisitorPolicy$inboundSchema, VisitorPolicy$outboundSchema, VisitorPolicy$, WorkflowPolicy$inboundSchema, WorkflowPolicy$outboundSchema, WorkflowPolicy$, Facility$inboundSchema, Facility$outboundSchema, Facility$;
36043
+ var VendorGuestLimitAndOr, AppointmentPolicy$inboundSchema, AppointmentPolicy$outboundSchema, AppointmentPolicy$, Contacts$inboundSchema, Contacts$outboundSchema, Contacts$, VendorCounts$inboundSchema, VendorCounts$outboundSchema, VendorCounts$, FacilityFluCredential$inboundSchema, FacilityFluCredential$outboundSchema, FacilityFluCredential$, FluCredential$inboundSchema, FluCredential$outboundSchema, FluCredential$, Location$inboundSchema, Location$outboundSchema, Location$, ScrubsPolicy$inboundSchema, ScrubsPolicy$outboundSchema, ScrubsPolicy$, FacilitySystem$inboundSchema, FacilitySystem$outboundSchema, FacilitySystem$, Uses$inboundSchema, Uses$outboundSchema, Uses$, VendorGuestLimitAndOr$inboundSchema, VendorGuestLimitAndOr$outboundSchema, VendorGuestLimitAndOr$, VendorGuestPolicy$inboundSchema, VendorGuestPolicy$outboundSchema, VendorGuestPolicy$, VendorPolicy$inboundSchema, VendorPolicy$outboundSchema, VendorPolicy$, VisitorPolicy$inboundSchema, VisitorPolicy$outboundSchema, VisitorPolicy$, WorkflowPolicy$inboundSchema, WorkflowPolicy$outboundSchema, WorkflowPolicy$, Facility$inboundSchema, Facility$outboundSchema, Facility$;
35989
36044
  var init_facility = __esm(() => {
35990
36045
  init_lib();
35991
36046
  init_primitives();
@@ -36150,7 +36205,7 @@ var init_facility = __esm(() => {
36150
36205
  FluCredential$.inboundSchema = FluCredential$inboundSchema;
36151
36206
  FluCredential$.outboundSchema = FluCredential$outboundSchema;
36152
36207
  })(FluCredential$ ||= {});
36153
- FacilityLocation$inboundSchema = objectType({
36208
+ Location$inboundSchema = objectType({
36154
36209
  street_address: nullableType(stringType()).optional(),
36155
36210
  city: nullableType(stringType()).optional(),
36156
36211
  state: nullableType(stringType()).optional(),
@@ -36167,7 +36222,7 @@ var init_facility = __esm(() => {
36167
36222
  utc_offset: "utcOffset"
36168
36223
  });
36169
36224
  });
36170
- FacilityLocation$outboundSchema = objectType({
36225
+ Location$outboundSchema = objectType({
36171
36226
  streetAddress: nullableType(stringType()).optional(),
36172
36227
  city: nullableType(stringType()).optional(),
36173
36228
  state: nullableType(stringType()).optional(),
@@ -36184,10 +36239,10 @@ var init_facility = __esm(() => {
36184
36239
  utcOffset: "utc_offset"
36185
36240
  });
36186
36241
  });
36187
- ((FacilityLocation$) => {
36188
- FacilityLocation$.inboundSchema = FacilityLocation$inboundSchema;
36189
- FacilityLocation$.outboundSchema = FacilityLocation$outboundSchema;
36190
- })(FacilityLocation$ ||= {});
36242
+ ((Location$) => {
36243
+ Location$.inboundSchema = Location$inboundSchema;
36244
+ Location$.outboundSchema = Location$outboundSchema;
36245
+ })(Location$ ||= {});
36191
36246
  ScrubsPolicy$inboundSchema = objectType({
36192
36247
  unlimited_scrubs: booleanType().optional(),
36193
36248
  scrub_debits_per_day: numberType().int().optional(),
@@ -36406,8 +36461,8 @@ var init_facility = __esm(() => {
36406
36461
  facility_type: nullableType(stringType()).optional(),
36407
36462
  flu_credential: lazyType(() => FluCredential$inboundSchema).optional(),
36408
36463
  id: numberType().int().optional(),
36409
- image_urls: ImageSet$inboundSchema.optional(),
36410
- location: lazyType(() => FacilityLocation$inboundSchema).optional(),
36464
+ image_urls: nullableType(ImageSet$inboundSchema).optional(),
36465
+ location: lazyType(() => Location$inboundSchema).optional(),
36411
36466
  name: stringType().optional(),
36412
36467
  scrubs_policy: nullableType(lazyType(() => ScrubsPolicy$inboundSchema)).optional(),
36413
36468
  status: stringType().optional(),
@@ -36441,8 +36496,8 @@ var init_facility = __esm(() => {
36441
36496
  facilityType: nullableType(stringType()).optional(),
36442
36497
  fluCredential: lazyType(() => FluCredential$outboundSchema).optional(),
36443
36498
  id: numberType().int().optional(),
36444
- imageUrls: ImageSet$outboundSchema.optional(),
36445
- location: lazyType(() => FacilityLocation$outboundSchema).optional(),
36499
+ imageUrls: nullableType(ImageSet$outboundSchema).optional(),
36500
+ location: lazyType(() => Location$outboundSchema).optional(),
36446
36501
  name: stringType().optional(),
36447
36502
  scrubsPolicy: nullableType(lazyType(() => ScrubsPolicy$outboundSchema)).optional(),
36448
36503
  status: stringType().optional(),
@@ -36849,6 +36904,23 @@ var init_samlloginrequiredresponse = __esm(() => {
36849
36904
  })(SamlLoginRequiredResponse$ ||= {});
36850
36905
  });
36851
36906
 
36907
+ // src/models/components/scantype.ts
36908
+ var ScanType, ScanType$inboundSchema, ScanType$outboundSchema, ScanType$;
36909
+ var init_scantype = __esm(() => {
36910
+ init_lib();
36911
+ ScanType = {
36912
+ In: "In",
36913
+ Out: "Out",
36914
+ Check: "Check"
36915
+ };
36916
+ ScanType$inboundSchema = nativeEnumType(ScanType);
36917
+ ScanType$outboundSchema = ScanType$inboundSchema;
36918
+ ((ScanType$) => {
36919
+ ScanType$.inboundSchema = ScanType$inboundSchema;
36920
+ ScanType$.outboundSchema = ScanType$outboundSchema;
36921
+ })(ScanType$ ||= {});
36922
+ });
36923
+
36852
36924
  // src/models/components/security.ts
36853
36925
  var Security$inboundSchema, Security$outboundSchema, Security$;
36854
36926
  var init_security2 = __esm(() => {
@@ -36876,6 +36948,45 @@ var init_security2 = __esm(() => {
36876
36948
  })(Security$ ||= {});
36877
36949
  });
36878
36950
 
36951
+ // src/models/components/subscription.ts
36952
+ var Subscription$inboundSchema, Subscription$outboundSchema, Subscription$;
36953
+ var init_subscription = __esm(() => {
36954
+ init_lib();
36955
+ init_primitives();
36956
+ Subscription$inboundSchema = objectType({
36957
+ id: nullableType(numberType().int()).optional(),
36958
+ date_started: nullableType(stringType()).optional(),
36959
+ date_ends: nullableType(stringType()).optional(),
36960
+ status: nullableType(stringType()).optional(),
36961
+ locked: nullableType(booleanType()).optional(),
36962
+ variant_title: nullableType(anyType()).optional()
36963
+ }).transform((v2) => {
36964
+ return remap(v2, {
36965
+ date_started: "dateStarted",
36966
+ date_ends: "dateEnds",
36967
+ variant_title: "variantTitle"
36968
+ });
36969
+ });
36970
+ Subscription$outboundSchema = objectType({
36971
+ id: nullableType(numberType().int()).optional(),
36972
+ dateStarted: nullableType(stringType()).optional(),
36973
+ dateEnds: nullableType(stringType()).optional(),
36974
+ status: nullableType(stringType()).optional(),
36975
+ locked: nullableType(booleanType()).optional(),
36976
+ variantTitle: nullableType(anyType()).optional()
36977
+ }).transform((v2) => {
36978
+ return remap(v2, {
36979
+ dateStarted: "date_started",
36980
+ dateEnds: "date_ends",
36981
+ variantTitle: "variant_title"
36982
+ });
36983
+ });
36984
+ ((Subscription$) => {
36985
+ Subscription$.inboundSchema = Subscription$inboundSchema;
36986
+ Subscription$.outboundSchema = Subscription$outboundSchema;
36987
+ })(Subscription$ ||= {});
36988
+ });
36989
+
36879
36990
  // src/models/components/supportarticle.ts
36880
36991
  var SupportArticle$inboundSchema, SupportArticle$outboundSchema, SupportArticle$;
36881
36992
  var init_supportarticle = __esm(() => {
@@ -36915,14 +37026,326 @@ var init_supportarticle = __esm(() => {
36915
37026
  })(SupportArticle$ ||= {});
36916
37027
  });
36917
37028
 
37029
+ // src/models/components/vendor.ts
37030
+ var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorType1$inboundSchema, VendorType1$outboundSchema, VendorType1$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, Supervisor$inboundSchema, Supervisor$outboundSchema, Supervisor$, PaymentProfile1$inboundSchema, PaymentProfile1$outboundSchema, PaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, PaymentProfile$inboundSchema, PaymentProfile$outboundSchema, PaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
37031
+ var init_vendor = __esm(() => {
37032
+ init_lib();
37033
+ init_primitives();
37034
+ init_company();
37035
+ init_department();
37036
+ init_facility();
37037
+ init_imageset();
37038
+ init_subscription();
37039
+ One$inboundSchema = objectType({
37040
+ id: numberType().int().optional(),
37041
+ first_name: nullableType(stringType()).optional(),
37042
+ last_name: anyType().optional(),
37043
+ email: nullableType(stringType()).optional(),
37044
+ phone: nullableType(stringType()).optional(),
37045
+ user_type: nullableType(stringType()).optional(),
37046
+ timezone: nullableType(stringType()).optional(),
37047
+ qr_code: nullableType(stringType()).optional(),
37048
+ image_urls: nullableType(ImageSet$inboundSchema).optional()
37049
+ }).transform((v2) => {
37050
+ return remap(v2, {
37051
+ first_name: "firstName",
37052
+ last_name: "lastName",
37053
+ user_type: "userType",
37054
+ qr_code: "qrCode",
37055
+ image_urls: "imageUrls"
37056
+ });
37057
+ });
37058
+ One$outboundSchema = objectType({
37059
+ id: numberType().int().optional(),
37060
+ firstName: nullableType(stringType()).optional(),
37061
+ lastName: anyType().optional(),
37062
+ email: nullableType(stringType()).optional(),
37063
+ phone: nullableType(stringType()).optional(),
37064
+ userType: nullableType(stringType()).optional(),
37065
+ timezone: nullableType(stringType()).optional(),
37066
+ qrCode: nullableType(stringType()).optional(),
37067
+ imageUrls: nullableType(ImageSet$outboundSchema).optional()
37068
+ }).transform((v2) => {
37069
+ return remap(v2, {
37070
+ firstName: "first_name",
37071
+ lastName: "last_name",
37072
+ userType: "user_type",
37073
+ qrCode: "qr_code",
37074
+ imageUrls: "image_urls"
37075
+ });
37076
+ });
37077
+ ((One$) => {
37078
+ One$.inboundSchema = One$inboundSchema;
37079
+ One$.outboundSchema = One$outboundSchema;
37080
+ })(One$ ||= {});
37081
+ VendorUser$inboundSchema = unionType([lazyType(() => One$inboundSchema), numberType().int()]);
37082
+ VendorUser$outboundSchema = unionType([lazyType(() => One$outboundSchema), numberType().int()]);
37083
+ ((VendorUser$) => {
37084
+ VendorUser$.inboundSchema = VendorUser$inboundSchema;
37085
+ VendorUser$.outboundSchema = VendorUser$outboundSchema;
37086
+ })(VendorUser$ ||= {});
37087
+ VendorType1$inboundSchema = objectType({
37088
+ id: numberType().int().optional(),
37089
+ name: stringType().optional()
37090
+ });
37091
+ VendorType1$outboundSchema = objectType({
37092
+ id: numberType().int().optional(),
37093
+ name: stringType().optional()
37094
+ });
37095
+ ((VendorType1$) => {
37096
+ VendorType1$.inboundSchema = VendorType1$inboundSchema;
37097
+ VendorType1$.outboundSchema = VendorType1$outboundSchema;
37098
+ })(VendorType1$ ||= {});
37099
+ VendorVendorType$inboundSchema = unionType([lazyType(() => VendorType1$inboundSchema), numberType().int()]);
37100
+ VendorVendorType$outboundSchema = unionType([lazyType(() => VendorType1$outboundSchema), numberType().int()]);
37101
+ ((VendorVendorType$) => {
37102
+ VendorVendorType$.inboundSchema = VendorVendorType$inboundSchema;
37103
+ VendorVendorType$.outboundSchema = VendorVendorType$outboundSchema;
37104
+ })(VendorVendorType$ ||= {});
37105
+ Supervisor$inboundSchema = objectType({
37106
+ name: nullableType(stringType()).optional(),
37107
+ email: nullableType(stringType()).optional(),
37108
+ phone: nullableType(stringType()).optional()
37109
+ });
37110
+ Supervisor$outboundSchema = objectType({
37111
+ name: nullableType(stringType()).optional(),
37112
+ email: nullableType(stringType()).optional(),
37113
+ phone: nullableType(stringType()).optional()
37114
+ });
37115
+ ((Supervisor$) => {
37116
+ Supervisor$.inboundSchema = Supervisor$inboundSchema;
37117
+ Supervisor$.outboundSchema = Supervisor$outboundSchema;
37118
+ })(Supervisor$ ||= {});
37119
+ PaymentProfile1$inboundSchema = objectType({
37120
+ id: numberType().int().optional(),
37121
+ is_valid: nullableType(booleanType()).optional(),
37122
+ card_type: nullableType(stringType()).optional(),
37123
+ card_last4: nullableType(stringType()).optional(),
37124
+ is_dummy: nullableType(booleanType()).optional(),
37125
+ profile_type: nullableType(stringType()).optional()
37126
+ }).transform((v2) => {
37127
+ return remap(v2, {
37128
+ is_valid: "isValid",
37129
+ card_type: "cardType",
37130
+ card_last4: "cardLast4",
37131
+ is_dummy: "isDummy",
37132
+ profile_type: "profileType"
37133
+ });
37134
+ });
37135
+ PaymentProfile1$outboundSchema = objectType({
37136
+ id: numberType().int().optional(),
37137
+ isValid: nullableType(booleanType()).optional(),
37138
+ cardType: nullableType(stringType()).optional(),
37139
+ cardLast4: nullableType(stringType()).optional(),
37140
+ isDummy: nullableType(booleanType()).optional(),
37141
+ profileType: nullableType(stringType()).optional()
37142
+ }).transform((v2) => {
37143
+ return remap(v2, {
37144
+ isValid: "is_valid",
37145
+ cardType: "card_type",
37146
+ cardLast4: "card_last4",
37147
+ isDummy: "is_dummy",
37148
+ profileType: "profile_type"
37149
+ });
37150
+ });
37151
+ ((PaymentProfile1$) => {
37152
+ PaymentProfile1$.inboundSchema = PaymentProfile1$inboundSchema;
37153
+ PaymentProfile1$.outboundSchema = PaymentProfile1$outboundSchema;
37154
+ })(PaymentProfile1$ ||= {});
37155
+ PaymentProfilePaymentProfile$inboundSchema = unionType([lazyType(() => PaymentProfile1$inboundSchema), numberType().int()]);
37156
+ PaymentProfilePaymentProfile$outboundSchema = unionType([lazyType(() => PaymentProfile1$outboundSchema), numberType().int()]);
37157
+ ((PaymentProfilePaymentProfile$) => {
37158
+ PaymentProfilePaymentProfile$.inboundSchema = PaymentProfilePaymentProfile$inboundSchema;
37159
+ PaymentProfilePaymentProfile$.outboundSchema = PaymentProfilePaymentProfile$outboundSchema;
37160
+ })(PaymentProfilePaymentProfile$ ||= {});
37161
+ PaymentProfile$inboundSchema = unionType([
37162
+ unionType([lazyType(() => PaymentProfile1$inboundSchema), numberType().int()]),
37163
+ numberType().int()
37164
+ ]);
37165
+ PaymentProfile$outboundSchema = unionType([
37166
+ unionType([lazyType(() => PaymentProfile1$outboundSchema), numberType().int()]),
37167
+ numberType().int()
37168
+ ]);
37169
+ ((PaymentProfile$) => {
37170
+ PaymentProfile$.inboundSchema = PaymentProfile$inboundSchema;
37171
+ PaymentProfile$.outboundSchema = PaymentProfile$outboundSchema;
37172
+ })(PaymentProfile$ ||= {});
37173
+ PaymentResponsibility$inboundSchema = objectType({
37174
+ id: nullableType(numberType().int()).optional(),
37175
+ company_manager_id: nullableType(numberType().int()).optional(),
37176
+ credentialing_subscription: nullableType(booleanType()).optional(),
37177
+ scrubs_subscription: nullableType(booleanType()).optional(),
37178
+ scrub_credits: nullableType(booleanType()).optional(),
37179
+ hard_badge_initial: nullableType(booleanType()).optional(),
37180
+ hard_badge_extra: nullableType(booleanType()).optional(),
37181
+ other_invoices: nullableType(booleanType()).optional(),
37182
+ facility_id: nullableType(numberType().int()).optional(),
37183
+ company_id: nullableType(numberType().int()).optional(),
37184
+ credentialing_subscription_user_id: nullableType(numberType().int()).optional(),
37185
+ scrubs_subscription_user_id: nullableType(numberType().int()).optional(),
37186
+ scrub_credits_user_id: nullableType(numberType().int()).optional(),
37187
+ hard_badge_initial_user_id: nullableType(numberType().int()).optional(),
37188
+ hard_badge_extra_user_id: nullableType(numberType().int()).optional(),
37189
+ other_invoices_user_id: nullableType(numberType().int()).optional()
37190
+ }).transform((v2) => {
37191
+ return remap(v2, {
37192
+ company_manager_id: "companyManagerId",
37193
+ credentialing_subscription: "credentialingSubscription",
37194
+ scrubs_subscription: "scrubsSubscription",
37195
+ scrub_credits: "scrubCredits",
37196
+ hard_badge_initial: "hardBadgeInitial",
37197
+ hard_badge_extra: "hardBadgeExtra",
37198
+ other_invoices: "otherInvoices",
37199
+ facility_id: "facilityId",
37200
+ company_id: "companyId",
37201
+ credentialing_subscription_user_id: "credentialingSubscriptionUserId",
37202
+ scrubs_subscription_user_id: "scrubsSubscriptionUserId",
37203
+ scrub_credits_user_id: "scrubCreditsUserId",
37204
+ hard_badge_initial_user_id: "hardBadgeInitialUserId",
37205
+ hard_badge_extra_user_id: "hardBadgeExtraUserId",
37206
+ other_invoices_user_id: "otherInvoicesUserId"
37207
+ });
37208
+ });
37209
+ PaymentResponsibility$outboundSchema = objectType({
37210
+ id: nullableType(numberType().int()).optional(),
37211
+ companyManagerId: nullableType(numberType().int()).optional(),
37212
+ credentialingSubscription: nullableType(booleanType()).optional(),
37213
+ scrubsSubscription: nullableType(booleanType()).optional(),
37214
+ scrubCredits: nullableType(booleanType()).optional(),
37215
+ hardBadgeInitial: nullableType(booleanType()).optional(),
37216
+ hardBadgeExtra: nullableType(booleanType()).optional(),
37217
+ otherInvoices: nullableType(booleanType()).optional(),
37218
+ facilityId: nullableType(numberType().int()).optional(),
37219
+ companyId: nullableType(numberType().int()).optional(),
37220
+ credentialingSubscriptionUserId: nullableType(numberType().int()).optional(),
37221
+ scrubsSubscriptionUserId: nullableType(numberType().int()).optional(),
37222
+ scrubCreditsUserId: nullableType(numberType().int()).optional(),
37223
+ hardBadgeInitialUserId: nullableType(numberType().int()).optional(),
37224
+ hardBadgeExtraUserId: nullableType(numberType().int()).optional(),
37225
+ otherInvoicesUserId: nullableType(numberType().int()).optional()
37226
+ }).transform((v2) => {
37227
+ return remap(v2, {
37228
+ companyManagerId: "company_manager_id",
37229
+ credentialingSubscription: "credentialing_subscription",
37230
+ scrubsSubscription: "scrubs_subscription",
37231
+ scrubCredits: "scrub_credits",
37232
+ hardBadgeInitial: "hard_badge_initial",
37233
+ hardBadgeExtra: "hard_badge_extra",
37234
+ otherInvoices: "other_invoices",
37235
+ facilityId: "facility_id",
37236
+ companyId: "company_id",
37237
+ credentialingSubscriptionUserId: "credentialing_subscription_user_id",
37238
+ scrubsSubscriptionUserId: "scrubs_subscription_user_id",
37239
+ scrubCreditsUserId: "scrub_credits_user_id",
37240
+ hardBadgeInitialUserId: "hard_badge_initial_user_id",
37241
+ hardBadgeExtraUserId: "hard_badge_extra_user_id",
37242
+ otherInvoicesUserId: "other_invoices_user_id"
37243
+ });
37244
+ });
37245
+ ((PaymentResponsibility$) => {
37246
+ PaymentResponsibility$.inboundSchema = PaymentResponsibility$inboundSchema;
37247
+ PaymentResponsibility$.outboundSchema = PaymentResponsibility$outboundSchema;
37248
+ })(PaymentResponsibility$ ||= {});
37249
+ Vendor$inboundSchema = objectType({
37250
+ id: numberType().int().optional(),
37251
+ email_recepient: nullableType(stringType()).optional(),
37252
+ send_weekly_summary_email: nullableType(booleanType()).optional(),
37253
+ title: nullableType(stringType()).optional(),
37254
+ user: unionType([lazyType(() => One$inboundSchema), numberType().int()]).optional(),
37255
+ vendor_type: nullableType(unionType([lazyType(() => VendorType1$inboundSchema), numberType().int()])).optional(),
37256
+ supervisor: lazyType(() => Supervisor$inboundSchema).optional(),
37257
+ qr_code: nullableType(stringType()).optional(),
37258
+ head_shot: nullableType(ImageSet$inboundSchema).optional(),
37259
+ drivers_license: nullableType(ImageSet$inboundSchema).optional(),
37260
+ image_urls: nullableType(ImageSet$inboundSchema).optional(),
37261
+ payment_profile: nullableType(unionType([
37262
+ unionType([
37263
+ lazyType(() => PaymentProfile1$inboundSchema),
37264
+ numberType().int()
37265
+ ]),
37266
+ numberType().int()
37267
+ ])).optional(),
37268
+ primary_facility: nullableType(Facility$inboundSchema).optional(),
37269
+ primary_department: nullableType(Department$inboundSchema).optional(),
37270
+ company: nullableType(Company$inboundSchema).optional(),
37271
+ credentialing_subscription: nullableType(Subscription$inboundSchema).optional(),
37272
+ scrubs_subscription: nullableType(Subscription$inboundSchema).optional(),
37273
+ payment_responsibility: nullableType(lazyType(() => PaymentResponsibility$inboundSchema)).optional(),
37274
+ background_check_date_expires: nullableType(stringType()).optional()
37275
+ }).transform((v2) => {
37276
+ return remap(v2, {
37277
+ email_recepient: "emailRecepient",
37278
+ send_weekly_summary_email: "sendWeeklySummaryEmail",
37279
+ vendor_type: "vendorType",
37280
+ qr_code: "qrCode",
37281
+ head_shot: "headShot",
37282
+ drivers_license: "driversLicense",
37283
+ image_urls: "imageUrls",
37284
+ payment_profile: "paymentProfile",
37285
+ primary_facility: "primaryFacility",
37286
+ primary_department: "primaryDepartment",
37287
+ credentialing_subscription: "credentialingSubscription",
37288
+ scrubs_subscription: "scrubsSubscription",
37289
+ payment_responsibility: "paymentResponsibility",
37290
+ background_check_date_expires: "backgroundCheckDateExpires"
37291
+ });
37292
+ });
37293
+ Vendor$outboundSchema = objectType({
37294
+ id: numberType().int().optional(),
37295
+ emailRecepient: nullableType(stringType()).optional(),
37296
+ sendWeeklySummaryEmail: nullableType(booleanType()).optional(),
37297
+ title: nullableType(stringType()).optional(),
37298
+ user: unionType([lazyType(() => One$outboundSchema), numberType().int()]).optional(),
37299
+ vendorType: nullableType(unionType([lazyType(() => VendorType1$outboundSchema), numberType().int()])).optional(),
37300
+ supervisor: lazyType(() => Supervisor$outboundSchema).optional(),
37301
+ qrCode: nullableType(stringType()).optional(),
37302
+ headShot: nullableType(ImageSet$outboundSchema).optional(),
37303
+ driversLicense: nullableType(ImageSet$outboundSchema).optional(),
37304
+ imageUrls: nullableType(ImageSet$outboundSchema).optional(),
37305
+ paymentProfile: nullableType(unionType([
37306
+ unionType([lazyType(() => PaymentProfile1$outboundSchema), numberType().int()]),
37307
+ numberType().int()
37308
+ ])).optional(),
37309
+ primaryFacility: nullableType(Facility$outboundSchema).optional(),
37310
+ primaryDepartment: nullableType(Department$outboundSchema).optional(),
37311
+ company: nullableType(Company$outboundSchema).optional(),
37312
+ credentialingSubscription: nullableType(Subscription$outboundSchema).optional(),
37313
+ scrubsSubscription: nullableType(Subscription$outboundSchema).optional(),
37314
+ paymentResponsibility: nullableType(lazyType(() => PaymentResponsibility$outboundSchema)).optional(),
37315
+ backgroundCheckDateExpires: nullableType(stringType()).optional()
37316
+ }).transform((v2) => {
37317
+ return remap(v2, {
37318
+ emailRecepient: "email_recepient",
37319
+ sendWeeklySummaryEmail: "send_weekly_summary_email",
37320
+ vendorType: "vendor_type",
37321
+ qrCode: "qr_code",
37322
+ headShot: "head_shot",
37323
+ driversLicense: "drivers_license",
37324
+ imageUrls: "image_urls",
37325
+ paymentProfile: "payment_profile",
37326
+ primaryFacility: "primary_facility",
37327
+ primaryDepartment: "primary_department",
37328
+ credentialingSubscription: "credentialing_subscription",
37329
+ scrubsSubscription: "scrubs_subscription",
37330
+ paymentResponsibility: "payment_responsibility",
37331
+ backgroundCheckDateExpires: "background_check_date_expires"
37332
+ });
37333
+ });
37334
+ ((Vendor$) => {
37335
+ Vendor$.inboundSchema = Vendor$inboundSchema;
37336
+ Vendor$.outboundSchema = Vendor$outboundSchema;
37337
+ })(Vendor$ ||= {});
37338
+ });
37339
+
36918
37340
  // src/models/components/user.ts
36919
- var UserType, TokenType, UserType$inboundSchema, UserType$outboundSchema, UserType$, UserUser$inboundSchema, UserUser$outboundSchema, UserUser$, TokenType$inboundSchema, TokenType$outboundSchema, TokenType$, UserToken$inboundSchema, UserToken$outboundSchema, UserToken$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$, InventoryManager$inboundSchema, InventoryManager$outboundSchema, InventoryManager$, User$inboundSchema, User$outboundSchema, User$;
37341
+ var UserType, TokenType, UserType$inboundSchema, UserType$outboundSchema, UserType$, UserUser$inboundSchema, UserUser$outboundSchema, UserUser$, TokenType$inboundSchema, TokenType$outboundSchema, TokenType$, UserToken$inboundSchema, UserToken$outboundSchema, UserToken$, InventoryManager$inboundSchema, InventoryManager$outboundSchema, InventoryManager$, User$inboundSchema, User$outboundSchema, User$;
36920
37342
  var init_user = __esm(() => {
36921
37343
  init_lib();
36922
37344
  init_primitives();
36923
37345
  init_company();
36924
37346
  init_contact();
36925
37347
  init_imageset();
37348
+ init_vendor();
36926
37349
  UserType = {
36927
37350
  Api: "API",
36928
37351
  Admin: "Admin",
@@ -36952,7 +37375,7 @@ var init_user = __esm(() => {
36952
37375
  phone: nullableType(stringType()).optional(),
36953
37376
  user_type: UserType$inboundSchema,
36954
37377
  timezone: nullableType(stringType()).optional(),
36955
- image_urls: ImageSet$inboundSchema.optional()
37378
+ image_urls: nullableType(ImageSet$inboundSchema).optional()
36956
37379
  }).transform((v2) => {
36957
37380
  return remap(v2, {
36958
37381
  first_name: "firstName",
@@ -36969,7 +37392,7 @@ var init_user = __esm(() => {
36969
37392
  phone: nullableType(stringType()).optional(),
36970
37393
  userType: UserType$outboundSchema,
36971
37394
  timezone: nullableType(stringType()).optional(),
36972
- imageUrls: ImageSet$outboundSchema.optional()
37395
+ imageUrls: nullableType(ImageSet$outboundSchema).optional()
36973
37396
  }).transform((v2) => {
36974
37397
  return remap(v2, {
36975
37398
  firstName: "first_name",
@@ -37008,12 +37431,6 @@ var init_user = __esm(() => {
37008
37431
  UserToken$.inboundSchema = UserToken$inboundSchema;
37009
37432
  UserToken$.outboundSchema = UserToken$outboundSchema;
37010
37433
  })(UserToken$ ||= {});
37011
- Vendor$inboundSchema = objectType({});
37012
- Vendor$outboundSchema = objectType({});
37013
- ((Vendor$) => {
37014
- Vendor$.inboundSchema = Vendor$inboundSchema;
37015
- Vendor$.outboundSchema = Vendor$outboundSchema;
37016
- })(Vendor$ ||= {});
37017
37434
  InventoryManager$inboundSchema = objectType({});
37018
37435
  InventoryManager$outboundSchema = objectType({});
37019
37436
  ((InventoryManager$) => {
@@ -37025,10 +37442,10 @@ var init_user = __esm(() => {
37025
37442
  success: booleanType(),
37026
37443
  user: lazyType(() => UserUser$inboundSchema),
37027
37444
  user_token: lazyType(() => UserToken$inboundSchema),
37028
- vendor: lazyType(() => Vendor$inboundSchema).optional(),
37445
+ vendor: Vendor$inboundSchema.optional(),
37029
37446
  inventory_manager: lazyType(() => InventoryManager$inboundSchema).optional(),
37030
37447
  contact: Contact$inboundSchema.optional(),
37031
- company: Company$inboundSchema.optional()
37448
+ company: nullableType(Company$inboundSchema).optional()
37032
37449
  }).transform((v2) => {
37033
37450
  return remap(v2, {
37034
37451
  is_gatekeeper: "isGatekeeper",
@@ -37041,10 +37458,10 @@ var init_user = __esm(() => {
37041
37458
  success: booleanType(),
37042
37459
  user: lazyType(() => UserUser$outboundSchema),
37043
37460
  userToken: lazyType(() => UserToken$outboundSchema),
37044
- vendor: lazyType(() => Vendor$outboundSchema).optional(),
37461
+ vendor: Vendor$outboundSchema.optional(),
37045
37462
  inventoryManager: lazyType(() => InventoryManager$outboundSchema).optional(),
37046
37463
  contact: Contact$outboundSchema.optional(),
37047
- company: Company$outboundSchema.optional()
37464
+ company: nullableType(Company$outboundSchema).optional()
37048
37465
  }).transform((v2) => {
37049
37466
  return remap(v2, {
37050
37467
  isGatekeeper: "is_gatekeeper",
@@ -37099,6 +37516,51 @@ var init_vendorcredentialslim = __esm(() => {
37099
37516
  })(VendorCredentialSlim$ ||= {});
37100
37517
  });
37101
37518
 
37519
+ // src/models/components/vendorfacilitystatusview.ts
37520
+ var VendorFacilityStatusView$inboundSchema, VendorFacilityStatusView$outboundSchema, VendorFacilityStatusView$;
37521
+ var init_vendorfacilitystatusview = __esm(() => {
37522
+ init_lib();
37523
+ init_primitives();
37524
+ VendorFacilityStatusView$inboundSchema = objectType({
37525
+ vendor_id: numberType().int().optional(),
37526
+ facility_id: numberType().int().optional(),
37527
+ facility_name: stringType().optional(),
37528
+ facility_status: nullableType(stringType()).optional(),
37529
+ vendor_scan_id: nullableType(numberType().int()).optional(),
37530
+ vendor_scan_type: nullableType(numberType().int()).optional()
37531
+ }).transform((v2) => {
37532
+ return remap(v2, {
37533
+ vendor_id: "vendorId",
37534
+ facility_id: "facilityId",
37535
+ facility_name: "facilityName",
37536
+ facility_status: "facilityStatus",
37537
+ vendor_scan_id: "vendorScanId",
37538
+ vendor_scan_type: "vendorScanType"
37539
+ });
37540
+ });
37541
+ VendorFacilityStatusView$outboundSchema = objectType({
37542
+ vendorId: numberType().int().optional(),
37543
+ facilityId: numberType().int().optional(),
37544
+ facilityName: stringType().optional(),
37545
+ facilityStatus: nullableType(stringType()).optional(),
37546
+ vendorScanId: nullableType(numberType().int()).optional(),
37547
+ vendorScanType: nullableType(numberType().int()).optional()
37548
+ }).transform((v2) => {
37549
+ return remap(v2, {
37550
+ vendorId: "vendor_id",
37551
+ facilityId: "facility_id",
37552
+ facilityName: "facility_name",
37553
+ facilityStatus: "facility_status",
37554
+ vendorScanId: "vendor_scan_id",
37555
+ vendorScanType: "vendor_scan_type"
37556
+ });
37557
+ });
37558
+ ((VendorFacilityStatusView$) => {
37559
+ VendorFacilityStatusView$.inboundSchema = VendorFacilityStatusView$inboundSchema;
37560
+ VendorFacilityStatusView$.outboundSchema = VendorFacilityStatusView$outboundSchema;
37561
+ })(VendorFacilityStatusView$ ||= {});
37562
+ });
37563
+
37102
37564
  // src/models/components/vendorjobtitle.ts
37103
37565
  var VendorJobTitle$inboundSchema, VendorJobTitle$outboundSchema, VendorJobTitle$;
37104
37566
  var init_vendorjobtitle = __esm(() => {
@@ -37160,12 +37622,165 @@ var init_vendorrequiredcredential = __esm(() => {
37160
37622
  })(VendorRequiredCredential$ ||= {});
37161
37623
  });
37162
37624
 
37625
+ // src/models/components/vendorscrubdetails.ts
37626
+ var VendorScrubDetails$inboundSchema, VendorScrubDetails$outboundSchema, VendorScrubDetails$;
37627
+ var init_vendorscrubdetails = __esm(() => {
37628
+ init_lib();
37629
+ init_primitives();
37630
+ VendorScrubDetails$inboundSchema = objectType({
37631
+ scrub_top_size: nullableType(stringType()).optional(),
37632
+ scrub_bottom_size: nullableType(stringType()).optional(),
37633
+ scrub_color: nullableType(stringType()).optional(),
37634
+ total_credits: nullableType(numberType().int()).optional(),
37635
+ total_debits: nullableType(numberType().int()).optional(),
37636
+ scrub_credits: nullableType(numberType().int()).optional()
37637
+ }).transform((v2) => {
37638
+ return remap(v2, {
37639
+ scrub_top_size: "scrubTopSize",
37640
+ scrub_bottom_size: "scrubBottomSize",
37641
+ scrub_color: "scrubColor",
37642
+ total_credits: "totalCredits",
37643
+ total_debits: "totalDebits",
37644
+ scrub_credits: "scrubCredits"
37645
+ });
37646
+ });
37647
+ VendorScrubDetails$outboundSchema = objectType({
37648
+ scrubTopSize: nullableType(stringType()).optional(),
37649
+ scrubBottomSize: nullableType(stringType()).optional(),
37650
+ scrubColor: nullableType(stringType()).optional(),
37651
+ totalCredits: nullableType(numberType().int()).optional(),
37652
+ totalDebits: nullableType(numberType().int()).optional(),
37653
+ scrubCredits: nullableType(numberType().int()).optional()
37654
+ }).transform((v2) => {
37655
+ return remap(v2, {
37656
+ scrubTopSize: "scrub_top_size",
37657
+ scrubBottomSize: "scrub_bottom_size",
37658
+ scrubColor: "scrub_color",
37659
+ totalCredits: "total_credits",
37660
+ totalDebits: "total_debits",
37661
+ scrubCredits: "scrub_credits"
37662
+ });
37663
+ });
37664
+ ((VendorScrubDetails$) => {
37665
+ VendorScrubDetails$.inboundSchema = VendorScrubDetails$inboundSchema;
37666
+ VendorScrubDetails$.outboundSchema = VendorScrubDetails$outboundSchema;
37667
+ })(VendorScrubDetails$ ||= {});
37668
+ });
37669
+
37670
+ // src/models/components/vendorscrubpurchase.ts
37671
+ var VendorScrubPurchase$inboundSchema, VendorScrubPurchase$outboundSchema, VendorScrubPurchase$;
37672
+ var init_vendorscrubpurchase = __esm(() => {
37673
+ init_lib();
37674
+ init_primitives();
37675
+ VendorScrubPurchase$inboundSchema = objectType({
37676
+ id: numberType().int().optional(),
37677
+ purchase_date: nullableType(stringType()).optional(),
37678
+ quantity: nullableType(numberType().int()).optional(),
37679
+ total: nullableType(numberType().int()).optional()
37680
+ }).transform((v2) => {
37681
+ return remap(v2, {
37682
+ purchase_date: "purchaseDate"
37683
+ });
37684
+ });
37685
+ VendorScrubPurchase$outboundSchema = objectType({
37686
+ id: numberType().int().optional(),
37687
+ purchaseDate: nullableType(stringType()).optional(),
37688
+ quantity: nullableType(numberType().int()).optional(),
37689
+ total: nullableType(numberType().int()).optional()
37690
+ }).transform((v2) => {
37691
+ return remap(v2, {
37692
+ purchaseDate: "purchase_date"
37693
+ });
37694
+ });
37695
+ ((VendorScrubPurchase$) => {
37696
+ VendorScrubPurchase$.inboundSchema = VendorScrubPurchase$inboundSchema;
37697
+ VendorScrubPurchase$.outboundSchema = VendorScrubPurchase$outboundSchema;
37698
+ })(VendorScrubPurchase$ ||= {});
37699
+ });
37700
+
37701
+ // src/models/components/webhookendpoint.ts
37702
+ var SignatureAlgo, SignatureAlgo$inboundSchema, SignatureAlgo$outboundSchema, SignatureAlgo$, Consumers$inboundSchema, Consumers$outboundSchema, Consumers$, WebhookEndpoint$inboundSchema, WebhookEndpoint$outboundSchema, WebhookEndpoint$;
37703
+ var init_webhookendpoint = __esm(() => {
37704
+ init_lib();
37705
+ init_primitives();
37706
+ SignatureAlgo = {
37707
+ SigHmacSha256: "sig_hmac_sha256"
37708
+ };
37709
+ SignatureAlgo$inboundSchema = nativeEnumType(SignatureAlgo);
37710
+ SignatureAlgo$outboundSchema = SignatureAlgo$inboundSchema;
37711
+ ((SignatureAlgo$) => {
37712
+ SignatureAlgo$.inboundSchema = SignatureAlgo$inboundSchema;
37713
+ SignatureAlgo$.outboundSchema = SignatureAlgo$outboundSchema;
37714
+ })(SignatureAlgo$ ||= {});
37715
+ Consumers$inboundSchema = objectType({
37716
+ system_id: nullableType(numberType().int()).optional(),
37717
+ facility_id: nullableType(numberType().int()).optional(),
37718
+ company_id: nullableType(numberType().int()).optional(),
37719
+ user_id: nullableType(numberType().int()).optional()
37720
+ }).transform((v2) => {
37721
+ return remap(v2, {
37722
+ system_id: "systemId",
37723
+ facility_id: "facilityId",
37724
+ company_id: "companyId",
37725
+ user_id: "userId"
37726
+ });
37727
+ });
37728
+ Consumers$outboundSchema = objectType({
37729
+ systemId: nullableType(numberType().int()).optional(),
37730
+ facilityId: nullableType(numberType().int()).optional(),
37731
+ companyId: nullableType(numberType().int()).optional(),
37732
+ userId: nullableType(numberType().int()).optional()
37733
+ }).transform((v2) => {
37734
+ return remap(v2, {
37735
+ systemId: "system_id",
37736
+ facilityId: "facility_id",
37737
+ companyId: "company_id",
37738
+ userId: "user_id"
37739
+ });
37740
+ });
37741
+ ((Consumers$) => {
37742
+ Consumers$.inboundSchema = Consumers$inboundSchema;
37743
+ Consumers$.outboundSchema = Consumers$outboundSchema;
37744
+ })(Consumers$ ||= {});
37745
+ WebhookEndpoint$inboundSchema = objectType({
37746
+ id: numberType().int(),
37747
+ webhook_url: stringType(),
37748
+ signature_algo: SignatureAlgo$inboundSchema.default("sig_hmac_sha256"),
37749
+ subscriptions: nullableType(arrayType(stringType())),
37750
+ consumers: lazyType(() => Consumers$inboundSchema),
37751
+ secrets: nullableType(arrayType(stringType())).optional()
37752
+ }).transform((v2) => {
37753
+ return remap(v2, {
37754
+ webhook_url: "webhookUrl",
37755
+ signature_algo: "signatureAlgo"
37756
+ });
37757
+ });
37758
+ WebhookEndpoint$outboundSchema = objectType({
37759
+ id: numberType().int(),
37760
+ webhookUrl: stringType(),
37761
+ signatureAlgo: SignatureAlgo$outboundSchema.default("sig_hmac_sha256"),
37762
+ subscriptions: nullableType(arrayType(stringType())),
37763
+ consumers: lazyType(() => Consumers$outboundSchema),
37764
+ secrets: nullableType(arrayType(stringType())).optional()
37765
+ }).transform((v2) => {
37766
+ return remap(v2, {
37767
+ webhookUrl: "webhook_url",
37768
+ signatureAlgo: "signature_algo"
37769
+ });
37770
+ });
37771
+ ((WebhookEndpoint$) => {
37772
+ WebhookEndpoint$.inboundSchema = WebhookEndpoint$inboundSchema;
37773
+ WebhookEndpoint$.outboundSchema = WebhookEndpoint$outboundSchema;
37774
+ })(WebhookEndpoint$ ||= {});
37775
+ });
37776
+
37163
37777
  // src/models/components/index.ts
37164
37778
  var init_components = __esm(() => {
37165
37779
  init_activestatus();
37166
37780
  init_company();
37167
37781
  init_contact();
37168
37782
  init_credentialstatus();
37783
+ init_department();
37169
37784
  init_departmentsummary();
37170
37785
  init_desc();
37171
37786
  init_expand();
@@ -37181,14 +37796,21 @@ var init_components = __esm(() => {
37181
37796
  init_pager();
37182
37797
  init_passwordrequiredresponse();
37183
37798
  init_samlloginrequiredresponse();
37799
+ init_scantype();
37184
37800
  init_security2();
37801
+ init_subscription();
37185
37802
  init_supportarticle();
37186
37803
  init_systemsummary();
37187
37804
  init_user();
37805
+ init_vendor();
37188
37806
  init_vendorcredentialslim();
37807
+ init_vendorfacilitystatusview();
37189
37808
  init_vendorjobtitle();
37190
37809
  init_vendorrequiredcredential();
37810
+ init_vendorscrubdetails();
37811
+ init_vendorscrubpurchase();
37191
37812
  init_vendortype();
37813
+ init_webhookendpoint();
37192
37814
  });
37193
37815
 
37194
37816
  // src/models/errors/apierrorresponse.ts
@@ -37405,39 +38027,127 @@ var init_getvendorinvoicedetails = __esm(() => {
37405
38027
  })(GetVendorInvoiceDetailsRequest$ ||= {});
37406
38028
  });
37407
38029
 
37408
- // src/models/operations/listorsearchfacilities.ts
37409
- var ListOrSearchFacilitiesRequest$inboundSchema, ListOrSearchFacilitiesRequest$outboundSchema, ListOrSearchFacilitiesRequest$, ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema, ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema, ListOrSearchFacilitiesListOrSearchFacilitiesOk$, ListOrSearchFacilitiesResponse$inboundSchema, ListOrSearchFacilitiesResponse$outboundSchema, ListOrSearchFacilitiesResponse$;
37410
- var init_listorsearchfacilities = __esm(() => {
38030
+ // src/models/operations/getvendorsdetails.ts
38031
+ var GetVendorsDetailsRequest$inboundSchema, GetVendorsDetailsRequest$outboundSchema, GetVendorsDetailsRequest$;
38032
+ var init_getvendorsdetails = __esm(() => {
37411
38033
  init_lib();
37412
38034
  init_primitives();
37413
38035
  init_components();
37414
- ListOrSearchFacilitiesRequest$inboundSchema = objectType({
37415
- sort: nullableType(stringType()).optional(),
37416
- desc: Desc$inboundSchema.optional(),
37417
- page: numberType().int().optional(),
37418
- items_per_page: numberType().int().optional(),
37419
- expand: arrayType(Expand$inboundSchema).optional(),
37420
- system_id: numberType().int().optional(),
37421
- name_like: stringType().optional(),
37422
- state_like: stringType().optional(),
37423
- active_status: ActiveStatus$inboundSchema.default("Active")
38036
+ GetVendorsDetailsRequest$inboundSchema = objectType({
38037
+ vendor_id_or_me: stringType(),
38038
+ expand: arrayType(Expand$inboundSchema).optional()
37424
38039
  }).transform((v2) => {
37425
38040
  return remap(v2, {
37426
- items_per_page: "itemsPerPage",
37427
- system_id: "systemId",
37428
- name_like: "nameLike",
37429
- state_like: "stateLike",
37430
- active_status: "activeStatus"
38041
+ vendor_id_or_me: "vendorIdOrMe"
37431
38042
  });
37432
38043
  });
37433
- ListOrSearchFacilitiesRequest$outboundSchema = objectType({
37434
- sort: nullableType(stringType()).optional(),
37435
- desc: Desc$outboundSchema.optional(),
37436
- page: numberType().int().optional(),
37437
- itemsPerPage: numberType().int().optional(),
37438
- expand: arrayType(Expand$outboundSchema).optional(),
37439
- systemId: numberType().int().optional(),
37440
- nameLike: stringType().optional(),
38044
+ GetVendorsDetailsRequest$outboundSchema = objectType({
38045
+ vendorIdOrMe: stringType(),
38046
+ expand: arrayType(Expand$outboundSchema).optional()
38047
+ }).transform((v2) => {
38048
+ return remap(v2, {
38049
+ vendorIdOrMe: "vendor_id_or_me"
38050
+ });
38051
+ });
38052
+ ((GetVendorsDetailsRequest$) => {
38053
+ GetVendorsDetailsRequest$.inboundSchema = GetVendorsDetailsRequest$inboundSchema;
38054
+ GetVendorsDetailsRequest$.outboundSchema = GetVendorsDetailsRequest$outboundSchema;
38055
+ })(GetVendorsDetailsRequest$ ||= {});
38056
+ });
38057
+
38058
+ // src/models/operations/getwebhookendpoint.ts
38059
+ var GetWebhookEndpointRequest$inboundSchema, GetWebhookEndpointRequest$outboundSchema, GetWebhookEndpointRequest$;
38060
+ var init_getwebhookendpoint = __esm(() => {
38061
+ init_lib();
38062
+ GetWebhookEndpointRequest$inboundSchema = objectType({
38063
+ id: numberType().int()
38064
+ });
38065
+ GetWebhookEndpointRequest$outboundSchema = objectType({
38066
+ id: numberType().int()
38067
+ });
38068
+ ((GetWebhookEndpointRequest$) => {
38069
+ GetWebhookEndpointRequest$.inboundSchema = GetWebhookEndpointRequest$inboundSchema;
38070
+ GetWebhookEndpointRequest$.outboundSchema = GetWebhookEndpointRequest$outboundSchema;
38071
+ })(GetWebhookEndpointRequest$ ||= {});
38072
+ });
38073
+
38074
+ // src/models/operations/listallwebhookendpoints.ts
38075
+ var ListAllWebhookEndpointsRequest$inboundSchema, ListAllWebhookEndpointsRequest$outboundSchema, ListAllWebhookEndpointsRequest$, ListAllWebhookEndpointsResponseBody$inboundSchema, ListAllWebhookEndpointsResponseBody$outboundSchema, ListAllWebhookEndpointsResponseBody$;
38076
+ var init_listallwebhookendpoints = __esm(() => {
38077
+ init_lib();
38078
+ init_primitives();
38079
+ init_components();
38080
+ ListAllWebhookEndpointsRequest$inboundSchema = objectType({
38081
+ page: numberType().int().optional(),
38082
+ items_per_page: numberType().int().optional(),
38083
+ desc: Desc$inboundSchema.optional(),
38084
+ sort: nullableType(stringType()).optional()
38085
+ }).transform((v2) => {
38086
+ return remap(v2, {
38087
+ items_per_page: "itemsPerPage"
38088
+ });
38089
+ });
38090
+ ListAllWebhookEndpointsRequest$outboundSchema = objectType({
38091
+ page: numberType().int().optional(),
38092
+ itemsPerPage: numberType().int().optional(),
38093
+ desc: Desc$outboundSchema.optional(),
38094
+ sort: nullableType(stringType()).optional()
38095
+ }).transform((v2) => {
38096
+ return remap(v2, {
38097
+ itemsPerPage: "items_per_page"
38098
+ });
38099
+ });
38100
+ ((ListAllWebhookEndpointsRequest$) => {
38101
+ ListAllWebhookEndpointsRequest$.inboundSchema = ListAllWebhookEndpointsRequest$inboundSchema;
38102
+ ListAllWebhookEndpointsRequest$.outboundSchema = ListAllWebhookEndpointsRequest$outboundSchema;
38103
+ })(ListAllWebhookEndpointsRequest$ ||= {});
38104
+ ListAllWebhookEndpointsResponseBody$inboundSchema = objectType({
38105
+ pager: Pager$inboundSchema,
38106
+ items: arrayType(WebhookEndpoint$inboundSchema)
38107
+ });
38108
+ ListAllWebhookEndpointsResponseBody$outboundSchema = objectType({
38109
+ pager: Pager$outboundSchema,
38110
+ items: arrayType(WebhookEndpoint$outboundSchema)
38111
+ });
38112
+ ((ListAllWebhookEndpointsResponseBody$) => {
38113
+ ListAllWebhookEndpointsResponseBody$.inboundSchema = ListAllWebhookEndpointsResponseBody$inboundSchema;
38114
+ ListAllWebhookEndpointsResponseBody$.outboundSchema = ListAllWebhookEndpointsResponseBody$outboundSchema;
38115
+ })(ListAllWebhookEndpointsResponseBody$ ||= {});
38116
+ });
38117
+
38118
+ // src/models/operations/listorsearchfacilities.ts
38119
+ var ListOrSearchFacilitiesRequest$inboundSchema, ListOrSearchFacilitiesRequest$outboundSchema, ListOrSearchFacilitiesRequest$, ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema, ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema, ListOrSearchFacilitiesListOrSearchFacilitiesOk$, ListOrSearchFacilitiesResponse$inboundSchema, ListOrSearchFacilitiesResponse$outboundSchema, ListOrSearchFacilitiesResponse$;
38120
+ var init_listorsearchfacilities = __esm(() => {
38121
+ init_lib();
38122
+ init_primitives();
38123
+ init_components();
38124
+ ListOrSearchFacilitiesRequest$inboundSchema = objectType({
38125
+ sort: nullableType(stringType()).optional(),
38126
+ desc: Desc$inboundSchema.optional(),
38127
+ page: numberType().int().optional(),
38128
+ items_per_page: numberType().int().optional(),
38129
+ expand: arrayType(Expand$inboundSchema).optional(),
38130
+ system_id: numberType().int().optional(),
38131
+ name_like: stringType().optional(),
38132
+ state_like: stringType().optional(),
38133
+ active_status: ActiveStatus$inboundSchema.default("Active")
38134
+ }).transform((v2) => {
38135
+ return remap(v2, {
38136
+ items_per_page: "itemsPerPage",
38137
+ system_id: "systemId",
38138
+ name_like: "nameLike",
38139
+ state_like: "stateLike",
38140
+ active_status: "activeStatus"
38141
+ });
38142
+ });
38143
+ ListOrSearchFacilitiesRequest$outboundSchema = objectType({
38144
+ sort: nullableType(stringType()).optional(),
38145
+ desc: Desc$outboundSchema.optional(),
38146
+ page: numberType().int().optional(),
38147
+ itemsPerPage: numberType().int().optional(),
38148
+ expand: arrayType(Expand$outboundSchema).optional(),
38149
+ systemId: numberType().int().optional(),
38150
+ nameLike: stringType().optional(),
37441
38151
  stateLike: stringType().optional(),
37442
38152
  activeStatus: ActiveStatus$outboundSchema.default("Active")
37443
38153
  }).transform((v2) => {
@@ -37455,11 +38165,11 @@ var init_listorsearchfacilities = __esm(() => {
37455
38165
  })(ListOrSearchFacilitiesRequest$ ||= {});
37456
38166
  ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema = objectType({
37457
38167
  pager: Pager$inboundSchema,
37458
- items: arrayType(Facility$inboundSchema)
38168
+ items: arrayType(nullableType(Facility$inboundSchema))
37459
38169
  });
37460
38170
  ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema = objectType({
37461
38171
  pager: Pager$outboundSchema,
37462
- items: arrayType(Facility$outboundSchema)
38172
+ items: arrayType(nullableType(Facility$outboundSchema))
37463
38173
  });
37464
38174
  ((ListOrSearchFacilitiesListOrSearchFacilitiesOk$) => {
37465
38175
  ListOrSearchFacilitiesListOrSearchFacilitiesOk$.inboundSchema = ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema;
@@ -37552,12 +38262,16 @@ var init_listorsearchsupportarticles = __esm(() => {
37552
38262
  });
37553
38263
 
37554
38264
  // src/models/operations/listvendorcredentials.ts
37555
- var ListVendorCredentialsRequest$inboundSchema, ListVendorCredentialsRequest$outboundSchema, ListVendorCredentialsRequest$, Credentials$inboundSchema, Credentials$outboundSchema, Credentials$, ListVendorCredentialsResponseBody$inboundSchema, ListVendorCredentialsResponseBody$outboundSchema, ListVendorCredentialsResponseBody$;
38265
+ var ListVendorCredentialsRequest$inboundSchema, ListVendorCredentialsRequest$outboundSchema, ListVendorCredentialsRequest$, Credentials$inboundSchema, Credentials$outboundSchema, Credentials$, Pager$inboundSchema2, Pager$outboundSchema2, Pager$2, ListVendorCredentialsResponseBody$inboundSchema, ListVendorCredentialsResponseBody$outboundSchema, ListVendorCredentialsResponseBody$, ListVendorCredentialsResponse$inboundSchema, ListVendorCredentialsResponse$outboundSchema, ListVendorCredentialsResponse$;
37556
38266
  var init_listvendorcredentials = __esm(() => {
37557
38267
  init_lib();
37558
38268
  init_primitives();
37559
38269
  init_components();
37560
38270
  ListVendorCredentialsRequest$inboundSchema = objectType({
38271
+ sort: nullableType(stringType()).optional(),
38272
+ desc: Desc$inboundSchema.optional(),
38273
+ page: numberType().int().optional(),
38274
+ items_per_page: numberType().int().optional(),
37561
38275
  credential_status: CredentialStatus$inboundSchema.default("Pending Vendor"),
37562
38276
  facility_id: numberType().optional(),
37563
38277
  include_vc: numberType().optional(),
@@ -37566,6 +38280,7 @@ var init_listvendorcredentials = __esm(() => {
37566
38280
  vendor_id: numberType().int()
37567
38281
  }).transform((v2) => {
37568
38282
  return remap(v2, {
38283
+ items_per_page: "itemsPerPage",
37569
38284
  credential_status: "credentialStatus",
37570
38285
  facility_id: "facilityId",
37571
38286
  include_vc: "includeVc",
@@ -37574,6 +38289,10 @@ var init_listvendorcredentials = __esm(() => {
37574
38289
  });
37575
38290
  });
37576
38291
  ListVendorCredentialsRequest$outboundSchema = objectType({
38292
+ sort: nullableType(stringType()).optional(),
38293
+ desc: Desc$outboundSchema.optional(),
38294
+ page: numberType().int().optional(),
38295
+ itemsPerPage: numberType().int().optional(),
37577
38296
  credentialStatus: CredentialStatus$outboundSchema.default("Pending Vendor"),
37578
38297
  facilityId: numberType().optional(),
37579
38298
  includeVc: numberType().optional(),
@@ -37582,6 +38301,7 @@ var init_listvendorcredentials = __esm(() => {
37582
38301
  vendorId: numberType().int()
37583
38302
  }).transform((v2) => {
37584
38303
  return remap(v2, {
38304
+ itemsPerPage: "items_per_page",
37585
38305
  credentialStatus: "credential_status",
37586
38306
  facilityId: "facility_id",
37587
38307
  includeVc: "include_vc",
@@ -37605,11 +38325,23 @@ var init_listvendorcredentials = __esm(() => {
37605
38325
  Credentials$.inboundSchema = Credentials$inboundSchema;
37606
38326
  Credentials$.outboundSchema = Credentials$outboundSchema;
37607
38327
  })(Credentials$ ||= {});
38328
+ Pager$inboundSchema2 = objectType({
38329
+ pager: Pager$inboundSchema,
38330
+ items: arrayType(VendorCredentialSlim$inboundSchema)
38331
+ });
38332
+ Pager$outboundSchema2 = objectType({
38333
+ pager: Pager$outboundSchema,
38334
+ items: arrayType(VendorCredentialSlim$outboundSchema)
38335
+ });
38336
+ ((Pager$) => {
38337
+ Pager$.inboundSchema = Pager$inboundSchema2;
38338
+ Pager$.outboundSchema = Pager$outboundSchema2;
38339
+ })(Pager$2 ||= {});
37608
38340
  ListVendorCredentialsResponseBody$inboundSchema = objectType({
37609
38341
  vendor_required_credentials: arrayType(VendorRequiredCredential$inboundSchema),
37610
38342
  credentials: arrayType(lazyType(() => Credentials$inboundSchema)),
37611
38343
  vendor_credentials: arrayType(VendorCredentialSlim$inboundSchema),
37612
- pager: Pager$inboundSchema
38344
+ pager: lazyType(() => Pager$inboundSchema2)
37613
38345
  }).transform((v2) => {
37614
38346
  return remap(v2, {
37615
38347
  vendor_required_credentials: "vendorRequiredCredentials",
@@ -37620,7 +38352,7 @@ var init_listvendorcredentials = __esm(() => {
37620
38352
  vendorRequiredCredentials: arrayType(VendorRequiredCredential$outboundSchema),
37621
38353
  credentials: arrayType(lazyType(() => Credentials$outboundSchema)),
37622
38354
  vendorCredentials: arrayType(VendorCredentialSlim$outboundSchema),
37623
- pager: Pager$outboundSchema
38355
+ pager: lazyType(() => Pager$outboundSchema2)
37624
38356
  }).transform((v2) => {
37625
38357
  return remap(v2, {
37626
38358
  vendorRequiredCredentials: "vendor_required_credentials",
@@ -37631,6 +38363,90 @@ var init_listvendorcredentials = __esm(() => {
37631
38363
  ListVendorCredentialsResponseBody$.inboundSchema = ListVendorCredentialsResponseBody$inboundSchema;
37632
38364
  ListVendorCredentialsResponseBody$.outboundSchema = ListVendorCredentialsResponseBody$outboundSchema;
37633
38365
  })(ListVendorCredentialsResponseBody$ ||= {});
38366
+ ListVendorCredentialsResponse$inboundSchema = objectType({
38367
+ Result: lazyType(() => ListVendorCredentialsResponseBody$inboundSchema)
38368
+ }).transform((v2) => {
38369
+ return remap(v2, {
38370
+ Result: "result"
38371
+ });
38372
+ });
38373
+ ListVendorCredentialsResponse$outboundSchema = objectType({
38374
+ result: lazyType(() => ListVendorCredentialsResponseBody$outboundSchema)
38375
+ }).transform((v2) => {
38376
+ return remap(v2, {
38377
+ result: "Result"
38378
+ });
38379
+ });
38380
+ ((ListVendorCredentialsResponse$) => {
38381
+ ListVendorCredentialsResponse$.inboundSchema = ListVendorCredentialsResponse$inboundSchema;
38382
+ ListVendorCredentialsResponse$.outboundSchema = ListVendorCredentialsResponse$outboundSchema;
38383
+ })(ListVendorCredentialsResponse$ ||= {});
38384
+ });
38385
+
38386
+ // src/models/operations/listvendorfacilitystatuses.ts
38387
+ var ListVendorFacilityStatusesRequest$inboundSchema, ListVendorFacilityStatusesRequest$outboundSchema, ListVendorFacilityStatusesRequest$, ListVendorFacilityStatusesResponseBody$inboundSchema, ListVendorFacilityStatusesResponseBody$outboundSchema, ListVendorFacilityStatusesResponseBody$, ListVendorFacilityStatusesResponse$inboundSchema, ListVendorFacilityStatusesResponse$outboundSchema, ListVendorFacilityStatusesResponse$;
38388
+ var init_listvendorfacilitystatuses = __esm(() => {
38389
+ init_lib();
38390
+ init_primitives();
38391
+ init_components();
38392
+ ListVendorFacilityStatusesRequest$inboundSchema = objectType({
38393
+ sort: nullableType(stringType()).optional(),
38394
+ desc: Desc$inboundSchema.optional(),
38395
+ page: numberType().int().optional(),
38396
+ items_per_page: numberType().int().optional(),
38397
+ scan_type: ScanType$inboundSchema.optional()
38398
+ }).transform((v2) => {
38399
+ return remap(v2, {
38400
+ items_per_page: "itemsPerPage",
38401
+ scan_type: "scanType"
38402
+ });
38403
+ });
38404
+ ListVendorFacilityStatusesRequest$outboundSchema = objectType({
38405
+ sort: nullableType(stringType()).optional(),
38406
+ desc: Desc$outboundSchema.optional(),
38407
+ page: numberType().int().optional(),
38408
+ itemsPerPage: numberType().int().optional(),
38409
+ scanType: ScanType$outboundSchema.optional()
38410
+ }).transform((v2) => {
38411
+ return remap(v2, {
38412
+ itemsPerPage: "items_per_page",
38413
+ scanType: "scan_type"
38414
+ });
38415
+ });
38416
+ ((ListVendorFacilityStatusesRequest$) => {
38417
+ ListVendorFacilityStatusesRequest$.inboundSchema = ListVendorFacilityStatusesRequest$inboundSchema;
38418
+ ListVendorFacilityStatusesRequest$.outboundSchema = ListVendorFacilityStatusesRequest$outboundSchema;
38419
+ })(ListVendorFacilityStatusesRequest$ ||= {});
38420
+ ListVendorFacilityStatusesResponseBody$inboundSchema = objectType({
38421
+ items: arrayType(VendorFacilityStatusView$inboundSchema),
38422
+ pager: Pager$inboundSchema
38423
+ });
38424
+ ListVendorFacilityStatusesResponseBody$outboundSchema = objectType({
38425
+ items: arrayType(VendorFacilityStatusView$outboundSchema),
38426
+ pager: Pager$outboundSchema
38427
+ });
38428
+ ((ListVendorFacilityStatusesResponseBody$) => {
38429
+ ListVendorFacilityStatusesResponseBody$.inboundSchema = ListVendorFacilityStatusesResponseBody$inboundSchema;
38430
+ ListVendorFacilityStatusesResponseBody$.outboundSchema = ListVendorFacilityStatusesResponseBody$outboundSchema;
38431
+ })(ListVendorFacilityStatusesResponseBody$ ||= {});
38432
+ ListVendorFacilityStatusesResponse$inboundSchema = objectType({
38433
+ Result: lazyType(() => ListVendorFacilityStatusesResponseBody$inboundSchema)
38434
+ }).transform((v2) => {
38435
+ return remap(v2, {
38436
+ Result: "result"
38437
+ });
38438
+ });
38439
+ ListVendorFacilityStatusesResponse$outboundSchema = objectType({
38440
+ result: lazyType(() => ListVendorFacilityStatusesResponseBody$outboundSchema)
38441
+ }).transform((v2) => {
38442
+ return remap(v2, {
38443
+ result: "Result"
38444
+ });
38445
+ });
38446
+ ((ListVendorFacilityStatusesResponse$) => {
38447
+ ListVendorFacilityStatusesResponse$.inboundSchema = ListVendorFacilityStatusesResponse$inboundSchema;
38448
+ ListVendorFacilityStatusesResponse$.outboundSchema = ListVendorFacilityStatusesResponse$outboundSchema;
38449
+ })(ListVendorFacilityStatusesResponse$ ||= {});
37634
38450
  });
37635
38451
 
37636
38452
  // src/models/operations/listvendorinvoices.ts
@@ -37702,11 +38518,31 @@ var init_listvendorinvoices = __esm(() => {
37702
38518
  });
37703
38519
 
37704
38520
  // src/models/operations/listvendorjobtitles.ts
37705
- var ListVendorJobTitlesRequest$inboundSchema, ListVendorJobTitlesRequest$outboundSchema, ListVendorJobTitlesRequest$, ListVendorJobTitlesListVendorJobTitlesOk$inboundSchema, ListVendorJobTitlesListVendorJobTitlesOk$outboundSchema, ListVendorJobTitlesListVendorJobTitlesOk$, ListVendorJobTitlesResponse$inboundSchema, ListVendorJobTitlesResponse$outboundSchema, ListVendorJobTitlesResponse$;
38521
+ var ListVendorJobTitlesSecurity$inboundSchema, ListVendorJobTitlesSecurity$outboundSchema, ListVendorJobTitlesSecurity$, ListVendorJobTitlesRequest$inboundSchema, ListVendorJobTitlesRequest$outboundSchema, ListVendorJobTitlesRequest$, ListVendorJobTitlesListVendorJobTitlesOk$inboundSchema, ListVendorJobTitlesListVendorJobTitlesOk$outboundSchema, ListVendorJobTitlesListVendorJobTitlesOk$, ListVendorJobTitlesResponse$inboundSchema, ListVendorJobTitlesResponse$outboundSchema, ListVendorJobTitlesResponse$;
37706
38522
  var init_listvendorjobtitles = __esm(() => {
37707
38523
  init_lib();
37708
38524
  init_primitives();
37709
38525
  init_components();
38526
+ ListVendorJobTitlesSecurity$inboundSchema = objectType({
38527
+ BearerJwt: stringType().optional(),
38528
+ token: stringType().optional()
38529
+ }).transform((v2) => {
38530
+ return remap(v2, {
38531
+ BearerJwt: "bearerJwt"
38532
+ });
38533
+ });
38534
+ ListVendorJobTitlesSecurity$outboundSchema = objectType({
38535
+ bearerJwt: stringType().optional(),
38536
+ token: stringType().optional()
38537
+ }).transform((v2) => {
38538
+ return remap(v2, {
38539
+ bearerJwt: "BearerJwt"
38540
+ });
38541
+ });
38542
+ ((ListVendorJobTitlesSecurity$) => {
38543
+ ListVendorJobTitlesSecurity$.inboundSchema = ListVendorJobTitlesSecurity$inboundSchema;
38544
+ ListVendorJobTitlesSecurity$.outboundSchema = ListVendorJobTitlesSecurity$outboundSchema;
38545
+ })(ListVendorJobTitlesSecurity$ ||= {});
37710
38546
  ListVendorJobTitlesRequest$inboundSchema = objectType({
37711
38547
  sort: nullableType(stringType()).optional(),
37712
38548
  desc: Desc$inboundSchema.optional(),
@@ -37767,6 +38603,97 @@ var init_listvendorjobtitles = __esm(() => {
37767
38603
  })(ListVendorJobTitlesResponse$ ||= {});
37768
38604
  });
37769
38605
 
38606
+ // src/models/operations/listvendorscrubdetails.ts
38607
+ var ListVendorScrubDetailsRequest$inboundSchema, ListVendorScrubDetailsRequest$outboundSchema, ListVendorScrubDetailsRequest$;
38608
+ var init_listvendorscrubdetails = __esm(() => {
38609
+ init_lib();
38610
+ init_primitives();
38611
+ ListVendorScrubDetailsRequest$inboundSchema = objectType({
38612
+ vendor_id_or_me: stringType()
38613
+ }).transform((v2) => {
38614
+ return remap(v2, {
38615
+ vendor_id_or_me: "vendorIdOrMe"
38616
+ });
38617
+ });
38618
+ ListVendorScrubDetailsRequest$outboundSchema = objectType({
38619
+ vendorIdOrMe: stringType()
38620
+ }).transform((v2) => {
38621
+ return remap(v2, {
38622
+ vendorIdOrMe: "vendor_id_or_me"
38623
+ });
38624
+ });
38625
+ ((ListVendorScrubDetailsRequest$) => {
38626
+ ListVendorScrubDetailsRequest$.inboundSchema = ListVendorScrubDetailsRequest$inboundSchema;
38627
+ ListVendorScrubDetailsRequest$.outboundSchema = ListVendorScrubDetailsRequest$outboundSchema;
38628
+ })(ListVendorScrubDetailsRequest$ ||= {});
38629
+ });
38630
+
38631
+ // src/models/operations/listvendorscrubpurchases.ts
38632
+ var ListVendorScrubPurchasesRequest$inboundSchema, ListVendorScrubPurchasesRequest$outboundSchema, ListVendorScrubPurchasesRequest$, ListVendorScrubPurchasesResponseBody$inboundSchema, ListVendorScrubPurchasesResponseBody$outboundSchema, ListVendorScrubPurchasesResponseBody$, ListVendorScrubPurchasesResponse$inboundSchema, ListVendorScrubPurchasesResponse$outboundSchema, ListVendorScrubPurchasesResponse$;
38633
+ var init_listvendorscrubpurchases = __esm(() => {
38634
+ init_lib();
38635
+ init_primitives();
38636
+ init_components();
38637
+ ListVendorScrubPurchasesRequest$inboundSchema = objectType({
38638
+ sort: nullableType(stringType()).optional(),
38639
+ desc: Desc$inboundSchema.optional(),
38640
+ page: numberType().int().optional(),
38641
+ items_per_page: numberType().int().optional(),
38642
+ vendor_id_or_me: stringType()
38643
+ }).transform((v2) => {
38644
+ return remap(v2, {
38645
+ items_per_page: "itemsPerPage",
38646
+ vendor_id_or_me: "vendorIdOrMe"
38647
+ });
38648
+ });
38649
+ ListVendorScrubPurchasesRequest$outboundSchema = objectType({
38650
+ sort: nullableType(stringType()).optional(),
38651
+ desc: Desc$outboundSchema.optional(),
38652
+ page: numberType().int().optional(),
38653
+ itemsPerPage: numberType().int().optional(),
38654
+ vendorIdOrMe: stringType()
38655
+ }).transform((v2) => {
38656
+ return remap(v2, {
38657
+ itemsPerPage: "items_per_page",
38658
+ vendorIdOrMe: "vendor_id_or_me"
38659
+ });
38660
+ });
38661
+ ((ListVendorScrubPurchasesRequest$) => {
38662
+ ListVendorScrubPurchasesRequest$.inboundSchema = ListVendorScrubPurchasesRequest$inboundSchema;
38663
+ ListVendorScrubPurchasesRequest$.outboundSchema = ListVendorScrubPurchasesRequest$outboundSchema;
38664
+ })(ListVendorScrubPurchasesRequest$ ||= {});
38665
+ ListVendorScrubPurchasesResponseBody$inboundSchema = objectType({
38666
+ pager: Pager$inboundSchema,
38667
+ items: arrayType(VendorScrubPurchase$inboundSchema)
38668
+ });
38669
+ ListVendorScrubPurchasesResponseBody$outboundSchema = objectType({
38670
+ pager: Pager$outboundSchema,
38671
+ items: arrayType(VendorScrubPurchase$outboundSchema)
38672
+ });
38673
+ ((ListVendorScrubPurchasesResponseBody$) => {
38674
+ ListVendorScrubPurchasesResponseBody$.inboundSchema = ListVendorScrubPurchasesResponseBody$inboundSchema;
38675
+ ListVendorScrubPurchasesResponseBody$.outboundSchema = ListVendorScrubPurchasesResponseBody$outboundSchema;
38676
+ })(ListVendorScrubPurchasesResponseBody$ ||= {});
38677
+ ListVendorScrubPurchasesResponse$inboundSchema = objectType({
38678
+ Result: lazyType(() => ListVendorScrubPurchasesResponseBody$inboundSchema)
38679
+ }).transform((v2) => {
38680
+ return remap(v2, {
38681
+ Result: "result"
38682
+ });
38683
+ });
38684
+ ListVendorScrubPurchasesResponse$outboundSchema = objectType({
38685
+ result: lazyType(() => ListVendorScrubPurchasesResponseBody$outboundSchema)
38686
+ }).transform((v2) => {
38687
+ return remap(v2, {
38688
+ result: "Result"
38689
+ });
38690
+ });
38691
+ ((ListVendorScrubPurchasesResponse$) => {
38692
+ ListVendorScrubPurchasesResponse$.inboundSchema = ListVendorScrubPurchasesResponse$inboundSchema;
38693
+ ListVendorScrubPurchasesResponse$.outboundSchema = ListVendorScrubPurchasesResponse$outboundSchema;
38694
+ })(ListVendorScrubPurchasesResponse$ ||= {});
38695
+ });
38696
+
37770
38697
  // src/models/operations/logsuserintothesystem.ts
37771
38698
  var LogsUserIntoTheSystemRequestBody$inboundSchema, LogsUserIntoTheSystemRequestBody$outboundSchema, LogsUserIntoTheSystemRequestBody$, LogsUserIntoTheSystemResponseBody$inboundSchema, LogsUserIntoTheSystemResponseBody$outboundSchema, LogsUserIntoTheSystemResponseBody$, LogsUserIntoTheSystemResponse$inboundSchema, LogsUserIntoTheSystemResponse$outboundSchema, LogsUserIntoTheSystemResponse$;
37772
38699
  var init_logsuserintothesystem = __esm(() => {
@@ -37933,6 +38860,36 @@ var init_passwordresetrequest = __esm(() => {
37933
38860
  })(PasswordResetRequestPasswordResetRequestOk$ ||= {});
37934
38861
  });
37935
38862
 
38863
+ // src/models/operations/vendorscanout.ts
38864
+ var VendorScanOutRequest$inboundSchema, VendorScanOutRequest$outboundSchema, VendorScanOutRequest$, VendorScanOutResponseBody$inboundSchema, VendorScanOutResponseBody$outboundSchema, VendorScanOutResponseBody$;
38865
+ var init_vendorscanout = __esm(() => {
38866
+ init_lib();
38867
+ VendorScanOutRequest$inboundSchema = objectType({
38868
+ id: numberType().int()
38869
+ });
38870
+ VendorScanOutRequest$outboundSchema = objectType({
38871
+ id: numberType().int()
38872
+ });
38873
+ ((VendorScanOutRequest$) => {
38874
+ VendorScanOutRequest$.inboundSchema = VendorScanOutRequest$inboundSchema;
38875
+ VendorScanOutRequest$.outboundSchema = VendorScanOutRequest$outboundSchema;
38876
+ })(VendorScanOutRequest$ ||= {});
38877
+ VendorScanOutResponseBody$inboundSchema = objectType({
38878
+ error: nullableType(stringType()).optional(),
38879
+ reason: nullableType(stringType()).optional(),
38880
+ success: booleanType()
38881
+ });
38882
+ VendorScanOutResponseBody$outboundSchema = objectType({
38883
+ error: nullableType(stringType()).optional(),
38884
+ reason: nullableType(stringType()).optional(),
38885
+ success: booleanType()
38886
+ });
38887
+ ((VendorScanOutResponseBody$) => {
38888
+ VendorScanOutResponseBody$.inboundSchema = VendorScanOutResponseBody$inboundSchema;
38889
+ VendorScanOutResponseBody$.outboundSchema = VendorScanOutResponseBody$outboundSchema;
38890
+ })(VendorScanOutResponseBody$ ||= {});
38891
+ });
38892
+
37936
38893
  // src/models/operations/index.ts
37937
38894
  var init_operations = __esm(() => {
37938
38895
  init_createvendorregistration();
@@ -37941,15 +38898,22 @@ var init_operations = __esm(() => {
37941
38898
  init_getsupportarticle();
37942
38899
  init_getuserbyid();
37943
38900
  init_getvendorinvoicedetails();
38901
+ init_getvendorsdetails();
38902
+ init_getwebhookendpoint();
38903
+ init_listallwebhookendpoints();
37944
38904
  init_listorsearchfacilities();
37945
38905
  init_listorsearchsupportarticles();
37946
38906
  init_listvendorcredentials();
38907
+ init_listvendorfacilitystatuses();
37947
38908
  init_listvendorinvoices();
37948
38909
  init_listvendorjobtitles();
38910
+ init_listvendorscrubdetails();
38911
+ init_listvendorscrubpurchases();
37949
38912
  init_logsuserintothesystem();
37950
38913
  init_magiclink();
37951
38914
  init_password();
37952
38915
  init_passwordresetrequest();
38916
+ init_vendorscanout();
37953
38917
  });
37954
38918
 
37955
38919
  // src/types/async.ts
@@ -38065,7 +39029,7 @@ var init_organizationsGetFacility2 = __esm(() => {
38065
39029
  request: GetFacilityRequest$inboundSchema
38066
39030
  };
38067
39031
  tool$organizationsGetFacility = {
38068
- name: "organizations_get-facility",
39032
+ name: "organizations-get-facility",
38069
39033
  description: `Get facility
38070
39034
 
38071
39035
  Retrieve an individual facility.`,
@@ -38170,7 +39134,7 @@ async function $do2(client, request, options) {
38170
39134
  const req = requestRes.value;
38171
39135
  const doResult = await client._do(req, {
38172
39136
  context,
38173
- errorCodes: ["4XX", "5XX"],
39137
+ errorCodes: ["401", "403", "404", "4XX", "500", "5XX"],
38174
39138
  retryConfig: context.retryConfig,
38175
39139
  retryCodes: context.retryCodes
38176
39140
  });
@@ -38183,7 +39147,7 @@ async function $do2(client, request, options) {
38183
39147
  };
38184
39148
  const [result, raw] = await match(json(200, ListOrSearchFacilitiesResponse$inboundSchema, {
38185
39149
  key: "Result"
38186
- }), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
39150
+ }), jsonErr([401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
38187
39151
  if (!result.ok) {
38188
39152
  return [haltIterator(result), {
38189
39153
  status: "complete",
@@ -38225,6 +39189,7 @@ var init_organizationsListOrSearchFacilities = __esm(() => {
38225
39189
  init_schemas();
38226
39190
  init_security();
38227
39191
  init_url();
39192
+ init_errors();
38228
39193
  init_operations();
38229
39194
  init_async();
38230
39195
  init_operations2();
@@ -38240,7 +39205,7 @@ var init_organizationsListOrSearchFacilities2 = __esm(() => {
38240
39205
  request: ListOrSearchFacilitiesRequest$inboundSchema
38241
39206
  };
38242
39207
  tool$organizationsListOrSearchFacilities = {
38243
- name: "organizations_list-or-search-facilities",
39208
+ name: "organizations-list-or-search-facilities",
38244
39209
  description: `List or search facilities
38245
39210
 
38246
39211
  List or search facilities.
@@ -38363,7 +39328,7 @@ var init_supportArticlesGetSupportArticle2 = __esm(() => {
38363
39328
  request: GetSupportArticleRequest$inboundSchema
38364
39329
  };
38365
39330
  tool$supportArticlesGetSupportArticle = {
38366
- name: "support-articles_get-support-article",
39331
+ name: "support-articles-get-support-article",
38367
39332
  description: `Get support article
38368
39333
 
38369
39334
  Retrieve an individual support article.
@@ -38509,7 +39474,7 @@ var init_supportArticlesListOrSearchSupportArticles2 = __esm(() => {
38509
39474
  request: ListOrSearchSupportArticlesRequest$inboundSchema
38510
39475
  };
38511
39476
  tool$supportArticlesListOrSearchSupportArticles = {
38512
- name: "support-articles_list-or-search-support-articles",
39477
+ name: "support-articles-list-or-search-support-articles",
38513
39478
  description: `List or search support articles
38514
39479
 
38515
39480
  List or search support articles for FAQ.`,
@@ -38595,7 +39560,7 @@ var init_usersGetCurrentUser2 = __esm(() => {
38595
39560
  init_usersGetCurrentUser();
38596
39561
  init_tools();
38597
39562
  tool$usersGetCurrentUser = {
38598
- name: "users_get-current-user",
39563
+ name: "users-get-current-user",
38599
39564
  description: `Get current user
38600
39565
 
38601
39566
  Returns a user object for the user represented by the authorization token`,
@@ -38700,7 +39665,7 @@ var init_usersGetUserById2 = __esm(() => {
38700
39665
  request: GetUserByIdRequest$inboundSchema
38701
39666
  };
38702
39667
  tool$usersGetUserById = {
38703
- name: "users_get-user-by-id",
39668
+ name: "users-get-user-by-id",
38704
39669
  description: `Get user by id
38705
39670
 
38706
39671
  Returns a user object for the user represented by the identifier in the path.`,
@@ -38796,7 +39761,7 @@ var init_usersLogsUserIntoTheSystem2 = __esm(() => {
38796
39761
  request: LogsUserIntoTheSystemRequestBody$inboundSchema
38797
39762
  };
38798
39763
  tool$usersLogsUserIntoTheSystem = {
38799
- name: "users_logs-user-into-the-system",
39764
+ name: "users-logs-user-into-the-system",
38800
39765
  description: `Logs user into the system
38801
39766
 
38802
39767
  This endpoint allows a user to authenticate themselves and retrieve a permanent token for access.
@@ -38926,7 +39891,7 @@ var init_usersMagiclink2 = __esm(() => {
38926
39891
  request: MagiclinkRequestBody$inboundSchema
38927
39892
  };
38928
39893
  tool$usersMagiclink = {
38929
- name: "users_magiclink",
39894
+ name: "users-magiclink",
38930
39895
  description: `Magic link
38931
39896
 
38932
39897
  It sends an email with a magic link to allow the user to log in.`,
@@ -39026,7 +39991,7 @@ var init_usersPassword2 = __esm(() => {
39026
39991
  request: PasswordRequestBody$inboundSchema
39027
39992
  };
39028
39993
  tool$usersPassword = {
39029
- name: "users_password",
39994
+ name: "users-password",
39030
39995
  description: `Password reset
39031
39996
 
39032
39997
  Resets the a user's password using a password_reset_id that was sent to them via email.
@@ -39127,7 +40092,7 @@ var init_usersPasswordResetRequest2 = __esm(() => {
39127
40092
  request: PasswordResetRequestRequestBody$inboundSchema
39128
40093
  };
39129
40094
  tool$usersPasswordResetRequest = {
39130
- name: "users_password-reset-request",
40095
+ name: "users-password-reset-request",
39131
40096
  description: `Password reset request
39132
40097
 
39133
40098
  It sends an email with a link for resetting a user's password.`,
@@ -39146,32 +40111,40 @@ It sends an email with a link for resetting a user's password.`,
39146
40111
  };
39147
40112
  });
39148
40113
 
39149
- // src/funcs/vendorsCreateVendorRegistration.ts
39150
- function vendorsCreateVendorRegistration(client, request, options) {
40114
+ // src/funcs/vendorScansVendorScanOut.ts
40115
+ function vendorScansVendorScanOut(client, request, options) {
39151
40116
  return new APIPromise($do11(client, request, options));
39152
40117
  }
39153
40118
  async function $do11(client, request, options) {
39154
- const parsed = safeParse(request, (value) => CreateVendorRegistrationRequestBody$outboundSchema.parse(value), "Input validation failed");
40119
+ const parsed = safeParse(request, (value) => VendorScanOutRequest$outboundSchema.parse(value), "Input validation failed");
39155
40120
  if (!parsed.ok) {
39156
40121
  return [parsed, { status: "invalid" }];
39157
40122
  }
39158
40123
  const payload = parsed.value;
39159
- const body = encodeJSON("body", payload, { explode: true });
39160
- const path = pathToFunc("/vendors/registration")();
40124
+ const body = null;
40125
+ const pathParams = {
40126
+ id: encodeSimple("id", payload.id, {
40127
+ explode: false,
40128
+ charEncoding: "percent"
40129
+ })
40130
+ };
40131
+ const path = pathToFunc("/vendor-scans/{id}/scan-out")(pathParams);
39161
40132
  const headers = new Headers(compactMap({
39162
- "Content-Type": "application/json",
39163
40133
  Accept: "application/json"
39164
40134
  }));
40135
+ const securityInput = await extractSecurity(client._options.security);
40136
+ const requestSecurity = resolveGlobalSecurity(securityInput);
39165
40137
  const context = {
39166
40138
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39167
- operationID: "createVendorRegistration",
40139
+ operationID: "vendorScanOut",
39168
40140
  oAuth2Scopes: [],
39169
- resolvedSecurity: null,
39170
- securitySource: null,
40141
+ resolvedSecurity: requestSecurity,
40142
+ securitySource: client._options.security,
39171
40143
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
39172
40144
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
39173
40145
  };
39174
40146
  const requestRes = client._createRequest(context, {
40147
+ security: requestSecurity,
39175
40148
  method: "POST",
39176
40149
  baseURL: options?.serverURL,
39177
40150
  path,
@@ -39185,7 +40158,7 @@ async function $do11(client, request, options) {
39185
40158
  const req = requestRes.value;
39186
40159
  const doResult = await client._do(req, {
39187
40160
  context,
39188
- errorCodes: ["400", "401", "403", "409", "4XX", "5XX"],
40161
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
39189
40162
  retryConfig: context.retryConfig,
39190
40163
  retryCodes: context.retryCodes
39191
40164
  });
@@ -39196,40 +40169,41 @@ async function $do11(client, request, options) {
39196
40169
  const responseFields = {
39197
40170
  HttpMeta: { Response: response, Request: req }
39198
40171
  };
39199
- const [result] = await match(json(201, CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema), jsonErr([400, 401, 403, 409], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40172
+ const [result] = await match(json(200, VendorScanOutResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
39200
40173
  if (!result.ok) {
39201
40174
  return [result, { status: "complete", request: req, response }];
39202
40175
  }
39203
40176
  return [result, { status: "complete", request: req, response }];
39204
40177
  }
39205
- var init_vendorsCreateVendorRegistration = __esm(() => {
40178
+ var init_vendorScansVendorScanOut = __esm(() => {
39206
40179
  init_encodings();
39207
40180
  init_matchers();
39208
40181
  init_primitives();
39209
40182
  init_schemas();
40183
+ init_security();
39210
40184
  init_url();
39211
40185
  init_errors();
39212
40186
  init_operations();
39213
40187
  init_async();
39214
40188
  });
39215
40189
 
39216
- // src/mcp-server/tools/vendorsCreateVendorRegistration.ts
39217
- var args10, tool$vendorsCreateVendorRegistration;
39218
- var init_vendorsCreateVendorRegistration2 = __esm(() => {
39219
- init_vendorsCreateVendorRegistration();
40190
+ // src/mcp-server/tools/vendorScansVendorScanOut.ts
40191
+ var args10, tool$vendorScansVendorScanOut;
40192
+ var init_vendorScansVendorScanOut2 = __esm(() => {
40193
+ init_vendorScansVendorScanOut();
39220
40194
  init_operations();
39221
40195
  init_tools();
39222
40196
  args10 = {
39223
- request: CreateVendorRegistrationRequestBody$inboundSchema
40197
+ request: VendorScanOutRequest$inboundSchema
39224
40198
  };
39225
- tool$vendorsCreateVendorRegistration = {
39226
- name: "vendors_create-vendor-registration",
39227
- description: `Create vendor registration
40199
+ tool$vendorScansVendorScanOut = {
40200
+ name: "vendor-scans-vendor-scan-out",
40201
+ description: `Vendor scan out
39228
40202
 
39229
- Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
40203
+ It scans out vendor from facility`,
39230
40204
  args: args10,
39231
40205
  tool: async (client, args11, ctx) => {
39232
- const [result, apiCall] = await vendorsCreateVendorRegistration(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40206
+ const [result, apiCall] = await vendorScansVendorScanOut(client, args11.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39233
40207
  if (!result.ok) {
39234
40208
  return {
39235
40209
  content: [{ type: "text", text: result.error.message }],
@@ -39242,12 +40216,108 @@ Create an initial vendor registration. Once successful, the vendor will be able
39242
40216
  };
39243
40217
  });
39244
40218
 
39245
- // src/funcs/vendorsExpediteTimeRemaining.ts
39246
- function vendorsExpediteTimeRemaining(client, request, options) {
40219
+ // src/funcs/vendorsCreateVendorRegistration.ts
40220
+ function vendorsCreateVendorRegistration(client, request, options) {
39247
40221
  return new APIPromise($do12(client, request, options));
39248
40222
  }
39249
40223
  async function $do12(client, request, options) {
39250
- const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
40224
+ const parsed = safeParse(request, (value) => CreateVendorRegistrationRequestBody$outboundSchema.parse(value), "Input validation failed");
40225
+ if (!parsed.ok) {
40226
+ return [parsed, { status: "invalid" }];
40227
+ }
40228
+ const payload = parsed.value;
40229
+ const body = encodeJSON("body", payload, { explode: true });
40230
+ const path = pathToFunc("/vendors/registration")();
40231
+ const headers = new Headers(compactMap({
40232
+ "Content-Type": "application/json",
40233
+ Accept: "application/json"
40234
+ }));
40235
+ const context = {
40236
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
40237
+ operationID: "createVendorRegistration",
40238
+ oAuth2Scopes: [],
40239
+ resolvedSecurity: null,
40240
+ securitySource: null,
40241
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
40242
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
40243
+ };
40244
+ const requestRes = client._createRequest(context, {
40245
+ method: "POST",
40246
+ baseURL: options?.serverURL,
40247
+ path,
40248
+ headers,
40249
+ body,
40250
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40251
+ }, options);
40252
+ if (!requestRes.ok) {
40253
+ return [requestRes, { status: "invalid" }];
40254
+ }
40255
+ const req = requestRes.value;
40256
+ const doResult = await client._do(req, {
40257
+ context,
40258
+ errorCodes: ["400", "401", "403", "409", "4XX", "5XX"],
40259
+ retryConfig: context.retryConfig,
40260
+ retryCodes: context.retryCodes
40261
+ });
40262
+ if (!doResult.ok) {
40263
+ return [doResult, { status: "request-error", request: req }];
40264
+ }
40265
+ const response = doResult.value;
40266
+ const responseFields = {
40267
+ HttpMeta: { Response: response, Request: req }
40268
+ };
40269
+ const [result] = await match(json(201, CreateVendorRegistrationCreateVendorRegistrationCreated$inboundSchema), jsonErr([400, 401, 403, 409], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40270
+ if (!result.ok) {
40271
+ return [result, { status: "complete", request: req, response }];
40272
+ }
40273
+ return [result, { status: "complete", request: req, response }];
40274
+ }
40275
+ var init_vendorsCreateVendorRegistration = __esm(() => {
40276
+ init_encodings();
40277
+ init_matchers();
40278
+ init_primitives();
40279
+ init_schemas();
40280
+ init_url();
40281
+ init_errors();
40282
+ init_operations();
40283
+ init_async();
40284
+ });
40285
+
40286
+ // src/mcp-server/tools/vendorsCreateVendorRegistration.ts
40287
+ var args11, tool$vendorsCreateVendorRegistration;
40288
+ var init_vendorsCreateVendorRegistration2 = __esm(() => {
40289
+ init_vendorsCreateVendorRegistration();
40290
+ init_operations();
40291
+ init_tools();
40292
+ args11 = {
40293
+ request: CreateVendorRegistrationRequestBody$inboundSchema
40294
+ };
40295
+ tool$vendorsCreateVendorRegistration = {
40296
+ name: "vendors-create-vendor-registration",
40297
+ description: `Create vendor registration
40298
+
40299
+ Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
40300
+ args: args11,
40301
+ tool: async (client, args12, ctx) => {
40302
+ const [result, apiCall] = await vendorsCreateVendorRegistration(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40303
+ if (!result.ok) {
40304
+ return {
40305
+ content: [{ type: "text", text: result.error.message }],
40306
+ isError: true
40307
+ };
40308
+ }
40309
+ const value = result.value;
40310
+ return formatResult(value, apiCall);
40311
+ }
40312
+ };
40313
+ });
40314
+
40315
+ // src/funcs/vendorsExpediteTimeRemaining.ts
40316
+ function vendorsExpediteTimeRemaining(client, request, options) {
40317
+ return new APIPromise($do13(client, request, options));
40318
+ }
40319
+ async function $do13(client, request, options) {
40320
+ const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
39251
40321
  if (!parsed.ok) {
39252
40322
  return [parsed, { status: "invalid" }];
39253
40323
  }
@@ -39319,22 +40389,22 @@ var init_vendorsExpediteTimeRemaining = __esm(() => {
39319
40389
  });
39320
40390
 
39321
40391
  // src/mcp-server/tools/vendorsExpediteTimeRemaining.ts
39322
- var args11, tool$vendorsExpediteTimeRemaining;
40392
+ var args12, tool$vendorsExpediteTimeRemaining;
39323
40393
  var init_vendorsExpediteTimeRemaining2 = __esm(() => {
39324
40394
  init_vendorsExpediteTimeRemaining();
39325
40395
  init_operations();
39326
40396
  init_tools();
39327
- args11 = {
40397
+ args12 = {
39328
40398
  request: ExpediteTimeRemainingRequest$inboundSchema
39329
40399
  };
39330
40400
  tool$vendorsExpediteTimeRemaining = {
39331
- name: "vendors_expedite-time-remaining",
40401
+ name: "vendors-expedite-time-remaining",
39332
40402
  description: `Expedite time remaining
39333
40403
 
39334
40404
  For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.`,
39335
- args: args11,
39336
- tool: async (client, args12, ctx) => {
39337
- const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args12.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40405
+ args: args12,
40406
+ tool: async (client, args13, ctx) => {
40407
+ const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39338
40408
  if (!result.ok) {
39339
40409
  return {
39340
40410
  content: [{ type: "text", text: result.error.message }],
@@ -39349,9 +40419,9 @@ For vendors who have a paid 24-hour expedite credentials invoice, get the remain
39349
40419
 
39350
40420
  // src/funcs/vendorsGetVendorInvoiceDetails.ts
39351
40421
  function vendorsGetVendorInvoiceDetails(client, request, options) {
39352
- return new APIPromise($do13(client, request, options));
40422
+ return new APIPromise($do14(client, request, options));
39353
40423
  }
39354
- async function $do13(client, request, options) {
40424
+ async function $do14(client, request, options) {
39355
40425
  const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
39356
40426
  if (!parsed.ok) {
39357
40427
  return [parsed, { status: "invalid" }];
@@ -39429,16 +40499,16 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
39429
40499
  });
39430
40500
 
39431
40501
  // src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
39432
- var args12, tool$vendorsGetVendorInvoiceDetails;
40502
+ var args13, tool$vendorsGetVendorInvoiceDetails;
39433
40503
  var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
39434
40504
  init_vendorsGetVendorInvoiceDetails();
39435
40505
  init_operations();
39436
40506
  init_tools();
39437
- args12 = {
40507
+ args13 = {
39438
40508
  request: GetVendorInvoiceDetailsRequest$inboundSchema
39439
40509
  };
39440
40510
  tool$vendorsGetVendorInvoiceDetails = {
39441
- name: "vendors_get-vendor-invoice-details",
40511
+ name: "vendors-get-vendor-invoice-details",
39442
40512
  description: `Get vendor invoice details
39443
40513
 
39444
40514
  Retrieve an individual vendor invoice detais.
@@ -39447,9 +40517,9 @@ Available \`expand\` scopes are:
39447
40517
 
39448
40518
  invoice.line_items
39449
40519
  invoice.invoice_transactions`,
39450
- args: args12,
39451
- tool: async (client, args13, ctx) => {
39452
- const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args13.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40520
+ args: args13,
40521
+ tool: async (client, args14, ctx) => {
40522
+ const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39453
40523
  if (!result.ok) {
39454
40524
  return {
39455
40525
  content: [{ type: "text", text: result.error.message }],
@@ -39462,31 +40532,27 @@ invoice.invoice_transactions`,
39462
40532
  };
39463
40533
  });
39464
40534
 
39465
- // src/funcs/vendorsListVendorCredentials.ts
39466
- function vendorsListVendorCredentials(client, request, options) {
39467
- return new APIPromise($do14(client, request, options));
40535
+ // src/funcs/vendorsGetVendorsDetails.ts
40536
+ function vendorsGetVendorsDetails(client, request, options) {
40537
+ return new APIPromise($do15(client, request, options));
39468
40538
  }
39469
- async function $do14(client, request, options) {
39470
- const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
40539
+ async function $do15(client, request, options) {
40540
+ const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
39471
40541
  if (!parsed.ok) {
39472
40542
  return [parsed, { status: "invalid" }];
39473
40543
  }
39474
40544
  const payload = parsed.value;
39475
40545
  const body = null;
39476
40546
  const pathParams = {
39477
- vendor_id: encodeSimple("vendor_id", payload.vendor_id, {
40547
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
39478
40548
  explode: false,
39479
40549
  charEncoding: "percent"
39480
40550
  })
39481
40551
  };
39482
- const path = pathToFunc("/vendors/{vendor_id}/credentials")(pathParams);
40552
+ const path = pathToFunc("/vendors/{vendor_id_or_me}")(pathParams);
39483
40553
  const query = encodeFormQuery({
39484
- credential_status: payload.credential_status,
39485
- facility_id: payload.facility_id,
39486
- include_cc: payload.include_cc,
39487
- include_vc: payload.include_vc,
39488
- urgent: payload.urgent
39489
- });
40554
+ expand: payload.expand
40555
+ }, { explode: false });
39490
40556
  const headers = new Headers(compactMap({
39491
40557
  Accept: "application/json"
39492
40558
  }));
@@ -39494,7 +40560,7 @@ async function $do14(client, request, options) {
39494
40560
  const requestSecurity = resolveGlobalSecurity(securityInput);
39495
40561
  const context = {
39496
40562
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39497
- operationID: "listVendorCredentials",
40563
+ operationID: "getVendorsDetails",
39498
40564
  oAuth2Scopes: [],
39499
40565
  resolvedSecurity: requestSecurity,
39500
40566
  securitySource: client._options.security,
@@ -39517,7 +40583,7 @@ async function $do14(client, request, options) {
39517
40583
  const req = requestRes.value;
39518
40584
  const doResult = await client._do(req, {
39519
40585
  context,
39520
- errorCodes: ["4XX", "5XX"],
40586
+ errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
39521
40587
  retryConfig: context.retryConfig,
39522
40588
  retryCodes: context.retryCodes
39523
40589
  });
@@ -39525,40 +40591,59 @@ async function $do14(client, request, options) {
39525
40591
  return [doResult, { status: "request-error", request: req }];
39526
40592
  }
39527
40593
  const response = doResult.value;
39528
- const [result] = await match(json(200, ListVendorCredentialsResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response);
40594
+ const responseFields = {
40595
+ HttpMeta: { Response: response, Request: req }
40596
+ };
40597
+ const [result] = await match(json(200, Vendor$inboundSchema), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
39529
40598
  if (!result.ok) {
39530
40599
  return [result, { status: "complete", request: req, response }];
39531
40600
  }
39532
40601
  return [result, { status: "complete", request: req, response }];
39533
40602
  }
39534
- var init_vendorsListVendorCredentials = __esm(() => {
40603
+ var init_vendorsGetVendorsDetails = __esm(() => {
39535
40604
  init_encodings();
39536
40605
  init_matchers();
39537
40606
  init_primitives();
39538
40607
  init_schemas();
39539
40608
  init_security();
39540
40609
  init_url();
40610
+ init_components();
40611
+ init_errors();
39541
40612
  init_operations();
39542
40613
  init_async();
39543
40614
  });
39544
40615
 
39545
- // src/mcp-server/tools/vendorsListVendorCredentials.ts
39546
- var args13, tool$vendorsListVendorCredentials;
39547
- var init_vendorsListVendorCredentials2 = __esm(() => {
39548
- init_vendorsListVendorCredentials();
40616
+ // src/mcp-server/tools/vendorsGetVendorsDetails.ts
40617
+ var args14, tool$vendorsGetVendorsDetails;
40618
+ var init_vendorsGetVendorsDetails2 = __esm(() => {
40619
+ init_vendorsGetVendorsDetails();
39549
40620
  init_operations();
39550
40621
  init_tools();
39551
- args13 = {
39552
- request: ListVendorCredentialsRequest$inboundSchema
40622
+ args14 = {
40623
+ request: GetVendorsDetailsRequest$inboundSchema
39553
40624
  };
39554
- tool$vendorsListVendorCredentials = {
39555
- name: "vendors_list-vendor-credentials",
39556
- description: `List Vendor Credentials
40625
+ tool$vendorsGetVendorsDetails = {
40626
+ name: "vendors-get-vendors-details",
40627
+ description: `Get vendors details
39557
40628
 
39558
- Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
39559
- args: args13,
39560
- tool: async (client, args14, ctx) => {
39561
- const [result, apiCall] = await vendorsListVendorCredentials(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40629
+ Retrieve an individual vendor detais.
40630
+
40631
+ Available \`expand\` scopes are:
40632
+
40633
+ vendor.user
40634
+ vendor.vendor_type
40635
+ vendor.image_urls
40636
+ vendor.payment_profile
40637
+ vendor.primary_facility
40638
+ vendor.primary_department
40639
+ vendor.company
40640
+ vendor.credentialing_subscription
40641
+ vendor.scrubs_subscription
40642
+ vendor.payment_responsibility
40643
+ vendor.background_check_date_expires`,
40644
+ args: args14,
40645
+ tool: async (client, args15, ctx) => {
40646
+ const [result, apiCall] = await vendorsGetVendorsDetails(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39562
40647
  if (!result.ok) {
39563
40648
  return {
39564
40649
  content: [{ type: "text", text: result.error.message }],
@@ -39571,32 +40656,35 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
39571
40656
  };
39572
40657
  });
39573
40658
 
39574
- // src/funcs/vendorsListVendorInvoices.ts
39575
- function vendorsListVendorInvoices(client, request, options) {
39576
- return new APIPromise($do15(client, request, options));
40659
+ // src/funcs/vendorsListVendorCredentials.ts
40660
+ function vendorsListVendorCredentials(client, request, options) {
40661
+ return new APIPromise($do16(client, request, options));
39577
40662
  }
39578
- async function $do15(client, request, options) {
39579
- const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
40663
+ async function $do16(client, request, options) {
40664
+ const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
39580
40665
  if (!parsed.ok) {
39581
40666
  return [haltIterator(parsed), { status: "invalid" }];
39582
40667
  }
39583
40668
  const payload = parsed.value;
39584
40669
  const body = null;
39585
40670
  const pathParams = {
39586
- vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
40671
+ vendor_id: encodeSimple("vendor_id", payload.vendor_id, {
39587
40672
  explode: false,
39588
40673
  charEncoding: "percent"
39589
40674
  })
39590
40675
  };
39591
- const path = pathToFunc("/vendors/{vendor_id_or_me}/invoices")(pathParams);
39592
- const query = queryJoin(encodeFormQuery({
39593
- expand: payload.expand
39594
- }, { explode: false }), encodeFormQuery({
40676
+ const path = pathToFunc("/vendors/{vendor_id}/credentials")(pathParams);
40677
+ const query = encodeFormQuery({
40678
+ credential_status: payload.credential_status,
39595
40679
  desc: payload.desc,
40680
+ facility_id: payload.facility_id,
40681
+ include_cc: payload.include_cc,
40682
+ include_vc: payload.include_vc,
39596
40683
  items_per_page: payload.items_per_page,
39597
40684
  page: payload.page,
39598
- sort: payload.sort
39599
- }));
40685
+ sort: payload.sort,
40686
+ urgent: payload.urgent
40687
+ });
39600
40688
  const headers = new Headers(compactMap({
39601
40689
  Accept: "application/json"
39602
40690
  }));
@@ -39604,7 +40692,7 @@ async function $do15(client, request, options) {
39604
40692
  const requestSecurity = resolveGlobalSecurity(securityInput);
39605
40693
  const context = {
39606
40694
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39607
- operationID: "listVendorInvoices",
40695
+ operationID: "listVendorCredentials",
39608
40696
  oAuth2Scopes: [],
39609
40697
  resolvedSecurity: requestSecurity,
39610
40698
  securitySource: client._options.security,
@@ -39627,7 +40715,7 @@ async function $do15(client, request, options) {
39627
40715
  const req = requestRes.value;
39628
40716
  const doResult = await client._do(req, {
39629
40717
  context,
39630
- errorCodes: ["400", "401", "4XX", "5XX"],
40718
+ errorCodes: ["4XX", "5XX"],
39631
40719
  retryConfig: context.retryConfig,
39632
40720
  retryCodes: context.retryCodes
39633
40721
  });
@@ -39638,9 +40726,9 @@ async function $do15(client, request, options) {
39638
40726
  const responseFields = {
39639
40727
  HttpMeta: { Response: response, Request: req }
39640
40728
  };
39641
- const [result, raw] = await match(json(200, ListVendorInvoicesResponse$inboundSchema, {
40729
+ const [result, raw] = await match(json(200, ListVendorCredentialsResponse$inboundSchema, {
39642
40730
  key: "Result"
39643
- }), jsonErr([400, 401], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40731
+ }), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
39644
40732
  if (!result.ok) {
39645
40733
  return [haltIterator(result), {
39646
40734
  status: "complete",
@@ -39654,7 +40742,7 @@ async function $do15(client, request, options) {
39654
40742
  if (!responseData) {
39655
40743
  return { next: () => null };
39656
40744
  }
39657
- const results = dlv(responseData, "items");
40745
+ const results = dlv(responseData, "pager.items");
39658
40746
  if (!Array.isArray(results) || !results.length) {
39659
40747
  return { next: () => null };
39660
40748
  }
@@ -39662,7 +40750,7 @@ async function $do15(client, request, options) {
39662
40750
  if (results.length < limit) {
39663
40751
  return { next: () => null };
39664
40752
  }
39665
- const nextVal = () => vendorsListVendorInvoices(client, {
40753
+ const nextVal = () => vendorsListVendorCredentials(client, {
39666
40754
  ...request,
39667
40755
  page: nextPage
39668
40756
  }, options);
@@ -39675,40 +40763,35 @@ async function $do15(client, request, options) {
39675
40763
  response
39676
40764
  }];
39677
40765
  }
39678
- var init_vendorsListVendorInvoices = __esm(() => {
40766
+ var init_vendorsListVendorCredentials = __esm(() => {
39679
40767
  init_encodings();
39680
40768
  init_matchers();
39681
40769
  init_primitives();
39682
40770
  init_schemas();
39683
40771
  init_security();
39684
40772
  init_url();
39685
- init_errors();
39686
40773
  init_operations();
39687
40774
  init_async();
39688
40775
  init_operations2();
39689
40776
  });
39690
40777
 
39691
- // src/mcp-server/tools/vendorsListVendorInvoices.ts
39692
- var args14, tool$vendorsListVendorInvoices;
39693
- var init_vendorsListVendorInvoices2 = __esm(() => {
39694
- init_vendorsListVendorInvoices();
40778
+ // src/mcp-server/tools/vendorsListVendorCredentials.ts
40779
+ var args15, tool$vendorsListVendorCredentials;
40780
+ var init_vendorsListVendorCredentials2 = __esm(() => {
40781
+ init_vendorsListVendorCredentials();
39695
40782
  init_operations();
39696
40783
  init_tools();
39697
- args14 = {
39698
- request: ListVendorInvoicesRequest$inboundSchema
40784
+ args15 = {
40785
+ request: ListVendorCredentialsRequest$inboundSchema
39699
40786
  };
39700
- tool$vendorsListVendorInvoices = {
39701
- name: "vendors_list-vendor-invoices",
39702
- description: `List vendor invoices
39703
-
39704
- List invoices for Vendors
39705
-
39706
- Available \`expand\` scopes are:
40787
+ tool$vendorsListVendorCredentials = {
40788
+ name: "vendors-list-vendor-credentials",
40789
+ description: `List Vendor Credentials
39707
40790
 
39708
- invoice.line_items`,
39709
- args: args14,
39710
- tool: async (client, args15, ctx) => {
39711
- const [result, apiCall] = await vendorsListVendorInvoices(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40791
+ Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
40792
+ args: args15,
40793
+ tool: async (client, args16, ctx) => {
40794
+ const [result, apiCall] = await vendorsListVendorCredentials(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39712
40795
  if (!result.ok) {
39713
40796
  return {
39714
40797
  content: [{ type: "text", text: result.error.message }],
@@ -39721,38 +40804,41 @@ invoice.line_items`,
39721
40804
  };
39722
40805
  });
39723
40806
 
39724
- // src/funcs/vendorsListVendorJobTitles.ts
39725
- function vendorsListVendorJobTitles(client, request, options) {
39726
- return new APIPromise($do16(client, request, options));
40807
+ // src/funcs/vendorsListVendorFacilityStatuses.ts
40808
+ function vendorsListVendorFacilityStatuses(client, request, options) {
40809
+ return new APIPromise($do17(client, request, options));
39727
40810
  }
39728
- async function $do16(client, request, options) {
39729
- const parsed = safeParse(request, (value) => ListVendorJobTitlesRequest$outboundSchema.parse(value), "Input validation failed");
40811
+ async function $do17(client, request, options) {
40812
+ const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
39730
40813
  if (!parsed.ok) {
39731
40814
  return [haltIterator(parsed), { status: "invalid" }];
39732
40815
  }
39733
40816
  const payload = parsed.value;
39734
40817
  const body = null;
39735
- const path = pathToFunc("/vendors/job_titles")();
40818
+ const path = pathToFunc("/vendors/facility_statuses")();
39736
40819
  const query = encodeFormQuery({
39737
40820
  desc: payload.desc,
39738
40821
  items_per_page: payload.items_per_page,
39739
- job_like: payload.job_like,
39740
40822
  page: payload.page,
40823
+ scan_type: payload.scan_type,
39741
40824
  sort: payload.sort
39742
40825
  });
39743
40826
  const headers = new Headers(compactMap({
39744
40827
  Accept: "application/json"
39745
40828
  }));
40829
+ const securityInput = await extractSecurity(client._options.security);
40830
+ const requestSecurity = resolveGlobalSecurity(securityInput);
39746
40831
  const context = {
39747
40832
  baseURL: options?.serverURL ?? client._baseURL ?? "",
39748
- operationID: "listVendorJobTitles",
40833
+ operationID: "listVendorFacilityStatuses",
39749
40834
  oAuth2Scopes: [],
39750
- resolvedSecurity: null,
39751
- securitySource: null,
40835
+ resolvedSecurity: requestSecurity,
40836
+ securitySource: client._options.security,
39752
40837
  retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
39753
40838
  retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
39754
40839
  };
39755
40840
  const requestRes = client._createRequest(context, {
40841
+ security: requestSecurity,
39756
40842
  method: "GET",
39757
40843
  baseURL: options?.serverURL,
39758
40844
  path,
@@ -39767,7 +40853,7 @@ async function $do16(client, request, options) {
39767
40853
  const req = requestRes.value;
39768
40854
  const doResult = await client._do(req, {
39769
40855
  context,
39770
- errorCodes: ["403", "4XX", "500", "5XX"],
40856
+ errorCodes: ["401", "4XX", "500", "5XX"],
39771
40857
  retryConfig: context.retryConfig,
39772
40858
  retryCodes: context.retryCodes
39773
40859
  });
@@ -39778,9 +40864,9 @@ async function $do16(client, request, options) {
39778
40864
  const responseFields = {
39779
40865
  HttpMeta: { Response: response, Request: req }
39780
40866
  };
39781
- const [result, raw] = await match(json(200, ListVendorJobTitlesResponse$inboundSchema, {
40867
+ const [result, raw] = await match(json(200, ListVendorFacilityStatusesResponse$inboundSchema, {
39782
40868
  key: "Result"
39783
- }), jsonErr(403, ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
40869
+ }), jsonErr(401, ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
39784
40870
  if (!result.ok) {
39785
40871
  return [haltIterator(result), {
39786
40872
  status: "complete",
@@ -39802,7 +40888,7 @@ async function $do16(client, request, options) {
39802
40888
  if (results.length < limit) {
39803
40889
  return { next: () => null };
39804
40890
  }
39805
- const nextVal = () => vendorsListVendorJobTitles(client, {
40891
+ const nextVal = () => vendorsListVendorFacilityStatuses(client, {
39806
40892
  ...request,
39807
40893
  page: nextPage
39808
40894
  }, options);
@@ -39815,11 +40901,12 @@ async function $do16(client, request, options) {
39815
40901
  response
39816
40902
  }];
39817
40903
  }
39818
- var init_vendorsListVendorJobTitles = __esm(() => {
40904
+ var init_vendorsListVendorFacilityStatuses = __esm(() => {
39819
40905
  init_encodings();
39820
40906
  init_matchers();
39821
40907
  init_primitives();
39822
40908
  init_schemas();
40909
+ init_security();
39823
40910
  init_url();
39824
40911
  init_errors();
39825
40912
  init_operations();
@@ -39827,23 +40914,23 @@ var init_vendorsListVendorJobTitles = __esm(() => {
39827
40914
  init_operations2();
39828
40915
  });
39829
40916
 
39830
- // src/mcp-server/tools/vendorsListVendorJobTitles.ts
39831
- var args15, tool$vendorsListVendorJobTitles;
39832
- var init_vendorsListVendorJobTitles2 = __esm(() => {
39833
- init_vendorsListVendorJobTitles();
40917
+ // src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
40918
+ var args16, tool$vendorsListVendorFacilityStatuses;
40919
+ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
40920
+ init_vendorsListVendorFacilityStatuses();
39834
40921
  init_operations();
39835
40922
  init_tools();
39836
- args15 = {
39837
- request: ListVendorJobTitlesRequest$inboundSchema
40923
+ args16 = {
40924
+ request: ListVendorFacilityStatusesRequest$inboundSchema
39838
40925
  };
39839
- tool$vendorsListVendorJobTitles = {
39840
- name: "vendors_list-vendor-job-titles",
39841
- description: `List vendor job titles
40926
+ tool$vendorsListVendorFacilityStatuses = {
40927
+ name: "vendors-list-vendor-facility-statuses",
40928
+ description: `List vendor facility statuses
39842
40929
 
39843
- List valid job titles for Vendors. This can be used during sign up or in a filter.`,
39844
- args: args15,
39845
- tool: async (client, args16, ctx) => {
39846
- const [result, apiCall] = await vendorsListVendorJobTitles(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
40930
+ List the facilities for the vendor`,
40931
+ args: args16,
40932
+ tool: async (client, args17, ctx) => {
40933
+ const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
39847
40934
  if (!result.ok) {
39848
40935
  return {
39849
40936
  content: [{ type: "text", text: result.error.message }],
@@ -39856,11 +40943,623 @@ List valid job titles for Vendors. This can be used during sign up or in a filte
39856
40943
  };
39857
40944
  });
39858
40945
 
40946
+ // src/funcs/vendorsListVendorInvoices.ts
40947
+ function vendorsListVendorInvoices(client, request, options) {
40948
+ return new APIPromise($do18(client, request, options));
40949
+ }
40950
+ async function $do18(client, request, options) {
40951
+ const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
40952
+ if (!parsed.ok) {
40953
+ return [haltIterator(parsed), { status: "invalid" }];
40954
+ }
40955
+ const payload = parsed.value;
40956
+ const body = null;
40957
+ const pathParams = {
40958
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
40959
+ explode: false,
40960
+ charEncoding: "percent"
40961
+ })
40962
+ };
40963
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/invoices")(pathParams);
40964
+ const query = queryJoin(encodeFormQuery({
40965
+ expand: payload.expand
40966
+ }, { explode: false }), encodeFormQuery({
40967
+ desc: payload.desc,
40968
+ items_per_page: payload.items_per_page,
40969
+ page: payload.page,
40970
+ sort: payload.sort
40971
+ }));
40972
+ const headers = new Headers(compactMap({
40973
+ Accept: "application/json"
40974
+ }));
40975
+ const securityInput = await extractSecurity(client._options.security);
40976
+ const requestSecurity = resolveGlobalSecurity(securityInput);
40977
+ const context = {
40978
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
40979
+ operationID: "listVendorInvoices",
40980
+ oAuth2Scopes: [],
40981
+ resolvedSecurity: requestSecurity,
40982
+ securitySource: client._options.security,
40983
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
40984
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
40985
+ };
40986
+ const requestRes = client._createRequest(context, {
40987
+ security: requestSecurity,
40988
+ method: "GET",
40989
+ baseURL: options?.serverURL,
40990
+ path,
40991
+ headers,
40992
+ query,
40993
+ body,
40994
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
40995
+ }, options);
40996
+ if (!requestRes.ok) {
40997
+ return [haltIterator(requestRes), { status: "invalid" }];
40998
+ }
40999
+ const req = requestRes.value;
41000
+ const doResult = await client._do(req, {
41001
+ context,
41002
+ errorCodes: ["400", "401", "4XX", "5XX"],
41003
+ retryConfig: context.retryConfig,
41004
+ retryCodes: context.retryCodes
41005
+ });
41006
+ if (!doResult.ok) {
41007
+ return [haltIterator(doResult), { status: "request-error", request: req }];
41008
+ }
41009
+ const response = doResult.value;
41010
+ const responseFields = {
41011
+ HttpMeta: { Response: response, Request: req }
41012
+ };
41013
+ const [result, raw] = await match(json(200, ListVendorInvoicesResponse$inboundSchema, {
41014
+ key: "Result"
41015
+ }), jsonErr([400, 401], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41016
+ if (!result.ok) {
41017
+ return [haltIterator(result), {
41018
+ status: "complete",
41019
+ request: req,
41020
+ response
41021
+ }];
41022
+ }
41023
+ const nextFunc = (responseData) => {
41024
+ const page2 = request?.page ?? 1;
41025
+ const nextPage = page2 + 1;
41026
+ if (!responseData) {
41027
+ return { next: () => null };
41028
+ }
41029
+ const results = dlv(responseData, "items");
41030
+ if (!Array.isArray(results) || !results.length) {
41031
+ return { next: () => null };
41032
+ }
41033
+ const limit = request?.itemsPerPage ?? 0;
41034
+ if (results.length < limit) {
41035
+ return { next: () => null };
41036
+ }
41037
+ const nextVal = () => vendorsListVendorInvoices(client, {
41038
+ ...request,
41039
+ page: nextPage
41040
+ }, options);
41041
+ return { next: nextVal, "~next": { page: nextPage } };
41042
+ };
41043
+ const page = { ...result, ...nextFunc(raw) };
41044
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
41045
+ status: "complete",
41046
+ request: req,
41047
+ response
41048
+ }];
41049
+ }
41050
+ var init_vendorsListVendorInvoices = __esm(() => {
41051
+ init_encodings();
41052
+ init_matchers();
41053
+ init_primitives();
41054
+ init_schemas();
41055
+ init_security();
41056
+ init_url();
41057
+ init_errors();
41058
+ init_operations();
41059
+ init_async();
41060
+ init_operations2();
41061
+ });
41062
+
41063
+ // src/mcp-server/tools/vendorsListVendorInvoices.ts
41064
+ var args17, tool$vendorsListVendorInvoices;
41065
+ var init_vendorsListVendorInvoices2 = __esm(() => {
41066
+ init_vendorsListVendorInvoices();
41067
+ init_operations();
41068
+ init_tools();
41069
+ args17 = {
41070
+ request: ListVendorInvoicesRequest$inboundSchema
41071
+ };
41072
+ tool$vendorsListVendorInvoices = {
41073
+ name: "vendors-list-vendor-invoices",
41074
+ description: `List vendor invoices
41075
+
41076
+ List invoices for Vendors
41077
+
41078
+ Available \`expand\` scopes are:
41079
+
41080
+ invoice.line_items`,
41081
+ args: args17,
41082
+ tool: async (client, args18, ctx) => {
41083
+ const [result, apiCall] = await vendorsListVendorInvoices(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41084
+ if (!result.ok) {
41085
+ return {
41086
+ content: [{ type: "text", text: result.error.message }],
41087
+ isError: true
41088
+ };
41089
+ }
41090
+ const value = result.value.result;
41091
+ return formatResult(value, apiCall);
41092
+ }
41093
+ };
41094
+ });
41095
+
41096
+ // src/funcs/vendorsListVendorScrubDetails.ts
41097
+ function vendorsListVendorScrubDetails(client, request, options) {
41098
+ return new APIPromise($do19(client, request, options));
41099
+ }
41100
+ async function $do19(client, request, options) {
41101
+ const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
41102
+ if (!parsed.ok) {
41103
+ return [parsed, { status: "invalid" }];
41104
+ }
41105
+ const payload = parsed.value;
41106
+ const body = null;
41107
+ const pathParams = {
41108
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
41109
+ explode: false,
41110
+ charEncoding: "percent"
41111
+ })
41112
+ };
41113
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/scrub_details")(pathParams);
41114
+ const headers = new Headers(compactMap({
41115
+ Accept: "application/json"
41116
+ }));
41117
+ const securityInput = await extractSecurity(client._options.security);
41118
+ const requestSecurity = resolveGlobalSecurity(securityInput);
41119
+ const context = {
41120
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
41121
+ operationID: "listVendorScrubDetails",
41122
+ oAuth2Scopes: [],
41123
+ resolvedSecurity: requestSecurity,
41124
+ securitySource: client._options.security,
41125
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
41126
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
41127
+ };
41128
+ const requestRes = client._createRequest(context, {
41129
+ security: requestSecurity,
41130
+ method: "GET",
41131
+ baseURL: options?.serverURL,
41132
+ path,
41133
+ headers,
41134
+ body,
41135
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
41136
+ }, options);
41137
+ if (!requestRes.ok) {
41138
+ return [requestRes, { status: "invalid" }];
41139
+ }
41140
+ const req = requestRes.value;
41141
+ const doResult = await client._do(req, {
41142
+ context,
41143
+ errorCodes: ["400", "401", "4XX", "5XX"],
41144
+ retryConfig: context.retryConfig,
41145
+ retryCodes: context.retryCodes
41146
+ });
41147
+ if (!doResult.ok) {
41148
+ return [doResult, { status: "request-error", request: req }];
41149
+ }
41150
+ const response = doResult.value;
41151
+ const responseFields = {
41152
+ HttpMeta: { Response: response, Request: req }
41153
+ };
41154
+ const [result] = await match(json(200, VendorScrubDetails$inboundSchema), jsonErr([400, 401], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41155
+ if (!result.ok) {
41156
+ return [result, { status: "complete", request: req, response }];
41157
+ }
41158
+ return [result, { status: "complete", request: req, response }];
41159
+ }
41160
+ var init_vendorsListVendorScrubDetails = __esm(() => {
41161
+ init_encodings();
41162
+ init_matchers();
41163
+ init_primitives();
41164
+ init_schemas();
41165
+ init_security();
41166
+ init_url();
41167
+ init_components();
41168
+ init_errors();
41169
+ init_operations();
41170
+ init_async();
41171
+ });
41172
+
41173
+ // src/mcp-server/tools/vendorsListVendorScrubDetails.ts
41174
+ var args18, tool$vendorsListVendorScrubDetails;
41175
+ var init_vendorsListVendorScrubDetails2 = __esm(() => {
41176
+ init_vendorsListVendorScrubDetails();
41177
+ init_operations();
41178
+ init_tools();
41179
+ args18 = {
41180
+ request: ListVendorScrubDetailsRequest$inboundSchema
41181
+ };
41182
+ tool$vendorsListVendorScrubDetails = {
41183
+ name: "vendors-list-vendor-scrub-details",
41184
+ description: `List vendor scrub details
41185
+
41186
+ List vendor scrub details`,
41187
+ args: args18,
41188
+ tool: async (client, args19, ctx) => {
41189
+ const [result, apiCall] = await vendorsListVendorScrubDetails(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41190
+ if (!result.ok) {
41191
+ return {
41192
+ content: [{ type: "text", text: result.error.message }],
41193
+ isError: true
41194
+ };
41195
+ }
41196
+ const value = result.value;
41197
+ return formatResult(value, apiCall);
41198
+ }
41199
+ };
41200
+ });
41201
+
41202
+ // src/funcs/vendorsListVendorScrubPurchases.ts
41203
+ function vendorsListVendorScrubPurchases(client, request, options) {
41204
+ return new APIPromise($do20(client, request, options));
41205
+ }
41206
+ async function $do20(client, request, options) {
41207
+ const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
41208
+ if (!parsed.ok) {
41209
+ return [haltIterator(parsed), { status: "invalid" }];
41210
+ }
41211
+ const payload = parsed.value;
41212
+ const body = null;
41213
+ const pathParams = {
41214
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
41215
+ explode: false,
41216
+ charEncoding: "percent"
41217
+ })
41218
+ };
41219
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/scrub_purchases")(pathParams);
41220
+ const query = encodeFormQuery({
41221
+ desc: payload.desc,
41222
+ items_per_page: payload.items_per_page,
41223
+ page: payload.page,
41224
+ sort: payload.sort
41225
+ });
41226
+ const headers = new Headers(compactMap({
41227
+ Accept: "application/json"
41228
+ }));
41229
+ const securityInput = await extractSecurity(client._options.security);
41230
+ const requestSecurity = resolveGlobalSecurity(securityInput);
41231
+ const context = {
41232
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
41233
+ operationID: "listVendorScrubPurchases",
41234
+ oAuth2Scopes: [],
41235
+ resolvedSecurity: requestSecurity,
41236
+ securitySource: client._options.security,
41237
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
41238
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
41239
+ };
41240
+ const requestRes = client._createRequest(context, {
41241
+ security: requestSecurity,
41242
+ method: "GET",
41243
+ baseURL: options?.serverURL,
41244
+ path,
41245
+ headers,
41246
+ query,
41247
+ body,
41248
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
41249
+ }, options);
41250
+ if (!requestRes.ok) {
41251
+ return [haltIterator(requestRes), { status: "invalid" }];
41252
+ }
41253
+ const req = requestRes.value;
41254
+ const doResult = await client._do(req, {
41255
+ context,
41256
+ errorCodes: ["400", "401", "4XX", "5XX"],
41257
+ retryConfig: context.retryConfig,
41258
+ retryCodes: context.retryCodes
41259
+ });
41260
+ if (!doResult.ok) {
41261
+ return [haltIterator(doResult), { status: "request-error", request: req }];
41262
+ }
41263
+ const response = doResult.value;
41264
+ const responseFields = {
41265
+ HttpMeta: { Response: response, Request: req }
41266
+ };
41267
+ const [result, raw] = await match(json(200, ListVendorScrubPurchasesResponse$inboundSchema, {
41268
+ key: "Result"
41269
+ }), jsonErr([400, 401], ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41270
+ if (!result.ok) {
41271
+ return [haltIterator(result), {
41272
+ status: "complete",
41273
+ request: req,
41274
+ response
41275
+ }];
41276
+ }
41277
+ const nextFunc = (responseData) => {
41278
+ const page2 = request?.page ?? 1;
41279
+ const nextPage = page2 + 1;
41280
+ if (!responseData) {
41281
+ return { next: () => null };
41282
+ }
41283
+ const results = dlv(responseData, "items");
41284
+ if (!Array.isArray(results) || !results.length) {
41285
+ return { next: () => null };
41286
+ }
41287
+ const limit = request?.itemsPerPage ?? 0;
41288
+ if (results.length < limit) {
41289
+ return { next: () => null };
41290
+ }
41291
+ const nextVal = () => vendorsListVendorScrubPurchases(client, {
41292
+ ...request,
41293
+ page: nextPage
41294
+ }, options);
41295
+ return { next: nextVal, "~next": { page: nextPage } };
41296
+ };
41297
+ const page = { ...result, ...nextFunc(raw) };
41298
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
41299
+ status: "complete",
41300
+ request: req,
41301
+ response
41302
+ }];
41303
+ }
41304
+ var init_vendorsListVendorScrubPurchases = __esm(() => {
41305
+ init_encodings();
41306
+ init_matchers();
41307
+ init_primitives();
41308
+ init_schemas();
41309
+ init_security();
41310
+ init_url();
41311
+ init_errors();
41312
+ init_operations();
41313
+ init_async();
41314
+ init_operations2();
41315
+ });
41316
+
41317
+ // src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
41318
+ var args19, tool$vendorsListVendorScrubPurchases;
41319
+ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
41320
+ init_vendorsListVendorScrubPurchases();
41321
+ init_operations();
41322
+ init_tools();
41323
+ args19 = {
41324
+ request: ListVendorScrubPurchasesRequest$inboundSchema
41325
+ };
41326
+ tool$vendorsListVendorScrubPurchases = {
41327
+ name: "vendors-list-vendor-scrub-purchases",
41328
+ description: `List vendor scrub purchases
41329
+
41330
+ List vendor scrub purchases`,
41331
+ args: args19,
41332
+ tool: async (client, args20, ctx) => {
41333
+ const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41334
+ if (!result.ok) {
41335
+ return {
41336
+ content: [{ type: "text", text: result.error.message }],
41337
+ isError: true
41338
+ };
41339
+ }
41340
+ const value = result.value.result;
41341
+ return formatResult(value, apiCall);
41342
+ }
41343
+ };
41344
+ });
41345
+
41346
+ // src/funcs/webhooksGetWebhookEndpoint.ts
41347
+ function webhooksGetWebhookEndpoint(client, request, options) {
41348
+ return new APIPromise($do21(client, request, options));
41349
+ }
41350
+ async function $do21(client, request, options) {
41351
+ const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
41352
+ if (!parsed.ok) {
41353
+ return [parsed, { status: "invalid" }];
41354
+ }
41355
+ const payload = parsed.value;
41356
+ const body = null;
41357
+ const pathParams = {
41358
+ id: encodeSimple("id", payload.id, {
41359
+ explode: false,
41360
+ charEncoding: "percent"
41361
+ })
41362
+ };
41363
+ const path = pathToFunc("/webhooks/{id}")(pathParams);
41364
+ const headers = new Headers(compactMap({
41365
+ Accept: "application/json"
41366
+ }));
41367
+ const securityInput = await extractSecurity(client._options.security);
41368
+ const requestSecurity = resolveGlobalSecurity(securityInput);
41369
+ const context = {
41370
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
41371
+ operationID: "getWebhookEndpoint",
41372
+ oAuth2Scopes: [],
41373
+ resolvedSecurity: requestSecurity,
41374
+ securitySource: client._options.security,
41375
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
41376
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
41377
+ };
41378
+ const requestRes = client._createRequest(context, {
41379
+ security: requestSecurity,
41380
+ method: "GET",
41381
+ baseURL: options?.serverURL,
41382
+ path,
41383
+ headers,
41384
+ body,
41385
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
41386
+ }, options);
41387
+ if (!requestRes.ok) {
41388
+ return [requestRes, { status: "invalid" }];
41389
+ }
41390
+ const req = requestRes.value;
41391
+ const doResult = await client._do(req, {
41392
+ context,
41393
+ errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
41394
+ retryConfig: context.retryConfig,
41395
+ retryCodes: context.retryCodes
41396
+ });
41397
+ if (!doResult.ok) {
41398
+ return [doResult, { status: "request-error", request: req }];
41399
+ }
41400
+ const response = doResult.value;
41401
+ const responseFields = {
41402
+ HttpMeta: { Response: response, Request: req }
41403
+ };
41404
+ const [result] = await match(json(200, WebhookEndpoint$inboundSchema), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41405
+ if (!result.ok) {
41406
+ return [result, { status: "complete", request: req, response }];
41407
+ }
41408
+ return [result, { status: "complete", request: req, response }];
41409
+ }
41410
+ var init_webhooksGetWebhookEndpoint = __esm(() => {
41411
+ init_encodings();
41412
+ init_matchers();
41413
+ init_primitives();
41414
+ init_schemas();
41415
+ init_security();
41416
+ init_url();
41417
+ init_components();
41418
+ init_errors();
41419
+ init_operations();
41420
+ init_async();
41421
+ });
41422
+
41423
+ // src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
41424
+ var args20, tool$webhooksGetWebhookEndpoint;
41425
+ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
41426
+ init_webhooksGetWebhookEndpoint();
41427
+ init_operations();
41428
+ init_tools();
41429
+ args20 = {
41430
+ request: GetWebhookEndpointRequest$inboundSchema
41431
+ };
41432
+ tool$webhooksGetWebhookEndpoint = {
41433
+ name: "webhooks-get-webhook-endpoint",
41434
+ description: `Retrieves the webhook endpoint with the given ID.
41435
+
41436
+ Returns the definition of a webhook endpoint by ID.`,
41437
+ args: args20,
41438
+ tool: async (client, args21, ctx) => {
41439
+ const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41440
+ if (!result.ok) {
41441
+ return {
41442
+ content: [{ type: "text", text: result.error.message }],
41443
+ isError: true
41444
+ };
41445
+ }
41446
+ const value = result.value;
41447
+ return formatResult(value, apiCall);
41448
+ }
41449
+ };
41450
+ });
41451
+
41452
+ // src/funcs/webhooksListAllWebhookEndpoints.ts
41453
+ function webhooksListAllWebhookEndpoints(client, request, options) {
41454
+ return new APIPromise($do22(client, request, options));
41455
+ }
41456
+ async function $do22(client, request, options) {
41457
+ const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
41458
+ if (!parsed.ok) {
41459
+ return [parsed, { status: "invalid" }];
41460
+ }
41461
+ const payload = parsed.value;
41462
+ const body = null;
41463
+ const path = pathToFunc("/webhooks")();
41464
+ const query = encodeFormQuery({
41465
+ desc: payload.desc,
41466
+ items_per_page: payload.items_per_page,
41467
+ page: payload.page,
41468
+ sort: payload.sort
41469
+ });
41470
+ const headers = new Headers(compactMap({
41471
+ Accept: "application/json"
41472
+ }));
41473
+ const securityInput = await extractSecurity(client._options.security);
41474
+ const requestSecurity = resolveGlobalSecurity(securityInput);
41475
+ const context = {
41476
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
41477
+ operationID: "listAllWebhookEndpoints",
41478
+ oAuth2Scopes: [],
41479
+ resolvedSecurity: requestSecurity,
41480
+ securitySource: client._options.security,
41481
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
41482
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
41483
+ };
41484
+ const requestRes = client._createRequest(context, {
41485
+ security: requestSecurity,
41486
+ method: "GET",
41487
+ baseURL: options?.serverURL,
41488
+ path,
41489
+ headers,
41490
+ query,
41491
+ body,
41492
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
41493
+ }, options);
41494
+ if (!requestRes.ok) {
41495
+ return [requestRes, { status: "invalid" }];
41496
+ }
41497
+ const req = requestRes.value;
41498
+ const doResult = await client._do(req, {
41499
+ context,
41500
+ errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
41501
+ retryConfig: context.retryConfig,
41502
+ retryCodes: context.retryCodes
41503
+ });
41504
+ if (!doResult.ok) {
41505
+ return [doResult, { status: "request-error", request: req }];
41506
+ }
41507
+ const response = doResult.value;
41508
+ const responseFields = {
41509
+ HttpMeta: { Response: response, Request: req }
41510
+ };
41511
+ const [result] = await match(json(200, ListAllWebhookEndpointsResponseBody$inboundSchema), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
41512
+ if (!result.ok) {
41513
+ return [result, { status: "complete", request: req, response }];
41514
+ }
41515
+ return [result, { status: "complete", request: req, response }];
41516
+ }
41517
+ var init_webhooksListAllWebhookEndpoints = __esm(() => {
41518
+ init_encodings();
41519
+ init_matchers();
41520
+ init_primitives();
41521
+ init_schemas();
41522
+ init_security();
41523
+ init_url();
41524
+ init_errors();
41525
+ init_operations();
41526
+ init_async();
41527
+ });
41528
+
41529
+ // src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
41530
+ var args21, tool$webhooksListAllWebhookEndpoints;
41531
+ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
41532
+ init_webhooksListAllWebhookEndpoints();
41533
+ init_operations();
41534
+ init_tools();
41535
+ args21 = {
41536
+ request: ListAllWebhookEndpointsRequest$inboundSchema
41537
+ };
41538
+ tool$webhooksListAllWebhookEndpoints = {
41539
+ name: "webhooks-list-all-webhook-endpoints",
41540
+ description: `List all webhook endpoints
41541
+
41542
+ Returns a list of your webhook endpoints.`,
41543
+ args: args21,
41544
+ tool: async (client, args22, ctx) => {
41545
+ const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
41546
+ if (!result.ok) {
41547
+ return {
41548
+ content: [{ type: "text", text: result.error.message }],
41549
+ isError: true
41550
+ };
41551
+ }
41552
+ const value = result.value;
41553
+ return formatResult(value, apiCall);
41554
+ }
41555
+ };
41556
+ });
41557
+
39859
41558
  // src/mcp-server/server.ts
39860
41559
  function createMCPServer(deps) {
39861
41560
  const server = new McpServer({
39862
41561
  name: "GreenSecurity",
39863
- version: "0.18.2"
41562
+ version: "0.21.1"
39864
41563
  });
39865
41564
  const client = new GreenSecurityCore({
39866
41565
  security: deps.security,
@@ -39872,13 +41571,17 @@ function createMCPServer(deps) {
39872
41571
  const tool = createRegisterTool(deps.logger, server, client, scopes, allowedTools);
39873
41572
  const resource = createRegisterResource(deps.logger, server, client, scopes);
39874
41573
  const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
39875
- const register = { tool, resource, resourceTemplate };
41574
+ const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
41575
+ const register = { tool, resource, resourceTemplate, prompt };
39876
41576
  tool(tool$vendorsCreateVendorRegistration);
39877
- tool(tool$vendorsListVendorJobTitles);
39878
41577
  tool(tool$vendorsListVendorCredentials);
39879
41578
  tool(tool$vendorsExpediteTimeRemaining);
39880
41579
  tool(tool$vendorsListVendorInvoices);
39881
41580
  tool(tool$vendorsGetVendorInvoiceDetails);
41581
+ tool(tool$vendorsListVendorFacilityStatuses);
41582
+ tool(tool$vendorsListVendorScrubPurchases);
41583
+ tool(tool$vendorsListVendorScrubDetails);
41584
+ tool(tool$vendorsGetVendorsDetails);
39882
41585
  tool(tool$usersGetCurrentUser);
39883
41586
  tool(tool$usersGetUserById);
39884
41587
  tool(tool$usersLogsUserIntoTheSystem);
@@ -39889,6 +41592,9 @@ function createMCPServer(deps) {
39889
41592
  tool(tool$organizationsGetFacility);
39890
41593
  tool(tool$supportArticlesListOrSearchSupportArticles);
39891
41594
  tool(tool$supportArticlesGetSupportArticle);
41595
+ tool(tool$webhooksListAllWebhookEndpoints);
41596
+ tool(tool$webhooksGetWebhookEndpoint);
41597
+ tool(tool$vendorScansVendorScanOut);
39892
41598
  return server;
39893
41599
  }
39894
41600
  var init_server2 = __esm(() => {
@@ -39907,12 +41613,18 @@ var init_server2 = __esm(() => {
39907
41613
  init_usersMagiclink2();
39908
41614
  init_usersPassword2();
39909
41615
  init_usersPasswordResetRequest2();
41616
+ init_vendorScansVendorScanOut2();
39910
41617
  init_vendorsCreateVendorRegistration2();
39911
41618
  init_vendorsExpediteTimeRemaining2();
39912
41619
  init_vendorsGetVendorInvoiceDetails2();
41620
+ init_vendorsGetVendorsDetails2();
39913
41621
  init_vendorsListVendorCredentials2();
41622
+ init_vendorsListVendorFacilityStatuses2();
39914
41623
  init_vendorsListVendorInvoices2();
39915
- init_vendorsListVendorJobTitles2();
41624
+ init_vendorsListVendorScrubDetails2();
41625
+ init_vendorsListVendorScrubPurchases2();
41626
+ init_webhooksGetWebhookEndpoint2();
41627
+ init_webhooksListAllWebhookEndpoints2();
39916
41628
  });
39917
41629
 
39918
41630
  // src/mcp-server/cli/start/impl.ts
@@ -41110,7 +42822,7 @@ var routes = rn({
41110
42822
  var app = Ve(routes, {
41111
42823
  name: "mcp",
41112
42824
  versionInfo: {
41113
- currentVersion: "0.18.2"
42825
+ currentVersion: "0.21.1"
41114
42826
  }
41115
42827
  });
41116
42828
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -41118,5 +42830,5 @@ export {
41118
42830
  app
41119
42831
  };
41120
42832
 
41121
- //# debugId=5513584B61D4C26A64756E2164756E21
42833
+ //# debugId=C0435E41104ED51164756E2164756E21
41122
42834
  //# sourceMappingURL=mcp-server.js.map