@greensecurity/javascript-sdk 0.39.12 → 0.39.39

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 (568) hide show
  1. package/README.md +12 -0
  2. package/bin/mcp-server.js +1786 -625
  3. package/bin/mcp-server.js.map +46 -31
  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__/zones.test.js +4 -16
  7. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  8. package/dist/commonjs/admin-funcs/doAdmin.d.ts +4 -0
  9. package/dist/commonjs/admin-funcs/doAdmin.d.ts.map +1 -1
  10. package/dist/commonjs/admin-funcs/doAdmin.js +62 -0
  11. package/dist/commonjs/admin-funcs/doAdmin.js.map +1 -1
  12. package/dist/commonjs/admin-funcs/subscriptionFinishInvoice.d.ts +7 -0
  13. package/dist/commonjs/admin-funcs/subscriptionFinishInvoice.d.ts.map +1 -0
  14. package/dist/commonjs/admin-funcs/subscriptionFinishInvoice.js +9 -0
  15. package/dist/commonjs/admin-funcs/subscriptionFinishInvoice.js.map +1 -0
  16. package/dist/commonjs/admin-funcs/subscriptionFinishScreeningQuestions.d.ts +6 -0
  17. package/dist/commonjs/admin-funcs/subscriptionFinishScreeningQuestions.d.ts.map +1 -0
  18. package/dist/commonjs/admin-funcs/subscriptionFinishScreeningQuestions.js +9 -0
  19. package/dist/commonjs/admin-funcs/subscriptionFinishScreeningQuestions.js.map +1 -0
  20. package/dist/commonjs/admin-funcs/subscriptionGetFacilities.d.ts +6 -0
  21. package/dist/commonjs/admin-funcs/subscriptionGetFacilities.d.ts.map +1 -0
  22. package/dist/commonjs/admin-funcs/subscriptionGetFacilities.js +9 -0
  23. package/dist/commonjs/admin-funcs/subscriptionGetFacilities.js.map +1 -0
  24. package/dist/commonjs/admin-funcs/subscriptionGetInvoice.d.ts +7 -0
  25. package/dist/commonjs/admin-funcs/subscriptionGetInvoice.d.ts.map +1 -0
  26. package/dist/commonjs/admin-funcs/subscriptionGetInvoice.js +9 -0
  27. package/dist/commonjs/admin-funcs/subscriptionGetInvoice.js.map +1 -0
  28. package/dist/commonjs/admin-funcs/subscriptionGetPaymentProfile.d.ts +6 -0
  29. package/dist/commonjs/admin-funcs/subscriptionGetPaymentProfile.d.ts.map +1 -0
  30. package/dist/commonjs/admin-funcs/subscriptionGetPaymentProfile.js +9 -0
  31. package/dist/commonjs/admin-funcs/subscriptionGetPaymentProfile.js.map +1 -0
  32. package/dist/commonjs/admin-funcs/subscriptionGetPlans.d.ts +6 -0
  33. package/dist/commonjs/admin-funcs/subscriptionGetPlans.d.ts.map +1 -0
  34. package/dist/commonjs/admin-funcs/subscriptionGetPlans.js +9 -0
  35. package/dist/commonjs/admin-funcs/subscriptionGetPlans.js.map +1 -0
  36. package/dist/commonjs/admin-funcs/subscriptionGetScreeningQuestionsNextQuestion.d.ts +7 -0
  37. package/dist/commonjs/admin-funcs/subscriptionGetScreeningQuestionsNextQuestion.d.ts.map +1 -0
  38. package/dist/commonjs/admin-funcs/subscriptionGetScreeningQuestionsNextQuestion.js +9 -0
  39. package/dist/commonjs/admin-funcs/subscriptionGetScreeningQuestionsNextQuestion.js.map +1 -0
  40. package/dist/commonjs/admin-funcs/subscriptionGetScreeningQuestionsPreviousQuestion.d.ts +7 -0
  41. package/dist/commonjs/admin-funcs/subscriptionGetScreeningQuestionsPreviousQuestion.d.ts.map +1 -0
  42. package/dist/commonjs/admin-funcs/subscriptionGetScreeningQuestionsPreviousQuestion.js +9 -0
  43. package/dist/commonjs/admin-funcs/subscriptionGetScreeningQuestionsPreviousQuestion.js.map +1 -0
  44. package/dist/commonjs/admin-funcs/subscriptionGetSummary.d.ts +6 -0
  45. package/dist/commonjs/admin-funcs/subscriptionGetSummary.d.ts.map +1 -0
  46. package/dist/commonjs/admin-funcs/subscriptionGetSummary.js +9 -0
  47. package/dist/commonjs/admin-funcs/subscriptionGetSummary.js.map +1 -0
  48. package/dist/commonjs/admin-funcs/subscriptionGetVendorTypes.d.ts +6 -0
  49. package/dist/commonjs/admin-funcs/subscriptionGetVendorTypes.d.ts.map +1 -0
  50. package/dist/commonjs/admin-funcs/subscriptionGetVendorTypes.js +9 -0
  51. package/dist/commonjs/admin-funcs/subscriptionGetVendorTypes.js.map +1 -0
  52. package/dist/commonjs/admin-funcs/subscriptionUpdateFacilities.d.ts +7 -0
  53. package/dist/commonjs/admin-funcs/subscriptionUpdateFacilities.d.ts.map +1 -0
  54. package/dist/commonjs/admin-funcs/subscriptionUpdateFacilities.js +9 -0
  55. package/dist/commonjs/admin-funcs/subscriptionUpdateFacilities.js.map +1 -0
  56. package/dist/commonjs/admin-funcs/subscriptionUpdatePaymentProfile.d.ts +23 -0
  57. package/dist/commonjs/admin-funcs/subscriptionUpdatePaymentProfile.d.ts.map +1 -0
  58. package/dist/commonjs/admin-funcs/subscriptionUpdatePaymentProfile.js +9 -0
  59. package/dist/commonjs/admin-funcs/subscriptionUpdatePaymentProfile.js.map +1 -0
  60. package/dist/commonjs/admin-funcs/subscriptionUpdatePlan.d.ts +7 -0
  61. package/dist/commonjs/admin-funcs/subscriptionUpdatePlan.d.ts.map +1 -0
  62. package/dist/commonjs/admin-funcs/subscriptionUpdatePlan.js +9 -0
  63. package/dist/commonjs/admin-funcs/subscriptionUpdatePlan.js.map +1 -0
  64. package/dist/commonjs/admin-funcs/subscriptionUpdateScreeningResponse.d.ts +10 -0
  65. package/dist/commonjs/admin-funcs/subscriptionUpdateScreeningResponse.d.ts.map +1 -0
  66. package/dist/commonjs/admin-funcs/subscriptionUpdateScreeningResponse.js +9 -0
  67. package/dist/commonjs/admin-funcs/subscriptionUpdateScreeningResponse.js.map +1 -0
  68. package/dist/commonjs/admin-funcs/subscriptionUpdateVendorType.d.ts +7 -0
  69. package/dist/commonjs/admin-funcs/subscriptionUpdateVendorType.d.ts.map +1 -0
  70. package/dist/commonjs/admin-funcs/subscriptionUpdateVendorType.js +9 -0
  71. package/dist/commonjs/admin-funcs/subscriptionUpdateVendorType.js.map +1 -0
  72. package/dist/commonjs/funcs/eventsListFeed.d.ts +21 -0
  73. package/dist/commonjs/funcs/eventsListFeed.d.ts.map +1 -0
  74. package/dist/commonjs/funcs/eventsListFeed.js +166 -0
  75. package/dist/commonjs/funcs/eventsListFeed.js.map +1 -0
  76. package/dist/commonjs/funcs/eventsListLocations.d.ts +21 -0
  77. package/dist/commonjs/funcs/eventsListLocations.d.ts.map +1 -0
  78. package/dist/commonjs/funcs/eventsListLocations.js +159 -0
  79. package/dist/commonjs/funcs/eventsListLocations.js.map +1 -0
  80. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts +21 -0
  81. package/dist/commonjs/funcs/eventsListPendingInvitations.d.ts.map +1 -0
  82. package/dist/commonjs/funcs/eventsListPendingInvitations.js +162 -0
  83. package/dist/commonjs/funcs/eventsListPendingInvitations.js.map +1 -0
  84. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts +21 -0
  85. package/dist/commonjs/funcs/eventsListStandingAppointments.d.ts.map +1 -0
  86. package/dist/commonjs/funcs/eventsListStandingAppointments.js +168 -0
  87. package/dist/commonjs/funcs/eventsListStandingAppointments.js.map +1 -0
  88. package/dist/commonjs/index.extras.d.ts +32 -0
  89. package/dist/commonjs/index.extras.d.ts.map +1 -1
  90. package/dist/commonjs/index.extras.js +34 -1
  91. package/dist/commonjs/index.extras.js.map +1 -1
  92. package/dist/commonjs/lib/config.d.ts +3 -3
  93. package/dist/commonjs/lib/config.js +3 -3
  94. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  95. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  96. package/dist/commonjs/mcp-server/server.js +9 -1
  97. package/dist/commonjs/mcp-server/server.js.map +1 -1
  98. package/dist/commonjs/mcp-server/tools/eventsListFeed.d.ts +8 -0
  99. package/dist/commonjs/mcp-server/tools/eventsListFeed.d.ts.map +1 -0
  100. package/dist/commonjs/mcp-server/tools/eventsListFeed.js +64 -0
  101. package/dist/commonjs/mcp-server/tools/eventsListFeed.js.map +1 -0
  102. package/dist/commonjs/mcp-server/tools/eventsListLocations.d.ts +8 -0
  103. package/dist/commonjs/mcp-server/tools/eventsListLocations.d.ts.map +1 -0
  104. package/dist/commonjs/mcp-server/tools/eventsListLocations.js +64 -0
  105. package/dist/commonjs/mcp-server/tools/eventsListLocations.js.map +1 -0
  106. package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.d.ts +8 -0
  107. package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.d.ts.map +1 -0
  108. package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.js +64 -0
  109. package/dist/commonjs/mcp-server/tools/eventsListPendingInvitations.js.map +1 -0
  110. package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.d.ts +8 -0
  111. package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.d.ts.map +1 -0
  112. package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.js +64 -0
  113. package/dist/commonjs/mcp-server/tools/eventsListStandingAppointments.js.map +1 -0
  114. package/dist/commonjs/models/components/backgroundcheckresult.d.ts +27 -27
  115. package/dist/commonjs/models/components/backgroundcheckresult.d.ts.map +1 -1
  116. package/dist/commonjs/models/components/backgroundcheckresult.js.map +1 -1
  117. package/dist/commonjs/models/components/contact.d.ts +25 -25
  118. package/dist/commonjs/models/components/contact.d.ts.map +1 -1
  119. package/dist/commonjs/models/components/contact.js +17 -17
  120. package/dist/commonjs/models/components/contact.js.map +1 -1
  121. package/dist/commonjs/models/components/credential.d.ts +25 -25
  122. package/dist/commonjs/models/components/credential.d.ts.map +1 -1
  123. package/dist/commonjs/models/components/credential.js.map +1 -1
  124. package/dist/commonjs/models/components/credit.d.ts +10 -10
  125. package/dist/commonjs/models/components/credit.d.ts.map +1 -1
  126. package/dist/commonjs/models/components/credit.js.map +1 -1
  127. package/dist/commonjs/models/components/datarequest.d.ts +21 -21
  128. package/dist/commonjs/models/components/datarequest.d.ts.map +1 -1
  129. package/dist/commonjs/models/components/datarequest.js.map +1 -1
  130. package/dist/commonjs/models/components/facility.d.ts +25 -25
  131. package/dist/commonjs/models/components/facility.d.ts.map +1 -1
  132. package/dist/commonjs/models/components/facility.js +16 -16
  133. package/dist/commonjs/models/components/facility.js.map +1 -1
  134. package/dist/commonjs/models/components/feed.d.ts +42 -0
  135. package/dist/commonjs/models/components/feed.d.ts.map +1 -0
  136. package/dist/commonjs/models/components/feed.js +89 -0
  137. package/dist/commonjs/models/components/feed.js.map +1 -0
  138. package/dist/commonjs/models/components/index.d.ts +3 -0
  139. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  140. package/dist/commonjs/models/components/index.js +3 -0
  141. package/dist/commonjs/models/components/index.js.map +1 -1
  142. package/dist/commonjs/models/components/mfarequiredresponse.d.ts +20 -20
  143. package/dist/commonjs/models/components/mfarequiredresponse.d.ts.map +1 -1
  144. package/dist/commonjs/models/components/mfarequiredresponse.js.map +1 -1
  145. package/dist/commonjs/models/components/passwordrequiredresponse.d.ts +11 -11
  146. package/dist/commonjs/models/components/passwordrequiredresponse.d.ts.map +1 -1
  147. package/dist/commonjs/models/components/passwordrequiredresponse.js.map +1 -1
  148. package/dist/commonjs/models/components/pendinginvitation.d.ts +80 -0
  149. package/dist/commonjs/models/components/pendinginvitation.d.ts.map +1 -0
  150. package/dist/commonjs/models/components/pendinginvitation.js +130 -0
  151. package/dist/commonjs/models/components/pendinginvitation.js.map +1 -0
  152. package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts +18 -18
  153. package/dist/commonjs/models/components/samlloginrequiredresponse.d.ts.map +1 -1
  154. package/dist/commonjs/models/components/samlloginrequiredresponse.js.map +1 -1
  155. package/dist/commonjs/models/components/standingappointment.d.ts +46 -0
  156. package/dist/commonjs/models/components/standingappointment.d.ts.map +1 -0
  157. package/dist/commonjs/models/components/standingappointment.js +92 -0
  158. package/dist/commonjs/models/components/standingappointment.js.map +1 -0
  159. package/dist/commonjs/models/components/user.d.ts +65 -65
  160. package/dist/commonjs/models/components/user.d.ts.map +1 -1
  161. package/dist/commonjs/models/components/user.js +17 -17
  162. package/dist/commonjs/models/components/user.js.map +1 -1
  163. package/dist/commonjs/models/components/userlocation.d.ts +19 -19
  164. package/dist/commonjs/models/components/userlocation.d.ts.map +1 -1
  165. package/dist/commonjs/models/components/userlocation.js.map +1 -1
  166. package/dist/commonjs/models/components/vendor.d.ts +50 -5
  167. package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
  168. package/dist/commonjs/models/components/vendor.js +67 -3
  169. package/dist/commonjs/models/components/vendor.js.map +1 -1
  170. package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts +22 -22
  171. package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts.map +1 -1
  172. package/dist/commonjs/models/components/vendorcredentialdatarequest.js +16 -16
  173. package/dist/commonjs/models/components/vendorcredentialdatarequest.js.map +1 -1
  174. package/dist/commonjs/models/components/webhookendpoint.d.ts +18 -18
  175. package/dist/commonjs/models/components/webhookendpoint.d.ts.map +1 -1
  176. package/dist/commonjs/models/components/webhookendpoint.js.map +1 -1
  177. package/dist/commonjs/models/operations/createinvoice.d.ts +106 -106
  178. package/dist/commonjs/models/operations/createinvoice.d.ts.map +1 -1
  179. package/dist/commonjs/models/operations/createinvoice.js +46 -46
  180. package/dist/commonjs/models/operations/createinvoice.js.map +1 -1
  181. package/dist/commonjs/models/operations/createorupdatebcr.d.ts +20 -20
  182. package/dist/commonjs/models/operations/createorupdatebcr.d.ts.map +1 -1
  183. package/dist/commonjs/models/operations/createorupdatebcr.js.map +1 -1
  184. package/dist/commonjs/models/operations/index.d.ts +4 -0
  185. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  186. package/dist/commonjs/models/operations/index.js +4 -0
  187. package/dist/commonjs/models/operations/index.js.map +1 -1
  188. package/dist/commonjs/models/operations/listfeed.d.ts +166 -0
  189. package/dist/commonjs/models/operations/listfeed.d.ts.map +1 -0
  190. package/dist/commonjs/models/operations/listfeed.js +197 -0
  191. package/dist/commonjs/models/operations/listfeed.js.map +1 -0
  192. package/dist/commonjs/models/operations/listlocations.d.ts +148 -0
  193. package/dist/commonjs/models/operations/listlocations.d.ts.map +1 -0
  194. package/dist/commonjs/models/operations/listlocations.js +191 -0
  195. package/dist/commonjs/models/operations/listlocations.js.map +1 -0
  196. package/dist/commonjs/models/operations/listpendinginvitations.d.ts +136 -0
  197. package/dist/commonjs/models/operations/listpendinginvitations.d.ts.map +1 -0
  198. package/dist/commonjs/models/operations/listpendinginvitations.js +173 -0
  199. package/dist/commonjs/models/operations/listpendinginvitations.js.map +1 -0
  200. package/dist/commonjs/models/operations/liststandingappointments.d.ts +166 -0
  201. package/dist/commonjs/models/operations/liststandingappointments.d.ts.map +1 -0
  202. package/dist/commonjs/models/operations/liststandingappointments.js +197 -0
  203. package/dist/commonjs/models/operations/liststandingappointments.js.map +1 -0
  204. package/dist/commonjs/models/operations/listvendorinvoices.d.ts +20 -20
  205. package/dist/commonjs/models/operations/listvendorinvoices.d.ts.map +1 -1
  206. package/dist/commonjs/models/operations/listvendorinvoices.js.map +1 -1
  207. package/dist/commonjs/models/operations/securityzonecheckin.d.ts +22 -22
  208. package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -1
  209. package/dist/commonjs/models/operations/securityzonecheckin.js +17 -17
  210. package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
  211. package/dist/commonjs/models/operations/senddownloadcode.d.ts +10 -10
  212. package/dist/commonjs/models/operations/senddownloadcode.d.ts.map +1 -1
  213. package/dist/commonjs/models/operations/senddownloadcode.js.map +1 -1
  214. package/dist/commonjs/models/operations/updateinvoice.d.ts +106 -106
  215. package/dist/commonjs/models/operations/updateinvoice.d.ts.map +1 -1
  216. package/dist/commonjs/models/operations/updateinvoice.js +47 -47
  217. package/dist/commonjs/models/operations/updateinvoice.js.map +1 -1
  218. package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts +22 -22
  219. package/dist/commonjs/models/operations/updatevendorcredentialdata.d.ts.map +1 -1
  220. package/dist/commonjs/models/operations/updatevendorcredentialdata.js.map +1 -1
  221. package/dist/commonjs/models/operations/updatevendordetails.d.ts +24 -24
  222. package/dist/commonjs/models/operations/updatevendordetails.d.ts.map +1 -1
  223. package/dist/commonjs/models/operations/updatevendordetails.js.map +1 -1
  224. package/dist/commonjs/models/operations/updatevendorscrubdetails.d.ts +21 -21
  225. package/dist/commonjs/models/operations/updatevendorscrubdetails.d.ts.map +1 -1
  226. package/dist/commonjs/models/operations/updatevendorscrubdetails.js.map +1 -1
  227. package/dist/commonjs/react-query/eventsListFeed.d.ts +111 -0
  228. package/dist/commonjs/react-query/eventsListFeed.d.ts.map +1 -0
  229. package/dist/commonjs/react-query/eventsListFeed.js +174 -0
  230. package/dist/commonjs/react-query/eventsListFeed.js.map +1 -0
  231. package/dist/commonjs/react-query/eventsListLocations.d.ts +84 -0
  232. package/dist/commonjs/react-query/eventsListLocations.d.ts.map +1 -0
  233. package/dist/commonjs/react-query/eventsListLocations.js +161 -0
  234. package/dist/commonjs/react-query/eventsListLocations.js.map +1 -0
  235. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts +93 -0
  236. package/dist/commonjs/react-query/eventsListPendingInvitations.d.ts.map +1 -0
  237. package/dist/commonjs/react-query/eventsListPendingInvitations.js +171 -0
  238. package/dist/commonjs/react-query/eventsListPendingInvitations.js.map +1 -0
  239. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts +111 -0
  240. package/dist/commonjs/react-query/eventsListStandingAppointments.d.ts.map +1 -0
  241. package/dist/commonjs/react-query/eventsListStandingAppointments.js +183 -0
  242. package/dist/commonjs/react-query/eventsListStandingAppointments.js.map +1 -0
  243. package/dist/commonjs/react-query/index.d.ts +4 -0
  244. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  245. package/dist/commonjs/react-query/index.js +4 -0
  246. package/dist/commonjs/react-query/index.js.map +1 -1
  247. package/dist/commonjs/sdk/events.d.ts +36 -0
  248. package/dist/commonjs/sdk/events.d.ts.map +1 -1
  249. package/dist/commonjs/sdk/events.js +40 -0
  250. package/dist/commonjs/sdk/events.js.map +1 -1
  251. package/dist/esm/__tests__/events.test.js +124 -0
  252. package/dist/esm/__tests__/events.test.js.map +1 -1
  253. package/dist/esm/__tests__/zones.test.js +4 -16
  254. package/dist/esm/__tests__/zones.test.js.map +1 -1
  255. package/dist/esm/admin-funcs/doAdmin.d.ts +4 -0
  256. package/dist/esm/admin-funcs/doAdmin.d.ts.map +1 -1
  257. package/dist/esm/admin-funcs/doAdmin.js +61 -0
  258. package/dist/esm/admin-funcs/doAdmin.js.map +1 -1
  259. package/dist/esm/admin-funcs/subscriptionFinishInvoice.d.ts +7 -0
  260. package/dist/esm/admin-funcs/subscriptionFinishInvoice.d.ts.map +1 -0
  261. package/dist/esm/admin-funcs/subscriptionFinishInvoice.js +6 -0
  262. package/dist/esm/admin-funcs/subscriptionFinishInvoice.js.map +1 -0
  263. package/dist/esm/admin-funcs/subscriptionFinishScreeningQuestions.d.ts +6 -0
  264. package/dist/esm/admin-funcs/subscriptionFinishScreeningQuestions.d.ts.map +1 -0
  265. package/dist/esm/admin-funcs/subscriptionFinishScreeningQuestions.js +6 -0
  266. package/dist/esm/admin-funcs/subscriptionFinishScreeningQuestions.js.map +1 -0
  267. package/dist/esm/admin-funcs/subscriptionGetFacilities.d.ts +6 -0
  268. package/dist/esm/admin-funcs/subscriptionGetFacilities.d.ts.map +1 -0
  269. package/dist/esm/admin-funcs/subscriptionGetFacilities.js +6 -0
  270. package/dist/esm/admin-funcs/subscriptionGetFacilities.js.map +1 -0
  271. package/dist/esm/admin-funcs/subscriptionGetInvoice.d.ts +7 -0
  272. package/dist/esm/admin-funcs/subscriptionGetInvoice.d.ts.map +1 -0
  273. package/dist/esm/admin-funcs/subscriptionGetInvoice.js +6 -0
  274. package/dist/esm/admin-funcs/subscriptionGetInvoice.js.map +1 -0
  275. package/dist/esm/admin-funcs/subscriptionGetPaymentProfile.d.ts +6 -0
  276. package/dist/esm/admin-funcs/subscriptionGetPaymentProfile.d.ts.map +1 -0
  277. package/dist/esm/admin-funcs/subscriptionGetPaymentProfile.js +6 -0
  278. package/dist/esm/admin-funcs/subscriptionGetPaymentProfile.js.map +1 -0
  279. package/dist/esm/admin-funcs/subscriptionGetPlans.d.ts +6 -0
  280. package/dist/esm/admin-funcs/subscriptionGetPlans.d.ts.map +1 -0
  281. package/dist/esm/admin-funcs/subscriptionGetPlans.js +6 -0
  282. package/dist/esm/admin-funcs/subscriptionGetPlans.js.map +1 -0
  283. package/dist/esm/admin-funcs/subscriptionGetScreeningQuestionsNextQuestion.d.ts +7 -0
  284. package/dist/esm/admin-funcs/subscriptionGetScreeningQuestionsNextQuestion.d.ts.map +1 -0
  285. package/dist/esm/admin-funcs/subscriptionGetScreeningQuestionsNextQuestion.js +6 -0
  286. package/dist/esm/admin-funcs/subscriptionGetScreeningQuestionsNextQuestion.js.map +1 -0
  287. package/dist/esm/admin-funcs/subscriptionGetScreeningQuestionsPreviousQuestion.d.ts +7 -0
  288. package/dist/esm/admin-funcs/subscriptionGetScreeningQuestionsPreviousQuestion.d.ts.map +1 -0
  289. package/dist/esm/admin-funcs/subscriptionGetScreeningQuestionsPreviousQuestion.js +6 -0
  290. package/dist/esm/admin-funcs/subscriptionGetScreeningQuestionsPreviousQuestion.js.map +1 -0
  291. package/dist/esm/admin-funcs/subscriptionGetSummary.d.ts +6 -0
  292. package/dist/esm/admin-funcs/subscriptionGetSummary.d.ts.map +1 -0
  293. package/dist/esm/admin-funcs/subscriptionGetSummary.js +6 -0
  294. package/dist/esm/admin-funcs/subscriptionGetSummary.js.map +1 -0
  295. package/dist/esm/admin-funcs/subscriptionGetVendorTypes.d.ts +6 -0
  296. package/dist/esm/admin-funcs/subscriptionGetVendorTypes.d.ts.map +1 -0
  297. package/dist/esm/admin-funcs/subscriptionGetVendorTypes.js +6 -0
  298. package/dist/esm/admin-funcs/subscriptionGetVendorTypes.js.map +1 -0
  299. package/dist/esm/admin-funcs/subscriptionUpdateFacilities.d.ts +7 -0
  300. package/dist/esm/admin-funcs/subscriptionUpdateFacilities.d.ts.map +1 -0
  301. package/dist/esm/admin-funcs/subscriptionUpdateFacilities.js +6 -0
  302. package/dist/esm/admin-funcs/subscriptionUpdateFacilities.js.map +1 -0
  303. package/dist/esm/admin-funcs/subscriptionUpdatePaymentProfile.d.ts +23 -0
  304. package/dist/esm/admin-funcs/subscriptionUpdatePaymentProfile.d.ts.map +1 -0
  305. package/dist/esm/admin-funcs/subscriptionUpdatePaymentProfile.js +6 -0
  306. package/dist/esm/admin-funcs/subscriptionUpdatePaymentProfile.js.map +1 -0
  307. package/dist/esm/admin-funcs/subscriptionUpdatePlan.d.ts +7 -0
  308. package/dist/esm/admin-funcs/subscriptionUpdatePlan.d.ts.map +1 -0
  309. package/dist/esm/admin-funcs/subscriptionUpdatePlan.js +6 -0
  310. package/dist/esm/admin-funcs/subscriptionUpdatePlan.js.map +1 -0
  311. package/dist/esm/admin-funcs/subscriptionUpdateScreeningResponse.d.ts +10 -0
  312. package/dist/esm/admin-funcs/subscriptionUpdateScreeningResponse.d.ts.map +1 -0
  313. package/dist/esm/admin-funcs/subscriptionUpdateScreeningResponse.js +6 -0
  314. package/dist/esm/admin-funcs/subscriptionUpdateScreeningResponse.js.map +1 -0
  315. package/dist/esm/admin-funcs/subscriptionUpdateVendorType.d.ts +7 -0
  316. package/dist/esm/admin-funcs/subscriptionUpdateVendorType.d.ts.map +1 -0
  317. package/dist/esm/admin-funcs/subscriptionUpdateVendorType.js +6 -0
  318. package/dist/esm/admin-funcs/subscriptionUpdateVendorType.js.map +1 -0
  319. package/dist/esm/funcs/eventsListFeed.d.ts +21 -0
  320. package/dist/esm/funcs/eventsListFeed.d.ts.map +1 -0
  321. package/dist/esm/funcs/eventsListFeed.js +130 -0
  322. package/dist/esm/funcs/eventsListFeed.js.map +1 -0
  323. package/dist/esm/funcs/eventsListLocations.d.ts +21 -0
  324. package/dist/esm/funcs/eventsListLocations.d.ts.map +1 -0
  325. package/dist/esm/funcs/eventsListLocations.js +123 -0
  326. package/dist/esm/funcs/eventsListLocations.js.map +1 -0
  327. package/dist/esm/funcs/eventsListPendingInvitations.d.ts +21 -0
  328. package/dist/esm/funcs/eventsListPendingInvitations.d.ts.map +1 -0
  329. package/dist/esm/funcs/eventsListPendingInvitations.js +126 -0
  330. package/dist/esm/funcs/eventsListPendingInvitations.js.map +1 -0
  331. package/dist/esm/funcs/eventsListStandingAppointments.d.ts +21 -0
  332. package/dist/esm/funcs/eventsListStandingAppointments.d.ts.map +1 -0
  333. package/dist/esm/funcs/eventsListStandingAppointments.js +132 -0
  334. package/dist/esm/funcs/eventsListStandingAppointments.js.map +1 -0
  335. package/dist/esm/index.extras.d.ts +32 -0
  336. package/dist/esm/index.extras.d.ts.map +1 -1
  337. package/dist/esm/index.extras.js +34 -1
  338. package/dist/esm/index.extras.js.map +1 -1
  339. package/dist/esm/lib/config.d.ts +3 -3
  340. package/dist/esm/lib/config.js +3 -3
  341. package/dist/esm/mcp-server/mcp-server.js +1 -1
  342. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  343. package/dist/esm/mcp-server/server.js +9 -1
  344. package/dist/esm/mcp-server/server.js.map +1 -1
  345. package/dist/esm/mcp-server/tools/eventsListFeed.d.ts +8 -0
  346. package/dist/esm/mcp-server/tools/eventsListFeed.d.ts.map +1 -0
  347. package/dist/esm/mcp-server/tools/eventsListFeed.js +28 -0
  348. package/dist/esm/mcp-server/tools/eventsListFeed.js.map +1 -0
  349. package/dist/esm/mcp-server/tools/eventsListLocations.d.ts +8 -0
  350. package/dist/esm/mcp-server/tools/eventsListLocations.d.ts.map +1 -0
  351. package/dist/esm/mcp-server/tools/eventsListLocations.js +28 -0
  352. package/dist/esm/mcp-server/tools/eventsListLocations.js.map +1 -0
  353. package/dist/esm/mcp-server/tools/eventsListPendingInvitations.d.ts +8 -0
  354. package/dist/esm/mcp-server/tools/eventsListPendingInvitations.d.ts.map +1 -0
  355. package/dist/esm/mcp-server/tools/eventsListPendingInvitations.js +28 -0
  356. package/dist/esm/mcp-server/tools/eventsListPendingInvitations.js.map +1 -0
  357. package/dist/esm/mcp-server/tools/eventsListStandingAppointments.d.ts +8 -0
  358. package/dist/esm/mcp-server/tools/eventsListStandingAppointments.d.ts.map +1 -0
  359. package/dist/esm/mcp-server/tools/eventsListStandingAppointments.js +28 -0
  360. package/dist/esm/mcp-server/tools/eventsListStandingAppointments.js.map +1 -0
  361. package/dist/esm/models/components/backgroundcheckresult.d.ts +27 -27
  362. package/dist/esm/models/components/backgroundcheckresult.d.ts.map +1 -1
  363. package/dist/esm/models/components/backgroundcheckresult.js.map +1 -1
  364. package/dist/esm/models/components/contact.d.ts +25 -25
  365. package/dist/esm/models/components/contact.d.ts.map +1 -1
  366. package/dist/esm/models/components/contact.js +16 -16
  367. package/dist/esm/models/components/contact.js.map +1 -1
  368. package/dist/esm/models/components/credential.d.ts +25 -25
  369. package/dist/esm/models/components/credential.d.ts.map +1 -1
  370. package/dist/esm/models/components/credential.js.map +1 -1
  371. package/dist/esm/models/components/credit.d.ts +10 -10
  372. package/dist/esm/models/components/credit.d.ts.map +1 -1
  373. package/dist/esm/models/components/credit.js.map +1 -1
  374. package/dist/esm/models/components/datarequest.d.ts +21 -21
  375. package/dist/esm/models/components/datarequest.d.ts.map +1 -1
  376. package/dist/esm/models/components/datarequest.js.map +1 -1
  377. package/dist/esm/models/components/facility.d.ts +25 -25
  378. package/dist/esm/models/components/facility.d.ts.map +1 -1
  379. package/dist/esm/models/components/facility.js +15 -15
  380. package/dist/esm/models/components/facility.js.map +1 -1
  381. package/dist/esm/models/components/feed.d.ts +42 -0
  382. package/dist/esm/models/components/feed.d.ts.map +1 -0
  383. package/dist/esm/models/components/feed.js +51 -0
  384. package/dist/esm/models/components/feed.js.map +1 -0
  385. package/dist/esm/models/components/index.d.ts +3 -0
  386. package/dist/esm/models/components/index.d.ts.map +1 -1
  387. package/dist/esm/models/components/index.js +3 -0
  388. package/dist/esm/models/components/index.js.map +1 -1
  389. package/dist/esm/models/components/mfarequiredresponse.d.ts +20 -20
  390. package/dist/esm/models/components/mfarequiredresponse.d.ts.map +1 -1
  391. package/dist/esm/models/components/mfarequiredresponse.js.map +1 -1
  392. package/dist/esm/models/components/passwordrequiredresponse.d.ts +11 -11
  393. package/dist/esm/models/components/passwordrequiredresponse.d.ts.map +1 -1
  394. package/dist/esm/models/components/passwordrequiredresponse.js.map +1 -1
  395. package/dist/esm/models/components/pendinginvitation.d.ts +80 -0
  396. package/dist/esm/models/components/pendinginvitation.d.ts.map +1 -0
  397. package/dist/esm/models/components/pendinginvitation.js +90 -0
  398. package/dist/esm/models/components/pendinginvitation.js.map +1 -0
  399. package/dist/esm/models/components/samlloginrequiredresponse.d.ts +18 -18
  400. package/dist/esm/models/components/samlloginrequiredresponse.d.ts.map +1 -1
  401. package/dist/esm/models/components/samlloginrequiredresponse.js.map +1 -1
  402. package/dist/esm/models/components/standingappointment.d.ts +46 -0
  403. package/dist/esm/models/components/standingappointment.d.ts.map +1 -0
  404. package/dist/esm/models/components/standingappointment.js +54 -0
  405. package/dist/esm/models/components/standingappointment.js.map +1 -0
  406. package/dist/esm/models/components/user.d.ts +65 -65
  407. package/dist/esm/models/components/user.d.ts.map +1 -1
  408. package/dist/esm/models/components/user.js +16 -16
  409. package/dist/esm/models/components/user.js.map +1 -1
  410. package/dist/esm/models/components/userlocation.d.ts +19 -19
  411. package/dist/esm/models/components/userlocation.d.ts.map +1 -1
  412. package/dist/esm/models/components/userlocation.js.map +1 -1
  413. package/dist/esm/models/components/vendor.d.ts +50 -5
  414. package/dist/esm/models/components/vendor.d.ts.map +1 -1
  415. package/dist/esm/models/components/vendor.js +62 -2
  416. package/dist/esm/models/components/vendor.js.map +1 -1
  417. package/dist/esm/models/components/vendorcredentialdatarequest.d.ts +22 -22
  418. package/dist/esm/models/components/vendorcredentialdatarequest.d.ts.map +1 -1
  419. package/dist/esm/models/components/vendorcredentialdatarequest.js +15 -15
  420. package/dist/esm/models/components/vendorcredentialdatarequest.js.map +1 -1
  421. package/dist/esm/models/components/webhookendpoint.d.ts +18 -18
  422. package/dist/esm/models/components/webhookendpoint.d.ts.map +1 -1
  423. package/dist/esm/models/components/webhookendpoint.js.map +1 -1
  424. package/dist/esm/models/operations/createinvoice.d.ts +106 -106
  425. package/dist/esm/models/operations/createinvoice.d.ts.map +1 -1
  426. package/dist/esm/models/operations/createinvoice.js +45 -45
  427. package/dist/esm/models/operations/createinvoice.js.map +1 -1
  428. package/dist/esm/models/operations/createorupdatebcr.d.ts +20 -20
  429. package/dist/esm/models/operations/createorupdatebcr.d.ts.map +1 -1
  430. package/dist/esm/models/operations/createorupdatebcr.js.map +1 -1
  431. package/dist/esm/models/operations/index.d.ts +4 -0
  432. package/dist/esm/models/operations/index.d.ts.map +1 -1
  433. package/dist/esm/models/operations/index.js +4 -0
  434. package/dist/esm/models/operations/index.js.map +1 -1
  435. package/dist/esm/models/operations/listfeed.d.ts +166 -0
  436. package/dist/esm/models/operations/listfeed.d.ts.map +1 -0
  437. package/dist/esm/models/operations/listfeed.js +155 -0
  438. package/dist/esm/models/operations/listfeed.js.map +1 -0
  439. package/dist/esm/models/operations/listlocations.d.ts +148 -0
  440. package/dist/esm/models/operations/listlocations.d.ts.map +1 -0
  441. package/dist/esm/models/operations/listlocations.js +147 -0
  442. package/dist/esm/models/operations/listlocations.js.map +1 -0
  443. package/dist/esm/models/operations/listpendinginvitations.d.ts +136 -0
  444. package/dist/esm/models/operations/listpendinginvitations.d.ts.map +1 -0
  445. package/dist/esm/models/operations/listpendinginvitations.js +131 -0
  446. package/dist/esm/models/operations/listpendinginvitations.js.map +1 -0
  447. package/dist/esm/models/operations/liststandingappointments.d.ts +166 -0
  448. package/dist/esm/models/operations/liststandingappointments.d.ts.map +1 -0
  449. package/dist/esm/models/operations/liststandingappointments.js +155 -0
  450. package/dist/esm/models/operations/liststandingappointments.js.map +1 -0
  451. package/dist/esm/models/operations/listvendorinvoices.d.ts +20 -20
  452. package/dist/esm/models/operations/listvendorinvoices.d.ts.map +1 -1
  453. package/dist/esm/models/operations/listvendorinvoices.js.map +1 -1
  454. package/dist/esm/models/operations/securityzonecheckin.d.ts +22 -22
  455. package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -1
  456. package/dist/esm/models/operations/securityzonecheckin.js +16 -16
  457. package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
  458. package/dist/esm/models/operations/senddownloadcode.d.ts +10 -10
  459. package/dist/esm/models/operations/senddownloadcode.d.ts.map +1 -1
  460. package/dist/esm/models/operations/senddownloadcode.js.map +1 -1
  461. package/dist/esm/models/operations/updateinvoice.d.ts +106 -106
  462. package/dist/esm/models/operations/updateinvoice.d.ts.map +1 -1
  463. package/dist/esm/models/operations/updateinvoice.js +46 -46
  464. package/dist/esm/models/operations/updateinvoice.js.map +1 -1
  465. package/dist/esm/models/operations/updatevendorcredentialdata.d.ts +22 -22
  466. package/dist/esm/models/operations/updatevendorcredentialdata.d.ts.map +1 -1
  467. package/dist/esm/models/operations/updatevendorcredentialdata.js.map +1 -1
  468. package/dist/esm/models/operations/updatevendordetails.d.ts +24 -24
  469. package/dist/esm/models/operations/updatevendordetails.d.ts.map +1 -1
  470. package/dist/esm/models/operations/updatevendordetails.js.map +1 -1
  471. package/dist/esm/models/operations/updatevendorscrubdetails.d.ts +21 -21
  472. package/dist/esm/models/operations/updatevendorscrubdetails.d.ts.map +1 -1
  473. package/dist/esm/models/operations/updatevendorscrubdetails.js.map +1 -1
  474. package/dist/esm/react-query/eventsListFeed.d.ts +111 -0
  475. package/dist/esm/react-query/eventsListFeed.d.ts.map +1 -0
  476. package/dist/esm/react-query/eventsListFeed.js +161 -0
  477. package/dist/esm/react-query/eventsListFeed.js.map +1 -0
  478. package/dist/esm/react-query/eventsListLocations.d.ts +84 -0
  479. package/dist/esm/react-query/eventsListLocations.d.ts.map +1 -0
  480. package/dist/esm/react-query/eventsListLocations.js +148 -0
  481. package/dist/esm/react-query/eventsListLocations.js.map +1 -0
  482. package/dist/esm/react-query/eventsListPendingInvitations.d.ts +93 -0
  483. package/dist/esm/react-query/eventsListPendingInvitations.d.ts.map +1 -0
  484. package/dist/esm/react-query/eventsListPendingInvitations.js +158 -0
  485. package/dist/esm/react-query/eventsListPendingInvitations.js.map +1 -0
  486. package/dist/esm/react-query/eventsListStandingAppointments.d.ts +111 -0
  487. package/dist/esm/react-query/eventsListStandingAppointments.d.ts.map +1 -0
  488. package/dist/esm/react-query/eventsListStandingAppointments.js +170 -0
  489. package/dist/esm/react-query/eventsListStandingAppointments.js.map +1 -0
  490. package/dist/esm/react-query/index.d.ts +4 -0
  491. package/dist/esm/react-query/index.d.ts.map +1 -1
  492. package/dist/esm/react-query/index.js +4 -0
  493. package/dist/esm/react-query/index.js.map +1 -1
  494. package/dist/esm/sdk/events.d.ts +36 -0
  495. package/dist/esm/sdk/events.d.ts.map +1 -1
  496. package/dist/esm/sdk/events.js +40 -0
  497. package/dist/esm/sdk/events.js.map +1 -1
  498. package/examples/package-lock.json +6 -5
  499. package/jsr.json +1 -1
  500. package/package.json +6 -6
  501. package/src/__tests__/events.test.ts +136 -0
  502. package/src/__tests__/zones.test.ts +4 -16
  503. package/src/admin-funcs/doAdmin.ts +111 -0
  504. package/src/admin-funcs/subscriptionFinishInvoice.ts +14 -0
  505. package/src/admin-funcs/subscriptionFinishScreeningQuestions.ts +13 -0
  506. package/src/admin-funcs/subscriptionGetFacilities.ts +13 -0
  507. package/src/admin-funcs/subscriptionGetInvoice.ts +14 -0
  508. package/src/admin-funcs/subscriptionGetPaymentProfile.ts +13 -0
  509. package/src/admin-funcs/subscriptionGetPlans.ts +13 -0
  510. package/src/admin-funcs/subscriptionGetScreeningQuestionsNextQuestion.ts +14 -0
  511. package/src/admin-funcs/subscriptionGetScreeningQuestionsPreviousQuestion.ts +14 -0
  512. package/src/admin-funcs/subscriptionGetSummary.ts +13 -0
  513. package/src/admin-funcs/subscriptionGetVendorTypes.ts +13 -0
  514. package/src/admin-funcs/subscriptionUpdateFacilities.ts +14 -0
  515. package/src/admin-funcs/subscriptionUpdatePaymentProfile.ts +30 -0
  516. package/src/admin-funcs/subscriptionUpdatePlan.ts +14 -0
  517. package/src/admin-funcs/subscriptionUpdateScreeningResponse.ts +17 -0
  518. package/src/admin-funcs/subscriptionUpdateVendorType.ts +14 -0
  519. package/src/funcs/eventsListFeed.ts +257 -0
  520. package/src/funcs/eventsListLocations.ts +250 -0
  521. package/src/funcs/eventsListPendingInvitations.ts +254 -0
  522. package/src/funcs/eventsListStandingAppointments.ts +260 -0
  523. package/src/index.extras.ts +36 -1
  524. package/src/lib/config.ts +3 -3
  525. package/src/mcp-server/mcp-server.ts +1 -1
  526. package/src/mcp-server/server.ts +9 -1
  527. package/src/mcp-server/tools/eventsListFeed.ts +37 -0
  528. package/src/mcp-server/tools/eventsListLocations.ts +37 -0
  529. package/src/mcp-server/tools/eventsListPendingInvitations.ts +37 -0
  530. package/src/mcp-server/tools/eventsListStandingAppointments.ts +38 -0
  531. package/src/models/components/backgroundcheckresult.ts +31 -31
  532. package/src/models/components/contact.ts +25 -25
  533. package/src/models/components/credential.ts +26 -26
  534. package/src/models/components/credit.ts +11 -11
  535. package/src/models/components/datarequest.ts +19 -19
  536. package/src/models/components/facility.ts +27 -27
  537. package/src/models/components/feed.ts +88 -0
  538. package/src/models/components/index.ts +3 -0
  539. package/src/models/components/mfarequiredresponse.ts +21 -21
  540. package/src/models/components/passwordrequiredresponse.ts +12 -12
  541. package/src/models/components/pendinginvitation.ts +176 -0
  542. package/src/models/components/samlloginrequiredresponse.ts +21 -21
  543. package/src/models/components/standingappointment.ts +106 -0
  544. package/src/models/components/user.ts +50 -50
  545. package/src/models/components/userlocation.ts +19 -19
  546. package/src/models/components/vendor.ts +124 -7
  547. package/src/models/components/vendorcredentialdatarequest.ts +28 -28
  548. package/src/models/components/webhookendpoint.ts +21 -21
  549. package/src/models/operations/createinvoice.ts +114 -114
  550. package/src/models/operations/createorupdatebcr.ts +21 -21
  551. package/src/models/operations/index.ts +4 -0
  552. package/src/models/operations/listfeed.ts +340 -0
  553. package/src/models/operations/listlocations.ts +316 -0
  554. package/src/models/operations/listpendinginvitations.ts +296 -0
  555. package/src/models/operations/liststandingappointments.ts +351 -0
  556. package/src/models/operations/listvendorinvoices.ts +21 -21
  557. package/src/models/operations/securityzonecheckin.ts +24 -24
  558. package/src/models/operations/senddownloadcode.ts +12 -12
  559. package/src/models/operations/updateinvoice.ts +124 -124
  560. package/src/models/operations/updatevendorcredentialdata.ts +24 -24
  561. package/src/models/operations/updatevendordetails.ts +21 -21
  562. package/src/models/operations/updatevendorscrubdetails.ts +23 -23
  563. package/src/react-query/eventsListFeed.ts +366 -0
  564. package/src/react-query/eventsListLocations.ts +342 -0
  565. package/src/react-query/eventsListPendingInvitations.ts +367 -0
  566. package/src/react-query/eventsListStandingAppointments.ts +400 -0
  567. package/src/react-query/index.ts +4 -0
  568. package/src/sdk/events.ts +76 -0
