@greensecurity/javascript-sdk 0.37.10 → 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 (344) hide show
  1. package/README.md +13 -1
  2. package/bin/mcp-server.js +1427 -591
  3. package/bin/mcp-server.js.map +33 -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 +49 -0
  9. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  10. package/dist/commonjs/__tests__/zones.test.js +16 -4
  11. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  12. package/dist/commonjs/funcs/systemsListSystems.d.ts +25 -0
  13. package/dist/commonjs/funcs/systemsListSystems.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/systemsListSystems.js +163 -0
  15. package/dist/commonjs/funcs/systemsListSystems.js.map +1 -0
  16. package/dist/commonjs/funcs/vendorsGetSubscription.d.ts +22 -0
  17. package/dist/commonjs/funcs/vendorsGetSubscription.d.ts.map +1 -0
  18. package/dist/commonjs/funcs/vendorsGetSubscription.js +130 -0
  19. package/dist/commonjs/funcs/vendorsGetSubscription.js.map +1 -0
  20. package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts +3 -0
  21. package/dist/commonjs/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
  22. package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +3 -0
  23. package/dist/commonjs/funcs/vendorsGetVendorsDetails.js.map +1 -1
  24. package/dist/commonjs/funcs/vendorsListVendorTypes.d.ts +21 -0
  25. package/dist/commonjs/funcs/vendorsListVendorTypes.d.ts.map +1 -0
  26. package/dist/commonjs/funcs/vendorsListVendorTypes.js +156 -0
  27. package/dist/commonjs/funcs/vendorsListVendorTypes.js.map +1 -0
  28. package/dist/commonjs/lib/config.d.ts +2 -2
  29. package/dist/commonjs/lib/config.js +2 -2
  30. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  31. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  32. package/dist/commonjs/mcp-server/server.js +8 -2
  33. package/dist/commonjs/mcp-server/server.js.map +1 -1
  34. package/dist/commonjs/mcp-server/tools/systemsListSystems.d.ts +8 -0
  35. package/dist/commonjs/mcp-server/tools/systemsListSystems.d.ts.map +1 -0
  36. package/dist/commonjs/mcp-server/tools/systemsListSystems.js +68 -0
  37. package/dist/commonjs/mcp-server/tools/systemsListSystems.js.map +1 -0
  38. package/dist/commonjs/mcp-server/tools/vendorsGetSubscription.d.ts +8 -0
  39. package/dist/commonjs/mcp-server/tools/vendorsGetSubscription.d.ts.map +1 -0
  40. package/dist/commonjs/mcp-server/tools/vendorsGetSubscription.js +68 -0
  41. package/dist/commonjs/mcp-server/tools/vendorsGetSubscription.js.map +1 -0
  42. package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
  43. package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js +4 -1
  44. package/dist/commonjs/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
  45. package/dist/commonjs/mcp-server/tools/vendorsListVendorTypes.d.ts +8 -0
  46. package/dist/commonjs/mcp-server/tools/vendorsListVendorTypes.d.ts.map +1 -0
  47. package/dist/commonjs/mcp-server/tools/vendorsListVendorTypes.js +64 -0
  48. package/dist/commonjs/mcp-server/tools/vendorsListVendorTypes.js.map +1 -0
  49. package/dist/commonjs/models/components/company.d.ts +3 -0
  50. package/dist/commonjs/models/components/company.d.ts.map +1 -1
  51. package/dist/commonjs/models/components/company.js +5 -0
  52. package/dist/commonjs/models/components/company.js.map +1 -1
  53. package/dist/commonjs/models/components/companyvendortyperestriction.d.ts +80 -0
  54. package/dist/commonjs/models/components/companyvendortyperestriction.d.ts.map +1 -0
  55. package/dist/commonjs/models/components/companyvendortyperestriction.js +132 -0
  56. package/dist/commonjs/models/components/companyvendortyperestriction.js.map +1 -0
  57. package/dist/commonjs/models/components/expand.d.ts +15 -0
  58. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  59. package/dist/commonjs/models/components/expand.js +5 -0
  60. package/dist/commonjs/models/components/expand.js.map +1 -1
  61. package/dist/commonjs/models/components/facility.d.ts +18 -18
  62. package/dist/commonjs/models/components/facility.d.ts.map +1 -1
  63. package/dist/commonjs/models/components/facility.js +21 -21
  64. package/dist/commonjs/models/components/facility.js.map +1 -1
  65. package/dist/commonjs/models/components/facilitysummary.d.ts +28 -0
  66. package/dist/commonjs/models/components/facilitysummary.d.ts.map +1 -1
  67. package/dist/commonjs/models/components/facilitysummary.js +50 -1
  68. package/dist/commonjs/models/components/facilitysummary.js.map +1 -1
  69. package/dist/commonjs/models/components/facilityvendortype.d.ts +71 -0
  70. package/dist/commonjs/models/components/facilityvendortype.d.ts.map +1 -0
  71. package/dist/commonjs/models/components/facilityvendortype.js +137 -0
  72. package/dist/commonjs/models/components/facilityvendortype.js.map +1 -0
  73. package/dist/commonjs/models/components/index.d.ts +3 -0
  74. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  75. package/dist/commonjs/models/components/index.js +3 -0
  76. package/dist/commonjs/models/components/index.js.map +1 -1
  77. package/dist/commonjs/models/components/invoiceitem.d.ts +33 -0
  78. package/dist/commonjs/models/components/invoiceitem.d.ts.map +1 -1
  79. package/dist/commonjs/models/components/invoiceitem.js +48 -1
  80. package/dist/commonjs/models/components/invoiceitem.js.map +1 -1
  81. package/dist/commonjs/models/components/productvariant.d.ts +4 -4
  82. package/dist/commonjs/models/components/productvariant.d.ts.map +1 -1
  83. package/dist/commonjs/models/components/productvariant.js +4 -4
  84. package/dist/commonjs/models/components/productvariant.js.map +1 -1
  85. package/dist/commonjs/models/components/subscription.d.ts +3 -0
  86. package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
  87. package/dist/commonjs/models/components/subscription.js +5 -0
  88. package/dist/commonjs/models/components/subscription.js.map +1 -1
  89. package/dist/commonjs/models/components/systemsummary.d.ts +3 -0
  90. package/dist/commonjs/models/components/systemsummary.d.ts.map +1 -1
  91. package/dist/commonjs/models/components/systemsummary.js +3 -0
  92. package/dist/commonjs/models/components/systemsummary.js.map +1 -1
  93. package/dist/commonjs/models/components/vendor.d.ts +56 -0
  94. package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
  95. package/dist/commonjs/models/components/vendor.js +69 -1
  96. package/dist/commonjs/models/components/vendor.js.map +1 -1
  97. package/dist/commonjs/models/components/vendorgroup.d.ts +38 -0
  98. package/dist/commonjs/models/components/vendorgroup.d.ts.map +1 -0
  99. package/dist/commonjs/models/components/vendorgroup.js +84 -0
  100. package/dist/commonjs/models/components/vendorgroup.js.map +1 -0
  101. package/dist/commonjs/models/components/zoneconfig.d.ts +15 -15
  102. package/dist/commonjs/models/components/zoneconfig.d.ts.map +1 -1
  103. package/dist/commonjs/models/components/zoneconfig.js +18 -18
  104. package/dist/commonjs/models/components/zoneconfig.js.map +1 -1
  105. package/dist/commonjs/models/operations/getsubscription.d.ts +69 -0
  106. package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -0
  107. package/dist/commonjs/models/operations/getsubscription.js +108 -0
  108. package/dist/commonjs/models/operations/getsubscription.js.map +1 -0
  109. package/dist/commonjs/models/operations/index.d.ts +3 -0
  110. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  111. package/dist/commonjs/models/operations/index.js +3 -0
  112. package/dist/commonjs/models/operations/index.js.map +1 -1
  113. package/dist/commonjs/models/operations/listsystems.d.ts +116 -0
  114. package/dist/commonjs/models/operations/listsystems.d.ts.map +1 -0
  115. package/dist/commonjs/models/operations/listsystems.js +155 -0
  116. package/dist/commonjs/models/operations/listsystems.js.map +1 -0
  117. package/dist/commonjs/models/operations/listvendortypes.d.ts +106 -0
  118. package/dist/commonjs/models/operations/listvendortypes.d.ts.map +1 -0
  119. package/dist/commonjs/models/operations/listvendortypes.js +149 -0
  120. package/dist/commonjs/models/operations/listvendortypes.js.map +1 -0
  121. package/dist/commonjs/react-query/index.d.ts +3 -0
  122. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  123. package/dist/commonjs/react-query/index.js +3 -0
  124. package/dist/commonjs/react-query/index.js.map +1 -1
  125. package/dist/commonjs/react-query/systemsListSystems.d.ts +97 -0
  126. package/dist/commonjs/react-query/systemsListSystems.d.ts.map +1 -0
  127. package/dist/commonjs/react-query/systemsListSystems.js +175 -0
  128. package/dist/commonjs/react-query/systemsListSystems.js.map +1 -0
  129. package/dist/commonjs/react-query/vendorsGetSubscription.d.ts +51 -0
  130. package/dist/commonjs/react-query/vendorsGetSubscription.d.ts.map +1 -0
  131. package/dist/commonjs/react-query/vendorsGetSubscription.js +103 -0
  132. package/dist/commonjs/react-query/vendorsGetSubscription.js.map +1 -0
  133. package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts +6 -0
  134. package/dist/commonjs/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
  135. package/dist/commonjs/react-query/vendorsGetVendorsDetails.js +6 -0
  136. package/dist/commonjs/react-query/vendorsGetVendorsDetails.js.map +1 -1
  137. package/dist/commonjs/react-query/vendorsListVendorTypes.d.ts +75 -0
  138. package/dist/commonjs/react-query/vendorsListVendorTypes.d.ts.map +1 -0
  139. package/dist/commonjs/react-query/vendorsListVendorTypes.js +155 -0
  140. package/dist/commonjs/react-query/vendorsListVendorTypes.js.map +1 -0
  141. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  142. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  143. package/dist/commonjs/sdk/sdk.js +4 -0
  144. package/dist/commonjs/sdk/sdk.js.map +1 -1
  145. package/dist/commonjs/sdk/systems.d.ts +19 -0
  146. package/dist/commonjs/sdk/systems.d.ts.map +1 -0
  147. package/dist/commonjs/sdk/systems.js +26 -0
  148. package/dist/commonjs/sdk/systems.js.map +1 -0
  149. package/dist/commonjs/sdk/vendors.d.ts +30 -7
  150. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  151. package/dist/commonjs/sdk/vendors.js +36 -9
  152. package/dist/commonjs/sdk/vendors.js.map +1 -1
  153. package/dist/esm/__tests__/systems.test.d.ts +2 -0
  154. package/dist/esm/__tests__/systems.test.d.ts.map +1 -0
  155. package/dist/esm/__tests__/systems.test.js +44 -0
  156. package/dist/esm/__tests__/systems.test.js.map +1 -0
  157. package/dist/esm/__tests__/vendors.test.js +49 -0
  158. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  159. package/dist/esm/__tests__/zones.test.js +16 -4
  160. package/dist/esm/__tests__/zones.test.js.map +1 -1
  161. package/dist/esm/funcs/systemsListSystems.d.ts +25 -0
  162. package/dist/esm/funcs/systemsListSystems.d.ts.map +1 -0
  163. package/dist/esm/funcs/systemsListSystems.js +127 -0
  164. package/dist/esm/funcs/systemsListSystems.js.map +1 -0
  165. package/dist/esm/funcs/vendorsGetSubscription.d.ts +22 -0
  166. package/dist/esm/funcs/vendorsGetSubscription.d.ts.map +1 -0
  167. package/dist/esm/funcs/vendorsGetSubscription.js +94 -0
  168. package/dist/esm/funcs/vendorsGetSubscription.js.map +1 -0
  169. package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts +3 -0
  170. package/dist/esm/funcs/vendorsGetVendorsDetails.d.ts.map +1 -1
  171. package/dist/esm/funcs/vendorsGetVendorsDetails.js +3 -0
  172. package/dist/esm/funcs/vendorsGetVendorsDetails.js.map +1 -1
  173. package/dist/esm/funcs/vendorsListVendorTypes.d.ts +21 -0
  174. package/dist/esm/funcs/vendorsListVendorTypes.d.ts.map +1 -0
  175. package/dist/esm/funcs/vendorsListVendorTypes.js +120 -0
  176. package/dist/esm/funcs/vendorsListVendorTypes.js.map +1 -0
  177. package/dist/esm/lib/config.d.ts +2 -2
  178. package/dist/esm/lib/config.js +2 -2
  179. package/dist/esm/mcp-server/mcp-server.js +1 -1
  180. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  181. package/dist/esm/mcp-server/server.js +8 -2
  182. package/dist/esm/mcp-server/server.js.map +1 -1
  183. package/dist/esm/mcp-server/tools/systemsListSystems.d.ts +8 -0
  184. package/dist/esm/mcp-server/tools/systemsListSystems.d.ts.map +1 -0
  185. package/dist/esm/mcp-server/tools/systemsListSystems.js +32 -0
  186. package/dist/esm/mcp-server/tools/systemsListSystems.js.map +1 -0
  187. package/dist/esm/mcp-server/tools/vendorsGetSubscription.d.ts +8 -0
  188. package/dist/esm/mcp-server/tools/vendorsGetSubscription.d.ts.map +1 -0
  189. package/dist/esm/mcp-server/tools/vendorsGetSubscription.js +32 -0
  190. package/dist/esm/mcp-server/tools/vendorsGetSubscription.js.map +1 -0
  191. package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.d.ts.map +1 -1
  192. package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js +4 -1
  193. package/dist/esm/mcp-server/tools/vendorsGetVendorsDetails.js.map +1 -1
  194. package/dist/esm/mcp-server/tools/vendorsListVendorTypes.d.ts +8 -0
  195. package/dist/esm/mcp-server/tools/vendorsListVendorTypes.d.ts.map +1 -0
  196. package/dist/esm/mcp-server/tools/vendorsListVendorTypes.js +28 -0
  197. package/dist/esm/mcp-server/tools/vendorsListVendorTypes.js.map +1 -0
  198. package/dist/esm/models/components/company.d.ts +3 -0
  199. package/dist/esm/models/components/company.d.ts.map +1 -1
  200. package/dist/esm/models/components/company.js +5 -0
  201. package/dist/esm/models/components/company.js.map +1 -1
  202. package/dist/esm/models/components/companyvendortyperestriction.d.ts +80 -0
  203. package/dist/esm/models/components/companyvendortyperestriction.d.ts.map +1 -0
  204. package/dist/esm/models/components/companyvendortyperestriction.js +90 -0
  205. package/dist/esm/models/components/companyvendortyperestriction.js.map +1 -0
  206. package/dist/esm/models/components/expand.d.ts +15 -0
  207. package/dist/esm/models/components/expand.d.ts.map +1 -1
  208. package/dist/esm/models/components/expand.js +5 -0
  209. package/dist/esm/models/components/expand.js.map +1 -1
  210. package/dist/esm/models/components/facility.d.ts +18 -18
  211. package/dist/esm/models/components/facility.d.ts.map +1 -1
  212. package/dist/esm/models/components/facility.js +18 -18
  213. package/dist/esm/models/components/facility.js.map +1 -1
  214. package/dist/esm/models/components/facilitysummary.d.ts +28 -0
  215. package/dist/esm/models/components/facilitysummary.d.ts.map +1 -1
  216. package/dist/esm/models/components/facilitysummary.js +47 -0
  217. package/dist/esm/models/components/facilitysummary.js.map +1 -1
  218. package/dist/esm/models/components/facilityvendortype.d.ts +71 -0
  219. package/dist/esm/models/components/facilityvendortype.d.ts.map +1 -0
  220. package/dist/esm/models/components/facilityvendortype.js +97 -0
  221. package/dist/esm/models/components/facilityvendortype.js.map +1 -0
  222. package/dist/esm/models/components/index.d.ts +3 -0
  223. package/dist/esm/models/components/index.d.ts.map +1 -1
  224. package/dist/esm/models/components/index.js +3 -0
  225. package/dist/esm/models/components/index.js.map +1 -1
  226. package/dist/esm/models/components/invoiceitem.d.ts +33 -0
  227. package/dist/esm/models/components/invoiceitem.d.ts.map +1 -1
  228. package/dist/esm/models/components/invoiceitem.js +45 -0
  229. package/dist/esm/models/components/invoiceitem.js.map +1 -1
  230. package/dist/esm/models/components/productvariant.d.ts +4 -4
  231. package/dist/esm/models/components/productvariant.d.ts.map +1 -1
  232. package/dist/esm/models/components/productvariant.js +4 -4
  233. package/dist/esm/models/components/productvariant.js.map +1 -1
  234. package/dist/esm/models/components/subscription.d.ts +3 -0
  235. package/dist/esm/models/components/subscription.d.ts.map +1 -1
  236. package/dist/esm/models/components/subscription.js +5 -0
  237. package/dist/esm/models/components/subscription.js.map +1 -1
  238. package/dist/esm/models/components/systemsummary.d.ts +3 -0
  239. package/dist/esm/models/components/systemsummary.d.ts.map +1 -1
  240. package/dist/esm/models/components/systemsummary.js +3 -0
  241. package/dist/esm/models/components/systemsummary.js.map +1 -1
  242. package/dist/esm/models/components/vendor.d.ts +56 -0
  243. package/dist/esm/models/components/vendor.d.ts.map +1 -1
  244. package/dist/esm/models/components/vendor.js +64 -0
  245. package/dist/esm/models/components/vendor.js.map +1 -1
  246. package/dist/esm/models/components/vendorgroup.d.ts +38 -0
  247. package/dist/esm/models/components/vendorgroup.d.ts.map +1 -0
  248. package/dist/esm/models/components/vendorgroup.js +46 -0
  249. package/dist/esm/models/components/vendorgroup.js.map +1 -0
  250. package/dist/esm/models/components/zoneconfig.d.ts +15 -15
  251. package/dist/esm/models/components/zoneconfig.d.ts.map +1 -1
  252. package/dist/esm/models/components/zoneconfig.js +15 -15
  253. package/dist/esm/models/components/zoneconfig.js.map +1 -1
  254. package/dist/esm/models/operations/getsubscription.d.ts +69 -0
  255. package/dist/esm/models/operations/getsubscription.d.ts.map +1 -0
  256. package/dist/esm/models/operations/getsubscription.js +68 -0
  257. package/dist/esm/models/operations/getsubscription.js.map +1 -0
  258. package/dist/esm/models/operations/index.d.ts +3 -0
  259. package/dist/esm/models/operations/index.d.ts.map +1 -1
  260. package/dist/esm/models/operations/index.js +3 -0
  261. package/dist/esm/models/operations/index.js.map +1 -1
  262. package/dist/esm/models/operations/listsystems.d.ts +116 -0
  263. package/dist/esm/models/operations/listsystems.d.ts.map +1 -0
  264. package/dist/esm/models/operations/listsystems.js +113 -0
  265. package/dist/esm/models/operations/listsystems.js.map +1 -0
  266. package/dist/esm/models/operations/listvendortypes.d.ts +106 -0
  267. package/dist/esm/models/operations/listvendortypes.d.ts.map +1 -0
  268. package/dist/esm/models/operations/listvendortypes.js +107 -0
  269. package/dist/esm/models/operations/listvendortypes.js.map +1 -0
  270. package/dist/esm/react-query/index.d.ts +3 -0
  271. package/dist/esm/react-query/index.d.ts.map +1 -1
  272. package/dist/esm/react-query/index.js +3 -0
  273. package/dist/esm/react-query/index.js.map +1 -1
  274. package/dist/esm/react-query/systemsListSystems.d.ts +97 -0
  275. package/dist/esm/react-query/systemsListSystems.d.ts.map +1 -0
  276. package/dist/esm/react-query/systemsListSystems.js +162 -0
  277. package/dist/esm/react-query/systemsListSystems.js.map +1 -0
  278. package/dist/esm/react-query/vendorsGetSubscription.d.ts +51 -0
  279. package/dist/esm/react-query/vendorsGetSubscription.d.ts.map +1 -0
  280. package/dist/esm/react-query/vendorsGetSubscription.js +93 -0
  281. package/dist/esm/react-query/vendorsGetSubscription.js.map +1 -0
  282. package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts +6 -0
  283. package/dist/esm/react-query/vendorsGetVendorsDetails.d.ts.map +1 -1
  284. package/dist/esm/react-query/vendorsGetVendorsDetails.js +6 -0
  285. package/dist/esm/react-query/vendorsGetVendorsDetails.js.map +1 -1
  286. package/dist/esm/react-query/vendorsListVendorTypes.d.ts +75 -0
  287. package/dist/esm/react-query/vendorsListVendorTypes.d.ts.map +1 -0
  288. package/dist/esm/react-query/vendorsListVendorTypes.js +142 -0
  289. package/dist/esm/react-query/vendorsListVendorTypes.js.map +1 -0
  290. package/dist/esm/sdk/sdk.d.ts +3 -0
  291. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  292. package/dist/esm/sdk/sdk.js +4 -0
  293. package/dist/esm/sdk/sdk.js.map +1 -1
  294. package/dist/esm/sdk/systems.d.ts +19 -0
  295. package/dist/esm/sdk/systems.d.ts.map +1 -0
  296. package/dist/esm/sdk/systems.js +22 -0
  297. package/dist/esm/sdk/systems.js.map +1 -0
  298. package/dist/esm/sdk/vendors.d.ts +30 -7
  299. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  300. package/dist/esm/sdk/vendors.js +36 -9
  301. package/dist/esm/sdk/vendors.js.map +1 -1
  302. package/examples/package-lock.json +1 -1
  303. package/jsr.json +1 -1
  304. package/package.json +1 -1
  305. package/src/__tests__/systems.test.ts +47 -0
  306. package/src/__tests__/vendors.test.ts +55 -0
  307. package/src/__tests__/zones.test.ts +16 -4
  308. package/src/funcs/systemsListSystems.ts +257 -0
  309. package/src/funcs/vendorsGetSubscription.ts +186 -0
  310. package/src/funcs/vendorsGetVendorsDetails.ts +3 -0
  311. package/src/funcs/vendorsListVendorTypes.ts +247 -0
  312. package/src/lib/config.ts +2 -2
  313. package/src/mcp-server/mcp-server.ts +1 -1
  314. package/src/mcp-server/server.ts +8 -2
  315. package/src/mcp-server/tools/systemsListSystems.ts +41 -0
  316. package/src/mcp-server/tools/vendorsGetSubscription.ts +41 -0
  317. package/src/mcp-server/tools/vendorsGetVendorsDetails.ts +4 -1
  318. package/src/mcp-server/tools/vendorsListVendorTypes.ts +37 -0
  319. package/src/models/components/company.ts +22 -0
  320. package/src/models/components/companyvendortyperestriction.ts +221 -0
  321. package/src/models/components/expand.ts +5 -0
  322. package/src/models/components/facility.ts +38 -34
  323. package/src/models/components/facilitysummary.ts +83 -0
  324. package/src/models/components/facilityvendortype.ts +178 -0
  325. package/src/models/components/index.ts +3 -0
  326. package/src/models/components/invoiceitem.ts +79 -0
  327. package/src/models/components/productvariant.ts +8 -8
  328. package/src/models/components/subscription.ts +12 -0
  329. package/src/models/components/systemsummary.ts +10 -0
  330. package/src/models/components/vendor.ts +148 -0
  331. package/src/models/components/vendorgroup.ts +86 -0
  332. package/src/models/components/zoneconfig.ts +28 -24
  333. package/src/models/operations/getsubscription.ts +152 -0
  334. package/src/models/operations/index.ts +3 -0
  335. package/src/models/operations/listsystems.ts +250 -0
  336. package/src/models/operations/listvendortypes.ts +236 -0
  337. package/src/react-query/index.ts +3 -0
  338. package/src/react-query/systemsListSystems.ts +353 -0
  339. package/src/react-query/vendorsGetSubscription.ts +182 -0
  340. package/src/react-query/vendorsGetVendorsDetails.ts +6 -0
  341. package/src/react-query/vendorsListVendorTypes.ts +328 -0
  342. package/src/sdk/sdk.ts +6 -0
  343. package/src/sdk/systems.ts +31 -0
  344. package/src/sdk/vendors.ts +62 -17
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.37.10",
22
+ currentVersion: "0.37.12",
23
23
  },
