@greensecurity/javascript-sdk 0.39.36 → 0.39.41

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 (411) hide show
  1. package/README.md +12 -0
  2. package/bin/mcp-server.js +1756 -625
  3. package/bin/mcp-server.js.map +45 -30
  4. package/dist/commonjs/__tests__/events.test.js +124 -0
  5. package/dist/commonjs/__tests__/events.test.js.map +1 -1
  6. package/dist/commonjs/__tests__/webhooks.test.js +1 -1
  7. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  8. package/dist/commonjs/__tests__/zones.test.js +2 -5
  9. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  10. package/dist/commonjs/funcs/eventsListFeed.d.ts +21 -0
  11. package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/eventsListFeed.js +166 -0
  13. package/dist/commonjs/funcs/eventsListFeed.js.map +1 -0
  14. package/dist/commonjs/funcs/eventsListLocations.d.ts +21 -0
  15. package/dist/commonjs/funcs/eventsListLocations.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/eventsListLocations.js +159 -0
  17. package/dist/commonjs/funcs/eventsListLocations.js.map +1 -0
  18. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +21 -0
  19. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -0
  20. package/dist/commonjs/funcs/eventsListPendingInvitations.js +162 -0
  21. package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -0
  22. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +21 -0
  23. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -0
  24. package/dist/commonjs/funcs/eventsListStandingAppointments.js +168 -0
  25. package/dist/commonjs/funcs/eventsListStandingAppointments.js.map +1 -0
  26. package/dist/commonjs/lib/config.d.ts +3 -3
  27. package/dist/commonjs/lib/config.js +3 -3
  28. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  29. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  30. package/dist/commonjs/mcp-server/server.js +9 -1
  31. package/dist/commonjs/mcp-server/server.js.map +1 -1
  32. package/dist/commonjs/mcp-server/tools/eventsListFeed.d.ts +8 -0
  33. package/dist/commonjs/mcp-server/tools/eventsListFeed.d.ts.map +1 -0
  34. package/dist/commonjs/mcp-server/tools/eventsListFeed.js +64 -0
  35. package/dist/commonjs/mcp-server/tools/eventsListFeed.js.map +1 -0
  36. package/dist/commonjs/mcp-server/tools/eventsListLocations.d.ts +8 -0
  37. package/dist/commonjs/mcp-server/tools/eventsListLocations.d.ts.map +1 -0
  38. package/dist/commonjs/mcp-server/tools/eventsListLocations.js +64 -0
  39. package/dist/commonjs/mcp-server/tools/eventsListLocations.js.map +1 -0
  40. package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.d.ts +8 -0
  41. package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.d.ts.map +1 -0
  42. package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.js +64 -0
  43. package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.js.map +1 -0
  44. package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.d.ts +8 -0
  45. package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.d.ts.map +1 -0
  46. package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.js +64 -0
  47. package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.js.map +1 -0
  48. package/dist/commonjs/models/components/backgroundcheckresult.d.ts +27 -27
  49. package/dist/commonjs/models/components/backgroundcheckresult.d.ts.map +1 -1
  50. package/dist/commonjs/models/components/backgroundcheckresult.js.map +1 -1
  51. package/dist/commonjs/models/components/contact.d.ts +25 -25
  52. package/dist/commonjs/models/components/contact.d.ts.map +1 -1
  53. package/dist/commonjs/models/components/contact.js +17 -17
  54. package/dist/commonjs/models/components/contact.js.map +1 -1
  55. package/dist/commonjs/models/components/credential.d.ts +25 -25
  56. package/dist/commonjs/models/components/credential.d.ts.map +1 -1
  57. package/dist/commonjs/models/components/credential.js.map +1 -1
  58. package/dist/commonjs/models/components/credit.d.ts +10 -10
  59. package/dist/commonjs/models/components/credit.d.ts.map +1 -1
  60. package/dist/commonjs/models/components/credit.js.map +1 -1
  61. package/dist/commonjs/models/components/datarequest.d.ts +21 -21
  62. package/dist/commonjs/models/components/datarequest.d.ts.map +1 -1
  63. package/dist/commonjs/models/components/datarequest.js.map +1 -1
  64. package/dist/commonjs/models/components/facility.d.ts +25 -25
  65. package/dist/commonjs/models/components/facility.d.ts.map +1 -1
  66. package/dist/commonjs/models/components/facility.js +16 -16
  67. package/dist/commonjs/models/components/facility.js.map +1 -1
  68. package/dist/commonjs/models/components/feed.d.ts +42 -0
  69. package/dist/commonjs/models/components/feed.d.ts.map +1 -0
  70. package/dist/commonjs/models/components/feed.js +89 -0
  71. package/dist/commonjs/models/components/feed.js.map +1 -0
  72. package/dist/commonjs/models/components/index.d.ts +3 -0
  73. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  74. package/dist/commonjs/models/components/index.js +3 -0
  75. package/dist/commonjs/models/components/index.js.map +1 -1
  76. package/dist/commonjs/models/components/mfarequiredresponse.d.ts +20 -20
  77. package/dist/commonjs/models/components/mfarequiredresponse.d.ts.map +1 -1
  78. package/dist/commonjs/models/components/mfarequiredresponse.js.map +1 -1
  79. package/dist/commonjs/models/components/passwordrequiredresponse.d.ts +11 -11
  80. package/dist/commonjs/models/components/passwordrequiredresponse.d.ts.map +1 -1
  81. package/dist/commonjs/models/components/passwordrequiredresponse.js.map +1 -1
  82. package/dist/commonjs/models/components/pendinginvitation.d.ts +80 -0
  83. package/dist/commonjs/models/components/pendinginvitation.d.ts.map +1 -0
  84. package/dist/commonjs/models/components/pendinginvitation.js +130 -0
  85. package/dist/commonjs/models/components/pendinginvitation.js.map +1 -0
  86. package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts +18 -18
  87. package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts.map +1 -1
  88. package/dist/commonjs/models/components/samlloginrequiredresponse.js.map +1 -1
  89. package/dist/commonjs/models/components/standingappointment.d.ts +46 -0
  90. package/dist/commonjs/models/components/standingappointment.d.ts.map +1 -0
  91. package/dist/commonjs/models/components/standingappointment.js +92 -0
  92. package/dist/commonjs/models/components/standingappointment.js.map +1 -0
  93. package/dist/commonjs/models/components/user.d.ts +65 -65
  94. package/dist/commonjs/models/components/user.d.ts.map +1 -1
  95. package/dist/commonjs/models/components/user.js +17 -17
  96. package/dist/commonjs/models/components/user.js.map +1 -1
  97. package/dist/commonjs/models/components/userlocation.d.ts +19 -19
  98. package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
  99. package/dist/commonjs/models/components/userlocation.js.map +1 -1
  100. package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts +22 -22
  101. package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts.map +1 -1
  102. package/dist/commonjs/models/components/vendorcredentialdatarequest.js +16 -16
  103. package/dist/commonjs/models/components/vendorcredentialdatarequest.js.map +1 -1
  104. package/dist/commonjs/models/components/webhookendpoint.d.ts +18 -18
  105. package/dist/commonjs/models/components/webhookendpoint.d.ts.map +1 -1
  106. package/dist/commonjs/models/components/webhookendpoint.js.map +1 -1
  107. package/dist/commonjs/models/operations/createinvoice.d.ts +106 -106
  108. package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
  109. package/dist/commonjs/models/operations/createinvoice.js +46 -46
  110. package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
  111. package/dist/commonjs/models/operations/createorupdatebcr.d.ts +20 -20
  112. package/dist/commonjs/models/operations/createorupdatebcr.d.ts.map +1 -1
  113. package/dist/commonjs/models/operations/createorupdatebcr.js.map +1 -1
  114. package/dist/commonjs/models/operations/index.d.ts +4 -0
  115. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  116. package/dist/commonjs/models/operations/index.js +4 -0
  117. package/dist/commonjs/models/operations/index.js.map +1 -1
  118. package/dist/commonjs/models/operations/listfeed.d.ts +166 -0
  119. package/dist/commonjs/models/operations/listfeed.d.ts.map +1 -0
  120. package/dist/commonjs/models/operations/listfeed.js +197 -0
  121. package/dist/commonjs/models/operations/listfeed.js.map +1 -0
  122. package/dist/commonjs/models/operations/listlocations.d.ts +148 -0
  123. package/dist/commonjs/models/operations/listlocations.d.ts.map +1 -0
  124. package/dist/commonjs/models/operations/listlocations.js +191 -0
  125. package/dist/commonjs/models/operations/listlocations.js.map +1 -0
  126. package/dist/commonjs/models/operations/listpendinginvitations.d.ts +136 -0
  127. package/dist/commonjs/models/operations/listpendinginvitations.d.ts.map +1 -0
  128. package/dist/commonjs/models/operations/listpendinginvitations.js +173 -0
  129. package/dist/commonjs/models/operations/listpendinginvitations.js.map +1 -0
  130. package/dist/commonjs/models/operations/liststandingappointments.d.ts +166 -0
  131. package/dist/commonjs/models/operations/liststandingappointments.d.ts.map +1 -0
  132. package/dist/commonjs/models/operations/liststandingappointments.js +197 -0
  133. package/dist/commonjs/models/operations/liststandingappointments.js.map +1 -0
  134. package/dist/commonjs/models/operations/listvendorinvoices.d.ts +20 -20
  135. package/dist/commonjs/models/operations/listvendorinvoices.d.ts.map +1 -1
  136. package/dist/commonjs/models/operations/listvendorinvoices.js.map +1 -1
  137. package/dist/commonjs/models/operations/securityzonecheckin.d.ts +22 -22
  138. package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -1
  139. package/dist/commonjs/models/operations/securityzonecheckin.js +17 -17
  140. package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
  141. package/dist/commonjs/models/operations/senddownloadcode.d.ts +10 -10
  142. package/dist/commonjs/models/operations/senddownloadcode.d.ts.map +1 -1
  143. package/dist/commonjs/models/operations/senddownloadcode.js.map +1 -1
  144. package/dist/commonjs/models/operations/updateinvoice.d.ts +106 -106
  145. package/dist/commonjs/models/operations/updateinvoice.d.ts.map +1 -1
  146. package/dist/commonjs/models/operations/updateinvoice.js +47 -47
  147. package/dist/commonjs/models/operations/updateinvoice.js.map +1 -1
  148. package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts +22 -22
  149. package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts.map +1 -1
  150. package/dist/commonjs/models/operations/updatevendorcredentialdata.js.map +1 -1
  151. package/dist/commonjs/models/operations/updatevendordetails.d.ts +24 -24
  152. package/dist/commonjs/models/operations/updatevendordetails.d.ts.map +1 -1
  153. package/dist/commonjs/models/operations/updatevendordetails.js.map +1 -1
  154. package/dist/commonjs/models/operations/updatevendorscrubdetails.d.ts +21 -21
  155. package/dist/commonjs/models/operations/updatevendorscrubdetails.d.ts.map +1 -1
  156. package/dist/commonjs/models/operations/updatevendorscrubdetails.js.map +1 -1
  157. package/dist/commonjs/react-query/eventsListFeed.d.ts +111 -0
  158. package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -0
  159. package/dist/commonjs/react-query/eventsListFeed.js +174 -0
  160. package/dist/commonjs/react-query/eventsListFeed.js.map +1 -0
  161. package/dist/commonjs/react-query/eventsListLocations.d.ts +84 -0
  162. package/dist/commonjs/react-query/eventsListLocations.d.ts.map +1 -0
  163. package/dist/commonjs/react-query/eventsListLocations.js +161 -0
  164. package/dist/commonjs/react-query/eventsListLocations.js.map +1 -0
  165. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +93 -0
  166. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -0
  167. package/dist/commonjs/react-query/eventsListPendingInvitations.js +171 -0
  168. package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -0
  169. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +111 -0
  170. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -0
  171. package/dist/commonjs/react-query/eventsListStandingAppointments.js +183 -0
  172. package/dist/commonjs/react-query/eventsListStandingAppointments.js.map +1 -0
  173. package/dist/commonjs/react-query/index.d.ts +4 -0
  174. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  175. package/dist/commonjs/react-query/index.js +4 -0
  176. package/dist/commonjs/react-query/index.js.map +1 -1
  177. package/dist/commonjs/sdk/events.d.ts +36 -0
  178. package/dist/commonjs/sdk/events.d.ts.map +1 -1
  179. package/dist/commonjs/sdk/events.js +40 -0
  180. package/dist/commonjs/sdk/events.js.map +1 -1
  181. package/dist/esm/__tests__/events.test.js +124 -0
  182. package/dist/esm/__tests__/events.test.js.map +1 -1
  183. package/dist/esm/__tests__/webhooks.test.js +1 -1
  184. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  185. package/dist/esm/__tests__/zones.test.js +2 -5
  186. package/dist/esm/__tests__/zones.test.js.map +1 -1
  187. package/dist/esm/funcs/eventsListFeed.d.ts +21 -0
  188. package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -0
  189. package/dist/esm/funcs/eventsListFeed.js +130 -0
  190. package/dist/esm/funcs/eventsListFeed.js.map +1 -0
  191. package/dist/esm/funcs/eventsListLocations.d.ts +21 -0
  192. package/dist/esm/funcs/eventsListLocations.d.ts.map +1 -0
  193. package/dist/esm/funcs/eventsListLocations.js +123 -0
  194. package/dist/esm/funcs/eventsListLocations.js.map +1 -0
  195. package/dist/esm/funcs/eventsListPendingInvitations.d.ts +21 -0
  196. package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -0
  197. package/dist/esm/funcs/eventsListPendingInvitations.js +126 -0
  198. package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -0
  199. package/dist/esm/funcs/eventsListStandingAppointments.d.ts +21 -0
  200. package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -0
  201. package/dist/esm/funcs/eventsListStandingAppointments.js +132 -0
  202. package/dist/esm/funcs/eventsListStandingAppointments.js.map +1 -0
  203. package/dist/esm/lib/config.d.ts +3 -3
  204. package/dist/esm/lib/config.js +3 -3
  205. package/dist/esm/mcp-server/mcp-server.js +1 -1
  206. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  207. package/dist/esm/mcp-server/server.js +9 -1
  208. package/dist/esm/mcp-server/server.js.map +1 -1
  209. package/dist/esm/mcp-server/tools/eventsListFeed.d.ts +8 -0
  210. package/dist/esm/mcp-server/tools/eventsListFeed.d.ts.map +1 -0
  211. package/dist/esm/mcp-server/tools/eventsListFeed.js +28 -0
  212. package/dist/esm/mcp-server/tools/eventsListFeed.js.map +1 -0
  213. package/dist/esm/mcp-server/tools/eventsListLocations.d.ts +8 -0
  214. package/dist/esm/mcp-server/tools/eventsListLocations.d.ts.map +1 -0
  215. package/dist/esm/mcp-server/tools/eventsListLocations.js +28 -0
  216. package/dist/esm/mcp-server/tools/eventsListLocations.js.map +1 -0
  217. package/dist/esm/mcp-server/tools/eventsListPendingInvitations.d.ts +8 -0
  218. package/dist/esm/mcp-server/tools/eventsListPendingInvitations.d.ts.map +1 -0
  219. package/dist/esm/mcp-server/tools/eventsListPendingInvitations.js +28 -0
  220. package/dist/esm/mcp-server/tools/eventsListPendingInvitations.js.map +1 -0
  221. package/dist/esm/mcp-server/tools/eventsListStandingAppointments.d.ts +8 -0
  222. package/dist/esm/mcp-server/tools/eventsListStandingAppointments.d.ts.map +1 -0
  223. package/dist/esm/mcp-server/tools/eventsListStandingAppointments.js +28 -0
  224. package/dist/esm/mcp-server/tools/eventsListStandingAppointments.js.map +1 -0
  225. package/dist/esm/models/components/backgroundcheckresult.d.ts +27 -27
  226. package/dist/esm/models/components/backgroundcheckresult.d.ts.map +1 -1
  227. package/dist/esm/models/components/backgroundcheckresult.js.map +1 -1
  228. package/dist/esm/models/components/contact.d.ts +25 -25
  229. package/dist/esm/models/components/contact.d.ts.map +1 -1
  230. package/dist/esm/models/components/contact.js +16 -16
  231. package/dist/esm/models/components/contact.js.map +1 -1
  232. package/dist/esm/models/components/credential.d.ts +25 -25
  233. package/dist/esm/models/components/credential.d.ts.map +1 -1
  234. package/dist/esm/models/components/credential.js.map +1 -1
  235. package/dist/esm/models/components/credit.d.ts +10 -10
  236. package/dist/esm/models/components/credit.d.ts.map +1 -1
  237. package/dist/esm/models/components/credit.js.map +1 -1
  238. package/dist/esm/models/components/datarequest.d.ts +21 -21
  239. package/dist/esm/models/components/datarequest.d.ts.map +1 -1
  240. package/dist/esm/models/components/datarequest.js.map +1 -1
  241. package/dist/esm/models/components/facility.d.ts +25 -25
  242. package/dist/esm/models/components/facility.d.ts.map +1 -1
  243. package/dist/esm/models/components/facility.js +15 -15
  244. package/dist/esm/models/components/facility.js.map +1 -1
  245. package/dist/esm/models/components/feed.d.ts +42 -0
  246. package/dist/esm/models/components/feed.d.ts.map +1 -0
  247. package/dist/esm/models/components/feed.js +51 -0
  248. package/dist/esm/models/components/feed.js.map +1 -0
  249. package/dist/esm/models/components/index.d.ts +3 -0
  250. package/dist/esm/models/components/index.d.ts.map +1 -1
  251. package/dist/esm/models/components/index.js +3 -0
  252. package/dist/esm/models/components/index.js.map +1 -1
  253. package/dist/esm/models/components/mfarequiredresponse.d.ts +20 -20
  254. package/dist/esm/models/components/mfarequiredresponse.d.ts.map +1 -1
  255. package/dist/esm/models/components/mfarequiredresponse.js.map +1 -1
  256. package/dist/esm/models/components/passwordrequiredresponse.d.ts +11 -11
  257. package/dist/esm/models/components/passwordrequiredresponse.d.ts.map +1 -1
  258. package/dist/esm/models/components/passwordrequiredresponse.js.map +1 -1
  259. package/dist/esm/models/components/pendinginvitation.d.ts +80 -0
  260. package/dist/esm/models/components/pendinginvitation.d.ts.map +1 -0
  261. package/dist/esm/models/components/pendinginvitation.js +90 -0
  262. package/dist/esm/models/components/pendinginvitation.js.map +1 -0
  263. package/dist/esm/models/components/samlloginrequiredresponse.d.ts +18 -18
  264. package/dist/esm/models/components/samlloginrequiredresponse.d.ts.map +1 -1
  265. package/dist/esm/models/components/samlloginrequiredresponse.js.map +1 -1
  266. package/dist/esm/models/components/standingappointment.d.ts +46 -0
  267. package/dist/esm/models/components/standingappointment.d.ts.map +1 -0
  268. package/dist/esm/models/components/standingappointment.js +54 -0
  269. package/dist/esm/models/components/standingappointment.js.map +1 -0
  270. package/dist/esm/models/components/user.d.ts +65 -65
  271. package/dist/esm/models/components/user.d.ts.map +1 -1
  272. package/dist/esm/models/components/user.js +16 -16
  273. package/dist/esm/models/components/user.js.map +1 -1
  274. package/dist/esm/models/components/userlocation.d.ts +19 -19
  275. package/dist/esm/models/components/userlocation.d.ts.map +1 -1
  276. package/dist/esm/models/components/userlocation.js.map +1 -1
  277. package/dist/esm/models/components/vendorcredentialdatarequest.d.ts +22 -22
  278. package/dist/esm/models/components/vendorcredentialdatarequest.d.ts.map +1 -1
  279. package/dist/esm/models/components/vendorcredentialdatarequest.js +15 -15
  280. package/dist/esm/models/components/vendorcredentialdatarequest.js.map +1 -1
  281. package/dist/esm/models/components/webhookendpoint.d.ts +18 -18
  282. package/dist/esm/models/components/webhookendpoint.d.ts.map +1 -1
  283. package/dist/esm/models/components/webhookendpoint.js.map +1 -1
  284. package/dist/esm/models/operations/createinvoice.d.ts +106 -106
  285. package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
  286. package/dist/esm/models/operations/createinvoice.js +45 -45
  287. package/dist/esm/models/operations/createinvoice.js.map +1 -1
  288. package/dist/esm/models/operations/createorupdatebcr.d.ts +20 -20
  289. package/dist/esm/models/operations/createorupdatebcr.d.ts.map +1 -1
  290. package/dist/esm/models/operations/createorupdatebcr.js.map +1 -1
  291. package/dist/esm/models/operations/index.d.ts +4 -0
  292. package/dist/esm/models/operations/index.d.ts.map +1 -1
  293. package/dist/esm/models/operations/index.js +4 -0
  294. package/dist/esm/models/operations/index.js.map +1 -1
  295. package/dist/esm/models/operations/listfeed.d.ts +166 -0
  296. package/dist/esm/models/operations/listfeed.d.ts.map +1 -0
  297. package/dist/esm/models/operations/listfeed.js +155 -0
  298. package/dist/esm/models/operations/listfeed.js.map +1 -0
  299. package/dist/esm/models/operations/listlocations.d.ts +148 -0
  300. package/dist/esm/models/operations/listlocations.d.ts.map +1 -0
  301. package/dist/esm/models/operations/listlocations.js +147 -0
  302. package/dist/esm/models/operations/listlocations.js.map +1 -0
  303. package/dist/esm/models/operations/listpendinginvitations.d.ts +136 -0
  304. package/dist/esm/models/operations/listpendinginvitations.d.ts.map +1 -0
  305. package/dist/esm/models/operations/listpendinginvitations.js +131 -0
  306. package/dist/esm/models/operations/listpendinginvitations.js.map +1 -0
  307. package/dist/esm/models/operations/liststandingappointments.d.ts +166 -0
  308. package/dist/esm/models/operations/liststandingappointments.d.ts.map +1 -0
  309. package/dist/esm/models/operations/liststandingappointments.js +155 -0
  310. package/dist/esm/models/operations/liststandingappointments.js.map +1 -0
  311. package/dist/esm/models/operations/listvendorinvoices.d.ts +20 -20
  312. package/dist/esm/models/operations/listvendorinvoices.d.ts.map +1 -1
  313. package/dist/esm/models/operations/listvendorinvoices.js.map +1 -1
  314. package/dist/esm/models/operations/securityzonecheckin.d.ts +22 -22
  315. package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -1
  316. package/dist/esm/models/operations/securityzonecheckin.js +16 -16
  317. package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
  318. package/dist/esm/models/operations/senddownloadcode.d.ts +10 -10
  319. package/dist/esm/models/operations/senddownloadcode.d.ts.map +1 -1
  320. package/dist/esm/models/operations/senddownloadcode.js.map +1 -1
  321. package/dist/esm/models/operations/updateinvoice.d.ts +106 -106
  322. package/dist/esm/models/operations/updateinvoice.d.ts.map +1 -1
  323. package/dist/esm/models/operations/updateinvoice.js +46 -46
  324. package/dist/esm/models/operations/updateinvoice.js.map +1 -1
  325. package/dist/esm/models/operations/updatevendorcredentialdata.d.ts +22 -22
  326. package/dist/esm/models/operations/updatevendorcredentialdata.d.ts.map +1 -1
  327. package/dist/esm/models/operations/updatevendorcredentialdata.js.map +1 -1
  328. package/dist/esm/models/operations/updatevendordetails.d.ts +24 -24
  329. package/dist/esm/models/operations/updatevendordetails.d.ts.map +1 -1
  330. package/dist/esm/models/operations/updatevendordetails.js.map +1 -1
  331. package/dist/esm/models/operations/updatevendorscrubdetails.d.ts +21 -21
  332. package/dist/esm/models/operations/updatevendorscrubdetails.d.ts.map +1 -1
  333. package/dist/esm/models/operations/updatevendorscrubdetails.js.map +1 -1
  334. package/dist/esm/react-query/eventsListFeed.d.ts +111 -0
  335. package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -0
  336. package/dist/esm/react-query/eventsListFeed.js +161 -0
  337. package/dist/esm/react-query/eventsListFeed.js.map +1 -0
  338. package/dist/esm/react-query/eventsListLocations.d.ts +84 -0
  339. package/dist/esm/react-query/eventsListLocations.d.ts.map +1 -0
  340. package/dist/esm/react-query/eventsListLocations.js +148 -0
  341. package/dist/esm/react-query/eventsListLocations.js.map +1 -0
  342. package/dist/esm/react-query/eventsListPendingInvitations.d.ts +93 -0
  343. package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -0
  344. package/dist/esm/react-query/eventsListPendingInvitations.js +158 -0
  345. package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -0
  346. package/dist/esm/react-query/eventsListStandingAppointments.d.ts +111 -0
  347. package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -0
  348. package/dist/esm/react-query/eventsListStandingAppointments.js +170 -0
  349. package/dist/esm/react-query/eventsListStandingAppointments.js.map +1 -0
  350. package/dist/esm/react-query/index.d.ts +4 -0
  351. package/dist/esm/react-query/index.d.ts.map +1 -1
  352. package/dist/esm/react-query/index.js +4 -0
  353. package/dist/esm/react-query/index.js.map +1 -1
  354. package/dist/esm/sdk/events.d.ts +36 -0
  355. package/dist/esm/sdk/events.d.ts.map +1 -1
  356. package/dist/esm/sdk/events.js +40 -0
  357. package/dist/esm/sdk/events.js.map +1 -1
  358. package/examples/package-lock.json +6 -5
  359. package/jsr.json +1 -1
  360. package/package.json +6 -6
  361. package/src/__tests__/events.test.ts +136 -0
  362. package/src/__tests__/webhooks.test.ts +1 -1
  363. package/src/__tests__/zones.test.ts +2 -5
  364. package/src/funcs/eventsListFeed.ts +257 -0
  365. package/src/funcs/eventsListLocations.ts +250 -0
  366. package/src/funcs/eventsListPendingInvitations.ts +254 -0
  367. package/src/funcs/eventsListStandingAppointments.ts +260 -0
  368. package/src/lib/config.ts +3 -3
  369. package/src/mcp-server/mcp-server.ts +1 -1
  370. package/src/mcp-server/server.ts +9 -1
  371. package/src/mcp-server/tools/eventsListFeed.ts +37 -0
  372. package/src/mcp-server/tools/eventsListLocations.ts +37 -0
  373. package/src/mcp-server/tools/eventsListPendingInvitations.ts +37 -0
  374. package/src/mcp-server/tools/eventsListStandingAppointments.ts +38 -0
  375. package/src/models/components/backgroundcheckresult.ts +31 -31
  376. package/src/models/components/contact.ts +25 -25
  377. package/src/models/components/credential.ts +26 -26
  378. package/src/models/components/credit.ts +11 -11
  379. package/src/models/components/datarequest.ts +19 -19
  380. package/src/models/components/facility.ts +27 -27
  381. package/src/models/components/feed.ts +88 -0
  382. package/src/models/components/index.ts +3 -0
  383. package/src/models/components/mfarequiredresponse.ts +21 -21
  384. package/src/models/components/passwordrequiredresponse.ts +12 -12
  385. package/src/models/components/pendinginvitation.ts +176 -0
  386. package/src/models/components/samlloginrequiredresponse.ts +21 -21
  387. package/src/models/components/standingappointment.ts +106 -0
  388. package/src/models/components/user.ts +50 -50
  389. package/src/models/components/userlocation.ts +19 -19
  390. package/src/models/components/vendorcredentialdatarequest.ts +28 -28
  391. package/src/models/components/webhookendpoint.ts +21 -21
  392. package/src/models/operations/createinvoice.ts +114 -114
  393. package/src/models/operations/createorupdatebcr.ts +21 -21
  394. package/src/models/operations/index.ts +4 -0
  395. package/src/models/operations/listfeed.ts +340 -0
  396. package/src/models/operations/listlocations.ts +316 -0
  397. package/src/models/operations/listpendinginvitations.ts +296 -0
  398. package/src/models/operations/liststandingappointments.ts +351 -0
  399. package/src/models/operations/listvendorinvoices.ts +21 -21
  400. package/src/models/operations/securityzonecheckin.ts +24 -24
  401. package/src/models/operations/senddownloadcode.ts +12 -12
  402. package/src/models/operations/updateinvoice.ts +124 -124
  403. package/src/models/operations/updatevendorcredentialdata.ts +24 -24
  404. package/src/models/operations/updatevendordetails.ts +21 -21
  405. package/src/models/operations/updatevendorscrubdetails.ts +23 -23
  406. package/src/react-query/eventsListFeed.ts +366 -0
  407. package/src/react-query/eventsListLocations.ts +342 -0
  408. package/src/react-query/eventsListPendingInvitations.ts +367 -0
  409. package/src/react-query/eventsListStandingAppointments.ts +400 -0
  410. package/src/react-query/index.ts +4 -0
  411. package/src/sdk/events.ts +76 -0
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { eventsListStandingAppointments } from "../../funcs/eventsListStandingAppointments.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.ListStandingAppointmentsRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$eventsListStandingAppointments: ToolDefinition<typeof args> =
14
+ {
15
+ name: "events-list-standing-appointments",
16
+ description: `List standing appointments
17
+
18
+ List standing appointment`,
19
+ args,
20
+ tool: async (client, args, ctx) => {
21
+ const [result, apiCall] = await eventsListStandingAppointments(
22
+ client,
23
+ args.request,
24
+ { fetchOptions: { signal: ctx.signal } },
25
+ ).$inspect();
26
+
27
+ if (!result.ok) {
28
+ return {
29
+ content: [{ type: "text", text: result.error.message }],
30
+ isError: true,
31
+ };
32
+ }
33
+
34
+ const value = result.value.result;
35
+
36
+ return formatResult(value, apiCall);
37
+ },
38
+ };
@@ -30,37 +30,6 @@ export const DeliveryMethod = {
30
30
  } as const;