@@ -0,0 +1,176 @@
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 PendingInvitation response
13
+ */
14
+ export type Event = {
15
+ id?: number | undefined;
16
+ userId?: number | undefined;
17
+ title?: string | null | undefined;
18
+ location?: string | null | undefined;
19
+ start?: string | undefined;
20
+ end?: string | undefined;
21
+ allDay?: boolean | undefined;
22
+ standingAppt?: boolean | undefined;
23
+ };
24
+
25
+ export type PendingInvitation = {
26
+ id?: number | undefined;
27
+ from?: string | null | undefined;
28
+ to?: string | null | undefined;
29
+ /**
30
+ * A representation of a PendingInvitation response
31
+ */
32
+ event?: Event | undefined;
33
+ };
34
+
35
+ /** @internal */
36
+ export const Event$inboundSchema: z.ZodType<Event, z.ZodTypeDef, unknown> = z
37
+ .object({
38
+ id: z.number().int().optional(),
39
+ user_id: z.number().int().optional(),
40
+ title: z.nullable(z.string()).optional(),
41
+ location: z.nullable(z.string()).optional(),
42
+ start: z.string().optional(),
43
+ end: z.string().optional(),
44
+ all_day: z.boolean().optional(),
45
+ standing_appt: z.boolean().optional(),
46
+ }).transform((v) => {
47
+ return remap$(v, {
48
+ "user_id": "userId",
49
+ "all_day": "allDay",
50
+ "standing_appt": "standingAppt",
51
+ });
52
+ });
53
+
54
+ /** @internal */
55
+ export type Event$Outbound = {
56
+ id?: number | undefined;
57
+ user_id?: number | undefined;
58
+ title?: string | null | undefined;
59
+ location?: string | null | undefined;
60
+ start?: string | undefined;
61
+ end?: string | undefined;
62
+ all_day?: boolean | undefined;
63
+ standing_appt?: boolean | undefined;
64
+ };
65
+
66
+ /** @internal */
67
+ export const Event$outboundSchema: z.ZodType<
68
+ Event$Outbound,
69
+ z.ZodTypeDef,
70
+ Event
71
+ > = z.object({
72
+ id: z.number().int().optional(),
73
+ userId: z.number().int().optional(),
74
+ title: z.nullable(z.string()).optional(),
75
+ location: z.nullable(z.string()).optional(),
76
+ start: z.string().optional(),
77
+ end: z.string().optional(),
78
+ allDay: z.boolean().optional(),
79
+ standingAppt: z.boolean().optional(),
80
+ }).transform((v) => {
81
+ return remap$(v, {
82
+ userId: "user_id",
83
+ allDay: "all_day",
84
+ standingAppt: "standing_appt",
85
+ });
86
+ });
87
+
88
+ /**
89
+ * @internal
90
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
91
+ */
92
+ export namespace Event$ {
93
+ /** @deprecated use `Event$inboundSchema` instead. */
94
+ export const inboundSchema = Event$inboundSchema;
95
+ /** @deprecated use `Event$outboundSchema` instead. */
96
+ export const outboundSchema = Event$outboundSchema;
97
+ /** @deprecated use `Event$Outbound` instead. */
98
+ export type Outbound = Event$Outbound;
99
+ }
100
+
101
+ export function eventToJSON(event: Event): string {
102
+ return JSON.stringify(Event$outboundSchema.parse(event));
103
+ }
104
+
105
+ export function eventFromJSON(
106
+ jsonString: string,
107
+ ): SafeParseResult<Event, SDKValidationError> {
108
+ return safeParse(
109
+ jsonString,
110
+ (x) => Event$inboundSchema.parse(JSON.parse(x)),
111
+ `Failed to parse 'Event' from JSON`,
112
+ );
113
+ }
114
+
115
+ /** @internal */
116
+ export const PendingInvitation$inboundSchema: z.ZodType<
117
+ PendingInvitation,
118
+ z.ZodTypeDef,
119
+ unknown
120
+ > = z.object({
121
+ id: z.number().int().optional(),
122
+ from: z.nullable(z.string()).optional(),
123
+ to: z.nullable(z.string()).optional(),
124
+ event: z.lazy(() => Event$inboundSchema).optional(),
125
+ });
126
+
127
+ /** @internal */
128
+ export type PendingInvitation$Outbound = {
129
+ id?: number | undefined;
130
+ from?: string | null | undefined;
131
+ to?: string | null | undefined;
132
+ event?: Event$Outbound | undefined;
133
+ };
134
+
135
+ /** @internal */
136
+ export const PendingInvitation$outboundSchema: z.ZodType<
137
+ PendingInvitation$Outbound,
138
+ z.ZodTypeDef,
139
+ PendingInvitation
140
+ > = z.object({
141
+ id: z.number().int().optional(),
142
+ from: z.nullable(z.string()).optional(),
143
+ to: z.nullable(z.string()).optional(),
144
+ event: z.lazy(() => Event$outboundSchema).optional(),
145
+ });
146
+
147
+ /**
148
+ * @internal
149
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
150
+ */
151
+ export namespace PendingInvitation$ {
152
+ /** @deprecated use `PendingInvitation$inboundSchema` instead. */
153
+ export const inboundSchema = PendingInvitation$inboundSchema;
154
+ /** @deprecated use `PendingInvitation$outboundSchema` instead. */
155
+ export const outboundSchema = PendingInvitation$outboundSchema;
156
+ /** @deprecated use `PendingInvitation$Outbound` instead. */
157
+ export type Outbound = PendingInvitation$Outbound;
158
+ }
159
+
160
+ export function pendingInvitationToJSON(
161
+ pendingInvitation: PendingInvitation,
162
+ ): string {
163
+ return JSON.stringify(
164
+ PendingInvitation$outboundSchema.parse(pendingInvitation),
165
+ );
166
+ }
167
+
168
+ export function pendingInvitationFromJSON(
169
+ jsonString: string,
170
+ ): SafeParseResult<PendingInvitation, SDKValidationError> {
171
+ return safeParse(
172
+ jsonString,
173
+ (x) => PendingInvitation$inboundSchema.parse(JSON.parse(x)),
174
+ `Failed to parse 'PendingInvitation' from JSON`,
175
+ );
176
+ }
@@ -16,27 +16,6 @@ export type SamlLoginRequiredResponseRequires = ClosedEnum<
16
16
  typeof SamlLoginRequiredResponseRequires