24
24
  });
25
25
 
@@ -25,6 +25,7 @@ import { tool$organizationsListOrSearchDepartments } from "./tools/organizations
25
25
  import { tool$organizationsListOrSearchFacilities } from "./tools/organizationsListOrSearchFacilities.js";
26
26
  import { tool$supportArticlesGetSupportArticle } from "./tools/supportArticlesGetSupportArticle.js";
27
27
  import { tool$supportArticlesListOrSearchSupportArticles } from "./tools/supportArticlesListOrSearchSupportArticles.js";
28
+ import { tool$systemsListSystems } from "./tools/systemsListSystems.js";
28
29
  import { tool$usersChangePassword } from "./tools/usersChangePassword.js";
29
30
  import { tool$usersGetCurrentUser } from "./tools/usersGetCurrentUser.js";
30
31
  import { tool$usersGetUserById } from "./tools/usersGetUserById.js";
@@ -48,6 +49,7 @@ import { tool$vendorsDeclineVendorCredential } from "./tools/vendorsDeclineVendo
48
49
  import { tool$vendorsDeleteVendorCredentialFile } from "./tools/vendorsDeleteVendorCredentialFile.js";
49
50
  import { tool$vendorsDeleteVendorManagedByCompany } from "./tools/vendorsDeleteVendorManagedByCompany.js";
