@greensecurity/javascript-sdk 0.37.8 → 0.37.12

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 (425) hide show
  1. package/README.md +18 -0
  2. package/bin/mcp-server.js +1761 -577
  3. package/bin/mcp-server.js.map +39 -21
  4. package/dist/commonjs/__tests__/systems.test.d.ts +2 -0
  5. package/dist/commonjs/__tests__/systems.test.d.ts.map +1 -0
  6. package/dist/commonjs/__tests__/systems.test.js +46 -0
  7. package/dist/commonjs/__tests__/systems.test.js.map +1 -0
  8. package/dist/commonjs/__tests__/vendors.test.js +81 -0
  9. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  10. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  11. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  12. package/dist/commonjs/__tests__/zones.test.js +16 -4
  13. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  14. package/dist/commonjs/funcs/systemsListSystems.d.ts +25 -0
  15. package/dist/commonjs/funcs/systemsListSystems.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/systemsListSystems.js +163 -0
  17. package/dist/commonjs/funcs/systemsListSystems.js.map +1 -0
  18. package/dist/commonjs/funcs/vendorsCalculateSubscriptionPrice.d.ts +18 -0
  19. package/dist/commonjs/funcs/vendorsCalculateSubscriptionPrice.d.ts.map +1 -0
  20. package/dist/commonjs/funcs/vendorsCalculateSubscriptionPrice.js +123 -0
  21. package/dist/commonjs/funcs/vendorsCalculateSubscriptionPrice.js.map +1 -0
  22. package/dist/commonjs/funcs/vendorsChangeSubscription.d.ts +18 -0
  23. package/dist/commonjs/funcs/vendorsChangeSubscription.d.ts.map +1 -0
  24. package/dist/commonjs/funcs/vendorsChangeSubscription.js +123 -0
  25. package/dist/commonjs/funcs/vendorsChangeSubscription.js.map +1 -0
  26. package/dist/commonjs/funcs/vendorsGetSubscription.d.ts +22 -0
  27. package/dist/commonjs/funcs/vendorsGetSubscription.d.ts.map +1 -0
  28. package/dist/commonjs/funcs/vendorsGetSubscription.js +130 -0
  29. package/dist/commonjs/funcs/vendorsGetSubscription.js.map +1 -0
  30. package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts +3 -0
  31. package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
  32. package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +3 -0
  33. package/dist/commonjs/funcs/vendorsGetVendorsDetails.js.map +1 -1
  34. package/dist/commonjs/funcs/vendorsListVendorTypes.d.ts +21 -0
  35. package/dist/commonjs/funcs/vendorsListVendorTypes.d.ts.map +1 -0
  36. package/dist/commonjs/funcs/vendorsListVendorTypes.js +156 -0
  37. package/dist/commonjs/funcs/vendorsListVendorTypes.js.map +1 -0
  38. package/dist/commonjs/lib/config.d.ts +3 -3
  39. package/dist/commonjs/lib/config.js +3 -3
  40. package/dist/commonjs/lib/config.js.map +1 -1
  41. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  42. package/dist/commonjs/mcp-server/mcp-server.js.map +1 -1
  43. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  44. package/dist/commonjs/mcp-server/server.js +11 -1
  45. package/dist/commonjs/mcp-server/server.js.map +1 -1
  46. package/dist/commonjs/mcp-server/tools/systemsListSystems.d.ts +8 -0
  47. package/dist/commonjs/mcp-server/tools/systemsListSystems.d.ts.map +1 -0
  48. package/dist/commonjs/mcp-server/tools/systemsListSystems.js +68 -0
  49. package/dist/commonjs/mcp-server/tools/systemsListSystems.js.map +1 -0
  50. package/dist/commonjs/mcp-server/tools/vendorsCalculateSubscriptionPrice.d.ts +8 -0
  51. package/dist/commonjs/mcp-server/tools/vendorsCalculateSubscriptionPrice.d.ts.map +1 -0
  52. package/dist/commonjs/mcp-server/tools/vendorsCalculateSubscriptionPrice.js +64 -0
  53. package/dist/commonjs/mcp-server/tools/vendorsCalculateSubscriptionPrice.js.map +1 -0
  54. package/dist/commonjs/mcp-server/tools/vendorsChangeSubscription.d.ts +8 -0
  55. package/dist/commonjs/mcp-server/tools/vendorsChangeSubscription.d.ts.map +1 -0
  56. package/dist/commonjs/mcp-server/tools/vendorsChangeSubscription.js +64 -0
  57. package/dist/commonjs/mcp-server/tools/vendorsChangeSubscription.js.map +1 -0
  58. package/dist/commonjs/mcp-server/tools/vendorsGetSubscription.d.ts +8 -0
  59. package/dist/commonjs/mcp-server/tools/vendorsGetSubscription.d.ts.map +1 -0
  60. package/dist/commonjs/mcp-server/tools/vendorsGetSubscription.js +68 -0
  61. package/dist/commonjs/mcp-server/tools/vendorsGetSubscription.js.map +1 -0
  62. package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
  63. package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js +4 -1
  64. package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
  65. package/dist/commonjs/mcp-server/tools/vendorsListVendorTypes.d.ts +8 -0
  66. package/dist/commonjs/mcp-server/tools/vendorsListVendorTypes.d.ts.map +1 -0
  67. package/dist/commonjs/mcp-server/tools/vendorsListVendorTypes.js +64 -0
  68. package/dist/commonjs/mcp-server/tools/vendorsListVendorTypes.js.map +1 -0
  69. package/dist/commonjs/models/components/company.d.ts +3 -0
  70. package/dist/commonjs/models/components/company.d.ts.map +1 -1
  71. package/dist/commonjs/models/components/company.js +5 -0
  72. package/dist/commonjs/models/components/company.js.map +1 -1
  73. package/dist/commonjs/models/components/companyvendortyperestriction.d.ts +80 -0
  74. package/dist/commonjs/models/components/companyvendortyperestriction.d.ts.map +1 -0
  75. package/dist/commonjs/models/components/companyvendortyperestriction.js +132 -0
  76. package/dist/commonjs/models/components/companyvendortyperestriction.js.map +1 -0
  77. package/dist/commonjs/models/components/expand.d.ts +15 -0
  78. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  79. package/dist/commonjs/models/components/expand.js +5 -0
  80. package/dist/commonjs/models/components/expand.js.map +1 -1
  81. package/dist/commonjs/models/components/facility.d.ts +18 -18
  82. package/dist/commonjs/models/components/facility.d.ts.map +1 -1
  83. package/dist/commonjs/models/components/facility.js +21 -21
  84. package/dist/commonjs/models/components/facility.js.map +1 -1
  85. package/dist/commonjs/models/components/facilitysummary.d.ts +28 -0
  86. package/dist/commonjs/models/components/facilitysummary.d.ts.map +1 -1
  87. package/dist/commonjs/models/components/facilitysummary.js +50 -1
  88. package/dist/commonjs/models/components/facilitysummary.js.map +1 -1
  89. package/dist/commonjs/models/components/facilityvendortype.d.ts +71 -0
  90. package/dist/commonjs/models/components/facilityvendortype.d.ts.map +1 -0
  91. package/dist/commonjs/models/components/facilityvendortype.js +137 -0
  92. package/dist/commonjs/models/components/facilityvendortype.js.map +1 -0
  93. package/dist/commonjs/models/components/index.d.ts +3 -0
  94. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  95. package/dist/commonjs/models/components/index.js +3 -0
  96. package/dist/commonjs/models/components/index.js.map +1 -1
  97. package/dist/commonjs/models/components/invoiceitem.d.ts +33 -0
  98. package/dist/commonjs/models/components/invoiceitem.d.ts.map +1 -1
  99. package/dist/commonjs/models/components/invoiceitem.js +48 -1
  100. package/dist/commonjs/models/components/invoiceitem.js.map +1 -1
  101. package/dist/commonjs/models/components/productvariant.d.ts +4 -4
  102. package/dist/commonjs/models/components/productvariant.d.ts.map +1 -1
  103. package/dist/commonjs/models/components/productvariant.js +4 -4
  104. package/dist/commonjs/models/components/productvariant.js.map +1 -1
  105. package/dist/commonjs/models/components/subscription.d.ts +3 -0
  106. package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
  107. package/dist/commonjs/models/components/subscription.js +5 -0
  108. package/dist/commonjs/models/components/subscription.js.map +1 -1
  109. package/dist/commonjs/models/components/systemsummary.d.ts +3 -0
  110. package/dist/commonjs/models/components/systemsummary.d.ts.map +1 -1
  111. package/dist/commonjs/models/components/systemsummary.js +3 -0
  112. package/dist/commonjs/models/components/systemsummary.js.map +1 -1
  113. package/dist/commonjs/models/components/vendor.d.ts +56 -0
  114. package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
  115. package/dist/commonjs/models/components/vendor.js +69 -1
  116. package/dist/commonjs/models/components/vendor.js.map +1 -1
  117. package/dist/commonjs/models/components/vendorgroup.d.ts +38 -0
  118. package/dist/commonjs/models/components/vendorgroup.d.ts.map +1 -0
  119. package/dist/commonjs/models/components/vendorgroup.js +84 -0
  120. package/dist/commonjs/models/components/vendorgroup.js.map +1 -0
  121. package/dist/commonjs/models/components/zoneconfig.d.ts +15 -15
  122. package/dist/commonjs/models/components/zoneconfig.d.ts.map +1 -1
  123. package/dist/commonjs/models/components/zoneconfig.js +18 -18
  124. package/dist/commonjs/models/components/zoneconfig.js.map +1 -1
  125. package/dist/commonjs/models/operations/calculatesubscriptionprice.d.ts +89 -0
  126. package/dist/commonjs/models/operations/calculatesubscriptionprice.d.ts.map +1 -0
  127. package/dist/commonjs/models/operations/calculatesubscriptionprice.js +148 -0
  128. package/dist/commonjs/models/operations/calculatesubscriptionprice.js.map +1 -0
  129. package/dist/commonjs/models/operations/changesubscription.d.ts +93 -0
  130. package/dist/commonjs/models/operations/changesubscription.d.ts.map +1 -0
  131. package/dist/commonjs/models/operations/changesubscription.js +152 -0
  132. package/dist/commonjs/models/operations/changesubscription.js.map +1 -0
  133. package/dist/commonjs/models/operations/getsubscription.d.ts +69 -0
  134. package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -0
  135. package/dist/commonjs/models/operations/getsubscription.js +108 -0
  136. package/dist/commonjs/models/operations/getsubscription.js.map +1 -0
  137. package/dist/commonjs/models/operations/index.d.ts +5 -0
  138. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  139. package/dist/commonjs/models/operations/index.js +5 -0
  140. package/dist/commonjs/models/operations/index.js.map +1 -1
  141. package/dist/commonjs/models/operations/listsystems.d.ts +116 -0
  142. package/dist/commonjs/models/operations/listsystems.d.ts.map +1 -0
  143. package/dist/commonjs/models/operations/listsystems.js +155 -0
  144. package/dist/commonjs/models/operations/listsystems.js.map +1 -0
  145. package/dist/commonjs/models/operations/listvendortypes.d.ts +106 -0
  146. package/dist/commonjs/models/operations/listvendortypes.d.ts.map +1 -0
  147. package/dist/commonjs/models/operations/listvendortypes.js +149 -0
  148. package/dist/commonjs/models/operations/listvendortypes.js.map +1 -0
  149. package/dist/commonjs/react-query/index.d.ts +5 -0
  150. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  151. package/dist/commonjs/react-query/index.js +5 -0
  152. package/dist/commonjs/react-query/index.js.map +1 -1
  153. package/dist/commonjs/react-query/systemsListSystems.d.ts +97 -0
  154. package/dist/commonjs/react-query/systemsListSystems.d.ts.map +1 -0
  155. package/dist/commonjs/react-query/systemsListSystems.js +175 -0
  156. package/dist/commonjs/react-query/systemsListSystems.js.map +1 -0
  157. package/dist/commonjs/react-query/vendorsCalculateSubscriptionPrice.d.ts +23 -0
  158. package/dist/commonjs/react-query/vendorsCalculateSubscriptionPrice.d.ts.map +1 -0
  159. package/dist/commonjs/react-query/vendorsCalculateSubscriptionPrice.js +51 -0
  160. package/dist/commonjs/react-query/vendorsCalculateSubscriptionPrice.js.map +1 -0
  161. package/dist/commonjs/react-query/vendorsChangeSubscription.d.ts +23 -0
  162. package/dist/commonjs/react-query/vendorsChangeSubscription.d.ts.map +1 -0
  163. package/dist/commonjs/react-query/vendorsChangeSubscription.js +47 -0
  164. package/dist/commonjs/react-query/vendorsChangeSubscription.js.map +1 -0
  165. package/dist/commonjs/react-query/vendorsGetSubscription.d.ts +51 -0
  166. package/dist/commonjs/react-query/vendorsGetSubscription.d.ts.map +1 -0
  167. package/dist/commonjs/react-query/vendorsGetSubscription.js +103 -0
  168. package/dist/commonjs/react-query/vendorsGetSubscription.js.map +1 -0
  169. package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts +6 -0
  170. package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
  171. package/dist/commonjs/react-query/vendorsGetVendorsDetails.js +6 -0
  172. package/dist/commonjs/react-query/vendorsGetVendorsDetails.js.map +1 -1
  173. package/dist/commonjs/react-query/vendorsListVendorTypes.d.ts +75 -0
  174. package/dist/commonjs/react-query/vendorsListVendorTypes.d.ts.map +1 -0
  175. package/dist/commonjs/react-query/vendorsListVendorTypes.js +155 -0
  176. package/dist/commonjs/react-query/vendorsListVendorTypes.js.map +1 -0
  177. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  178. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  179. package/dist/commonjs/sdk/sdk.js +4 -0
  180. package/dist/commonjs/sdk/sdk.js.map +1 -1
  181. package/dist/commonjs/sdk/systems.d.ts +19 -0
  182. package/dist/commonjs/sdk/systems.d.ts.map +1 -0
  183. package/dist/commonjs/sdk/systems.js +26 -0
  184. package/dist/commonjs/sdk/systems.js.map +1 -0
  185. package/dist/commonjs/sdk/vendors.d.ts +37 -0
  186. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  187. package/dist/commonjs/sdk/vendors.js +47 -0
  188. package/dist/commonjs/sdk/vendors.js.map +1 -1
  189. package/dist/esm/__tests__/systems.test.d.ts +2 -0
  190. package/dist/esm/__tests__/systems.test.d.ts.map +1 -0
  191. package/dist/esm/__tests__/systems.test.js +44 -0
  192. package/dist/esm/__tests__/systems.test.js.map +1 -0
  193. package/dist/esm/__tests__/vendors.test.js +81 -0
  194. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  195. package/dist/esm/__tests__/webhooks.test.js +1 -1
  196. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  197. package/dist/esm/__tests__/zones.test.js +16 -4
  198. package/dist/esm/__tests__/zones.test.js.map +1 -1
  199. package/dist/esm/funcs/systemsListSystems.d.ts +25 -0
  200. package/dist/esm/funcs/systemsListSystems.d.ts.map +1 -0
  201. package/dist/esm/funcs/systemsListSystems.js +127 -0
  202. package/dist/esm/funcs/systemsListSystems.js.map +1 -0
  203. package/dist/esm/funcs/vendorsCalculateSubscriptionPrice.d.ts +18 -0
  204. package/dist/esm/funcs/vendorsCalculateSubscriptionPrice.d.ts.map +1 -0
  205. package/dist/esm/funcs/vendorsCalculateSubscriptionPrice.js +87 -0
  206. package/dist/esm/funcs/vendorsCalculateSubscriptionPrice.js.map +1 -0
  207. package/dist/esm/funcs/vendorsChangeSubscription.d.ts +18 -0
  208. package/dist/esm/funcs/vendorsChangeSubscription.d.ts.map +1 -0
  209. package/dist/esm/funcs/vendorsChangeSubscription.js +87 -0
  210. package/dist/esm/funcs/vendorsChangeSubscription.js.map +1 -0
  211. package/dist/esm/funcs/vendorsGetSubscription.d.ts +22 -0
  212. package/dist/esm/funcs/vendorsGetSubscription.d.ts.map +1 -0
  213. package/dist/esm/funcs/vendorsGetSubscription.js +94 -0
  214. package/dist/esm/funcs/vendorsGetSubscription.js.map +1 -0
  215. package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts +3 -0
  216. package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
  217. package/dist/esm/funcs/vendorsGetVendorsDetails.js +3 -0
  218. package/dist/esm/funcs/vendorsGetVendorsDetails.js.map +1 -1
  219. package/dist/esm/funcs/vendorsListVendorTypes.d.ts +21 -0
  220. package/dist/esm/funcs/vendorsListVendorTypes.d.ts.map +1 -0
  221. package/dist/esm/funcs/vendorsListVendorTypes.js +120 -0
  222. package/dist/esm/funcs/vendorsListVendorTypes.js.map +1 -0
  223. package/dist/esm/lib/config.d.ts +3 -3
  224. package/dist/esm/lib/config.js +3 -3
  225. package/dist/esm/lib/config.js.map +1 -1
  226. package/dist/esm/mcp-server/mcp-server.js +1 -1
  227. package/dist/esm/mcp-server/mcp-server.js.map +1 -1
  228. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  229. package/dist/esm/mcp-server/server.js +11 -1
  230. package/dist/esm/mcp-server/server.js.map +1 -1
  231. package/dist/esm/mcp-server/tools/systemsListSystems.d.ts +8 -0
  232. package/dist/esm/mcp-server/tools/systemsListSystems.d.ts.map +1 -0
  233. package/dist/esm/mcp-server/tools/systemsListSystems.js +32 -0
  234. package/dist/esm/mcp-server/tools/systemsListSystems.js.map +1 -0
  235. package/dist/esm/mcp-server/tools/vendorsCalculateSubscriptionPrice.d.ts +8 -0
  236. package/dist/esm/mcp-server/tools/vendorsCalculateSubscriptionPrice.d.ts.map +1 -0
  237. package/dist/esm/mcp-server/tools/vendorsCalculateSubscriptionPrice.js +28 -0
  238. package/dist/esm/mcp-server/tools/vendorsCalculateSubscriptionPrice.js.map +1 -0
  239. package/dist/esm/mcp-server/tools/vendorsChangeSubscription.d.ts +8 -0
  240. package/dist/esm/mcp-server/tools/vendorsChangeSubscription.d.ts.map +1 -0
  241. package/dist/esm/mcp-server/tools/vendorsChangeSubscription.js +28 -0
  242. package/dist/esm/mcp-server/tools/vendorsChangeSubscription.js.map +1 -0
  243. package/dist/esm/mcp-server/tools/vendorsGetSubscription.d.ts +8 -0
  244. package/dist/esm/mcp-server/tools/vendorsGetSubscription.d.ts.map +1 -0
  245. package/dist/esm/mcp-server/tools/vendorsGetSubscription.js +32 -0
  246. package/dist/esm/mcp-server/tools/vendorsGetSubscription.js.map +1 -0
  247. package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
  248. package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js +4 -1
  249. package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
  250. package/dist/esm/mcp-server/tools/vendorsListVendorTypes.d.ts +8 -0
  251. package/dist/esm/mcp-server/tools/vendorsListVendorTypes.d.ts.map +1 -0
  252. package/dist/esm/mcp-server/tools/vendorsListVendorTypes.js +28 -0
  253. package/dist/esm/mcp-server/tools/vendorsListVendorTypes.js.map +1 -0
  254. package/dist/esm/models/components/company.d.ts +3 -0
  255. package/dist/esm/models/components/company.d.ts.map +1 -1
  256. package/dist/esm/models/components/company.js +5 -0
  257. package/dist/esm/models/components/company.js.map +1 -1
  258. package/dist/esm/models/components/companyvendortyperestriction.d.ts +80 -0
  259. package/dist/esm/models/components/companyvendortyperestriction.d.ts.map +1 -0
  260. package/dist/esm/models/components/companyvendortyperestriction.js +90 -0
  261. package/dist/esm/models/components/companyvendortyperestriction.js.map +1 -0
  262. package/dist/esm/models/components/expand.d.ts +15 -0
  263. package/dist/esm/models/components/expand.d.ts.map +1 -1
  264. package/dist/esm/models/components/expand.js +5 -0
  265. package/dist/esm/models/components/expand.js.map +1 -1
  266. package/dist/esm/models/components/facility.d.ts +18 -18
  267. package/dist/esm/models/components/facility.d.ts.map +1 -1
  268. package/dist/esm/models/components/facility.js +18 -18
  269. package/dist/esm/models/components/facility.js.map +1 -1
  270. package/dist/esm/models/components/facilitysummary.d.ts +28 -0
  271. package/dist/esm/models/components/facilitysummary.d.ts.map +1 -1
  272. package/dist/esm/models/components/facilitysummary.js +47 -0
  273. package/dist/esm/models/components/facilitysummary.js.map +1 -1
  274. package/dist/esm/models/components/facilityvendortype.d.ts +71 -0
  275. package/dist/esm/models/components/facilityvendortype.d.ts.map +1 -0
  276. package/dist/esm/models/components/facilityvendortype.js +97 -0
  277. package/dist/esm/models/components/facilityvendortype.js.map +1 -0
  278. package/dist/esm/models/components/index.d.ts +3 -0
  279. package/dist/esm/models/components/index.d.ts.map +1 -1
  280. package/dist/esm/models/components/index.js +3 -0
  281. package/dist/esm/models/components/index.js.map +1 -1
  282. package/dist/esm/models/components/invoiceitem.d.ts +33 -0
  283. package/dist/esm/models/components/invoiceitem.d.ts.map +1 -1
  284. package/dist/esm/models/components/invoiceitem.js +45 -0
  285. package/dist/esm/models/components/invoiceitem.js.map +1 -1
  286. package/dist/esm/models/components/productvariant.d.ts +4 -4
  287. package/dist/esm/models/components/productvariant.d.ts.map +1 -1
  288. package/dist/esm/models/components/productvariant.js +4 -4
  289. package/dist/esm/models/components/productvariant.js.map +1 -1
  290. package/dist/esm/models/components/subscription.d.ts +3 -0
  291. package/dist/esm/models/components/subscription.d.ts.map +1 -1
  292. package/dist/esm/models/components/subscription.js +5 -0
  293. package/dist/esm/models/components/subscription.js.map +1 -1
  294. package/dist/esm/models/components/systemsummary.d.ts +3 -0
  295. package/dist/esm/models/components/systemsummary.d.ts.map +1 -1
  296. package/dist/esm/models/components/systemsummary.js +3 -0
  297. package/dist/esm/models/components/systemsummary.js.map +1 -1
  298. package/dist/esm/models/components/vendor.d.ts +56 -0
  299. package/dist/esm/models/components/vendor.d.ts.map +1 -1
  300. package/dist/esm/models/components/vendor.js +64 -0
  301. package/dist/esm/models/components/vendor.js.map +1 -1
  302. package/dist/esm/models/components/vendorgroup.d.ts +38 -0
  303. package/dist/esm/models/components/vendorgroup.d.ts.map +1 -0
  304. package/dist/esm/models/components/vendorgroup.js +46 -0
  305. package/dist/esm/models/components/vendorgroup.js.map +1 -0
  306. package/dist/esm/models/components/zoneconfig.d.ts +15 -15
  307. package/dist/esm/models/components/zoneconfig.d.ts.map +1 -1
  308. package/dist/esm/models/components/zoneconfig.js +15 -15
  309. package/dist/esm/models/components/zoneconfig.js.map +1 -1
  310. package/dist/esm/models/operations/calculatesubscriptionprice.d.ts +89 -0
  311. package/dist/esm/models/operations/calculatesubscriptionprice.d.ts.map +1 -0
  312. package/dist/esm/models/operations/calculatesubscriptionprice.js +106 -0
  313. package/dist/esm/models/operations/calculatesubscriptionprice.js.map +1 -0
  314. package/dist/esm/models/operations/changesubscription.d.ts +93 -0
  315. package/dist/esm/models/operations/changesubscription.d.ts.map +1 -0
  316. package/dist/esm/models/operations/changesubscription.js +110 -0
  317. package/dist/esm/models/operations/changesubscription.js.map +1 -0
  318. package/dist/esm/models/operations/getsubscription.d.ts +69 -0
  319. package/dist/esm/models/operations/getsubscription.d.ts.map +1 -0
  320. package/dist/esm/models/operations/getsubscription.js +68 -0
  321. package/dist/esm/models/operations/getsubscription.js.map +1 -0
  322. package/dist/esm/models/operations/index.d.ts +5 -0
  323. package/dist/esm/models/operations/index.d.ts.map +1 -1
  324. package/dist/esm/models/operations/index.js +5 -0
  325. package/dist/esm/models/operations/index.js.map +1 -1
  326. package/dist/esm/models/operations/listsystems.d.ts +116 -0
  327. package/dist/esm/models/operations/listsystems.d.ts.map +1 -0
  328. package/dist/esm/models/operations/listsystems.js +113 -0
  329. package/dist/esm/models/operations/listsystems.js.map +1 -0
  330. package/dist/esm/models/operations/listvendortypes.d.ts +106 -0
  331. package/dist/esm/models/operations/listvendortypes.d.ts.map +1 -0
  332. package/dist/esm/models/operations/listvendortypes.js +107 -0
  333. package/dist/esm/models/operations/listvendortypes.js.map +1 -0
  334. package/dist/esm/react-query/index.d.ts +5 -0
  335. package/dist/esm/react-query/index.d.ts.map +1 -1
  336. package/dist/esm/react-query/index.js +5 -0
  337. package/dist/esm/react-query/index.js.map +1 -1
  338. package/dist/esm/react-query/systemsListSystems.d.ts +97 -0
  339. package/dist/esm/react-query/systemsListSystems.d.ts.map +1 -0
  340. package/dist/esm/react-query/systemsListSystems.js +162 -0
  341. package/dist/esm/react-query/systemsListSystems.js.map +1 -0
  342. package/dist/esm/react-query/vendorsCalculateSubscriptionPrice.d.ts +23 -0
  343. package/dist/esm/react-query/vendorsCalculateSubscriptionPrice.d.ts.map +1 -0
  344. package/dist/esm/react-query/vendorsCalculateSubscriptionPrice.js +46 -0
  345. package/dist/esm/react-query/vendorsCalculateSubscriptionPrice.js.map +1 -0
  346. package/dist/esm/react-query/vendorsChangeSubscription.d.ts +23 -0
  347. package/dist/esm/react-query/vendorsChangeSubscription.d.ts.map +1 -0
  348. package/dist/esm/react-query/vendorsChangeSubscription.js +42 -0
  349. package/dist/esm/react-query/vendorsChangeSubscription.js.map +1 -0
  350. package/dist/esm/react-query/vendorsGetSubscription.d.ts +51 -0
  351. package/dist/esm/react-query/vendorsGetSubscription.d.ts.map +1 -0
  352. package/dist/esm/react-query/vendorsGetSubscription.js +93 -0
  353. package/dist/esm/react-query/vendorsGetSubscription.js.map +1 -0
  354. package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts +6 -0
  355. package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
  356. package/dist/esm/react-query/vendorsGetVendorsDetails.js +6 -0
  357. package/dist/esm/react-query/vendorsGetVendorsDetails.js.map +1 -1
  358. package/dist/esm/react-query/vendorsListVendorTypes.d.ts +75 -0
  359. package/dist/esm/react-query/vendorsListVendorTypes.d.ts.map +1 -0
  360. package/dist/esm/react-query/vendorsListVendorTypes.js +142 -0
  361. package/dist/esm/react-query/vendorsListVendorTypes.js.map +1 -0
  362. package/dist/esm/sdk/sdk.d.ts +3 -0
  363. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  364. package/dist/esm/sdk/sdk.js +4 -0
  365. package/dist/esm/sdk/sdk.js.map +1 -1
  366. package/dist/esm/sdk/systems.d.ts +19 -0
  367. package/dist/esm/sdk/systems.d.ts.map +1 -0
  368. package/dist/esm/sdk/systems.js +22 -0
  369. package/dist/esm/sdk/systems.js.map +1 -0
  370. package/dist/esm/sdk/vendors.d.ts +37 -0
  371. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  372. package/dist/esm/sdk/vendors.js +47 -0
  373. package/dist/esm/sdk/vendors.js.map +1 -1
  374. package/examples/package-lock.json +1 -1
  375. package/jsr.json +1 -1
  376. package/package.json +1 -1
  377. package/src/__tests__/systems.test.ts +47 -0
  378. package/src/__tests__/vendors.test.ts +93 -0
  379. package/src/__tests__/webhooks.test.ts +1 -1
  380. package/src/__tests__/zones.test.ts +16 -4
  381. package/src/funcs/systemsListSystems.ts +257 -0
  382. package/src/funcs/vendorsCalculateSubscriptionPrice.ts +182 -0
  383. package/src/funcs/vendorsChangeSubscription.ts +178 -0
  384. package/src/funcs/vendorsGetSubscription.ts +186 -0
  385. package/src/funcs/vendorsGetVendorsDetails.ts +3 -0
  386. package/src/funcs/vendorsListVendorTypes.ts +247 -0
  387. package/src/lib/config.ts +3 -3
  388. package/src/mcp-server/mcp-server.ts +1 -1
  389. package/src/mcp-server/server.ts +11 -1
  390. package/src/mcp-server/tools/systemsListSystems.ts +41 -0
  391. package/src/mcp-server/tools/vendorsCalculateSubscriptionPrice.ts +39 -0
  392. package/src/mcp-server/tools/vendorsChangeSubscription.ts +37 -0
  393. package/src/mcp-server/tools/vendorsGetSubscription.ts +41 -0
  394. package/src/mcp-server/tools/vendorsGetVendorsDetails.ts +4 -1
  395. package/src/mcp-server/tools/vendorsListVendorTypes.ts +37 -0
  396. package/src/models/components/company.ts +22 -0
  397. package/src/models/components/companyvendortyperestriction.ts +221 -0
  398. package/src/models/components/expand.ts +5 -0
  399. package/src/models/components/facility.ts +38 -34
  400. package/src/models/components/facilitysummary.ts +83 -0
  401. package/src/models/components/facilityvendortype.ts +178 -0
  402. package/src/models/components/index.ts +3 -0
  403. package/src/models/components/invoiceitem.ts +79 -0
  404. package/src/models/components/productvariant.ts +8 -8
  405. package/src/models/components/subscription.ts +12 -0
  406. package/src/models/components/systemsummary.ts +10 -0
  407. package/src/models/components/vendor.ts +148 -0
  408. package/src/models/components/vendorgroup.ts +86 -0
  409. package/src/models/components/zoneconfig.ts +28 -24
  410. package/src/models/operations/calculatesubscriptionprice.ts +235 -0
  411. package/src/models/operations/changesubscription.ts +229 -0
  412. package/src/models/operations/getsubscription.ts +152 -0
  413. package/src/models/operations/index.ts +5 -0
  414. package/src/models/operations/listsystems.ts +250 -0
  415. package/src/models/operations/listvendortypes.ts +236 -0
  416. package/src/react-query/index.ts +5 -0
  417. package/src/react-query/systemsListSystems.ts +353 -0
  418. package/src/react-query/vendorsCalculateSubscriptionPrice.ts +93 -0
  419. package/src/react-query/vendorsChangeSubscription.ts +89 -0
  420. package/src/react-query/vendorsGetSubscription.ts +182 -0
  421. package/src/react-query/vendorsGetVendorsDetails.ts +6 -0
  422. package/src/react-query/vendorsListVendorTypes.ts +328 -0
  423. package/src/sdk/sdk.ts +6 -0
  424. package/src/sdk/systems.ts +31 -0
  425. package/src/sdk/vendors.ts +81 -0
package/bin/mcp-server.js CHANGED
@@ -34160,9 +34160,9 @@ var init_config = __esm(() => {
34160
34160
  SDK_METADATA = {
34161
34161
  language: "typescript",
34162
34162
  openapiDocVersion: "0.0.3",
34163
- sdkVersion: "0.37.8",
34164
- genVersion: "2.656.3",
34165
- userAgent: "speakeasy-sdk/typescript 0.37.8 2.656.3 0.0.3 @greensecurity/javascript-sdk"
34163
+ sdkVersion: "0.37.12",
34164
+ genVersion: "2.656.5",
34165
+ userAgent: "speakeasy-sdk/typescript 0.37.12 2.656.5 0.0.3 @greensecurity/javascript-sdk"
34166
34166
  };
34167
34167
  });
34168
34168
 