17
17
  >;
18
18
 
19
- /**
20
- * The email address provided must complete SAML authentication at the provided `sso_url` which encodes the `return_url` that was sent as part of the request.
21
- *
22
- * @remarks
23
- *
24
- * The user will complete their SAML login at the external IdP and the browser will be redirected to your selected `return_url` with an extra query string parameter called `user_token`. That token is equivalent to the user login and can be used in the `/users/me` endpoint to get user details.
25
- */
26
- export type SamlLoginRequiredResponse = {
27
- requires: SamlLoginRequiredResponseRequires;
28
- success: boolean;
29
- error: string;
30
- /**
31
- * Instructions that should be displayed to a user in case the SAML flow determines that the account is valid but this is a registration of a brand new user.
32
- */
33
- ssoInstructions?: string | undefined;
34
- /**
35
- * This is the URL that should be opened to initiate the SAML login flow
36
- */
37
- ssoUrl: string;
38
- };
39
-
40
19
  /** @internal */
41
20
  export const SamlLoginRequiredResponseRequires$inboundSchema: z.ZodNativeEnum<
42
21
  typeof SamlLoginRequiredResponseRequires
@@ -59,6 +38,27 @@ export namespace SamlLoginRequiredResponseRequires$ {
59
38
  SamlLoginRequiredResponseRequires$outboundSchema;
60
39
  }