31
31
  export type DeliveryMethod = ClosedEnum<typeof DeliveryMethod>;
32
32
 
33
- export type BackgroundCheckResultInvoice = Invoice | number;
34
-
35
- export type Bcp = {
36
- orderId?: number | null | undefined;
37
- orderStatus?: string | null | undefined;
38
- notes?: string | null | undefined;
39
- dateSent?: string | null | undefined;
40
- dateReceived?: string | null | undefined;
41
- };
42
-
43
- export type BackgroundCheckResultLocation = {
44
- address1?: string | null | undefined;
45
- address2?: string | null | undefined;
46
- city?: string | null | undefined;
47
- state?: string | null | undefined;
48
- zip?: string | null | undefined;
49
- };
50
-
51
- /**
52
- * Reduced list of attributes of Background Check Result record
53
- */
54
- export type BackgroundCheckResult = {
55
- id?: number | undefined;
56
- status?: BackgroundCheckResultStatus | undefined;
57
- deliveryMethod?: DeliveryMethod | null | undefined;
58
- invoice?: Invoice | number | null | undefined;
59
- email?: string | null | undefined;
60
- bcp?: Bcp | undefined;
61
- location?: BackgroundCheckResultLocation | null | undefined;
62
- };
63
-
64
33
  /** @internal */
