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

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 (432) hide show
  1. package/dist/commonjs/__tests__/vendors.test.js +1 -1
  2. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  3. package/dist/commonjs/__tests__/webhooks.test.js +5 -4
  4. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  5. package/dist/commonjs/__tests__/zones.test.js +10 -12
  6. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  7. package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts +0 -1
  8. package/dist/commonjs/admin-funcs/zoneDevicesList.d.ts.map +1 -1
  9. package/dist/commonjs/admin-funcs/zoneDevicesList.js +0 -3
  10. package/dist/commonjs/admin-funcs/zoneDevicesList.js.map +1 -1
  11. package/dist/commonjs/funcs/companiesLookupCompanies.d.ts +0 -3
  12. package/dist/commonjs/funcs/companiesLookupCompanies.d.ts.map +1 -1
  13. package/dist/commonjs/funcs/companiesLookupCompanies.js +0 -3
  14. package/dist/commonjs/funcs/companiesLookupCompanies.js.map +1 -1
  15. package/dist/commonjs/funcs/eventsListFeed.d.ts +8 -9
  16. package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -1
  17. package/dist/commonjs/funcs/eventsListFeed.js +8 -9
  18. package/dist/commonjs/funcs/eventsListFeed.js.map +1 -1
  19. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +7 -8
  20. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  21. package/dist/commonjs/funcs/eventsListPendingInvitations.js +7 -8
  22. package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -1
  23. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +5 -6
  24. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  25. package/dist/commonjs/funcs/eventsListStandingAppointments.js +5 -6
  26. package/dist/commonjs/funcs/eventsListStandingAppointments.js.map +1 -1
  27. package/dist/commonjs/funcs/organizationsGetFacility.d.ts +0 -1
  28. package/dist/commonjs/funcs/organizationsGetFacility.d.ts.map +1 -1
  29. package/dist/commonjs/funcs/organizationsGetFacility.js +0 -1
  30. package/dist/commonjs/funcs/organizationsGetFacility.js.map +1 -1
  31. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts +0 -1
  32. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
  33. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js +0 -1
  34. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  35. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts +2 -9
  36. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  37. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js +2 -9
  38. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
  39. package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts +1 -7
  40. package/dist/commonjs/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
  41. package/dist/commonjs/funcs/vendorsCreateVendorCompany.js +1 -7
  42. package/dist/commonjs/funcs/vendorsCreateVendorCompany.js.map +1 -1
  43. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts +1 -9
  44. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  45. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js +1 -9
  46. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  47. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts +1 -3
  48. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  49. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js +1 -3
  50. package/dist/commonjs/funcs/vendorsUpdateVendorCustomField.js.map +1 -1
  51. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts +1 -10
  52. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  53. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js +1 -10
  54. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  55. package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts +0 -1
  56. package/dist/commonjs/funcs/zonesGetSecurityZone.d.ts.map +1 -1
  57. package/dist/commonjs/funcs/zonesGetSecurityZone.js +0 -1
  58. package/dist/commonjs/funcs/zonesGetSecurityZone.js.map +1 -1
  59. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts +0 -2
  60. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  61. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js +2 -6
  62. package/dist/commonjs/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
  63. package/dist/commonjs/index.extras.d.ts +0 -14
  64. package/dist/commonjs/index.extras.d.ts.map +1 -1
  65. package/dist/commonjs/index.extras.js +0 -16
  66. package/dist/commonjs/index.extras.js.map +1 -1
  67. package/dist/commonjs/lib/config.d.ts +4 -4
  68. package/dist/commonjs/lib/config.js +4 -4
  69. package/dist/commonjs/lib/config.js.map +1 -1
  70. package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts +0 -4
  71. package/dist/commonjs/models/components/authenticatesuccessresponse.d.ts.map +1 -1
  72. package/dist/commonjs/models/components/authenticatesuccessresponse.js +0 -2
  73. package/dist/commonjs/models/components/authenticatesuccessresponse.js.map +1 -1
  74. package/dist/commonjs/models/components/event.d.ts +2 -2
  75. package/dist/commonjs/models/components/expand.d.ts +0 -2
  76. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  77. package/dist/commonjs/models/components/expand.js +0 -2
  78. package/dist/commonjs/models/components/expand.js.map +1 -1
  79. package/dist/commonjs/models/components/facility.d.ts +0 -6
  80. package/dist/commonjs/models/components/facility.d.ts.map +1 -1
  81. package/dist/commonjs/models/components/facility.js +0 -5
  82. package/dist/commonjs/models/components/facility.js.map +1 -1
  83. package/dist/commonjs/models/components/index.d.ts +0 -2
  84. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  85. package/dist/commonjs/models/components/index.js +0 -2
  86. package/dist/commonjs/models/components/index.js.map +1 -1
  87. package/dist/commonjs/models/components/invite.d.ts +4 -40
  88. package/dist/commonjs/models/components/invite.d.ts.map +1 -1
  89. package/dist/commonjs/models/components/invite.js +0 -20
  90. package/dist/commonjs/models/components/invite.js.map +1 -1
  91. package/dist/commonjs/models/components/user.d.ts +0 -4
  92. package/dist/commonjs/models/components/user.d.ts.map +1 -1
  93. package/dist/commonjs/models/components/user.js +0 -2
  94. package/dist/commonjs/models/components/user.js.map +1 -1
  95. package/dist/commonjs/models/components/zone.d.ts +0 -6
  96. package/dist/commonjs/models/components/zone.d.ts.map +1 -1
  97. package/dist/commonjs/models/components/zone.js +0 -5
  98. package/dist/commonjs/models/components/zone.js.map +1 -1
  99. package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts +0 -5
  100. package/dist/commonjs/models/operations/listorsearchsecurityzones.d.ts.map +1 -1
  101. package/dist/commonjs/models/operations/listorsearchsecurityzones.js +0 -1
  102. package/dist/commonjs/models/operations/listorsearchsecurityzones.js.map +1 -1
  103. package/dist/commonjs/react-query/companiesLookupCompanies.d.ts +0 -12
  104. package/dist/commonjs/react-query/companiesLookupCompanies.d.ts.map +1 -1
  105. package/dist/commonjs/react-query/companiesLookupCompanies.js +0 -12
  106. package/dist/commonjs/react-query/companiesLookupCompanies.js.map +1 -1
  107. package/dist/commonjs/react-query/eventsListFeed.d.ts +33 -37
  108. package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -1
  109. package/dist/commonjs/react-query/eventsListFeed.js +33 -37
  110. package/dist/commonjs/react-query/eventsListFeed.js.map +1 -1
  111. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +28 -32
  112. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  113. package/dist/commonjs/react-query/eventsListPendingInvitations.js +28 -32
  114. package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -1
  115. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +20 -24
  116. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  117. package/dist/commonjs/react-query/eventsListStandingAppointments.js +20 -24
  118. package/dist/commonjs/react-query/eventsListStandingAppointments.js.map +1 -1
  119. package/dist/commonjs/react-query/organizationsGetFacility.d.ts +0 -2
  120. package/dist/commonjs/react-query/organizationsGetFacility.d.ts.map +1 -1
  121. package/dist/commonjs/react-query/organizationsGetFacility.js +0 -2
  122. package/dist/commonjs/react-query/organizationsGetFacility.js.map +1 -1
  123. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts +0 -4
  124. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  125. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js +0 -4
  126. package/dist/commonjs/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  127. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts +2 -9
  128. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  129. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.js +2 -9
  130. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.js.map +1 -1
  131. package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts +1 -7
  132. package/dist/commonjs/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
  133. package/dist/commonjs/react-query/vendorsCreateVendorCompany.js +1 -7
  134. package/dist/commonjs/react-query/vendorsCreateVendorCompany.js.map +1 -1
  135. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts +1 -9
  136. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  137. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.js +1 -9
  138. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  139. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts +1 -3
  140. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  141. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js +1 -3
  142. package/dist/commonjs/react-query/vendorsUpdateVendorCustomField.js.map +1 -1
  143. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts +1 -10
  144. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  145. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.js +1 -10
  146. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  147. package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts +0 -2
  148. package/dist/commonjs/react-query/zonesGetSecurityZone.d.ts.map +1 -1
  149. package/dist/commonjs/react-query/zonesGetSecurityZone.js +0 -2
  150. package/dist/commonjs/react-query/zonesGetSecurityZone.js.map +1 -1
  151. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.d.ts +0 -2
  152. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.d.ts.map +1 -1
  153. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.js +0 -2
  154. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.core.js.map +1 -1
  155. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts +0 -10
  156. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  157. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js +0 -8
  158. package/dist/commonjs/react-query/zonesListOrSearchSecurityZones.js.map +1 -1
  159. package/dist/commonjs/sdk/companies.d.ts +0 -3
  160. package/dist/commonjs/sdk/companies.d.ts.map +1 -1
  161. package/dist/commonjs/sdk/companies.js +0 -3
  162. package/dist/commonjs/sdk/companies.js.map +1 -1
  163. package/dist/commonjs/sdk/events.d.ts +20 -23
  164. package/dist/commonjs/sdk/events.d.ts.map +1 -1
  165. package/dist/commonjs/sdk/events.js +20 -23
  166. package/dist/commonjs/sdk/events.js.map +1 -1
  167. package/dist/commonjs/sdk/organizations.d.ts +0 -2
  168. package/dist/commonjs/sdk/organizations.d.ts.map +1 -1
  169. package/dist/commonjs/sdk/organizations.js +0 -2
  170. package/dist/commonjs/sdk/organizations.js.map +1 -1
  171. package/dist/commonjs/sdk/vendors.d.ts +6 -38
  172. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  173. package/dist/commonjs/sdk/vendors.js +7 -39
  174. package/dist/commonjs/sdk/vendors.js.map +1 -1
  175. package/dist/commonjs/sdk/zones.d.ts +0 -3
  176. package/dist/commonjs/sdk/zones.d.ts.map +1 -1
  177. package/dist/commonjs/sdk/zones.js +0 -3
  178. package/dist/commonjs/sdk/zones.js.map +1 -1
  179. package/dist/esm/__tests__/vendors.test.js +1 -1
  180. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  181. package/dist/esm/__tests__/webhooks.test.js +5 -4
  182. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  183. package/dist/esm/__tests__/zones.test.js +10 -12
  184. package/dist/esm/__tests__/zones.test.js.map +1 -1
  185. package/dist/esm/admin-funcs/zoneDevicesList.d.ts +0 -1
  186. package/dist/esm/admin-funcs/zoneDevicesList.d.ts.map +1 -1
  187. package/dist/esm/admin-funcs/zoneDevicesList.js +0 -3
  188. package/dist/esm/admin-funcs/zoneDevicesList.js.map +1 -1
  189. package/dist/esm/funcs/companiesLookupCompanies.d.ts +0 -3
  190. package/dist/esm/funcs/companiesLookupCompanies.d.ts.map +1 -1
  191. package/dist/esm/funcs/companiesLookupCompanies.js +0 -3
  192. package/dist/esm/funcs/companiesLookupCompanies.js.map +1 -1
  193. package/dist/esm/funcs/eventsListFeed.d.ts +8 -9
  194. package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -1
  195. package/dist/esm/funcs/eventsListFeed.js +8 -9
  196. package/dist/esm/funcs/eventsListFeed.js.map +1 -1
  197. package/dist/esm/funcs/eventsListPendingInvitations.d.ts +7 -8
  198. package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -1
  199. package/dist/esm/funcs/eventsListPendingInvitations.js +7 -8
  200. package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -1
  201. package/dist/esm/funcs/eventsListStandingAppointments.d.ts +5 -6
  202. package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -1
  203. package/dist/esm/funcs/eventsListStandingAppointments.js +5 -6
  204. package/dist/esm/funcs/eventsListStandingAppointments.js.map +1 -1
  205. package/dist/esm/funcs/organizationsGetFacility.d.ts +0 -1
  206. package/dist/esm/funcs/organizationsGetFacility.d.ts.map +1 -1
  207. package/dist/esm/funcs/organizationsGetFacility.js +0 -1
  208. package/dist/esm/funcs/organizationsGetFacility.js.map +1 -1
  209. package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts +0 -1
  210. package/dist/esm/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
  211. package/dist/esm/funcs/organizationsListOrSearchFacilities.js +0 -1
  212. package/dist/esm/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  213. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts +2 -9
  214. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  215. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js +2 -9
  216. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
  217. package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts +1 -7
  218. package/dist/esm/funcs/vendorsCreateVendorCompany.d.ts.map +1 -1
  219. package/dist/esm/funcs/vendorsCreateVendorCompany.js +1 -7
  220. package/dist/esm/funcs/vendorsCreateVendorCompany.js.map +1 -1
  221. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts +1 -9
  222. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  223. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js +1 -9
  224. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  225. package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts +1 -3
  226. package/dist/esm/funcs/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  227. package/dist/esm/funcs/vendorsUpdateVendorCustomField.js +1 -3
  228. package/dist/esm/funcs/vendorsUpdateVendorCustomField.js.map +1 -1
  229. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts +1 -10
  230. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  231. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js +1 -10
  232. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  233. package/dist/esm/funcs/zonesGetSecurityZone.d.ts +0 -1
  234. package/dist/esm/funcs/zonesGetSecurityZone.d.ts.map +1 -1
  235. package/dist/esm/funcs/zonesGetSecurityZone.js +0 -1
  236. package/dist/esm/funcs/zonesGetSecurityZone.js.map +1 -1
  237. package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts +0 -2
  238. package/dist/esm/funcs/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  239. package/dist/esm/funcs/zonesListOrSearchSecurityZones.js +3 -7
  240. package/dist/esm/funcs/zonesListOrSearchSecurityZones.js.map +1 -1
  241. package/dist/esm/index.extras.d.ts +0 -14
  242. package/dist/esm/index.extras.d.ts.map +1 -1
  243. package/dist/esm/index.extras.js +0 -16
  244. package/dist/esm/index.extras.js.map +1 -1
  245. package/dist/esm/lib/config.d.ts +4 -4
  246. package/dist/esm/lib/config.js +4 -4
  247. package/dist/esm/lib/config.js.map +1 -1
  248. package/dist/esm/models/components/authenticatesuccessresponse.d.ts +0 -4
  249. package/dist/esm/models/components/authenticatesuccessresponse.d.ts.map +1 -1
  250. package/dist/esm/models/components/authenticatesuccessresponse.js +0 -2
  251. package/dist/esm/models/components/authenticatesuccessresponse.js.map +1 -1
  252. package/dist/esm/models/components/event.d.ts +2 -2
  253. package/dist/esm/models/components/expand.d.ts +0 -2
  254. package/dist/esm/models/components/expand.d.ts.map +1 -1
  255. package/dist/esm/models/components/expand.js +0 -2
  256. package/dist/esm/models/components/expand.js.map +1 -1
  257. package/dist/esm/models/components/facility.d.ts +0 -6
  258. package/dist/esm/models/components/facility.d.ts.map +1 -1
  259. package/dist/esm/models/components/facility.js +0 -5
  260. package/dist/esm/models/components/facility.js.map +1 -1
  261. package/dist/esm/models/components/index.d.ts +0 -2
  262. package/dist/esm/models/components/index.d.ts.map +1 -1
  263. package/dist/esm/models/components/index.js +0 -2
  264. package/dist/esm/models/components/index.js.map +1 -1
  265. package/dist/esm/models/components/invite.d.ts +4 -40
  266. package/dist/esm/models/components/invite.d.ts.map +1 -1
  267. package/dist/esm/models/components/invite.js +0 -20
  268. package/dist/esm/models/components/invite.js.map +1 -1
  269. package/dist/esm/models/components/user.d.ts +0 -4
  270. package/dist/esm/models/components/user.d.ts.map +1 -1
  271. package/dist/esm/models/components/user.js +0 -2
  272. package/dist/esm/models/components/user.js.map +1 -1
  273. package/dist/esm/models/components/zone.d.ts +0 -6
  274. package/dist/esm/models/components/zone.d.ts.map +1 -1
  275. package/dist/esm/models/components/zone.js +0 -5
  276. package/dist/esm/models/components/zone.js.map +1 -1
  277. package/dist/esm/models/operations/listorsearchsecurityzones.d.ts +0 -5
  278. package/dist/esm/models/operations/listorsearchsecurityzones.d.ts.map +1 -1
  279. package/dist/esm/models/operations/listorsearchsecurityzones.js +0 -1
  280. package/dist/esm/models/operations/listorsearchsecurityzones.js.map +1 -1
  281. package/dist/esm/react-query/companiesLookupCompanies.d.ts +0 -12
  282. package/dist/esm/react-query/companiesLookupCompanies.d.ts.map +1 -1
  283. package/dist/esm/react-query/companiesLookupCompanies.js +0 -12
  284. package/dist/esm/react-query/companiesLookupCompanies.js.map +1 -1
  285. package/dist/esm/react-query/eventsListFeed.d.ts +33 -37
  286. package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -1
  287. package/dist/esm/react-query/eventsListFeed.js +33 -37
  288. package/dist/esm/react-query/eventsListFeed.js.map +1 -1
  289. package/dist/esm/react-query/eventsListPendingInvitations.d.ts +28 -32
  290. package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -1
  291. package/dist/esm/react-query/eventsListPendingInvitations.js +28 -32
  292. package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -1
  293. package/dist/esm/react-query/eventsListStandingAppointments.d.ts +20 -24
  294. package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -1
  295. package/dist/esm/react-query/eventsListStandingAppointments.js +20 -24
  296. package/dist/esm/react-query/eventsListStandingAppointments.js.map +1 -1
  297. package/dist/esm/react-query/organizationsGetFacility.d.ts +0 -2
  298. package/dist/esm/react-query/organizationsGetFacility.d.ts.map +1 -1
  299. package/dist/esm/react-query/organizationsGetFacility.js +0 -2
  300. package/dist/esm/react-query/organizationsGetFacility.js.map +1 -1
  301. package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts +0 -4
  302. package/dist/esm/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  303. package/dist/esm/react-query/organizationsListOrSearchFacilities.js +0 -4
  304. package/dist/esm/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  305. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts +2 -9
  306. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  307. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.js +2 -9
  308. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.js.map +1 -1
  309. package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts +1 -7
  310. package/dist/esm/react-query/vendorsCreateVendorCompany.d.ts.map +1 -1
  311. package/dist/esm/react-query/vendorsCreateVendorCompany.js +1 -7
  312. package/dist/esm/react-query/vendorsCreateVendorCompany.js.map +1 -1
  313. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts +1 -9
  314. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  315. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.js +1 -9
  316. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  317. package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts +1 -3
  318. package/dist/esm/react-query/vendorsUpdateVendorCustomField.d.ts.map +1 -1
  319. package/dist/esm/react-query/vendorsUpdateVendorCustomField.js +1 -3
  320. package/dist/esm/react-query/vendorsUpdateVendorCustomField.js.map +1 -1
  321. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts +1 -10
  322. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  323. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.js +1 -10
  324. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  325. package/dist/esm/react-query/zonesGetSecurityZone.d.ts +0 -2
  326. package/dist/esm/react-query/zonesGetSecurityZone.d.ts.map +1 -1
  327. package/dist/esm/react-query/zonesGetSecurityZone.js +0 -2
  328. package/dist/esm/react-query/zonesGetSecurityZone.js.map +1 -1
  329. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.d.ts +0 -2
  330. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.d.ts.map +1 -1
  331. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.js +0 -2
  332. package/dist/esm/react-query/zonesListOrSearchSecurityZones.core.js.map +1 -1
  333. package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts +0 -10
  334. package/dist/esm/react-query/zonesListOrSearchSecurityZones.d.ts.map +1 -1
  335. package/dist/esm/react-query/zonesListOrSearchSecurityZones.js +0 -8
  336. package/dist/esm/react-query/zonesListOrSearchSecurityZones.js.map +1 -1
  337. package/dist/esm/sdk/companies.d.ts +0 -3
  338. package/dist/esm/sdk/companies.d.ts.map +1 -1
  339. package/dist/esm/sdk/companies.js +0 -3
  340. package/dist/esm/sdk/companies.js.map +1 -1
  341. package/dist/esm/sdk/events.d.ts +20 -23
  342. package/dist/esm/sdk/events.d.ts.map +1 -1
  343. package/dist/esm/sdk/events.js +20 -23
  344. package/dist/esm/sdk/events.js.map +1 -1
  345. package/dist/esm/sdk/organizations.d.ts +0 -2
  346. package/dist/esm/sdk/organizations.d.ts.map +1 -1
  347. package/dist/esm/sdk/organizations.js +0 -2
  348. package/dist/esm/sdk/organizations.js.map +1 -1
  349. package/dist/esm/sdk/vendors.d.ts +6 -38
  350. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  351. package/dist/esm/sdk/vendors.js +7 -39
  352. package/dist/esm/sdk/vendors.js.map +1 -1
  353. package/dist/esm/sdk/zones.d.ts +0 -3
  354. package/dist/esm/sdk/zones.d.ts.map +1 -1
  355. package/dist/esm/sdk/zones.js +0 -3
  356. package/dist/esm/sdk/zones.js.map +1 -1
  357. package/jsr.json +1 -1
  358. package/package.json +1 -1
  359. package/src/__tests__/vendors.test.ts +1 -1
  360. package/src/__tests__/webhooks.test.ts +5 -4
  361. package/src/__tests__/zones.test.ts +10 -12
  362. package/src/admin-funcs/zoneDevicesList.ts +0 -4
  363. package/src/funcs/companiesLookupCompanies.ts +0 -3
  364. package/src/funcs/eventsListFeed.ts +8 -9
  365. package/src/funcs/eventsListPendingInvitations.ts +7 -8
  366. package/src/funcs/eventsListStandingAppointments.ts +5 -6
  367. package/src/funcs/organizationsGetFacility.ts +0 -1
  368. package/src/funcs/organizationsListOrSearchFacilities.ts +0 -1
  369. package/src/funcs/vendorsAddVendorManagedByCompany.ts +2 -9
  370. package/src/funcs/vendorsCreateVendorCompany.ts +1 -7
  371. package/src/funcs/vendorsDeleteVendorManagedByCompany.ts +1 -9
  372. package/src/funcs/vendorsUpdateVendorCustomField.ts +1 -3
  373. package/src/funcs/vendorsUpdateVendorManagedByCompany.ts +1 -10
  374. package/src/funcs/zonesGetSecurityZone.ts +0 -1
  375. package/src/funcs/zonesListOrSearchSecurityZones.ts +13 -20
  376. package/src/index.extras.ts +0 -18
  377. package/src/lib/config.ts +4 -4
  378. package/src/models/components/authenticatesuccessresponse.ts +0 -6
  379. package/src/models/components/event.ts +2 -2
  380. package/src/models/components/expand.ts +0 -2
  381. package/src/models/components/facility.ts +0 -15
  382. package/src/models/components/index.ts +0 -2
  383. package/src/models/components/invite.ts +4 -60
  384. package/src/models/components/user.ts +0 -6
  385. package/src/models/components/zone.ts +0 -15
  386. package/src/models/operations/listorsearchsecurityzones.ts +0 -6
  387. package/src/react-query/companiesLookupCompanies.ts +0 -12
  388. package/src/react-query/eventsListFeed.ts +32 -36
  389. package/src/react-query/eventsListPendingInvitations.ts +28 -32
  390. package/src/react-query/eventsListStandingAppointments.ts +20 -24
  391. package/src/react-query/organizationsGetFacility.ts +0 -2
  392. package/src/react-query/organizationsListOrSearchFacilities.ts +0 -4
  393. package/src/react-query/vendorsAddVendorManagedByCompany.ts +2 -9
  394. package/src/react-query/vendorsCreateVendorCompany.ts +1 -7
  395. package/src/react-query/vendorsDeleteVendorManagedByCompany.ts +1 -9
  396. package/src/react-query/vendorsUpdateVendorCustomField.ts +1 -3
  397. package/src/react-query/vendorsUpdateVendorManagedByCompany.ts +1 -10
  398. package/src/react-query/zonesGetSecurityZone.ts +0 -2
  399. package/src/react-query/zonesListOrSearchSecurityZones.core.ts +0 -4
  400. package/src/react-query/zonesListOrSearchSecurityZones.ts +0 -10
  401. package/src/sdk/companies.ts +0 -3
  402. package/src/sdk/events.ts +20 -23
  403. package/src/sdk/organizations.ts +0 -2
  404. package/src/sdk/vendors.ts +7 -39
  405. package/src/sdk/zones.ts +0 -3
  406. package/dist/commonjs/__tests__/zoneDevicesList.test.d.ts +0 -2
  407. package/dist/commonjs/__tests__/zoneDevicesList.test.d.ts.map +0 -1
  408. package/dist/commonjs/__tests__/zoneDevicesList.test.js +0 -31
  409. package/dist/commonjs/__tests__/zoneDevicesList.test.js.map +0 -1
  410. package/dist/commonjs/models/components/devicecountpair.d.ts +0 -28
  411. package/dist/commonjs/models/components/devicecountpair.d.ts.map +0 -1
  412. package/dist/commonjs/models/components/devicecountpair.js +0 -61
  413. package/dist/commonjs/models/components/devicecountpair.js.map +0 -1
  414. package/dist/commonjs/models/components/devicecounts.d.ts +0 -29
  415. package/dist/commonjs/models/components/devicecounts.d.ts.map +0 -1
  416. package/dist/commonjs/models/components/devicecounts.js +0 -61
  417. package/dist/commonjs/models/components/devicecounts.js.map +0 -1
  418. package/dist/esm/__tests__/zoneDevicesList.test.d.ts +0 -2
  419. package/dist/esm/__tests__/zoneDevicesList.test.d.ts.map +0 -1
  420. package/dist/esm/__tests__/zoneDevicesList.test.js +0 -29
  421. package/dist/esm/__tests__/zoneDevicesList.test.js.map +0 -1
  422. package/dist/esm/models/components/devicecountpair.d.ts +0 -28
  423. package/dist/esm/models/components/devicecountpair.d.ts.map +0 -1
  424. package/dist/esm/models/components/devicecountpair.js +0 -23
  425. package/dist/esm/models/components/devicecountpair.js.map +0 -1
  426. package/dist/esm/models/components/devicecounts.d.ts +0 -29
  427. package/dist/esm/models/components/devicecounts.d.ts.map +0 -1
  428. package/dist/esm/models/components/devicecounts.js +0 -23
  429. package/dist/esm/models/components/devicecounts.js.map +0 -1
  430. package/src/__tests__/zoneDevicesList.test.ts +0 -37
  431. package/src/models/components/devicecountpair.ts +0 -63
  432. package/src/models/components/devicecounts.ts +0 -66