50
51
  import { tool$vendorsExpediteTimeRemaining } from "./tools/vendorsExpediteTimeRemaining.js";
52
+ import { tool$vendorsGetSubscription } from "./tools/vendorsGetSubscription.js";
51
53
  import { tool$vendorsGetVendorCredentialDetails } from "./tools/vendorsGetVendorCredentialDetails.js";
52
54
  import { tool$vendorsGetVendorCredentialFile } from "./tools/vendorsGetVendorCredentialFile.js";
53
55
  import { tool$vendorsGetVendorInvoiceDetails } from "./tools/vendorsGetVendorInvoiceDetails.js";
@@ -66,6 +68,7 @@ import { tool$vendorsListVendorManagedByCompanies } from "./tools/vendorsListVen
66
68
  import { tool$vendorsListVendorScrubDetails } from "./tools/vendorsListVendorScrubDetails.js";
67
69
  import { tool$vendorsListVendorScrubPackages } from "./tools/vendorsListVendorScrubPackages.js";
68
70
  import { tool$vendorsListVendorScrubPurchases } from "./tools/vendorsListVendorScrubPurchases.js";
71
+ import { tool$vendorsListVendorTypes } from "./tools/vendorsListVendorTypes.js";
69
72
  import { tool$vendorsPurchaseScrubCredits } from "./tools/vendorsPurchaseScrubCredits.js";
