@greensecurity/javascript-sdk 0.46.0-beta.6 → 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 (491) hide show
  1. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  2. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  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 +10 -7
  9. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  10. package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.d.ts +3 -0
  11. package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.d.ts.map +1 -0
  12. package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.js +9 -0
  13. package/dist/commonjs/admin-funcs/vendorCredentialCreateFormQuote.js.map +1 -0
  14. package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.d.ts +3 -0
  15. package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.d.ts.map +1 -0
  16. package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.js +9 -0
  17. package/dist/commonjs/admin-funcs/vendorCredentialGetFormLineItems.js.map +1 -0
  18. package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts +1 -0
  19. package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts.map +1 -1
  20. package/dist/commonjs/admin-funcs/zoneDevicesList.js +3 -0
  21. package/dist/commonjs/admin-funcs/zoneDevicesList.js.map +1 -1
  22. package/dist/commonjs/funcs/companiesLookupCompanies.d.ts +3 -0
  23. package/dist/commonjs/funcs/companiesLookupCompanies.d.ts.map +1 -1
  24. package/dist/commonjs/funcs/companiesLookupCompanies.js +3 -0
  25. package/dist/commonjs/funcs/companiesLookupCompanies.js.map +1 -1
  26. package/dist/commonjs/funcs/eventsListFeed.d.ts +9 -8
  27. package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -1
  28. package/dist/commonjs/funcs/eventsListFeed.js +9 -8
  29. package/dist/commonjs/funcs/eventsListFeed.js.map +1 -1
  30. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +8 -7
  31. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  32. package/dist/commonjs/funcs/eventsListPendingInvitations.js +8 -7
  33. package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -1
  34. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +6 -5
  35. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  36. package/dist/commonjs/funcs/eventsListStandingAppointments.js +6 -5
  37. package/dist/commonjs/funcs/eventsListStandingAppointments.js.map +1 -1
  38. package/dist/commonjs/funcs/organizationsGetFacility.d.ts +1 -0
  39. package/dist/commonjs/funcs/organizationsGetFacility.d.ts.map +1 -1
  40. package/dist/commonjs/funcs/organizationsGetFacility.js +1 -0
  41. package/dist/commonjs/funcs/organizationsGetFacility.js.map +1 -1
  42. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts +1 -0
  43. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
  44. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js +1 -0
  45. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  46. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts +9 -2
  47. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  48. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js +9 -2
  49. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
  50. package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts +7 -1
  51. package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
  52. package/dist/commonjs/funcs/vendorsCreateVendorCompany.js +7 -1
  53. package/dist/commonjs/funcs/vendorsCreateVendorCompany.js.map +1 -1
  54. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
  55. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  56. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js +9 -1
  57. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  58. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts +4 -0
  59. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  60. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js +4 -0
  61. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
  62. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.d.ts +4 -0
  63. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.d.ts.map +1 -1
  64. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.js +4 -0
  65. package/dist/commonjs/funcs/vendorsListVendorCredentialHistory.js.map +1 -1
  66. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts +3 -1
  67. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  68. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js +3 -1
  69. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js.map +1 -1
  70. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
  71. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  72. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js +10 -1
  73. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  74. package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts +1 -0
  75. package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts.map +1 -1
  76. package/dist/commonjs/funcs/zonesGetSecurityZone.js +1 -0
  77. package/dist/commonjs/funcs/zonesGetSecurityZone.js.map +1 -1
  78. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts +2 -0
  79. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  80. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js +6 -2
  81. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
  82. package/dist/commonjs/index.extras.d.ts +20 -0
  83. package/dist/commonjs/index.extras.d.ts.map +1 -1
  84. package/dist/commonjs/index.extras.js +22 -0
  85. package/dist/commonjs/index.extras.js.map +1 -1
  86. package/dist/commonjs/lib/config.d.ts +3 -3
  87. package/dist/commonjs/lib/config.js +3 -3
  88. package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts +4 -0
  89. package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts.map +1 -1
  90. package/dist/commonjs/models/components/authenticatesuccessresponse.js +2 -0
  91. package/dist/commonjs/models/components/authenticatesuccessresponse.js.map +1 -1
  92. package/dist/commonjs/models/components/devicecountpair.d.ts +28 -0
  93. package/dist/commonjs/models/components/devicecountpair.d.ts.map +1 -0
  94. package/dist/commonjs/models/components/devicecountpair.js +61 -0
  95. package/dist/commonjs/models/components/devicecountpair.js.map +1 -0
  96. package/dist/commonjs/models/components/devicecounts.d.ts +29 -0
  97. package/dist/commonjs/models/components/devicecounts.d.ts.map +1 -0
  98. package/dist/commonjs/models/components/devicecounts.js +61 -0
  99. package/dist/commonjs/models/components/devicecounts.js.map +1 -0
  100. package/dist/commonjs/models/components/event.d.ts +2 -2
  101. package/dist/commonjs/models/components/expand.d.ts +2 -0
  102. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  103. package/dist/commonjs/models/components/expand.js +2 -0
  104. package/dist/commonjs/models/components/expand.js.map +1 -1
  105. package/dist/commonjs/models/components/facility.d.ts +6 -0
  106. package/dist/commonjs/models/components/facility.d.ts.map +1 -1
  107. package/dist/commonjs/models/components/facility.js +5 -0
  108. package/dist/commonjs/models/components/facility.js.map +1 -1
  109. package/dist/commonjs/models/components/index.d.ts +2 -0
  110. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  111. package/dist/commonjs/models/components/index.js +2 -0
  112. package/dist/commonjs/models/components/index.js.map +1 -1
  113. package/dist/commonjs/models/components/invite.d.ts +40 -4
  114. package/dist/commonjs/models/components/invite.d.ts.map +1 -1
  115. package/dist/commonjs/models/components/invite.js +20 -0
  116. package/dist/commonjs/models/components/invite.js.map +1 -1
  117. package/dist/commonjs/models/components/user.d.ts +4 -0
  118. package/dist/commonjs/models/components/user.d.ts.map +1 -1
  119. package/dist/commonjs/models/components/user.js +2 -0
  120. package/dist/commonjs/models/components/user.js.map +1 -1
  121. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +12 -0
  122. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
  123. package/dist/commonjs/models/components/vendorcredentialsummary.js +4 -0
  124. package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
  125. package/dist/commonjs/models/components/zone.d.ts +6 -0
  126. package/dist/commonjs/models/components/zone.d.ts.map +1 -1
  127. package/dist/commonjs/models/components/zone.js +5 -0
  128. package/dist/commonjs/models/components/zone.js.map +1 -1
  129. package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts +5 -0
  130. package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts.map +1 -1
  131. package/dist/commonjs/models/operations/listorsearchsecurityzones.js +1 -0
  132. package/dist/commonjs/models/operations/listorsearchsecurityzones.js.map +1 -1
  133. package/dist/commonjs/react-query/companiesLookupCompanies.d.ts +12 -0
  134. package/dist/commonjs/react-query/companiesLookupCompanies.d.ts.map +1 -1
  135. package/dist/commonjs/react-query/companiesLookupCompanies.js +12 -0
  136. package/dist/commonjs/react-query/companiesLookupCompanies.js.map +1 -1
  137. package/dist/commonjs/react-query/eventsListFeed.d.ts +37 -33
  138. package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -1
  139. package/dist/commonjs/react-query/eventsListFeed.js +37 -33
  140. package/dist/commonjs/react-query/eventsListFeed.js.map +1 -1
  141. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +32 -28
  142. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  143. package/dist/commonjs/react-query/eventsListPendingInvitations.js +32 -28
  144. package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -1
  145. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +24 -20
  146. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  147. package/dist/commonjs/react-query/eventsListStandingAppointments.js +24 -20
  148. package/dist/commonjs/react-query/eventsListStandingAppointments.js.map +1 -1
  149. package/dist/commonjs/react-query/organizationsGetFacility.d.ts +2 -0
  150. package/dist/commonjs/react-query/organizationsGetFacility.d.ts.map +1 -1
  151. package/dist/commonjs/react-query/organizationsGetFacility.js +2 -0
  152. package/dist/commonjs/react-query/organizationsGetFacility.js.map +1 -1
  153. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts +4 -0
  154. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  155. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js +4 -0
  156. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  157. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts +9 -2
  158. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  159. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.js +9 -2
  160. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.js.map +1 -1
  161. package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts +7 -1
  162. package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
  163. package/dist/commonjs/react-query/vendorsCreateVendorCompany.js +7 -1
  164. package/dist/commonjs/react-query/vendorsCreateVendorCompany.js.map +1 -1
  165. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
  166. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  167. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.js +9 -1
  168. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  169. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts +8 -0
  170. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  171. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js +8 -0
  172. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
  173. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.d.ts +16 -0
  174. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.d.ts.map +1 -1
  175. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.js +16 -0
  176. package/dist/commonjs/react-query/vendorsListVendorCredentialHistory.js.map +1 -1
  177. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts +3 -1
  178. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  179. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js +3 -1
  180. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js.map +1 -1
  181. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
  182. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  183. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.js +10 -1
  184. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  185. package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts +2 -0
  186. package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts.map +1 -1
  187. package/dist/commonjs/react-query/zonesGetSecurityZone.js +2 -0
  188. package/dist/commonjs/react-query/zonesGetSecurityZone.js.map +1 -1
  189. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.d.ts +2 -0
  190. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.d.ts.map +1 -1
  191. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.js +2 -0
  192. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.js.map +1 -1
  193. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts +10 -0
  194. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  195. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js +8 -0
  196. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js.map +1 -1
  197. package/dist/commonjs/sdk/companies.d.ts +3 -0
  198. package/dist/commonjs/sdk/companies.d.ts.map +1 -1
  199. package/dist/commonjs/sdk/companies.js +3 -0
  200. package/dist/commonjs/sdk/companies.js.map +1 -1
  201. package/dist/commonjs/sdk/events.d.ts +23 -20
  202. package/dist/commonjs/sdk/events.d.ts.map +1 -1
  203. package/dist/commonjs/sdk/events.js +23 -20
  204. package/dist/commonjs/sdk/events.js.map +1 -1
  205. package/dist/commonjs/sdk/organizations.d.ts +2 -0
  206. package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
  207. package/dist/commonjs/sdk/organizations.js +2 -0
  208. package/dist/commonjs/sdk/organizations.js.map +1 -1
  209. package/dist/commonjs/sdk/vendors.d.ts +46 -6
  210. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  211. package/dist/commonjs/sdk/vendors.js +47 -7
  212. package/dist/commonjs/sdk/vendors.js.map +1 -1
  213. package/dist/commonjs/sdk/zones.d.ts +3 -0
  214. package/dist/commonjs/sdk/zones.d.ts.map +1 -1
  215. package/dist/commonjs/sdk/zones.js +3 -0
  216. package/dist/commonjs/sdk/zones.js.map +1 -1
  217. package/dist/esm/__tests__/vendors.test.js +1 -1
  218. package/dist/esm/__tests__/webhooks.test.js +1 -1
  219. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  220. package/dist/esm/__tests__/zoneDevicesList.test.d.ts +2 -0
  221. package/dist/esm/__tests__/zoneDevicesList.test.d.ts.map +1 -0
  222. package/dist/esm/__tests__/zoneDevicesList.test.js +29 -0
  223. package/dist/esm/__tests__/zoneDevicesList.test.js.map +1 -0
  224. package/dist/esm/__tests__/zones.test.js +10 -7
  225. package/dist/esm/__tests__/zones.test.js.map +1 -1
  226. package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.d.ts +3 -0
  227. package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.d.ts.map +1 -0
  228. package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.js +6 -0
  229. package/dist/esm/admin-funcs/vendorCredentialCreateFormQuote.js.map +1 -0
  230. package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.d.ts +3 -0
  231. package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.d.ts.map +1 -0
  232. package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.js +6 -0
  233. package/dist/esm/admin-funcs/vendorCredentialGetFormLineItems.js.map +1 -0
  234. package/dist/esm/admin-funcs/zoneDevicesList.d.ts +1 -0
  235. package/dist/esm/admin-funcs/zoneDevicesList.d.ts.map +1 -1
  236. package/dist/esm/admin-funcs/zoneDevicesList.js +3 -0
  237. package/dist/esm/admin-funcs/zoneDevicesList.js.map +1 -1
  238. package/dist/esm/funcs/companiesLookupCompanies.d.ts +3 -0
  239. package/dist/esm/funcs/companiesLookupCompanies.d.ts.map +1 -1
  240. package/dist/esm/funcs/companiesLookupCompanies.js +3 -0
  241. package/dist/esm/funcs/companiesLookupCompanies.js.map +1 -1
  242. package/dist/esm/funcs/eventsListFeed.d.ts +9 -8
  243. package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -1
  244. package/dist/esm/funcs/eventsListFeed.js +9 -8
  245. package/dist/esm/funcs/eventsListFeed.js.map +1 -1
  246. package/dist/esm/funcs/eventsListPendingInvitations.d.ts +8 -7
  247. package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  248. package/dist/esm/funcs/eventsListPendingInvitations.js +8 -7
  249. package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -1
  250. package/dist/esm/funcs/eventsListStandingAppointments.d.ts +6 -5
  251. package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  252. package/dist/esm/funcs/eventsListStandingAppointments.js +6 -5
  253. package/dist/esm/funcs/eventsListStandingAppointments.js.map +1 -1
  254. package/dist/esm/funcs/organizationsGetFacility.d.ts +1 -0
  255. package/dist/esm/funcs/organizationsGetFacility.d.ts.map +1 -1
  256. package/dist/esm/funcs/organizationsGetFacility.js +1 -0
  257. package/dist/esm/funcs/organizationsGetFacility.js.map +1 -1
  258. package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts +1 -0
  259. package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
  260. package/dist/esm/funcs/organizationsListOrSearchFacilities.js +1 -0
  261. package/dist/esm/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  262. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts +9 -2
  263. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  264. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js +9 -2
  265. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
  266. package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts +7 -1
  267. package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
  268. package/dist/esm/funcs/vendorsCreateVendorCompany.js +7 -1
  269. package/dist/esm/funcs/vendorsCreateVendorCompany.js.map +1 -1
  270. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
  271. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  272. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js +9 -1
  273. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  274. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts +4 -0
  275. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  276. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js +4 -0
  277. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js.map +1 -1
  278. package/dist/esm/funcs/vendorsListVendorCredentialHistory.d.ts +4 -0
  279. package/dist/esm/funcs/vendorsListVendorCredentialHistory.d.ts.map +1 -1
  280. package/dist/esm/funcs/vendorsListVendorCredentialHistory.js +4 -0
  281. package/dist/esm/funcs/vendorsListVendorCredentialHistory.js.map +1 -1
  282. package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts +3 -1
  283. package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  284. package/dist/esm/funcs/vendorsUpdateVendorCustomField.js +3 -1
  285. package/dist/esm/funcs/vendorsUpdateVendorCustomField.js.map +1 -1
  286. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
  287. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  288. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js +10 -1
  289. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  290. package/dist/esm/funcs/zonesGetSecurityZone.d.ts +1 -0
  291. package/dist/esm/funcs/zonesGetSecurityZone.d.ts.map +1 -1
  292. package/dist/esm/funcs/zonesGetSecurityZone.js +1 -0
  293. package/dist/esm/funcs/zonesGetSecurityZone.js.map +1 -1
  294. package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts +2 -0
  295. package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  296. package/dist/esm/funcs/zonesListOrSearchSecurityZones.js +7 -3
  297. package/dist/esm/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
  298. package/dist/esm/index.extras.d.ts +20 -0
  299. package/dist/esm/index.extras.d.ts.map +1 -1
  300. package/dist/esm/index.extras.js +22 -0
  301. package/dist/esm/index.extras.js.map +1 -1
  302. package/dist/esm/lib/config.d.ts +3 -3
  303. package/dist/esm/lib/config.js +3 -3
  304. package/dist/esm/models/components/authenticatesuccessresponse.d.ts +4 -0
  305. package/dist/esm/models/components/authenticatesuccessresponse.d.ts.map +1 -1
  306. package/dist/esm/models/components/authenticatesuccessresponse.js +2 -0
  307. package/dist/esm/models/components/authenticatesuccessresponse.js.map +1 -1
  308. package/dist/esm/models/components/devicecountpair.d.ts +28 -0
  309. package/dist/esm/models/components/devicecountpair.d.ts.map +1 -0
  310. package/dist/esm/models/components/devicecountpair.js +23 -0
  311. package/dist/esm/models/components/devicecountpair.js.map +1 -0
  312. package/dist/esm/models/components/devicecounts.d.ts +29 -0
  313. package/dist/esm/models/components/devicecounts.d.ts.map +1 -0
  314. package/dist/esm/models/components/devicecounts.js +23 -0
  315. package/dist/esm/models/components/devicecounts.js.map +1 -0
  316. package/dist/esm/models/components/event.d.ts +2 -2
  317. package/dist/esm/models/components/expand.d.ts +2 -0
  318. package/dist/esm/models/components/expand.d.ts.map +1 -1
  319. package/dist/esm/models/components/expand.js +2 -0
  320. package/dist/esm/models/components/expand.js.map +1 -1
  321. package/dist/esm/models/components/facility.d.ts +6 -0
  322. package/dist/esm/models/components/facility.d.ts.map +1 -1
  323. package/dist/esm/models/components/facility.js +5 -0
  324. package/dist/esm/models/components/facility.js.map +1 -1
  325. package/dist/esm/models/components/index.d.ts +2 -0
  326. package/dist/esm/models/components/index.d.ts.map +1 -1
  327. package/dist/esm/models/components/index.js +2 -0
  328. package/dist/esm/models/components/index.js.map +1 -1
  329. package/dist/esm/models/components/invite.d.ts +40 -4
  330. package/dist/esm/models/components/invite.d.ts.map +1 -1
  331. package/dist/esm/models/components/invite.js +20 -0
  332. package/dist/esm/models/components/invite.js.map +1 -1
  333. package/dist/esm/models/components/user.d.ts +4 -0
  334. package/dist/esm/models/components/user.d.ts.map +1 -1
  335. package/dist/esm/models/components/user.js +2 -0
  336. package/dist/esm/models/components/user.js.map +1 -1
  337. package/dist/esm/models/components/vendorcredentialsummary.d.ts +12 -0
  338. package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
  339. package/dist/esm/models/components/vendorcredentialsummary.js +4 -0
  340. package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
  341. package/dist/esm/models/components/zone.d.ts +6 -0
  342. package/dist/esm/models/components/zone.d.ts.map +1 -1
  343. package/dist/esm/models/components/zone.js +5 -0
  344. package/dist/esm/models/components/zone.js.map +1 -1
  345. package/dist/esm/models/operations/listorsearchsecurityzones.d.ts +5 -0
  346. package/dist/esm/models/operations/listorsearchsecurityzones.d.ts.map +1 -1
  347. package/dist/esm/models/operations/listorsearchsecurityzones.js +1 -0
  348. package/dist/esm/models/operations/listorsearchsecurityzones.js.map +1 -1
  349. package/dist/esm/react-query/companiesLookupCompanies.d.ts +12 -0
  350. package/dist/esm/react-query/companiesLookupCompanies.d.ts.map +1 -1
  351. package/dist/esm/react-query/companiesLookupCompanies.js +12 -0
  352. package/dist/esm/react-query/companiesLookupCompanies.js.map +1 -1
  353. package/dist/esm/react-query/eventsListFeed.d.ts +37 -33
  354. package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -1
  355. package/dist/esm/react-query/eventsListFeed.js +37 -33
  356. package/dist/esm/react-query/eventsListFeed.js.map +1 -1
  357. package/dist/esm/react-query/eventsListPendingInvitations.d.ts +32 -28
  358. package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  359. package/dist/esm/react-query/eventsListPendingInvitations.js +32 -28
  360. package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -1
  361. package/dist/esm/react-query/eventsListStandingAppointments.d.ts +24 -20
  362. package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  363. package/dist/esm/react-query/eventsListStandingAppointments.js +24 -20
  364. package/dist/esm/react-query/eventsListStandingAppointments.js.map +1 -1
  365. package/dist/esm/react-query/organizationsGetFacility.d.ts +2 -0
  366. package/dist/esm/react-query/organizationsGetFacility.d.ts.map +1 -1
  367. package/dist/esm/react-query/organizationsGetFacility.js +2 -0
  368. package/dist/esm/react-query/organizationsGetFacility.js.map +1 -1
  369. package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts +4 -0
  370. package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  371. package/dist/esm/react-query/organizationsListOrSearchFacilities.js +4 -0
  372. package/dist/esm/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  373. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts +9 -2
  374. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  375. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.js +9 -2
  376. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.js.map +1 -1
  377. package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts +7 -1
  378. package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
  379. package/dist/esm/react-query/vendorsCreateVendorCompany.js +7 -1
  380. package/dist/esm/react-query/vendorsCreateVendorCompany.js.map +1 -1
  381. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts +9 -1
  382. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  383. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.js +9 -1
  384. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  385. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts +8 -0
  386. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -1
  387. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js +8 -0
  388. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js.map +1 -1
  389. package/dist/esm/react-query/vendorsListVendorCredentialHistory.d.ts +16 -0
  390. package/dist/esm/react-query/vendorsListVendorCredentialHistory.d.ts.map +1 -1
  391. package/dist/esm/react-query/vendorsListVendorCredentialHistory.js +16 -0
  392. package/dist/esm/react-query/vendorsListVendorCredentialHistory.js.map +1 -1
  393. package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts +3 -1
  394. package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  395. package/dist/esm/react-query/vendorsUpdateVendorCustomField.js +3 -1
  396. package/dist/esm/react-query/vendorsUpdateVendorCustomField.js.map +1 -1
  397. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts +10 -1
  398. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  399. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.js +10 -1
  400. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  401. package/dist/esm/react-query/zonesGetSecurityZone.d.ts +2 -0
  402. package/dist/esm/react-query/zonesGetSecurityZone.d.ts.map +1 -1
  403. package/dist/esm/react-query/zonesGetSecurityZone.js +2 -0
  404. package/dist/esm/react-query/zonesGetSecurityZone.js.map +1 -1
  405. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.d.ts +2 -0
  406. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.d.ts.map +1 -1
  407. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.js +2 -0
  408. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.js.map +1 -1
  409. package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts +10 -0
  410. package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  411. package/dist/esm/react-query/zonesListOrSearchSecurityZones.js +8 -0
  412. package/dist/esm/react-query/zonesListOrSearchSecurityZones.js.map +1 -1
  413. package/dist/esm/sdk/companies.d.ts +3 -0
  414. package/dist/esm/sdk/companies.d.ts.map +1 -1
  415. package/dist/esm/sdk/companies.js +3 -0
  416. package/dist/esm/sdk/companies.js.map +1 -1
  417. package/dist/esm/sdk/events.d.ts +23 -20
  418. package/dist/esm/sdk/events.d.ts.map +1 -1
  419. package/dist/esm/sdk/events.js +23 -20
  420. package/dist/esm/sdk/events.js.map +1 -1
  421. package/dist/esm/sdk/organizations.d.ts +2 -0
  422. package/dist/esm/sdk/organizations.d.ts.map +1 -1
  423. package/dist/esm/sdk/organizations.js +2 -0
  424. package/dist/esm/sdk/organizations.js.map +1 -1
  425. package/dist/esm/sdk/vendors.d.ts +46 -6
  426. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  427. package/dist/esm/sdk/vendors.js +47 -7
  428. package/dist/esm/sdk/vendors.js.map +1 -1
  429. package/dist/esm/sdk/zones.d.ts +3 -0
  430. package/dist/esm/sdk/zones.d.ts.map +1 -1
  431. package/dist/esm/sdk/zones.js +3 -0
  432. package/dist/esm/sdk/zones.js.map +1 -1
  433. package/jsr.json +1 -1
  434. package/package.json +1 -1
  435. package/src/__tests__/vendors.test.ts +1 -1
  436. package/src/__tests__/webhooks.test.ts +1 -1
  437. package/src/__tests__/zoneDevicesList.test.ts +37 -0
  438. package/src/__tests__/zones.test.ts +10 -7
  439. package/src/admin-funcs/vendorCredentialCreateFormQuote.ts +12 -0
  440. package/src/admin-funcs/vendorCredentialGetFormLineItems.ts +12 -0
  441. package/src/admin-funcs/zoneDevicesList.ts +4 -0
  442. package/src/funcs/companiesLookupCompanies.ts +3 -0
  443. package/src/funcs/eventsListFeed.ts +9 -8
  444. package/src/funcs/eventsListPendingInvitations.ts +8 -7
  445. package/src/funcs/eventsListStandingAppointments.ts +6 -5
  446. package/src/funcs/organizationsGetFacility.ts +1 -0
  447. package/src/funcs/organizationsListOrSearchFacilities.ts +1 -0
  448. package/src/funcs/vendorsAddVendorManagedByCompany.ts +9 -2
  449. package/src/funcs/vendorsCreateVendorCompany.ts +7 -1
  450. package/src/funcs/vendorsDeleteVendorManagedByCompany.ts +9 -1
  451. package/src/funcs/vendorsGetVendorCredentialDetails.ts +4 -0
  452. package/src/funcs/vendorsListVendorCredentialHistory.ts +4 -0
  453. package/src/funcs/vendorsUpdateVendorCustomField.ts +3 -1
  454. package/src/funcs/vendorsUpdateVendorManagedByCompany.ts +10 -1
  455. package/src/funcs/zonesGetSecurityZone.ts +1 -0
  456. package/src/funcs/zonesListOrSearchSecurityZones.ts +20 -13
  457. package/src/index.extras.ts +25 -0
  458. package/src/lib/config.ts +3 -3
  459. package/src/models/components/authenticatesuccessresponse.ts +6 -0
  460. package/src/models/components/devicecountpair.ts +63 -0
  461. package/src/models/components/devicecounts.ts +66 -0
  462. package/src/models/components/event.ts +2 -2
  463. package/src/models/components/expand.ts +2 -0
  464. package/src/models/components/facility.ts +15 -0
  465. package/src/models/components/index.ts +2 -0
  466. package/src/models/components/invite.ts +60 -4
  467. package/src/models/components/user.ts +6 -0
  468. package/src/models/components/vendorcredentialsummary.ts +16 -0
  469. package/src/models/components/zone.ts +15 -0
  470. package/src/models/operations/listorsearchsecurityzones.ts +6 -0
  471. package/src/react-query/companiesLookupCompanies.ts +12 -0
  472. package/src/react-query/eventsListFeed.ts +36 -32
  473. package/src/react-query/eventsListPendingInvitations.ts +32 -28
  474. package/src/react-query/eventsListStandingAppointments.ts +24 -20
  475. package/src/react-query/organizationsGetFacility.ts +2 -0
  476. package/src/react-query/organizationsListOrSearchFacilities.ts +4 -0
  477. package/src/react-query/vendorsAddVendorManagedByCompany.ts +9 -2
  478. package/src/react-query/vendorsCreateVendorCompany.ts +7 -1
  479. package/src/react-query/vendorsDeleteVendorManagedByCompany.ts +9 -1
  480. package/src/react-query/vendorsGetVendorCredentialDetails.ts +8 -0
  481. package/src/react-query/vendorsListVendorCredentialHistory.ts +16 -0
  482. package/src/react-query/vendorsUpdateVendorCustomField.ts +3 -1
  483. package/src/react-query/vendorsUpdateVendorManagedByCompany.ts +10 -1
  484. package/src/react-query/zonesGetSecurityZone.ts +2 -0
  485. package/src/react-query/zonesListOrSearchSecurityZones.core.ts +4 -0
  486. package/src/react-query/zonesListOrSearchSecurityZones.ts +10 -0
  487. package/src/sdk/companies.ts +3 -0
  488. package/src/sdk/events.ts +23 -20
  489. package/src/sdk/organizations.ts +2 -0
  490. package/src/sdk/vendors.ts +47 -7
  491. package/src/sdk/zones.ts +3 -0