@@ -35,27 +35,27 @@ test("Zones List Or Search Security Zones", async () => {
35
35
  useUrlParams: false,
36
36
  },
37
37
  items: [
38
+ {
39
+ facility: {},
40
+ },
38
41
  {
39
42
  facility: {
40
43
  contacts: {
41
44
  contact: {
42
45
  status: "Deleted",
43
- department: 123,
44
- },
45
- adminContact: {
46
- status: "Active",
47
- department: 123,
46
+ department: null,
48
47
  },
48
+ adminContact: null,
49
49
  techContact: {
50
50
  status: "Deleted",
51
51
  department: 123,
52
52
  },
53
53
  greenSecurityCsm: {
54
54
  status: "Inactive",
55
- department: 123,
55
+ department: null,
56
56
  },
57
57
  accountManager: {
58
- status: "Active",
58
+ status: "Inactive",
59
59
  department: 123,
60
60
  },
61
61
  },
@@ -66,9 +66,6 @@ test("Zones List Or Search Security Zones", async () => {
66
66
  },
67
67
  },
68
68
  },
69
- {
70
- facility: {},
71
- },
72
69
  ],
73
70
  });
74
71
  });
@@ -85,8 +82,9 @@ test("Zones Security Zone Checkin", async () => {
85
82
  });