65
34
  export const BackgroundCheckResultStatus$inboundSchema: z.ZodNativeEnum<
66
35
  typeof BackgroundCheckResultStatus
@@ -103,6 +72,37 @@ export namespace DeliveryMethod$ {
103
72
  export const outboundSchema = DeliveryMethod$outboundSchema;
104
73
  }
105
74
 
75
+ export type BackgroundCheckResultInvoice = Invoice | number;
76
+
77
+ export type Bcp = {
78
+ orderId?: number | null | undefined;
79
+ orderStatus?: string | null | undefined;
80
+ notes?: string | null | undefined;
81
+ dateSent?: string | null | undefined;
82
+ dateReceived?: string | null | undefined;
83
+ };
84
+
85
+ export type BackgroundCheckResultLocation = {
86
+ address1?: string | null | undefined;
87
+ address2?: string | null | undefined;
88
+ city?: string | null | undefined;
89
+ state?: string | null | undefined;
90
+ zip?: string | null | undefined;
91
+ };
92
+
93
+ /**
94
+ * Reduced list of attributes of Background Check Result record
95
+ */
96
+ export type BackgroundCheckResult = {
97
+ id?: number | undefined;
98
+ status?: BackgroundCheckResultStatus | undefined;
99
+ deliveryMethod?: DeliveryMethod | null | undefined;
100
+ invoice?: Invoice | number | null | undefined;
101
+ email?: string | null | undefined;
102
+ bcp?: Bcp | undefined;
103
+ location?: BackgroundCheckResultLocation | null | undefined;
104
+ };
105
+
106
106
  /** @internal */