61
40
 
41
+ /**
42
+ * The email address provided must complete SAML authentication at the provided `sso_url` which encodes the `return_url` that was sent as part of the request.
43
+ *
44
+ * @remarks
45
+ *
46
+ * The user will complete their SAML login at the external IdP and the browser will be redirected to your selected `return_url` with an extra query string parameter called `user_token`. That token is equivalent to the user login and can be used in the `/users/me` endpoint to get user details.
47
+ */
48
+ export type SamlLoginRequiredResponse = {
49
+ requires: SamlLoginRequiredResponseRequires;
50
+ success: boolean;
51
+ error: string;
52
+ /**
53
+ * Instructions that should be displayed to a user in case the SAML flow determines that the account is valid but this is a registration of a brand new user.
54
+ */
55
+ ssoInstructions?: string | undefined;
56
+ /**
57
+ * This is the URL that should be opened to initiate the SAML login flow
58
+ */
59
+ ssoUrl: string;
60
+ };
61
+
62
62
  /** @internal */
63
63
  export const SamlLoginRequiredResponse$inboundSchema: z.ZodType<
64
64
  SamlLoginRequiredResponse,
@@ -0,0 +1,106 @@
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 StandingAppointment response
13
+ */
14
+ export type StandingAppointment = {
15
+ id?: number | undefined;
16
+ title?: string | null | undefined;
17
+ location?: string | null | undefined;
18
+ attendees?: Array<string> | undefined;
19
+ start?: string | null | undefined;
20
+ end?: string | null | undefined;
21
+ className?: string | null | undefined;
22
+ status?: string | null | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const StandingAppointment$inboundSchema: z.ZodType<
27
+ StandingAppointment,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ id: z.number().int().optional(),
32
+ title: z.nullable(z.string()).optional(),
33
+ location: z.nullable(z.string()).optional(),
34
+ attendees: z.array(z.string()).optional(),
35
+ start: z.nullable(z.string()).optional(),
36
+ end: z.nullable(z.string()).optional(),
37
+ class_name: z.nullable(z.string()).optional(),
38
+ status: z.nullable(z.string()).optional(),
39
+ }).transform((v) => {
40
+ return remap$(v, {
41
+ "class_name": "className",
42
+ });
43
+ });
44
+
45
+ /** @internal */
46
+ export type StandingAppointment$Outbound = {
47
+ id?: number | undefined;
48
+ title?: string | null | undefined;
49
+ location?: string | null | undefined;
50
+ attendees?: Array<string> | undefined;
51
+ start?: string | null | undefined;
52
+ end?: string | null | undefined;
53
+ class_name?: string | null | undefined;
54
+ status?: string | null | undefined;
55
+ };
56
+
57
+ /** @internal */
58
+ export const StandingAppointment$outboundSchema: z.ZodType<
59
+ StandingAppointment$Outbound,
60
+ z.ZodTypeDef,
61
+ StandingAppointment
62
+ > = z.object({
63
+ id: z.number().int().optional(),
64
+ title: z.nullable(z.string()).optional(),
65
+ location: z.nullable(z.string()).optional(),
66
+ attendees: z.array(z.string()).optional(),
67
+ start: z.nullable(z.string()).optional(),
68
+ end: z.nullable(z.string()).optional(),
69
+ className: z.nullable(z.string()).optional(),
70
+ status: z.nullable(z.string()).optional(),
71
+ }).transform((v) => {
72
+ return remap$(v, {
73
+ className: "class_name",
74
+ });
75
+ });
76
+
77
+ /**
78
+ * @internal
79
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
80
+ */
81
+ export namespace StandingAppointment$ {
82
+ /** @deprecated use `StandingAppointment$inboundSchema` instead. */
83
+ export const inboundSchema = StandingAppointment$inboundSchema;
84
+ /** @deprecated use `StandingAppointment$outboundSchema` instead. */
85
+ export const outboundSchema = StandingAppointment$outboundSchema;
86
+ /** @deprecated use `StandingAppointment$Outbound` instead. */
87
+ export type Outbound = StandingAppointment$Outbound;
88
+ }
89
+
90
+ export function standingAppointmentToJSON(
91
+ standingAppointment: StandingAppointment,
92
+ ): string {
93
+ return JSON.stringify(
94
+ StandingAppointment$outboundSchema.parse(standingAppointment),
95
+ );
96
+ }
97
+
98
+ export function standingAppointmentFromJSON(
99
+ jsonString: string,
100
+ ): SafeParseResult<StandingAppointment, SDKValidationError> {
101
+ return safeParse(
102
+ jsonString,
103
+ (x) => StandingAppointment$inboundSchema.parse(JSON.parse(x)),
104
+ `Failed to parse 'StandingAppointment' from JSON`,
105
+ );
106
+ }
@@ -58,6 +58,56 @@ export const UserType = {
58
58
  */
59
59
  export type UserType = ClosedEnum<typeof UserType>;
60
60
 
61
+ /**
62
+ * A `permanent` user token can be used to access any API endpoint as the logged in user. A `one time` token is used to authenticate the user once.
63
+ */
64
+ export const TokenType = {
65
+ Permanent: "permanent",
66
+ OneTime: "one time",
67
+ } as const;
68
+ /**
69
+ * A `permanent` user token can be used to access any API endpoint as the logged in user. A `one time` token is used to authenticate the user once.
70
+ */
71
+ export type TokenType = ClosedEnum<typeof TokenType>;
72
+
73
+ /** @internal */
74
+ export const UserType$inboundSchema: z.ZodNativeEnum<typeof UserType> = z
75
+ .nativeEnum(UserType);
76
+
77
+ /** @internal */
78
+ export const UserType$outboundSchema: z.ZodNativeEnum<typeof UserType> =
79
+ UserType$inboundSchema;
80
+
81
+ /**
82
+ * @internal
83
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
84
+ */
85
+ export namespace UserType$ {
86
+ /** @deprecated use `UserType$inboundSchema` instead. */
87
+ export const inboundSchema = UserType$inboundSchema;
88
+ /** @deprecated use `UserType$outboundSchema` instead. */
89
+ export const outboundSchema = UserType$outboundSchema;
90
+ }
91
+
92
+ /** @internal */
93
+ export const TokenType$inboundSchema: z.ZodNativeEnum<typeof TokenType> = z
94
+ .nativeEnum(TokenType);
95
+
96
+ /** @internal */
97
+ export const TokenType$outboundSchema: z.ZodNativeEnum<typeof TokenType> =
98
+ TokenType$inboundSchema;
99
+
100
+ /**
101
+ * @internal
102
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
103
+ */
104
+ export namespace TokenType$ {
105
+ /** @deprecated use `TokenType$inboundSchema` instead. */
106
+ export const inboundSchema = TokenType$inboundSchema;
107
+ /** @deprecated use `TokenType$outboundSchema` instead. */
108
+ export const outboundSchema = TokenType$outboundSchema;
109
+ }
110
+
61
111
  export type UserUser = {
62
112
  /**
63
113
  * This identifier is only used to reference the underlying user. Based on the `user_type` a more relevant identifier may be used to get relvant information from other endpoints.
@@ -96,18 +146,6 @@ export type UserUser = {
96
146
  location?: UserLocation | null | undefined;
97
147
  };
98
148
 
99
- /**
100
- * A `permanent` user token can be used to access any API endpoint as the logged in user. A `one time` token is used to authenticate the user once.
101
- */
102
- export const TokenType = {
103
- Permanent: "permanent",
104
- OneTime: "one time",
105
- } as const;
106
- /**
107
- * A `permanent` user token can be used to access any API endpoint as the logged in user. A `one time` token is used to authenticate the user once.
108
- */
109
- export type TokenType = ClosedEnum<typeof TokenType>;
110
-
111
149
  export type UserToken = {
112
150
  /**
113
151
  * This token can be passed in authorization headers for this user.
@@ -147,25 +185,6 @@ export type User = {
147
185
  company?: Company | null | undefined;
148
186
  };
149
187
 
150
- /** @internal */
151
- export const UserType$inboundSchema: z.ZodNativeEnum<typeof UserType> = z
152
- .nativeEnum(UserType);
153
-
154
- /** @internal */
155
- export const UserType$outboundSchema: z.ZodNativeEnum<typeof UserType> =
156
- UserType$inboundSchema;
157
-
158
- /**
159
- * @internal
160
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
161
- */
162
- export namespace UserType$ {
163
- /** @deprecated use `UserType$inboundSchema` instead. */
164
- export const inboundSchema = UserType$inboundSchema;
165
- /** @deprecated use `UserType$outboundSchema` instead. */
166
- export const outboundSchema = UserType$outboundSchema;
167
- }
168
-
169
188
  /** @internal */
170
189
  export const UserUser$inboundSchema: z.ZodType<
171
190
  UserUser,
@@ -262,25 +281,6 @@ export function userUserFromJSON(
262
281
  );
263
282
  }
264
283
 
265
- /** @internal */
266
- export const TokenType$inboundSchema: z.ZodNativeEnum<typeof TokenType> = z
267
- .nativeEnum(TokenType);
268
-
269
- /** @internal */
270
- export const TokenType$outboundSchema: z.ZodNativeEnum<typeof TokenType> =
271
- TokenType$inboundSchema;
272
-
273
- /**
274
- * @internal
275
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
276
- */
277
- export namespace TokenType$ {
278
- /** @deprecated use `TokenType$inboundSchema` instead. */
279
- export const inboundSchema = TokenType$inboundSchema;
280
- /** @deprecated use `TokenType$outboundSchema` instead. */
281
- export const outboundSchema = TokenType$outboundSchema;
282
- }
283
-
284
284
  /** @internal */
285
285
  export const UserToken$inboundSchema: z.ZodType<
286
286
  UserToken,
@@ -165,6 +165,25 @@ export const Timezone = {
165
165
  } as const;
166
166
  export type Timezone = ClosedEnum<typeof Timezone>;
167
167
 
168
+ /** @internal */
169
+ export const Timezone$inboundSchema: z.ZodNativeEnum<typeof Timezone> = z
170
+ .nativeEnum(Timezone);
171
+
172
+ /** @internal */
173
+ export const Timezone$outboundSchema: z.ZodNativeEnum<typeof Timezone> =
174
+ Timezone$inboundSchema;
175
+
176
+ /**
177
+ * @internal
178
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
179
+ */
180
+ export namespace Timezone$ {
181
+ /** @deprecated use `Timezone$inboundSchema` instead. */
182
+ export const inboundSchema = Timezone$inboundSchema;
183
+ /** @deprecated use `Timezone$outboundSchema` instead. */
184
+ export const outboundSchema = Timezone$outboundSchema;
185
+ }
186
+
168
187
  /**
169
188
  * Reduced list of attributes of the User Location
170
189
  */
@@ -185,25 +204,6 @@ export type UserLocation = {
185
204
  timezone?: Timezone | null | undefined;
186
205
  };
187
206
 
188
- /** @internal */
189
- export const Timezone$inboundSchema: z.ZodNativeEnum<typeof Timezone> = z
190
- .nativeEnum(Timezone);
191
-
192
- /** @internal */
193
- export const Timezone$outboundSchema: z.ZodNativeEnum<typeof Timezone> =
194
- Timezone$inboundSchema;
195
-
196
- /**
197
- * @internal
198
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
199
- */
200
- export namespace Timezone$ {
201
- /** @deprecated use `Timezone$inboundSchema` instead. */
202
- export const inboundSchema = Timezone$inboundSchema;
203
- /** @deprecated use `Timezone$outboundSchema` instead. */
204
- export const outboundSchema = Timezone$outboundSchema;
205
- }
206
-
207
207
  /** @internal */
208
208
  export const UserLocation$inboundSchema: z.ZodType<
209
209
  UserLocation,
@@ -128,6 +128,13 @@ export type VendorPaymentProfile =
128
128
  | number
129
129
  | number;
130
130
 
131
+ export type CompanySummary = {
132
+ id: string;
133
+ name?: string | undefined;
134
+ };
135
+
136
+ export type VendorCompany = Company | CompanySummary;
137
+
131
138
  export type PaymentResponsibility = {
132
139
  id?: number | null | undefined;
133
140
  companyManagerId?: number | null | undefined;
@@ -199,10 +206,7 @@ export type Vendor = {
199
206
  * A simplified representation of a Department, typically used in list views.
200
207
  */
201
208
  primaryDepartment?: Department | null | undefined;
202
- /**
203
- * A simplified representation of a Company, typically used in list views.
204
- */
205
- company?: Company | null | undefined;
209
+ company?: Company | CompanySummary | null | undefined;
206
210
  /**
207
211
  * Reduced list of attributes of the Subscription record
208
212
  */
@@ -750,6 +754,109 @@ export function vendorPaymentProfileFromJSON(
750
754
  );
751
755
  }
752
756
 
757
+ /** @internal */
758
+ export const CompanySummary$inboundSchema: z.ZodType<
759
+ CompanySummary,
760
+ z.ZodTypeDef,
761
+ unknown
762
+ > = z.object({
763
+ id: z.string(),
764
+ name: z.string().optional(),
765
+ });
766
+
767
+ /** @internal */
768
+ export type CompanySummary$Outbound = {
769
+ id: string;
770
+ name?: string | undefined;
771
+ };
772
+
773
+ /** @internal */
774
+ export const CompanySummary$outboundSchema: z.ZodType<
775
+ CompanySummary$Outbound,
776
+ z.ZodTypeDef,
777
+ CompanySummary
778
+ > = z.object({
779
+ id: z.string(),
780
+ name: z.string().optional(),
781
+ });
782
+
783
+ /**
784
+ * @internal
785
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
786
+ */
787
+ export namespace CompanySummary$ {
788
+ /** @deprecated use `CompanySummary$inboundSchema` instead. */
789
+ export const inboundSchema = CompanySummary$inboundSchema;
790
+ /** @deprecated use `CompanySummary$outboundSchema` instead. */
791
+ export const outboundSchema = CompanySummary$outboundSchema;
792
+ /** @deprecated use `CompanySummary$Outbound` instead. */
793
+ export type Outbound = CompanySummary$Outbound;
794
+ }
795
+
796
+ export function companySummaryToJSON(companySummary: CompanySummary): string {
797
+ return JSON.stringify(CompanySummary$outboundSchema.parse(companySummary));
798
+ }
799
+
800
+ export function companySummaryFromJSON(
801
+ jsonString: string,
802
+ ): SafeParseResult<CompanySummary, SDKValidationError> {
803
+ return safeParse(
804
+ jsonString,
805
+ (x) => CompanySummary$inboundSchema.parse(JSON.parse(x)),
806
+ `Failed to parse 'CompanySummary' from JSON`,
807
+ );
808
+ }
809
+
810
+ /** @internal */
811
+ export const VendorCompany$inboundSchema: z.ZodType<
812
+ VendorCompany,
813
+ z.ZodTypeDef,
814
+ unknown
815
+ > = z.union([
816
+ Company$inboundSchema,
817
+ z.lazy(() => CompanySummary$inboundSchema),
818
+ ]);
819
+
820
+ /** @internal */
821
+ export type VendorCompany$Outbound = Company$Outbound | CompanySummary$Outbound;
822
+
823
+ /** @internal */
824
+ export const VendorCompany$outboundSchema: z.ZodType<
825
+ VendorCompany$Outbound,
826
+ z.ZodTypeDef,
827
+ VendorCompany
828
+ > = z.union([
829
+ Company$outboundSchema,
830
+ z.lazy(() => CompanySummary$outboundSchema),
831
+ ]);
832
+
833
+ /**
834
+ * @internal
835
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
836
+ */
837
+ export namespace VendorCompany$ {
838
+ /** @deprecated use `VendorCompany$inboundSchema` instead. */
839
+ export const inboundSchema = VendorCompany$inboundSchema;
840
+ /** @deprecated use `VendorCompany$outboundSchema` instead. */
841
+ export const outboundSchema = VendorCompany$outboundSchema;
842
+ /** @deprecated use `VendorCompany$Outbound` instead. */
843
+ export type Outbound = VendorCompany$Outbound;
844
+ }
845
+
846
+ export function vendorCompanyToJSON(vendorCompany: VendorCompany): string {
847
+ return JSON.stringify(VendorCompany$outboundSchema.parse(vendorCompany));
848
+ }
849
+
850
+ export function vendorCompanyFromJSON(
851
+ jsonString: string,
852
+ ): SafeParseResult<VendorCompany, SDKValidationError> {
853
+ return safeParse(
854
+ jsonString,
855
+ (x) => VendorCompany$inboundSchema.parse(JSON.parse(x)),
856
+ `Failed to parse 'VendorCompany' from JSON`,
857
+ );
858
+ }
859
+
753
860
  /** @internal */
754
861
  export const PaymentResponsibility$inboundSchema: z.ZodType<
755
862
  PaymentResponsibility,
@@ -1019,7 +1126,12 @@ export const Vendor$inboundSchema: z.ZodType<Vendor, z.ZodTypeDef, unknown> = z
1019
1126
  ).optional(),
1020
1127
  primary_facility: z.nullable(Facility$inboundSchema).optional(),
1021
1128
  primary_department: z.nullable(Department$inboundSchema).optional(),
1022
- company: z.nullable(Company$inboundSchema).optional(),
1129
+ company: z.nullable(
1130
+ z.union([
1131
+ Company$inboundSchema,
1132
+ z.lazy(() => CompanySummary$inboundSchema),
1133
+ ]),
1134
+ ).optional(),
1023
1135
  credentialing_subscription: z.nullable(Subscription$inboundSchema)
1024
1136
  .optional(),
1025
1137
  scrubs_subscription: z.nullable(Subscription$inboundSchema).optional(),
@@ -1087,7 +1199,7 @@ export type Vendor$Outbound = {
1087
1199
  | undefined;
1088
1200
  primary_facility?: Facility$Outbound | null | undefined;
1089
1201
  primary_department?: Department$Outbound | null | undefined;
1090
- company?: Company$Outbound | null | undefined;
1202
+ company?: Company$Outbound | CompanySummary$Outbound | null | undefined;
1091
1203
  credentialing_subscription?: Subscription$Outbound | null | undefined;
1092
1204
  scrubs_subscription?: Subscription$Outbound | null | undefined;
1093
1205
  payment_responsibility?: PaymentResponsibility$Outbound | null | undefined;
@@ -1133,7 +1245,12 @@ export const Vendor$outboundSchema: z.ZodType<
1133
1245
  ).optional(),
1134
1246
  primaryFacility: z.nullable(Facility$outboundSchema).optional(),
1135
1247
  primaryDepartment: z.nullable(Department$outboundSchema).optional(),
1136
- company: z.nullable(Company$outboundSchema).optional(),
1248
+ company: z.nullable(
1249
+ z.union([
1250
+ Company$outboundSchema,
1251
+ z.lazy(() => CompanySummary$outboundSchema),
1252
+ ]),
1253
+ ).optional(),
1137
1254
  credentialingSubscription: z.nullable(Subscription$outboundSchema).optional(),
1138
1255
  scrubsSubscription: z.nullable(Subscription$outboundSchema).optional(),
1139
1256
  paymentResponsibility: z.nullable(