@@ -35753,13 +35753,13 @@ var init_productvariant = __esm(() => {
35753
35753
  init_esm();
35754
35754
  ProductVariant$inboundSchema = objectType({
35755
35755
  id: numberType().int().optional(),
35756
- amount: numberType().int().optional(),
35757
- total: numberType().int().optional()
35756
+ price: numberType().int().optional(),
35757
+ title: nullableType(stringType()).optional()
35758
35758
  });
35759
35759
  ProductVariant$outboundSchema = objectType({
35760
35760
  id: numberType().int().optional(),
35761
- amount: numberType().int().optional(),
35762
- total: numberType().int().optional()
35761
+ price: numberType().int().optional(),
35762
+ title: nullableType(stringType()).optional()
35763
35763
  });
35764
35764
  ((ProductVariant$) => {
35765
35765
  ProductVariant$.inboundSchema = ProductVariant$inboundSchema;
@@ -35768,7 +35768,7 @@ var init_productvariant = __esm(() => {
35768
35768
  });
35769
35769
 
35770
35770
  // src/models/components/invoiceitem.ts
35771
- var Variant$inboundSchema, Variant$outboundSchema, Variant$, InvoiceItemProduct$inboundSchema, InvoiceItemProduct$outboundSchema, InvoiceItemProduct$, InvoiceItem$inboundSchema, InvoiceItem$outboundSchema, InvoiceItem$;
35771
+ var Variant$inboundSchema, Variant$outboundSchema, Variant$, InvoiceItemProduct$inboundSchema, InvoiceItemProduct$outboundSchema, InvoiceItemProduct$, Details$inboundSchema, Details$outboundSchema, Details$, InvoiceItem$inboundSchema, InvoiceItem$outboundSchema, InvoiceItem$;
35772
35772
  var init_invoiceitem = __esm(() => {
35773
35773
  init_esm();
35774
35774
  init_primitives();
@@ -35786,6 +35786,34 @@ var init_invoiceitem = __esm(() => {
35786
35786
  InvoiceItemProduct$.inboundSchema = InvoiceItemProduct$inboundSchema;
35787
35787
  InvoiceItemProduct$.outboundSchema = InvoiceItemProduct$outboundSchema;
35788
35788
  })(InvoiceItemProduct$ ||= {});
35789
+ Details$inboundSchema = objectType({
35790
+ total_days: nullableType(numberType().int()).optional(),
35791
+ unused_days: nullableType(numberType().int()).optional(),
35792
+ used_days: nullableType(numberType().int()).optional(),
35793
+ prorate: nullableType(numberType()).optional()
35794
+ }).transform((v2) => {
35795
+ return remap(v2, {
35796
+ total_days: "totalDays",
35797
+ unused_days: "unusedDays",
35798
+ used_days: "usedDays"
35799
+ });
35800
+ });
35801
+ Details$outboundSchema = objectType({
35802
+ totalDays: nullableType(numberType().int()).optional(),
35803
+ unusedDays: nullableType(numberType().int()).optional(),
35804
+ usedDays: nullableType(numberType().int()).optional(),
35805
+ prorate: nullableType(numberType()).optional()
35806
+ }).transform((v2) => {
35807
+ return remap(v2, {
35808
+ totalDays: "total_days",
35809
+ unusedDays: "unused_days",
35810
+ usedDays: "used_days"
35811
+ });
35812
+ });
35813
+ ((Details$) => {
35814
+ Details$.inboundSchema = Details$inboundSchema;
35815
+ Details$.outboundSchema = Details$outboundSchema;
35816
+ })(Details$ ||= {});
35789
35817
  InvoiceItem$inboundSchema = objectType({
35790
35818
  id: numberType().int().optional(),
35791
35819
  date_starts: nullableType(stringType()).optional(),
@@ -35797,7 +35825,8 @@ var init_invoiceitem = __esm(() => {
35797
35825
  unit_price: nullableType(numberType().int()).optional(),
35798
35826
  subtotal: nullableType(numberType().int()).optional(),
35799
35827
  variant: nullableType(unionType([ProductVariant$inboundSchema, numberType().int()])).optional(),
35800
- product: nullableType(unionType([Product$inboundSchema, numberType().int()])).optional()
35828
+ product: nullableType(unionType([Product$inboundSchema, numberType().int()])).optional(),
35829
+ details: nullableType(lazyType(() => Details$inboundSchema)).optional()
35801
35830
  }).transform((v2) => {
35802
35831
  return remap(v2, {
35803
35832
  date_starts: "dateStarts",
@@ -35818,7 +35847,8 @@ var init_invoiceitem = __esm(() => {
35818
35847
  unitPrice: nullableType(numberType().int()).optional(),
35819
35848
  subtotal: nullableType(numberType().int()).optional(),
35820
35849
  variant: nullableType(unionType([ProductVariant$outboundSchema, numberType().int()])).optional(),
35821
- product: nullableType(unionType([Product$outboundSchema, numberType().int()])).optional()
35850
+ product: nullableType(unionType([Product$outboundSchema, numberType().int()])).optional(),
35851
+ details: nullableType(lazyType(() => Details$outboundSchema)).optional()
35822
35852
  }).transform((v2) => {
35823
35853
  return remap(v2, {
35824
35854
  dateStarts: "date_starts",
@@ -36162,12 +36192,189 @@ var init_rfcdate = __esm(() => {
36162
36192
  dateRE = /^\d{4}-\d{2}-\d{2}$/;
36163
36193
  });
36164
36194
 
36195
+ // src/models/components/facilityvendortype.ts
36196
+ var AppliesTo$inboundSchema, AppliesTo$outboundSchema, AppliesTo$, FacilityVendorType$inboundSchema, FacilityVendorType$outboundSchema, FacilityVendorType$;
36197
+ var init_facilityvendortype = __esm(() => {
36198
+ init_esm();
36199
+ init_primitives();
36200
+ AppliesTo$inboundSchema = objectType({
36201
+ company_id: nullableType(numberType().int()).optional(),
36202
+ company_group_id: nullableType(numberType().int()).optional(),
36203
+ vendor_group_id: nullableType(numberType().int()).optional(),
36204
+ everyone_else: booleanType()
36205
+ }).transform((v2) => {
36206
+ return remap(v2, {
36207
+ company_id: "companyId",
36208
+ company_group_id: "companyGroupId",
36209
+ vendor_group_id: "vendorGroupId",
36210
+ everyone_else: "everyoneElse"
36211
+ });
36212
+ });
36213
+ AppliesTo$outboundSchema = objectType({
36214
+ companyId: nullableType(numberType().int()).optional(),
36215
+ companyGroupId: nullableType(numberType().int()).optional(),
36216
+ vendorGroupId: nullableType(numberType().int()).optional(),
36217
+ everyoneElse: booleanType()
36218
+ }).transform((v2) => {
36219
+ return remap(v2, {
36220
+ companyId: "company_id",
36221
+ companyGroupId: "company_group_id",
36222
+ vendorGroupId: "vendor_group_id",
36223
+ everyoneElse: "everyone_else"
36224
+ });
36225
+ });
36226
+ ((AppliesTo$) => {
36227
+ AppliesTo$.inboundSchema = AppliesTo$inboundSchema;
36228
+ AppliesTo$.outboundSchema = AppliesTo$outboundSchema;
36229
+ })(AppliesTo$ ||= {});
36230
+ FacilityVendorType$inboundSchema = objectType({
36231
+ id: numberType().int().optional(),
36232
+ name: stringType(),
36233
+ short_name: stringType(),
36234
+ sort_order: numberType().int(),
36235
+ applies_to: lazyType(() => AppliesTo$inboundSchema)
36236
+ }).transform((v2) => {
36237
+ return remap(v2, {
36238
+ short_name: "shortName",
36239
+ sort_order: "sortOrder",
36240
+ applies_to: "appliesTo"
36241
+ });
36242
+ });
36243
+ FacilityVendorType$outboundSchema = objectType({
36244
+ id: numberType().int().optional(),
36245
+ name: stringType(),
36246
+ shortName: stringType(),
36247
+ sortOrder: numberType().int(),
36248
+ appliesTo: lazyType(() => AppliesTo$outboundSchema)
36249
+ }).transform((v2) => {
36250
+ return remap(v2, {
36251
+ shortName: "short_name",
36252
+ sortOrder: "sort_order",
36253
+ appliesTo: "applies_to"
36254
+ });
36255
+ });
36256
+ ((FacilityVendorType$) => {
36257
+ FacilityVendorType$.inboundSchema = FacilityVendorType$inboundSchema;
36258
+ FacilityVendorType$.outboundSchema = FacilityVendorType$outboundSchema;
36259
+ })(FacilityVendorType$ ||= {});
36260
+ });
36261
+
36262
+ // src/models/components/facilitysummary.ts
36263
+ var VendorPolicy$inboundSchema, VendorPolicy$outboundSchema, VendorPolicy$, FacilitySummary$inboundSchema, FacilitySummary$outboundSchema, FacilitySummary$;
36264
+ var init_facilitysummary = __esm(() => {
36265
+ init_esm();
36266
+ init_primitives();
36267
+ init_facilityvendortype();
36268
+ VendorPolicy$inboundSchema = objectType({
36269
+ vendor_types: arrayType(FacilityVendorType$inboundSchema).optional()
36270
+ }).transform((v2) => {
36271
+ return remap(v2, {
36272
+ vendor_types: "vendorTypes"
36273
+ });
36274
+ });
36275
+ VendorPolicy$outboundSchema = objectType({
36276
+ vendorTypes: arrayType(FacilityVendorType$outboundSchema).optional()
36277
+ }).transform((v2) => {
36278
+ return remap(v2, {
36279
+ vendorTypes: "vendor_types"
36280
+ });
36281
+ });
36282
+ ((VendorPolicy$) => {
36283
+ VendorPolicy$.inboundSchema = VendorPolicy$inboundSchema;
36284
+ VendorPolicy$.outboundSchema = VendorPolicy$outboundSchema;
36285
+ })(VendorPolicy$ ||= {});
36286
+ FacilitySummary$inboundSchema = objectType({
36287
+ id: numberType().int().optional(),
36288
+ name: stringType().optional(),
36289
+ vendor_policy: nullableType(lazyType(() => VendorPolicy$inboundSchema)).optional()
36290
+ }).transform((v2) => {
36291
+ return remap(v2, {
36292
+ vendor_policy: "vendorPolicy"
36293
+ });
36294
+ });
36295
+ FacilitySummary$outboundSchema = objectType({
36296
+ id: numberType().int().optional(),
36297
+ name: stringType().optional(),
36298
+ vendorPolicy: nullableType(lazyType(() => VendorPolicy$outboundSchema)).optional()
36299
+ }).transform((v2) => {
36300
+ return remap(v2, {
36301
+ vendorPolicy: "vendor_policy"
36302
+ });
36303
+ });
36304
+ ((FacilitySummary$) => {
36305
+ FacilitySummary$.inboundSchema = FacilitySummary$inboundSchema;
36306
+ FacilitySummary$.outboundSchema = FacilitySummary$outboundSchema;
36307
+ })(FacilitySummary$ ||= {});
36308
+ });
36309
+
36310
+ // src/models/components/vendortype.ts
36311
+ var VendorType$inboundSchema, VendorType$outboundSchema, VendorType$;
36312
+ var init_vendortype = __esm(() => {
36313
+ init_esm();
36314
+ VendorType$inboundSchema = objectType({
36315
+ id: numberType().int().optional(),
36316
+ name: stringType().optional()
36317
+ });
36318
+ VendorType$outboundSchema = objectType({
36319
+ id: numberType().int().optional(),
36320
+ name: stringType().optional()
36321
+ });
36322
+ ((VendorType$) => {
36323
+ VendorType$.inboundSchema = VendorType$inboundSchema;
36324
+ VendorType$.outboundSchema = VendorType$outboundSchema;
36325
+ })(VendorType$ ||= {});
36326
+ });
36327
+
36328
+ // src/models/components/companyvendortyperestriction.ts
36329
+ var CompanyVendorTypeRestrictionFacility$inboundSchema, CompanyVendorTypeRestrictionFacility$outboundSchema, CompanyVendorTypeRestrictionFacility$, CompanyVendorTypeRestrictionVendorType$inboundSchema, CompanyVendorTypeRestrictionVendorType$outboundSchema, CompanyVendorTypeRestrictionVendorType$, CompanyVendorTypeRestriction$inboundSchema, CompanyVendorTypeRestriction$outboundSchema, CompanyVendorTypeRestriction$;
36330
+ var init_companyvendortyperestriction = __esm(() => {
36331
+ init_esm();
36332
+ init_primitives();
36333
+ init_facilitysummary();
36334
+ init_vendortype();
36335
+ CompanyVendorTypeRestrictionFacility$inboundSchema = unionType([FacilitySummary$inboundSchema, numberType().int()]);
36336
+ CompanyVendorTypeRestrictionFacility$outboundSchema = unionType([FacilitySummary$outboundSchema, numberType().int()]);
36337
+ ((CompanyVendorTypeRestrictionFacility$) => {
36338
+ CompanyVendorTypeRestrictionFacility$.inboundSchema = CompanyVendorTypeRestrictionFacility$inboundSchema;
36339
+ CompanyVendorTypeRestrictionFacility$.outboundSchema = CompanyVendorTypeRestrictionFacility$outboundSchema;
36340
+ })(CompanyVendorTypeRestrictionFacility$ ||= {});
36341
+ CompanyVendorTypeRestrictionVendorType$inboundSchema = unionType([VendorType$inboundSchema, numberType().int()]);
36342
+ CompanyVendorTypeRestrictionVendorType$outboundSchema = unionType([VendorType$outboundSchema, numberType().int()]);
36343
+ ((CompanyVendorTypeRestrictionVendorType$) => {
36344
+ CompanyVendorTypeRestrictionVendorType$.inboundSchema = CompanyVendorTypeRestrictionVendorType$inboundSchema;
36345
+ CompanyVendorTypeRestrictionVendorType$.outboundSchema = CompanyVendorTypeRestrictionVendorType$outboundSchema;
36346
+ })(CompanyVendorTypeRestrictionVendorType$ ||= {});
36347
+ CompanyVendorTypeRestriction$inboundSchema = objectType({
36348
+ id: numberType().int().optional(),
36349
+ facility: nullableType(unionType([FacilitySummary$inboundSchema, numberType().int()])).optional(),
36350
+ vendor_type: nullableType(unionType([VendorType$inboundSchema, numberType().int()])).optional()
36351
+ }).transform((v2) => {
36352
+ return remap(v2, {
36353
+ vendor_type: "vendorType"
36354
+ });
36355
+ });
36356
+ CompanyVendorTypeRestriction$outboundSchema = objectType({
36357
+ id: numberType().int().optional(),
36358
+ facility: nullableType(unionType([FacilitySummary$outboundSchema, numberType().int()])).optional(),
36359
+ vendorType: nullableType(unionType([VendorType$outboundSchema, numberType().int()])).optional()
36360
+ }).transform((v2) => {
36361
+ return remap(v2, {
36362
+ vendorType: "vendor_type"
36363
+ });
36364
+ });
36365
+ ((CompanyVendorTypeRestriction$) => {
36366
+ CompanyVendorTypeRestriction$.inboundSchema = CompanyVendorTypeRestriction$inboundSchema;
36367
+ CompanyVendorTypeRestriction$.outboundSchema = CompanyVendorTypeRestriction$outboundSchema;
36368
+ })(CompanyVendorTypeRestriction$ ||= {});
36369
+ });
36370
+
36165
36371
  // src/models/components/company.ts
36166
36372
  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$;
36167
36373
  var init_company = __esm(() => {
36168
36374
  init_esm();
36169
36375
  init_primitives();
36170
36376
  init_rfcdate();
36377
+ init_companyvendortyperestriction();
36171
36378
  CompanyLocation$inboundSchema = objectType({
36172
36379
  address: nullableType(stringType()).optional(),
36173
36380
  phone: nullableType(stringType()).optional(),
@@ -36280,10 +36487,12 @@ var init_company = __esm(() => {
36280
36487
  location: nullableType(lazyType(() => CompanyLocation$inboundSchema)).optional(),
36281
36488
  contact: lazyType(() => CompanyContact$inboundSchema).optional(),
36282
36489
  tax: lazyType(() => Tax$inboundSchema).optional(),
36283
- stats: lazyType(() => Stats$inboundSchema).optional()
36490
+ stats: lazyType(() => Stats$inboundSchema).optional(),
36491
+ vendor_type_restrictions: nullableType(arrayType(nullableType(CompanyVendorTypeRestriction$inboundSchema))).optional()
36284
36492
  }).transform((v2) => {
36285
36493
  return remap(v2, {
36286
- credit_balance: "creditBalance"
36494
+ credit_balance: "creditBalance",
36495
+ vendor_type_restrictions: "vendorTypeRestrictions"
36287
36496
  });
36288
36497
  });
36289
36498
  Company$outboundSchema = objectType({
@@ -36294,10 +36503,12 @@ var init_company = __esm(() => {
36294
36503
  location: nullableType(lazyType(() => CompanyLocation$outboundSchema)).optional(),
36295
36504
  contact: lazyType(() => CompanyContact$outboundSchema).optional(),
36296
36505
  tax: lazyType(() => Tax$outboundSchema).optional(),
36297
- stats: lazyType(() => Stats$outboundSchema).optional()
36506
+ stats: lazyType(() => Stats$outboundSchema).optional(),
36507
+ vendorTypeRestrictions: nullableType(arrayType(nullableType(CompanyVendorTypeRestriction$outboundSchema))).optional()
36298
36508
  }).transform((v2) => {
36299
36509
  return remap(v2, {
36300
- creditBalance: "credit_balance"
36510
+ creditBalance: "credit_balance",
36511
+ vendorTypeRestrictions: "vendor_type_restrictions"
36301
36512
  });
36302
36513
  });
36303
36514
  ((Company$) => {
@@ -36324,35 +36535,20 @@ var init_departmentsummary = __esm(() => {
36324
36535
  })(DepartmentSummary$ ||= {});
36325
36536
  });
36326
36537
 
36327
- // src/models/components/facilitysummary.ts
36328
- var FacilitySummary$inboundSchema, FacilitySummary$outboundSchema, FacilitySummary$;
36329
- var init_facilitysummary = __esm(() => {
36330
- init_esm();
36331
- FacilitySummary$inboundSchema = objectType({
36332
- id: numberType().int().optional(),
36333
- name: stringType().optional()
36334
- });
36335
- FacilitySummary$outboundSchema = objectType({
36336
- id: numberType().int().optional(),
36337
- name: stringType().optional()
36338
- });
36339
- ((FacilitySummary$) => {
36340
- FacilitySummary$.inboundSchema = FacilitySummary$inboundSchema;
36341
- FacilitySummary$.outboundSchema = FacilitySummary$outboundSchema;
36342
- })(FacilitySummary$ ||= {});
36343
- });
36344
-
36345
36538
  // src/models/components/systemsummary.ts
36346
36539
  var SystemSummary$inboundSchema, SystemSummary$outboundSchema, SystemSummary$;
36347
36540
  var init_systemsummary = __esm(() => {
36348
36541
  init_esm();
36542
+ init_facilitysummary();
36349
36543
  SystemSummary$inboundSchema = objectType({
36350
36544
  id: numberType().int(),
36351
- name: stringType()
36545
+ name: stringType(),
36546
+ facilities: nullableType(arrayType(FacilitySummary$inboundSchema)).optional()
36352
36547
  });
36353
36548
  SystemSummary$outboundSchema = objectType({
36354
36549
  id: numberType().int(),
36355
- name: stringType()
36550
+ name: stringType(),
36551
+ facilities: nullableType(arrayType(FacilitySummary$outboundSchema)).optional()
36356
36552
  });
36357
36553
  ((SystemSummary$) => {
36358
36554
  SystemSummary$.inboundSchema = SystemSummary$inboundSchema;
@@ -36918,6 +37114,9 @@ var init_expand = __esm(() => {
36918
37114
  VendorCreditBalance: "vendor.credit_balance",
36919
37115
  VendorRegistrationData: "vendor.registration_data",
36920
37116
  VendorRegistrationFinished: "vendor.registration_finished",
37117
+ VendorTargetFacilities: "vendor.target_facilities",
37118
+ VendorPendingInvoice: "vendor.pending_invoice",
37119
+ VendorVendorGroups: "vendor.vendor_groups",
36921
37120
  SupportArticleDescription: "support_article.description",
36922
37121
  SupportArticlePublished: "support_article.published",
36923
37122
  SupportArticleNotes: "support_article.notes",
@@ -36946,7 +37145,9 @@ var init_expand = __esm(() => {
36946
37145
  VendorCredentialDataRequestDataRequest: "vendor_credential_data_request.data_request",
36947
37146
  ZoneFacility: "zone.facility",
36948
37147
  ZoneDepartment: "zone.department",
36949
- ZoneRules: "zone.rules"
37148
+ ZoneRules: "zone.rules",
37149
+ SystemFacilities: "system.facilities",
37150
+ SubscriptionExpeditedOffer: "subscription.expedited_offer"
36950
37151
  };
36951
37152
  Expand$inboundSchema = nativeEnumType(Expand);
36952
37153
  Expand$outboundSchema = Expand$inboundSchema;
@@ -36978,34 +37179,16 @@ var init_imageset = __esm(() => {
36978
37179
  })(ImageSet$ ||= {});
36979
37180
  });
36980
37181
 
36981
- // src/models/components/vendortype.ts
36982
- var VendorType$inboundSchema, VendorType$outboundSchema, VendorType$;
36983
- var init_vendortype = __esm(() => {
36984
- init_esm();
36985
- VendorType$inboundSchema = objectType({
36986
- id: numberType().int().optional(),
36987
- name: stringType().optional()
36988
- });
36989
- VendorType$outboundSchema = objectType({
36990
- id: numberType().int().optional(),
36991
- name: stringType().optional()
36992
- });
36993
- ((VendorType$) => {
36994
- VendorType$.inboundSchema = VendorType$inboundSchema;
36995
- VendorType$.outboundSchema = VendorType$outboundSchema;
36996
- })(VendorType$ ||= {});
36997
- });
36998
-
36999
37182
  // src/models/components/facility.ts
37000
- 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$;
37183
+ 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$, FacilityVendorPolicy$inboundSchema, FacilityVendorPolicy$outboundSchema, FacilityVendorPolicy$, VisitorPolicy$inboundSchema, VisitorPolicy$outboundSchema, VisitorPolicy$, WorkflowPolicy$inboundSchema, WorkflowPolicy$outboundSchema, WorkflowPolicy$, Facility$inboundSchema, Facility$outboundSchema, Facility$;
37001
37184
  var init_facility = __esm(() => {
37002
37185
  init_esm();
37003
37186
  init_primitives();
37004
37187
  init_rfcdate();
37005
37188
  init_contact();
37189
+ init_facilityvendortype();
37006
37190
  init_imageset();
37007
37191
  init_systemsummary();
37008
- init_vendortype();
37009
37192
  VendorGuestLimitAndOr = {
37010
37193
  And: "and",
37011
37194
  Or: "or"
@@ -37304,14 +37487,14 @@ var init_facility = __esm(() => {
37304
37487
  VendorGuestPolicy$.inboundSchema = VendorGuestPolicy$inboundSchema;
37305
37488
  VendorGuestPolicy$.outboundSchema = VendorGuestPolicy$outboundSchema;
37306
37489
  })(VendorGuestPolicy$ ||= {});
37307
- VendorPolicy$inboundSchema = objectType({
37490
+ FacilityVendorPolicy$inboundSchema = objectType({
37308
37491
  allow_department_other: booleanType(),
37309
37492
  allow_food: booleanType(),
37310
37493
  allow_non_kiosk_checkouts: booleanType(),
37311
37494
  auto_scan_out_violation: booleanType(),
37312
37495
  contractor_guest_require_email: booleanType(),
37313
37496
  visitor_checkin_require_phone: booleanType(),
37314
- vendor_types: arrayType(nullableType(VendorType$inboundSchema))
37497
+ vendor_types: arrayType(FacilityVendorType$inboundSchema)
37315
37498
  }).transform((v2) => {
37316
37499
  return remap(v2, {
37317
37500
  allow_department_other: "allowDepartmentOther",
@@ -37323,14 +37506,14 @@ var init_facility = __esm(() => {
37323
37506
  vendor_types: "vendorTypes"
37324
37507
  });
37325
37508
  });
37326
- VendorPolicy$outboundSchema = objectType({
37509
+ FacilityVendorPolicy$outboundSchema = objectType({
37327
37510
  allowDepartmentOther: booleanType(),
37328
37511
  allowFood: booleanType(),
37329
37512
  allowNonKioskCheckouts: booleanType(),
37330
37513
  autoScanOutViolation: booleanType(),
37331
37514
  contractorGuestRequireEmail: booleanType(),
37332
37515
  visitorCheckinRequirePhone: booleanType(),
37333
- vendorTypes: arrayType(nullableType(VendorType$outboundSchema))
37516
+ vendorTypes: arrayType(FacilityVendorType$outboundSchema)
37334
37517
  }).transform((v2) => {
37335
37518
  return remap(v2, {
37336
37519
  allowDepartmentOther: "allow_department_other",
@@ -37342,10 +37525,10 @@ var init_facility = __esm(() => {
37342
37525
  vendorTypes: "vendor_types"
37343
37526
  });
37344
37527
  });
37345
- ((VendorPolicy$) => {
37346
- VendorPolicy$.inboundSchema = VendorPolicy$inboundSchema;
37347
- VendorPolicy$.outboundSchema = VendorPolicy$outboundSchema;
37348
- })(VendorPolicy$ ||= {});
37528
+ ((FacilityVendorPolicy$) => {
37529
+ FacilityVendorPolicy$.inboundSchema = FacilityVendorPolicy$inboundSchema;
37530
+ FacilityVendorPolicy$.outboundSchema = FacilityVendorPolicy$outboundSchema;
37531
+ })(FacilityVendorPolicy$ ||= {});
37349
37532
  VisitorPolicy$inboundSchema = objectType({
37350
37533
  auto_checkout_visitors: booleanType(),
37351
37534
  require_visit_request_zone: booleanType(),
@@ -37426,7 +37609,7 @@ var init_facility = __esm(() => {
37426
37609
  system: unionType([SystemSummary$inboundSchema, numberType().int()]).optional(),
37427
37610
  uses: lazyType(() => Uses$inboundSchema).optional(),
37428
37611
  vendor_guest_policy: nullableType(lazyType(() => VendorGuestPolicy$inboundSchema)).optional(),
37429
- vendor_policy: nullableType(lazyType(() => VendorPolicy$inboundSchema)).optional(),
37612
+ vendor_policy: nullableType(lazyType(() => FacilityVendorPolicy$inboundSchema)).optional(),
37430
37613
  visible: booleanType().optional(),
37431
37614
  visitor_policy: nullableType(lazyType(() => VisitorPolicy$inboundSchema)).optional(),
37432
37615
  workflow_policy: nullableType(lazyType(() => WorkflowPolicy$inboundSchema)).optional()
@@ -37461,7 +37644,7 @@ var init_facility = __esm(() => {
37461
37644
  system: unionType([SystemSummary$outboundSchema, numberType().int()]).optional(),
37462
37645
  uses: lazyType(() => Uses$outboundSchema).optional(),
37463
37646
  vendorGuestPolicy: nullableType(lazyType(() => VendorGuestPolicy$outboundSchema)).optional(),
37464
- vendorPolicy: nullableType(lazyType(() => VendorPolicy$outboundSchema)).optional(),
37647
+ vendorPolicy: nullableType(lazyType(() => FacilityVendorPolicy$outboundSchema)).optional(),
37465
37648
  visible: booleanType().optional(),
37466
37649
  visitorPolicy: nullableType(lazyType(() => VisitorPolicy$outboundSchema)).optional(),
37467
37650
  workflowPolicy: nullableType(lazyType(() => WorkflowPolicy$outboundSchema)).optional()
@@ -37534,7 +37717,7 @@ var init_financialstatus = __esm(() => {
37534
37717
  });
37535
37718
 
37536
37719
  // src/models/components/zoneconfig.ts
37537
- var VendorGroupId1$inboundSchema, VendorGroupId1$outboundSchema, VendorGroupId1$, VendorGroupId$inboundSchema, VendorGroupId$outboundSchema, VendorGroupId$, CompanyGroupId1$inboundSchema, CompanyGroupId1$outboundSchema, CompanyGroupId1$, CompanyGroupId$inboundSchema, CompanyGroupId$outboundSchema, CompanyGroupId$, AppliesTo$inboundSchema, AppliesTo$outboundSchema, AppliesTo$, ZoneConfigVendorPolicy$inboundSchema, ZoneConfigVendorPolicy$outboundSchema, ZoneConfigVendorPolicy$, VisitorCheckinPolicy$inboundSchema, VisitorCheckinPolicy$outboundSchema, VisitorCheckinPolicy$, VisitRequestPolicy$inboundSchema, VisitRequestPolicy$outboundSchema, VisitRequestPolicy$, ZoneConfig$inboundSchema, ZoneConfig$outboundSchema, ZoneConfig$;
37720
+ var VendorGroupId1$inboundSchema, VendorGroupId1$outboundSchema, VendorGroupId1$, VendorGroupId$inboundSchema, VendorGroupId$outboundSchema, VendorGroupId$, CompanyGroupId1$inboundSchema, CompanyGroupId1$outboundSchema, CompanyGroupId1$, CompanyGroupId$inboundSchema, CompanyGroupId$outboundSchema, CompanyGroupId$, ZoneConfigAppliesTo$inboundSchema, ZoneConfigAppliesTo$outboundSchema, ZoneConfigAppliesTo$, ZoneConfigVendorPolicy$inboundSchema, ZoneConfigVendorPolicy$outboundSchema, ZoneConfigVendorPolicy$, VisitorCheckinPolicy$inboundSchema, VisitorCheckinPolicy$outboundSchema, VisitorCheckinPolicy$, VisitRequestPolicy$inboundSchema, VisitRequestPolicy$outboundSchema, VisitRequestPolicy$, ZoneConfig$inboundSchema, ZoneConfig$outboundSchema, ZoneConfig$;
37538
37721
  var init_zoneconfig = __esm(() => {
37539
37722
  init_esm();
37540
37723
  init_primitives();
@@ -37582,7 +37765,7 @@ var init_zoneconfig = __esm(() => {
37582
37765
  CompanyGroupId$.inboundSchema = CompanyGroupId$inboundSchema;
37583
37766
  CompanyGroupId$.outboundSchema = CompanyGroupId$outboundSchema;
37584
37767
  })(CompanyGroupId$ ||= {});
37585
- AppliesTo$inboundSchema = objectType({
37768
+ ZoneConfigAppliesTo$inboundSchema = objectType({
37586
37769
  vendor_group_id: nullableType(unionType([lazyType(() => VendorGroupId1$inboundSchema), numberType().int()])).optional(),
37587
37770
  company_group_id: nullableType(unionType([lazyType(() => CompanyGroupId1$inboundSchema), numberType().int()])).optional(),
37588
37771
  visitor_type: nullableType(stringType()).optional(),
@@ -37595,7 +37778,7 @@ var init_zoneconfig = __esm(() => {
37595
37778
  visitor_subtype: "visitorSubtype"
37596
37779
  });
37597
37780
  });
37598
- AppliesTo$outboundSchema = objectType({
37781
+ ZoneConfigAppliesTo$outboundSchema = objectType({
37599
37782
  vendorGroupId: nullableType(unionType([lazyType(() => VendorGroupId1$outboundSchema), numberType().int()])).optional(),
37600
37783
  companyGroupId: nullableType(unionType([lazyType(() => CompanyGroupId1$outboundSchema), numberType().int()])).optional(),
37601
37784
  visitorType: nullableType(stringType()).optional(),
@@ -37608,10 +37791,10 @@ var init_zoneconfig = __esm(() => {
37608
37791
  visitorSubtype: "visitor_subtype"
37609
37792
  });
37610
37793
  });
37611
- ((AppliesTo$) => {
37612
- AppliesTo$.inboundSchema = AppliesTo$inboundSchema;
37613
- AppliesTo$.outboundSchema = AppliesTo$outboundSchema;
37614
- })(AppliesTo$ ||= {});
37794
+ ((ZoneConfigAppliesTo$) => {
37795
+ ZoneConfigAppliesTo$.inboundSchema = ZoneConfigAppliesTo$inboundSchema;
37796
+ ZoneConfigAppliesTo$.outboundSchema = ZoneConfigAppliesTo$outboundSchema;
37797
+ })(ZoneConfigAppliesTo$ ||= {});
37615
37798
  ZoneConfigVendorPolicy$inboundSchema = objectType({
37616
37799
  allow_vendor_scans: booleanType().optional(),
37617
37800
  print_vendor_badge: booleanType().optional(),
@@ -37764,7 +37947,7 @@ var init_zoneconfig = __esm(() => {
37764
37947
  id: numberType().int().optional(),
37765
37948
  zone_id: numberType().int().optional(),
37766
37949
  sort_order: nullableType(numberType().int()).optional(),
37767
- applies_to: lazyType(() => AppliesTo$inboundSchema).optional(),
37950
+ applies_to: lazyType(() => ZoneConfigAppliesTo$inboundSchema).optional(),
37768
37951
  vendor_policy: lazyType(() => ZoneConfigVendorPolicy$inboundSchema).optional(),
37769
37952
  visitor_checkin_policy: lazyType(() => VisitorCheckinPolicy$inboundSchema).optional(),
37770
37953
  visit_request_policy: lazyType(() => VisitRequestPolicy$inboundSchema).optional()
@@ -37782,7 +37965,7 @@ var init_zoneconfig = __esm(() => {
37782
37965
  id: numberType().int().optional(),
37783
37966
  zoneId: numberType().int().optional(),
37784
37967
  sortOrder: nullableType(numberType().int()).optional(),
37785
- appliesTo: lazyType(() => AppliesTo$outboundSchema).optional(),
37968
+ appliesTo: lazyType(() => ZoneConfigAppliesTo$outboundSchema).optional(),
37786
37969
  vendorPolicy: lazyType(() => ZoneConfigVendorPolicy$outboundSchema).optional(),
37787
37970
  visitorCheckinPolicy: lazyType(() => VisitorCheckinPolicy$outboundSchema).optional(),
37788
37971
  visitRequestPolicy: lazyType(() => VisitRequestPolicy$outboundSchema).optional()
@@ -38591,6 +38774,7 @@ var init_subscription = __esm(() => {
38591
38774
  init_primitives();
38592
38775
  init_financialstatus();
38593
38776
  init_invoiceitem();
38777
+ init_productvariant();
38594
38778
  Subscription$inboundSchema = objectType({
38595
38779
  id: nullableType(numberType().int()).optional(),
38596
38780
  date_started: nullableType(stringType()).optional(),
@@ -38601,7 +38785,8 @@ var init_subscription = __esm(() => {
38601
38785
  current_line_item: nullableType(InvoiceItem$inboundSchema).optional(),
38602
38786
  next_line_item: nullableType(InvoiceItem$inboundSchema).optional(),
38603
38787
  current_financial_status: nullableType(FinancialStatus$inboundSchema).optional(),
38604
- next_financial_status: nullableType(FinancialStatus$inboundSchema).optional()
38788
+ next_financial_status: nullableType(FinancialStatus$inboundSchema).optional(),
38789
+ expedited_offer: nullableType(ProductVariant$inboundSchema).optional()
38605
38790
  }).transform((v2) => {
38606
38791
  return remap(v2, {
38607
38792
  date_started: "dateStarted",
@@ -38610,7 +38795,8 @@ var init_subscription = __esm(() => {
38610
38795
  current_line_item: "currentLineItem",
38611
38796
  next_line_item: "nextLineItem",
38612
38797
  current_financial_status: "currentFinancialStatus",
38613
- next_financial_status: "nextFinancialStatus"
38798
+ next_financial_status: "nextFinancialStatus",
38799
+ expedited_offer: "expeditedOffer"
38614
38800
  });
38615
38801
  });
38616
38802
  Subscription$outboundSchema = objectType({
@@ -38623,7 +38809,8 @@ var init_subscription = __esm(() => {
38623
38809
  currentLineItem: nullableType(InvoiceItem$outboundSchema).optional(),
38624
38810
  nextLineItem: nullableType(InvoiceItem$outboundSchema).optional(),
38625
38811
  currentFinancialStatus: nullableType(FinancialStatus$outboundSchema).optional(),
38626
- nextFinancialStatus: nullableType(FinancialStatus$outboundSchema).optional()
38812
+ nextFinancialStatus: nullableType(FinancialStatus$outboundSchema).optional(),
38813
+ expeditedOffer: nullableType(ProductVariant$outboundSchema).optional()
38627
38814
  }).transform((v2) => {
38628
38815
  return remap(v2, {
38629
38816
  dateStarted: "date_started",
@@ -38632,7 +38819,8 @@ var init_subscription = __esm(() => {
38632
38819
  currentLineItem: "current_line_item",
38633
38820
  nextLineItem: "next_line_item",
38634
38821
  currentFinancialStatus: "current_financial_status",
38635
- nextFinancialStatus: "next_financial_status"
38822
+ nextFinancialStatus: "next_financial_status",
38823
+ expeditedOffer: "expedited_offer"
38636
38824
  });
38637
38825
  });
38638
38826
  ((Subscription$) => {
@@ -38905,6 +39093,37 @@ var init_userlocation = __esm(() => {
38905
39093
  })(UserLocation$ ||= {});
38906
39094
  });
38907
39095
 
39096
+ // src/models/components/vendorgroup.ts
39097
+ var VendorGroup$inboundSchema, VendorGroup$outboundSchema, VendorGroup$;
39098
+ var init_vendorgroup = __esm(() => {
39099
+ init_esm();
39100
+ init_primitives();
39101
+ VendorGroup$inboundSchema = objectType({
39102
+ id: numberType().int().optional(),
39103
+ name: stringType().optional(),
39104
+ description: nullableType(stringType()).optional(),
39105
+ vendor_type_ids: nullableType(stringType()).optional()
39106
+ }).transform((v2) => {
39107
+ return remap(v2, {
39108
+ vendor_type_ids: "vendorTypeIds"
39109
+ });
39110
+ });
39111
+ VendorGroup$outboundSchema = objectType({
39112
+ id: numberType().int().optional(),
39113
+ name: stringType().optional(),
39114
+ description: nullableType(stringType()).optional(),
39115
+ vendorTypeIds: nullableType(stringType()).optional()
39116
+ }).transform((v2) => {
39117
+ return remap(v2, {
39118
+ vendorTypeIds: "vendor_type_ids"
39119
+ });
39120
+ });
39121
+ ((VendorGroup$) => {
39122
+ VendorGroup$.inboundSchema = VendorGroup$inboundSchema;
39123
+ VendorGroup$.outboundSchema = VendorGroup$outboundSchema;
39124
+ })(VendorGroup$ ||= {});
39125
+ });
39126
+
38908
39127
  // src/models/components/vendorjobtitle.ts
38909
39128
  var VendorJobTitle$inboundSchema, VendorJobTitle$outboundSchema, VendorJobTitle$;
38910
39129
  var init_vendorjobtitle = __esm(() => {
@@ -38924,7 +39143,7 @@ var init_vendorjobtitle = __esm(() => {
38924
39143
  });
38925
39144
 
38926
39145
  // src/models/components/vendor.ts
38927
- var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorJob$inboundSchema, VendorJob$outboundSchema, VendorJob$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, Vendor22$inboundSchema, Vendor22$outboundSchema, Vendor22$, VendorPaymentProfile2$inboundSchema, VendorPaymentProfile2$outboundSchema, VendorPaymentProfile2$, VendorPaymentProfile1$inboundSchema, VendorPaymentProfile1$outboundSchema, VendorPaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, VendorPaymentProfile$inboundSchema, VendorPaymentProfile$outboundSchema, VendorPaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
39146
+ var One$inboundSchema, One$outboundSchema, One$, VendorUser$inboundSchema, VendorUser$outboundSchema, VendorUser$, VendorJob$inboundSchema, VendorJob$outboundSchema, VendorJob$, VendorVendorType$inboundSchema, VendorVendorType$outboundSchema, VendorVendorType$, Vendor22$inboundSchema, Vendor22$outboundSchema, Vendor22$, VendorPaymentProfile2$inboundSchema, VendorPaymentProfile2$outboundSchema, VendorPaymentProfile2$, VendorPaymentProfile1$inboundSchema, VendorPaymentProfile1$outboundSchema, VendorPaymentProfile1$, PaymentProfilePaymentProfile$inboundSchema, PaymentProfilePaymentProfile$outboundSchema, PaymentProfilePaymentProfile$, VendorPaymentProfile$inboundSchema, VendorPaymentProfile$outboundSchema, VendorPaymentProfile$, PaymentResponsibility$inboundSchema, PaymentResponsibility$outboundSchema, PaymentResponsibility$, TargetFacilities$inboundSchema, TargetFacilities$outboundSchema, TargetFacilities$, PendingInvoice$inboundSchema, PendingInvoice$outboundSchema, PendingInvoice$, Vendor$inboundSchema, Vendor$outboundSchema, Vendor$;
38928
39147
  var init_vendor = __esm(() => {
38929
39148
  init_esm();
38930
39149
  init_primitives();
@@ -38932,9 +39151,11 @@ var init_vendor = __esm(() => {
38932
39151
  init_department();
38933
39152
  init_facility();
38934
39153
  init_imageset();
39154
+ init_invoice();
38935
39155
  init_subscription();
38936
39156
  init_supervisor();
38937
39157
  init_userlocation();
39158
+ init_vendorgroup();
38938
39159
  init_vendorjobtitle();
38939
39160
  init_vendortype();
38940
39161
  One$inboundSchema = objectType({
@@ -39159,6 +39380,24 @@ var init_vendor = __esm(() => {
39159
39380
  PaymentResponsibility$.inboundSchema = PaymentResponsibility$inboundSchema;
39160
39381
  PaymentResponsibility$.outboundSchema = PaymentResponsibility$outboundSchema;
39161
39382
  })(PaymentResponsibility$ ||= {});
39383
+ TargetFacilities$inboundSchema = objectType({
39384
+ id: numberType().int().optional(),
39385
+ name: nullableType(stringType()).optional()
39386
+ });
39387
+ TargetFacilities$outboundSchema = objectType({
39388
+ id: numberType().int().optional(),
39389
+ name: nullableType(stringType()).optional()
39390
+ });
39391
+ ((TargetFacilities$) => {
39392
+ TargetFacilities$.inboundSchema = TargetFacilities$inboundSchema;
39393
+ TargetFacilities$.outboundSchema = TargetFacilities$outboundSchema;
39394
+ })(TargetFacilities$ ||= {});
39395
+ PendingInvoice$inboundSchema = unionType([Invoice$inboundSchema, numberType().int()]);
39396
+ PendingInvoice$outboundSchema = unionType([Invoice$outboundSchema, numberType().int()]);
39397
+ ((PendingInvoice$) => {
39398
+ PendingInvoice$.inboundSchema = PendingInvoice$inboundSchema;
39399
+ PendingInvoice$.outboundSchema = PendingInvoice$outboundSchema;
39400
+ })(PendingInvoice$ ||= {});
39162
39401
  Vendor$inboundSchema = objectType({
39163
39402
  id: numberType().int().optional(),
39164
39403
  email_recepient: nullableType(stringType()).optional(),
@@ -39188,7 +39427,10 @@ var init_vendor = __esm(() => {
39188
39427
  scrubs_subscription: nullableType(Subscription$inboundSchema).optional(),
39189
39428
  payment_responsibility: nullableType(lazyType(() => PaymentResponsibility$inboundSchema)).optional(),
39190
39429
  background_check_date_expires: nullableType(stringType()).optional(),
39191
- credit_balance: nullableType(numberType()).optional()
39430
+ credit_balance: nullableType(numberType()).optional(),
39431
+ target_facilities: nullableType(arrayType(lazyType(() => TargetFacilities$inboundSchema))).optional(),
39432
+ pending_invoice: nullableType(unionType([Invoice$inboundSchema, numberType().int()])).optional(),
39433
+ vendor_groups: nullableType(arrayType(nullableType(VendorGroup$inboundSchema))).optional()
39192
39434
  }).transform((v2) => {
39193
39435
  return remap(v2, {
39194
39436
  email_recepient: "emailRecepient",
@@ -39208,7 +39450,10 @@ var init_vendor = __esm(() => {
39208
39450
  scrubs_subscription: "scrubsSubscription",
39209
39451
  payment_responsibility: "paymentResponsibility",
39210
39452
  background_check_date_expires: "backgroundCheckDateExpires",
39211
- credit_balance: "creditBalance"
39453
+ credit_balance: "creditBalance",
39454
+ target_facilities: "targetFacilities",
39455
+ pending_invoice: "pendingInvoice",
39456
+ vendor_groups: "vendorGroups"
39212
39457
  });
39213
39458
  });
39214
39459
  Vendor$outboundSchema = objectType({
@@ -39240,7 +39485,10 @@ var init_vendor = __esm(() => {
39240
39485
  scrubsSubscription: nullableType(Subscription$outboundSchema).optional(),
39241
39486
  paymentResponsibility: nullableType(lazyType(() => PaymentResponsibility$outboundSchema)).optional(),
39242
39487
  backgroundCheckDateExpires: nullableType(stringType()).optional(),
39243
- creditBalance: nullableType(numberType()).optional()
39488
+ creditBalance: nullableType(numberType()).optional(),
39489
+ targetFacilities: nullableType(arrayType(lazyType(() => TargetFacilities$outboundSchema))).optional(),
39490
+ pendingInvoice: nullableType(unionType([Invoice$outboundSchema, numberType().int()])).optional(),
39491
+ vendorGroups: nullableType(arrayType(nullableType(VendorGroup$outboundSchema))).optional()
39244
39492
  }).transform((v2) => {
39245
39493
  return remap(v2, {
39246
39494
  emailRecepient: "email_recepient",
@@ -39260,7 +39508,10 @@ var init_vendor = __esm(() => {
39260
39508
  scrubsSubscription: "scrubs_subscription",
39261
39509
  paymentResponsibility: "payment_responsibility",
39262
39510
  backgroundCheckDateExpires: "background_check_date_expires",
39263
- creditBalance: "credit_balance"
39511
+ creditBalance: "credit_balance",
39512
+ targetFacilities: "target_facilities",
39513
+ pendingInvoice: "pending_invoice",
39514
+ vendorGroups: "vendor_groups"
39264
39515
  });
39265
39516
  });
39266
39517
  ((Vendor$) => {
@@ -40274,6 +40525,7 @@ var init_components = __esm(() => {
40274
40525
  init_activestatus();
40275
40526
  init_backgroundcheckresult();
40276
40527
  init_company();
40528
+ init_companyvendortyperestriction();
40277
40529
  init_contact();
40278
40530
  init_contenttype();
40279
40531
  init_credential();
@@ -40288,6 +40540,7 @@ var init_components = __esm(() => {
40288
40540
  init_facility();
40289
40541
  init_facilitystatus();
40290
40542
  init_facilitysummary();
40543
+ init_facilityvendortype();
40291
40544
  init_financialstatus();
40292
40545
  init_handoff();
40293
40546
  init_imageset();
@@ -40320,6 +40573,7 @@ var init_components = __esm(() => {
40320
40573
  init_vendorcredentialscontainer();
40321
40574
  init_vendorcredentialsummary();
40322
40575
  init_vendorfacilitystatusview();
40576
+ init_vendorgroup();
40323
40577
  init_vendorjobtitle();
40324
40578
  init_vendormanagedbycompany();
40325
40579
  init_vendorrequiredcredential();
@@ -40515,6 +40769,67 @@ var init_addvendormanagedbycompany = __esm(() => {
40515
40769
  })(AddVendorManagedByCompanyAddVendorManagedByCompanyOk$ ||= {});
40516
40770
  });
40517
40771
 
40772
+ // src/models/operations/calculatesubscriptionprice.ts
40773
+ var CalculateSubscriptionPriceRequestBody$inboundSchema, CalculateSubscriptionPriceRequestBody$outboundSchema, CalculateSubscriptionPriceRequestBody$, CalculateSubscriptionPriceRequest$inboundSchema, CalculateSubscriptionPriceRequest$outboundSchema, CalculateSubscriptionPriceRequest$, CalculateSubscriptionPriceResponseBody$inboundSchema, CalculateSubscriptionPriceResponseBody$outboundSchema, CalculateSubscriptionPriceResponseBody$;
40774
+ var init_calculatesubscriptionprice = __esm(() => {
40775
+ init_esm();
40776
+ init_primitives();
40777
+ CalculateSubscriptionPriceRequestBody$inboundSchema = objectType({
40778
+ vendor_type_id: numberType().int().optional(),
40779
+ facility_ids: arrayType(numberType().int()).optional()
40780
+ }).transform((v2) => {
40781
+ return remap(v2, {
40782
+ vendor_type_id: "vendorTypeId",
40783
+ facility_ids: "facilityIds"
40784
+ });
40785
+ });
40786
+ CalculateSubscriptionPriceRequestBody$outboundSchema = objectType({
40787
+ vendorTypeId: numberType().int().optional(),
40788
+ facilityIds: arrayType(numberType().int()).optional()
40789
+ }).transform((v2) => {
40790
+ return remap(v2, {
40791
+ vendorTypeId: "vendor_type_id",
40792
+ facilityIds: "facility_ids"
40793
+ });
40794
+ });
40795
+ ((CalculateSubscriptionPriceRequestBody$) => {
40796
+ CalculateSubscriptionPriceRequestBody$.inboundSchema = CalculateSubscriptionPriceRequestBody$inboundSchema;
40797
+ CalculateSubscriptionPriceRequestBody$.outboundSchema = CalculateSubscriptionPriceRequestBody$outboundSchema;
40798
+ })(CalculateSubscriptionPriceRequestBody$ ||= {});
40799
+ CalculateSubscriptionPriceRequest$inboundSchema = objectType({
40800
+ vendor_id_or_me: stringType(),
40801
+ RequestBody: lazyType(() => CalculateSubscriptionPriceRequestBody$inboundSchema)
40802
+ }).transform((v2) => {
40803
+ return remap(v2, {
40804
+ vendor_id_or_me: "vendorIdOrMe",
40805
+ RequestBody: "requestBody"
40806
+ });
40807
+ });
40808
+ CalculateSubscriptionPriceRequest$outboundSchema = objectType({
40809
+ vendorIdOrMe: stringType(),
40810
+ requestBody: lazyType(() => CalculateSubscriptionPriceRequestBody$outboundSchema)
40811
+ }).transform((v2) => {
40812
+ return remap(v2, {
40813
+ vendorIdOrMe: "vendor_id_or_me",
40814
+ requestBody: "RequestBody"
40815
+ });
40816
+ });
40817
+ ((CalculateSubscriptionPriceRequest$) => {
40818
+ CalculateSubscriptionPriceRequest$.inboundSchema = CalculateSubscriptionPriceRequest$inboundSchema;
40819
+ CalculateSubscriptionPriceRequest$.outboundSchema = CalculateSubscriptionPriceRequest$outboundSchema;
40820
+ })(CalculateSubscriptionPriceRequest$ ||= {});
40821
+ CalculateSubscriptionPriceResponseBody$inboundSchema = objectType({
40822
+ price: numberType().int().optional()
40823
+ });
40824
+ CalculateSubscriptionPriceResponseBody$outboundSchema = objectType({
40825
+ price: numberType().int().optional()
40826
+ });
40827
+ ((CalculateSubscriptionPriceResponseBody$) => {
40828
+ CalculateSubscriptionPriceResponseBody$.inboundSchema = CalculateSubscriptionPriceResponseBody$inboundSchema;
40829
+ CalculateSubscriptionPriceResponseBody$.outboundSchema = CalculateSubscriptionPriceResponseBody$outboundSchema;
40830
+ })(CalculateSubscriptionPriceResponseBody$ ||= {});
40831
+ });
40832
+
40518
40833
  // src/models/operations/changepassword.ts
40519
40834
  var ChangePasswordRequestBody$inboundSchema, ChangePasswordRequestBody$outboundSchema, ChangePasswordRequestBody$, ChangePasswordRequest$inboundSchema, ChangePasswordRequest$outboundSchema, ChangePasswordRequest$, ChangePasswordChangePasswordOk$inboundSchema, ChangePasswordChangePasswordOk$outboundSchema, ChangePasswordChangePasswordOk$;
40520
40835
  var init_changepassword = __esm(() => {
@@ -40576,35 +40891,100 @@ var init_changepassword = __esm(() => {
40576
40891
  })(ChangePasswordChangePasswordOk$ ||= {});
40577
40892
  });
40578
40893
 
40579
- // src/models/operations/checkdownloadcode.ts
40580
- var CheckDownloadCodeRequest$inboundSchema, CheckDownloadCodeRequest$outboundSchema, CheckDownloadCodeRequest$, CheckDownloadCodeResponseBody$inboundSchema, CheckDownloadCodeResponseBody$outboundSchema, CheckDownloadCodeResponseBody$;
40581
- var init_checkdownloadcode = __esm(() => {
40894
+ // src/models/operations/changesubscription.ts
40895
+ var ChangeSubscriptionRequestBody$inboundSchema, ChangeSubscriptionRequestBody$outboundSchema, ChangeSubscriptionRequestBody$, ChangeSubscriptionRequest$inboundSchema, ChangeSubscriptionRequest$outboundSchema, ChangeSubscriptionRequest$, ChangeSubscriptionResponseBody$inboundSchema, ChangeSubscriptionResponseBody$outboundSchema, ChangeSubscriptionResponseBody$;
40896
+ var init_changesubscription = __esm(() => {
40582
40897
  init_esm();
40583
40898
  init_primitives();
40584
- CheckDownloadCodeRequest$inboundSchema = objectType({
40585
- vendor_credential_id: numberType().int(),
40586
- code: stringType().optional()
40899
+ ChangeSubscriptionRequestBody$inboundSchema = objectType({
40900
+ vendor_type_id: numberType().int().optional(),
40901
+ facility_ids: arrayType(numberType().int()).optional()
40587
40902
  }).transform((v2) => {
40588
40903
  return remap(v2, {
40589
- vendor_credential_id: "vendorCredentialId"
40904
+ vendor_type_id: "vendorTypeId",
40905
+ facility_ids: "facilityIds"
40590
40906
  });
40591
40907
  });
40592
- CheckDownloadCodeRequest$outboundSchema = objectType({
40593
- vendorCredentialId: numberType().int(),
40594
- code: stringType().optional()
40908
+ ChangeSubscriptionRequestBody$outboundSchema = objectType({
40909
+ vendorTypeId: numberType().int().optional(),
40910
+ facilityIds: arrayType(numberType().int()).optional()
40595
40911
  }).transform((v2) => {
40596
40912
  return remap(v2, {
40597
- vendorCredentialId: "vendor_credential_id"
40913
+ vendorTypeId: "vendor_type_id",
40914
+ facilityIds: "facility_ids"
40598
40915
  });
40599
40916
  });
40600
- ((CheckDownloadCodeRequest$) => {
40601
- CheckDownloadCodeRequest$.inboundSchema = CheckDownloadCodeRequest$inboundSchema;
40602
- CheckDownloadCodeRequest$.outboundSchema = CheckDownloadCodeRequest$outboundSchema;
40603
- })(CheckDownloadCodeRequest$ ||= {});
40604
- CheckDownloadCodeResponseBody$inboundSchema = objectType({
40605
- urls: arrayType(stringType()).optional()
40606
- });
40607
- CheckDownloadCodeResponseBody$outboundSchema = objectType({
40917
+ ((ChangeSubscriptionRequestBody$) => {
40918
+ ChangeSubscriptionRequestBody$.inboundSchema = ChangeSubscriptionRequestBody$inboundSchema;
40919
+ ChangeSubscriptionRequestBody$.outboundSchema = ChangeSubscriptionRequestBody$outboundSchema;
40920
+ })(ChangeSubscriptionRequestBody$ ||= {});
40921
+ ChangeSubscriptionRequest$inboundSchema = objectType({
40922
+ vendor_id_or_me: stringType(),
40923
+ RequestBody: lazyType(() => ChangeSubscriptionRequestBody$inboundSchema)
40924
+ }).transform((v2) => {
40925
+ return remap(v2, {
40926
+ vendor_id_or_me: "vendorIdOrMe",
40927
+ RequestBody: "requestBody"
40928
+ });
40929
+ });
40930
+ ChangeSubscriptionRequest$outboundSchema = objectType({
40931
+ vendorIdOrMe: stringType(),
40932
+ requestBody: lazyType(() => ChangeSubscriptionRequestBody$outboundSchema)
40933
+ }).transform((v2) => {
40934
+ return remap(v2, {
40935
+ vendorIdOrMe: "vendor_id_or_me",
40936
+ requestBody: "RequestBody"
40937
+ });
40938
+ });
40939
+ ((ChangeSubscriptionRequest$) => {
40940
+ ChangeSubscriptionRequest$.inboundSchema = ChangeSubscriptionRequest$inboundSchema;
40941
+ ChangeSubscriptionRequest$.outboundSchema = ChangeSubscriptionRequest$outboundSchema;
40942
+ })(ChangeSubscriptionRequest$ ||= {});
40943
+ ChangeSubscriptionResponseBody$inboundSchema = objectType({
40944
+ id: numberType().int().optional(),
40945
+ success: booleanType().optional(),
40946
+ error: stringType().optional()
40947
+ });
40948
+ ChangeSubscriptionResponseBody$outboundSchema = objectType({
40949
+ id: numberType().int().optional(),
40950
+ success: booleanType().optional(),
40951
+ error: stringType().optional()
40952
+ });
40953
+ ((ChangeSubscriptionResponseBody$) => {
40954
+ ChangeSubscriptionResponseBody$.inboundSchema = ChangeSubscriptionResponseBody$inboundSchema;
40955
+ ChangeSubscriptionResponseBody$.outboundSchema = ChangeSubscriptionResponseBody$outboundSchema;
40956
+ })(ChangeSubscriptionResponseBody$ ||= {});
40957
+ });
40958
+
40959
+ // src/models/operations/checkdownloadcode.ts
40960
+ var CheckDownloadCodeRequest$inboundSchema, CheckDownloadCodeRequest$outboundSchema, CheckDownloadCodeRequest$, CheckDownloadCodeResponseBody$inboundSchema, CheckDownloadCodeResponseBody$outboundSchema, CheckDownloadCodeResponseBody$;
40961
+ var init_checkdownloadcode = __esm(() => {
40962
+ init_esm();
40963
+ init_primitives();
40964
+ CheckDownloadCodeRequest$inboundSchema = objectType({
40965
+ vendor_credential_id: numberType().int(),
40966
+ code: stringType().optional()
40967
+ }).transform((v2) => {
40968
+ return remap(v2, {
40969
+ vendor_credential_id: "vendorCredentialId"
40970
+ });
40971
+ });
40972
+ CheckDownloadCodeRequest$outboundSchema = objectType({
40973
+ vendorCredentialId: numberType().int(),
40974
+ code: stringType().optional()
40975
+ }).transform((v2) => {
40976
+ return remap(v2, {
40977
+ vendorCredentialId: "vendor_credential_id"
40978
+ });
40979
+ });
40980
+ ((CheckDownloadCodeRequest$) => {
40981
+ CheckDownloadCodeRequest$.inboundSchema = CheckDownloadCodeRequest$inboundSchema;
40982
+ CheckDownloadCodeRequest$.outboundSchema = CheckDownloadCodeRequest$outboundSchema;
40983
+ })(CheckDownloadCodeRequest$ ||= {});
40984
+ CheckDownloadCodeResponseBody$inboundSchema = objectType({
40985
+ urls: arrayType(stringType()).optional()
40986
+ });
40987
+ CheckDownloadCodeResponseBody$outboundSchema = objectType({
40608
40988
  urls: arrayType(stringType()).optional()
40609
40989
  });
40610
40990
  ((CheckDownloadCodeResponseBody$) => {
@@ -41394,6 +41774,44 @@ var init_getsecurityzone = __esm(() => {
41394
41774
  })(GetSecurityZoneRequest$ ||= {});
41395
41775
  });
41396
41776
 
41777
+ // src/models/operations/getsubscription.ts
41778
+ var GetSubscriptionRequest$inboundSchema, GetSubscriptionRequest$outboundSchema, GetSubscriptionRequest$, GetSubscriptionResponseBody$inboundSchema, GetSubscriptionResponseBody$outboundSchema, GetSubscriptionResponseBody$;
41779
+ var init_getsubscription = __esm(() => {
41780
+ init_esm();
41781
+ init_primitives();
41782
+ init_components();
41783
+ GetSubscriptionRequest$inboundSchema = objectType({
41784
+ vendor_id_or_me: stringType(),
41785
+ expand: arrayType(Expand$inboundSchema).optional()
41786
+ }).transform((v2) => {
41787
+ return remap(v2, {
41788
+ vendor_id_or_me: "vendorIdOrMe"
41789
+ });
41790
+ });
41791
+ GetSubscriptionRequest$outboundSchema = objectType({
41792
+ vendorIdOrMe: stringType(),
41793
+ expand: arrayType(Expand$outboundSchema).optional()
41794
+ }).transform((v2) => {
41795
+ return remap(v2, {
41796
+ vendorIdOrMe: "vendor_id_or_me"
41797
+ });
41798
+ });
41799
+ ((GetSubscriptionRequest$) => {
41800
+ GetSubscriptionRequest$.inboundSchema = GetSubscriptionRequest$inboundSchema;
41801
+ GetSubscriptionRequest$.outboundSchema = GetSubscriptionRequest$outboundSchema;
41802
+ })(GetSubscriptionRequest$ ||= {});
41803
+ GetSubscriptionResponseBody$inboundSchema = objectType({
41804
+ subscription: nullableType(Subscription$inboundSchema).optional()
41805
+ });
41806
+ GetSubscriptionResponseBody$outboundSchema = objectType({
41807
+ subscription: nullableType(Subscription$outboundSchema).optional()
41808
+ });
41809
+ ((GetSubscriptionResponseBody$) => {
41810
+ GetSubscriptionResponseBody$.inboundSchema = GetSubscriptionResponseBody$inboundSchema;
41811
+ GetSubscriptionResponseBody$.outboundSchema = GetSubscriptionResponseBody$outboundSchema;
41812
+ })(GetSubscriptionResponseBody$ ||= {});
41813
+ });
41814
+
41397
41815
  // src/models/operations/getsupportarticle.ts
41398
41816
  var GetSupportArticleRequest$inboundSchema, GetSupportArticleRequest$outboundSchema, GetSupportArticleRequest$;
41399
41817
  var init_getsupportarticle = __esm(() => {
@@ -42031,6 +42449,74 @@ var init_listorsearchsupportarticles = __esm(() => {
42031
42449
  })(ListOrSearchSupportArticlesResponse$ ||= {});
42032
42450
  });
42033
42451
 
42452
+ // src/models/operations/listsystems.ts
42453
+ var ListSystemsRequest$inboundSchema, ListSystemsRequest$outboundSchema, ListSystemsRequest$, ListSystemsResponseBody$inboundSchema, ListSystemsResponseBody$outboundSchema, ListSystemsResponseBody$, ListSystemsResponse$inboundSchema, ListSystemsResponse$outboundSchema, ListSystemsResponse$;
42454
+ var init_listsystems = __esm(() => {
42455
+ init_esm();
42456
+ init_primitives();
42457
+ init_components();
42458
+ ListSystemsRequest$inboundSchema = objectType({
42459
+ sort: nullableType(stringType()).optional(),
42460
+ desc: Desc$inboundSchema.optional(),
42461
+ page: numberType().int().optional(),
42462
+ items_per_page: numberType().int().optional(),
42463
+ name_like: stringType().optional(),
42464
+ expand: arrayType(Expand$inboundSchema).optional()
42465
+ }).transform((v2) => {
42466
+ return remap(v2, {
42467
+ items_per_page: "itemsPerPage",
42468
+ name_like: "nameLike"
42469
+ });
42470
+ });
42471
+ ListSystemsRequest$outboundSchema = objectType({
42472
+ sort: nullableType(stringType()).optional(),
42473
+ desc: Desc$outboundSchema.optional(),
42474
+ page: numberType().int().optional(),
42475
+ itemsPerPage: numberType().int().optional(),
42476
+ nameLike: stringType().optional(),
42477
+ expand: arrayType(Expand$outboundSchema).optional()
42478
+ }).transform((v2) => {
42479
+ return remap(v2, {
42480
+ itemsPerPage: "items_per_page",
42481
+ nameLike: "name_like"
42482
+ });
42483
+ });
42484
+ ((ListSystemsRequest$) => {
42485
+ ListSystemsRequest$.inboundSchema = ListSystemsRequest$inboundSchema;
42486
+ ListSystemsRequest$.outboundSchema = ListSystemsRequest$outboundSchema;
42487
+ })(ListSystemsRequest$ ||= {});
42488
+ ListSystemsResponseBody$inboundSchema = objectType({
42489
+ pager: Pager$inboundSchema,
42490
+ items: arrayType(SystemSummary$inboundSchema)
42491
+ });
42492
+ ListSystemsResponseBody$outboundSchema = objectType({
42493
+ pager: Pager$outboundSchema,
42494
+ items: arrayType(SystemSummary$outboundSchema)
42495
+ });
42496
+ ((ListSystemsResponseBody$) => {
42497
+ ListSystemsResponseBody$.inboundSchema = ListSystemsResponseBody$inboundSchema;
42498
+ ListSystemsResponseBody$.outboundSchema = ListSystemsResponseBody$outboundSchema;
42499
+ })(ListSystemsResponseBody$ ||= {});
42500
+ ListSystemsResponse$inboundSchema = objectType({
42501
+ Result: lazyType(() => ListSystemsResponseBody$inboundSchema)
42502
+ }).transform((v2) => {
42503
+ return remap(v2, {
42504
+ Result: "result"
42505
+ });
42506
+ });
42507
+ ListSystemsResponse$outboundSchema = objectType({
42508
+ result: lazyType(() => ListSystemsResponseBody$outboundSchema)
42509
+ }).transform((v2) => {
42510
+ return remap(v2, {
42511
+ result: "Result"
42512
+ });
42513
+ });
42514
+ ((ListSystemsResponse$) => {
42515
+ ListSystemsResponse$.inboundSchema = ListSystemsResponse$inboundSchema;
42516
+ ListSystemsResponse$.outboundSchema = ListSystemsResponse$outboundSchema;
42517
+ })(ListSystemsResponse$ ||= {});
42518
+ });
42519
+
42034
42520
  // src/models/operations/listvendoradditionalfacilityfields.ts
42035
42521
  var ListVendorAdditionalFacilityFieldsRequest$inboundSchema, ListVendorAdditionalFacilityFieldsRequest$outboundSchema, ListVendorAdditionalFacilityFieldsRequest$, ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk$inboundSchema, ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk$outboundSchema, ListVendorAdditionalFacilityFieldsListVendorAdditionalFacilityFieldsOk$, ListVendorAdditionalFacilityFieldsResponse$inboundSchema, ListVendorAdditionalFacilityFieldsResponse$outboundSchema, ListVendorAdditionalFacilityFieldsResponse$;
42036
42522
  var init_listvendoradditionalfacilityfields = __esm(() => {
@@ -42890,6 +43376,68 @@ var init_listvendorscrubpurchases = __esm(() => {
42890
43376
  })(ListVendorScrubPurchasesResponse$ ||= {});
42891
43377
  });
42892
43378
 
43379
+ // src/models/operations/listvendortypes.ts
43380
+ var ListVendorTypesRequest$inboundSchema, ListVendorTypesRequest$outboundSchema, ListVendorTypesRequest$, ListVendorTypesResponseBody$inboundSchema, ListVendorTypesResponseBody$outboundSchema, ListVendorTypesResponseBody$, ListVendorTypesResponse$inboundSchema, ListVendorTypesResponse$outboundSchema, ListVendorTypesResponse$;
43381
+ var init_listvendortypes = __esm(() => {
43382
+ init_esm();
43383
+ init_primitives();
43384
+ init_components();
43385
+ ListVendorTypesRequest$inboundSchema = objectType({
43386
+ sort: nullableType(stringType()).optional(),
43387
+ desc: Desc$inboundSchema.optional(),
43388
+ page: numberType().int().optional(),
43389
+ items_per_page: numberType().int().optional()
43390
+ }).transform((v2) => {
43391
+ return remap(v2, {
43392
+ items_per_page: "itemsPerPage"
43393
+ });
43394
+ });
43395
+ ListVendorTypesRequest$outboundSchema = objectType({
43396
+ sort: nullableType(stringType()).optional(),
43397
+ desc: Desc$outboundSchema.optional(),
43398
+ page: numberType().int().optional(),
43399
+ itemsPerPage: numberType().int().optional()
43400
+ }).transform((v2) => {
43401
+ return remap(v2, {
43402
+ itemsPerPage: "items_per_page"
43403
+ });
43404
+ });
43405
+ ((ListVendorTypesRequest$) => {
43406
+ ListVendorTypesRequest$.inboundSchema = ListVendorTypesRequest$inboundSchema;
43407
+ ListVendorTypesRequest$.outboundSchema = ListVendorTypesRequest$outboundSchema;
43408
+ })(ListVendorTypesRequest$ ||= {});
43409
+ ListVendorTypesResponseBody$inboundSchema = objectType({
43410
+ pager: Pager$inboundSchema,
43411
+ items: arrayType(nullableType(VendorType$inboundSchema))
43412
+ });
43413
+ ListVendorTypesResponseBody$outboundSchema = objectType({
43414
+ pager: Pager$outboundSchema,
43415
+ items: arrayType(nullableType(VendorType$outboundSchema))
43416
+ });
43417
+ ((ListVendorTypesResponseBody$) => {
43418
+ ListVendorTypesResponseBody$.inboundSchema = ListVendorTypesResponseBody$inboundSchema;
43419
+ ListVendorTypesResponseBody$.outboundSchema = ListVendorTypesResponseBody$outboundSchema;
43420
+ })(ListVendorTypesResponseBody$ ||= {});
43421
+ ListVendorTypesResponse$inboundSchema = objectType({
43422
+ Result: lazyType(() => ListVendorTypesResponseBody$inboundSchema)
43423
+ }).transform((v2) => {
43424
+ return remap(v2, {
43425
+ Result: "result"
43426
+ });
43427
+ });
43428
+ ListVendorTypesResponse$outboundSchema = objectType({
43429
+ result: lazyType(() => ListVendorTypesResponseBody$outboundSchema)
43430
+ }).transform((v2) => {
43431
+ return remap(v2, {
43432
+ result: "Result"
43433
+ });
43434
+ });
43435
+ ((ListVendorTypesResponse$) => {
43436
+ ListVendorTypesResponse$.inboundSchema = ListVendorTypesResponse$inboundSchema;
43437
+ ListVendorTypesResponse$.outboundSchema = ListVendorTypesResponse$outboundSchema;
43438
+ })(ListVendorTypesResponse$ ||= {});
43439
+ });
43440
+
42893
43441
  // src/models/operations/magiclink.ts
42894
43442
  var MagiclinkRequestBody$inboundSchema, MagiclinkRequestBody$outboundSchema, MagiclinkRequestBody$, MagiclinkMagiclinkOk$inboundSchema, MagiclinkMagiclinkOk$outboundSchema, MagiclinkMagiclinkOk$;
42895
43443
  var init_magiclink = __esm(() => {
@@ -44461,7 +45009,9 @@ var init_operations = __esm(() => {
44461
45009
  init_adddatarequestfile();
44462
45010
  init_addvendorcredentialfile();
44463
45011
  init_addvendormanagedbycompany();
45012
+ init_calculatesubscriptionprice();
44464
45013
  init_changepassword();
45014
+ init_changesubscription();
44465
45015
  init_checkdownloadcode();
44466
45016
  init_createinvoice();
44467
45017
  init_createnewvendorcredentialversion();
@@ -44475,6 +45025,7 @@ var init_operations = __esm(() => {
44475
45025
  init_expeditetimeremaining();
44476
45026
  init_getfacility();
44477
45027
  init_getsecurityzone();
45028
+ init_getsubscription();
44478
45029
  init_getsupportarticle();
44479
45030
  init_getuserbyid();
44480
45031
  init_getvendorcredentialdetails();
@@ -44489,6 +45040,7 @@ var init_operations = __esm(() => {
44489
45040
  init_listorsearchfacilities();
44490
45041
  init_listorsearchsecurityzones();
44491
45042
  init_listorsearchsupportarticles();
45043
+ init_listsystems();
44492
45044
  init_listvendoradditionalfacilityfields();
44493
45045
  init_listvendorcredentialdatarequests();
44494
45046
  init_listvendorcredentialfiles();
@@ -44502,6 +45054,7 @@ var init_operations = __esm(() => {
44502
45054
  init_listvendorscrubdetails();
44503
45055
  init_listvendorscrubpackages();
44504
45056
  init_listvendorscrubpurchases();
45057
+ init_listvendortypes();
44505
45058
  init_magiclink();
44506
45059
  init_makepayment();
44507
45060
  init_password();
@@ -46062,26 +46615,28 @@ List or search support articles for FAQ.`,
46062
46615
  };
46063
46616
  });
46064
46617
 
46065
- // src/funcs/usersChangePassword.ts
46066
- function usersChangePassword(client, request, options) {
46618
+ // src/funcs/systemsListSystems.ts
46619
+ function systemsListSystems(client, request, options) {
46067
46620
  return new APIPromise($do13(client, request, options));
46068
46621
  }
46069
46622
  async function $do13(client, request, options) {
46070
- const parsed = safeParse(request, (value) => ChangePasswordRequest$outboundSchema.parse(value), "Input validation failed");
46623
+ const parsed = safeParse(request, (value) => ListSystemsRequest$outboundSchema.parse(value), "Input validation failed");
46071
46624
  if (!parsed.ok) {
46072
- return [parsed, { status: "invalid" }];
46625
+ return [haltIterator(parsed), { status: "invalid" }];
46073
46626
  }
46074
46627
  const payload = parsed.value;
46075
- const body = encodeJSON("body", payload.RequestBody, { explode: true });
46076
- const pathParams = {
46077
- id_or_me: encodeSimple("id_or_me", payload.id_or_me, {
46078
- explode: false,
46079
- charEncoding: "percent"
46080
- })
46081
- };
46082
- const path = pathToFunc("/users/{id_or_me}/password")(pathParams);
46628
+ const body = null;
46629
+ const path = pathToFunc("/systems")();
46630
+ const query = queryJoin(encodeFormQuery({
46631
+ expand: payload.expand
46632
+ }, { explode: false }), encodeFormQuery({
46633
+ desc: payload.desc,
46634
+ items_per_page: payload.items_per_page,
46635
+ name_like: payload.name_like,
46636
+ page: payload.page,
46637
+ sort: payload.sort
46638
+ }));
46083
46639
  const headers = new Headers(compactMap({
46084
- "Content-Type": "application/json",
46085
46640
  Accept: "application/json"
46086
46641
  }));
46087
46642
  const securityInput = await extractSecurity(client._options.security);
@@ -46089,7 +46644,7 @@ async function $do13(client, request, options) {
46089
46644
  const context = {
46090
46645
  options: client._options,
46091
46646
  baseURL: options?.serverURL ?? client._baseURL ?? "",
46092
- operationID: "changePassword",
46647
+ operationID: "listSystems",
46093
46648
  oAuth2Scopes: [],
46094
46649
  resolvedSecurity: requestSecurity,
46095
46650
  securitySource: client._options.security,
@@ -46098,38 +46653,70 @@ async function $do13(client, request, options) {
46098
46653
  };
46099
46654
  const requestRes = client._createRequest(context, {
46100
46655
  security: requestSecurity,
46101
- method: "POST",
46656
+ method: "GET",
46102
46657
  baseURL: options?.serverURL,
46103
46658
  path,
46104
46659
  headers,
46660
+ query,
46105
46661
  body,
46106
46662
  userAgent: client._options.userAgent,
46107
46663
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
46108
46664
  }, options);
46109
46665
  if (!requestRes.ok) {
46110
- return [requestRes, { status: "invalid" }];
46666
+ return [haltIterator(requestRes), { status: "invalid" }];
46111
46667
  }
46112
46668
  const req = requestRes.value;
46113
46669
  const doResult = await client._do(req, {
46114
46670
  context,
46115
- errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
46671
+ errorCodes: ["403", "4XX", "500", "5XX"],
46116
46672
  retryConfig: context.retryConfig,
46117
46673
  retryCodes: context.retryCodes
46118
46674
  });
46119
46675
  if (!doResult.ok) {
46120
- return [doResult, { status: "request-error", request: req }];
46676
+ return [haltIterator(doResult), { status: "request-error", request: req }];
46121
46677
  }
46122
46678
  const response = doResult.value;
46123
46679
  const responseFields = {
46124
46680
  HttpMeta: { Response: response, Request: req }
46125
46681
  };
46126
- const [result] = await match(json(200, ChangePasswordChangePasswordOk$inboundSchema), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
46682
+ const [result, raw] = await match(json(200, ListSystemsResponse$inboundSchema, {
46683
+ key: "Result"
46684
+ }), jsonErr(403, ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
46127
46685
  if (!result.ok) {
46128
- return [result, { status: "complete", request: req, response }];
46686
+ return [haltIterator(result), {
46687
+ status: "complete",
46688
+ request: req,
46689
+ response
46690
+ }];
46129
46691
  }
46130
- return [result, { status: "complete", request: req, response }];
46692
+ const nextFunc = (responseData) => {
46693
+ const page2 = request?.page ?? 1;
46694
+ const nextPage = page2 + 1;
46695
+ if (!responseData) {
46696
+ return { next: () => null };
46697
+ }
46698
+ const results = dlv(responseData, "items");
46699
+ if (!Array.isArray(results) || !results.length) {
46700
+ return { next: () => null };
46701
+ }
46702
+ const limit = request?.itemsPerPage ?? 0;
46703
+ if (results.length < limit) {
46704
+ return { next: () => null };
46705
+ }
46706
+ const nextVal = () => systemsListSystems(client, {
46707
+ ...request,
46708
+ page: nextPage
46709
+ }, options);
46710
+ return { next: nextVal, "~next": { page: nextPage } };
46711
+ };
46712
+ const page = { ...result, ...nextFunc(raw) };
46713
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
46714
+ status: "complete",
46715
+ request: req,
46716
+ response
46717
+ }];
46131
46718
  }
46132
- var init_usersChangePassword = __esm(() => {
46719
+ var init_systemsListSystems = __esm(() => {
46133
46720
  init_encodings();
46134
46721
  init_matchers();
46135
46722
  init_primitives();
@@ -46139,44 +46726,62 @@ var init_usersChangePassword = __esm(() => {
46139
46726
  init_errors2();
46140
46727
  init_operations();
46141
46728
  init_async();
46729
+ init_operations2();
46142
46730
  });
46143
46731
 
46144
- // src/mcp-server/tools/usersChangePassword.ts
46145
- var args13, tool$usersChangePassword;
46146
- var init_usersChangePassword2 = __esm(() => {
46147
- init_usersChangePassword();
46732
+ // src/mcp-server/tools/systemsListSystems.ts
46733
+ var args13, tool$systemsListSystems;
46734
+ var init_systemsListSystems2 = __esm(() => {
46735
+ init_systemsListSystems();
46148
46736
  init_operations();
46149
46737
  init_tools();
46150
46738
  args13 = {
46151
- request: ChangePasswordRequest$inboundSchema
46739
+ request: ListSystemsRequest$inboundSchema
46152
46740
  };
46153
- tool$usersChangePassword = {
46154
- name: "users-change-password",
46155
- description: `Change password
46741
+ tool$systemsListSystems = {
46742
+ name: "systems-list-systems",
46743
+ description: `List systems
46156
46744
 
46157
- Change the user's password to the new passed as parameter`,
46745
+ List or search systems.
46746
+
46747
+ Available \`expand\` scopes are:
46748
+
46749
+ - system.facilities`,
46158
46750
  args: args13,
46159
46751
  tool: async (client, args14, ctx) => {
46160
- const [result, apiCall] = await usersChangePassword(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46752
+ const [result, apiCall] = await systemsListSystems(client, args14.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46161
46753
  if (!result.ok) {
46162
46754
  return {
46163
46755
  content: [{ type: "text", text: result.error.message }],
46164
46756
  isError: true
46165
46757
  };
46166
46758
  }
46167
- const value = result.value;
46759
+ const value = result.value.result;
46168
46760
  return formatResult(value, apiCall);
46169
46761
  }
46170
46762
  };
46171
46763
  });
46172
46764
 
46173
- // src/funcs/usersGetCurrentUser.ts
46174
- function usersGetCurrentUser(client, options) {
46175
- return new APIPromise($do14(client, options));
46765
+ // src/funcs/usersChangePassword.ts
46766
+ function usersChangePassword(client, request, options) {
46767
+ return new APIPromise($do14(client, request, options));
46176
46768
  }
46177
- async function $do14(client, options) {
46178
- const path = pathToFunc("/users/me")();
46769
+ async function $do14(client, request, options) {
46770
+ const parsed = safeParse(request, (value) => ChangePasswordRequest$outboundSchema.parse(value), "Input validation failed");
46771
+ if (!parsed.ok) {
46772
+ return [parsed, { status: "invalid" }];
46773
+ }
46774
+ const payload = parsed.value;
46775
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
46776
+ const pathParams = {
46777
+ id_or_me: encodeSimple("id_or_me", payload.id_or_me, {
46778
+ explode: false,
46779
+ charEncoding: "percent"
46780
+ })
46781
+ };
46782
+ const path = pathToFunc("/users/{id_or_me}/password")(pathParams);
46179
46783
  const headers = new Headers(compactMap({
46784
+ "Content-Type": "application/json",
46180
46785
  Accept: "application/json"
46181
46786
  }));
46182
46787
  const securityInput = await extractSecurity(client._options.security);
@@ -46184,7 +46789,102 @@ async function $do14(client, options) {
46184
46789
  const context = {
46185
46790
  options: client._options,
46186
46791
  baseURL: options?.serverURL ?? client._baseURL ?? "",
46187
- operationID: "getCurrentUser",
46792
+ operationID: "changePassword",
46793
+ oAuth2Scopes: [],
46794
+ resolvedSecurity: requestSecurity,
46795
+ securitySource: client._options.security,
46796
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
46797
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
46798
+ };
46799
+ const requestRes = client._createRequest(context, {
46800
+ security: requestSecurity,
46801
+ method: "POST",
46802
+ baseURL: options?.serverURL,
46803
+ path,
46804
+ headers,
46805
+ body,
46806
+ userAgent: client._options.userAgent,
46807
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
46808
+ }, options);
46809
+ if (!requestRes.ok) {
46810
+ return [requestRes, { status: "invalid" }];
46811
+ }
46812
+ const req = requestRes.value;
46813
+ const doResult = await client._do(req, {
46814
+ context,
46815
+ errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
46816
+ retryConfig: context.retryConfig,
46817
+ retryCodes: context.retryCodes
46818
+ });
46819
+ if (!doResult.ok) {
46820
+ return [doResult, { status: "request-error", request: req }];
46821
+ }
46822
+ const response = doResult.value;
46823
+ const responseFields = {
46824
+ HttpMeta: { Response: response, Request: req }
46825
+ };
46826
+ const [result] = await match(json(200, ChangePasswordChangePasswordOk$inboundSchema), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
46827
+ if (!result.ok) {
46828
+ return [result, { status: "complete", request: req, response }];
46829
+ }
46830
+ return [result, { status: "complete", request: req, response }];
46831
+ }
46832
+ var init_usersChangePassword = __esm(() => {
46833
+ init_encodings();
46834
+ init_matchers();
46835
+ init_primitives();
46836
+ init_schemas();
46837
+ init_security();
46838
+ init_url();
46839
+ init_errors2();
46840
+ init_operations();
46841
+ init_async();
46842
+ });
46843
+
46844
+ // src/mcp-server/tools/usersChangePassword.ts
46845
+ var args14, tool$usersChangePassword;
46846
+ var init_usersChangePassword2 = __esm(() => {
46847
+ init_usersChangePassword();
46848
+ init_operations();
46849
+ init_tools();
46850
+ args14 = {
46851
+ request: ChangePasswordRequest$inboundSchema
46852
+ };
46853
+ tool$usersChangePassword = {
46854
+ name: "users-change-password",
46855
+ description: `Change password
46856
+
46857
+ Change the user's password to the new passed as parameter`,
46858
+ args: args14,
46859
+ tool: async (client, args15, ctx) => {
46860
+ const [result, apiCall] = await usersChangePassword(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46861
+ if (!result.ok) {
46862
+ return {
46863
+ content: [{ type: "text", text: result.error.message }],
46864
+ isError: true
46865
+ };
46866
+ }
46867
+ const value = result.value;
46868
+ return formatResult(value, apiCall);
46869
+ }
46870
+ };
46871
+ });
46872
+
46873
+ // src/funcs/usersGetCurrentUser.ts
46874
+ function usersGetCurrentUser(client, options) {
46875
+ return new APIPromise($do15(client, options));
46876
+ }
46877
+ async function $do15(client, options) {
46878
+ const path = pathToFunc("/users/me")();
46879
+ const headers = new Headers(compactMap({
46880
+ Accept: "application/json"
46881
+ }));
46882
+ const securityInput = await extractSecurity(client._options.security);
46883
+ const requestSecurity = resolveGlobalSecurity(securityInput);
46884
+ const context = {
46885
+ options: client._options,
46886
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
46887
+ operationID: "getCurrentUser",
46188
46888
  oAuth2Scopes: [],
46189
46889
  resolvedSecurity: requestSecurity,
46190
46890
  securitySource: client._options.security,
@@ -46259,9 +46959,9 @@ Returns a user object for the user represented by the authorization token`,
46259
46959
 
46260
46960
  // src/funcs/usersGetUserById.ts
46261
46961
  function usersGetUserById(client, request, options) {
46262
- return new APIPromise($do15(client, request, options));
46962
+ return new APIPromise($do16(client, request, options));
46263
46963
  }
46264
- async function $do15(client, request, options) {
46964
+ async function $do16(client, request, options) {
46265
46965
  const parsed = safeParse(request, (value) => GetUserByIdRequest$outboundSchema.parse(value), "Input validation failed");
46266
46966
  if (!parsed.ok) {
46267
46967
  return [parsed, { status: "invalid" }];
@@ -46337,12 +47037,12 @@ var init_usersGetUserById = __esm(() => {
46337
47037
  });
46338
47038
 
46339
47039
  // src/mcp-server/tools/usersGetUserById.ts
46340
- var args14, tool$usersGetUserById;
47040
+ var args15, tool$usersGetUserById;
46341
47041
  var init_usersGetUserById2 = __esm(() => {
46342
47042
  init_usersGetUserById();
46343
47043
  init_operations();
46344
47044
  init_tools();
46345
- args14 = {
47045
+ args15 = {
46346
47046
  request: GetUserByIdRequest$inboundSchema
46347
47047
  };
46348
47048
  tool$usersGetUserById = {
@@ -46350,9 +47050,9 @@ var init_usersGetUserById2 = __esm(() => {
46350
47050
  description: `Get user by id
46351
47051
 
46352
47052
  Returns a user object for the user represented by the identifier in the path.`,
46353
- args: args14,
46354
- tool: async (client, args15, ctx) => {
46355
- const [result, apiCall] = await usersGetUserById(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47053
+ args: args15,
47054
+ tool: async (client, args16, ctx) => {
47055
+ const [result, apiCall] = await usersGetUserById(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46356
47056
  if (!result.ok) {
46357
47057
  return {
46358
47058
  content: [{ type: "text", text: result.error.message }],
@@ -46367,9 +47067,9 @@ Returns a user object for the user represented by the identifier in the path.`,
46367
47067
 
46368
47068
  // src/funcs/usersMagiclink.ts
46369
47069
  function usersMagiclink(client, request, options) {
46370
- return new APIPromise($do16(client, request, options));
47070
+ return new APIPromise($do17(client, request, options));
46371
47071
  }
46372
- async function $do16(client, request, options) {
47072
+ async function $do17(client, request, options) {
46373
47073
  const parsed = safeParse(request, (value) => MagiclinkRequestBody$outboundSchema.parse(value), "Input validation failed");
46374
47074
  if (!parsed.ok) {
46375
47075
  return [parsed, { status: "invalid" }];
@@ -46439,12 +47139,12 @@ var init_usersMagiclink = __esm(() => {
46439
47139
  });
46440
47140
 
46441
47141
  // src/mcp-server/tools/usersMagiclink.ts
46442
- var args15, tool$usersMagiclink;
47142
+ var args16, tool$usersMagiclink;
46443
47143
  var init_usersMagiclink2 = __esm(() => {
46444
47144
  init_usersMagiclink();
46445
47145
  init_operations();
46446
47146
  init_tools();
46447
- args15 = {
47147
+ args16 = {
46448
47148
  request: MagiclinkRequestBody$inboundSchema
46449
47149
  };
46450
47150
  tool$usersMagiclink = {
@@ -46452,9 +47152,9 @@ var init_usersMagiclink2 = __esm(() => {
46452
47152
  description: `Magic link
46453
47153
 
46454
47154
  It sends an email with a magic link to allow the user to log in.`,
46455
- args: args15,
46456
- tool: async (client, args16, ctx) => {
46457
- const [result, apiCall] = await usersMagiclink(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47155
+ args: args16,
47156
+ tool: async (client, args17, ctx) => {
47157
+ const [result, apiCall] = await usersMagiclink(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46458
47158
  if (!result.ok) {
46459
47159
  return {
46460
47160
  content: [{ type: "text", text: result.error.message }],
@@ -46469,9 +47169,9 @@ It sends an email with a magic link to allow the user to log in.`,
46469
47169
 
46470
47170
  // src/funcs/usersPassword.ts
46471
47171
  function usersPassword(client, request, options) {
46472
- return new APIPromise($do17(client, request, options));
47172
+ return new APIPromise($do18(client, request, options));
46473
47173
  }
46474
- async function $do17(client, request, options) {
47174
+ async function $do18(client, request, options) {
46475
47175
  const parsed = safeParse(request, (value) => PasswordRequestBody$outboundSchema.parse(value), "Input validation failed");
46476
47176
  if (!parsed.ok) {
46477
47177
  return [parsed, { status: "invalid" }];
@@ -46541,12 +47241,12 @@ var init_usersPassword = __esm(() => {
46541
47241
  });
46542
47242
 
46543
47243
  // src/mcp-server/tools/usersPassword.ts
46544
- var args16, tool$usersPassword;
47244
+ var args17, tool$usersPassword;
46545
47245
  var init_usersPassword2 = __esm(() => {
46546
47246
  init_usersPassword();
46547
47247
  init_operations();
46548
47248
  init_tools();
46549
- args16 = {
47249
+ args17 = {
46550
47250
  request: PasswordRequestBody$inboundSchema
46551
47251
  };
46552
47252
  tool$usersPassword = {
@@ -46555,9 +47255,9 @@ var init_usersPassword2 = __esm(() => {
46555
47255
 
46556
47256
  Resets the a user's password using a password_reset_id that was sent to them via email.
46557
47257
  See /users/passwordresetrequest to initiate a password reset flow.`,
46558
- args: args16,
46559
- tool: async (client, args17, ctx) => {
46560
- const [result, apiCall] = await usersPassword(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47258
+ args: args17,
47259
+ tool: async (client, args18, ctx) => {
47260
+ const [result, apiCall] = await usersPassword(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46561
47261
  if (!result.ok) {
46562
47262
  return {
46563
47263
  content: [{ type: "text", text: result.error.message }],
@@ -46572,9 +47272,9 @@ See /users/passwordresetrequest to initiate a password reset flow.`,
46572
47272
 
46573
47273
  // src/funcs/usersPasswordResetRequest.ts
46574
47274
  function usersPasswordResetRequest(client, request, options) {
46575
- return new APIPromise($do18(client, request, options));
47275
+ return new APIPromise($do19(client, request, options));
46576
47276
  }
46577
- async function $do18(client, request, options) {
47277
+ async function $do19(client, request, options) {
46578
47278
  const parsed = safeParse(request, (value) => PasswordResetRequestRequestBody$outboundSchema.parse(value), "Input validation failed");
46579
47279
  if (!parsed.ok) {
46580
47280
  return [parsed, { status: "invalid" }];
@@ -46644,12 +47344,12 @@ var init_usersPasswordResetRequest = __esm(() => {
46644
47344
  });
46645
47345
 
46646
47346
  // src/mcp-server/tools/usersPasswordResetRequest.ts
46647
- var args17, tool$usersPasswordResetRequest;
47347
+ var args18, tool$usersPasswordResetRequest;
46648
47348
  var init_usersPasswordResetRequest2 = __esm(() => {
46649
47349
  init_usersPasswordResetRequest();
46650
47350
  init_operations();
46651
47351
  init_tools();
46652
- args17 = {
47352
+ args18 = {
46653
47353
  request: PasswordResetRequestRequestBody$inboundSchema
46654
47354
  };
46655
47355
  tool$usersPasswordResetRequest = {
@@ -46657,9 +47357,9 @@ var init_usersPasswordResetRequest2 = __esm(() => {
46657
47357
  description: `Password reset request
46658
47358
 
46659
47359
  It sends an email with a link for resetting a user's password.`,
46660
- args: args17,
46661
- tool: async (client, args18, ctx) => {
46662
- const [result, apiCall] = await usersPasswordResetRequest(client, args18.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47360
+ args: args18,
47361
+ tool: async (client, args19, ctx) => {
47362
+ const [result, apiCall] = await usersPasswordResetRequest(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46663
47363
  if (!result.ok) {
46664
47364
  return {
46665
47365
  content: [{ type: "text", text: result.error.message }],
@@ -46674,9 +47374,9 @@ It sends an email with a link for resetting a user's password.`,
46674
47374
 
46675
47375
  // src/funcs/usersPostAuthenticate.ts
46676
47376
  function usersPostAuthenticate(client, request, options) {
46677
- return new APIPromise($do19(client, request, options));
47377
+ return new APIPromise($do20(client, request, options));
46678
47378
  }
46679
- async function $do19(client, request, options) {
47379
+ async function $do20(client, request, options) {
46680
47380
  const parsed = safeParse(request, (value) => PostAuthenticateRequestBody$outboundSchema.parse(value), "Input validation failed");
46681
47381
  if (!parsed.ok) {
46682
47382
  return [parsed, { status: "invalid" }];
@@ -46742,12 +47442,12 @@ var init_usersPostAuthenticate = __esm(() => {
46742
47442
  });
46743
47443
 
46744
47444
  // src/mcp-server/tools/usersPostAuthenticate.ts
46745
- var args18, tool$usersPostAuthenticate;
47445
+ var args19, tool$usersPostAuthenticate;
46746
47446
  var init_usersPostAuthenticate2 = __esm(() => {
46747
47447
  init_usersPostAuthenticate();
46748
47448
  init_operations();
46749
47449
  init_tools();
46750
- args18 = {
47450
+ args19 = {
46751
47451
  request: PostAuthenticateRequestBody$inboundSchema
46752
47452
  };
46753
47453
  tool$usersPostAuthenticate = {
@@ -46785,9 +47485,9 @@ Requires: \`saml_login\`
46785
47485
  3. Site redirects to your selected \`return_url\`
46786
47486
  4. The \`user_token\` will be appended as a query string parameter to your \`return_url\` - you must parse this token and store it
46787
47487
  5. Fetch the user object from \`/users/me\` using the token`,
46788
- args: args18,
46789
- tool: async (client, args19, ctx) => {
46790
- const [result, apiCall] = await usersPostAuthenticate(client, args19.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47488
+ args: args19,
47489
+ tool: async (client, args20, ctx) => {
47490
+ const [result, apiCall] = await usersPostAuthenticate(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46791
47491
  if (!result.ok) {
46792
47492
  return {
46793
47493
  content: [{ type: "text", text: result.error.message }],
@@ -46802,9 +47502,9 @@ Requires: \`saml_login\`
46802
47502
 
46803
47503
  // src/funcs/usersRotateApiKey.ts
46804
47504
  function usersRotateApiKey(client, options) {
46805
- return new APIPromise($do20(client, options));
47505
+ return new APIPromise($do21(client, options));
46806
47506
  }
46807
- async function $do20(client, options) {
47507
+ async function $do21(client, options) {
46808
47508
  const path = pathToFunc("/users/api_key_rotator")();
46809
47509
  const headers = new Headers(compactMap({
46810
47510
  Accept: "application/json"
@@ -46889,9 +47589,9 @@ Allows an API user to rotate their own API key. Note, the key rotation happens i
46889
47589
 
46890
47590
  // src/funcs/vendorsAcceptVendorCredential.ts
46891
47591
  function vendorsAcceptVendorCredential(client, request, options) {
46892
- return new APIPromise($do21(client, request, options));
47592
+ return new APIPromise($do22(client, request, options));
46893
47593
  }
46894
- async function $do21(client, request, options) {
47594
+ async function $do22(client, request, options) {
46895
47595
  const parsed = safeParse(request, (value) => AcceptVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
46896
47596
  if (!parsed.ok) {
46897
47597
  return [parsed, { status: "invalid" }];
@@ -46964,12 +47664,12 @@ var init_vendorsAcceptVendorCredential = __esm(() => {
46964
47664
  });
46965
47665
 
46966
47666
  // src/mcp-server/tools/vendorsAcceptVendorCredential.ts
46967
- var args19, tool$vendorsAcceptVendorCredential;
47667
+ var args20, tool$vendorsAcceptVendorCredential;
46968
47668
  var init_vendorsAcceptVendorCredential2 = __esm(() => {
46969
47669
  init_vendorsAcceptVendorCredential();
46970
47670
  init_operations();
46971
47671
  init_tools();
46972
- args19 = {
47672
+ args20 = {
46973
47673
  request: AcceptVendorCredentialRequest$inboundSchema
46974
47674
  };
46975
47675
  tool$vendorsAcceptVendorCredential = {
@@ -46977,9 +47677,9 @@ var init_vendorsAcceptVendorCredential2 = __esm(() => {
46977
47677
  description: `Accept vendor credential
46978
47678
 
46979
47679
  It will accept vendor credential`,
46980
- args: args19,
46981
- tool: async (client, args20, ctx) => {
46982
- const [result, apiCall] = await vendorsAcceptVendorCredential(client, args20.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47680
+ args: args20,
47681
+ tool: async (client, args21, ctx) => {
47682
+ const [result, apiCall] = await vendorsAcceptVendorCredential(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46983
47683
  if (!result.ok) {
46984
47684
  return {
46985
47685
  content: [{ type: "text", text: result.error.message }],
@@ -46994,9 +47694,9 @@ It will accept vendor credential`,
46994
47694
 
46995
47695
  // src/funcs/vendorsAddVendorCredentialFile.ts
46996
47696
  function vendorsAddVendorCredentialFile(client, request, options) {
46997
- return new APIPromise($do22(client, request, options));
47697
+ return new APIPromise($do23(client, request, options));
46998
47698
  }
46999
- async function $do22(client, request, options) {
47699
+ async function $do23(client, request, options) {
47000
47700
  const parsed = safeParse(request, (value) => AddVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
47001
47701
  if (!parsed.ok) {
47002
47702
  return [parsed, { status: "invalid" }];
@@ -47069,12 +47769,12 @@ var init_vendorsAddVendorCredentialFile = __esm(() => {
47069
47769
  });
47070
47770
 
47071
47771
  // src/mcp-server/tools/vendorsAddVendorCredentialFile.ts
47072
- var args20, tool$vendorsAddVendorCredentialFile;
47772
+ var args21, tool$vendorsAddVendorCredentialFile;
47073
47773
  var init_vendorsAddVendorCredentialFile2 = __esm(() => {
47074
47774
  init_vendorsAddVendorCredentialFile();
47075
47775
  init_operations();
47076
47776
  init_tools();
47077
- args20 = {
47777
+ args21 = {
47078
47778
  request: AddVendorCredentialFileRequest$inboundSchema
47079
47779
  };
47080
47780
  tool$vendorsAddVendorCredentialFile = {
@@ -47082,9 +47782,9 @@ var init_vendorsAddVendorCredentialFile2 = __esm(() => {
47082
47782
  description: `Add vendor credential file
47083
47783
 
47084
47784
  It will add a new vendor credential file`,
47085
- args: args20,
47086
- tool: async (client, args21, ctx) => {
47087
- const [result, apiCall] = await vendorsAddVendorCredentialFile(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47785
+ args: args21,
47786
+ tool: async (client, args22, ctx) => {
47787
+ const [result, apiCall] = await vendorsAddVendorCredentialFile(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47088
47788
  if (!result.ok) {
47089
47789
  return {
47090
47790
  content: [{ type: "text", text: result.error.message }],
@@ -47099,9 +47799,9 @@ It will add a new vendor credential file`,
47099
47799
 
47100
47800
  // src/funcs/vendorsAddVendorManagedByCompany.ts
47101
47801
  function vendorsAddVendorManagedByCompany(client, request, options) {
47102
- return new APIPromise($do23(client, request, options));
47802
+ return new APIPromise($do24(client, request, options));
47103
47803
  }
47104
- async function $do23(client, request, options) {
47804
+ async function $do24(client, request, options) {
47105
47805
  const parsed = safeParse(request, (value) => AddVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
47106
47806
  if (!parsed.ok) {
47107
47807
  return [parsed, { status: "invalid" }];
@@ -47177,12 +47877,12 @@ var init_vendorsAddVendorManagedByCompany = __esm(() => {
47177
47877
  });
47178
47878
 
47179
47879
  // src/mcp-server/tools/vendorsAddVendorManagedByCompany.ts
47180
- var args21, tool$vendorsAddVendorManagedByCompany;
47880
+ var args22, tool$vendorsAddVendorManagedByCompany;
47181
47881
  var init_vendorsAddVendorManagedByCompany2 = __esm(() => {
47182
47882
  init_vendorsAddVendorManagedByCompany();
47183
47883
  init_operations();
47184
47884
  init_tools();
47185
- args21 = {
47885
+ args22 = {
47186
47886
  request: AddVendorManagedByCompanyRequest$inboundSchema
47187
47887
  };
47188
47888
  tool$vendorsAddVendorManagedByCompany = {
@@ -47190,9 +47890,9 @@ var init_vendorsAddVendorManagedByCompany2 = __esm(() => {
47190
47890
  description: `Add vendor managed by company
47191
47891
 
47192
47892
  It will add a vendor managed by company`,
47193
- args: args21,
47194
- tool: async (client, args22, ctx) => {
47195
- const [result, apiCall] = await vendorsAddVendorManagedByCompany(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47893
+ args: args22,
47894
+ tool: async (client, args23, ctx) => {
47895
+ const [result, apiCall] = await vendorsAddVendorManagedByCompany(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47196
47896
  if (!result.ok) {
47197
47897
  return {
47198
47898
  content: [{ type: "text", text: result.error.message }],
@@ -47205,25 +47905,26 @@ It will add a vendor managed by company`,
47205
47905
  };
47206
47906
  });
47207
47907
 
47208
- // src/funcs/vendorScansVendorScanOut.ts
47209
- function vendorScansVendorScanOut(client, request, options) {
47210
- return new APIPromise($do24(client, request, options));
47908
+ // src/funcs/vendorsCalculateSubscriptionPrice.ts
47909
+ function vendorsCalculateSubscriptionPrice(client, request, options) {
47910
+ return new APIPromise($do25(client, request, options));
47211
47911
  }
47212
- async function $do24(client, request, options) {
47213
- const parsed = safeParse(request, (value) => VendorScanOutRequest$outboundSchema.parse(value), "Input validation failed");
47912
+ async function $do25(client, request, options) {
47913
+ const parsed = safeParse(request, (value) => CalculateSubscriptionPriceRequest$outboundSchema.parse(value), "Input validation failed");
47214
47914
  if (!parsed.ok) {
47215
47915
  return [parsed, { status: "invalid" }];
47216
47916
  }
47217
47917
  const payload = parsed.value;
47218
- const body = null;
47918
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
47219
47919
  const pathParams = {
47220
- id: encodeSimple("id", payload.id, {
47920
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
47221
47921
  explode: false,
47222
47922
  charEncoding: "percent"
47223
47923
  })
47224
47924
  };
47225
- const path = pathToFunc("/vendor-scans/{id}/scan-out")(pathParams);
47925
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/subscription-price-calculation")(pathParams);
47226
47926
  const headers = new Headers(compactMap({
47927
+ "Content-Type": "application/json",
47227
47928
  Accept: "application/json"
47228
47929
  }));
47229
47930
  const securityInput = await extractSecurity(client._options.security);
@@ -47231,7 +47932,7 @@ async function $do24(client, request, options) {
47231
47932
  const context = {
47232
47933
  options: client._options,
47233
47934
  baseURL: options?.serverURL ?? client._baseURL ?? "",
47234
- operationID: "vendorScanOut",
47935
+ operationID: "calculateSubscriptionPrice",
47235
47936
  oAuth2Scopes: [],
47236
47937
  resolvedSecurity: requestSecurity,
47237
47938
  securitySource: client._options.security,
@@ -47254,7 +47955,7 @@ async function $do24(client, request, options) {
47254
47955
  const req = requestRes.value;
47255
47956
  const doResult = await client._do(req, {
47256
47957
  context,
47257
- errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
47958
+ errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
47258
47959
  retryConfig: context.retryConfig,
47259
47960
  retryCodes: context.retryCodes
47260
47961
  });
@@ -47265,13 +47966,13 @@ async function $do24(client, request, options) {
47265
47966
  const responseFields = {
47266
47967
  HttpMeta: { Response: response, Request: req }
47267
47968
  };
47268
- const [result] = await match(json(200, VendorScanOutVendorScanOutOk$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
47969
+ const [result] = await match(json(200, CalculateSubscriptionPriceResponseBody$inboundSchema), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
47269
47970
  if (!result.ok) {
47270
47971
  return [result, { status: "complete", request: req, response }];
47271
47972
  }
47272
47973
  return [result, { status: "complete", request: req, response }];
47273
47974
  }
47274
- var init_vendorScansVendorScanOut = __esm(() => {
47975
+ var init_vendorsCalculateSubscriptionPrice = __esm(() => {
47275
47976
  init_encodings();
47276
47977
  init_matchers();
47277
47978
  init_primitives();
@@ -47283,23 +47984,23 @@ var init_vendorScansVendorScanOut = __esm(() => {
47283
47984
  init_async();
47284
47985
  });
47285
47986
 
47286
- // src/mcp-server/tools/vendorScansVendorScanOut.ts
47287
- var args22, tool$vendorScansVendorScanOut;
47288
- var init_vendorScansVendorScanOut2 = __esm(() => {
47289
- init_vendorScansVendorScanOut();
47987
+ // src/mcp-server/tools/vendorsCalculateSubscriptionPrice.ts
47988
+ var args23, tool$vendorsCalculateSubscriptionPrice;
47989
+ var init_vendorsCalculateSubscriptionPrice2 = __esm(() => {
47990
+ init_vendorsCalculateSubscriptionPrice();
47290
47991
  init_operations();
47291
47992
  init_tools();
47292
- args22 = {
47293
- request: VendorScanOutRequest$inboundSchema
47993
+ args23 = {
47994
+ request: CalculateSubscriptionPriceRequest$inboundSchema
47294
47995
  };
47295
- tool$vendorScansVendorScanOut = {
47296
- name: "vendor-scans-vendor-scan-out",
47297
- description: `Vendor scan out
47996
+ tool$vendorsCalculateSubscriptionPrice = {
47997
+ name: "vendors-calculate-subscription-price",
47998
+ description: `Calculate subscription price
47298
47999
 
47299
- It scans out vendor from facility`,
47300
- args: args22,
47301
- tool: async (client, args23, ctx) => {
47302
- const [result, apiCall] = await vendorScansVendorScanOut(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48000
+ Calculate subscription price`,
48001
+ args: args23,
48002
+ tool: async (client, args24, ctx) => {
48003
+ const [result, apiCall] = await vendorsCalculateSubscriptionPrice(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47303
48004
  if (!result.ok) {
47304
48005
  return {
47305
48006
  content: [{ type: "text", text: result.error.message }],
@@ -47312,24 +48013,24 @@ It scans out vendor from facility`,
47312
48013
  };
47313
48014
  });
47314
48015
 
47315
- // src/funcs/vendorsCheckDownloadCode.ts
47316
- function vendorsCheckDownloadCode(client, request, options) {
47317
- return new APIPromise($do25(client, request, options));
48016
+ // src/funcs/vendorScansVendorScanOut.ts
48017
+ function vendorScansVendorScanOut(client, request, options) {
48018
+ return new APIPromise($do26(client, request, options));
47318
48019
  }
47319
- async function $do25(client, request, options) {
47320
- const parsed = safeParse(request, (value) => CheckDownloadCodeRequest$outboundSchema.parse(value), "Input validation failed");
48020
+ async function $do26(client, request, options) {
48021
+ const parsed = safeParse(request, (value) => VendorScanOutRequest$outboundSchema.parse(value), "Input validation failed");
47321
48022
  if (!parsed.ok) {
47322
48023
  return [parsed, { status: "invalid" }];
47323
48024
  }
47324
48025
  const payload = parsed.value;
47325
48026
  const body = null;
47326
48027
  const pathParams = {
47327
- vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
48028
+ id: encodeSimple("id", payload.id, {
48029
+ explode: false,
48030
+ charEncoding: "percent"
48031
+ })
47328
48032
  };
47329
- const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/code")(pathParams);
47330
- const query = encodeFormQuery({
47331
- code: payload.code
47332
- });
48033
+ const path = pathToFunc("/vendor-scans/{id}/scan-out")(pathParams);
47333
48034
  const headers = new Headers(compactMap({
47334
48035
  Accept: "application/json"
47335
48036
  }));
@@ -47338,7 +48039,7 @@ async function $do25(client, request, options) {
47338
48039
  const context = {
47339
48040
  options: client._options,
47340
48041
  baseURL: options?.serverURL ?? client._baseURL ?? "",
47341
- operationID: "checkDownloadCode",
48042
+ operationID: "vendorScanOut",
47342
48043
  oAuth2Scopes: [],
47343
48044
  resolvedSecurity: requestSecurity,
47344
48045
  securitySource: client._options.security,
@@ -47347,11 +48048,10 @@ async function $do25(client, request, options) {
47347
48048
  };
47348
48049
  const requestRes = client._createRequest(context, {
47349
48050
  security: requestSecurity,
47350
- method: "GET",
48051
+ method: "POST",
47351
48052
  baseURL: options?.serverURL,
47352
48053
  path,
47353
48054
  headers,
47354
- query,
47355
48055
  body,
47356
48056
  userAgent: client._options.userAgent,
47357
48057
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -47373,13 +48073,13 @@ async function $do25(client, request, options) {
47373
48073
  const responseFields = {
47374
48074
  HttpMeta: { Response: response, Request: req }
47375
48075
  };
47376
- const [result] = await match(json(200, CheckDownloadCodeResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
48076
+ const [result] = await match(json(200, VendorScanOutVendorScanOutOk$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
47377
48077
  if (!result.ok) {
47378
48078
  return [result, { status: "complete", request: req, response }];
47379
48079
  }
47380
48080
  return [result, { status: "complete", request: req, response }];
47381
48081
  }
47382
- var init_vendorsCheckDownloadCode = __esm(() => {
48082
+ var init_vendorScansVendorScanOut = __esm(() => {
47383
48083
  init_encodings();
47384
48084
  init_matchers();
47385
48085
  init_primitives();
@@ -47391,23 +48091,23 @@ var init_vendorsCheckDownloadCode = __esm(() => {
47391
48091
  init_async();
47392
48092
  });
47393
48093
 
47394
- // src/mcp-server/tools/vendorsCheckDownloadCode.ts
47395
- var args23, tool$vendorsCheckDownloadCode;
47396
- var init_vendorsCheckDownloadCode2 = __esm(() => {
47397
- init_vendorsCheckDownloadCode();
48094
+ // src/mcp-server/tools/vendorScansVendorScanOut.ts
48095
+ var args24, tool$vendorScansVendorScanOut;
48096
+ var init_vendorScansVendorScanOut2 = __esm(() => {
48097
+ init_vendorScansVendorScanOut();
47398
48098
  init_operations();
47399
48099
  init_tools();
47400
- args23 = {
47401
- request: CheckDownloadCodeRequest$inboundSchema
48100
+ args24 = {
48101
+ request: VendorScanOutRequest$inboundSchema
47402
48102
  };
47403
- tool$vendorsCheckDownloadCode = {
47404
- name: "vendors-check-download-code",
47405
- description: `Check download code for vendor credential
48103
+ tool$vendorScansVendorScanOut = {
48104
+ name: "vendor-scans-vendor-scan-out",
48105
+ description: `Vendor scan out
47406
48106
 
47407
- It will check download code for vendor credential`,
47408
- args: args23,
47409
- tool: async (client, args24, ctx) => {
47410
- const [result, apiCall] = await vendorsCheckDownloadCode(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48107
+ It scans out vendor from facility`,
48108
+ args: args24,
48109
+ tool: async (client, args25, ctx) => {
48110
+ const [result, apiCall] = await vendorScansVendorScanOut(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47411
48111
  if (!result.ok) {
47412
48112
  return {
47413
48113
  content: [{ type: "text", text: result.error.message }],
@@ -47420,12 +48120,228 @@ It will check download code for vendor credential`,
47420
48120
  };
47421
48121
  });
47422
48122
 
47423
- // src/funcs/vendorsCreateNewVendorCredentialVersion.ts
47424
- function vendorsCreateNewVendorCredentialVersion(client, request, options) {
47425
- return new APIPromise($do26(client, request, options));
48123
+ // src/funcs/vendorsChangeSubscription.ts
48124
+ function vendorsChangeSubscription(client, request, options) {
48125
+ return new APIPromise($do27(client, request, options));
47426
48126
  }
47427
- async function $do26(client, request, options) {
47428
- const parsed = safeParse(request, (value) => CreateNewVendorCredentialVersionRequestBody$outboundSchema.parse(value), "Input validation failed");
48127
+ async function $do27(client, request, options) {
48128
+ const parsed = safeParse(request, (value) => ChangeSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
48129
+ if (!parsed.ok) {
48130
+ return [parsed, { status: "invalid" }];
48131
+ }
48132
+ const payload = parsed.value;
48133
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
48134
+ const pathParams = {
48135
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
48136
+ explode: false,
48137
+ charEncoding: "percent"
48138
+ })
48139
+ };
48140
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/subscription")(pathParams);
48141
+ const headers = new Headers(compactMap({
48142
+ "Content-Type": "application/json",
48143
+ Accept: "application/json"
48144
+ }));
48145
+ const securityInput = await extractSecurity(client._options.security);
48146
+ const requestSecurity = resolveGlobalSecurity(securityInput);
48147
+ const context = {
48148
+ options: client._options,
48149
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
48150
+ operationID: "changeSubscription",
48151
+ oAuth2Scopes: [],
48152
+ resolvedSecurity: requestSecurity,
48153
+ securitySource: client._options.security,
48154
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
48155
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
48156
+ };
48157
+ const requestRes = client._createRequest(context, {
48158
+ security: requestSecurity,
48159
+ method: "PUT",
48160
+ baseURL: options?.serverURL,
48161
+ path,
48162
+ headers,
48163
+ body,
48164
+ userAgent: client._options.userAgent,
48165
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
48166
+ }, options);
48167
+ if (!requestRes.ok) {
48168
+ return [requestRes, { status: "invalid" }];
48169
+ }
48170
+ const req = requestRes.value;
48171
+ const doResult = await client._do(req, {
48172
+ context,
48173
+ errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
48174
+ retryConfig: context.retryConfig,
48175
+ retryCodes: context.retryCodes
48176
+ });
48177
+ if (!doResult.ok) {
48178
+ return [doResult, { status: "request-error", request: req }];
48179
+ }
48180
+ const response = doResult.value;
48181
+ const responseFields = {
48182
+ HttpMeta: { Response: response, Request: req }
48183
+ };
48184
+ const [result] = await match(json(200, ChangeSubscriptionResponseBody$inboundSchema), jsonErr([400, 401, 403], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
48185
+ if (!result.ok) {
48186
+ return [result, { status: "complete", request: req, response }];
48187
+ }
48188
+ return [result, { status: "complete", request: req, response }];
48189
+ }
48190
+ var init_vendorsChangeSubscription = __esm(() => {
48191
+ init_encodings();
48192
+ init_matchers();
48193
+ init_primitives();
48194
+ init_schemas();
48195
+ init_security();
48196
+ init_url();
48197
+ init_errors2();
48198
+ init_operations();
48199
+ init_async();
48200
+ });
48201
+
48202
+ // src/mcp-server/tools/vendorsChangeSubscription.ts
48203
+ var args25, tool$vendorsChangeSubscription;
48204
+ var init_vendorsChangeSubscription2 = __esm(() => {
48205
+ init_vendorsChangeSubscription();
48206
+ init_operations();
48207
+ init_tools();
48208
+ args25 = {
48209
+ request: ChangeSubscriptionRequest$inboundSchema
48210
+ };
48211
+ tool$vendorsChangeSubscription = {
48212
+ name: "vendors-change-subscription",
48213
+ description: `Change subscription
48214
+
48215
+ Calculate subscription price`,
48216
+ args: args25,
48217
+ tool: async (client, args26, ctx) => {
48218
+ const [result, apiCall] = await vendorsChangeSubscription(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48219
+ if (!result.ok) {
48220
+ return {
48221
+ content: [{ type: "text", text: result.error.message }],
48222
+ isError: true
48223
+ };
48224
+ }
48225
+ const value = result.value;
48226
+ return formatResult(value, apiCall);
48227
+ }
48228
+ };
48229
+ });
48230
+
48231
+ // src/funcs/vendorsCheckDownloadCode.ts
48232
+ function vendorsCheckDownloadCode(client, request, options) {
48233
+ return new APIPromise($do28(client, request, options));
48234
+ }
48235
+ async function $do28(client, request, options) {
48236
+ const parsed = safeParse(request, (value) => CheckDownloadCodeRequest$outboundSchema.parse(value), "Input validation failed");
48237
+ if (!parsed.ok) {
48238
+ return [parsed, { status: "invalid" }];
48239
+ }
48240
+ const payload = parsed.value;
48241
+ const body = null;
48242
+ const pathParams = {
48243
+ vendor_credential_id: encodeSimple("vendor_credential_id", payload.vendor_credential_id, { explode: false, charEncoding: "percent" })
48244
+ };
48245
+ const path = pathToFunc("/vendors/credentials/{vendor_credential_id}/code")(pathParams);
48246
+ const query = encodeFormQuery({
48247
+ code: payload.code
48248
+ });
48249
+ const headers = new Headers(compactMap({
48250
+ Accept: "application/json"
48251
+ }));
48252
+ const securityInput = await extractSecurity(client._options.security);
48253
+ const requestSecurity = resolveGlobalSecurity(securityInput);
48254
+ const context = {
48255
+ options: client._options,
48256
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
48257
+ operationID: "checkDownloadCode",
48258
+ oAuth2Scopes: [],
48259
+ resolvedSecurity: requestSecurity,
48260
+ securitySource: client._options.security,
48261
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
48262
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
48263
+ };
48264
+ const requestRes = client._createRequest(context, {
48265
+ security: requestSecurity,
48266
+ method: "GET",
48267
+ baseURL: options?.serverURL,
48268
+ path,
48269
+ headers,
48270
+ query,
48271
+ body,
48272
+ userAgent: client._options.userAgent,
48273
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
48274
+ }, options);
48275
+ if (!requestRes.ok) {
48276
+ return [requestRes, { status: "invalid" }];
48277
+ }
48278
+ const req = requestRes.value;
48279
+ const doResult = await client._do(req, {
48280
+ context,
48281
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
48282
+ retryConfig: context.retryConfig,
48283
+ retryCodes: context.retryCodes
48284
+ });
48285
+ if (!doResult.ok) {
48286
+ return [doResult, { status: "request-error", request: req }];
48287
+ }
48288
+ const response = doResult.value;
48289
+ const responseFields = {
48290
+ HttpMeta: { Response: response, Request: req }
48291
+ };
48292
+ const [result] = await match(json(200, CheckDownloadCodeResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
48293
+ if (!result.ok) {
48294
+ return [result, { status: "complete", request: req, response }];
48295
+ }
48296
+ return [result, { status: "complete", request: req, response }];
48297
+ }
48298
+ var init_vendorsCheckDownloadCode = __esm(() => {
48299
+ init_encodings();
48300
+ init_matchers();
48301
+ init_primitives();
48302
+ init_schemas();
48303
+ init_security();
48304
+ init_url();
48305
+ init_errors2();
48306
+ init_operations();
48307
+ init_async();
48308
+ });
48309
+
48310
+ // src/mcp-server/tools/vendorsCheckDownloadCode.ts
48311
+ var args26, tool$vendorsCheckDownloadCode;
48312
+ var init_vendorsCheckDownloadCode2 = __esm(() => {
48313
+ init_vendorsCheckDownloadCode();
48314
+ init_operations();
48315
+ init_tools();
48316
+ args26 = {
48317
+ request: CheckDownloadCodeRequest$inboundSchema
48318
+ };
48319
+ tool$vendorsCheckDownloadCode = {
48320
+ name: "vendors-check-download-code",
48321
+ description: `Check download code for vendor credential
48322
+
48323
+ It will check download code for vendor credential`,
48324
+ args: args26,
48325
+ tool: async (client, args27, ctx) => {
48326
+ const [result, apiCall] = await vendorsCheckDownloadCode(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48327
+ if (!result.ok) {
48328
+ return {
48329
+ content: [{ type: "text", text: result.error.message }],
48330
+ isError: true
48331
+ };
48332
+ }
48333
+ const value = result.value;
48334
+ return formatResult(value, apiCall);
48335
+ }
48336
+ };
48337
+ });
48338
+
48339
+ // src/funcs/vendorsCreateNewVendorCredentialVersion.ts
48340
+ function vendorsCreateNewVendorCredentialVersion(client, request, options) {
48341
+ return new APIPromise($do29(client, request, options));
48342
+ }
48343
+ async function $do29(client, request, options) {
48344
+ const parsed = safeParse(request, (value) => CreateNewVendorCredentialVersionRequestBody$outboundSchema.parse(value), "Input validation failed");
47429
48345
  if (!parsed.ok) {
47430
48346
  return [parsed, { status: "invalid" }];
47431
48347
  }
@@ -47494,12 +48410,12 @@ var init_vendorsCreateNewVendorCredentialVersion = __esm(() => {
47494
48410
  });
47495
48411
 
47496
48412
  // src/mcp-server/tools/vendorsCreateNewVendorCredentialVersion.ts
47497
- var args24, tool$vendorsCreateNewVendorCredentialVersion;
48413
+ var args27, tool$vendorsCreateNewVendorCredentialVersion;
47498
48414
  var init_vendorsCreateNewVendorCredentialVersion2 = __esm(() => {
47499
48415
  init_vendorsCreateNewVendorCredentialVersion();
47500
48416
  init_operations();
47501
48417
  init_tools();
47502
- args24 = {
48418
+ args27 = {
47503
48419
  request: CreateNewVendorCredentialVersionRequestBody$inboundSchema
47504
48420
  };
47505
48421
  tool$vendorsCreateNewVendorCredentialVersion = {
@@ -47507,9 +48423,9 @@ var init_vendorsCreateNewVendorCredentialVersion2 = __esm(() => {
47507
48423
  description: `Create new vendor credential version
47508
48424
 
47509
48425
  It will submit vendor credential`,
47510
- args: args24,
47511
- tool: async (client, args25, ctx) => {
47512
- const [result, apiCall] = await vendorsCreateNewVendorCredentialVersion(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48426
+ args: args27,
48427
+ tool: async (client, args28, ctx) => {
48428
+ const [result, apiCall] = await vendorsCreateNewVendorCredentialVersion(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47513
48429
  if (!result.ok) {
47514
48430
  return {
47515
48431
  content: [{ type: "text", text: result.error.message }],
@@ -47524,9 +48440,9 @@ It will submit vendor credential`,
47524
48440
 
47525
48441
  // src/funcs/vendorsCreateOrUpdateBcr.ts
47526
48442
  function vendorsCreateOrUpdateBcr(client, request, options) {
47527
- return new APIPromise($do27(client, request, options));
48443
+ return new APIPromise($do30(client, request, options));
47528
48444
  }
47529
- async function $do27(client, request, options) {
48445
+ async function $do30(client, request, options) {
47530
48446
  const parsed = safeParse(request, (value) => CreateOrUpdateBcrRequest$outboundSchema.parse(value), "Input validation failed");
47531
48447
  if (!parsed.ok) {
47532
48448
  return [parsed, { status: "invalid" }];
@@ -47600,12 +48516,12 @@ var init_vendorsCreateOrUpdateBcr = __esm(() => {
47600
48516
  });
47601
48517
 
47602
48518
  // src/mcp-server/tools/vendorsCreateOrUpdateBcr.ts
47603
- var args25, tool$vendorsCreateOrUpdateBcr;
48519
+ var args28, tool$vendorsCreateOrUpdateBcr;
47604
48520
  var init_vendorsCreateOrUpdateBcr2 = __esm(() => {
47605
48521
  init_vendorsCreateOrUpdateBcr();
47606
48522
  init_operations();
47607
48523
  init_tools();
47608
- args25 = {
48524
+ args28 = {
47609
48525
  request: CreateOrUpdateBcrRequest$inboundSchema
47610
48526
  };
47611
48527
  tool$vendorsCreateOrUpdateBcr = {
@@ -47613,9 +48529,9 @@ var init_vendorsCreateOrUpdateBcr2 = __esm(() => {
47613
48529
  description: `Create or update BackgroundCheckResults
47614
48530
 
47615
48531
  It will create or update BackgroundCheckResults`,
47616
- args: args25,
47617
- tool: async (client, args26, ctx) => {
47618
- const [result, apiCall] = await vendorsCreateOrUpdateBcr(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48532
+ args: args28,
48533
+ tool: async (client, args29, ctx) => {
48534
+ const [result, apiCall] = await vendorsCreateOrUpdateBcr(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47619
48535
  if (!result.ok) {
47620
48536
  return {
47621
48537
  content: [{ type: "text", text: result.error.message }],
@@ -47630,9 +48546,9 @@ It will create or update BackgroundCheckResults`,
47630
48546
 
47631
48547
  // src/funcs/vendorsCreateVendorCompany.ts
47632
48548
  function vendorsCreateVendorCompany(client, request, options) {
47633
- return new APIPromise($do28(client, request, options));
48549
+ return new APIPromise($do31(client, request, options));
47634
48550
  }
47635
- async function $do28(client, request, options) {
48551
+ async function $do31(client, request, options) {
47636
48552
  const parsed = safeParse(request, (value) => CreateVendorCompanyRequest$outboundSchema.parse(value), "Input validation failed");
47637
48553
  if (!parsed.ok) {
47638
48554
  return [parsed, { status: "invalid" }];
@@ -47708,12 +48624,12 @@ var init_vendorsCreateVendorCompany = __esm(() => {
47708
48624
  });
47709
48625
 
47710
48626
  // src/mcp-server/tools/vendorsCreateVendorCompany.ts
47711
- var args26, tool$vendorsCreateVendorCompany;
48627
+ var args29, tool$vendorsCreateVendorCompany;
47712
48628
  var init_vendorsCreateVendorCompany2 = __esm(() => {
47713
48629
  init_vendorsCreateVendorCompany();
47714
48630
  init_operations();
47715
48631
  init_tools();
47716
- args26 = {
48632
+ args29 = {
47717
48633
  request: CreateVendorCompanyRequest$inboundSchema
47718
48634
  };
47719
48635
  tool$vendorsCreateVendorCompany = {
@@ -47721,9 +48637,9 @@ var init_vendorsCreateVendorCompany2 = __esm(() => {
47721
48637
  description: `Create vendor company
47722
48638
 
47723
48639
  Create vendor company`,
47724
- args: args26,
47725
- tool: async (client, args27, ctx) => {
47726
- const [result, apiCall] = await vendorsCreateVendorCompany(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48640
+ args: args29,
48641
+ tool: async (client, args30, ctx) => {
48642
+ const [result, apiCall] = await vendorsCreateVendorCompany(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47727
48643
  if (!result.ok) {
47728
48644
  return {
47729
48645
  content: [{ type: "text", text: result.error.message }],
@@ -47738,9 +48654,9 @@ Create vendor company`,
47738
48654
 
47739
48655
  // src/funcs/vendorsCreateVendorRegistration.ts
47740
48656
  function vendorsCreateVendorRegistration(client, request, options) {
47741
- return new APIPromise($do29(client, request, options));
48657
+ return new APIPromise($do32(client, request, options));
47742
48658
  }
47743
- async function $do29(client, request, options) {
48659
+ async function $do32(client, request, options) {
47744
48660
  const parsed = safeParse(request, (value) => CreateVendorRegistrationRequestBody$outboundSchema.parse(value), "Input validation failed");
47745
48661
  if (!parsed.ok) {
47746
48662
  return [parsed, { status: "invalid" }];
@@ -47807,12 +48723,12 @@ var init_vendorsCreateVendorRegistration = __esm(() => {
47807
48723
  });
47808
48724
 
47809
48725
  // src/mcp-server/tools/vendorsCreateVendorRegistration.ts
47810
- var args27, tool$vendorsCreateVendorRegistration;
48726
+ var args30, tool$vendorsCreateVendorRegistration;
47811
48727
  var init_vendorsCreateVendorRegistration2 = __esm(() => {
47812
48728
  init_vendorsCreateVendorRegistration();
47813
48729
  init_operations();
47814
48730
  init_tools();
47815
- args27 = {
48731
+ args30 = {
47816
48732
  request: CreateVendorRegistrationRequestBody$inboundSchema
47817
48733
  };
47818
48734
  tool$vendorsCreateVendorRegistration = {
@@ -47820,9 +48736,9 @@ var init_vendorsCreateVendorRegistration2 = __esm(() => {
47820
48736
  description: `Create vendor registration
47821
48737
 
47822
48738
  Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.`,
47823
- args: args27,
47824
- tool: async (client, args28, ctx) => {
47825
- const [result, apiCall] = await vendorsCreateVendorRegistration(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48739
+ args: args30,
48740
+ tool: async (client, args31, ctx) => {
48741
+ const [result, apiCall] = await vendorsCreateVendorRegistration(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47826
48742
  if (!result.ok) {
47827
48743
  return {
47828
48744
  content: [{ type: "text", text: result.error.message }],
@@ -47837,9 +48753,9 @@ Create an initial vendor registration. Once successful, the vendor will be able
47837
48753
 
47838
48754
  // src/funcs/vendorsDeclineVendorCredential.ts
47839
48755
  function vendorsDeclineVendorCredential(client, request, options) {
47840
- return new APIPromise($do30(client, request, options));
48756
+ return new APIPromise($do33(client, request, options));
47841
48757
  }
47842
- async function $do30(client, request, options) {
48758
+ async function $do33(client, request, options) {
47843
48759
  const parsed = safeParse(request, (value) => DeclineVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
47844
48760
  if (!parsed.ok) {
47845
48761
  return [parsed, { status: "invalid" }];
@@ -47912,12 +48828,12 @@ var init_vendorsDeclineVendorCredential = __esm(() => {
47912
48828
  });
47913
48829
 
47914
48830
  // src/mcp-server/tools/vendorsDeclineVendorCredential.ts
47915
- var args28, tool$vendorsDeclineVendorCredential;
48831
+ var args31, tool$vendorsDeclineVendorCredential;
47916
48832
  var init_vendorsDeclineVendorCredential2 = __esm(() => {
47917
48833
  init_vendorsDeclineVendorCredential();
47918
48834
  init_operations();
47919
48835
  init_tools();
47920
- args28 = {
48836
+ args31 = {
47921
48837
  request: DeclineVendorCredentialRequest$inboundSchema
47922
48838
  };
47923
48839
  tool$vendorsDeclineVendorCredential = {
@@ -47925,9 +48841,9 @@ var init_vendorsDeclineVendorCredential2 = __esm(() => {
47925
48841
  description: `Decline vendor credential
47926
48842
 
47927
48843
  It will decline vendor credential`,
47928
- args: args28,
47929
- tool: async (client, args29, ctx) => {
47930
- const [result, apiCall] = await vendorsDeclineVendorCredential(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48844
+ args: args31,
48845
+ tool: async (client, args32, ctx) => {
48846
+ const [result, apiCall] = await vendorsDeclineVendorCredential(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47931
48847
  if (!result.ok) {
47932
48848
  return {
47933
48849
  content: [{ type: "text", text: result.error.message }],
@@ -47942,9 +48858,9 @@ It will decline vendor credential`,
47942
48858
 
47943
48859
  // src/funcs/vendorsDeleteVendorCredentialFile.ts
47944
48860
  function vendorsDeleteVendorCredentialFile(client, request, options) {
47945
- return new APIPromise($do31(client, request, options));
48861
+ return new APIPromise($do34(client, request, options));
47946
48862
  }
47947
- async function $do31(client, request, options) {
48863
+ async function $do34(client, request, options) {
47948
48864
  const parsed = safeParse(request, (value) => DeleteVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
47949
48865
  if (!parsed.ok) {
47950
48866
  return [parsed, { status: "invalid" }];
@@ -48021,22 +48937,130 @@ var init_vendorsDeleteVendorCredentialFile = __esm(() => {
48021
48937
  });
48022
48938
 
48023
48939
  // src/mcp-server/tools/vendorsDeleteVendorCredentialFile.ts
48024
- var args29, tool$vendorsDeleteVendorCredentialFile;
48940
+ var args32, tool$vendorsDeleteVendorCredentialFile;
48025
48941
  var init_vendorsDeleteVendorCredentialFile2 = __esm(() => {
48026
48942
  init_vendorsDeleteVendorCredentialFile();
48027
48943
  init_operations();
48028
48944
  init_tools();
48029
- args29 = {
48030
- request: DeleteVendorCredentialFileRequest$inboundSchema
48945
+ args32 = {
48946
+ request: DeleteVendorCredentialFileRequest$inboundSchema
48947
+ };
48948
+ tool$vendorsDeleteVendorCredentialFile = {
48949
+ name: "vendors-delete-vendor-credential-file",
48950
+ description: `Delete vendor credential file
48951
+
48952
+ It will delete the vendor credential file`,
48953
+ args: args32,
48954
+ tool: async (client, args33, ctx) => {
48955
+ const [result, apiCall] = await vendorsDeleteVendorCredentialFile(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48956
+ if (!result.ok) {
48957
+ return {
48958
+ content: [{ type: "text", text: result.error.message }],
48959
+ isError: true
48960
+ };
48961
+ }
48962
+ const value = result.value;
48963
+ return formatResult(value, apiCall);
48964
+ }
48965
+ };
48966
+ });
48967
+
48968
+ // src/funcs/vendorsDeleteVendorManagedByCompany.ts
48969
+ function vendorsDeleteVendorManagedByCompany(client, request, options) {
48970
+ return new APIPromise($do35(client, request, options));
48971
+ }
48972
+ async function $do35(client, request, options) {
48973
+ const parsed = safeParse(request, (value) => DeleteVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
48974
+ if (!parsed.ok) {
48975
+ return [parsed, { status: "invalid" }];
48976
+ }
48977
+ const payload = parsed.value;
48978
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
48979
+ const pathParams = {
48980
+ vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
48981
+ explode: false,
48982
+ charEncoding: "percent"
48983
+ })
48984
+ };
48985
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/managed-by-companies")(pathParams);
48986
+ const headers = new Headers(compactMap({
48987
+ "Content-Type": "application/json",
48988
+ Accept: "application/json"
48989
+ }));
48990
+ const securityInput = await extractSecurity(client._options.security);
48991
+ const requestSecurity = resolveGlobalSecurity(securityInput);
48992
+ const context = {
48993
+ options: client._options,
48994
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
48995
+ operationID: "deleteVendorManagedByCompany",
48996
+ oAuth2Scopes: [],
48997
+ resolvedSecurity: requestSecurity,
48998
+ securitySource: client._options.security,
48999
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
49000
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
49001
+ };
49002
+ const requestRes = client._createRequest(context, {
49003
+ security: requestSecurity,
49004
+ method: "DELETE",
49005
+ baseURL: options?.serverURL,
49006
+ path,
49007
+ headers,
49008
+ body,
49009
+ userAgent: client._options.userAgent,
49010
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
49011
+ }, options);
49012
+ if (!requestRes.ok) {
49013
+ return [requestRes, { status: "invalid" }];
49014
+ }
49015
+ const req = requestRes.value;
49016
+ const doResult = await client._do(req, {
49017
+ context,
49018
+ errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
49019
+ retryConfig: context.retryConfig,
49020
+ retryCodes: context.retryCodes
49021
+ });
49022
+ if (!doResult.ok) {
49023
+ return [doResult, { status: "request-error", request: req }];
49024
+ }
49025
+ const response = doResult.value;
49026
+ const responseFields = {
49027
+ HttpMeta: { Response: response, Request: req }
49028
+ };
49029
+ const [result] = await match(json(200, DeleteVendorManagedByCompanyDeleteVendorManagedByCompanyOk$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
49030
+ if (!result.ok) {
49031
+ return [result, { status: "complete", request: req, response }];
49032
+ }
49033
+ return [result, { status: "complete", request: req, response }];
49034
+ }
49035
+ var init_vendorsDeleteVendorManagedByCompany = __esm(() => {
49036
+ init_encodings();
49037
+ init_matchers();
49038
+ init_primitives();
49039
+ init_schemas();
49040
+ init_security();
49041
+ init_url();
49042
+ init_errors2();
49043
+ init_operations();
49044
+ init_async();
49045
+ });
49046
+
49047
+ // src/mcp-server/tools/vendorsDeleteVendorManagedByCompany.ts
49048
+ var args33, tool$vendorsDeleteVendorManagedByCompany;
49049
+ var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
49050
+ init_vendorsDeleteVendorManagedByCompany();
49051
+ init_operations();
49052
+ init_tools();
49053
+ args33 = {
49054
+ request: DeleteVendorManagedByCompanyRequest$inboundSchema
48031
49055
  };
48032
- tool$vendorsDeleteVendorCredentialFile = {
48033
- name: "vendors-delete-vendor-credential-file",
48034
- description: `Delete vendor credential file
49056
+ tool$vendorsDeleteVendorManagedByCompany = {
49057
+ name: "vendors-delete-vendor-managed-by-company",
49058
+ description: `Delete vendor managed by company
48035
49059
 
48036
- It will delete the vendor credential file`,
48037
- args: args29,
48038
- tool: async (client, args30, ctx) => {
48039
- const [result, apiCall] = await vendorsDeleteVendorCredentialFile(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49060
+ It will delete the vendor managed by company`,
49061
+ args: args33,
49062
+ tool: async (client, args34, ctx) => {
49063
+ const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48040
49064
  if (!result.ok) {
48041
49065
  return {
48042
49066
  content: [{ type: "text", text: result.error.message }],
@@ -48049,26 +49073,25 @@ It will delete the vendor credential file`,
48049
49073
  };
48050
49074
  });
48051
49075
 
48052
- // src/funcs/vendorsDeleteVendorManagedByCompany.ts
48053
- function vendorsDeleteVendorManagedByCompany(client, request, options) {
48054
- return new APIPromise($do32(client, request, options));
49076
+ // src/funcs/vendorsExpediteTimeRemaining.ts
49077
+ function vendorsExpediteTimeRemaining(client, request, options) {
49078
+ return new APIPromise($do36(client, request, options));
48055
49079
  }
48056
- async function $do32(client, request, options) {
48057
- const parsed = safeParse(request, (value) => DeleteVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
49080
+ async function $do36(client, request, options) {
49081
+ const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
48058
49082
  if (!parsed.ok) {
48059
49083
  return [parsed, { status: "invalid" }];
48060
49084
  }
48061
49085
  const payload = parsed.value;
48062
- const body = encodeJSON("body", payload.RequestBody, { explode: true });
49086
+ const body = null;
48063
49087
  const pathParams = {
48064
49088
  vendor_id_or_me: encodeSimple("vendor_id_or_me", payload.vendor_id_or_me, {
48065
49089
  explode: false,
48066
49090
  charEncoding: "percent"
48067
49091
  })
48068
49092
  };
48069
- const path = pathToFunc("/vendors/{vendor_id_or_me}/managed-by-companies")(pathParams);
49093
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/expedite-time-remaining")(pathParams);
48070
49094
  const headers = new Headers(compactMap({
48071
- "Content-Type": "application/json",
48072
49095
  Accept: "application/json"
48073
49096
  }));
48074
49097
  const securityInput = await extractSecurity(client._options.security);
@@ -48076,7 +49099,7 @@ async function $do32(client, request, options) {
48076
49099
  const context = {
48077
49100
  options: client._options,
48078
49101
  baseURL: options?.serverURL ?? client._baseURL ?? "",
48079
- operationID: "deleteVendorManagedByCompany",
49102
+ operationID: "expediteTimeRemaining",
48080
49103
  oAuth2Scopes: [],
48081
49104
  resolvedSecurity: requestSecurity,
48082
49105
  securitySource: client._options.security,
@@ -48085,7 +49108,7 @@ async function $do32(client, request, options) {
48085
49108
  };
48086
49109
  const requestRes = client._createRequest(context, {
48087
49110
  security: requestSecurity,
48088
- method: "DELETE",
49111
+ method: "GET",
48089
49112
  baseURL: options?.serverURL,
48090
49113
  path,
48091
49114
  headers,
@@ -48110,13 +49133,13 @@ async function $do32(client, request, options) {
48110
49133
  const responseFields = {
48111
49134
  HttpMeta: { Response: response, Request: req }
48112
49135
  };
48113
- const [result] = await match(json(200, DeleteVendorManagedByCompanyDeleteVendorManagedByCompanyOk$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
49136
+ const [result] = await match(json(200, ExpediteTimeRemainingGetExpediteTimeRemainingOk$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
48114
49137
  if (!result.ok) {
48115
49138
  return [result, { status: "complete", request: req, response }];
48116
49139
  }
48117
49140
  return [result, { status: "complete", request: req, response }];
48118
49141
  }
48119
- var init_vendorsDeleteVendorManagedByCompany = __esm(() => {
49142
+ var init_vendorsExpediteTimeRemaining = __esm(() => {
48120
49143
  init_encodings();
48121
49144
  init_matchers();
48122
49145
  init_primitives();
@@ -48128,23 +49151,23 @@ var init_vendorsDeleteVendorManagedByCompany = __esm(() => {
48128
49151
  init_async();
48129
49152
  });
48130
49153
 
48131
- // src/mcp-server/tools/vendorsDeleteVendorManagedByCompany.ts
48132
- var args30, tool$vendorsDeleteVendorManagedByCompany;
48133
- var init_vendorsDeleteVendorManagedByCompany2 = __esm(() => {
48134
- init_vendorsDeleteVendorManagedByCompany();
49154
+ // src/mcp-server/tools/vendorsExpediteTimeRemaining.ts
49155
+ var args34, tool$vendorsExpediteTimeRemaining;
49156
+ var init_vendorsExpediteTimeRemaining2 = __esm(() => {
49157
+ init_vendorsExpediteTimeRemaining();
48135
49158
  init_operations();
48136
49159
  init_tools();
48137
- args30 = {
48138
- request: DeleteVendorManagedByCompanyRequest$inboundSchema
49160
+ args34 = {
49161
+ request: ExpediteTimeRemainingRequest$inboundSchema
48139
49162
  };
48140
- tool$vendorsDeleteVendorManagedByCompany = {
48141
- name: "vendors-delete-vendor-managed-by-company",
48142
- description: `Delete vendor managed by company
49163
+ tool$vendorsExpediteTimeRemaining = {
49164
+ name: "vendors-expedite-time-remaining",
49165
+ description: `Expedite time remaining
48143
49166
 
48144
- It will delete the vendor managed by company`,
48145
- args: args30,
48146
- tool: async (client, args31, ctx) => {
48147
- const [result, apiCall] = await vendorsDeleteVendorManagedByCompany(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49167
+ For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.`,
49168
+ args: args34,
49169
+ tool: async (client, args35, ctx) => {
49170
+ const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48148
49171
  if (!result.ok) {
48149
49172
  return {
48150
49173
  content: [{ type: "text", text: result.error.message }],
@@ -48157,12 +49180,12 @@ It will delete the vendor managed by company`,
48157
49180
  };
48158
49181
  });
48159
49182
 
48160
- // src/funcs/vendorsExpediteTimeRemaining.ts
48161
- function vendorsExpediteTimeRemaining(client, request, options) {
48162
- return new APIPromise($do33(client, request, options));
49183
+ // src/funcs/vendorsGetSubscription.ts
49184
+ function vendorsGetSubscription(client, request, options) {
49185
+ return new APIPromise($do37(client, request, options));
48163
49186
  }
48164
- async function $do33(client, request, options) {
48165
- const parsed = safeParse(request, (value) => ExpediteTimeRemainingRequest$outboundSchema.parse(value), "Input validation failed");
49187
+ async function $do37(client, request, options) {
49188
+ const parsed = safeParse(request, (value) => GetSubscriptionRequest$outboundSchema.parse(value), "Input validation failed");
48166
49189
  if (!parsed.ok) {
48167
49190
  return [parsed, { status: "invalid" }];
48168
49191
  }
@@ -48174,7 +49197,10 @@ async function $do33(client, request, options) {
48174
49197
  charEncoding: "percent"
48175
49198
  })
48176
49199
  };
48177
- const path = pathToFunc("/vendors/{vendor_id_or_me}/expedite-time-remaining")(pathParams);
49200
+ const path = pathToFunc("/vendors/{vendor_id_or_me}/subscription")(pathParams);
49201
+ const query = encodeFormQuery({
49202
+ expand: payload.expand
49203
+ }, { explode: false });
48178
49204
  const headers = new Headers(compactMap({
48179
49205
  Accept: "application/json"
48180
49206
  }));
@@ -48183,7 +49209,7 @@ async function $do33(client, request, options) {
48183
49209
  const context = {
48184
49210
  options: client._options,
48185
49211
  baseURL: options?.serverURL ?? client._baseURL ?? "",
48186
- operationID: "expediteTimeRemaining",
49212
+ operationID: "getSubscription",
48187
49213
  oAuth2Scopes: [],
48188
49214
  resolvedSecurity: requestSecurity,
48189
49215
  securitySource: client._options.security,
@@ -48196,6 +49222,7 @@ async function $do33(client, request, options) {
48196
49222
  baseURL: options?.serverURL,
48197
49223
  path,
48198
49224
  headers,
49225
+ query,
48199
49226
  body,
48200
49227
  userAgent: client._options.userAgent,
48201
49228
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
@@ -48217,13 +49244,13 @@ async function $do33(client, request, options) {
48217
49244
  const responseFields = {
48218
49245
  HttpMeta: { Response: response, Request: req }
48219
49246
  };
48220
- const [result] = await match(json(200, ExpediteTimeRemainingGetExpediteTimeRemainingOk$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
49247
+ const [result] = await match(json(200, GetSubscriptionResponseBody$inboundSchema), jsonErr([400, 401, 403, 404], ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
48221
49248
  if (!result.ok) {
48222
49249
  return [result, { status: "complete", request: req, response }];
48223
49250
  }
48224
49251
  return [result, { status: "complete", request: req, response }];
48225
49252
  }
48226
- var init_vendorsExpediteTimeRemaining = __esm(() => {
49253
+ var init_vendorsGetSubscription = __esm(() => {
48227
49254
  init_encodings();
48228
49255
  init_matchers();
48229
49256
  init_primitives();
@@ -48235,23 +49262,27 @@ var init_vendorsExpediteTimeRemaining = __esm(() => {
48235
49262
  init_async();
48236
49263
  });
48237
49264
 
48238
- // src/mcp-server/tools/vendorsExpediteTimeRemaining.ts
48239
- var args31, tool$vendorsExpediteTimeRemaining;
48240
- var init_vendorsExpediteTimeRemaining2 = __esm(() => {
48241
- init_vendorsExpediteTimeRemaining();
49265
+ // src/mcp-server/tools/vendorsGetSubscription.ts
49266
+ var args35, tool$vendorsGetSubscription;
49267
+ var init_vendorsGetSubscription2 = __esm(() => {
49268
+ init_vendorsGetSubscription();
48242
49269
  init_operations();
48243
49270
  init_tools();
48244
- args31 = {
48245
- request: ExpediteTimeRemainingRequest$inboundSchema
49271
+ args35 = {
49272
+ request: GetSubscriptionRequest$inboundSchema
48246
49273
  };
48247
- tool$vendorsExpediteTimeRemaining = {
48248
- name: "vendors-expedite-time-remaining",
48249
- description: `Expedite time remaining
49274
+ tool$vendorsGetSubscription = {
49275
+ name: "vendors-get-subscription",
49276
+ description: `Vendor subscription
48250
49277
 
48251
- For vendors who have a paid 24-hour expedite credentials invoice, get the remaining time (in seconds) for which submitted credentials will be expedited.`,
48252
- args: args31,
48253
- tool: async (client, args32, ctx) => {
48254
- const [result, apiCall] = await vendorsExpediteTimeRemaining(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49278
+ Get vendor subscription
49279
+
49280
+ Available \`expand\` scopes are:
49281
+
49282
+ subscription.expedited_offer`,
49283
+ args: args35,
49284
+ tool: async (client, args36, ctx) => {
49285
+ const [result, apiCall] = await vendorsGetSubscription(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48255
49286
  if (!result.ok) {
48256
49287
  return {
48257
49288
  content: [{ type: "text", text: result.error.message }],
@@ -48266,9 +49297,9 @@ For vendors who have a paid 24-hour expedite credentials invoice, get the remain
48266
49297
 
48267
49298
  // src/funcs/vendorsGetVendorCredentialDetails.ts
48268
49299
  function vendorsGetVendorCredentialDetails(client, request, options) {
48269
- return new APIPromise($do34(client, request, options));
49300
+ return new APIPromise($do38(client, request, options));
48270
49301
  }
48271
- async function $do34(client, request, options) {
49302
+ async function $do38(client, request, options) {
48272
49303
  const parsed = safeParse(request, (value) => GetVendorCredentialDetailsRequest$outboundSchema.parse(value), "Input validation failed");
48273
49304
  if (!parsed.ok) {
48274
49305
  return [parsed, { status: "invalid" }];
@@ -48351,12 +49382,12 @@ var init_vendorsGetVendorCredentialDetails = __esm(() => {
48351
49382
  });
48352
49383
 
48353
49384
  // src/mcp-server/tools/vendorsGetVendorCredentialDetails.ts
48354
- var args32, tool$vendorsGetVendorCredentialDetails;
49385
+ var args36, tool$vendorsGetVendorCredentialDetails;
48355
49386
  var init_vendorsGetVendorCredentialDetails2 = __esm(() => {
48356
49387
  init_vendorsGetVendorCredentialDetails();
48357
49388
  init_operations();
48358
49389
  init_tools();
48359
- args32 = {
49390
+ args36 = {
48360
49391
  request: GetVendorCredentialDetailsRequest$inboundSchema
48361
49392
  };
48362
49393
  tool$vendorsGetVendorCredentialDetails = {
@@ -48382,9 +49413,9 @@ Available \`expand\` scopes are:
48382
49413
  - vendor_credential.credential_variants
48383
49414
  - vendor_credential.targets_chop
48384
49415
  - vendor_credential.total_pending_credentials`,
48385
- args: args32,
48386
- tool: async (client, args33, ctx) => {
48387
- const [result, apiCall] = await vendorsGetVendorCredentialDetails(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49416
+ args: args36,
49417
+ tool: async (client, args37, ctx) => {
49418
+ const [result, apiCall] = await vendorsGetVendorCredentialDetails(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48388
49419
  if (!result.ok) {
48389
49420
  return {
48390
49421
  content: [{ type: "text", text: result.error.message }],
@@ -48399,9 +49430,9 @@ Available \`expand\` scopes are:
48399
49430
 
48400
49431
  // src/funcs/vendorsGetVendorCredentialFile.ts
48401
49432
  function vendorsGetVendorCredentialFile(client, request, options) {
48402
- return new APIPromise($do35(client, request, options));
49433
+ return new APIPromise($do39(client, request, options));
48403
49434
  }
48404
- async function $do35(client, request, options) {
49435
+ async function $do39(client, request, options) {
48405
49436
  const parsed = safeParse(request, (value) => GetVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
48406
49437
  if (!parsed.ok) {
48407
49438
  return [parsed, { status: "invalid" }];
@@ -48482,12 +49513,12 @@ var init_vendorsGetVendorCredentialFile = __esm(() => {
48482
49513
  });
48483
49514
 
48484
49515
  // src/mcp-server/tools/vendorsGetVendorCredentialFile.ts
48485
- var args33, tool$vendorsGetVendorCredentialFile;
49516
+ var args37, tool$vendorsGetVendorCredentialFile;
48486
49517
  var init_vendorsGetVendorCredentialFile2 = __esm(() => {
48487
49518
  init_vendorsGetVendorCredentialFile();
48488
49519
  init_operations();
48489
49520
  init_tools();
48490
- args33 = {
49521
+ args37 = {
48491
49522
  request: GetVendorCredentialFileRequest$inboundSchema
48492
49523
  };
48493
49524
  tool$vendorsGetVendorCredentialFile = {
@@ -48500,9 +49531,9 @@ Available \`expand\` scopes are:
48500
49531
 
48501
49532
  - vendor_credential_file.vendor_credential
48502
49533
  - vendor_credential_file.credential_document`,
48503
- args: args33,
48504
- tool: async (client, args34, ctx) => {
48505
- const [result, apiCall] = await vendorsGetVendorCredentialFile(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49534
+ args: args37,
49535
+ tool: async (client, args38, ctx) => {
49536
+ const [result, apiCall] = await vendorsGetVendorCredentialFile(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48506
49537
  if (!result.ok) {
48507
49538
  return {
48508
49539
  content: [{ type: "text", text: result.error.message }],
@@ -48517,9 +49548,9 @@ Available \`expand\` scopes are:
48517
49548
 
48518
49549
  // src/funcs/vendorsGetVendorInvoiceDetails.ts
48519
49550
  function vendorsGetVendorInvoiceDetails(client, request, options) {
48520
- return new APIPromise($do36(client, request, options));
49551
+ return new APIPromise($do40(client, request, options));
48521
49552
  }
48522
- async function $do36(client, request, options) {
49553
+ async function $do40(client, request, options) {
48523
49554
  const parsed = safeParse(request, (value) => GetVendorInvoiceDetailsRequest$outboundSchema.parse(value), "Input validation failed");
48524
49555
  if (!parsed.ok) {
48525
49556
  return [parsed, { status: "invalid" }];
@@ -48599,12 +49630,12 @@ var init_vendorsGetVendorInvoiceDetails = __esm(() => {
48599
49630
  });
48600
49631
 
48601
49632
  // src/mcp-server/tools/vendorsGetVendorInvoiceDetails.ts
48602
- var args34, tool$vendorsGetVendorInvoiceDetails;
49633
+ var args38, tool$vendorsGetVendorInvoiceDetails;
48603
49634
  var init_vendorsGetVendorInvoiceDetails2 = __esm(() => {
48604
49635
  init_vendorsGetVendorInvoiceDetails();
48605
49636
  init_operations();
48606
49637
  init_tools();
48607
- args34 = {
49638
+ args38 = {
48608
49639
  request: GetVendorInvoiceDetailsRequest$inboundSchema
48609
49640
  };
48610
49641
  tool$vendorsGetVendorInvoiceDetails = {
@@ -48617,9 +49648,9 @@ Available \`expand\` scopes are:
48617
49648
 
48618
49649
  invoice.line_items
48619
49650
  invoice.invoice_transactions`,
48620
- args: args34,
48621
- tool: async (client, args35, ctx) => {
48622
- const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49651
+ args: args38,
49652
+ tool: async (client, args39, ctx) => {
49653
+ const [result, apiCall] = await vendorsGetVendorInvoiceDetails(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48623
49654
  if (!result.ok) {
48624
49655
  return {
48625
49656
  content: [{ type: "text", text: result.error.message }],
@@ -48634,9 +49665,9 @@ invoice.invoice_transactions`,
48634
49665
 
48635
49666
  // src/funcs/vendorsGetVendorLegalName.ts
48636
49667
  function vendorsGetVendorLegalName(client, request, options) {
48637
- return new APIPromise($do37(client, request, options));
49668
+ return new APIPromise($do41(client, request, options));
48638
49669
  }
48639
- async function $do37(client, request, options) {
49670
+ async function $do41(client, request, options) {
48640
49671
  const parsed = safeParse(request, (value) => GetVendorLegalNameRequest$outboundSchema.parse(value), "Input validation failed");
48641
49672
  if (!parsed.ok) {
48642
49673
  return [parsed, { status: "invalid" }];
@@ -48711,12 +49742,12 @@ var init_vendorsGetVendorLegalName = __esm(() => {
48711
49742
  });
48712
49743
 
48713
49744
  // src/mcp-server/tools/vendorsGetVendorLegalName.ts
48714
- var args35, tool$vendorsGetVendorLegalName;
49745
+ var args39, tool$vendorsGetVendorLegalName;
48715
49746
  var init_vendorsGetVendorLegalName2 = __esm(() => {
48716
49747
  init_vendorsGetVendorLegalName();
48717
49748
  init_operations();
48718
49749
  init_tools();
48719
- args35 = {
49750
+ args39 = {
48720
49751
  request: GetVendorLegalNameRequest$inboundSchema
48721
49752
  };
48722
49753
  tool$vendorsGetVendorLegalName = {
@@ -48724,9 +49755,9 @@ var init_vendorsGetVendorLegalName2 = __esm(() => {
48724
49755
  description: `Get Vendor legal name
48725
49756
 
48726
49757
  Get vendor legal name`,
48727
- args: args35,
48728
- tool: async (client, args36, ctx) => {
48729
- const [result, apiCall] = await vendorsGetVendorLegalName(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49758
+ args: args39,
49759
+ tool: async (client, args40, ctx) => {
49760
+ const [result, apiCall] = await vendorsGetVendorLegalName(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48730
49761
  if (!result.ok) {
48731
49762
  return {
48732
49763
  content: [{ type: "text", text: result.error.message }],
@@ -48741,9 +49772,9 @@ Get vendor legal name`,
48741
49772
 
48742
49773
  // src/funcs/vendorsGetVendorsDetails.ts
48743
49774
  function vendorsGetVendorsDetails(client, request, options) {
48744
- return new APIPromise($do38(client, request, options));
49775
+ return new APIPromise($do42(client, request, options));
48745
49776
  }
48746
- async function $do38(client, request, options) {
49777
+ async function $do42(client, request, options) {
48747
49778
  const parsed = safeParse(request, (value) => GetVendorsDetailsRequest$outboundSchema.parse(value), "Input validation failed");
48748
49779
  if (!parsed.ok) {
48749
49780
  return [parsed, { status: "invalid" }];
@@ -48823,12 +49854,12 @@ var init_vendorsGetVendorsDetails = __esm(() => {
48823
49854
  });
48824
49855
 
48825
49856
  // src/mcp-server/tools/vendorsGetVendorsDetails.ts
48826
- var args36, tool$vendorsGetVendorsDetails;
49857
+ var args40, tool$vendorsGetVendorsDetails;
48827
49858
  var init_vendorsGetVendorsDetails2 = __esm(() => {
48828
49859
  init_vendorsGetVendorsDetails();
48829
49860
  init_operations();
48830
49861
  init_tools();
48831
- args36 = {
49862
+ args40 = {
48832
49863
  request: GetVendorsDetailsRequest$inboundSchema
48833
49864
  };
48834
49865
  tool$vendorsGetVendorsDetails = {
@@ -48853,10 +49884,13 @@ vendor.payment_responsibility
48853
49884
  vendor.background_check_date_expires
48854
49885
  vendor.credit_balance
48855
49886
  vendor.registration_data
48856
- vendor.registration_finished`,
48857
- args: args36,
48858
- tool: async (client, args37, ctx) => {
48859
- const [result, apiCall] = await vendorsGetVendorsDetails(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49887
+ vendor.registration_finished
49888
+ vendor.target_facilities
49889
+ vendor.pending_invoice
49890
+ vendor.vendor_groups`,
49891
+ args: args40,
49892
+ tool: async (client, args41, ctx) => {
49893
+ const [result, apiCall] = await vendorsGetVendorsDetails(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48860
49894
  if (!result.ok) {
48861
49895
  return {
48862
49896
  content: [{ type: "text", text: result.error.message }],
@@ -48871,9 +49905,9 @@ vendor.registration_finished`,
48871
49905
 
48872
49906
  // src/funcs/vendorsListVendorAdditionalFacilityFields.ts
48873
49907
  function vendorsListVendorAdditionalFacilityFields(client, request, options) {
48874
- return new APIPromise($do39(client, request, options));
49908
+ return new APIPromise($do43(client, request, options));
48875
49909
  }
48876
- async function $do39(client, request, options) {
49910
+ async function $do43(client, request, options) {
48877
49911
  const parsed = safeParse(request, (value) => ListVendorAdditionalFacilityFieldsRequest$outboundSchema.parse(value), "Input validation failed");
48878
49912
  if (!parsed.ok) {
48879
49913
  return [haltIterator(parsed), { status: "invalid" }];
@@ -48985,12 +50019,12 @@ var init_vendorsListVendorAdditionalFacilityFields = __esm(() => {
48985
50019
  });
48986
50020
 
48987
50021
  // src/mcp-server/tools/vendorsListVendorAdditionalFacilityFields.ts
48988
- var args37, tool$vendorsListVendorAdditionalFacilityFields;
50022
+ var args41, tool$vendorsListVendorAdditionalFacilityFields;
48989
50023
  var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
48990
50024
  init_vendorsListVendorAdditionalFacilityFields();
48991
50025
  init_operations();
48992
50026
  init_tools();
48993
- args37 = {
50027
+ args41 = {
48994
50028
  request: ListVendorAdditionalFacilityFieldsRequest$inboundSchema
48995
50029
  };
48996
50030
  tool$vendorsListVendorAdditionalFacilityFields = {
@@ -48998,9 +50032,9 @@ var init_vendorsListVendorAdditionalFacilityFields2 = __esm(() => {
48998
50032
  description: `List of vendor's additional facility fields
48999
50033
 
49000
50034
  List of vendor's additional facility fields`,
49001
- args: args37,
49002
- tool: async (client, args38, ctx) => {
49003
- const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50035
+ args: args41,
50036
+ tool: async (client, args42, ctx) => {
50037
+ const [result, apiCall] = await vendorsListVendorAdditionalFacilityFields(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49004
50038
  if (!result.ok) {
49005
50039
  return {
49006
50040
  content: [{ type: "text", text: result.error.message }],
@@ -49015,9 +50049,9 @@ List of vendor's additional facility fields`,
49015
50049
 
49016
50050
  // src/funcs/vendorsListVendorCredentialDataRequests.ts
49017
50051
  function vendorsListVendorCredentialDataRequests(client, request, options) {
49018
- return new APIPromise($do40(client, request, options));
50052
+ return new APIPromise($do44(client, request, options));
49019
50053
  }
49020
- async function $do40(client, request, options) {
50054
+ async function $do44(client, request, options) {
49021
50055
  const parsed = safeParse(request, (value) => ListVendorCredentialDataRequestsRequest$outboundSchema.parse(value), "Input validation failed");
49022
50056
  if (!parsed.ok) {
49023
50057
  return [parsed, { status: "invalid" }];
@@ -49100,12 +50134,12 @@ var init_vendorsListVendorCredentialDataRequests = __esm(() => {
49100
50134
  });
49101
50135
 
49102
50136
  // src/mcp-server/tools/vendorsListVendorCredentialDataRequests.ts
49103
- var args38, tool$vendorsListVendorCredentialDataRequests;
50137
+ var args42, tool$vendorsListVendorCredentialDataRequests;
49104
50138
  var init_vendorsListVendorCredentialDataRequests2 = __esm(() => {
49105
50139
  init_vendorsListVendorCredentialDataRequests();
49106
50140
  init_operations();
49107
50141
  init_tools();
49108
- args38 = {
50142
+ args42 = {
49109
50143
  request: ListVendorCredentialDataRequestsRequest$inboundSchema
49110
50144
  };
49111
50145
  tool$vendorsListVendorCredentialDataRequests = {
@@ -49118,9 +50152,9 @@ Available \`expand\` scopes are:
49118
50152
 
49119
50153
  - vendor_credential_data_request.vendor_credential
49120
50154
  - vendor_credential_data_request.data_request`,
49121
- args: args38,
49122
- tool: async (client, args39, ctx) => {
49123
- const [result, apiCall] = await vendorsListVendorCredentialDataRequests(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50155
+ args: args42,
50156
+ tool: async (client, args43, ctx) => {
50157
+ const [result, apiCall] = await vendorsListVendorCredentialDataRequests(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49124
50158
  if (!result.ok) {
49125
50159
  return {
49126
50160
  content: [{ type: "text", text: result.error.message }],
@@ -49135,9 +50169,9 @@ Available \`expand\` scopes are:
49135
50169
 
49136
50170
  // src/funcs/vendorsListVendorCredentialFiles.ts
49137
50171
  function vendorsListVendorCredentialFiles(client, request, options) {
49138
- return new APIPromise($do41(client, request, options));
50172
+ return new APIPromise($do45(client, request, options));
49139
50173
  }
49140
- async function $do41(client, request, options) {
50174
+ async function $do45(client, request, options) {
49141
50175
  const parsed = safeParse(request, (value) => ListVendorCredentialFilesRequest$outboundSchema.parse(value), "Input validation failed");
49142
50176
  if (!parsed.ok) {
49143
50177
  return [parsed, { status: "invalid" }];
@@ -49220,12 +50254,12 @@ var init_vendorsListVendorCredentialFiles = __esm(() => {
49220
50254
  });
49221
50255
 
49222
50256
  // src/mcp-server/tools/vendorsListVendorCredentialFiles.ts
49223
- var args39, tool$vendorsListVendorCredentialFiles;
50257
+ var args43, tool$vendorsListVendorCredentialFiles;
49224
50258
  var init_vendorsListVendorCredentialFiles2 = __esm(() => {
49225
50259
  init_vendorsListVendorCredentialFiles();
49226
50260
  init_operations();
49227
50261
  init_tools();
49228
- args39 = {
50262
+ args43 = {
49229
50263
  request: ListVendorCredentialFilesRequest$inboundSchema
49230
50264
  };
49231
50265
  tool$vendorsListVendorCredentialFiles = {
@@ -49238,9 +50272,9 @@ Available \`expand\` scopes are:
49238
50272
 
49239
50273
  - vendor_credential_file.vendor_credential
49240
50274
  - vendor_credential_file.credential_document`,
49241
- args: args39,
49242
- tool: async (client, args40, ctx) => {
49243
- const [result, apiCall] = await vendorsListVendorCredentialFiles(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50275
+ args: args43,
50276
+ tool: async (client, args44, ctx) => {
50277
+ const [result, apiCall] = await vendorsListVendorCredentialFiles(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49244
50278
  if (!result.ok) {
49245
50279
  return {
49246
50280
  content: [{ type: "text", text: result.error.message }],
@@ -49255,9 +50289,9 @@ Available \`expand\` scopes are:
49255
50289
 
49256
50290
  // src/funcs/vendorsListVendorCredentialHistory.ts
49257
50291
  function vendorsListVendorCredentialHistory(client, request, options) {
49258
- return new APIPromise($do42(client, request, options));
50292
+ return new APIPromise($do46(client, request, options));
49259
50293
  }
49260
- async function $do42(client, request, options) {
50294
+ async function $do46(client, request, options) {
49261
50295
  const parsed = safeParse(request, (value) => ListVendorCredentialHistoryRequest$outboundSchema.parse(value), "Input validation failed");
49262
50296
  if (!parsed.ok) {
49263
50297
  return [haltIterator(parsed), { status: "invalid" }];
@@ -49372,12 +50406,12 @@ var init_vendorsListVendorCredentialHistory = __esm(() => {
49372
50406
  });
49373
50407
 
49374
50408
  // src/mcp-server/tools/vendorsListVendorCredentialHistory.ts
49375
- var args40, tool$vendorsListVendorCredentialHistory;
50409
+ var args44, tool$vendorsListVendorCredentialHistory;
49376
50410
  var init_vendorsListVendorCredentialHistory2 = __esm(() => {
49377
50411
  init_vendorsListVendorCredentialHistory();
49378
50412
  init_operations();
49379
50413
  init_tools();
49380
- args40 = {
50414
+ args44 = {
49381
50415
  request: ListVendorCredentialHistoryRequest$inboundSchema
49382
50416
  };
49383
50417
  tool$vendorsListVendorCredentialHistory = {
@@ -49385,9 +50419,9 @@ var init_vendorsListVendorCredentialHistory2 = __esm(() => {
49385
50419
  description: `List Vendor Credential History
49386
50420
 
49387
50421
  Lists vendor credentials history`,
49388
- args: args40,
49389
- tool: async (client, args41, ctx) => {
49390
- const [result, apiCall] = await vendorsListVendorCredentialHistory(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50422
+ args: args44,
50423
+ tool: async (client, args45, ctx) => {
50424
+ const [result, apiCall] = await vendorsListVendorCredentialHistory(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49391
50425
  if (!result.ok) {
49392
50426
  return {
49393
50427
  content: [{ type: "text", text: result.error.message }],
@@ -49402,9 +50436,9 @@ Lists vendor credentials history`,
49402
50436
 
49403
50437
  // src/funcs/vendorsListVendorCredentials.ts
49404
50438
  function vendorsListVendorCredentials(client, request, options) {
49405
- return new APIPromise($do43(client, request, options));
50439
+ return new APIPromise($do47(client, request, options));
49406
50440
  }
49407
- async function $do43(client, request, options) {
50441
+ async function $do47(client, request, options) {
49408
50442
  const parsed = safeParse(request, (value) => ListVendorCredentialsRequest$outboundSchema.parse(value), "Input validation failed");
49409
50443
  if (!parsed.ok) {
49410
50444
  return [haltIterator(parsed), { status: "invalid" }];
@@ -49524,12 +50558,12 @@ var init_vendorsListVendorCredentials = __esm(() => {
49524
50558
  });
49525
50559
 
49526
50560
  // src/mcp-server/tools/vendorsListVendorCredentials.ts
49527
- var args41, tool$vendorsListVendorCredentials;
50561
+ var args45, tool$vendorsListVendorCredentials;
49528
50562
  var init_vendorsListVendorCredentials2 = __esm(() => {
49529
50563
  init_vendorsListVendorCredentials();
49530
50564
  init_operations();
49531
50565
  init_tools();
49532
- args41 = {
50566
+ args45 = {
49533
50567
  request: ListVendorCredentialsRequest$inboundSchema
49534
50568
  };
49535
50569
  tool$vendorsListVendorCredentials = {
@@ -49537,9 +50571,9 @@ var init_vendorsListVendorCredentials2 = __esm(() => {
49537
50571
  description: `List Vendor Credentials
49538
50572
 
49539
50573
  Lists vendor credentials, required credentials, and company credentials. Utilized in Vendor Dashboard.`,
49540
- args: args41,
49541
- tool: async (client, args42, ctx) => {
49542
- const [result, apiCall] = await vendorsListVendorCredentials(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50574
+ args: args45,
50575
+ tool: async (client, args46, ctx) => {
50576
+ const [result, apiCall] = await vendorsListVendorCredentials(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49543
50577
  if (!result.ok) {
49544
50578
  return {
49545
50579
  content: [{ type: "text", text: result.error.message }],
@@ -49554,9 +50588,9 @@ Lists vendor credentials, required credentials, and company credentials. Utilize
49554
50588
 
49555
50589
  // src/funcs/vendorsListVendorCredits.ts
49556
50590
  function vendorsListVendorCredits(client, request, options) {
49557
- return new APIPromise($do44(client, request, options));
50591
+ return new APIPromise($do48(client, request, options));
49558
50592
  }
49559
- async function $do44(client, request, options) {
50593
+ async function $do48(client, request, options) {
49560
50594
  const parsed = safeParse(request, (value) => ListVendorCreditsRequest$outboundSchema.parse(value), "Input validation failed");
49561
50595
  if (!parsed.ok) {
49562
50596
  return [haltIterator(parsed), { status: "invalid" }];
@@ -49670,12 +50704,12 @@ var init_vendorsListVendorCredits = __esm(() => {
49670
50704
  });
49671
50705
 
49672
50706
  // src/mcp-server/tools/vendorsListVendorCredits.ts
49673
- var args42, tool$vendorsListVendorCredits;
50707
+ var args46, tool$vendorsListVendorCredits;
49674
50708
  var init_vendorsListVendorCredits2 = __esm(() => {
49675
50709
  init_vendorsListVendorCredits();
49676
50710
  init_operations();
49677
50711
  init_tools();
49678
- args42 = {
50712
+ args46 = {
49679
50713
  request: ListVendorCreditsRequest$inboundSchema
49680
50714
  };
49681
50715
  tool$vendorsListVendorCredits = {
@@ -49683,9 +50717,9 @@ var init_vendorsListVendorCredits2 = __esm(() => {
49683
50717
  description: `List vendor credits
49684
50718
 
49685
50719
  List the credits for the vendor`,
49686
- args: args42,
49687
- tool: async (client, args43, ctx) => {
49688
- const [result, apiCall] = await vendorsListVendorCredits(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50720
+ args: args46,
50721
+ tool: async (client, args47, ctx) => {
50722
+ const [result, apiCall] = await vendorsListVendorCredits(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49689
50723
  if (!result.ok) {
49690
50724
  return {
49691
50725
  content: [{ type: "text", text: result.error.message }],
@@ -49700,9 +50734,9 @@ List the credits for the vendor`,
49700
50734
 
49701
50735
  // src/funcs/vendorsListVendorFacilityStatuses.ts
49702
50736
  function vendorsListVendorFacilityStatuses(client, request, options) {
49703
- return new APIPromise($do45(client, request, options));
50737
+ return new APIPromise($do49(client, request, options));
49704
50738
  }
49705
- async function $do45(client, request, options) {
50739
+ async function $do49(client, request, options) {
49706
50740
  const parsed = safeParse(request, (value) => ListVendorFacilityStatusesRequest$outboundSchema.parse(value), "Input validation failed");
49707
50741
  if (!parsed.ok) {
49708
50742
  return [haltIterator(parsed), { status: "invalid" }];
@@ -49820,12 +50854,12 @@ var init_vendorsListVendorFacilityStatuses = __esm(() => {
49820
50854
  });
49821
50855
 
49822
50856
  // src/mcp-server/tools/vendorsListVendorFacilityStatuses.ts
49823
- var args43, tool$vendorsListVendorFacilityStatuses;
50857
+ var args47, tool$vendorsListVendorFacilityStatuses;
49824
50858
  var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
49825
50859
  init_vendorsListVendorFacilityStatuses();
49826
50860
  init_operations();
49827
50861
  init_tools();
49828
- args43 = {
50862
+ args47 = {
49829
50863
  request: ListVendorFacilityStatusesRequest$inboundSchema
49830
50864
  };
49831
50865
  tool$vendorsListVendorFacilityStatuses = {
@@ -49833,9 +50867,9 @@ var init_vendorsListVendorFacilityStatuses2 = __esm(() => {
49833
50867
  description: `List vendor facility statuses
49834
50868
 
49835
50869
  List the facilities for the vendor`,
49836
- args: args43,
49837
- tool: async (client, args44, ctx) => {
49838
- const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50870
+ args: args47,
50871
+ tool: async (client, args48, ctx) => {
50872
+ const [result, apiCall] = await vendorsListVendorFacilityStatuses(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49839
50873
  if (!result.ok) {
49840
50874
  return {
49841
50875
  content: [{ type: "text", text: result.error.message }],
@@ -49850,9 +50884,9 @@ List the facilities for the vendor`,
49850
50884
 
49851
50885
  // src/funcs/vendorsListVendorInvoices.ts
49852
50886
  function vendorsListVendorInvoices(client, request, options) {
49853
- return new APIPromise($do46(client, request, options));
50887
+ return new APIPromise($do50(client, request, options));
49854
50888
  }
49855
- async function $do46(client, request, options) {
50889
+ async function $do50(client, request, options) {
49856
50890
  const parsed = safeParse(request, (value) => ListVendorInvoicesRequest$outboundSchema.parse(value), "Input validation failed");
49857
50891
  if (!parsed.ok) {
49858
50892
  return [haltIterator(parsed), { status: "invalid" }];
@@ -49970,12 +51004,12 @@ var init_vendorsListVendorInvoices = __esm(() => {
49970
51004
  });
49971
51005
 
49972
51006
  // src/mcp-server/tools/vendorsListVendorInvoices.ts
49973
- var args44, tool$vendorsListVendorInvoices;
51007
+ var args48, tool$vendorsListVendorInvoices;
49974
51008
  var init_vendorsListVendorInvoices2 = __esm(() => {
49975
51009
  init_vendorsListVendorInvoices();
49976
51010
  init_operations();
49977
51011
  init_tools();
49978
- args44 = {
51012
+ args48 = {
49979
51013
  request: ListVendorInvoicesRequest$inboundSchema
49980
51014
  };
49981
51015
  tool$vendorsListVendorInvoices = {
@@ -49987,9 +51021,9 @@ List invoices for Vendors
49987
51021
  Available \`expand\` scopes are:
49988
51022
 
49989
51023
  invoice.line_items`,
49990
- args: args44,
49991
- tool: async (client, args45, ctx) => {
49992
- const [result, apiCall] = await vendorsListVendorInvoices(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51024
+ args: args48,
51025
+ tool: async (client, args49, ctx) => {
51026
+ const [result, apiCall] = await vendorsListVendorInvoices(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49993
51027
  if (!result.ok) {
49994
51028
  return {
49995
51029
  content: [{ type: "text", text: result.error.message }],
@@ -50004,9 +51038,9 @@ invoice.line_items`,
50004
51038
 
50005
51039
  // src/funcs/vendorsListVendorJobTitles.ts
50006
51040
  function vendorsListVendorJobTitles(client, request, options) {
50007
- return new APIPromise($do47(client, request, options));
51041
+ return new APIPromise($do51(client, request, options));
50008
51042
  }
50009
- async function $do47(client, request, options) {
51043
+ async function $do51(client, request, options) {
50010
51044
  const parsed = safeParse(request, (value) => ListVendorJobTitlesRequest$outboundSchema.parse(value), "Input validation failed");
50011
51045
  if (!parsed.ok) {
50012
51046
  return [haltIterator(parsed), { status: "invalid" }];
@@ -50115,12 +51149,12 @@ var init_vendorsListVendorJobTitles = __esm(() => {
50115
51149
  });
50116
51150
 
50117
51151
  // src/mcp-server/tools/vendorsListVendorJobTitles.ts
50118
- var args45, tool$vendorsListVendorJobTitles;
51152
+ var args49, tool$vendorsListVendorJobTitles;
50119
51153
  var init_vendorsListVendorJobTitles2 = __esm(() => {
50120
51154
  init_vendorsListVendorJobTitles();
50121
51155
  init_operations();
50122
51156
  init_tools();
50123
- args45 = {
51157
+ args49 = {
50124
51158
  request: ListVendorJobTitlesRequest$inboundSchema
50125
51159
  };
50126
51160
  tool$vendorsListVendorJobTitles = {
@@ -50128,9 +51162,9 @@ var init_vendorsListVendorJobTitles2 = __esm(() => {
50128
51162
  description: `List vendor job titles
50129
51163
 
50130
51164
  List valid job titles for Vendors. This can be used during sign up or in a filter.`,
50131
- args: args45,
50132
- tool: async (client, args46, ctx) => {
50133
- const [result, apiCall] = await vendorsListVendorJobTitles(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51165
+ args: args49,
51166
+ tool: async (client, args50, ctx) => {
51167
+ const [result, apiCall] = await vendorsListVendorJobTitles(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50134
51168
  if (!result.ok) {
50135
51169
  return {
50136
51170
  content: [{ type: "text", text: result.error.message }],
@@ -50145,9 +51179,9 @@ List valid job titles for Vendors. This can be used during sign up or in a filte
50145
51179
 
50146
51180
  // src/funcs/vendorsListVendorManagedByCompanies.ts
50147
51181
  function vendorsListVendorManagedByCompanies(client, request, options) {
50148
- return new APIPromise($do48(client, request, options));
51182
+ return new APIPromise($do52(client, request, options));
50149
51183
  }
50150
- async function $do48(client, request, options) {
51184
+ async function $do52(client, request, options) {
50151
51185
  const parsed = safeParse(request, (value) => ListVendorManagedByCompaniesRequest$outboundSchema.parse(value), "Input validation failed");
50152
51186
  if (!parsed.ok) {
50153
51187
  return [haltIterator(parsed), { status: "invalid" }];
@@ -50261,12 +51295,12 @@ var init_vendorsListVendorManagedByCompanies = __esm(() => {
50261
51295
  });
50262
51296
 
50263
51297
  // src/mcp-server/tools/vendorsListVendorManagedByCompanies.ts
50264
- var args46, tool$vendorsListVendorManagedByCompanies;
51298
+ var args50, tool$vendorsListVendorManagedByCompanies;
50265
51299
  var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
50266
51300
  init_vendorsListVendorManagedByCompanies();
50267
51301
  init_operations();
50268
51302
  init_tools();
50269
- args46 = {
51303
+ args50 = {
50270
51304
  request: ListVendorManagedByCompaniesRequest$inboundSchema
50271
51305
  };
50272
51306
  tool$vendorsListVendorManagedByCompanies = {
@@ -50274,9 +51308,9 @@ var init_vendorsListVendorManagedByCompanies2 = __esm(() => {
50274
51308
  description: `List of companies managing the vendor
50275
51309
 
50276
51310
  List of companies managing the vendor`,
50277
- args: args46,
50278
- tool: async (client, args47, ctx) => {
50279
- const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51311
+ args: args50,
51312
+ tool: async (client, args51, ctx) => {
51313
+ const [result, apiCall] = await vendorsListVendorManagedByCompanies(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50280
51314
  if (!result.ok) {
50281
51315
  return {
50282
51316
  content: [{ type: "text", text: result.error.message }],
@@ -50291,9 +51325,9 @@ List of companies managing the vendor`,
50291
51325
 
50292
51326
  // src/funcs/vendorsListVendorScrubDetails.ts
50293
51327
  function vendorsListVendorScrubDetails(client, request, options) {
50294
- return new APIPromise($do49(client, request, options));
51328
+ return new APIPromise($do53(client, request, options));
50295
51329
  }
50296
- async function $do49(client, request, options) {
51330
+ async function $do53(client, request, options) {
50297
51331
  const parsed = safeParse(request, (value) => ListVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
50298
51332
  if (!parsed.ok) {
50299
51333
  return [parsed, { status: "invalid" }];
@@ -50369,12 +51403,12 @@ var init_vendorsListVendorScrubDetails = __esm(() => {
50369
51403
  });
50370
51404
 
50371
51405
  // src/mcp-server/tools/vendorsListVendorScrubDetails.ts
50372
- var args47, tool$vendorsListVendorScrubDetails;
51406
+ var args51, tool$vendorsListVendorScrubDetails;
50373
51407
  var init_vendorsListVendorScrubDetails2 = __esm(() => {
50374
51408
  init_vendorsListVendorScrubDetails();
50375
51409
  init_operations();
50376
51410
  init_tools();
50377
- args47 = {
51411
+ args51 = {
50378
51412
  request: ListVendorScrubDetailsRequest$inboundSchema
50379
51413
  };
50380
51414
  tool$vendorsListVendorScrubDetails = {
@@ -50382,9 +51416,9 @@ var init_vendorsListVendorScrubDetails2 = __esm(() => {
50382
51416
  description: `List vendor scrub details
50383
51417
 
50384
51418
  List vendor scrub details`,
50385
- args: args47,
50386
- tool: async (client, args48, ctx) => {
50387
- const [result, apiCall] = await vendorsListVendorScrubDetails(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51419
+ args: args51,
51420
+ tool: async (client, args52, ctx) => {
51421
+ const [result, apiCall] = await vendorsListVendorScrubDetails(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50388
51422
  if (!result.ok) {
50389
51423
  return {
50390
51424
  content: [{ type: "text", text: result.error.message }],
@@ -50399,9 +51433,9 @@ List vendor scrub details`,
50399
51433
 
50400
51434
  // src/funcs/vendorsListVendorScrubPackages.ts
50401
51435
  function vendorsListVendorScrubPackages(client, request, options) {
50402
- return new APIPromise($do50(client, request, options));
51436
+ return new APIPromise($do54(client, request, options));
50403
51437
  }
50404
- async function $do50(client, request, options) {
51438
+ async function $do54(client, request, options) {
50405
51439
  const parsed = safeParse(request, (value) => ListVendorScrubPackagesRequest$outboundSchema.parse(value), "Input validation failed");
50406
51440
  if (!parsed.ok) {
50407
51441
  return [haltIterator(parsed), { status: "invalid" }];
@@ -50515,12 +51549,12 @@ var init_vendorsListVendorScrubPackages = __esm(() => {
50515
51549
  });
50516
51550
 
50517
51551
  // src/mcp-server/tools/vendorsListVendorScrubPackages.ts
50518
- var args48, tool$vendorsListVendorScrubPackages;
51552
+ var args52, tool$vendorsListVendorScrubPackages;
50519
51553
  var init_vendorsListVendorScrubPackages2 = __esm(() => {
50520
51554
  init_vendorsListVendorScrubPackages();
50521
51555
  init_operations();
50522
51556
  init_tools();
50523
- args48 = {
51557
+ args52 = {
50524
51558
  request: ListVendorScrubPackagesRequest$inboundSchema
50525
51559
  };
50526
51560
  tool$vendorsListVendorScrubPackages = {
@@ -50528,9 +51562,9 @@ var init_vendorsListVendorScrubPackages2 = __esm(() => {
50528
51562
  description: `List vendor scrub packages
50529
51563
 
50530
51564
  List vendor scrub packages`,
50531
- args: args48,
50532
- tool: async (client, args49, ctx) => {
50533
- const [result, apiCall] = await vendorsListVendorScrubPackages(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51565
+ args: args52,
51566
+ tool: async (client, args53, ctx) => {
51567
+ const [result, apiCall] = await vendorsListVendorScrubPackages(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50534
51568
  if (!result.ok) {
50535
51569
  return {
50536
51570
  content: [{ type: "text", text: result.error.message }],
@@ -50545,9 +51579,9 @@ List vendor scrub packages`,
50545
51579
 
50546
51580
  // src/funcs/vendorsListVendorScrubPurchases.ts
50547
51581
  function vendorsListVendorScrubPurchases(client, request, options) {
50548
- return new APIPromise($do51(client, request, options));
51582
+ return new APIPromise($do55(client, request, options));
50549
51583
  }
50550
- async function $do51(client, request, options) {
51584
+ async function $do55(client, request, options) {
50551
51585
  const parsed = safeParse(request, (value) => ListVendorScrubPurchasesRequest$outboundSchema.parse(value), "Input validation failed");
50552
51586
  if (!parsed.ok) {
50553
51587
  return [haltIterator(parsed), { status: "invalid" }];
@@ -50661,12 +51695,12 @@ var init_vendorsListVendorScrubPurchases = __esm(() => {
50661
51695
  });
50662
51696
 
50663
51697
  // src/mcp-server/tools/vendorsListVendorScrubPurchases.ts
50664
- var args49, tool$vendorsListVendorScrubPurchases;
51698
+ var args53, tool$vendorsListVendorScrubPurchases;
50665
51699
  var init_vendorsListVendorScrubPurchases2 = __esm(() => {
50666
51700
  init_vendorsListVendorScrubPurchases();
50667
51701
  init_operations();
50668
51702
  init_tools();
50669
- args49 = {
51703
+ args53 = {
50670
51704
  request: ListVendorScrubPurchasesRequest$inboundSchema
50671
51705
  };
50672
51706
  tool$vendorsListVendorScrubPurchases = {
@@ -50674,9 +51708,149 @@ var init_vendorsListVendorScrubPurchases2 = __esm(() => {
50674
51708
  description: `List vendor scrub purchases
50675
51709
 
50676
51710
  List vendor scrub purchases`,
50677
- args: args49,
50678
- tool: async (client, args50, ctx) => {
50679
- const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51711
+ args: args53,
51712
+ tool: async (client, args54, ctx) => {
51713
+ const [result, apiCall] = await vendorsListVendorScrubPurchases(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51714
+ if (!result.ok) {
51715
+ return {
51716
+ content: [{ type: "text", text: result.error.message }],
51717
+ isError: true
51718
+ };
51719
+ }
51720
+ const value = result.value.result;
51721
+ return formatResult(value, apiCall);
51722
+ }
51723
+ };
51724
+ });
51725
+
51726
+ // src/funcs/vendorsListVendorTypes.ts
51727
+ function vendorsListVendorTypes(client, request, options) {
51728
+ return new APIPromise($do56(client, request, options));
51729
+ }
51730
+ async function $do56(client, request, options) {
51731
+ const parsed = safeParse(request, (value) => ListVendorTypesRequest$outboundSchema.parse(value), "Input validation failed");
51732
+ if (!parsed.ok) {
51733
+ return [haltIterator(parsed), { status: "invalid" }];
51734
+ }
51735
+ const payload = parsed.value;
51736
+ const body = null;
51737
+ const path = pathToFunc("/vendors/types")();
51738
+ const query = encodeFormQuery({
51739
+ desc: payload.desc,
51740
+ items_per_page: payload.items_per_page,
51741
+ page: payload.page,
51742
+ sort: payload.sort
51743
+ });
51744
+ const headers = new Headers(compactMap({
51745
+ Accept: "application/json"
51746
+ }));
51747
+ const securityInput = await extractSecurity(client._options.security);
51748
+ const requestSecurity = resolveGlobalSecurity(securityInput);
51749
+ const context = {
51750
+ options: client._options,
51751
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
51752
+ operationID: "listVendorTypes",
51753
+ oAuth2Scopes: [],
51754
+ resolvedSecurity: requestSecurity,
51755
+ securitySource: client._options.security,
51756
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
51757
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
51758
+ };
51759
+ const requestRes = client._createRequest(context, {
51760
+ security: requestSecurity,
51761
+ method: "GET",
51762
+ baseURL: options?.serverURL,
51763
+ path,
51764
+ headers,
51765
+ query,
51766
+ body,
51767
+ userAgent: client._options.userAgent,
51768
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
51769
+ }, options);
51770
+ if (!requestRes.ok) {
51771
+ return [haltIterator(requestRes), { status: "invalid" }];
51772
+ }
51773
+ const req = requestRes.value;
51774
+ const doResult = await client._do(req, {
51775
+ context,
51776
+ errorCodes: ["403", "4XX", "500", "5XX"],
51777
+ retryConfig: context.retryConfig,
51778
+ retryCodes: context.retryCodes
51779
+ });
51780
+ if (!doResult.ok) {
51781
+ return [haltIterator(doResult), { status: "request-error", request: req }];
51782
+ }
51783
+ const response = doResult.value;
51784
+ const responseFields = {
51785
+ HttpMeta: { Response: response, Request: req }
51786
+ };
51787
+ const [result, raw] = await match(json(200, ListVendorTypesResponse$inboundSchema, {
51788
+ key: "Result"
51789
+ }), jsonErr(403, ApiErrorResponse$inboundSchema), jsonErr(500, ApiErrorResponse$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
51790
+ if (!result.ok) {
51791
+ return [haltIterator(result), {
51792
+ status: "complete",
51793
+ request: req,
51794
+ response
51795
+ }];
51796
+ }
51797
+ const nextFunc = (responseData) => {
51798
+ const page2 = request?.page ?? 1;
51799
+ const nextPage = page2 + 1;
51800
+ if (!responseData) {
51801
+ return { next: () => null };
51802
+ }
51803
+ const results = dlv(responseData, "items");
51804
+ if (!Array.isArray(results) || !results.length) {
51805
+ return { next: () => null };
51806
+ }
51807
+ const limit = request?.itemsPerPage ?? 0;
51808
+ if (results.length < limit) {
51809
+ return { next: () => null };
51810
+ }
51811
+ const nextVal = () => vendorsListVendorTypes(client, {
51812
+ ...request,
51813
+ page: nextPage
51814
+ }, options);
51815
+ return { next: nextVal, "~next": { page: nextPage } };
51816
+ };
51817
+ const page = { ...result, ...nextFunc(raw) };
51818
+ return [{ ...page, ...createPageIterator(page, (v2) => !v2.ok) }, {
51819
+ status: "complete",
51820
+ request: req,
51821
+ response
51822
+ }];
51823
+ }
51824
+ var init_vendorsListVendorTypes = __esm(() => {
51825
+ init_encodings();
51826
+ init_matchers();
51827
+ init_primitives();
51828
+ init_schemas();
51829
+ init_security();
51830
+ init_url();
51831
+ init_errors2();
51832
+ init_operations();
51833
+ init_async();
51834
+ init_operations2();
51835
+ });
51836
+
51837
+ // src/mcp-server/tools/vendorsListVendorTypes.ts
51838
+ var args54, tool$vendorsListVendorTypes;
51839
+ var init_vendorsListVendorTypes2 = __esm(() => {
51840
+ init_vendorsListVendorTypes();
51841
+ init_operations();
51842
+ init_tools();
51843
+ args54 = {
51844
+ request: ListVendorTypesRequest$inboundSchema
51845
+ };
51846
+ tool$vendorsListVendorTypes = {
51847
+ name: "vendors-list-vendor-types",
51848
+ description: `List vendor types
51849
+
51850
+ List vendor types.`,
51851
+ args: args54,
51852
+ tool: async (client, args55, ctx) => {
51853
+ const [result, apiCall] = await vendorsListVendorTypes(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50680
51854
  if (!result.ok) {
50681
51855
  return {
50682
51856
  content: [{ type: "text", text: result.error.message }],
@@ -50691,9 +51865,9 @@ List vendor scrub purchases`,
50691
51865
 
50692
51866
  // src/funcs/vendorsPurchaseScrubCredits.ts
50693
51867
  function vendorsPurchaseScrubCredits(client, request, options) {
50694
- return new APIPromise($do52(client, request, options));
51868
+ return new APIPromise($do57(client, request, options));
50695
51869
  }
50696
- async function $do52(client, request, options) {
51870
+ async function $do57(client, request, options) {
50697
51871
  const parsed = safeParse(request, (value) => PurchaseScrubCreditsRequest$outboundSchema.parse(value), "Input validation failed");
50698
51872
  if (!parsed.ok) {
50699
51873
  return [parsed, { status: "invalid" }];
@@ -50769,12 +51943,12 @@ var init_vendorsPurchaseScrubCredits = __esm(() => {
50769
51943
  });
50770
51944
 
50771
51945
  // src/mcp-server/tools/vendorsPurchaseScrubCredits.ts
50772
- var args50, tool$vendorsPurchaseScrubCredits;
51946
+ var args55, tool$vendorsPurchaseScrubCredits;
50773
51947
  var init_vendorsPurchaseScrubCredits2 = __esm(() => {
50774
51948
  init_vendorsPurchaseScrubCredits();
50775
51949
  init_operations();
50776
51950
  init_tools();
50777
- args50 = {
51951
+ args55 = {
50778
51952
  request: PurchaseScrubCreditsRequest$inboundSchema
50779
51953
  };
50780
51954
  tool$vendorsPurchaseScrubCredits = {
@@ -50782,9 +51956,9 @@ var init_vendorsPurchaseScrubCredits2 = __esm(() => {
50782
51956
  description: `Purchase scrub credits
50783
51957
 
50784
51958
  Purchase scrub credits`,
50785
- args: args50,
50786
- tool: async (client, args51, ctx) => {
50787
- const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51959
+ args: args55,
51960
+ tool: async (client, args56, ctx) => {
51961
+ const [result, apiCall] = await vendorsPurchaseScrubCredits(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50788
51962
  if (!result.ok) {
50789
51963
  return {
50790
51964
  content: [{ type: "text", text: result.error.message }],
@@ -50799,9 +51973,9 @@ Purchase scrub credits`,
50799
51973
 
50800
51974
  // src/funcs/vendorsSendDownloadCode.ts
50801
51975
  function vendorsSendDownloadCode(client, request, options) {
50802
- return new APIPromise($do53(client, request, options));
51976
+ return new APIPromise($do58(client, request, options));
50803
51977
  }
50804
- async function $do53(client, request, options) {
51978
+ async function $do58(client, request, options) {
50805
51979
  const parsed = safeParse(request, (value) => SendDownloadCodeRequest$outboundSchema.parse(value), "Input validation failed");
50806
51980
  if (!parsed.ok) {
50807
51981
  return [parsed, { status: "invalid" }];
@@ -50875,12 +52049,12 @@ var init_vendorsSendDownloadCode = __esm(() => {
50875
52049
  });
50876
52050
 
50877
52051
  // src/mcp-server/tools/vendorsSendDownloadCode.ts
50878
- var args51, tool$vendorsSendDownloadCode;
52052
+ var args56, tool$vendorsSendDownloadCode;
50879
52053
  var init_vendorsSendDownloadCode2 = __esm(() => {
50880
52054
  init_vendorsSendDownloadCode();
50881
52055
  init_operations();
50882
52056
  init_tools();
50883
- args51 = {
52057
+ args56 = {
50884
52058
  request: SendDownloadCodeRequest$inboundSchema
50885
52059
  };
50886
52060
  tool$vendorsSendDownloadCode = {
@@ -50888,9 +52062,9 @@ var init_vendorsSendDownloadCode2 = __esm(() => {
50888
52062
  description: `Send download code for vendor credential
50889
52063
 
50890
52064
  It will send download code for vendor credential`,
50891
- args: args51,
50892
- tool: async (client, args52, ctx) => {
50893
- const [result, apiCall] = await vendorsSendDownloadCode(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52065
+ args: args56,
52066
+ tool: async (client, args57, ctx) => {
52067
+ const [result, apiCall] = await vendorsSendDownloadCode(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50894
52068
  if (!result.ok) {
50895
52069
  return {
50896
52070
  content: [{ type: "text", text: result.error.message }],
@@ -50905,9 +52079,9 @@ It will send download code for vendor credential`,
50905
52079
 
50906
52080
  // src/funcs/vendorsSubmitVendorCredential.ts
50907
52081
  function vendorsSubmitVendorCredential(client, request, options) {
50908
- return new APIPromise($do54(client, request, options));
52082
+ return new APIPromise($do59(client, request, options));
50909
52083
  }
50910
- async function $do54(client, request, options) {
52084
+ async function $do59(client, request, options) {
50911
52085
  const parsed = safeParse(request, (value) => SubmitVendorCredentialRequest$outboundSchema.parse(value), "Input validation failed");
50912
52086
  if (!parsed.ok) {
50913
52087
  return [parsed, { status: "invalid" }];
@@ -50981,12 +52155,12 @@ var init_vendorsSubmitVendorCredential = __esm(() => {
50981
52155
  });
50982
52156
 
50983
52157
  // src/mcp-server/tools/vendorsSubmitVendorCredential.ts
50984
- var args52, tool$vendorsSubmitVendorCredential;
52158
+ var args57, tool$vendorsSubmitVendorCredential;
50985
52159
  var init_vendorsSubmitVendorCredential2 = __esm(() => {
50986
52160
  init_vendorsSubmitVendorCredential();
50987
52161
  init_operations();
50988
52162
  init_tools();
50989
- args52 = {
52163
+ args57 = {
50990
52164
  request: SubmitVendorCredentialRequest$inboundSchema
50991
52165
  };
50992
52166
  tool$vendorsSubmitVendorCredential = {
@@ -50994,9 +52168,9 @@ var init_vendorsSubmitVendorCredential2 = __esm(() => {
50994
52168
  description: `Submit vendor credential
50995
52169
 
50996
52170
  It will submit vendor credential`,
50997
- args: args52,
50998
- tool: async (client, args53, ctx) => {
50999
- const [result, apiCall] = await vendorsSubmitVendorCredential(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52171
+ args: args57,
52172
+ tool: async (client, args58, ctx) => {
52173
+ const [result, apiCall] = await vendorsSubmitVendorCredential(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51000
52174
  if (!result.ok) {
51001
52175
  return {
51002
52176
  content: [{ type: "text", text: result.error.message }],
@@ -51011,9 +52185,9 @@ It will submit vendor credential`,
51011
52185
 
51012
52186
  // src/funcs/vendorsUpdateVendorCredentialData.ts
51013
52187
  function vendorsUpdateVendorCredentialData(client, request, options) {
51014
- return new APIPromise($do55(client, request, options));
52188
+ return new APIPromise($do60(client, request, options));
51015
52189
  }
51016
- async function $do55(client, request, options) {
52190
+ async function $do60(client, request, options) {
51017
52191
  const parsed = safeParse(request, (value) => UpdateVendorCredentialDataRequest$outboundSchema.parse(value), "Input validation failed");
51018
52192
  if (!parsed.ok) {
51019
52193
  return [parsed, { status: "invalid" }];
@@ -51094,12 +52268,12 @@ var init_vendorsUpdateVendorCredentialData = __esm(() => {
51094
52268
  });
51095
52269
 
51096
52270
  // src/mcp-server/tools/vendorsUpdateVendorCredentialData.ts
51097
- var args53, tool$vendorsUpdateVendorCredentialData;
52271
+ var args58, tool$vendorsUpdateVendorCredentialData;
51098
52272
  var init_vendorsUpdateVendorCredentialData2 = __esm(() => {
51099
52273
  init_vendorsUpdateVendorCredentialData();
51100
52274
  init_operations();
51101
52275
  init_tools();
51102
- args53 = {
52276
+ args58 = {
51103
52277
  request: UpdateVendorCredentialDataRequest$inboundSchema
51104
52278
  };
51105
52279
  tool$vendorsUpdateVendorCredentialData = {
@@ -51107,9 +52281,9 @@ var init_vendorsUpdateVendorCredentialData2 = __esm(() => {
51107
52281
  description: `Update vendor credential data
51108
52282
 
51109
52283
  Update vendor credential data`,
51110
- args: args53,
51111
- tool: async (client, args54, ctx) => {
51112
- const [result, apiCall] = await vendorsUpdateVendorCredentialData(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52284
+ args: args58,
52285
+ tool: async (client, args59, ctx) => {
52286
+ const [result, apiCall] = await vendorsUpdateVendorCredentialData(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51113
52287
  if (!result.ok) {
51114
52288
  return {
51115
52289
  content: [{ type: "text", text: result.error.message }],
@@ -51124,9 +52298,9 @@ Update vendor credential data`,
51124
52298
 
51125
52299
  // src/funcs/vendorsUpdateVendorCredentialFile.ts
51126
52300
  function vendorsUpdateVendorCredentialFile(client, request, options) {
51127
- return new APIPromise($do56(client, request, options));
52301
+ return new APIPromise($do61(client, request, options));
51128
52302
  }
51129
- async function $do56(client, request, options) {
52303
+ async function $do61(client, request, options) {
51130
52304
  const parsed = safeParse(request, (value) => UpdateVendorCredentialFileRequest$outboundSchema.parse(value), "Input validation failed");
51131
52305
  if (!parsed.ok) {
51132
52306
  return [parsed, { status: "invalid" }];
@@ -51204,12 +52378,12 @@ var init_vendorsUpdateVendorCredentialFile = __esm(() => {
51204
52378
  });
51205
52379
 
51206
52380
  // src/mcp-server/tools/vendorsUpdateVendorCredentialFile.ts
51207
- var args54, tool$vendorsUpdateVendorCredentialFile;
52381
+ var args59, tool$vendorsUpdateVendorCredentialFile;
51208
52382
  var init_vendorsUpdateVendorCredentialFile2 = __esm(() => {
51209
52383
  init_vendorsUpdateVendorCredentialFile();
51210
52384
  init_operations();
51211
52385
  init_tools();
51212
- args54 = {
52386
+ args59 = {
51213
52387
  request: UpdateVendorCredentialFileRequest$inboundSchema
51214
52388
  };
51215
52389
  tool$vendorsUpdateVendorCredentialFile = {
@@ -51217,9 +52391,9 @@ var init_vendorsUpdateVendorCredentialFile2 = __esm(() => {
51217
52391
  description: `Update vendor credential file
51218
52392
 
51219
52393
  It will update the vendor credential file properties`,
51220
- args: args54,
51221
- tool: async (client, args55, ctx) => {
51222
- const [result, apiCall] = await vendorsUpdateVendorCredentialFile(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52394
+ args: args59,
52395
+ tool: async (client, args60, ctx) => {
52396
+ const [result, apiCall] = await vendorsUpdateVendorCredentialFile(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51223
52397
  if (!result.ok) {
51224
52398
  return {
51225
52399
  content: [{ type: "text", text: result.error.message }],
@@ -51234,9 +52408,9 @@ It will update the vendor credential file properties`,
51234
52408
 
51235
52409
  // src/funcs/vendorsUpdateVendorDetails.ts
51236
52410
  function vendorsUpdateVendorDetails(client, request, options) {
51237
- return new APIPromise($do57(client, request, options));
52411
+ return new APIPromise($do62(client, request, options));
51238
52412
  }
51239
- async function $do57(client, request, options) {
52413
+ async function $do62(client, request, options) {
51240
52414
  const parsed = safeParse(request, (value) => UpdateVendorDetailsRequest$outboundSchema.parse(value), "Input validation failed");
51241
52415
  if (!parsed.ok) {
51242
52416
  return [parsed, { status: "invalid" }];
@@ -51313,12 +52487,12 @@ var init_vendorsUpdateVendorDetails = __esm(() => {
51313
52487
  });
51314
52488
 
51315
52489
  // src/mcp-server/tools/vendorsUpdateVendorDetails.ts
51316
- var args55, tool$vendorsUpdateVendorDetails;
52490
+ var args60, tool$vendorsUpdateVendorDetails;
51317
52491
  var init_vendorsUpdateVendorDetails2 = __esm(() => {
51318
52492
  init_vendorsUpdateVendorDetails();
51319
52493
  init_operations();
51320
52494
  init_tools();
51321
- args55 = {
52495
+ args60 = {
51322
52496
  request: UpdateVendorDetailsRequest$inboundSchema
51323
52497
  };
51324
52498
  tool$vendorsUpdateVendorDetails = {
@@ -51326,9 +52500,9 @@ var init_vendorsUpdateVendorDetails2 = __esm(() => {
51326
52500
  description: `Update vendor details
51327
52501
 
51328
52502
  It will update the vendor details`,
51329
- args: args55,
51330
- tool: async (client, args56, ctx) => {
51331
- const [result, apiCall] = await vendorsUpdateVendorDetails(client, args56.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52503
+ args: args60,
52504
+ tool: async (client, args61, ctx) => {
52505
+ const [result, apiCall] = await vendorsUpdateVendorDetails(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51332
52506
  if (!result.ok) {
51333
52507
  return {
51334
52508
  content: [{ type: "text", text: result.error.message }],
@@ -51343,9 +52517,9 @@ It will update the vendor details`,
51343
52517
 
51344
52518
  // src/funcs/vendorsUpdateVendorManagedByCompany.ts
51345
52519
  function vendorsUpdateVendorManagedByCompany(client, request, options) {
51346
- return new APIPromise($do58(client, request, options));
52520
+ return new APIPromise($do63(client, request, options));
51347
52521
  }
51348
- async function $do58(client, request, options) {
52522
+ async function $do63(client, request, options) {
51349
52523
  const parsed = safeParse(request, (value) => UpdateVendorManagedByCompanyRequest$outboundSchema.parse(value), "Input validation failed");
51350
52524
  if (!parsed.ok) {
51351
52525
  return [parsed, { status: "invalid" }];
@@ -51421,12 +52595,12 @@ var init_vendorsUpdateVendorManagedByCompany = __esm(() => {
51421
52595
  });
51422
52596
 
51423
52597
  // src/mcp-server/tools/vendorsUpdateVendorManagedByCompany.ts
51424
- var args56, tool$vendorsUpdateVendorManagedByCompany;
52598
+ var args61, tool$vendorsUpdateVendorManagedByCompany;
51425
52599
  var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
51426
52600
  init_vendorsUpdateVendorManagedByCompany();
51427
52601
  init_operations();
51428
52602
  init_tools();
51429
- args56 = {
52603
+ args61 = {
51430
52604
  request: UpdateVendorManagedByCompanyRequest$inboundSchema
51431
52605
  };
51432
52606
  tool$vendorsUpdateVendorManagedByCompany = {
@@ -51434,9 +52608,9 @@ var init_vendorsUpdateVendorManagedByCompany2 = __esm(() => {
51434
52608
  description: `Update vendor managed by company access rights
51435
52609
 
51436
52610
  It will update the vendor managed by company access rights`,
51437
- args: args56,
51438
- tool: async (client, args57, ctx) => {
51439
- const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args57.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52611
+ args: args61,
52612
+ tool: async (client, args62, ctx) => {
52613
+ const [result, apiCall] = await vendorsUpdateVendorManagedByCompany(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51440
52614
  if (!result.ok) {
51441
52615
  return {
51442
52616
  content: [{ type: "text", text: result.error.message }],
@@ -51451,9 +52625,9 @@ It will update the vendor managed by company access rights`,
51451
52625
 
51452
52626
  // src/funcs/vendorsUpdateVendorScrubDetails.ts
51453
52627
  function vendorsUpdateVendorScrubDetails(client, request, options) {
51454
- return new APIPromise($do59(client, request, options));
52628
+ return new APIPromise($do64(client, request, options));
51455
52629
  }
51456
- async function $do59(client, request, options) {
52630
+ async function $do64(client, request, options) {
51457
52631
  const parsed = safeParse(request, (value) => UpdateVendorScrubDetailsRequest$outboundSchema.parse(value), "Input validation failed");
51458
52632
  if (!parsed.ok) {
51459
52633
  return [parsed, { status: "invalid" }];
@@ -51530,12 +52704,12 @@ var init_vendorsUpdateVendorScrubDetails = __esm(() => {
51530
52704
  });
51531
52705
 
51532
52706
  // src/mcp-server/tools/vendorsUpdateVendorScrubDetails.ts
51533
- var args57, tool$vendorsUpdateVendorScrubDetails;
52707
+ var args62, tool$vendorsUpdateVendorScrubDetails;
51534
52708
  var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
51535
52709
  init_vendorsUpdateVendorScrubDetails();
51536
52710
  init_operations();
51537
52711
  init_tools();
51538
- args57 = {
52712
+ args62 = {
51539
52713
  request: UpdateVendorScrubDetailsRequest$inboundSchema
51540
52714
  };
51541
52715
  tool$vendorsUpdateVendorScrubDetails = {
@@ -51543,9 +52717,9 @@ var init_vendorsUpdateVendorScrubDetails2 = __esm(() => {
51543
52717
  description: `Update vendor scrub details
51544
52718
 
51545
52719
  Update vendor scrub details`,
51546
- args: args57,
51547
- tool: async (client, args58, ctx) => {
51548
- const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args58.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52720
+ args: args62,
52721
+ tool: async (client, args63, ctx) => {
52722
+ const [result, apiCall] = await vendorsUpdateVendorScrubDetails(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51549
52723
  if (!result.ok) {
51550
52724
  return {
51551
52725
  content: [{ type: "text", text: result.error.message }],
@@ -51560,9 +52734,9 @@ Update vendor scrub details`,
51560
52734
 
51561
52735
  // src/funcs/webhooksGetWebhookEndpoint.ts
51562
52736
  function webhooksGetWebhookEndpoint(client, request, options) {
51563
- return new APIPromise($do60(client, request, options));
52737
+ return new APIPromise($do65(client, request, options));
51564
52738
  }
51565
- async function $do60(client, request, options) {
52739
+ async function $do65(client, request, options) {
51566
52740
  const parsed = safeParse(request, (value) => GetWebhookEndpointRequest$outboundSchema.parse(value), "Input validation failed");
51567
52741
  if (!parsed.ok) {
51568
52742
  return [parsed, { status: "invalid" }];
@@ -51638,12 +52812,12 @@ var init_webhooksGetWebhookEndpoint = __esm(() => {
51638
52812
  });
51639
52813
 
51640
52814
  // src/mcp-server/tools/webhooksGetWebhookEndpoint.ts
51641
- var args58, tool$webhooksGetWebhookEndpoint;
52815
+ var args63, tool$webhooksGetWebhookEndpoint;
51642
52816
  var init_webhooksGetWebhookEndpoint2 = __esm(() => {
51643
52817
  init_webhooksGetWebhookEndpoint();
51644
52818
  init_operations();
51645
52819
  init_tools();
51646
- args58 = {
52820
+ args63 = {
51647
52821
  request: GetWebhookEndpointRequest$inboundSchema
51648
52822
  };
51649
52823
  tool$webhooksGetWebhookEndpoint = {
@@ -51651,9 +52825,9 @@ var init_webhooksGetWebhookEndpoint2 = __esm(() => {
51651
52825
  description: `Retrieves the webhook endpoint with the given ID.
51652
52826
 
51653
52827
  Returns the definition of a webhook endpoint by ID.`,
51654
- args: args58,
51655
- tool: async (client, args59, ctx) => {
51656
- const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args59.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52828
+ args: args63,
52829
+ tool: async (client, args64, ctx) => {
52830
+ const [result, apiCall] = await webhooksGetWebhookEndpoint(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51657
52831
  if (!result.ok) {
51658
52832
  return {
51659
52833
  content: [{ type: "text", text: result.error.message }],
@@ -51668,9 +52842,9 @@ Returns the definition of a webhook endpoint by ID.`,
51668
52842
 
51669
52843
  // src/funcs/webhooksListAllWebhookEndpoints.ts
51670
52844
  function webhooksListAllWebhookEndpoints(client, request, options) {
51671
- return new APIPromise($do61(client, request, options));
52845
+ return new APIPromise($do66(client, request, options));
51672
52846
  }
51673
- async function $do61(client, request, options) {
52847
+ async function $do66(client, request, options) {
51674
52848
  const parsed = safeParse(request, (value) => ListAllWebhookEndpointsRequest$outboundSchema.parse(value), "Input validation failed");
51675
52849
  if (!parsed.ok) {
51676
52850
  return [parsed, { status: "invalid" }];
@@ -51746,12 +52920,12 @@ var init_webhooksListAllWebhookEndpoints = __esm(() => {
51746
52920
  });
51747
52921
 
51748
52922
  // src/mcp-server/tools/webhooksListAllWebhookEndpoints.ts
51749
- var args59, tool$webhooksListAllWebhookEndpoints;
52923
+ var args64, tool$webhooksListAllWebhookEndpoints;
51750
52924
  var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
51751
52925
  init_webhooksListAllWebhookEndpoints();
51752
52926
  init_operations();
51753
52927
  init_tools();
51754
- args59 = {
52928
+ args64 = {
51755
52929
  request: ListAllWebhookEndpointsRequest$inboundSchema
51756
52930
  };
51757
52931
  tool$webhooksListAllWebhookEndpoints = {
@@ -51759,9 +52933,9 @@ var init_webhooksListAllWebhookEndpoints2 = __esm(() => {
51759
52933
  description: `List all webhook endpoints
51760
52934
 
51761
52935
  Returns a list of your webhook endpoints.`,
51762
- args: args59,
51763
- tool: async (client, args60, ctx) => {
51764
- const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args60.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52936
+ args: args64,
52937
+ tool: async (client, args65, ctx) => {
52938
+ const [result, apiCall] = await webhooksListAllWebhookEndpoints(client, args65.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51765
52939
  if (!result.ok) {
51766
52940
  return {
51767
52941
  content: [{ type: "text", text: result.error.message }],
@@ -51776,9 +52950,9 @@ Returns a list of your webhook endpoints.`,
51776
52950
 
51777
52951
  // src/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
51778
52952
  function webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, request, options) {
51779
- return new APIPromise($do62(client, request, options));
52953
+ return new APIPromise($do67(client, request, options));
51780
52954
  }
51781
- async function $do62(client, request, options) {
52955
+ async function $do67(client, request, options) {
51782
52956
  const parsed = safeParse(request, (value) => UpdatesTheWebhookEndpointWithTheGivenIdRequest$outboundSchema.parse(value), "Input validation failed");
51783
52957
  if (!parsed.ok) {
51784
52958
  return [parsed, { status: "invalid" }];
@@ -51855,12 +53029,12 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId = __esm(() => {
51855
53029
  });
51856
53030
 
51857
53031
  // src/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts
51858
- var args60, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
53032
+ var args65, tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId;
51859
53033
  var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
51860
53034
  init_webhooksUpdatesTheWebhookEndpointWithTheGivenId();
51861
53035
  init_operations();
51862
53036
  init_tools();
51863
- args60 = {
53037
+ args65 = {
51864
53038
  request: UpdatesTheWebhookEndpointWithTheGivenIdRequest$inboundSchema
51865
53039
  };
51866
53040
  tool$webhooksUpdatesTheWebhookEndpointWithTheGivenId = {
@@ -51868,9 +53042,9 @@ var init_webhooksUpdatesTheWebhookEndpointWithTheGivenId2 = __esm(() => {
51868
53042
  description: `Updates the webhook endpoint with the given ID.
51869
53043
 
51870
53044
  Updates the webhook endpoint with the given ID.`,
51871
- args: args60,
51872
- tool: async (client, args61, ctx) => {
51873
- const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args61.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53045
+ args: args65,
53046
+ tool: async (client, args66, ctx) => {
53047
+ const [result, apiCall] = await webhooksUpdatesTheWebhookEndpointWithTheGivenId(client, args66.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51874
53048
  if (!result.ok) {
51875
53049
  return {
51876
53050
  content: [{ type: "text", text: result.error.message }],
@@ -51885,9 +53059,9 @@ Updates the webhook endpoint with the given ID.`,
51885
53059
 
51886
53060
  // src/funcs/zonesGetSecurityZone.ts
51887
53061
  function zonesGetSecurityZone(client, request, options) {
51888
- return new APIPromise($do63(client, request, options));
53062
+ return new APIPromise($do68(client, request, options));
51889
53063
  }
51890
- async function $do63(client, request, options) {
53064
+ async function $do68(client, request, options) {
51891
53065
  const parsed = safeParse(request, (value) => GetSecurityZoneRequest$outboundSchema.parse(value), "Input validation failed");
51892
53066
  if (!parsed.ok) {
51893
53067
  return [parsed, { status: "invalid" }];
@@ -51967,12 +53141,12 @@ var init_zonesGetSecurityZone = __esm(() => {
51967
53141
  });
51968
53142
 
51969
53143
  // src/mcp-server/tools/zonesGetSecurityZone.ts
51970
- var args61, tool$zonesGetSecurityZone;
53144
+ var args66, tool$zonesGetSecurityZone;
51971
53145
  var init_zonesGetSecurityZone2 = __esm(() => {
51972
53146
  init_zonesGetSecurityZone();
51973
53147
  init_operations();
51974
53148
  init_tools();
51975
- args61 = {
53149
+ args66 = {
51976
53150
  request: GetSecurityZoneRequest$inboundSchema
51977
53151
  };
51978
53152
  tool$zonesGetSecurityZone = {
@@ -51986,9 +53160,9 @@ Available \`expand\` scopes are:
51986
53160
  - zone.facility
51987
53161
  - zone.department
51988
53162
  - zone.rules`,
51989
- args: args61,
51990
- tool: async (client, args62, ctx) => {
51991
- const [result, apiCall] = await zonesGetSecurityZone(client, args62.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53163
+ args: args66,
53164
+ tool: async (client, args67, ctx) => {
53165
+ const [result, apiCall] = await zonesGetSecurityZone(client, args67.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
51992
53166
  if (!result.ok) {
51993
53167
  return {
51994
53168
  content: [{ type: "text", text: result.error.message }],
@@ -52003,9 +53177,9 @@ Available \`expand\` scopes are:
52003
53177
 
52004
53178
  // src/funcs/zonesListOrSearchSecurityZones.ts
52005
53179
  function zonesListOrSearchSecurityZones(client, request, options) {
52006
- return new APIPromise($do64(client, request, options));
53180
+ return new APIPromise($do69(client, request, options));
52007
53181
  }
52008
- async function $do64(client, request, options) {
53182
+ async function $do69(client, request, options) {
52009
53183
  const parsed = safeParse(request, (value) => ListOrSearchSecurityZonesRequest$outboundSchema.parse(value), "Input validation failed");
52010
53184
  if (!parsed.ok) {
52011
53185
  return [haltIterator(parsed), { status: "invalid" }];
@@ -52119,12 +53293,12 @@ var init_zonesListOrSearchSecurityZones = __esm(() => {
52119
53293
  });
52120
53294
 
52121
53295
  // src/mcp-server/tools/zonesListOrSearchSecurityZones.ts
52122
- var args62, tool$zonesListOrSearchSecurityZones;
53296
+ var args67, tool$zonesListOrSearchSecurityZones;
52123
53297
  var init_zonesListOrSearchSecurityZones2 = __esm(() => {
52124
53298
  init_zonesListOrSearchSecurityZones();
52125
53299
  init_operations();
52126
53300
  init_tools();
52127
- args62 = {
53301
+ args67 = {
52128
53302
  request: ListOrSearchSecurityZonesRequest$inboundSchema
52129
53303
  };
52130
53304
  tool$zonesListOrSearchSecurityZones = {
@@ -52132,9 +53306,9 @@ var init_zonesListOrSearchSecurityZones2 = __esm(() => {
52132
53306
  description: `List or search security zones
52133
53307
 
52134
53308
  List or search security zones`,
52135
- args: args62,
52136
- tool: async (client, args63, ctx) => {
52137
- const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args63.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53309
+ args: args67,
53310
+ tool: async (client, args68, ctx) => {
53311
+ const [result, apiCall] = await zonesListOrSearchSecurityZones(client, args68.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52138
53312
  if (!result.ok) {
52139
53313
  return {
52140
53314
  content: [{ type: "text", text: result.error.message }],
@@ -52149,9 +53323,9 @@ List or search security zones`,
52149
53323
 
52150
53324
  // src/funcs/zonesSecurityZoneCheckin.ts
52151
53325
  function zonesSecurityZoneCheckin(client, request, options) {
52152
- return new APIPromise($do65(client, request, options));
53326
+ return new APIPromise($do70(client, request, options));
52153
53327
  }
52154
- async function $do65(client, request, options) {
53328
+ async function $do70(client, request, options) {
52155
53329
  const parsed = safeParse(request, (value) => SecurityZoneCheckinRequestBody$outboundSchema.parse(value), "Input validation failed");
52156
53330
  if (!parsed.ok) {
52157
53331
  return [parsed, { status: "invalid" }];
@@ -52221,12 +53395,12 @@ var init_zonesSecurityZoneCheckin = __esm(() => {
52221
53395
  });
52222
53396
 
52223
53397
  // src/mcp-server/tools/zonesSecurityZoneCheckin.ts
52224
- var args63, tool$zonesSecurityZoneCheckin;
53398
+ var args68, tool$zonesSecurityZoneCheckin;
52225
53399
  var init_zonesSecurityZoneCheckin2 = __esm(() => {
52226
53400
  init_zonesSecurityZoneCheckin();
52227
53401
  init_operations();
52228
53402
  init_tools();
52229
- args63 = {
53403
+ args68 = {
52230
53404
  request: SecurityZoneCheckinRequestBody$inboundSchema
52231
53405
  };
52232
53406
  tool$zonesSecurityZoneCheckin = {
@@ -52234,9 +53408,9 @@ var init_zonesSecurityZoneCheckin2 = __esm(() => {
52234
53408
  description: `Security zone checkin request
52235
53409
 
52236
53410
  Security zone checkin request`,
52237
- args: args63,
52238
- tool: async (client, args64, ctx) => {
52239
- const [result, apiCall] = await zonesSecurityZoneCheckin(client, args64.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
53411
+ args: args68,
53412
+ tool: async (client, args69, ctx) => {
53413
+ const [result, apiCall] = await zonesSecurityZoneCheckin(client, args69.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
52240
53414
  if (!result.ok) {
52241
53415
  return {
52242
53416
  content: [{ type: "text", text: result.error.message }],
@@ -52253,7 +53427,7 @@ Security zone checkin request`,
52253
53427
  function createMCPServer(deps) {
52254
53428
  const server = new McpServer({
52255
53429
  name: "GreenSecurity",
52256
- version: "0.37.8"
53430
+ version: "0.37.12"
52257
53431
  });
52258
53432
  const client = new GreenSecurityCore({
52259
53433
  security: deps.security,
@@ -52269,6 +53443,7 @@ function createMCPServer(deps) {
52269
53443
  const register = { tool, resource, resourceTemplate, prompt };
52270
53444
  tool(tool$vendorsCreateVendorRegistration);
52271
53445
  tool(tool$vendorsListVendorJobTitles);
53446
+ tool(tool$vendorsListVendorTypes);
52272
53447
  tool(tool$vendorsListVendorCredentials);
52273
53448
  tool(tool$vendorsGetVendorCredentialDetails);
52274
53449
  tool(tool$vendorsUpdateVendorCredentialData);
@@ -52288,6 +53463,8 @@ function createMCPServer(deps) {
52288
53463
  tool(tool$vendorsListVendorCredentialHistory);
52289
53464
  tool(tool$vendorsListVendorCredentialDataRequests);
52290
53465
  tool(tool$vendorsExpediteTimeRemaining);
53466
+ tool(tool$vendorsGetSubscription);
53467
+ tool(tool$vendorsChangeSubscription);
52291
53468
  tool(tool$vendorsListVendorInvoices);
52292
53469
  tool(tool$vendorsGetVendorInvoiceDetails);
52293
53470
  tool(tool$vendorsListVendorFacilityStatuses);
@@ -52305,6 +53482,7 @@ function createMCPServer(deps) {
52305
53482
  tool(tool$vendorsUpdateVendorManagedByCompany);
52306
53483
  tool(tool$vendorsPurchaseScrubCredits);
52307
53484
  tool(tool$vendorsCreateVendorCompany);
53485
+ tool(tool$vendorsCalculateSubscriptionPrice);
52308
53486
  tool(tool$usersGetCurrentUser);
52309
53487
  tool(tool$usersGetUserById);
52310
53488
  tool(tool$usersPostAuthenticate);
@@ -52332,6 +53510,7 @@ function createMCPServer(deps) {
52332
53510
  tool(tool$invoicesCreateInvoice);
52333
53511
  tool(tool$invoicesUpdateInvoice);
52334
53512
  tool(tool$invoicesMakePayment);
53513
+ tool(tool$systemsListSystems);
52335
53514
  return server;
52336
53515
  }
52337
53516
  var init_server2 = __esm(() => {
@@ -52351,6 +53530,7 @@ var init_server2 = __esm(() => {
52351
53530
  init_organizationsListOrSearchFacilities2();
52352
53531
  init_supportArticlesGetSupportArticle2();
52353
53532
  init_supportArticlesListOrSearchSupportArticles2();
53533
+ init_systemsListSystems2();
52354
53534
  init_usersChangePassword2();
52355
53535
  init_usersGetCurrentUser2();
52356
53536
  init_usersGetUserById2();
@@ -52362,7 +53542,9 @@ var init_server2 = __esm(() => {
52362
53542
  init_vendorsAcceptVendorCredential2();
52363
53543
  init_vendorsAddVendorCredentialFile2();
52364
53544
  init_vendorsAddVendorManagedByCompany2();
53545
+ init_vendorsCalculateSubscriptionPrice2();
52365
53546
  init_vendorScansVendorScanOut2();
53547
+ init_vendorsChangeSubscription2();
52366
53548
  init_vendorsCheckDownloadCode2();
52367
53549
  init_vendorsCreateNewVendorCredentialVersion2();
52368
53550
  init_vendorsCreateOrUpdateBcr2();
@@ -52372,6 +53554,7 @@ var init_server2 = __esm(() => {
52372
53554
  init_vendorsDeleteVendorCredentialFile2();
52373
53555
  init_vendorsDeleteVendorManagedByCompany2();
52374
53556
  init_vendorsExpediteTimeRemaining2();
53557
+ init_vendorsGetSubscription2();
52375
53558
  init_vendorsGetVendorCredentialDetails2();
52376
53559
  init_vendorsGetVendorCredentialFile2();
52377
53560
  init_vendorsGetVendorInvoiceDetails2();
@@ -52390,6 +53573,7 @@ var init_server2 = __esm(() => {
52390
53573
  init_vendorsListVendorScrubDetails2();
52391
53574
  init_vendorsListVendorScrubPackages2();
52392
53575
  init_vendorsListVendorScrubPurchases2();
53576
+ init_vendorsListVendorTypes2();
52393
53577
  init_vendorsPurchaseScrubCredits2();
52394
53578
  init_vendorsSendDownloadCode2();
52395
53579
  init_vendorsSubmitVendorCredential2();
@@ -53595,7 +54779,7 @@ var routes = rn({
53595
54779
  var app = Ve(routes, {
53596
54780
  name: "mcp",
53597
54781
  versionInfo: {
53598
- currentVersion: "0.37.8"
54782
+ currentVersion: "0.37.12"
53599
54783
  }
53600
54784
  });
53601
54785
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -53603,5 +54787,5 @@ export {
53603
54787
  app
53604
54788
  };
53605
54789
 
53606
- //# debugId=C3BBCD6F8E086B3364756E2164756E21
54790
+ //# debugId=970885AD8C048A6364756E2164756E21
53607
54791
  //# sourceMappingURL=mcp-server.js.map