@@ -81,13 +81,14 @@ export type EventsListStandingAppointmentsQueryError =
81
81
  * the caller's role and their relationship to the record decide what the endpoint returns.
82
82
  *
83
83
  * Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
84
- * `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
85
- * `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
86
- * the reader's own outstanding invite. SDK builds earlier than `0.55.0-beta.1` receive the older
84
+ * `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
85
+ * applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
86
+ * are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
87
+ * the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
87
88
  * `StandingAppointment` shape instead.
88
89
  *
89
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
90
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
90
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
91
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
91
92
  * build compares against it.
92
93
  */
93
94
  export function useEventsListStandingAppointments(
@@ -121,13 +122,14 @@ export function useEventsListStandingAppointments(
121
122
  * the caller's role and their relationship to the record decide what the endpoint returns.
122
123
  *
123
124
  * Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
124
- * `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
125
- * `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
126
- * the reader's own outstanding invite. SDK builds earlier than `0.55.0-beta.1` receive the older
125
+ * `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
126
+ * applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
127
+ * are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
128
+ * the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
127
129
  * `StandingAppointment` shape instead.
128
130
  *
129
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
130
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
131
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
132
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
131
133
  * build compares against it.
132
134
  */
133
135
  export function useEventsListStandingAppointmentsSuspense(
@@ -161,13 +163,14 @@ export function useEventsListStandingAppointmentsSuspense(
161
163
  * the caller's role and their relationship to the record decide what the endpoint returns.
162
164
  *
163
165
  * Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
164
- * `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
165
- * `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
166
- * the reader's own outstanding invite. SDK builds earlier than `0.55.0-beta.1` receive the older
166
+ * `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
167
+ * applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
168
+ * are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
169
+ * the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
167
170
  * `StandingAppointment` shape instead.
168
171
  *
169
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
170
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
172
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
173
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
171
174
  * build compares against it.
172
175
  */
173
176
  export function useEventsListStandingAppointmentsInfinite(
@@ -215,13 +218,14 @@ export function useEventsListStandingAppointmentsInfinite(
215
218
  * the caller's role and their relationship to the record decide what the endpoint returns.
216
219
  *
217
220
  * Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
218
- * `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
219
- * `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
220
- * the reader's own outstanding invite. SDK builds earlier than `0.55.0-beta.1` receive the older
221
+ * `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
222
+ * applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
223
+ * are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
224
+ * the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
221
225
  * `StandingAppointment` shape instead.
222
226
  *
223
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
224
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
227
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
228
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
225
229
  * build compares against it.
226
230
  */
227
231
  export function useEventsListStandingAppointmentsInfiniteSuspense(
@@ -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<
@@ -63,6 +63,10 @@ export type VendorsGetVendorCredentialDetailsQueryError =
63
63
  * is expanded, a company manager viewing a vendor-owned credential (not a company-owned one) only
64
64
  * receives the files they personally uploaded on the vendor's behalf.
65
65
  *
66
+ * For that same restricted company manager, `json_data` is returned as `null` unless they are the
67
+ * one who first submitted this version of the credential - everything else in the response
68
+ * (status, dates, notes, credential/invoice/etc.) is unaffected.
69
+ *
66
70
  * The following `expand` scopes are available:
67
71
  *
68
72
  * - `vendor_credential.credential`
@@ -127,6 +131,10 @@ export function useVendorsGetVendorCredentialDetails(
127
131
  * is expanded, a company manager viewing a vendor-owned credential (not a company-owned one) only
128
132
  * receives the files they personally uploaded on the vendor's behalf.
129
133
  *
134
+ * For that same restricted company manager, `json_data` is returned as `null` unless they are the
135
+ * one who first submitted this version of the credential - everything else in the response
136
+ * (status, dates, notes, credential/invoice/etc.) is unaffected.
137
+ *
130
138
  * The following `expand` scopes are available:
131
139
  *
132
140
  * - `vendor_credential.credential`
@@ -78,6 +78,10 @@ export type VendorsListVendorCredentialHistoryQueryError =
78
78
  * Lists vendor credentials history
79
79
  *
80
80
  * **Permissions.** Requires the `vendor_credentials.view` permission.
81
+ *
82
+ * Each item's `submitted_by_current_user` says whether the calling user is the one who first
83
+ * submitted that version, so a vendor or company manager can tell their own submissions apart
84
+ * from ones made by someone else with access to the same credential.
81
85
  */
82
86
  export function useVendorsListVendorCredentialHistory(
83
87
  request: operations.ListVendorCredentialHistoryRequest,
@@ -107,6 +111,10 @@ export function useVendorsListVendorCredentialHistory(
107
111
  * Lists vendor credentials history
108
112
  *
109
113
  * **Permissions.** Requires the `vendor_credentials.view` permission.
114
+ *
115
+ * Each item's `submitted_by_current_user` says whether the calling user is the one who first
116
+ * submitted that version, so a vendor or company manager can tell their own submissions apart
117
+ * from ones made by someone else with access to the same credential.
110
118
  */
111
119
  export function useVendorsListVendorCredentialHistorySuspense(
112
120
  request: operations.ListVendorCredentialHistoryRequest,
@@ -136,6 +144,10 @@ export function useVendorsListVendorCredentialHistorySuspense(
136
144
  * Lists vendor credentials history
137
145
  *
138
146
  * **Permissions.** Requires the `vendor_credentials.view` permission.
147
+ *
148
+ * Each item's `submitted_by_current_user` says whether the calling user is the one who first
149
+ * submitted that version, so a vendor or company manager can tell their own submissions apart
150
+ * from ones made by someone else with access to the same credential.
139
151
  */
140
152
  export function useVendorsListVendorCredentialHistoryInfinite(
141
153
  request: operations.ListVendorCredentialHistoryRequest,
@@ -179,6 +191,10 @@ export function useVendorsListVendorCredentialHistoryInfinite(
179
191
  * Lists vendor credentials history
180
192
  *
181
193
  * **Permissions.** Requires the `vendor_credentials.view` permission.
194
+ *
195
+ * Each item's `submitted_by_current_user` says whether the calling user is the one who first
196
+ * submitted that version, so a vendor or company manager can tell their own submissions apart
197
+ * from ones made by someone else with access to the same credential.
182
198
  */
183
199
  export function useVendorsListVendorCredentialHistoryInfiniteSuspense(
184
200
  request: operations.ListVendorCredentialHistoryRequest,
@@ -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
  */
@@ -82,6 +82,7 @@ export function buildZonesListOrSearchSecurityZonesQuery(
82
82
  latitude: request.latitude,
83
83
  longitude: request.longitude,
84
84
  nameLike: request.nameLike,
85
+ expand: request.expand,
85
86
  contactId: request.contactId,
86
87
  facilityId: request.facilityId,
87
88
  greenLocationId: request.greenLocationId,
@@ -131,6 +132,7 @@ export function buildZonesListOrSearchSecurityZonesInfiniteQuery(
131
132
  latitude: request.latitude,
132
133
  longitude: request.longitude,
133
134
  nameLike: request.nameLike,
135
+ expand: request.expand,
134
136
  contactId: request.contactId,
135
137
  facilityId: request.facilityId,
136
138
  greenLocationId: request.greenLocationId,
@@ -178,6 +180,7 @@ export function queryKeyZonesListOrSearchSecurityZones(
178
180
  latitude?: number | undefined;
179
181
  longitude?: number | undefined;
180
182
  nameLike?: string | undefined;
183
+ expand?: Array<components.Expand> | undefined;
181
184
  contactId?: number | undefined;
182
185
  facilityId?: number | undefined;
183
186
  greenLocationId?: number | undefined;
@@ -200,6 +203,7 @@ export function queryKeyZonesListOrSearchSecurityZonesInfinite(
200
203
  latitude?: number | undefined;
201
204
  longitude?: number | undefined;
202
205
  nameLike?: string | undefined;
206
+ expand?: Array<components.Expand> | undefined;
203
207
  contactId?: number | undefined;
204
208
  facilityId?: number | undefined;
205
209
  greenLocationId?: number | undefined;
@@ -78,6 +78,8 @@ export type ZonesListOrSearchSecurityZonesQueryError =
78
78
  * Lists or searches security zones
79
79
  *
80
80
  * **Permissions.** Requires the `zones.view` permission.
81
+ *
82
+ * The `expand` parameter accepts only `zone.device_counts`, which also requires `zone_devices.view`. The server ignores other values.
81
83
  */
82
84
  export function useZonesListOrSearchSecurityZones(
83
85
  request: operations.ListOrSearchSecurityZonesRequest,
@@ -107,6 +109,8 @@ export function useZonesListOrSearchSecurityZones(
107
109
  * Lists or searches security zones
108
110
  *
109
111
  * **Permissions.** Requires the `zones.view` permission.
112
+ *
113
+ * The `expand` parameter accepts only `zone.device_counts`, which also requires `zone_devices.view`. The server ignores other values.
110
114
  */
111
115
  export function useZonesListOrSearchSecurityZonesSuspense(
112
116
  request: operations.ListOrSearchSecurityZonesRequest,
@@ -136,6 +140,8 @@ export function useZonesListOrSearchSecurityZonesSuspense(
136
140
  * Lists or searches security zones
137
141
  *
138
142
  * **Permissions.** Requires the `zones.view` permission.
143
+ *
144
+ * The `expand` parameter accepts only `zone.device_counts`, which also requires `zone_devices.view`. The server ignores other values.
139
145
  */
140
146
  export function useZonesListOrSearchSecurityZonesInfinite(
141
147
  request: operations.ListOrSearchSecurityZonesRequest,
@@ -179,6 +185,8 @@ export function useZonesListOrSearchSecurityZonesInfinite(
179
185
  * Lists or searches security zones
180
186
  *
181
187
  * **Permissions.** Requires the `zones.view` permission.
188
+ *
189
+ * The `expand` parameter accepts only `zone.device_counts`, which also requires `zone_devices.view`. The server ignores other values.
182
190
  */
183
191
  export function useZonesListOrSearchSecurityZonesInfiniteSuspense(
184
192
  request: operations.ListOrSearchSecurityZonesRequest,
@@ -226,6 +234,7 @@ export function setZonesListOrSearchSecurityZonesData(
226
234
  latitude?: number | undefined;
227
235
  longitude?: number | undefined;
228
236
  nameLike?: string | undefined;
237
+ expand?: Array<components.Expand> | undefined;
229
238
  contactId?: number | undefined;
230
239
  facilityId?: number | undefined;
231
240
  greenLocationId?: number | undefined;
@@ -252,6 +261,7 @@ export function invalidateZonesListOrSearchSecurityZones(
252
261
  latitude?: number | undefined;
253
262
  longitude?: number | undefined;
254
263
  nameLike?: string | undefined;
264
+ expand?: Array<components.Expand> | undefined;
255
265
  contactId?: number | undefined;
256
266
  facilityId?: number | undefined;
257
267
  greenLocationId?: number | undefined;
@@ -77,6 +77,9 @@ export class Companies extends ClientSDK {
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
  async lookupCompanies(
package/src/sdk/events.ts CHANGED
@@ -210,15 +210,16 @@ export class Events extends ClientSDK {
210
210
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission:
211
211
  * the caller's role and their relationship to the record decide what the endpoint returns.
212
212
  *
213
- * Returns `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
214
- * so `event` is the expanded `{ id, name }` summary instead of a bare id, and `invitee` is
215
- * populated—the appointment and the recipient this list has always named. This endpoint
216
- * takes no `expand` parameter; the endpoint always applies both scopes.
217
- * SDK builds earlier than `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
213
+ * Returns `Invite` items with the `invite.event`, `invite.invitee`, `event.location` and
214
+ * `event.creator` scopes already applied. So `event` is the expanded summary instead of a bare
215
+ * id, with the appointment's dates, flags, notes, location and organizer, and `invitee` is
216
+ * populated with the recipient's name and thumbnail—what this list has always published. This
217
+ * endpoint takes no `expand` parameter; the endpoint always applies these scopes.
218
+ * SDK builds earlier than `0.46.0-beta.1` receive the older `PendingInvitation` shape instead, which
218
219
  * embeds the appointment.
219
220
  *
220
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
221
- * `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
221
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
222
+ * `0.46.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
222
223
  * build compares against it.
223
224
  */
224
225
  async listPendingInvitations(
@@ -243,15 +244,16 @@ export class Events extends ClientSDK {
243
244
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission.
244
245
  * The caller's role and their relationship to the record decide what the response includes.
245
246
  *
246
- * Returns `Event` items with the `event.creator` and `event.invitees` scopes already applied,
247
- * so the server populates `event_creator`, `event_creator_img_url` and `invitees`—the fields this
248
- * feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
249
- * instead, in which `facility` and `department` are name strings, not ids; the server
250
- * chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
251
- * shape it was generated against until you regenerate it.
247
+ * Returns `Event` items with the `event.creator`, `event.invitees`, `event.facility` and
248
+ * `event.department` scopes already applied, so the server populates `event_creator`,
249
+ * `event_creator_img_url` and `invitees`, and `facility` and `department` are `{ id, name }`
250
+ * summaries—the fields this feed has always carried. SDK builds below `0.46.0-beta.1`
251
+ * receive the older `Feed` shape instead, in which `facility` and `department` are name
252
+ * strings, not ids; the server chooses by the `X-SDK-User-Agent` header the SDK sends, so an
253
+ * existing client keeps the shape it was generated against until you regenerate it.
252
254
  *
253
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
254
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
255
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
256
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
255
257
  * build against it.
256
258
  */
257
259
  async listFeed(
@@ -275,13 +277,14 @@ export class Events extends ClientSDK {
275
277
  * the caller's role and their relationship to the record decide what the endpoint returns.
276
278
  *
277
279
  * Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
278
- * `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
279
- * `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
280
- * the reader's own outstanding invite. SDK builds earlier than `0.55.0-beta.1` receive the older
280
+ * `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
281
+ * applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
282
+ * are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
283
+ * the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
281
284
  * `StandingAppointment` shape instead.
282
285
  *
283
- * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
284
- * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
286
+ * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
287
+ * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
285
288
  * build compares against it.
286
289
  */
287
290
  async listStandingAppointments(
@@ -36,6 +36,7 @@ export class Organizations extends ClientSDK {
36
36
  * - `facility.system`
37
37
  * - `facility.contacts`
38
38
  * - `facility.vendor_counts`
39
+ * - `facility.device_counts` (also requires `zone_devices.view`)
39
40
  * - `facility.appointment_policy`
40
41
  * - `facility.vendor_policy`
41
42
  * - `facility.vendor_guest_policy`
@@ -75,6 +76,7 @@ export class Organizations extends ClientSDK {
75
76
  * - `facility.system`
76
77
  * - `facility.contacts`
77
78
  * - `facility.vendor_counts`
79
+ * - `facility.device_counts` (also requires `zone_devices.view`)
78
80
  * - `facility.appointment_policy`
79
81
  * - `facility.vendor_policy`
80
82
  * - `facility.vendor_guest_policy`
@@ -296,6 +296,10 @@ export class Vendors extends ClientSDK {
296
296
  * is expanded, a company manager viewing a vendor-owned credential (not a company-owned one) only
297
297
  * receives the files they personally uploaded on the vendor's behalf.
298
298
  *
299
+ * For that same restricted company manager, `json_data` is returned as `null` unless they are the
300
+ * one who first submitted this version of the credential - everything else in the response
301
+ * (status, dates, notes, credential/invoice/etc.) is unaffected.
302
+ *
299
303
  * The following `expand` scopes are available:
300
304
  *
301
305
  * - `vendor_credential.credential`
@@ -637,6 +641,10 @@ export class Vendors extends ClientSDK {
637
641
  * Lists vendor credentials history
638
642
  *
639
643
  * **Permissions.** Requires the `vendor_credentials.view` permission.
644
+ *
645
+ * Each item's `submitted_by_current_user` says whether the calling user is the one who first
646
+ * submitted that version, so a vendor or company manager can tell their own submissions apart
647
+ * from ones made by someone else with access to the same credential.
640
648
  */
641
649
  async listVendorCredentialHistory(
642
650
  request: operations.ListVendorCredentialHistoryRequest,
@@ -1144,7 +1152,9 @@ export class Vendors extends ClientSDK {
1144
1152
  * Accepts a numeric vendor ID, `me` for the authenticated vendor,
1145
1153
  * or an active QR code (format: contains hyphens).
1146
1154
  *
1147
- * **Permissions.** Requires the `vendors.edit` permission.
1155
+ * **Permissions.** Requires the `vendors.edit` permission. A company manager whose company
1156
+ * manages the vendor through a managed-by-company link, rather than owning it, also needs that
1157
+ * link's `may_edit_profile` access right, or the API returns `403`.
1148
1158
  */
1149
1159
  async updateVendorCustomField(
1150
1160
  request: operations.UpdateVendorCustomFieldRequest,
@@ -1185,9 +1195,16 @@ export class Vendors extends ClientSDK {
1185
1195
  * Add vendor managed by company
1186
1196
  *
1187
1197
  * @remarks
1188
- * Adds a company as a manager of the vendor.
1189
- *
1190
- * **Permissions.** Requires the `vendors.edit` permission.
1198
+ * Adds a company as a manager of the vendor. The new company starts with every access right
1199
+ * turned off. The company must be on the same site as the vendor. Otherwise, the API returns
1200
+ * `404`.
1201
+ *
1202
+ * **Permissions.** Requires the `vendors.edit` permission. Only these callers can change which
1203
+ * companies manage the vendor: the vendor, a company manager at the company the vendor belongs to,
1204
+ * a Green Security administrator, or an app whose API token can update the vendor (an app
1205
+ * installed for the vendor's whole site, for the company the vendor belongs to, or by the vendor).
1206
+ * A company manager whose company manages the vendor through a managed-by-company link, rather
1207
+ * than owning the vendor, gets a `403`, and so do facility and system users.
1191
1208
  */
1192
1209
  async addVendorManagedByCompany(
1193
1210
  request: operations.AddVendorManagedByCompanyRequest,
@@ -1206,7 +1223,15 @@ export class Vendors extends ClientSDK {
1206
1223
  * @remarks
1207
1224
  * Removes a company as a manager of the vendor.
1208
1225
  *
1209
- * **Permissions.** Requires the `vendors.edit` permission.
1226
+ * **Permissions.** Requires the `vendors.edit` permission. Only these callers can change which
1227
+ * companies manage the vendor: the vendor, a company manager at the company the vendor belongs to,
1228
+ * a Green Security administrator, or an app whose API token can update the vendor (an app
1229
+ * installed for the vendor's whole site, for the company the vendor belongs to, or by the vendor).
1230
+ * A company manager whose company manages the vendor through a managed-by-company link, rather
1231
+ * than owning the vendor, gets a `403`, and so do facility and system users.
1232
+ *
1233
+ * If `managed_vendor_id` doesn't belong to this vendor, the API returns `404`, the same response
1234
+ * as for an ID that doesn't exist.
1210
1235
  */
1211
1236
  async deleteVendorManagedByCompany(
1212
1237
  request: operations.DeleteVendorManagedByCompanyRequest,
@@ -1225,7 +1250,16 @@ export class Vendors extends ClientSDK {
1225
1250
  * @remarks
1226
1251
  * Updates the access rights that a company has for the vendor it manages.
1227
1252
  *
1228
- * **Permissions.** Requires the `vendors.edit` permission.
1253
+ * **Permissions.** Requires the `vendors.edit` permission. Only these callers can change access
1254
+ * rights: the vendor, a company manager at the company the vendor belongs to, a Green Security
1255
+ * administrator, or an app whose API token can update the vendor (an app installed for the
1256
+ * vendor's whole site, for the company the vendor belongs to, or by the vendor). A company manager
1257
+ * whose company manages the vendor through a managed-by-company link, rather than owning the
1258
+ * vendor, gets a `403`: that company can't change its own access rights or another company's.
1259
+ * Facility and system users get a `403` too.
1260
+ *
1261
+ * If `managed_vendor_id` doesn't belong to this vendor, the API returns `404`, the same response
1262
+ * as for an ID that doesn't exist.
1229
1263
  */
1230
1264
  async updateVendorManagedByCompany(
1231
1265
  request: operations.UpdateVendorManagedByCompanyRequest,
@@ -1369,7 +1403,13 @@ export class Vendors extends ClientSDK {
1369
1403
  * @remarks
1370
1404
  * Creates vendor company
1371
1405
  *
1372
- * **Permissions.** Requires the `companies.add` permission.
1406
+ * **Permissions.** Requires the `companies.add` permission. Only these callers can move the vendor
1407
+ * into a new company: the vendor, a company manager at the company the vendor belongs to, a Green
1408
+ * Security administrator, or an app installed for the vendor's whole site. An app needs a
1409
+ * site-wide installation because only a site-wide installation can create companies. An app
1410
+ * installed only for a company or by a user gets a `403`, even when its API token can update the
1411
+ * vendor. A company manager whose company manages the vendor through a managed-by-company link,
1412
+ * rather than owning the vendor, gets a `403`, and so do facility and system users.
1373
1413
  */
1374
1414
  async createVendorCompany(
1375
1415
  request: operations.CreateVendorCompanyRequest,
package/src/sdk/zones.ts CHANGED
@@ -19,6 +19,8 @@ export class Zones extends ClientSDK {
19
19
  * Lists or searches security zones
20
20
  *
21
21
  * **Permissions.** Requires the `zones.view` permission.
22
+ *
23
+ * The `expand` parameter accepts only `zone.device_counts`, which also requires `zone_devices.view`. The server ignores other values.
22
24
  */
23
25
  async listOrSearchSecurityZones(
24
26
  request: operations.ListOrSearchSecurityZonesRequest,
@@ -46,6 +48,7 @@ export class Zones extends ClientSDK {
46
48
  * - `zone.facility`
47
49
  * - `zone.department`
48
50
  * - `zone.rules`
51
+ * - `zone.device_counts` (also requires `zone_devices.view`)
49
52
  *
50
53
  * The server ignores unrecognized values.
51
54
  */