107
107
  export const BackgroundCheckResultInvoice$inboundSchema: z.ZodType<
108
108
  BackgroundCheckResultInvoice,
@@ -32,12 +32,6 @@ import {
32
32
  UserSummary$outboundSchema,
33
33
  } from "./usersummary.js";
34
34
 
35
- export type ContactFacility = FacilitySummary | number;
36
-
37
- export type System = SystemSummary | number;
38
-
39
- export type ContactUser = UserSummary | number;
40
-
41
35
  export const Status = {
42
36
  Active: "Active",
43
37
  Inactive: "Inactive",
@@ -45,6 +39,31 @@ export const Status = {
45
39
  } as const;
46
40
  export type Status = ClosedEnum<typeof Status>;
47
41
 
42
+ /** @internal */
43
+ export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
44
+ .nativeEnum(Status);
45
+
46
+ /** @internal */
47
+ export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
48
+ Status$inboundSchema;
49
+
50
+ /**
51
+ * @internal
52
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
+ */
54
+ export namespace Status$ {
55
+ /** @deprecated use `Status$inboundSchema` instead. */
56
+ export const inboundSchema = Status$inboundSchema;
57
+ /** @deprecated use `Status$outboundSchema` instead. */
58
+ export const outboundSchema = Status$outboundSchema;
59
+ }
60
+
61
+ export type ContactFacility = FacilitySummary | number;
62
+
63
+ export type System = SystemSummary | number;
64
+
65
+ export type ContactUser = UserSummary | number;
66
+
48
67
  export type ContactDepartment = DepartmentSummary | number;
49
68
 
50
69
  /**
@@ -191,25 +210,6 @@ export function contactUserFromJSON(
191
210
  );
192
211
  }
193
212
 
194
- /** @internal */
195
- export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
196
- .nativeEnum(Status);
197
-
198
- /** @internal */
199
- export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
200
- Status$inboundSchema;
201
-
202
- /**
203
- * @internal
204
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
205
- */
206
- export namespace Status$ {
207
- /** @deprecated use `Status$inboundSchema` instead. */
208
- export const inboundSchema = Status$inboundSchema;
209
- /** @deprecated use `Status$outboundSchema` instead. */
210
- export const outboundSchema = Status$outboundSchema;
211
- }
212
-
213
213
  /** @internal */
214
214
  export const ContactDepartment$inboundSchema: z.ZodType<
215
215
  ContactDepartment,
@@ -40,32 +40,6 @@ export const CredentialStatus1 = {
40
40
  } as const;
41
41
  export type CredentialStatus1 = ClosedEnum<typeof CredentialStatus1>;
42
42
 
43
- /**
44
- * Reduced list of attributes of Credential record
45
- */
46
- export type Credential = {
47
- id: number;
48
- name?: string | null | undefined;
49
- description?: string | null | undefined;
50
- credentialType?: CredentialType | undefined;
51
- validFor?: ValidFor | undefined;
52
- status?: CredentialStatus1 | undefined;
53
- hasPricing?: boolean | undefined;
54
- allowDecline?: boolean | undefined;
55
- jsSchema?: string | null | undefined;
56
- uiSchema?: string | null | undefined;
57
- behavior?: string | null | undefined;
58
- requireElectronicSignature?: boolean | undefined;
59
- acceptText?: string | null | undefined;
60
- acceptSubmittingText?: string | null | undefined;
61
- declineSubmittingText?: string | null | undefined;
62
- declineDescription?: string | null | undefined;
63
- requireDeclineFile?: boolean | undefined;
64
- credentialDocuments?: Array<CredentialDocument | null> | undefined;
65
- fileUrl?: string | null | undefined;
66
- declineFileUrl?: string | null | undefined;
67
- };
68
-
69
43
  /** @internal */
70
44
  export const CredentialType$inboundSchema: z.ZodNativeEnum<
71
45
  typeof CredentialType
@@ -127,6 +101,32 @@ export namespace CredentialStatus1$ {
127
101
  export const outboundSchema = CredentialStatus1$outboundSchema;
128
102
  }
129
103
 
104
+ /**
105
+ * Reduced list of attributes of Credential record
106
+ */
107
+ export type Credential = {
108
+ id: number;
109
+ name?: string | null | undefined;
110
+ description?: string | null | undefined;
111
+ credentialType?: CredentialType | undefined;
112
+ validFor?: ValidFor | undefined;
113
+ status?: CredentialStatus1 | undefined;
114
+ hasPricing?: boolean | undefined;
115
+ allowDecline?: boolean | undefined;
116
+ jsSchema?: string | null | undefined;
117
+ uiSchema?: string | null | undefined;
118
+ behavior?: string | null | undefined;
119
+ requireElectronicSignature?: boolean | undefined;
120
+ acceptText?: string | null | undefined;
121
+ acceptSubmittingText?: string | null | undefined;
122
+ declineSubmittingText?: string | null | undefined;
123
+ declineDescription?: string | null | undefined;
124
+ requireDeclineFile?: boolean | undefined;
125
+ credentialDocuments?: Array<CredentialDocument | null> | undefined;
126
+ fileUrl?: string | null | undefined;
127
+ declineFileUrl?: string | null | undefined;
128
+ };
129
+
130
130
  /** @internal */
131
131
  export const Credential$inboundSchema: z.ZodType<
132
132
  Credential,
@@ -16,17 +16,6 @@ export const Action = {
16
16
  } as const;
17
17
  export type Action = ClosedEnum<typeof Action>;
18
18
 
19
- export type Credit = {
20
- id?: number | undefined;
21
- date?: string | null | undefined;
22
- action?: Action | undefined;
23
- amount?: number | undefined;
24
- balance?: number | undefined;
25
- from?: string | null | undefined;
26
- to?: string | null | undefined;
27
- invoiceNumber?: string | null | undefined;
28
- };
29
-
30
19
  /** @internal */
31
20
  export const Action$inboundSchema: z.ZodNativeEnum<typeof Action> = z
32
21
  .nativeEnum(Action);
@@ -46,6 +35,17 @@ export namespace Action$ {
46
35
  export const outboundSchema = Action$outboundSchema;
47
36
  }
48
37
 
38
+ export type Credit = {
39
+ id?: number | undefined;
40
+ date?: string | null | undefined;
41
+ action?: Action | undefined;
42
+ amount?: number | undefined;
43
+ balance?: number | undefined;
44
+ from?: string | null | undefined;
45
+ to?: string | null | undefined;
46
+ invoiceNumber?: string | null | undefined;
47
+ };
48
+
49
49
  /** @internal */
50
50
  export const Credit$inboundSchema: z.ZodType<Credit, z.ZodTypeDef, unknown> = z
51
51
  .object({
@@ -18,6 +18,25 @@ export const DataType = {
18
18
  } as const;
19
19
  export type DataType = ClosedEnum<typeof DataType>;
20
20
 
21
+ /** @internal */
22
+ export const DataType$inboundSchema: z.ZodNativeEnum<typeof DataType> = z
23
+ .nativeEnum(DataType);
24
+
25
+ /** @internal */
26
+ export const DataType$outboundSchema: z.ZodNativeEnum<typeof DataType> =
27
+ DataType$inboundSchema;
28
+
29
+ /**
30
+ * @internal
31
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
32
+ */
33
+ export namespace DataType$ {
34
+ /** @deprecated use `DataType$inboundSchema` instead. */
35
+ export const inboundSchema = DataType$inboundSchema;
36
+ /** @deprecated use `DataType$outboundSchema` instead. */
37
+ export const outboundSchema = DataType$outboundSchema;
38
+ }
39
+
21
40
  export type Url = {
22
41
  value?: string | null | undefined;
23
42
  func?: string | null | undefined;
@@ -42,25 +61,6 @@ export type DataRequest = {
42
61
  file?: DataRequestFile | null | undefined;
43
62
  };
44
63
 
45
- /** @internal */
46
- export const DataType$inboundSchema: z.ZodNativeEnum<typeof DataType> = z
47
- .nativeEnum(DataType);
48
-
49
- /** @internal */
50
- export const DataType$outboundSchema: z.ZodNativeEnum<typeof DataType> =
51
- DataType$inboundSchema;
52
-
53
- /**
54
- * @internal
55
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
- */
57
- export namespace DataType$ {
58
- /** @deprecated use `DataType$inboundSchema` instead. */
59
- export const inboundSchema = DataType$inboundSchema;
60
- /** @deprecated use `DataType$outboundSchema` instead. */
61
- export const outboundSchema = DataType$outboundSchema;
62
- }
63
-
64
64
  /** @internal */
65
65
  export const Url$inboundSchema: z.ZodType<Url, z.ZodTypeDef, unknown> = z
66
66
  .object({
@@ -34,6 +34,33 @@ import {
34
34
  SystemSummary$outboundSchema,
35
35
  } from "./systemsummary.js";
36
36
 
37
+ export const VendorGuestLimitAndOr = {
38
+ And: "and",
39
+ Or: "or",
40
+ } as const;
41
+ export type VendorGuestLimitAndOr = ClosedEnum<typeof VendorGuestLimitAndOr>;
42
+
43
+ /** @internal */
44
+ export const VendorGuestLimitAndOr$inboundSchema: z.ZodNativeEnum<
45
+ typeof VendorGuestLimitAndOr
46
+ > = z.nativeEnum(VendorGuestLimitAndOr);
47
+
48
+ /** @internal */
49
+ export const VendorGuestLimitAndOr$outboundSchema: z.ZodNativeEnum<
50
+ typeof VendorGuestLimitAndOr
51
+ > = VendorGuestLimitAndOr$inboundSchema;
52
+
53
+ /**
54
+ * @internal
55
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
+ */
57
+ export namespace VendorGuestLimitAndOr$ {
58
+ /** @deprecated use `VendorGuestLimitAndOr$inboundSchema` instead. */
59
+ export const inboundSchema = VendorGuestLimitAndOr$inboundSchema;
60
+ /** @deprecated use `VendorGuestLimitAndOr$outboundSchema` instead. */
61
+ export const outboundSchema = VendorGuestLimitAndOr$outboundSchema;
62
+ }
63
+
37
64
  export type AppointmentPolicy = {
38
65
  standingApptPeriod?: string | undefined;
39
66
  apptRequestInfo?: string | undefined;
@@ -117,12 +144,6 @@ export type Uses = {
117
144
  visitorSearch: boolean;
118
145
  };
119
146
 
120
- export const VendorGuestLimitAndOr = {
121
- And: "and",
122
- Or: "or",
123
- } as const;
124
- export type VendorGuestLimitAndOr = ClosedEnum<typeof VendorGuestLimitAndOr>;
125
-
126
147
  export type VendorGuestPolicy = {
127
148
  enabled: boolean;
128
149
  vendorGuestLimit?: number | undefined;
@@ -839,27 +860,6 @@ export function usesFromJSON(
839
860
  );
840
861
  }
841
862
 
842
- /** @internal */
843
- export const VendorGuestLimitAndOr$inboundSchema: z.ZodNativeEnum<
844
- typeof VendorGuestLimitAndOr
845
- > = z.nativeEnum(VendorGuestLimitAndOr);
846
-
847
- /** @internal */
848
- export const VendorGuestLimitAndOr$outboundSchema: z.ZodNativeEnum<
849
- typeof VendorGuestLimitAndOr
850
- > = VendorGuestLimitAndOr$inboundSchema;
851
-
852
- /**
853
- * @internal
854
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
855
- */
856
- export namespace VendorGuestLimitAndOr$ {
857
- /** @deprecated use `VendorGuestLimitAndOr$inboundSchema` instead. */
858
- export const inboundSchema = VendorGuestLimitAndOr$inboundSchema;
859
- /** @deprecated use `VendorGuestLimitAndOr$outboundSchema` instead. */
860
- export const outboundSchema = VendorGuestLimitAndOr$outboundSchema;
861
- }
862
-
863
863
  /** @internal */
864
864
  export const VendorGuestPolicy$inboundSchema: z.ZodType<
865
865
  VendorGuestPolicy,
@@ -0,0 +1,88 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * A representation of a Feed response
13
+ */
14
+ export type Feed = {
15
+ id?: number | undefined;
16
+ title?: string | null | undefined;
17
+ start?: string | null | undefined;
18
+ end?: string | null | undefined;
19
+ status?: string | null | undefined;
20
+ allDay?: boolean | undefined;
21
+ };
22
+
23
+ /** @internal */
24
+ export const Feed$inboundSchema: z.ZodType<Feed, z.ZodTypeDef, unknown> = z
25
+ .object({
26
+ id: z.number().int().optional(),
27
+ title: z.nullable(z.string()).optional(),
28
+ start: z.nullable(z.string()).optional(),
29
+ end: z.nullable(z.string()).optional(),
30
+ status: z.nullable(z.string()).optional(),
31
+ all_day: z.boolean().optional(),
32
+ }).transform((v) => {
33
+ return remap$(v, {
34
+ "all_day": "allDay",
35
+ });
36
+ });
37
+
38
+ /** @internal */
39
+ export type Feed$Outbound = {
40
+ id?: number | undefined;
41
+ title?: string | null | undefined;
42
+ start?: string | null | undefined;
43
+ end?: string | null | undefined;
44
+ status?: string | null | undefined;
45
+ all_day?: boolean | undefined;
46
+ };
47
+
48
+ /** @internal */
49
+ export const Feed$outboundSchema: z.ZodType<Feed$Outbound, z.ZodTypeDef, Feed> =
50
+ z.object({
51
+ id: z.number().int().optional(),
52
+ title: z.nullable(z.string()).optional(),
53
+ start: z.nullable(z.string()).optional(),
54
+ end: z.nullable(z.string()).optional(),
55
+ status: z.nullable(z.string()).optional(),
56
+ allDay: z.boolean().optional(),
57
+ }).transform((v) => {
58
+ return remap$(v, {
59
+ allDay: "all_day",
60
+ });
61
+ });
62
+
63
+ /**
64
+ * @internal
65
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
+ */
67
+ export namespace Feed$ {
68
+ /** @deprecated use `Feed$inboundSchema` instead. */
69
+ export const inboundSchema = Feed$inboundSchema;
70
+ /** @deprecated use `Feed$outboundSchema` instead. */
71
+ export const outboundSchema = Feed$outboundSchema;
72
+ /** @deprecated use `Feed$Outbound` instead. */
73
+ export type Outbound = Feed$Outbound;
74
+ }
75
+
76
+ export function feedToJSON(feed: Feed): string {
77
+ return JSON.stringify(Feed$outboundSchema.parse(feed));
78
+ }
79
+
80
+ export function feedFromJSON(
81
+ jsonString: string,
82
+ ): SafeParseResult<Feed, SDKValidationError> {
83
+ return safeParse(
84
+ jsonString,
85
+ (x) => Feed$inboundSchema.parse(JSON.parse(x)),
86
+ `Failed to parse 'Feed' from JSON`,
87
+ );
88
+ }
@@ -22,6 +22,7 @@ export * from "./facility.js";
22
22
  export * from "./facilitystatus.js";
23
23
  export * from "./facilitysummary.js";
24
24
  export * from "./facilityvendortype.js";
25
+ export * from "./feed.js";
25
26
  export * from "./financialstatus.js";
26
27
  export * from "./handoff.js";
27
28
  export * from "./imageset.js";
@@ -34,12 +35,14 @@ export * from "./mfarequiredresponse.js";
34
35
  export * from "./pager.js";
35
36
  export * from "./passwordrequiredresponse.js";
36
37
  export * from "./paymentprofile.js";
38
+ export * from "./pendinginvitation.js";
37
39
  export * from "./product.js";
38
40
  export * from "./productvariant.js";
39
41
  export * from "./samlloginrequiredresponse.js";
40
42
  export * from "./scantype.js";
41
43
  export * from "./screeningresponse.js";
42
44
  export * from "./security.js";
45
+ export * from "./standingappointment.js";
43
46
  export * from "./state.js";
44
47
  export * from "./subscription.js";
45
48
  export * from "./supervisor.js";
@@ -22,27 +22,6 @@ export const MfaMethod = {
22
22
  } as const;
23
23
  export type MfaMethod = ClosedEnum<typeof MfaMethod>;
24
24
 
25
- /**
26
- * The response is sent when a login is successful, but requires more information such as a MFA.
27
- *
28
- * @remarks
29
- *
30
- * If the `mfa_method` is text or email, it's best to show helper text to the user to notify them that a code was sent via mobile or email and they should enter it to proceed.
31
- */
32
- export type MfaRequiredResponse = {
33
- requires: MfaRequiredResponseRequires;
34
- success: boolean;
35
- /**
36
- * Error describing the exact condition of what further steps are needed to finish the login process.
37
- */
38
- error: string;
39
- /**
40
- * A redacted version of the phone number such as `###-###-1234`
41
- */
42
- mobilePhone?: string | undefined;
43
- mfaMethod?: MfaMethod | undefined;
44
- };
45
-
46
25
  /** @internal */
47
26
  export const MfaRequiredResponseRequires$inboundSchema: z.ZodNativeEnum<
48
27
  typeof MfaRequiredResponseRequires
@@ -83,6 +62,27 @@ export namespace MfaMethod$ {
83
62
  export const outboundSchema = MfaMethod$outboundSchema;
84
63
  }
85
64
 
65
+ /**
66
+ * The response is sent when a login is successful, but requires more information such as a MFA.
67
+ *
68
+ * @remarks
69
+ *
70
+ * If the `mfa_method` is text or email, it's best to show helper text to the user to notify them that a code was sent via mobile or email and they should enter it to proceed.
71
+ */
72
+ export type MfaRequiredResponse = {
73
+ requires: MfaRequiredResponseRequires;
74
+ success: boolean;
75
+ /**
76
+ * Error describing the exact condition of what further steps are needed to finish the login process.
77
+ */
78
+ error: string;
79
+ /**
80
+ * A redacted version of the phone number such as `###-###-1234`
81
+ */
82
+ mobilePhone?: string | undefined;
83
+ mfaMethod?: MfaMethod | undefined;
84
+ };
85
+
86
86
  /** @internal */
87
87
  export const MfaRequiredResponse$inboundSchema: z.ZodType<
88
88
  MfaRequiredResponse,
@@ -13,18 +13,6 @@ export const Requires = {
13
13
  } as const;
14
14
  export type Requires = ClosedEnum<typeof Requires>;
15
15
 
16
- /**
17
- * The response is sent when the email address provided requires a password (no SAML login).
18
- */
19
- export type PasswordRequiredResponse = {
20
- requires: Requires;
21
- success: boolean;
22
- /**
23
- * Error describing the exact condition of what further steps are needed to finish the login process.
24
- */
25
- error: string;
26
- };
27
-
28
16
  /** @internal */
29
17
  export const Requires$inboundSchema: z.ZodNativeEnum<typeof Requires> = z
30
18
  .nativeEnum(Requires);
@@ -44,6 +32,18 @@ export namespace Requires$ {
44
32
  export const outboundSchema = Requires$outboundSchema;
45
33
  }
46
34
 
35
+ /**
36
+ * The response is sent when the email address provided requires a password (no SAML login).
37
+ */
38
+ export type PasswordRequiredResponse = {
39
+ requires: Requires;
40
+ success: boolean;
41
+ /**
42
+ * Error describing the exact condition of what further steps are needed to finish the login process.
43
+ */
44
+ error: string;
45
+ };
46
+
47
47
  /** @internal */
48
48
  export const PasswordRequiredResponse$inboundSchema: z.ZodType<
49
49
  PasswordRequiredResponse,