@greensecurity/javascript-sdk 0.46.0-beta.7 → 0.46.0-beta.8

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 (353) hide show
  1. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  2. package/dist/commonjs/__tests__/webhooks.test.js +4 -5
  3. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  4. package/dist/commonjs/__tests__/zoneDevicesList.test.d.ts +2 -0
  5. package/dist/commonjs/__tests__/zoneDevicesList.test.d.ts.map +1 -0
  6. package/dist/commonjs/__tests__/zoneDevicesList.test.js +31 -0
  7. package/dist/commonjs/__tests__/zoneDevicesList.test.js.map +1 -0
  8. package/dist/commonjs/__tests__/zones.test.js +12 -9
  9. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  10. package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts +1 -0
  11. package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts.map +1 -1
  12. package/dist/commonjs/admin-funcs/zoneDevicesList.js +3 -0
  13. package/dist/commonjs/admin-funcs/zoneDevicesList.js.map +1 -1
  14. package/dist/commonjs/funcs/companiesLookupCompanies.d.ts +3 -0
  15. package/dist/commonjs/funcs/companiesLookupCompanies.d.ts.map +1 -1
  16. package/dist/commonjs/funcs/companiesLookupCompanies.js +3 -0
  17. package/dist/commonjs/funcs/companiesLookupCompanies.js.map +1 -1
  18. package/dist/commonjs/funcs/organizationsGetFacility.d.ts +1 -0
  19. package/dist/commonjs/funcs/organizationsGetFacility.d.ts.map +1 -1
  20. package/dist/commonjs/funcs/organizationsGetFacility.js +1 -0
  21. package/dist/commonjs/funcs/organizationsGetFacility.js.map +1 -1
  22. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts +1 -0
  23. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
  24. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js +1 -0
  25. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  26. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts +9 -2
  27. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  28. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js +9 -2
  29. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
  30. package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts +7 -1
  31. package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
  32. package/dist/commonjs/funcs/vendorsCreateVendorCompany.js +7 -1
  33. package/dist/commonjs/funcs/vendorsCreateVendorCompany.js.map +1 -1
  34. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
  35. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  36. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js +9 -1
  37. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  38. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts +3 -1
  39. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  40. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js +3 -1
  41. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js.map +1 -1
  42. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
  43. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  44. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js +10 -1
  45. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  46. package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts +1 -0
  47. package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts.map +1 -1
  48. package/dist/commonjs/funcs/zonesGetSecurityZone.js +1 -0
  49. package/dist/commonjs/funcs/zonesGetSecurityZone.js.map +1 -1
  50. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts +2 -0
  51. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  52. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js +6 -2
  53. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
  54. package/dist/commonjs/index.extras.d.ts +14 -0
  55. package/dist/commonjs/index.extras.d.ts.map +1 -1
  56. package/dist/commonjs/index.extras.js +16 -0
  57. package/dist/commonjs/index.extras.js.map +1 -1
  58. package/dist/commonjs/lib/config.d.ts +3 -3
  59. package/dist/commonjs/lib/config.js +3 -3
  60. package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts +4 -0
  61. package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts.map +1 -1
  62. package/dist/commonjs/models/components/authenticatesuccessresponse.js +2 -0
  63. package/dist/commonjs/models/components/authenticatesuccessresponse.js.map +1 -1
  64. package/dist/commonjs/models/components/devicecountpair.d.ts +28 -0
  65. package/dist/commonjs/models/components/devicecountpair.d.ts.map +1 -0
  66. package/dist/commonjs/models/components/devicecountpair.js +61 -0
  67. package/dist/commonjs/models/components/devicecountpair.js.map +1 -0
  68. package/dist/commonjs/models/components/devicecounts.d.ts +29 -0
  69. package/dist/commonjs/models/components/devicecounts.d.ts.map +1 -0
  70. package/dist/commonjs/models/components/devicecounts.js +61 -0
  71. package/dist/commonjs/models/components/devicecounts.js.map +1 -0
  72. package/dist/commonjs/models/components/expand.d.ts +2 -0
  73. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  74. package/dist/commonjs/models/components/expand.js +2 -0
  75. package/dist/commonjs/models/components/expand.js.map +1 -1
  76. package/dist/commonjs/models/components/facility.d.ts +6 -0
  77. package/dist/commonjs/models/components/facility.d.ts.map +1 -1
  78. package/dist/commonjs/models/components/facility.js +5 -0
  79. package/dist/commonjs/models/components/facility.js.map +1 -1
  80. package/dist/commonjs/models/components/index.d.ts +2 -0
  81. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  82. package/dist/commonjs/models/components/index.js +2 -0
  83. package/dist/commonjs/models/components/index.js.map +1 -1
  84. package/dist/commonjs/models/components/user.d.ts +4 -0
  85. package/dist/commonjs/models/components/user.d.ts.map +1 -1
  86. package/dist/commonjs/models/components/user.js +2 -0
  87. package/dist/commonjs/models/components/user.js.map +1 -1
  88. package/dist/commonjs/models/components/zone.d.ts +6 -0
  89. package/dist/commonjs/models/components/zone.d.ts.map +1 -1
  90. package/dist/commonjs/models/components/zone.js +5 -0
  91. package/dist/commonjs/models/components/zone.js.map +1 -1
  92. package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts +5 -0
  93. package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts.map +1 -1
  94. package/dist/commonjs/models/operations/listorsearchsecurityzones.js +1 -0
  95. package/dist/commonjs/models/operations/listorsearchsecurityzones.js.map +1 -1
  96. package/dist/commonjs/react-query/companiesLookupCompanies.d.ts +12 -0
  97. package/dist/commonjs/react-query/companiesLookupCompanies.d.ts.map +1 -1
  98. package/dist/commonjs/react-query/companiesLookupCompanies.js +12 -0
  99. package/dist/commonjs/react-query/companiesLookupCompanies.js.map +1 -1
  100. package/dist/commonjs/react-query/organizationsGetFacility.d.ts +2 -0
  101. package/dist/commonjs/react-query/organizationsGetFacility.d.ts.map +1 -1
  102. package/dist/commonjs/react-query/organizationsGetFacility.js +2 -0
  103. package/dist/commonjs/react-query/organizationsGetFacility.js.map +1 -1
  104. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts +4 -0
  105. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  106. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js +4 -0
  107. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  108. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts +9 -2
  109. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  110. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.js +9 -2
  111. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.js.map +1 -1
  112. package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts +7 -1
  113. package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
  114. package/dist/commonjs/react-query/vendorsCreateVendorCompany.js +7 -1
  115. package/dist/commonjs/react-query/vendorsCreateVendorCompany.js.map +1 -1
  116. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
  117. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  118. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.js +9 -1
  119. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  120. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts +3 -1
  121. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  122. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js +3 -1
  123. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js.map +1 -1
  124. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
  125. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  126. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.js +10 -1
  127. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  128. package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts +2 -0
  129. package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts.map +1 -1
  130. package/dist/commonjs/react-query/zonesGetSecurityZone.js +2 -0
  131. package/dist/commonjs/react-query/zonesGetSecurityZone.js.map +1 -1
  132. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.d.ts +2 -0
  133. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.d.ts.map +1 -1
  134. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.js +2 -0
  135. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.js.map +1 -1
  136. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts +10 -0
  137. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  138. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js +8 -0
  139. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js.map +1 -1
  140. package/dist/commonjs/sdk/companies.d.ts +3 -0
  141. package/dist/commonjs/sdk/companies.d.ts.map +1 -1
  142. package/dist/commonjs/sdk/companies.js +3 -0
  143. package/dist/commonjs/sdk/companies.js.map +1 -1
  144. package/dist/commonjs/sdk/organizations.d.ts +2 -0
  145. package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
  146. package/dist/commonjs/sdk/organizations.js +2 -0
  147. package/dist/commonjs/sdk/organizations.js.map +1 -1
  148. package/dist/commonjs/sdk/vendors.d.ts +38 -6
  149. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  150. package/dist/commonjs/sdk/vendors.js +39 -7
  151. package/dist/commonjs/sdk/vendors.js.map +1 -1
  152. package/dist/commonjs/sdk/zones.d.ts +3 -0
  153. package/dist/commonjs/sdk/zones.d.ts.map +1 -1
  154. package/dist/commonjs/sdk/zones.js +3 -0
  155. package/dist/commonjs/sdk/zones.js.map +1 -1
  156. package/dist/esm/__tests__/vendors.test.js +1 -1
  157. package/dist/esm/__tests__/webhooks.test.js +4 -5
  158. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  159. package/dist/esm/__tests__/zoneDevicesList.test.d.ts +2 -0
  160. package/dist/esm/__tests__/zoneDevicesList.test.d.ts.map +1 -0
  161. package/dist/esm/__tests__/zoneDevicesList.test.js +29 -0
  162. package/dist/esm/__tests__/zoneDevicesList.test.js.map +1 -0
  163. package/dist/esm/__tests__/zones.test.js +12 -9
  164. package/dist/esm/__tests__/zones.test.js.map +1 -1
  165. package/dist/esm/admin-funcs/zoneDevicesList.d.ts +1 -0
  166. package/dist/esm/admin-funcs/zoneDevicesList.d.ts.map +1 -1
  167. package/dist/esm/admin-funcs/zoneDevicesList.js +3 -0
  168. package/dist/esm/admin-funcs/zoneDevicesList.js.map +1 -1
  169. package/dist/esm/funcs/companiesLookupCompanies.d.ts +3 -0
  170. package/dist/esm/funcs/companiesLookupCompanies.d.ts.map +1 -1
  171. package/dist/esm/funcs/companiesLookupCompanies.js +3 -0
  172. package/dist/esm/funcs/companiesLookupCompanies.js.map +1 -1
  173. package/dist/esm/funcs/organizationsGetFacility.d.ts +1 -0
  174. package/dist/esm/funcs/organizationsGetFacility.d.ts.map +1 -1
  175. package/dist/esm/funcs/organizationsGetFacility.js +1 -0
  176. package/dist/esm/funcs/organizationsGetFacility.js.map +1 -1
  177. package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts +1 -0
  178. package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
  179. package/dist/esm/funcs/organizationsListOrSearchFacilities.js +1 -0
  180. package/dist/esm/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  181. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts +9 -2
  182. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  183. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js +9 -2
  184. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
  185. package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts +7 -1
  186. package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
  187. package/dist/esm/funcs/vendorsCreateVendorCompany.js +7 -1
  188. package/dist/esm/funcs/vendorsCreateVendorCompany.js.map +1 -1
  189. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
  190. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  191. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js +9 -1
  192. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  193. package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts +3 -1
  194. package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  195. package/dist/esm/funcs/vendorsUpdateVendorCustomField.js +3 -1
  196. package/dist/esm/funcs/vendorsUpdateVendorCustomField.js.map +1 -1
  197. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
  198. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  199. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js +10 -1
  200. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  201. package/dist/esm/funcs/zonesGetSecurityZone.d.ts +1 -0
  202. package/dist/esm/funcs/zonesGetSecurityZone.d.ts.map +1 -1
  203. package/dist/esm/funcs/zonesGetSecurityZone.js +1 -0
  204. package/dist/esm/funcs/zonesGetSecurityZone.js.map +1 -1
  205. package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts +2 -0
  206. package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  207. package/dist/esm/funcs/zonesListOrSearchSecurityZones.js +7 -3
  208. package/dist/esm/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
  209. package/dist/esm/index.extras.d.ts +14 -0
  210. package/dist/esm/index.extras.d.ts.map +1 -1
  211. package/dist/esm/index.extras.js +16 -0
  212. package/dist/esm/index.extras.js.map +1 -1
  213. package/dist/esm/lib/config.d.ts +3 -3
  214. package/dist/esm/lib/config.js +3 -3
  215. package/dist/esm/models/components/authenticatesuccessresponse.d.ts +4 -0
  216. package/dist/esm/models/components/authenticatesuccessresponse.d.ts.map +1 -1
  217. package/dist/esm/models/components/authenticatesuccessresponse.js +2 -0
  218. package/dist/esm/models/components/authenticatesuccessresponse.js.map +1 -1
  219. package/dist/esm/models/components/devicecountpair.d.ts +28 -0
  220. package/dist/esm/models/components/devicecountpair.d.ts.map +1 -0
  221. package/dist/esm/models/components/devicecountpair.js +23 -0
  222. package/dist/esm/models/components/devicecountpair.js.map +1 -0
  223. package/dist/esm/models/components/devicecounts.d.ts +29 -0
  224. package/dist/esm/models/components/devicecounts.d.ts.map +1 -0
  225. package/dist/esm/models/components/devicecounts.js +23 -0
  226. package/dist/esm/models/components/devicecounts.js.map +1 -0
  227. package/dist/esm/models/components/expand.d.ts +2 -0
  228. package/dist/esm/models/components/expand.d.ts.map +1 -1
  229. package/dist/esm/models/components/expand.js +2 -0
  230. package/dist/esm/models/components/expand.js.map +1 -1
  231. package/dist/esm/models/components/facility.d.ts +6 -0
  232. package/dist/esm/models/components/facility.d.ts.map +1 -1
  233. package/dist/esm/models/components/facility.js +5 -0
  234. package/dist/esm/models/components/facility.js.map +1 -1
  235. package/dist/esm/models/components/index.d.ts +2 -0
  236. package/dist/esm/models/components/index.d.ts.map +1 -1
  237. package/dist/esm/models/components/index.js +2 -0
  238. package/dist/esm/models/components/index.js.map +1 -1
  239. package/dist/esm/models/components/user.d.ts +4 -0
  240. package/dist/esm/models/components/user.d.ts.map +1 -1
  241. package/dist/esm/models/components/user.js +2 -0
  242. package/dist/esm/models/components/user.js.map +1 -1
  243. package/dist/esm/models/components/zone.d.ts +6 -0
  244. package/dist/esm/models/components/zone.d.ts.map +1 -1
  245. package/dist/esm/models/components/zone.js +5 -0
  246. package/dist/esm/models/components/zone.js.map +1 -1
  247. package/dist/esm/models/operations/listorsearchsecurityzones.d.ts +5 -0
  248. package/dist/esm/models/operations/listorsearchsecurityzones.d.ts.map +1 -1
  249. package/dist/esm/models/operations/listorsearchsecurityzones.js +1 -0
  250. package/dist/esm/models/operations/listorsearchsecurityzones.js.map +1 -1
  251. package/dist/esm/react-query/companiesLookupCompanies.d.ts +12 -0
  252. package/dist/esm/react-query/companiesLookupCompanies.d.ts.map +1 -1
  253. package/dist/esm/react-query/companiesLookupCompanies.js +12 -0
  254. package/dist/esm/react-query/companiesLookupCompanies.js.map +1 -1
  255. package/dist/esm/react-query/organizationsGetFacility.d.ts +2 -0
  256. package/dist/esm/react-query/organizationsGetFacility.d.ts.map +1 -1
  257. package/dist/esm/react-query/organizationsGetFacility.js +2 -0
  258. package/dist/esm/react-query/organizationsGetFacility.js.map +1 -1
  259. package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts +4 -0
  260. package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  261. package/dist/esm/react-query/organizationsListOrSearchFacilities.js +4 -0
  262. package/dist/esm/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  263. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts +9 -2
  264. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  265. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.js +9 -2
  266. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.js.map +1 -1
  267. package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts +7 -1
  268. package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
  269. package/dist/esm/react-query/vendorsCreateVendorCompany.js +7 -1
  270. package/dist/esm/react-query/vendorsCreateVendorCompany.js.map +1 -1
  271. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
  272. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  273. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.js +9 -1
  274. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  275. package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts +3 -1
  276. package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  277. package/dist/esm/react-query/vendorsUpdateVendorCustomField.js +3 -1
  278. package/dist/esm/react-query/vendorsUpdateVendorCustomField.js.map +1 -1
  279. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
  280. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  281. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.js +10 -1
  282. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  283. package/dist/esm/react-query/zonesGetSecurityZone.d.ts +2 -0
  284. package/dist/esm/react-query/zonesGetSecurityZone.d.ts.map +1 -1
  285. package/dist/esm/react-query/zonesGetSecurityZone.js +2 -0
  286. package/dist/esm/react-query/zonesGetSecurityZone.js.map +1 -1
  287. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.d.ts +2 -0
  288. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.d.ts.map +1 -1
  289. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.js +2 -0
  290. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.js.map +1 -1
  291. package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts +10 -0
  292. package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  293. package/dist/esm/react-query/zonesListOrSearchSecurityZones.js +8 -0
  294. package/dist/esm/react-query/zonesListOrSearchSecurityZones.js.map +1 -1
  295. package/dist/esm/sdk/companies.d.ts +3 -0
  296. package/dist/esm/sdk/companies.d.ts.map +1 -1
  297. package/dist/esm/sdk/companies.js +3 -0
  298. package/dist/esm/sdk/companies.js.map +1 -1
  299. package/dist/esm/sdk/organizations.d.ts +2 -0
  300. package/dist/esm/sdk/organizations.d.ts.map +1 -1
  301. package/dist/esm/sdk/organizations.js +2 -0
  302. package/dist/esm/sdk/organizations.js.map +1 -1
  303. package/dist/esm/sdk/vendors.d.ts +38 -6
  304. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  305. package/dist/esm/sdk/vendors.js +39 -7
  306. package/dist/esm/sdk/vendors.js.map +1 -1
  307. package/dist/esm/sdk/zones.d.ts +3 -0
  308. package/dist/esm/sdk/zones.d.ts.map +1 -1
  309. package/dist/esm/sdk/zones.js +3 -0
  310. package/dist/esm/sdk/zones.js.map +1 -1
  311. package/jsr.json +1 -1
  312. package/package.json +1 -1
  313. package/src/__tests__/vendors.test.ts +1 -1
  314. package/src/__tests__/webhooks.test.ts +4 -5
  315. package/src/__tests__/zoneDevicesList.test.ts +37 -0
  316. package/src/__tests__/zones.test.ts +12 -9
  317. package/src/admin-funcs/zoneDevicesList.ts +4 -0
  318. package/src/funcs/companiesLookupCompanies.ts +3 -0
  319. package/src/funcs/organizationsGetFacility.ts +1 -0
  320. package/src/funcs/organizationsListOrSearchFacilities.ts +1 -0
  321. package/src/funcs/vendorsAddVendorManagedByCompany.ts +9 -2
  322. package/src/funcs/vendorsCreateVendorCompany.ts +7 -1
  323. package/src/funcs/vendorsDeleteVendorManagedByCompany.ts +9 -1
  324. package/src/funcs/vendorsUpdateVendorCustomField.ts +3 -1
  325. package/src/funcs/vendorsUpdateVendorManagedByCompany.ts +10 -1
  326. package/src/funcs/zonesGetSecurityZone.ts +1 -0
  327. package/src/funcs/zonesListOrSearchSecurityZones.ts +20 -13
  328. package/src/index.extras.ts +18 -0
  329. package/src/lib/config.ts +3 -3
  330. package/src/models/components/authenticatesuccessresponse.ts +6 -0
  331. package/src/models/components/devicecountpair.ts +63 -0
  332. package/src/models/components/devicecounts.ts +66 -0
  333. package/src/models/components/expand.ts +2 -0
  334. package/src/models/components/facility.ts +15 -0
  335. package/src/models/components/index.ts +2 -0
  336. package/src/models/components/user.ts +6 -0
  337. package/src/models/components/zone.ts +15 -0
  338. package/src/models/operations/listorsearchsecurityzones.ts +6 -0
  339. package/src/react-query/companiesLookupCompanies.ts +12 -0
  340. package/src/react-query/organizationsGetFacility.ts +2 -0
  341. package/src/react-query/organizationsListOrSearchFacilities.ts +4 -0
  342. package/src/react-query/vendorsAddVendorManagedByCompany.ts +9 -2
  343. package/src/react-query/vendorsCreateVendorCompany.ts +7 -1
  344. package/src/react-query/vendorsDeleteVendorManagedByCompany.ts +9 -1
  345. package/src/react-query/vendorsUpdateVendorCustomField.ts +3 -1
  346. package/src/react-query/vendorsUpdateVendorManagedByCompany.ts +10 -1
  347. package/src/react-query/zonesGetSecurityZone.ts +2 -0
  348. package/src/react-query/zonesListOrSearchSecurityZones.core.ts +4 -0
  349. package/src/react-query/zonesListOrSearchSecurityZones.ts +10 -0
  350. package/src/sdk/companies.ts +3 -0
  351. package/src/sdk/organizations.ts +2 -0
  352. package/src/sdk/vendors.ts +39 -7
  353. package/src/sdk/zones.ts +3 -0
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { GreenSecurityCore } from "../core.js";
6
- import { encodeFormQuery } from "../lib/encodings.js";
6
+ import { encodeFormQuery, queryJoin } from "../lib/encodings.js";
7
7
  import { matchStatusCode } from "../lib/http.js";