70
73
  import { tool$vendorsSendDownloadCode } from "./tools/vendorsSendDownloadCode.js";
71
74
  import { tool$vendorsSubmitVendorCredential } from "./tools/vendorsSubmitVendorCredential.js";
@@ -91,7 +94,7 @@ export function createMCPServer(deps: {
91
94
  }) {
92
95
  const server = new McpServer({
93
96
  name: "GreenSecurity",
94
- version: "0.37.10",
97
+ version: "0.37.12",
95
98
  });
96
99
 
97
100
  const client = new GreenSecurityCore({
@@ -123,6 +126,7 @@ export function createMCPServer(deps: {
123
126
 
124
127
  tool(tool$vendorsCreateVendorRegistration);
125
128
  tool(tool$vendorsListVendorJobTitles);
129
+ tool(tool$vendorsListVendorTypes);
126
130
  tool(tool$vendorsListVendorCredentials);
127
131
  tool(tool$vendorsGetVendorCredentialDetails);
128
132
  tool(tool$vendorsUpdateVendorCredentialData);
@@ -142,6 +146,8 @@ export function createMCPServer(deps: {
142
146
  tool(tool$vendorsListVendorCredentialHistory);
143
147
  tool(tool$vendorsListVendorCredentialDataRequests);
144
148
  tool(tool$vendorsExpediteTimeRemaining);
149
+ tool(tool$vendorsGetSubscription);
150
+ tool(tool$vendorsChangeSubscription);
145
151
  tool(tool$vendorsListVendorInvoices);
146
152
  tool(tool$vendorsGetVendorInvoiceDetails);
147
153
  tool(tool$vendorsListVendorFacilityStatuses);
@@ -160,7 +166,6 @@ export function createMCPServer(deps: {
160
166
  tool(tool$vendorsPurchaseScrubCredits);
161
167
  tool(tool$vendorsCreateVendorCompany);
162
168
  tool(tool$vendorsCalculateSubscriptionPrice);
163
- tool(tool$vendorsChangeSubscription);
164
169
  tool(tool$usersGetCurrentUser);
165
170
  tool(tool$usersGetUserById);
166
171
  tool(tool$usersPostAuthenticate);
@@ -188,6 +193,7 @@ export function createMCPServer(deps: {
188
193
  tool(tool$invoicesCreateInvoice);
189
194
  tool(tool$invoicesUpdateInvoice);
190
195
  tool(tool$invoicesMakePayment);
196
+ tool(tool$systemsListSystems);
191
197
 
192
198
  return server;
193
199
  }
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { systemsListSystems } from "../../funcs/systemsListSystems.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.ListSystemsRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$systemsListSystems: ToolDefinition<typeof args> = {
14
+ name: "systems-list-systems",
15
+ description: `List systems
16
+
17
+ List or search systems.
18
+
19
+ Available \`expand\` scopes are:
20
+
21
+ - system.facilities`,
22
+ args,
23
+ tool: async (client, args, ctx) => {
24
+ const [result, apiCall] = await systemsListSystems(
25
+ client,
26
+ args.request,
27
+ { fetchOptions: { signal: ctx.signal } },
28
+ ).$inspect();
29
+
30
+ if (!result.ok) {
31
+ return {
32
+ content: [{ type: "text", text: result.error.message }],
33
+ isError: true,
34
+ };
35
+ }
36
+
37
+ const value = result.value.result;
38
+
39
+ return formatResult(value, apiCall);
40
+ },
41
+ };
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { vendorsGetSubscription } from "../../funcs/vendorsGetSubscription.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.GetSubscriptionRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$vendorsGetSubscription: ToolDefinition<typeof args> = {
14
+ name: "vendors-get-subscription",
15
+ description: `Vendor subscription
16
+
17
+ Get vendor subscription
18
+
19
+ Available \`expand\` scopes are:
20
+
21
+ subscription.expedited_offer`,
22
+ args,
23
+ tool: async (client, args, ctx) => {
24
+ const [result, apiCall] = await vendorsGetSubscription(
25
+ client,
26
+ args.request,
27
+ { fetchOptions: { signal: ctx.signal } },
28
+ ).$inspect();
29
+
30
+ if (!result.ok) {
31
+ return {
32
+ content: [{ type: "text", text: result.error.message }],
33
+ isError: true,
34
+ };
35
+ }
36
+
37
+ const value = result.value;
38
+
39
+ return formatResult(value, apiCall);
40
+ },
41
+ };
@@ -32,7 +32,10 @@ vendor.payment_responsibility
32
32
  vendor.background_check_date_expires
33
33
  vendor.credit_balance
34
34
  vendor.registration_data
35
- vendor.registration_finished`,
35
+ vendor.registration_finished
36
+ vendor.target_facilities
37
+ vendor.pending_invoice
38
+ vendor.vendor_groups`,
36
39
  args,
37
40
  tool: async (client, args, ctx) => {
38
41
  const [result, apiCall] = await vendorsGetVendorsDetails(
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { vendorsListVendorTypes } from "../../funcs/vendorsListVendorTypes.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.ListVendorTypesRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$vendorsListVendorTypes: ToolDefinition<typeof args> = {
14
+ name: "vendors-list-vendor-types",
15
+ description: `List vendor types
16
+
17
+ List vendor types.`,
18
+ args,
19
+ tool: async (client, args, ctx) => {
20
+ const [result, apiCall] = await vendorsListVendorTypes(
21
+ client,
22
+ args.request,
23
+ { fetchOptions: { signal: ctx.signal } },
24
+ ).$inspect();
25
+
26
+ if (!result.ok) {
27
+ return {
28
+ content: [{ type: "text", text: result.error.message }],
29
+ isError: true,
30
+ };
31
+ }
32
+
33
+ const value = result.value.result;
34
+
35
+ return formatResult(value, apiCall);
36
+ },
37
+ };
@@ -8,6 +8,12 @@ import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { RFCDate } from "../../types/rfcdate.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+ import {
12
+ CompanyVendorTypeRestriction,
13
+ CompanyVendorTypeRestriction$inboundSchema,
14
+ CompanyVendorTypeRestriction$Outbound,
15
+ CompanyVendorTypeRestriction$outboundSchema,
16
+ } from "./companyvendortyperestriction.js";
11
17
 
12
18
  export type CompanyLocation = {
13
19
  address?: string | null | undefined;
@@ -52,6 +58,10 @@ export type Company = {
52
58
  contact?: CompanyContact | undefined;
53
59
  tax?: Tax | undefined;
54
60
  stats?: Stats | undefined;
61
+ vendorTypeRestrictions?:
62
+ | Array<CompanyVendorTypeRestriction | null>
63
+ | null
64
+ | undefined;
55
65
  };
56
66
 
57
67
  /** @internal */
@@ -340,9 +350,13 @@ export const Company$inboundSchema: z.ZodType<Company, z.ZodTypeDef, unknown> =
340
350
  contact: z.lazy(() => CompanyContact$inboundSchema).optional(),
341
351
  tax: z.lazy(() => Tax$inboundSchema).optional(),
342
352
  stats: z.lazy(() => Stats$inboundSchema).optional(),
353
+ vendor_type_restrictions: z.nullable(
354
+ z.array(z.nullable(CompanyVendorTypeRestriction$inboundSchema)),
355
+ ).optional(),
343
356
  }).transform((v) => {
344
357
  return remap$(v, {
345
358
  "credit_balance": "creditBalance",
359
+ "vendor_type_restrictions": "vendorTypeRestrictions",
346
360
  });
347
361
  });
348
362
 
@@ -356,6 +370,10 @@ export type Company$Outbound = {
356
370
  contact?: CompanyContact$Outbound | undefined;
357
371
  tax?: Tax$Outbound | undefined;
358
372
  stats?: Stats$Outbound | undefined;
373
+ vendor_type_restrictions?:
374
+ | Array<CompanyVendorTypeRestriction$Outbound | null>
375
+ | null
376
+ | undefined;
359
377
  };
360
378
 
361
379
  /** @internal */
@@ -372,9 +390,13 @@ export const Company$outboundSchema: z.ZodType<
372
390
  contact: z.lazy(() => CompanyContact$outboundSchema).optional(),
373
391
  tax: z.lazy(() => Tax$outboundSchema).optional(),
374
392
  stats: z.lazy(() => Stats$outboundSchema).optional(),
393
+ vendorTypeRestrictions: z.nullable(
394
+ z.array(z.nullable(CompanyVendorTypeRestriction$outboundSchema)),
395
+ ).optional(),
375
396
  }).transform((v) => {
376
397
  return remap$(v, {
377
398
  creditBalance: "credit_balance",
399
+ vendorTypeRestrictions: "vendor_type_restrictions",
378
400
  });
379
401
  });
380
402
 
@@ -0,0 +1,221 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ FacilitySummary,
12
+ FacilitySummary$inboundSchema,
13
+ FacilitySummary$Outbound,
14
+ FacilitySummary$outboundSchema,
15
+ } from "./facilitysummary.js";
16
+ import {
17
+ VendorType,
18
+ VendorType$inboundSchema,
19
+ VendorType$Outbound,
20
+ VendorType$outboundSchema,
21
+ } from "./vendortype.js";
22
+
23
+ export type CompanyVendorTypeRestrictionFacility = FacilitySummary | number;
24
+
25
+ export type CompanyVendorTypeRestrictionVendorType = VendorType | number;
26
+
27
+ /**
28
+ * Reduced list of attributes of the Company Vendor Type Restriction record
29
+ */
30
+ export type CompanyVendorTypeRestriction = {
31
+ id?: number | undefined;
32
+ facility?: FacilitySummary | number | null | undefined;
33
+ vendorType?: VendorType | number | null | undefined;
34
+ };
35
+
36
+ /** @internal */
37
+ export const CompanyVendorTypeRestrictionFacility$inboundSchema: z.ZodType<
38
+ CompanyVendorTypeRestrictionFacility,
39
+ z.ZodTypeDef,
40
+ unknown
41
+ > = z.union([FacilitySummary$inboundSchema, z.number().int()]);
42
+
43
+ /** @internal */
44
+ export type CompanyVendorTypeRestrictionFacility$Outbound =
45
+ | FacilitySummary$Outbound
46
+ | number;
47
+
48
+ /** @internal */
49
+ export const CompanyVendorTypeRestrictionFacility$outboundSchema: z.ZodType<
50
+ CompanyVendorTypeRestrictionFacility$Outbound,
51
+ z.ZodTypeDef,
52
+ CompanyVendorTypeRestrictionFacility
53
+ > = z.union([FacilitySummary$outboundSchema, z.number().int()]);
54
+
55
+ /**
56
+ * @internal
57
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
58
+ */
59
+ export namespace CompanyVendorTypeRestrictionFacility$ {
60
+ /** @deprecated use `CompanyVendorTypeRestrictionFacility$inboundSchema` instead. */
61
+ export const inboundSchema =
62
+ CompanyVendorTypeRestrictionFacility$inboundSchema;
63
+ /** @deprecated use `CompanyVendorTypeRestrictionFacility$outboundSchema` instead. */
64
+ export const outboundSchema =
65
+ CompanyVendorTypeRestrictionFacility$outboundSchema;
66
+ /** @deprecated use `CompanyVendorTypeRestrictionFacility$Outbound` instead. */
67
+ export type Outbound = CompanyVendorTypeRestrictionFacility$Outbound;
68
+ }
69
+
70
+ export function companyVendorTypeRestrictionFacilityToJSON(
71
+ companyVendorTypeRestrictionFacility: CompanyVendorTypeRestrictionFacility,
72
+ ): string {
73
+ return JSON.stringify(
74
+ CompanyVendorTypeRestrictionFacility$outboundSchema.parse(
75
+ companyVendorTypeRestrictionFacility,
76
+ ),
77
+ );
78
+ }
79
+
80
+ export function companyVendorTypeRestrictionFacilityFromJSON(
81
+ jsonString: string,
82
+ ): SafeParseResult<CompanyVendorTypeRestrictionFacility, SDKValidationError> {
83
+ return safeParse(
84
+ jsonString,
85
+ (x) =>
86
+ CompanyVendorTypeRestrictionFacility$inboundSchema.parse(JSON.parse(x)),
87
+ `Failed to parse 'CompanyVendorTypeRestrictionFacility' from JSON`,
88
+ );
89
+ }
90
+
91
+ /** @internal */
92
+ export const CompanyVendorTypeRestrictionVendorType$inboundSchema: z.ZodType<
93
+ CompanyVendorTypeRestrictionVendorType,
94
+ z.ZodTypeDef,
95
+ unknown
96
+ > = z.union([VendorType$inboundSchema, z.number().int()]);
97
+
98
+ /** @internal */
99
+ export type CompanyVendorTypeRestrictionVendorType$Outbound =
100
+ | VendorType$Outbound
101
+ | number;
102
+
103
+ /** @internal */
104
+ export const CompanyVendorTypeRestrictionVendorType$outboundSchema: z.ZodType<
105
+ CompanyVendorTypeRestrictionVendorType$Outbound,
106
+ z.ZodTypeDef,
107
+ CompanyVendorTypeRestrictionVendorType
108
+ > = z.union([VendorType$outboundSchema, z.number().int()]);
109
+
110
+ /**
111
+ * @internal
112
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
113
+ */
114
+ export namespace CompanyVendorTypeRestrictionVendorType$ {
115
+ /** @deprecated use `CompanyVendorTypeRestrictionVendorType$inboundSchema` instead. */
116
+ export const inboundSchema =
117
+ CompanyVendorTypeRestrictionVendorType$inboundSchema;
118
+ /** @deprecated use `CompanyVendorTypeRestrictionVendorType$outboundSchema` instead. */
119
+ export const outboundSchema =
120
+ CompanyVendorTypeRestrictionVendorType$outboundSchema;
121
+ /** @deprecated use `CompanyVendorTypeRestrictionVendorType$Outbound` instead. */
122
+ export type Outbound = CompanyVendorTypeRestrictionVendorType$Outbound;
123
+ }
124
+
125
+ export function companyVendorTypeRestrictionVendorTypeToJSON(
126
+ companyVendorTypeRestrictionVendorType:
127
+ CompanyVendorTypeRestrictionVendorType,
128
+ ): string {
129
+ return JSON.stringify(
130
+ CompanyVendorTypeRestrictionVendorType$outboundSchema.parse(
131
+ companyVendorTypeRestrictionVendorType,
132
+ ),
133
+ );
134
+ }
135
+
136
+ export function companyVendorTypeRestrictionVendorTypeFromJSON(
137
+ jsonString: string,
138
+ ): SafeParseResult<CompanyVendorTypeRestrictionVendorType, SDKValidationError> {
139
+ return safeParse(
140
+ jsonString,
141
+ (x) =>
142
+ CompanyVendorTypeRestrictionVendorType$inboundSchema.parse(JSON.parse(x)),
143
+ `Failed to parse 'CompanyVendorTypeRestrictionVendorType' from JSON`,
144
+ );
145
+ }
146
+
147
+ /** @internal */
148
+ export const CompanyVendorTypeRestriction$inboundSchema: z.ZodType<
149
+ CompanyVendorTypeRestriction,
150
+ z.ZodTypeDef,
151
+ unknown
152
+ > = z.object({
153
+ id: z.number().int().optional(),
154
+ facility: z.nullable(
155
+ z.union([FacilitySummary$inboundSchema, z.number().int()]),
156
+ ).optional(),
157
+ vendor_type: z.nullable(z.union([VendorType$inboundSchema, z.number().int()]))
158
+ .optional(),
159
+ }).transform((v) => {
160
+ return remap$(v, {
161
+ "vendor_type": "vendorType",
162
+ });
163
+ });
164
+
165
+ /** @internal */
166
+ export type CompanyVendorTypeRestriction$Outbound = {
167
+ id?: number | undefined;
168
+ facility?: FacilitySummary$Outbound | number | null | undefined;
169
+ vendor_type?: VendorType$Outbound | number | null | undefined;
170
+ };
171
+
172
+ /** @internal */
173
+ export const CompanyVendorTypeRestriction$outboundSchema: z.ZodType<
174
+ CompanyVendorTypeRestriction$Outbound,
175
+ z.ZodTypeDef,
176
+ CompanyVendorTypeRestriction
177
+ > = z.object({
178
+ id: z.number().int().optional(),
179
+ facility: z.nullable(
180
+ z.union([FacilitySummary$outboundSchema, z.number().int()]),
181
+ ).optional(),
182
+ vendorType: z.nullable(z.union([VendorType$outboundSchema, z.number().int()]))
183
+ .optional(),
184
+ }).transform((v) => {
185
+ return remap$(v, {
186
+ vendorType: "vendor_type",
187
+ });
188
+ });
189
+
190
+ /**
191
+ * @internal
192
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
193
+ */
194
+ export namespace CompanyVendorTypeRestriction$ {
195
+ /** @deprecated use `CompanyVendorTypeRestriction$inboundSchema` instead. */
196
+ export const inboundSchema = CompanyVendorTypeRestriction$inboundSchema;
197
+ /** @deprecated use `CompanyVendorTypeRestriction$outboundSchema` instead. */
198
+ export const outboundSchema = CompanyVendorTypeRestriction$outboundSchema;
199
+ /** @deprecated use `CompanyVendorTypeRestriction$Outbound` instead. */
200
+ export type Outbound = CompanyVendorTypeRestriction$Outbound;
201
+ }
202
+
203
+ export function companyVendorTypeRestrictionToJSON(
204
+ companyVendorTypeRestriction: CompanyVendorTypeRestriction,
205
+ ): string {
206
+ return JSON.stringify(
207
+ CompanyVendorTypeRestriction$outboundSchema.parse(
208
+ companyVendorTypeRestriction,
209
+ ),
210
+ );
211
+ }
212
+
213
+ export function companyVendorTypeRestrictionFromJSON(
214
+ jsonString: string,
215
+ ): SafeParseResult<CompanyVendorTypeRestriction, SDKValidationError> {
216
+ return safeParse(
217
+ jsonString,
218
+ (x) => CompanyVendorTypeRestriction$inboundSchema.parse(JSON.parse(x)),
219
+ `Failed to parse 'CompanyVendorTypeRestriction' from JSON`,
220
+ );
221
+ }
@@ -38,6 +38,9 @@ export const Expand = {
38
38
  VendorCreditBalance: "vendor.credit_balance",
39
39
  VendorRegistrationData: "vendor.registration_data",
40
40
  VendorRegistrationFinished: "vendor.registration_finished",
41
+ VendorTargetFacilities: "vendor.target_facilities",
42
+ VendorPendingInvoice: "vendor.pending_invoice",
43
+ VendorVendorGroups: "vendor.vendor_groups",
41
44
  SupportArticleDescription: "support_article.description",
42
45
  SupportArticlePublished: "support_article.published",
43
46
  SupportArticleNotes: "support_article.notes",
@@ -79,6 +82,8 @@ export const Expand = {
79
82
  ZoneFacility: "zone.facility",
80
83
  ZoneDepartment: "zone.department",
81
84
  ZoneRules: "zone.rules",
85
+ SystemFacilities: "system.facilities",
86
+ SubscriptionExpeditedOffer: "subscription.expedited_offer",
82
87
  } as const;
83
88
  /**
84
89
  * An expansion scope that is valid for the object being requested.
@@ -15,6 +15,12 @@ import {
15
15
  Contact$Outbound,
16
16
  Contact$outboundSchema,
17
17
  } from "./contact.js";
18
+ import {
19
+ FacilityVendorType,
20
+ FacilityVendorType$inboundSchema,
21
+ FacilityVendorType$Outbound,
22
+ FacilityVendorType$outboundSchema,
23
+ } from "./facilityvendortype.js";
18
24
  import {
19
25
  ImageSet,
20
26
  ImageSet$inboundSchema,
@@ -27,12 +33,6 @@ import {
27
33
  SystemSummary$Outbound,
28
34
  SystemSummary$outboundSchema,
29
35
  } from "./systemsummary.js";
30
- import {
31
- VendorType,
32
- VendorType$inboundSchema,
33
- VendorType$Outbound,
34
- VendorType$outboundSchema,
35
- } from "./vendortype.js";
36
36
 
37
37
  export type AppointmentPolicy = {
38
38
  standingApptPeriod?: string | undefined;
@@ -131,14 +131,14 @@ export type VendorGuestPolicy = {
131
131
  vendorGuestRequireEmail: boolean;
132
132
  };
133
133
 
134
- export type VendorPolicy = {
134
+ export type FacilityVendorPolicy = {
135
135
  allowDepartmentOther: boolean;
136
136
  allowFood: boolean;
137
137
  allowNonKioskCheckouts: boolean;
138
138
  autoScanOutViolation: boolean;
139
139
  contractorGuestRequireEmail: boolean;
140
140
  visitorCheckinRequirePhone: boolean;
141
- vendorTypes: Array<VendorType | null>;
141
+ vendorTypes: Array<FacilityVendorType>;
142
142
  };
143
143
 
144
144
  export type VisitorPolicy = {
@@ -178,7 +178,7 @@ export type Facility = {
178
178
  system?: SystemSummary | number | undefined;
179
179
  uses?: Uses | undefined;
180
180
  vendorGuestPolicy?: VendorGuestPolicy | null | undefined;
181
- vendorPolicy?: VendorPolicy | null | undefined;
181
+ vendorPolicy?: FacilityVendorPolicy | null | undefined;
182
182
  visible?: boolean | undefined;
183
183
  visitorPolicy?: VisitorPolicy | null | undefined;
184
184
  workflowPolicy?: WorkflowPolicy | null | undefined;
@@ -941,8 +941,8 @@ export function vendorGuestPolicyFromJSON(
941
941
  }
942
942
 
943
943
  /** @internal */
944
- export const VendorPolicy$inboundSchema: z.ZodType<
945
- VendorPolicy,
944
+ export const FacilityVendorPolicy$inboundSchema: z.ZodType<
945
+ FacilityVendorPolicy,
946
946
  z.ZodTypeDef,
947
947
  unknown
948
948
  > = z.object({
@@ -952,7 +952,7 @@ export const VendorPolicy$inboundSchema: z.ZodType<
952
952
  auto_scan_out_violation: z.boolean(),
953
953
  contractor_guest_require_email: z.boolean(),
954
954
  visitor_checkin_require_phone: z.boolean(),
955
- vendor_types: z.array(z.nullable(VendorType$inboundSchema)),
955
+ vendor_types: z.array(FacilityVendorType$inboundSchema),
956
956
  }).transform((v) => {
957
957
  return remap$(v, {
958
958
  "allow_department_other": "allowDepartmentOther",
@@ -966,21 +966,21 @@ export const VendorPolicy$inboundSchema: z.ZodType<
966
966
  });
967
967
 
968
968
  /** @internal */
969
- export type VendorPolicy$Outbound = {
969
+ export type FacilityVendorPolicy$Outbound = {
970
970
  allow_department_other: boolean;
971
971
  allow_food: boolean;
972
972
  allow_non_kiosk_checkouts: boolean;
973
973
  auto_scan_out_violation: boolean;
974
974
  contractor_guest_require_email: boolean;
975
975
  visitor_checkin_require_phone: boolean;
976
- vendor_types: Array<VendorType$Outbound | null>;
976
+ vendor_types: Array<FacilityVendorType$Outbound>;
977
977
  };
978
978
 
979
979
  /** @internal */
980
- export const VendorPolicy$outboundSchema: z.ZodType<
981
- VendorPolicy$Outbound,
980
+ export const FacilityVendorPolicy$outboundSchema: z.ZodType<
981
+ FacilityVendorPolicy$Outbound,
982
982
  z.ZodTypeDef,
983
- VendorPolicy
983
+ FacilityVendorPolicy
984
984
  > = z.object({
985
985
  allowDepartmentOther: z.boolean(),
986
986
  allowFood: z.boolean(),
@@ -988,7 +988,7 @@ export const VendorPolicy$outboundSchema: z.ZodType<
988
988
  autoScanOutViolation: z.boolean(),
989
989
  contractorGuestRequireEmail: z.boolean(),
990
990
  visitorCheckinRequirePhone: z.boolean(),
991
- vendorTypes: z.array(z.nullable(VendorType$outboundSchema)),
991
+ vendorTypes: z.array(FacilityVendorType$outboundSchema),
992
992
  }).transform((v) => {
993
993
  return remap$(v, {
994
994
  allowDepartmentOther: "allow_department_other",
@@ -1005,26 +1005,30 @@ export const VendorPolicy$outboundSchema: z.ZodType<
1005
1005
  * @internal
1006
1006
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1007
1007
  */
1008
- export namespace VendorPolicy$ {
1009
- /** @deprecated use `VendorPolicy$inboundSchema` instead. */
1010
- export const inboundSchema = VendorPolicy$inboundSchema;
1011
- /** @deprecated use `VendorPolicy$outboundSchema` instead. */
1012
- export const outboundSchema = VendorPolicy$outboundSchema;
1013
- /** @deprecated use `VendorPolicy$Outbound` instead. */
1014
- export type Outbound = VendorPolicy$Outbound;
1008
+ export namespace FacilityVendorPolicy$ {
1009
+ /** @deprecated use `FacilityVendorPolicy$inboundSchema` instead. */
1010
+ export const inboundSchema = FacilityVendorPolicy$inboundSchema;
1011
+ /** @deprecated use `FacilityVendorPolicy$outboundSchema` instead. */
1012
+ export const outboundSchema = FacilityVendorPolicy$outboundSchema;
1013
+ /** @deprecated use `FacilityVendorPolicy$Outbound` instead. */
1014
+ export type Outbound = FacilityVendorPolicy$Outbound;
1015
1015
  }
1016
1016
 
1017
- export function vendorPolicyToJSON(vendorPolicy: VendorPolicy): string {
1018
- return JSON.stringify(VendorPolicy$outboundSchema.parse(vendorPolicy));
1017
+ export function facilityVendorPolicyToJSON(
1018
+ facilityVendorPolicy: FacilityVendorPolicy,
1019
+ ): string {
1020
+ return JSON.stringify(
1021
+ FacilityVendorPolicy$outboundSchema.parse(facilityVendorPolicy),
1022
+ );
1019
1023
  }
1020
1024
 
1021
- export function vendorPolicyFromJSON(
1025
+ export function facilityVendorPolicyFromJSON(
1022
1026
  jsonString: string,
1023
- ): SafeParseResult<VendorPolicy, SDKValidationError> {
1027
+ ): SafeParseResult<FacilityVendorPolicy, SDKValidationError> {
1024
1028
  return safeParse(
1025
1029
  jsonString,
1026
- (x) => VendorPolicy$inboundSchema.parse(JSON.parse(x)),
1027
- `Failed to parse 'VendorPolicy' from JSON`,
1030
+ (x) => FacilityVendorPolicy$inboundSchema.parse(JSON.parse(x)),
1031
+ `Failed to parse 'FacilityVendorPolicy' from JSON`,
1028
1032
  );
1029
1033
  }
1030
1034
 
@@ -1204,7 +1208,7 @@ export const Facility$inboundSchema: z.ZodType<
1204
1208
  uses: z.lazy(() => Uses$inboundSchema).optional(),
1205
1209
  vendor_guest_policy: z.nullable(z.lazy(() => VendorGuestPolicy$inboundSchema))
1206
1210
  .optional(),
1207
- vendor_policy: z.nullable(z.lazy(() => VendorPolicy$inboundSchema))
1211
+ vendor_policy: z.nullable(z.lazy(() => FacilityVendorPolicy$inboundSchema))
1208
1212
  .optional(),
1209
1213
  visible: z.boolean().optional(),
1210
1214
  visitor_policy: z.nullable(z.lazy(() => VisitorPolicy$inboundSchema))
@@ -1244,7 +1248,7 @@ export type Facility$Outbound = {
1244
1248
  system?: SystemSummary$Outbound | number | undefined;
1245
1249
  uses?: Uses$Outbound | undefined;
1246
1250
  vendor_guest_policy?: VendorGuestPolicy$Outbound | null | undefined;
1247
- vendor_policy?: VendorPolicy$Outbound | null | undefined;
1251
+ vendor_policy?: FacilityVendorPolicy$Outbound | null | undefined;
1248
1252
  visible?: boolean | undefined;
1249
1253
  visitor_policy?: VisitorPolicy$Outbound | null | undefined;
1250
1254
  workflow_policy?: WorkflowPolicy$Outbound | null | undefined;
@@ -1275,7 +1279,7 @@ export const Facility$outboundSchema: z.ZodType<
1275
1279
  uses: z.lazy(() => Uses$outboundSchema).optional(),
1276
1280
  vendorGuestPolicy: z.nullable(z.lazy(() => VendorGuestPolicy$outboundSchema))
1277
1281
  .optional(),
1278
- vendorPolicy: z.nullable(z.lazy(() => VendorPolicy$outboundSchema))
1282
+ vendorPolicy: z.nullable(z.lazy(() => FacilityVendorPolicy$outboundSchema))
1279
1283
  .optional(),
1280
1284
  visible: z.boolean().optional(),
1281
1285
  visitorPolicy: z.nullable(z.lazy(() => VisitorPolicy$outboundSchema))