86
83
 
87
84
  const result = await greenSecurity.zones.securityZoneCheckin({
88
- qrCode: "<value>",
89
- zoneId: 185875,
85
+ longitude: 1088.53,
86
+ latitude: 6020.88,
87
+ zoneId: 654096,
90
88
  });
91
89
  expect(result).toBeDefined();
92
90
  expect(result).toEqual({});
@@ -5,7 +5,6 @@ export type zoneDevicesListSortField = "id" | "name";
5
5
 
6
6
  export type zoneDevicesListRequest = {
7
7
  facilityId?: number;
8
- zoneId?: number;
9
8
  page?: number;
10
9
  itemsPerPage?: number;
11
10
  sort?: zoneDevicesListSortField;
@@ -33,9 +32,6 @@ export function zoneDevicesList(
33
32
  if (request.facilityId !== undefined) {
34
33
  query["facility_id"] = request.facilityId;
35
34
  }
36
- if (request.zoneId !== undefined) {
37
- query["zone_id"] = request.zoneId;
38
- }
39
35
  if (request.page !== undefined) {
40
36
  query["page"] = request.page;
41
37
  }
@@ -38,9 +38,6 @@ import {
38
38
  * @remarks
39
39
  * Lists companies available to the caller as minimal lookup summaries for list and typeahead UIs.
40
40
  *
41
- * For a vendor, the list holds the active companies on the vendor's site: the companies the
42
- * vendor can add as managing companies. Other callers see the companies they can view.
43
- *
44
41
  * **Permissions.** Requires the `companies.view` permission.
45
42
  *
46
43
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
@@ -41,16 +41,15 @@ import {
41
41
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission.
42
42
  * The caller's role and their relationship to the record decide what the response includes.
43
43
  *
44
- * Returns `Event` items with the `event.creator`, `event.invitees`, `event.facility` and
45
- * `event.department` scopes already applied, so the server populates `event_creator`,
46
- * `event_creator_img_url` and `invitees`, and `facility` and `department` are `{ id, name }`
47
- * summaries—the fields this feed has always carried. SDK builds below `0.46.0-beta.1`
48
- * receive the older `Feed` shape instead, in which `facility` and `department` are name
49
- * strings, not ids; the server chooses by the `X-SDK-User-Agent` header the SDK sends, so an
50
- * existing client keeps the shape it was generated against until you regenerate it.
44
+ * Returns `Event` items with the `event.creator` and `event.invitees` scopes already applied,
45
+ * so the server populates `event_creator`, `event_creator_img_url` and `invitees`—the fields this
46
+ * feed has always carried. SDK builds below `0.55.0-beta.1` receive the older `Feed` shape
47
+ * instead, in which `facility` and `department` are name strings, not ids; the server
48
+ * chooses by the `X-SDK-User-Agent` header the SDK sends, so an existing client keeps the
49
+ * shape it was generated against until you regenerate it.
51
50
  *
52
- * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
53
- * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
51
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
52
+ * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how the server compares a
54
53
  * build against it.
55
54
  *
56
55
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
@@ -41,16 +41,15 @@ import {
41
41
  * **Permissions.** Requires a valid token. This endpoint is not gated on a named permission:
42
42
  * the caller's role and their relationship to the record decide what the endpoint returns.
43
43
  *
44
- * Returns `Invite` items with the `invite.event`, `invite.invitee`, `event.location` and
45
- * `event.creator` scopes already applied. So `event` is the expanded summary instead of a bare
46
- * id, with the appointment's dates, flags, notes, location and organizer, and `invitee` is
47
- * populated with the recipient's name and thumbnail—what this list has always published. This
48
- * endpoint takes no `expand` parameter; the endpoint always applies these scopes.
49
- * SDK builds earlier than `0.46.0-beta.1` receive the older `PendingInvitation` shape instead, which
44
+ * Returns `Invite` items with the `invite.event` and `invite.invitee` scopes already applied,
45
+ * so `event` is the expanded `{ id, name }` summary instead of a bare id, and `invitee` is
46
+ * populated—the appointment and the recipient this list has always named. This endpoint
47
+ * takes no `expand` parameter; the endpoint always applies both scopes.
48
+ * SDK builds earlier than `0.55.0-beta.1` receive the older `PendingInvitation` shape instead, which
50
49
  * embeds the appointment.
51
50
  *
52
- * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
53
- * `0.46.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
51
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
52
+ * `0.55.0-beta.1` itself already receives `Invite`. See the `Invite` schema for exactly how a
54
53
  * build compares against it.
55
54
  *
56
55
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
@@ -42,14 +42,13 @@ import {
42
42
  * the caller's role and their relationship to the record decide what the endpoint returns.
43
43
  *
44
44
  * Returns `Event` items with the `event.location`, `event.attendees`, `event.viewer_invite`,
45
- * `event.creator`, `event.invitees`, `event.facility` and `event.department` scopes already
46
- * applied, so `location`, `attendees`, `event_creator`, `event_creator_img_url` and `invitees`
47
- * are populated, `facility` and `department` are `{ id, name }` summaries, and `status` carries
48
- * the reader's own outstanding invite. SDK builds earlier than `0.46.0-beta.1` receive the older
45
+ * `event.creator` and `event.invitees` scopes already applied, so `location`, `attendees`,
46
+ * `event_creator`, `event_creator_img_url` and `invitees` are populated and `status` carries
47
+ * the reader's own outstanding invite. SDK builds earlier than `0.55.0-beta.1` receive the older
49
48
  * `StandingAppointment` shape instead.
50
49
  *
51
- * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release, so
52
- * `0.46.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
50
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release, so
51
+ * `0.55.0-beta.1` itself already receives `Event`. See the `Event` schema for exactly how a
53
52
  * build compares against it.
54
53
  *
55
54
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
@@ -43,7 +43,6 @@ import { Result } from "../types/fp.js";
43
43
  * - `facility.system`
44
44
  * - `facility.contacts`
45
45
  * - `facility.vendor_counts`
46
- * - `facility.device_counts` (also requires `zone_devices.view`)
47
46
  * - `facility.appointment_policy`
48
47
  * - `facility.vendor_policy`
49
48
  * - `facility.vendor_guest_policy`
@@ -45,7 +45,6 @@ import {
45
45
  * - `facility.system`
46
46
  * - `facility.contacts`
47
47
  * - `facility.vendor_counts`
48
- * - `facility.device_counts` (also requires `zone_devices.view`)
49
48
  * - `facility.appointment_policy`
50
49
  * - `facility.vendor_policy`
51
50
  * - `facility.vendor_guest_policy`
@@ -30,16 +30,9 @@ import { Result } from "../types/fp.js";
30
30
  * Add vendor managed by company
31
31
  *
32
32
  * @remarks
33
- * Adds a company as a manager of the vendor. The new company starts with every access right
34
- * turned off. The company must be on the same site as the vendor. Otherwise, the API returns
35
- * `404`.
33
+ * Adds a company as a manager of the vendor.
36
34
  *
37
- * **Permissions.** Requires the `vendors.edit` permission. Only these callers can change which
38
- * companies manage the vendor: the vendor, a company manager at the company the vendor belongs to,
39
- * a Green Security administrator, or an app whose API token can update the vendor (an app
40
- * installed for the vendor's whole site, for the company the vendor belongs to, or by the vendor).
41
- * A company manager whose company manages the vendor through a managed-by-company link, rather
42
- * than owning the vendor, gets a `403`, and so do facility and system users.
35
+ * **Permissions.** Requires the `vendors.edit` permission.
43
36
  *
44
37
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
45
38
  */
@@ -32,13 +32,7 @@ import { Result } from "../types/fp.js";
32
32
  * @remarks
33
33
  * Creates vendor company
34
34
  *
35
- * **Permissions.** Requires the `companies.add` permission. Only these callers can move the vendor
36
- * into a new company: the vendor, a company manager at the company the vendor belongs to, a Green
37
- * Security administrator, or an app installed for the vendor's whole site. An app needs a
38
- * site-wide installation because only a site-wide installation can create companies. An app
39
- * installed only for a company or by a user gets a `403`, even when its API token can update the
40
- * vendor. A company manager whose company manages the vendor through a managed-by-company link,
41
- * rather than owning the vendor, gets a `403`, and so do facility and system users.
35
+ * **Permissions.** Requires the `companies.add` permission.
42
36
  *
43
37
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
44
38
  */
@@ -33,15 +33,7 @@ import { Result } from "../types/fp.js";
33
33
  * @remarks
34
34
  * Removes a company as a manager of the vendor.
35
35
  *
36
- * **Permissions.** Requires the `vendors.edit` permission. Only these callers can change which
37
- * companies manage the vendor: the vendor, a company manager at the company the vendor belongs to,
38
- * a Green Security administrator, or an app whose API token can update the vendor (an app
39
- * installed for the vendor's whole site, for the company the vendor belongs to, or by the vendor).
40
- * A company manager whose company manages the vendor through a managed-by-company link, rather
41
- * than owning the vendor, gets a `403`, and so do facility and system users.
42
- *
43
- * If `managed_vendor_id` doesn't belong to this vendor, the API returns `404`, the same response
44
- * as for an ID that doesn't exist.
36
+ * **Permissions.** Requires the `vendors.edit` permission.
45
37
  *
46
38
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
47
39
  */
@@ -40,9 +40,7 @@ import { Result } from "../types/fp.js";
40
40
  * Accepts a numeric vendor ID, `me` for the authenticated vendor,
41
41
  * or an active QR code (format: contains hyphens).
42
42
  *
43
- * **Permissions.** Requires the `vendors.edit` permission. A company manager whose company
44
- * manages the vendor through a managed-by-company link, rather than owning it, also needs that
45
- * link's `may_edit_profile` access right, or the API returns `403`.
43
+ * **Permissions.** Requires the `vendors.edit` permission.
46
44
  *
47
45
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
48
46
  */
@@ -32,16 +32,7 @@ import { Result } from "../types/fp.js";
32
32
  * @remarks
33
33
  * Updates the access rights that a company has for the vendor it manages.
34
34
  *
35
- * **Permissions.** Requires the `vendors.edit` permission. Only these callers can change access
36
- * rights: the vendor, a company manager at the company the vendor belongs to, a Green Security
37
- * administrator, or an app whose API token can update the vendor (an app installed for the
38
- * vendor's whole site, for the company the vendor belongs to, or by the vendor). A company manager
39
- * whose company manages the vendor through a managed-by-company link, rather than owning the
40
- * vendor, gets a `403`: that company can't change its own access rights or another company's.
41
- * Facility and system users get a `403` too.
42
- *
43
- * If `managed_vendor_id` doesn't belong to this vendor, the API returns `404`, the same response
44
- * as for an ID that doesn't exist.
35
+ * **Permissions.** Requires the `vendors.edit` permission.
45
36
  *
46
37
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
47
38
  */
@@ -40,7 +40,6 @@ import { Result } from "../types/fp.js";
40
40
  * - `zone.facility`
41
41
  * - `zone.department`
42
42
  * - `zone.rules`
43
- * - `zone.device_counts` (also requires `zone_devices.view`)
44
43
  *
45
44
  * The server ignores unrecognized values.
46
45
  *
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  import { GreenSecurityCore } from "../core.js";
6
- import { encodeFormQuery, queryJoin } from "../lib/encodings.js";
6
+ import { encodeFormQuery } 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,8 +40,6 @@ 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
- *
45
43
  * If set, this operation will use {@link Security.bearerJwt} from the global security.
46
44
  */
47
45
  export function zonesListOrSearchSecurityZones(
@@ -110,23 +108,18 @@ async function $do(
110
108
 
111
109
  const path = pathToFunc("/security_zones")();
112
110
 
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
- );
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
+ });
130
123
 
131
124
  const headers = new Headers(compactMap({
132
125
  Accept: "application/json",
@@ -59,11 +59,6 @@ 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";
67
62
 
68
63
  // Third-party app platform contract (surfaces, manifest, host/sandbox protocol, components).
69
64
  export * as apps from "./apps/index.js";
@@ -165,18 +160,5 @@ export const __internal = {
165
160
  createZoneDevice: kioskCreateZoneDevice,
166
161
  createEvent: kioskCreateEvent,
167
162
  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
181
163
  }
182
164
  };
package/src/lib/config.ts CHANGED
@@ -79,9 +79,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
79
79
 
80
80
  export const SDK_METADATA = {
81
81
  language: "typescript",
82
- openapiDocVersion: "0.45.0",
83
- sdkVersion: "0.46.0-beta.8",
84
- genVersion: "2.943.0",
82
+ openapiDocVersion: "0.46.0",
83
+ sdkVersion: "0.46.0",
84
+ genVersion: "2.941.0",
85
85
  userAgent:
86
- "speakeasy-sdk/typescript 0.46.0-beta.8 2.943.0 0.45.0 @greensecurity/javascript-sdk",
86
+ "speakeasy-sdk/typescript 0.46.0 2.941.0 0.46.0 @greensecurity/javascript-sdk",
87
87
  } as const;
@@ -60,10 +60,6 @@ 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;
67
63
  /**
68
64
  * 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.
69
65
  */
@@ -178,7 +174,6 @@ export const AuthenticateSuccessResponse$inboundSchema: z.ZodType<
178
174
  z.ZodTypeDef,
179
175
  unknown
180
176
  > = z.object({
181
- can_manage_zone_devices: types.optional(types.boolean()),
182
177
  is_gatekeeper: types.optional(types.boolean()),
183
178
  success: types.boolean(),
184
179
  user: UserDetails$inboundSchema,
@@ -192,7 +187,6 @@ export const AuthenticateSuccessResponse$inboundSchema: z.ZodType<
192
187
  sso: types.optional(SsoContinuation$inboundSchema),
193
188
  }).transform((v) => {
194
189
  return remap$(v, {
195
- "can_manage_zone_devices": "canManageZoneDevices",
196
190
  "is_gatekeeper": "isGatekeeper",
197
191
  "user_token": "userToken",
198
192
  "inventory_manager": "inventoryManager",
@@ -44,11 +44,11 @@ export type Department2 = {
44
44
  export type EventDepartment = Department2 | number;
45
45
 
46
46
  /**
47
- * An appointment, in the shape served to SDK builds `0.46.0-beta.1` and above. Associations are the numeric id by default, and `{ id, name }` under their expand scope. The display fields (`location`, `attendees`, `event_creator`, `event_creator_img_url`, `invitees`) are null unless the request passes their scope. SDK builds earlier than `0.46.0-beta.1` receive `Feed` or `StandingAppointment` instead, chosen by the server from the `X-SDK-User-Agent` header.
47
+ * An appointment, in the shape served to SDK builds `0.55.0-beta.1` and above. Associations are the numeric id by default, and `{ id, name }` under their expand scope. The display fields (`location`, `attendees`, `event_creator`, `event_creator_img_url`, `invitees`) are null unless the request passes their scope. SDK builds earlier than `0.55.0-beta.1` receive `Feed` or `StandingAppointment` instead, chosen by the server from the `X-SDK-User-Agent` header.
48
48
  *
49
49
  * @remarks
50
50
  *
51
- * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release. The server compares the build to it by semantic-version ordering. A prerelease sorts before its own release. So `0.46.0-beta.1` itself, every later prerelease (`0.46.0-beta.2`, `0.46.0-rc.1`) and every release from `0.46.0` up receive this shape, while an earlier prerelease of the same release—`0.46.0-alpha.1`—does not.
51
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release. The server compares the build to it by semantic-version ordering. A prerelease sorts before its own release. So `0.55.0-beta.1` itself, every later prerelease (`0.55.0-beta.2`, `0.55.0-rc.1`) and every release from `0.55.0` up receive this shape, while an earlier prerelease of the same release—`0.55.0-alpha.1`—does not.
52
52
  */
53
53
  export type Event = {
54
54
  /**
@@ -26,7 +26,6 @@ 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",
30
29
  FacilityFluCredential: "facility.flu_credential",
31
30
  FacilityScrubsPolicy: "facility.scrubs_policy",
32
31
  FacilitySystem: "facility.system",
@@ -127,7 +126,6 @@ export const Expand = {
127
126
  ZoneFacility: "zone.facility",
128
127
  ZoneDepartment: "zone.department",
129
128
  ZoneRules: "zone.rules",
130
- ZoneDeviceCounts: "zone.device_counts",
131
129
  SystemFacilities: "system.facilities",
132
130
  SystemLocation: "system.location",
133
131
  SystemAggregate: "system.aggregate",
@@ -17,12 +17,6 @@ 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";
26
20
  import {
27
21
  FacilityVendorType,
28
22
  FacilityVendorType$inboundSchema,
@@ -410,10 +404,6 @@ export type Facility = {
410
404
  * Counts of vendors associated with the facility, grouped by relationship, subscription status, and approval status. Present only when `facility.vendor_counts` is in `expand`.
411
405
  */
412
406
  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;
417
407
  /**
418
408
  * The email domain associated with the facility, or `null` if none is set.
419
409
  */
@@ -1302,7 +1292,6 @@ export const Facility$inboundSchema: z.ZodType<
1302
1292
  contacts: z.nullable(z.lazy(() => Contacts$inboundSchema)).optional(),
1303
1293
  vendor_counts: z.nullable(z.lazy(() => VendorCounts$inboundSchema))
1304
1294
  .optional(),
1305
- device_counts: z.nullable(DeviceCounts$inboundSchema).optional(),
1306
1295
  email_domain: z.nullable(types.string()).optional(),
1307
1296
  facility_type: z.nullable(types.string()).optional(),
1308
1297
  flu_credential: types.optional(z.lazy(() => FluCredential$inboundSchema)),
@@ -1330,7 +1319,6 @@ export const Facility$inboundSchema: z.ZodType<
1330
1319
  return remap$(v, {
1331
1320
  "appointment_policy": "appointmentPolicy",
1332
1321
  "vendor_counts": "vendorCounts",
1333
- "device_counts": "deviceCounts",
1334
1322
  "email_domain": "emailDomain",
1335
1323
  "facility_type": "facilityType",
1336
1324
  "flu_credential": "fluCredential",
@@ -1347,7 +1335,6 @@ export type Facility$Outbound = {
1347
1335
  appointment_policy?: AppointmentPolicy$Outbound | null | undefined;
1348
1336
  contacts?: Contacts$Outbound | null | undefined;
1349
1337
  vendor_counts?: VendorCounts$Outbound | null | undefined;
1350
- device_counts?: DeviceCounts$Outbound | null | undefined;
1351
1338
  email_domain?: string | null | undefined;
1352
1339
  facility_type?: string | null | undefined;
1353
1340
  flu_credential?: FluCredential$Outbound | undefined;
@@ -1377,7 +1364,6 @@ export const Facility$outboundSchema: z.ZodType<
1377
1364
  contacts: z.nullable(z.lazy(() => Contacts$outboundSchema)).optional(),
1378
1365
  vendorCounts: z.nullable(z.lazy(() => VendorCounts$outboundSchema))
1379
1366
  .optional(),
1380
- deviceCounts: z.nullable(DeviceCounts$outboundSchema).optional(),
1381
1367
  emailDomain: z.nullable(z.string()).optional(),
1382
1368
  facilityType: z.nullable(z.string()).optional(),
1383
1369
  fluCredential: z.lazy(() => FluCredential$outboundSchema).optional(),
@@ -1404,7 +1390,6 @@ export const Facility$outboundSchema: z.ZodType<
1404
1390
  return remap$(v, {
1405
1391
  appointmentPolicy: "appointment_policy",
1406
1392
  vendorCounts: "vendor_counts",
1407
- deviceCounts: "device_counts",
1408
1393
  emailDomain: "email_domain",
1409
1394
  facilityType: "facility_type",
1410
1395
  fluCredential: "flu_credential",
@@ -30,8 +30,6 @@ 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";
35
33
  export * from "./distributor.js";
36
34
  export * from "./distributorcreate.js";
37
35
  export * from "./distributorupdate.js";
@@ -21,42 +21,10 @@ export type Event2 = {
21
21
  * The name of the event, or `null` if not set.
22
22
  */
23
23
  name: string | null;
24
- /**
25
- * Start date and time in UTC (ISO 8601 format, for example, 2026-02-23T14:00:00Z). `null` if not set.
26
- */
27
- start?: string | null | undefined;
28
- /**
29
- * End date and time in UTC (ISO 8601 format, for example, 2026-02-23T15:00:00Z). `null` if not set.
30
- */
31
- end?: string | null | undefined;
32
- /**
33
- * Whether the appointment lasts all day, or `null` if not set.
34
- */
35
- allDay?: boolean | null | undefined;
36
- /**
37
- * Whether the appointment is a standing appointment, or `null` if not set.
38
- */
39
- standingAppt?: boolean | null | undefined;
40
- /**
41
- * Notes about the appointment, or `null` if there are none.
42
- */
43
- notes?: string | null | undefined;
44
- /**
45
- * "Facility - Department", or the facility alone for an appointment with no department. Populated when the request passes `event.location` to `expand`.
46
- */
47
- location?: string | null | undefined;
48
- /**
49
- * The organizer's name, qualified by their company or facility. Populated when the request passes `event.creator` to `expand`.
50
- */
51
- eventCreator?: string | null | undefined;
52
- /**
53
- * The URL of the organizer's thumbnail image. Populated when the request passes `event.creator` to `expand`; `null` without it, or when the organizer has no image.
54
- */
55
- eventCreatorImgUrl?: string | null | undefined;
56
24
  };
57
25
 
58
26
  /**
59
- * The event id, or a summary when the request passes `invite.event` to `expand`. The summary carries the appointment's dates, flags and notes. `location` is populated when the request also passes `event.location`, and `event_creator` and `event_creator_img_url` when it passes `event.creator`; otherwise they are `null`.
27
+ * The event id, or a summary when the request passes `invite.event` to `expand`.
60
28
  */
61
29
  export type InviteEvent = Event2 | number;
62
30
 
@@ -102,18 +70,14 @@ export type Invitee = {
102
70
  * The type of the invitee: `user`, `department`, or `company`.
103
71
  */
104
72
  type?: InviteType | undefined;
105
- /**
106
- * The URL of the invitee's thumbnail image. `null` for a department or company invitation, and for a user who has no image.
107
- */
108
- imgUrl?: string | null | undefined;
109
73
  };
110
74
 
111
75
  /**
112
- * An invitation to an appointment, in the shape served to SDK builds `0.46.0-beta.1` and above. SDK builds below `0.46.0-beta.1` receive `PendingInvitation` instead.
76
+ * An invitation to an appointment, in the shape served to SDK builds `0.55.0-beta.1` and above. SDK builds below `0.55.0-beta.1` receive `PendingInvitation` instead.
113
77
  *
114
78
  * @remarks
115
79
  *
116
- * The boundary is the prerelease build `0.46.0-beta.1`, not the `0.46.0` release. The server compares the build to it by semantic-version ordering. A prerelease sorts before its own release. So `0.46.0-beta.1` itself, every later prerelease (`0.46.0-beta.2`, `0.46.0-rc.1`) and every release from `0.46.0` up receive this shape, while an earlier prerelease of the same release—`0.46.0-alpha.1`—does not.
80
+ * The boundary is the prerelease build `0.55.0-beta.1`, not the `0.55.0` release. The server compares the build to it by semantic-version ordering. A prerelease sorts before its own release. So `0.55.0-beta.1` itself, every later prerelease (`0.55.0-beta.2`, `0.55.0-rc.1`) and every release from `0.55.0` up receive this shape, while an earlier prerelease of the same release—`0.55.0-alpha.1`—does not.
117
81
  */
118
82
  export type Invite = {
119
83
  /**
@@ -121,7 +85,7 @@ export type Invite = {
121
85
  */
122
86
  id?: number | undefined;
123
87
  /**
124
- * The event id, or a summary when the request passes `invite.event` to `expand`. The summary carries the appointment's dates, flags and notes. `location` is populated when the request also passes `event.location`, and `event_creator` and `event_creator_img_url` when it passes `event.creator`; otherwise they are `null`.
88
+ * The event id, or a summary when the request passes `invite.event` to `expand`.
125
89
  */
126
90
  event?: Event2 | number | undefined;
127
91
  /**
@@ -155,21 +119,6 @@ export const Event2$inboundSchema: z.ZodType<Event2, z.ZodTypeDef, unknown> = z
155
119
  .object({
156
120
  id: types.number(),
157
121
  name: types.nullable(types.string()),
158
- start: z.nullable(types.string()).optional(),
159
- end: z.nullable(types.string()).optional(),
160
- all_day: z.nullable(types.boolean()).optional(),
161
- standing_appt: z.nullable(types.boolean()).optional(),
162
- notes: z.nullable(types.string()).optional(),
163
- location: z.nullable(types.string()).optional(),
164
- event_creator: z.nullable(types.string()).optional(),
165
- event_creator_img_url: z.nullable(types.string()).optional(),
166
- }).transform((v) => {
167
- return remap$(v, {
168
- "all_day": "allDay",
169
- "standing_appt": "standingAppt",
170
- "event_creator": "eventCreator",
171
- "event_creator_img_url": "eventCreatorImgUrl",
172
- });
173
122
  });
174
123
 
175
124
  export function event2FromJSON(
@@ -219,11 +168,6 @@ export const Invitee$inboundSchema: z.ZodType<Invitee, z.ZodTypeDef, unknown> =
219
168
  id: types.optional(types.number()),
220
169
  name: z.nullable(types.string()).optional(),
221
170
  type: types.optional(InviteType$inboundSchema),
222
- img_url: z.nullable(types.string()).optional(),
223
- }).transform((v) => {
224
- return remap$(v, {
225
- "img_url": "imgUrl",
226
- });
227
171
  });
228
172
 
229
173
  export function inviteeFromJSON(
@@ -50,10 +50,6 @@ 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;
57
53
  /**
58
54
  * 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.
59
55
  */
@@ -139,7 +135,6 @@ export function inventoryManagerFromJSON(
139
135
  /** @internal */
140
136
  export const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown> = z
141
137
  .object({
142
- can_manage_zone_devices: types.optional(types.boolean()),
143
138
  is_gatekeeper: types.optional(types.boolean()),
144
139
  success: types.boolean(),
145
140
  user: UserDetails$inboundSchema,
@@ -152,7 +147,6 @@ export const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown> = z
152
147
  company: z.nullable(Company$inboundSchema).optional(),
153
148
  }).transform((v) => {
154
149
  return remap$(v, {
155
- "can_manage_zone_devices": "canManageZoneDevices",
156
150
  "is_gatekeeper": "isGatekeeper",
157
151
  "user_token": "userToken",
158
152
  "inventory_manager": "inventoryManager",