8
8
  import * as M from "../lib/matchers.js";
9
9
  import { compactMap } from "../lib/primitives.js";
@@ -40,6 +40,8 @@ import {
40
40
  *
41
41
  * **Permissions.** Requires the `zones.view` permission.
42
42
  *
43
+ * The `expand` parameter accepts only `zone.device_counts`, which also requires `zone_devices.view`. The server ignores other values.
44
+ *
43
45
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
44
46
  */
45
47
  export function zonesListOrSearchSecurityZones(
@@ -108,18 +110,23 @@ async function $do(
108
110
 
109
111
  const path = pathToFunc("/security_zones")();
110
112
 
111
- const query = encodeFormQuery({
112
- "contact_id": payload.contact_id,
113
- "desc": payload.desc,
114
- "facility_id": payload.facility_id,
115
- "green_location_id": payload.green_location_id,
116
- "items_per_page": payload.items_per_page,
117
- "latitude": payload.latitude,
118
- "longitude": payload.longitude,
119
- "name_like": payload.name_like,
120
- "page": payload.page,
121
- "sort": payload.sort,
122
- });
113
+ const query = queryJoin(
114
+ encodeFormQuery({
115
+ "expand": payload.expand,
116
+ }, { explode: false }),
117
+ encodeFormQuery({
118
+ "contact_id": payload.contact_id,
119
+ "desc": payload.desc,
120
+ "facility_id": payload.facility_id,
121
+ "green_location_id": payload.green_location_id,
122
+ "items_per_page": payload.items_per_page,
123
+ "latitude": payload.latitude,
124
+ "longitude": payload.longitude,
125
+ "name_like": payload.name_like,
126
+ "page": payload.page,
127
+ "sort": payload.sort,
128
+ }),
129
+ );
123
130
 
124
131
  const headers = new Headers(compactMap({
125
132
  Accept: "application/json",
@@ -59,6 +59,11 @@ import { dismissCommunication } from "./admin-funcs/dismissCommunication.js";
59
59
  import { appsListInstalledApps } from "./admin-funcs/appsListInstalledApps.js";
60
60
  import { appsExchangeToken } from "./admin-funcs/appsExchangeToken.js";
61
61
  import { appsApproveDevice } from "./admin-funcs/appsApproveDevice.js";
62
+ import { networksList } from "./admin-funcs/networksList.js";
63
+ import { networksGet } from "./admin-funcs/networksGet.js";
64
+ import { networksCreate } from "./admin-funcs/networksCreate.js";
65
+ import { zoneDevicesList } from "./admin-funcs/zoneDevicesList.js";
66
+ import { zoneDevicesGet } from "./admin-funcs/zoneDevicesGet.js";
62
67
 
63
68
  // Third-party app platform contract (surfaces, manifest, host/sandbox protocol, components).
64
69
  export * as apps from "./apps/index.js";
@@ -160,5 +165,18 @@ export const __internal = {
160
165
  createZoneDevice: kioskCreateZoneDevice,
161
166
  createEvent: kioskCreateEvent,
162
167
  heartbeat: kioskHeartbeat
168
+ },
169
+
170
+ // Gatekeeper provisioning: the network a facility's devices join, and the
171
+ // inventory of the devices themselves.
172
+ networks: {
173
+ list: networksList,
174
+ get: networksGet,
175
+ create: networksCreate
176
+ },
177
+
178
+ zoneDevices: {
179
+ list: zoneDevicesList,
180
+ get: zoneDevicesGet
163
181
  }
164
182
  };
package/src/lib/config.ts CHANGED
@@ -80,8 +80,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
80
80
  export const SDK_METADATA = {
81
81
  language: "typescript",
82
82
  openapiDocVersion: "0.45.0",
83
- sdkVersion: "0.46.0-beta.7",
84
- genVersion: "2.941.0",
83
+ sdkVersion: "0.46.0-beta.8",
84
+ genVersion: "2.943.0",
85
85
  userAgent:
86
- "speakeasy-sdk/typescript 0.46.0-beta.7 2.941.0 0.45.0 @greensecurity/javascript-sdk",
86
+ "speakeasy-sdk/typescript 0.46.0-beta.8 2.943.0 0.45.0 @greensecurity/javascript-sdk",
87
87
  } as const;
@@ -60,6 +60,10 @@ export type AuthenticateSuccessResponseInventoryManager = {};
60
60
  * and the login therefore has a SAML flow waiting to be finished.
61
61
  */
62
62
  export type AuthenticateSuccessResponse = {
63
+ /**
64
+ * Whether the user may manage zone devices (the `zone_devices.view` permission, which the Zone Device Managers role grants). Returned only when the caller requests their own record.
65
+ */
66
+ canManageZoneDevices?: boolean | undefined;
63
67
  /**
64
68
  * Whether the user is a `gatekeeper`, a special type of service user assigned to Kiosks and Apps to verify vendors using APIs that have some access to facility data.
65
69
  */
@@ -174,6 +178,7 @@ export const AuthenticateSuccessResponse$inboundSchema: z.ZodType<
174
178
  z.ZodTypeDef,
175
179
  unknown
176
180
  > = z.object({
181
+ can_manage_zone_devices: types.optional(types.boolean()),
177
182
  is_gatekeeper: types.optional(types.boolean()),
178
183
  success: types.boolean(),
179
184
  user: UserDetails$inboundSchema,
@@ -187,6 +192,7 @@ export const AuthenticateSuccessResponse$inboundSchema: z.ZodType<
187
192
  sso: types.optional(SsoContinuation$inboundSchema),
188
193
  }).transform((v) => {
189
194
  return remap$(v, {
195
+ "can_manage_zone_devices": "canManageZoneDevices",
190
196
  "is_gatekeeper": "isGatekeeper",
191
197
  "user_token": "userToken",
192
198
  "inventory_manager": "inventoryManager",
@@ -0,0 +1,63 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * How many devices of one kind exist, and how many of those are active.
13
+ */
14
+ export type DeviceCountPair = {
15
+ /**
16
+ * Every device of this kind.
17
+ */
18
+ total: number;
19
+ /**
20
+ * Devices that reported in recently. A gateway is active if it was seen in the last 5 minutes, and a kiosk is active if any of its devices pinged in the last 2 minutes.
21
+ */
22
+ active: number;
23
+ };
24
+
25
+ /** @internal */
26
+ export const DeviceCountPair$inboundSchema: z.ZodType<
27
+ DeviceCountPair,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ total: types.number(),
32
+ active: types.number(),
33
+ });
34
+ /** @internal */
35
+ export type DeviceCountPair$Outbound = {
36
+ total: number;
37
+ active: number;
38
+ };
39
+
40
+ /** @internal */
41
+ export const DeviceCountPair$outboundSchema: z.ZodType<
42
+ DeviceCountPair$Outbound,
43
+ z.ZodTypeDef,
44
+ DeviceCountPair
45
+ > = z.object({
46
+ total: z.number().int(),
47
+ active: z.number().int(),
48
+ });
49
+
50
+ export function deviceCountPairToJSON(
51
+ deviceCountPair: DeviceCountPair,
52
+ ): string {
53
+ return JSON.stringify(DeviceCountPair$outboundSchema.parse(deviceCountPair));
54
+ }
55
+ export function deviceCountPairFromJSON(
56
+ jsonString: string,
57
+ ): SafeParseResult<DeviceCountPair, SDKValidationError> {
58
+ return safeParse(
59
+ jsonString,
60
+ (x) => DeviceCountPair$inboundSchema.parse(JSON.parse(x)),
61
+ `Failed to parse 'DeviceCountPair' from JSON`,
62
+ );
63
+ }
@@ -0,0 +1,66 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ DeviceCountPair,
11
+ DeviceCountPair$inboundSchema,
12
+ DeviceCountPair$Outbound,
13
+ DeviceCountPair$outboundSchema,
14
+ } from "./devicecountpair.js";
15
+
16
+ /**
17
+ * Gateway and iPad kiosk totals, counted the same way as the zone devices inventory.
18
+ */
19
+ export type DeviceCounts = {
20
+ /**
21
+ * How many devices of one kind exist, and how many of those are active.
22
+ */
23
+ gateways: DeviceCountPair;
24
+ /**
25
+ * How many devices of one kind exist, and how many of those are active.
26
+ */
27
+ kiosks: DeviceCountPair;
28
+ };
29
+
30
+ /** @internal */
31
+ export const DeviceCounts$inboundSchema: z.ZodType<
32
+ DeviceCounts,
33
+ z.ZodTypeDef,
34
+ unknown
35
+ > = z.object({
36
+ gateways: DeviceCountPair$inboundSchema,
37
+ kiosks: DeviceCountPair$inboundSchema,
38
+ });
39
+ /** @internal */
40
+ export type DeviceCounts$Outbound = {
41
+ gateways: DeviceCountPair$Outbound;
42
+ kiosks: DeviceCountPair$Outbound;
43
+ };
44
+
45
+ /** @internal */
46
+ export const DeviceCounts$outboundSchema: z.ZodType<
47
+ DeviceCounts$Outbound,
48
+ z.ZodTypeDef,
49
+ DeviceCounts
50
+ > = z.object({
51
+ gateways: DeviceCountPair$outboundSchema,
52
+ kiosks: DeviceCountPair$outboundSchema,
53
+ });
54
+
55
+ export function deviceCountsToJSON(deviceCounts: DeviceCounts): string {
56
+ return JSON.stringify(DeviceCounts$outboundSchema.parse(deviceCounts));
57
+ }
58
+ export function deviceCountsFromJSON(
59
+ jsonString: string,
60
+ ): SafeParseResult<DeviceCounts, SDKValidationError> {
61
+ return safeParse(
62
+ jsonString,
63
+ (x) => DeviceCounts$inboundSchema.parse(JSON.parse(x)),
64
+ `Failed to parse 'DeviceCounts' from JSON`,
65
+ );
66
+ }
@@ -26,6 +26,7 @@ export const Expand = {
26
26
  FacilityAppointmentPolicy: "facility.appointment_policy",
27
27
  FacilityContacts: "facility.contacts",
28
28
  FacilityVendorCounts: "facility.vendor_counts",
29
+ FacilityDeviceCounts: "facility.device_counts",
29
30
  FacilityFluCredential: "facility.flu_credential",
30
31
  FacilityScrubsPolicy: "facility.scrubs_policy",
31
32
  FacilitySystem: "facility.system",
@@ -126,6 +127,7 @@ export const Expand = {
126
127
  ZoneFacility: "zone.facility",
127
128
  ZoneDepartment: "zone.department",
128
129
  ZoneRules: "zone.rules",
130
+ ZoneDeviceCounts: "zone.device_counts",
129
131
  SystemFacilities: "system.facilities",
130
132
  SystemLocation: "system.location",
131
133
  SystemAggregate: "system.aggregate",
@@ -17,6 +17,12 @@ import {
17
17
  Contact$Outbound,
18
18
  Contact$outboundSchema,
19
19
  } from "./contact.js";
20
+ import {
21
+ DeviceCounts,
22
+ DeviceCounts$inboundSchema,
23
+ DeviceCounts$Outbound,
24
+ DeviceCounts$outboundSchema,
25
+ } from "./devicecounts.js";
20
26
  import {
21
27
  FacilityVendorType,
22
28
  FacilityVendorType$inboundSchema,
@@ -404,6 +410,10 @@ export type Facility = {
404
410
  * Counts of vendors associated with the facility, grouped by relationship, subscription status, and approval status. Present only when `facility.vendor_counts` is in `expand`.
405
411
  */
406
412
  vendorCounts?: VendorCounts | null | undefined;
413
+ /**
414
+ * Gateway and iPad kiosk totals across the facility's zones. Present only when `facility.device_counts` is in `expand` and the caller holds `zone_devices.view`, otherwise `null`.
415
+ */
416
+ deviceCounts?: DeviceCounts | null | undefined;
407
417
  /**
408
418
  * The email domain associated with the facility, or `null` if none is set.
409
419
  */
@@ -1292,6 +1302,7 @@ export const Facility$inboundSchema: z.ZodType<
1292
1302
  contacts: z.nullable(z.lazy(() => Contacts$inboundSchema)).optional(),
1293
1303
  vendor_counts: z.nullable(z.lazy(() => VendorCounts$inboundSchema))
1294
1304
  .optional(),
1305
+ device_counts: z.nullable(DeviceCounts$inboundSchema).optional(),
1295
1306
  email_domain: z.nullable(types.string()).optional(),
1296
1307
  facility_type: z.nullable(types.string()).optional(),
1297
1308
  flu_credential: types.optional(z.lazy(() => FluCredential$inboundSchema)),
@@ -1319,6 +1330,7 @@ export const Facility$inboundSchema: z.ZodType<
1319
1330
  return remap$(v, {
1320
1331
  "appointment_policy": "appointmentPolicy",
1321
1332
  "vendor_counts": "vendorCounts",
1333
+ "device_counts": "deviceCounts",
1322
1334
  "email_domain": "emailDomain",
1323
1335
  "facility_type": "facilityType",
1324
1336
  "flu_credential": "fluCredential",
@@ -1335,6 +1347,7 @@ export type Facility$Outbound = {
1335
1347
  appointment_policy?: AppointmentPolicy$Outbound | null | undefined;
1336
1348
  contacts?: Contacts$Outbound | null | undefined;
1337
1349
  vendor_counts?: VendorCounts$Outbound | null | undefined;
1350
+ device_counts?: DeviceCounts$Outbound | null | undefined;
1338
1351
  email_domain?: string | null | undefined;
1339
1352
  facility_type?: string | null | undefined;
1340
1353
  flu_credential?: FluCredential$Outbound | undefined;
@@ -1364,6 +1377,7 @@ export const Facility$outboundSchema: z.ZodType<
1364
1377
  contacts: z.nullable(z.lazy(() => Contacts$outboundSchema)).optional(),
1365
1378
  vendorCounts: z.nullable(z.lazy(() => VendorCounts$outboundSchema))
1366
1379
  .optional(),
1380
+ deviceCounts: z.nullable(DeviceCounts$outboundSchema).optional(),
1367
1381
  emailDomain: z.nullable(z.string()).optional(),
1368
1382
  facilityType: z.nullable(z.string()).optional(),
1369
1383
  fluCredential: z.lazy(() => FluCredential$outboundSchema).optional(),
@@ -1390,6 +1404,7 @@ export const Facility$outboundSchema: z.ZodType<
1390
1404
  return remap$(v, {
1391
1405
  appointmentPolicy: "appointment_policy",
1392
1406
  vendorCounts: "vendor_counts",
1407
+ deviceCounts: "device_counts",
1393
1408
  emailDomain: "email_domain",
1394
1409
  facilityType: "facility_type",
1395
1410
  fluCredential: "flu_credential",
@@ -30,6 +30,8 @@ export * from "./department.js";
30
30
  export * from "./departmentmembership.js";
31
31
  export * from "./departmentsummary.js";
32
32
  export * from "./desc.js";
33
+ export * from "./devicecountpair.js";
34
+ export * from "./devicecounts.js";
33
35
  export * from "./distributor.js";
34
36
  export * from "./distributorcreate.js";
35
37
  export * from "./distributorupdate.js";
@@ -50,6 +50,10 @@ export type InventoryManager = {};
50
50
  * The User object describes a person or service account.
51
51
  */
52
52
  export type User = {
53
+ /**
54
+ * Whether the user may manage zone devices (the `zone_devices.view` permission, which the Zone Device Managers role grants). Returned only when the caller requests their own record.
55
+ */
56
+ canManageZoneDevices?: boolean | undefined;
53
57
  /**
54
58
  * Whether the user is a `gatekeeper`, a special type of service user assigned to Kiosks and Apps to verify vendors using APIs that have some access to facility data.
55
59
  */
@@ -135,6 +139,7 @@ export function inventoryManagerFromJSON(
135
139
  /** @internal */
136
140
  export const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown> = z
137
141
  .object({
142
+ can_manage_zone_devices: types.optional(types.boolean()),
138
143
  is_gatekeeper: types.optional(types.boolean()),
139
144
  success: types.boolean(),
140
145
  user: UserDetails$inboundSchema,
@@ -147,6 +152,7 @@ export const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown> = z
147
152
  company: z.nullable(Company$inboundSchema).optional(),
148
153
  }).transform((v) => {
149
154
  return remap$(v, {
155
+ "can_manage_zone_devices": "canManageZoneDevices",
150
156
  "is_gatekeeper": "isGatekeeper",
151
157
  "user_token": "userToken",
152
158
  "inventory_manager": "inventoryManager",
@@ -15,6 +15,12 @@ import {
15
15
  Department$Outbound,
16
16
  Department$outboundSchema,
17
17
  } from "./department.js";
18
+ import {
19
+ DeviceCounts,
20
+ DeviceCounts$inboundSchema,
21
+ DeviceCounts$Outbound,
22
+ DeviceCounts$outboundSchema,
23
+ } from "./devicecounts.js";
18
24
  import {
19
25
  Facility,
20
26
  Facility$inboundSchema,
@@ -287,6 +293,10 @@ export type Zone = {
287
293
  * The department the zone belongs to. Contains the full department when you expand `zone.department`, otherwise the department ID.
288
294
  */
289
295
  department?: Department | number | null | undefined;
296
+ /**
297
+ * Gateway and iPad kiosk totals in the zone. Present only when `zone.device_counts` is in `expand` and the caller holds `zone_devices.view`, otherwise `null`.
298
+ */
299
+ deviceCounts?: DeviceCounts | null | undefined;
290
300
  /**
291
301
  * The name of the zone, or `null` if not set.
292
302
  */
@@ -936,6 +946,7 @@ export const Zone$inboundSchema: z.ZodType<Zone, z.ZodTypeDef, unknown> = z
936
946
  department: z.nullable(
937
947
  smartUnion([Department$inboundSchema, types.number()]),
938
948
  ).optional(),
949
+ device_counts: z.nullable(DeviceCounts$inboundSchema).optional(),
939
950
  name: z.nullable(types.string()).optional(),
940
951
  short_name: z.nullable(types.string()).optional(),
941
952
  description: z.nullable(types.string()).optional(),
@@ -960,6 +971,7 @@ export const Zone$inboundSchema: z.ZodType<Zone, z.ZodTypeDef, unknown> = z
960
971
  ),
961
972
  }).transform((v) => {
962
973
  return remap$(v, {
974
+ "device_counts": "deviceCounts",
963
975
  "short_name": "shortName",
964
976
  "kiosk_offline_notification": "kioskOfflineNotification",
965
977
  "vendor_policy": "vendorPolicy",
@@ -974,6 +986,7 @@ export type Zone$Outbound = {
974
986
  id?: number | undefined;
975
987
  facility?: Facility$Outbound | Facility2$Outbound | null | undefined;
976
988
  department?: Department$Outbound | number | null | undefined;
989
+ device_counts?: DeviceCounts$Outbound | null | undefined;
977
990
  name?: string | null | undefined;
978
991
  short_name?: string | null | undefined;
979
992
  description?: string | null | undefined;
@@ -1002,6 +1015,7 @@ export const Zone$outboundSchema: z.ZodType<Zone$Outbound, z.ZodTypeDef, Zone> =
1002
1015
  department: z.nullable(
1003
1016
  smartUnion([Department$outboundSchema, z.number().int()]),
1004
1017
  ).optional(),
1018
+ deviceCounts: z.nullable(DeviceCounts$outboundSchema).optional(),
1005
1019
  name: z.nullable(z.string()).optional(),
1006
1020
  shortName: z.nullable(z.string()).optional(),
1007
1021
  description: z.nullable(z.string()).optional(),
@@ -1022,6 +1036,7 @@ export const Zone$outboundSchema: z.ZodType<Zone$Outbound, z.ZodTypeDef, Zone> =
1022
1036
  gpsCheckinPolicy: z.lazy(() => GpsCheckinPolicy$outboundSchema).optional(),
1023
1037
  }).transform((v) => {
1024
1038
  return remap$(v, {
1039
+ deviceCounts: "device_counts",
1025
1040
  shortName: "short_name",
1026
1041
  kioskOfflineNotification: "kiosk_offline_notification",
1027
1042
  vendorPolicy: "vendor_policy",
@@ -38,6 +38,10 @@ export type ListOrSearchSecurityZonesRequest = {
38
38
  * A partial string to search in the object name. Do not include any wildcard characters. Searches are not case-sensitive by default.
39
39
  */
40
40
  nameLike?: string | undefined;
41
+ /**
42
+ * An array-style parameter to identify which sections of an object to expand. See documentation for the endpoint for a list of valid expansion values.
43
+ */
44
+ expand?: Array<components.Expand> | undefined;
41
45
  /**
42
46
  * The `contact_id` value.
43
47
  */
@@ -76,6 +80,7 @@ export type ListOrSearchSecurityZonesRequest$Outbound = {
76
80
  latitude?: number | undefined;
77
81
  longitude?: number | undefined;
78
82
  name_like?: string | undefined;
83
+ expand?: Array<string> | undefined;
79
84
  contact_id?: number | undefined;
80
85
  facility_id?: number | undefined;
81
86
  green_location_id?: number | undefined;
@@ -94,6 +99,7 @@ export const ListOrSearchSecurityZonesRequest$outboundSchema: z.ZodType<
94
99
  latitude: z.number().optional(),
95
100
  longitude: z.number().optional(),
96
101
  nameLike: z.string().optional(),
102
+ expand: z.array(components.Expand$outboundSchema).optional(),
97
103
  contactId: z.number().optional(),
98
104
  facilityId: z.number().optional(),
99
105
  greenLocationId: z.number().optional(),
@@ -77,6 +77,9 @@ export type CompaniesLookupCompaniesQueryError =
77
77
  * @remarks
78
78
  * Lists companies available to the caller as minimal lookup summaries for list and typeahead UIs.
79
79
  *
80
+ * For a vendor, the list holds the active companies on the vendor's site: the companies the
81
+ * vendor can add as managing companies. Other callers see the companies they can view.
82
+ *
80
83
  * **Permissions.** Requires the `companies.view` permission.
81
84
  */
82
85
  export function useCompaniesLookupCompanies(
@@ -106,6 +109,9 @@ export function useCompaniesLookupCompanies(
106
109
  * @remarks
107
110
  * Lists companies available to the caller as minimal lookup summaries for list and typeahead UIs.
108
111
  *
112
+ * For a vendor, the list holds the active companies on the vendor's site: the companies the
113
+ * vendor can add as managing companies. Other callers see the companies they can view.
114
+ *
109
115
  * **Permissions.** Requires the `companies.view` permission.
110
116
  */
111
117
  export function useCompaniesLookupCompaniesSuspense(
@@ -135,6 +141,9 @@ export function useCompaniesLookupCompaniesSuspense(
135
141
  * @remarks
136
142
  * Lists companies available to the caller as minimal lookup summaries for list and typeahead UIs.
137
143
  *
144
+ * For a vendor, the list holds the active companies on the vendor's site: the companies the
145
+ * vendor can add as managing companies. Other callers see the companies they can view.
146
+ *
138
147
  * **Permissions.** Requires the `companies.view` permission.
139
148
  */
140
149
  export function useCompaniesLookupCompaniesInfinite(
@@ -178,6 +187,9 @@ export function useCompaniesLookupCompaniesInfinite(
178
187
  * @remarks
179
188
  * Lists companies available to the caller as minimal lookup summaries for list and typeahead UIs.
180
189
  *
190
+ * For a vendor, the list holds the active companies on the vendor's site: the companies the
191
+ * vendor can add as managing companies. Other callers see the companies they can view.
192
+ *
181
193
  * **Permissions.** Requires the `companies.view` permission.
182
194
  */
183
195
  export function useCompaniesLookupCompaniesInfiniteSuspense(
@@ -69,6 +69,7 @@ export type OrganizationsGetFacilityQueryError =
69
69
  * - `facility.system`
70
70
  * - `facility.contacts`
71
71
  * - `facility.vendor_counts`
72
+ * - `facility.device_counts` (also requires `zone_devices.view`)
72
73
  * - `facility.appointment_policy`
73
74
  * - `facility.vendor_policy`
74
75
  * - `facility.vendor_guest_policy`
@@ -116,6 +117,7 @@ export function useOrganizationsGetFacility(
116
117
  * - `facility.system`
117
118
  * - `facility.contacts`
118
119
  * - `facility.vendor_counts`
120
+ * - `facility.device_counts` (also requires `zone_devices.view`)
119
121
  * - `facility.appointment_policy`
120
122
  * - `facility.vendor_policy`
121
123
  * - `facility.vendor_guest_policy`
@@ -84,6 +84,7 @@ export type OrganizationsListOrSearchFacilitiesQueryError =
84
84
  * - `facility.system`
85
85
  * - `facility.contacts`
86
86
  * - `facility.vendor_counts`
87
+ * - `facility.device_counts` (also requires `zone_devices.view`)
87
88
  * - `facility.appointment_policy`
88
89
  * - `facility.vendor_policy`
89
90
  * - `facility.vendor_guest_policy`
@@ -128,6 +129,7 @@ export function useOrganizationsListOrSearchFacilities(
128
129
  * - `facility.system`
129
130
  * - `facility.contacts`
130
131
  * - `facility.vendor_counts`
132
+ * - `facility.device_counts` (also requires `zone_devices.view`)
131
133
  * - `facility.appointment_policy`
132
134
  * - `facility.vendor_policy`
133
135
  * - `facility.vendor_guest_policy`
@@ -172,6 +174,7 @@ export function useOrganizationsListOrSearchFacilitiesSuspense(
172
174
  * - `facility.system`
173
175
  * - `facility.contacts`
174
176
  * - `facility.vendor_counts`
177
+ * - `facility.device_counts` (also requires `zone_devices.view`)
175
178
  * - `facility.appointment_policy`
176
179
  * - `facility.vendor_policy`
177
180
  * - `facility.vendor_guest_policy`
@@ -230,6 +233,7 @@ export function useOrganizationsListOrSearchFacilitiesInfinite(
230
233
  * - `facility.system`
231
234
  * - `facility.contacts`
232
235
  * - `facility.vendor_counts`
236
+ * - `facility.device_counts` (also requires `zone_devices.view`)
233
237
  * - `facility.appointment_policy`
234
238
  * - `facility.vendor_policy`
235
239
  * - `facility.vendor_guest_policy`
@@ -50,9 +50,16 @@ export type VendorsAddVendorManagedByCompanyMutationError =
50
50
  * Add vendor managed by company
51
51
  *
52
52
  * @remarks
53
- * Adds a company as a manager of the vendor.
53
+ * Adds a company as a manager of the vendor. The new company starts with every access right
54
+ * turned off. The company must be on the same site as the vendor. Otherwise, the API returns
55
+ * `404`.
54
56
  *
55
- * **Permissions.** Requires the `vendors.edit` permission.
57
+ * **Permissions.** Requires the `vendors.edit` permission. Only these callers can change which
58
+ * companies manage the vendor: the vendor, a company manager at the company the vendor belongs to,
59
+ * a Green Security administrator, or an app whose API token can update the vendor (an app
60
+ * installed for the vendor's whole site, for the company the vendor belongs to, or by the vendor).
61
+ * A company manager whose company manages the vendor through a managed-by-company link, rather
62
+ * than owning the vendor, gets a `403`, and so do facility and system users.
56
63
  */
57
64
  export function useVendorsAddVendorManagedByCompanyMutation(
58
65
  options?: MutationHookOptions<
@@ -52,7 +52,13 @@ export type VendorsCreateVendorCompanyMutationError =
52
52
  * @remarks
53
53
  * Creates vendor company
54
54
  *
55
- * **Permissions.** Requires the `companies.add` permission.
55
+ * **Permissions.** Requires the `companies.add` permission. Only these callers can move the vendor
56
+ * into a new company: the vendor, a company manager at the company the vendor belongs to, a Green
57
+ * Security administrator, or an app installed for the vendor's whole site. An app needs a
58
+ * site-wide installation because only a site-wide installation can create companies. An app
59
+ * installed only for a company or by a user gets a `403`, even when its API token can update the
60
+ * vendor. A company manager whose company manages the vendor through a managed-by-company link,
61
+ * rather than owning the vendor, gets a `403`, and so do facility and system users.
56
62
  */
57
63
  export function useVendorsCreateVendorCompanyMutation(
58
64
  options?: MutationHookOptions<
@@ -53,7 +53,15 @@ export type VendorsDeleteVendorManagedByCompanyMutationError =
53
53
  * @remarks
54
54
  * Removes a company as a manager of the vendor.
55
55
  *
56
- * **Permissions.** Requires the `vendors.edit` permission.
56
+ * **Permissions.** Requires the `vendors.edit` permission. Only these callers can change which
57
+ * companies manage the vendor: the vendor, a company manager at the company the vendor belongs to,
58
+ * a Green Security administrator, or an app whose API token can update the vendor (an app
59
+ * installed for the vendor's whole site, for the company the vendor belongs to, or by the vendor).
60
+ * A company manager whose company manages the vendor through a managed-by-company link, rather
61
+ * than owning the vendor, gets a `403`, and so do facility and system users.
62
+ *
63
+ * If `managed_vendor_id` doesn't belong to this vendor, the API returns `404`, the same response
64
+ * as for an ID that doesn't exist.
57
65
  */
58
66
  export function useVendorsDeleteVendorManagedByCompanyMutation(
59
67
  options?: MutationHookOptions<
@@ -60,7 +60,9 @@ export type VendorsUpdateVendorCustomFieldMutationError =
60
60
  * Accepts a numeric vendor ID, `me` for the authenticated vendor,
61
61
  * or an active QR code (format: contains hyphens).
62
62
  *
63
- * **Permissions.** Requires the `vendors.edit` permission.
63
+ * **Permissions.** Requires the `vendors.edit` permission. A company manager whose company
64
+ * manages the vendor through a managed-by-company link, rather than owning it, also needs that
65
+ * link's `may_edit_profile` access right, or the API returns `403`.
64
66
  */
65
67
  export function useVendorsUpdateVendorCustomFieldMutation(
66
68
  options?: MutationHookOptions<
@@ -52,7 +52,16 @@ export type VendorsUpdateVendorManagedByCompanyMutationError =
52
52
  * @remarks
53
53
  * Updates the access rights that a company has for the vendor it manages.
54
54
  *
55
- * **Permissions.** Requires the `vendors.edit` permission.
55
+ * **Permissions.** Requires the `vendors.edit` permission. Only these callers can change access
56
+ * rights: the vendor, a company manager at the company the vendor belongs to, a Green Security
57
+ * administrator, or an app whose API token can update the vendor (an app installed for the
58
+ * vendor's whole site, for the company the vendor belongs to, or by the vendor). A company manager
59
+ * whose company manages the vendor through a managed-by-company link, rather than owning the
60
+ * vendor, gets a `403`: that company can't change its own access rights or another company's.
61
+ * Facility and system users get a `403` too.
62
+ *
63
+ * If `managed_vendor_id` doesn't belong to this vendor, the API returns `404`, the same response
64
+ * as for an ID that doesn't exist.
56
65
  */
57
66
  export function useVendorsUpdateVendorManagedByCompanyMutation(
58
67
  options?: MutationHookOptions<
@@ -66,6 +66,7 @@ export type ZonesGetSecurityZoneQueryError =
66
66
  * - `zone.facility`
67
67
  * - `zone.department`
68
68
  * - `zone.rules`
69
+ * - `zone.device_counts` (also requires `zone_devices.view`)
69
70
  *
70
71
  * The server ignores unrecognized values.
71
72
  */
@@ -103,6 +104,7 @@ export function useZonesGetSecurityZone(
103
104
  * - `zone.facility`
104
105
  * - `zone.department`
105
106
  * - `zone.rules`
107
+ * - `zone.device_counts` (also requires `zone_devices.view`)
106
108
  *
107
109
  * The server ignores unrecognized values.
108
110
  */