@greensecurity/javascript-sdk 0.30.44 → 0.30.48

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 (789) hide show
  1. package/REACT_QUERY.md +27 -11
  2. package/README.md +10 -4
  3. package/bin/mcp-server.js +2262 -770
  4. package/bin/mcp-server.js.map +80 -65
  5. package/dist/commonjs/__tests__/vendormanagedbycompanies.test.js +1 -1
  6. package/dist/commonjs/__tests__/vendors.test.js +40 -2
  7. package/dist/commonjs/__tests__/vendors.test.js.map +1 -1
  8. package/dist/commonjs/__tests__/webhooks.test.js +45 -1
  9. package/dist/commonjs/__tests__/webhooks.test.js.map +1 -1
  10. package/dist/commonjs/__tests__/zones.test.js +5 -87
  11. package/dist/commonjs/__tests__/zones.test.js.map +1 -1
  12. package/dist/commonjs/funcs/organizationsGetFacility.js +2 -2
  13. package/dist/commonjs/funcs/organizationsGetFacility.js.map +1 -1
  14. package/dist/commonjs/funcs/organizationsListOrSearchFacilities.js +2 -2
  15. package/dist/commonjs/funcs/supportArticlesGetSupportArticle.d.ts +1 -1
  16. package/dist/commonjs/funcs/supportArticlesGetSupportArticle.d.ts.map +1 -1
  17. package/dist/commonjs/funcs/supportArticlesGetSupportArticle.js +2 -2
  18. package/dist/commonjs/funcs/supportArticlesGetSupportArticle.js.map +1 -1
  19. package/dist/commonjs/funcs/supportArticlesListOrSearchSupportArticles.d.ts +2 -1
  20. package/dist/commonjs/funcs/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -1
  21. package/dist/commonjs/funcs/supportArticlesListOrSearchSupportArticles.js +3 -2
  22. package/dist/commonjs/funcs/supportArticlesListOrSearchSupportArticles.js.map +1 -1
  23. package/dist/commonjs/funcs/usersChangePassword.d.ts +1 -1
  24. package/dist/commonjs/funcs/usersChangePassword.d.ts.map +1 -1
  25. package/dist/commonjs/funcs/usersChangePassword.js +1 -1
  26. package/dist/commonjs/funcs/usersChangePassword.js.map +1 -1
  27. package/dist/commonjs/funcs/usersGetCurrentUser.d.ts +1 -1
  28. package/dist/commonjs/funcs/usersGetCurrentUser.d.ts.map +1 -1
  29. package/dist/commonjs/funcs/usersGetCurrentUser.js +2 -2
  30. package/dist/commonjs/funcs/usersGetCurrentUser.js.map +1 -1
  31. package/dist/commonjs/funcs/usersGetUserById.d.ts +1 -1
  32. package/dist/commonjs/funcs/usersGetUserById.d.ts.map +1 -1
  33. package/dist/commonjs/funcs/usersGetUserById.js +2 -2
  34. package/dist/commonjs/funcs/usersGetUserById.js.map +1 -1
  35. package/dist/commonjs/funcs/usersMagiclink.d.ts +1 -1
  36. package/dist/commonjs/funcs/usersMagiclink.d.ts.map +1 -1
  37. package/dist/commonjs/funcs/usersMagiclink.js +2 -2
  38. package/dist/commonjs/funcs/usersMagiclink.js.map +1 -1
  39. package/dist/commonjs/funcs/usersPassword.d.ts +1 -1
  40. package/dist/commonjs/funcs/usersPassword.d.ts.map +1 -1
  41. package/dist/commonjs/funcs/usersPassword.js +2 -2
  42. package/dist/commonjs/funcs/usersPassword.js.map +1 -1
  43. package/dist/commonjs/funcs/usersPasswordResetRequest.d.ts +1 -1
  44. package/dist/commonjs/funcs/usersPasswordResetRequest.d.ts.map +1 -1
  45. package/dist/commonjs/funcs/usersPasswordResetRequest.js +2 -2
  46. package/dist/commonjs/funcs/usersPasswordResetRequest.js.map +1 -1
  47. package/dist/commonjs/funcs/{usersLogsUserIntoTheSystem.d.ts → usersPostAuthenticate.d.ts} +2 -2
  48. package/dist/commonjs/funcs/usersPostAuthenticate.d.ts.map +1 -0
  49. package/dist/commonjs/funcs/{usersLogsUserIntoTheSystem.js → usersPostAuthenticate.js} +7 -7
  50. package/dist/commonjs/funcs/usersPostAuthenticate.js.map +1 -0
  51. package/dist/commonjs/funcs/vendorScansVendorScanOut.d.ts +1 -1
  52. package/dist/commonjs/funcs/vendorScansVendorScanOut.d.ts.map +1 -1
  53. package/dist/commonjs/funcs/vendorScansVendorScanOut.js +1 -1
  54. package/dist/commonjs/funcs/vendorScansVendorScanOut.js.map +1 -1
  55. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts +1 -1
  56. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  57. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js +2 -1
  58. package/dist/commonjs/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
  59. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts +1 -1
  60. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  61. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js +2 -1
  62. package/dist/commonjs/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  63. package/dist/commonjs/funcs/vendorsExpediteTimeRemaining.d.ts +1 -1
  64. package/dist/commonjs/funcs/vendorsExpediteTimeRemaining.d.ts.map +1 -1
  65. package/dist/commonjs/funcs/vendorsExpediteTimeRemaining.js +2 -2
  66. package/dist/commonjs/funcs/vendorsExpediteTimeRemaining.js.map +1 -1
  67. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts +34 -0
  68. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -0
  69. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js +145 -0
  70. package/dist/commonjs/funcs/vendorsGetVendorCredentialDetails.js.map +1 -0
  71. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts +1 -1
  72. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
  73. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js +2 -2
  74. package/dist/commonjs/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
  75. package/dist/commonjs/funcs/vendorsGetVendorsDetails.js +2 -2
  76. package/dist/commonjs/funcs/vendorsGetVendorsDetails.js.map +1 -1
  77. package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.js +2 -2
  78. package/dist/commonjs/funcs/vendorsListVendorAdditionalFacilityFields.js.map +1 -1
  79. package/dist/commonjs/funcs/vendorsListVendorCredentials.d.ts +2 -1
  80. package/dist/commonjs/funcs/vendorsListVendorCredentials.d.ts.map +1 -1
  81. package/dist/commonjs/funcs/vendorsListVendorCredentials.js +3 -2
  82. package/dist/commonjs/funcs/vendorsListVendorCredentials.js.map +1 -1
  83. package/dist/commonjs/funcs/vendorsListVendorCredits.js +2 -2
  84. package/dist/commonjs/funcs/vendorsListVendorCredits.js.map +1 -1
  85. package/dist/commonjs/funcs/vendorsListVendorFacilityStatuses.js +2 -2
  86. package/dist/commonjs/funcs/vendorsListVendorFacilityStatuses.js.map +1 -1
  87. package/dist/commonjs/funcs/vendorsListVendorInvoices.d.ts +1 -1
  88. package/dist/commonjs/funcs/vendorsListVendorInvoices.d.ts.map +1 -1
  89. package/dist/commonjs/funcs/vendorsListVendorInvoices.js +2 -2
  90. package/dist/commonjs/funcs/vendorsListVendorInvoices.js.map +1 -1
  91. package/dist/commonjs/funcs/vendorsListVendorManagedByCompanies.js +2 -2
  92. package/dist/commonjs/funcs/vendorsListVendorManagedByCompanies.js.map +1 -1
  93. package/dist/commonjs/funcs/vendorsListVendorScrubDetails.d.ts +1 -1
  94. package/dist/commonjs/funcs/vendorsListVendorScrubDetails.d.ts.map +1 -1
  95. package/dist/commonjs/funcs/vendorsListVendorScrubDetails.js +2 -2
  96. package/dist/commonjs/funcs/vendorsListVendorScrubDetails.js.map +1 -1
  97. package/dist/commonjs/funcs/vendorsListVendorScrubPurchases.d.ts +1 -1
  98. package/dist/commonjs/funcs/vendorsListVendorScrubPurchases.d.ts.map +1 -1
  99. package/dist/commonjs/funcs/vendorsListVendorScrubPurchases.js +2 -2
  100. package/dist/commonjs/funcs/vendorsListVendorScrubPurchases.js.map +1 -1
  101. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts +1 -1
  102. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  103. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js +2 -1
  104. package/dist/commonjs/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  105. package/dist/commonjs/funcs/webhooksGetWebhookEndpoint.js +2 -2
  106. package/dist/commonjs/funcs/webhooksGetWebhookEndpoint.js.map +1 -1
  107. package/dist/commonjs/funcs/webhooksListAllWebhookEndpoints.d.ts +1 -1
  108. package/dist/commonjs/funcs/webhooksListAllWebhookEndpoints.d.ts.map +1 -1
  109. package/dist/commonjs/funcs/webhooksListAllWebhookEndpoints.js +1 -1
  110. package/dist/commonjs/funcs/webhooksListAllWebhookEndpoints.js.map +1 -1
  111. package/dist/commonjs/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts +18 -0
  112. package/dist/commonjs/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts.map +1 -0
  113. package/dist/commonjs/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js +123 -0
  114. package/dist/commonjs/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js.map +1 -0
  115. package/dist/commonjs/funcs/zonesSecurityZoneCheckin.d.ts +2 -3
  116. package/dist/commonjs/funcs/zonesSecurityZoneCheckin.d.ts.map +1 -1
  117. package/dist/commonjs/funcs/zonesSecurityZoneCheckin.js +2 -3
  118. package/dist/commonjs/funcs/zonesSecurityZoneCheckin.js.map +1 -1
  119. package/dist/commonjs/lib/config.d.ts +3 -3
  120. package/dist/commonjs/lib/config.js +3 -3
  121. package/dist/commonjs/lib/config.js.map +1 -1
  122. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  123. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  124. package/dist/commonjs/mcp-server/server.js +7 -3
  125. package/dist/commonjs/mcp-server/server.js.map +1 -1
  126. package/dist/commonjs/mcp-server/tools/usersPostAuthenticate.d.ts +8 -0
  127. package/dist/commonjs/mcp-server/tools/usersPostAuthenticate.d.ts.map +1 -0
  128. package/dist/commonjs/mcp-server/tools/{usersLogsUserIntoTheSystem.js → usersPostAuthenticate.js} +7 -7
  129. package/dist/commonjs/mcp-server/tools/usersPostAuthenticate.js.map +1 -0
  130. package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialDetails.d.ts +8 -0
  131. package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialDetails.d.ts.map +1 -0
  132. package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialDetails.js +81 -0
  133. package/dist/commonjs/mcp-server/tools/vendorsGetVendorCredentialDetails.js.map +1 -0
  134. package/dist/commonjs/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts +8 -0
  135. package/dist/commonjs/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts.map +1 -0
  136. package/dist/commonjs/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js +64 -0
  137. package/dist/commonjs/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js.map +1 -0
  138. package/dist/commonjs/mcp-server/tools/zonesSecurityZoneCheckin.js +1 -1
  139. package/dist/commonjs/mcp-server/tools/zonesSecurityZoneCheckin.js.map +1 -1
  140. package/dist/commonjs/models/components/backgroundcheckresult.d.ts +186 -0
  141. package/dist/commonjs/models/components/backgroundcheckresult.d.ts.map +1 -0
  142. package/dist/commonjs/models/components/backgroundcheckresult.js +241 -0
  143. package/dist/commonjs/models/components/backgroundcheckresult.js.map +1 -0
  144. package/dist/commonjs/models/components/credential.d.ts +156 -0
  145. package/dist/commonjs/models/components/credential.d.ts.map +1 -0
  146. package/dist/commonjs/models/components/credential.js +186 -0
  147. package/dist/commonjs/models/components/credential.js.map +1 -0
  148. package/dist/commonjs/models/components/credentialdocument.d.ts +95 -0
  149. package/dist/commonjs/models/components/credentialdocument.d.ts.map +1 -0
  150. package/dist/commonjs/models/components/credentialdocument.js +152 -0
  151. package/dist/commonjs/models/components/credentialdocument.js.map +1 -0
  152. package/dist/commonjs/models/components/datarequest.d.ts +138 -0
  153. package/dist/commonjs/models/components/datarequest.d.ts.map +1 -0
  154. package/dist/commonjs/models/components/datarequest.js +203 -0
  155. package/dist/commonjs/models/components/datarequest.js.map +1 -0
  156. package/dist/commonjs/models/components/expand.d.ts +45 -0
  157. package/dist/commonjs/models/components/expand.d.ts.map +1 -1
  158. package/dist/commonjs/models/components/expand.js +15 -0
  159. package/dist/commonjs/models/components/expand.js.map +1 -1
  160. package/dist/commonjs/models/components/facility.d.ts +10 -10
  161. package/dist/commonjs/models/components/facility.d.ts.map +1 -1
  162. package/dist/commonjs/models/components/facility.js +10 -10
  163. package/dist/commonjs/models/components/facility.js.map +1 -1
  164. package/dist/commonjs/models/components/index.d.ts +9 -0
  165. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  166. package/dist/commonjs/models/components/index.js +9 -0
  167. package/dist/commonjs/models/components/index.js.map +1 -1
  168. package/dist/commonjs/models/components/invoice.d.ts +2 -2
  169. package/dist/commonjs/models/components/invoice.js +2 -2
  170. package/dist/commonjs/models/components/invoiceitem.d.ts +52 -4
  171. package/dist/commonjs/models/components/invoiceitem.d.ts.map +1 -1
  172. package/dist/commonjs/models/components/invoiceitem.js +60 -9
  173. package/dist/commonjs/models/components/invoiceitem.js.map +1 -1
  174. package/dist/commonjs/models/components/product.d.ts +36 -0
  175. package/dist/commonjs/models/components/product.d.ts.map +1 -0
  176. package/dist/commonjs/models/components/product.js +73 -0
  177. package/dist/commonjs/models/components/product.js.map +1 -0
  178. package/dist/commonjs/models/components/screeningresponse.d.ts +52 -0
  179. package/dist/commonjs/models/components/screeningresponse.d.ts.map +1 -0
  180. package/dist/commonjs/models/components/screeningresponse.js +116 -0
  181. package/dist/commonjs/models/components/screeningresponse.js.map +1 -0
  182. package/dist/commonjs/models/components/user.d.ts +2 -2
  183. package/dist/commonjs/models/components/user.d.ts.map +1 -1
  184. package/dist/commonjs/models/components/user.js +2 -2
  185. package/dist/commonjs/models/components/user.js.map +1 -1
  186. package/dist/commonjs/models/components/vendor.d.ts +48 -6
  187. package/dist/commonjs/models/components/vendor.d.ts.map +1 -1
  188. package/dist/commonjs/models/components/vendor.js +69 -7
  189. package/dist/commonjs/models/components/vendor.js.map +1 -1
  190. package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts +148 -0
  191. package/dist/commonjs/models/components/vendorcredentialdatarequest.d.ts.map +1 -0
  192. package/dist/commonjs/models/components/vendorcredentialdatarequest.js +228 -0
  193. package/dist/commonjs/models/components/vendorcredentialdatarequest.js.map +1 -0
  194. package/dist/commonjs/models/components/vendorcredentialfile.d.ts +125 -0
  195. package/dist/commonjs/models/components/vendorcredentialfile.d.ts.map +1 -0
  196. package/dist/commonjs/models/components/vendorcredentialfile.js +211 -0
  197. package/dist/commonjs/models/components/vendorcredentialfile.js.map +1 -0
  198. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts +172 -0
  199. package/dist/commonjs/models/components/vendorcredentialsummary.d.ts.map +1 -1
  200. package/dist/commonjs/models/components/vendorcredentialsummary.js +238 -1
  201. package/dist/commonjs/models/components/vendorcredentialsummary.js.map +1 -1
  202. package/dist/commonjs/models/components/vendorscan.d.ts +80 -0
  203. package/dist/commonjs/models/components/vendorscan.d.ts.map +1 -0
  204. package/dist/commonjs/models/components/vendorscan.js +144 -0
  205. package/dist/commonjs/models/components/vendorscan.js.map +1 -0
  206. package/dist/commonjs/models/operations/addvendormanagedbycompany.d.ts +13 -13
  207. package/dist/commonjs/models/operations/addvendormanagedbycompany.d.ts.map +1 -1
  208. package/dist/commonjs/models/operations/addvendormanagedbycompany.js +16 -16
  209. package/dist/commonjs/models/operations/addvendormanagedbycompany.js.map +1 -1
  210. package/dist/commonjs/models/operations/changepassword.d.ts +13 -13
  211. package/dist/commonjs/models/operations/changepassword.d.ts.map +1 -1
  212. package/dist/commonjs/models/operations/changepassword.js +16 -16
  213. package/dist/commonjs/models/operations/changepassword.js.map +1 -1
  214. package/dist/commonjs/models/operations/deletevendormanagedbycompany.d.ts +13 -13
  215. package/dist/commonjs/models/operations/deletevendormanagedbycompany.d.ts.map +1 -1
  216. package/dist/commonjs/models/operations/deletevendormanagedbycompany.js +18 -16
  217. package/dist/commonjs/models/operations/deletevendormanagedbycompany.js.map +1 -1
  218. package/dist/commonjs/models/operations/expeditetimeremaining.d.ts +13 -13
  219. package/dist/commonjs/models/operations/expeditetimeremaining.d.ts.map +1 -1
  220. package/dist/commonjs/models/operations/expeditetimeremaining.js +16 -16
  221. package/dist/commonjs/models/operations/expeditetimeremaining.js.map +1 -1
  222. package/dist/commonjs/models/operations/getvendorcredentialdetails.d.ts +74 -0
  223. package/dist/commonjs/models/operations/getvendorcredentialdetails.d.ts.map +1 -0
  224. package/dist/commonjs/models/operations/getvendorcredentialdetails.js +118 -0
  225. package/dist/commonjs/models/operations/getvendorcredentialdetails.js.map +1 -0
  226. package/dist/commonjs/models/operations/index.d.ts +3 -1
  227. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  228. package/dist/commonjs/models/operations/index.js +3 -1
  229. package/dist/commonjs/models/operations/index.js.map +1 -1
  230. package/dist/commonjs/models/operations/listallwebhookendpoints.d.ts +13 -13
  231. package/dist/commonjs/models/operations/listallwebhookendpoints.d.ts.map +1 -1
  232. package/dist/commonjs/models/operations/listallwebhookendpoints.js +16 -16
  233. package/dist/commonjs/models/operations/listallwebhookendpoints.js.map +1 -1
  234. package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.d.ts +15 -15
  235. package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.d.ts.map +1 -1
  236. package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.js +20 -18
  237. package/dist/commonjs/models/operations/listvendoradditionalfacilityfields.js.map +1 -1
  238. package/dist/commonjs/models/operations/listvendorcredentials.d.ts +25 -25
  239. package/dist/commonjs/models/operations/listvendorcredentials.d.ts.map +1 -1
  240. package/dist/commonjs/models/operations/listvendorcredentials.js +26 -26
  241. package/dist/commonjs/models/operations/listvendorcredentials.js.map +1 -1
  242. package/dist/commonjs/models/operations/listvendorcredits.d.ts +15 -15
  243. package/dist/commonjs/models/operations/listvendorcredits.d.ts.map +1 -1
  244. package/dist/commonjs/models/operations/listvendorcredits.js +18 -18
  245. package/dist/commonjs/models/operations/listvendorcredits.js.map +1 -1
  246. package/dist/commonjs/models/operations/listvendorfacilitystatuses.d.ts +15 -15
  247. package/dist/commonjs/models/operations/listvendorfacilitystatuses.d.ts.map +1 -1
  248. package/dist/commonjs/models/operations/listvendorfacilitystatuses.js +19 -18
  249. package/dist/commonjs/models/operations/listvendorfacilitystatuses.js.map +1 -1
  250. package/dist/commonjs/models/operations/listvendorinvoices.d.ts +17 -17
  251. package/dist/commonjs/models/operations/listvendorinvoices.d.ts.map +1 -1
  252. package/dist/commonjs/models/operations/listvendorinvoices.js +20 -20
  253. package/dist/commonjs/models/operations/listvendorinvoices.js.map +1 -1
  254. package/dist/commonjs/models/operations/listvendormanagedbycompanies.d.ts +15 -15
  255. package/dist/commonjs/models/operations/listvendormanagedbycompanies.d.ts.map +1 -1
  256. package/dist/commonjs/models/operations/listvendormanagedbycompanies.js +20 -18
  257. package/dist/commonjs/models/operations/listvendormanagedbycompanies.js.map +1 -1
  258. package/dist/commonjs/models/operations/listvendorscrubpackages.d.ts +2 -2
  259. package/dist/commonjs/models/operations/listvendorscrubpackages.d.ts.map +1 -1
  260. package/dist/commonjs/models/operations/listvendorscrubpackages.js +2 -2
  261. package/dist/commonjs/models/operations/listvendorscrubpackages.js.map +1 -1
  262. package/dist/commonjs/models/operations/listvendorscrubpurchases.d.ts +15 -15
  263. package/dist/commonjs/models/operations/listvendorscrubpurchases.d.ts.map +1 -1
  264. package/dist/commonjs/models/operations/listvendorscrubpurchases.js +18 -18
  265. package/dist/commonjs/models/operations/listvendorscrubpurchases.js.map +1 -1
  266. package/dist/commonjs/models/operations/postauthenticate.d.ts +98 -0
  267. package/dist/commonjs/models/operations/postauthenticate.d.ts.map +1 -0
  268. package/dist/commonjs/models/operations/{logsuserintothesystem.js → postauthenticate.js} +47 -47
  269. package/dist/commonjs/models/operations/postauthenticate.js.map +1 -0
  270. package/dist/commonjs/models/operations/securityzonecheckin.d.ts +190 -4
  271. package/dist/commonjs/models/operations/securityzonecheckin.d.ts.map +1 -1
  272. package/dist/commonjs/models/operations/securityzonecheckin.js +244 -1
  273. package/dist/commonjs/models/operations/securityzonecheckin.js.map +1 -1
  274. package/dist/commonjs/models/operations/updatesthewebhookendpointwiththegivenid.d.ts +35 -0
  275. package/dist/commonjs/models/operations/updatesthewebhookendpointwiththegivenid.d.ts.map +1 -0
  276. package/dist/commonjs/models/operations/updatesthewebhookendpointwiththegivenid.js +81 -0
  277. package/dist/commonjs/models/operations/updatesthewebhookendpointwiththegivenid.js.map +1 -0
  278. package/dist/commonjs/models/operations/updatevendormanagedbycompany.d.ts +13 -13
  279. package/dist/commonjs/models/operations/updatevendormanagedbycompany.d.ts.map +1 -1
  280. package/dist/commonjs/models/operations/updatevendormanagedbycompany.js +18 -16
  281. package/dist/commonjs/models/operations/updatevendormanagedbycompany.js.map +1 -1
  282. package/dist/commonjs/models/operations/vendorscanout.d.ts +13 -13
  283. package/dist/commonjs/models/operations/vendorscanout.d.ts.map +1 -1
  284. package/dist/commonjs/models/operations/vendorscanout.js +16 -16
  285. package/dist/commonjs/models/operations/vendorscanout.js.map +1 -1
  286. package/dist/commonjs/react-query/index.d.ts +3 -1
  287. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  288. package/dist/commonjs/react-query/index.js +3 -1
  289. package/dist/commonjs/react-query/index.js.map +1 -1
  290. package/dist/commonjs/react-query/usersChangePassword.d.ts +1 -1
  291. package/dist/commonjs/react-query/usersChangePassword.d.ts.map +1 -1
  292. package/dist/{esm/react-query/usersLogsUserIntoTheSystem.d.ts → commonjs/react-query/usersPostAuthenticate.d.ts} +8 -8
  293. package/dist/commonjs/react-query/usersPostAuthenticate.d.ts.map +1 -0
  294. package/dist/commonjs/react-query/{usersLogsUserIntoTheSystem.js → usersPostAuthenticate.js} +13 -13
  295. package/dist/commonjs/react-query/usersPostAuthenticate.js.map +1 -0
  296. package/dist/commonjs/react-query/vendorScansVendorScanOut.d.ts +1 -1
  297. package/dist/commonjs/react-query/vendorScansVendorScanOut.d.ts.map +1 -1
  298. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts +1 -1
  299. package/dist/commonjs/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  300. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts +1 -1
  301. package/dist/commonjs/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  302. package/dist/commonjs/react-query/vendorsExpediteTimeRemaining.d.ts +1 -1
  303. package/dist/commonjs/react-query/vendorsExpediteTimeRemaining.d.ts.map +1 -1
  304. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts +79 -0
  305. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -0
  306. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js +132 -0
  307. package/dist/commonjs/react-query/vendorsGetVendorCredentialDetails.js.map +1 -0
  308. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts +1 -1
  309. package/dist/commonjs/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  310. package/dist/commonjs/react-query/webhooksListAllWebhookEndpoints.d.ts +1 -1
  311. package/dist/commonjs/react-query/webhooksListAllWebhookEndpoints.d.ts.map +1 -1
  312. package/dist/commonjs/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts +24 -0
  313. package/dist/commonjs/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts.map +1 -0
  314. package/dist/commonjs/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js +51 -0
  315. package/dist/commonjs/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js.map +1 -0
  316. package/dist/commonjs/react-query/zonesSecurityZoneCheckin.d.ts +2 -3
  317. package/dist/commonjs/react-query/zonesSecurityZoneCheckin.d.ts.map +1 -1
  318. package/dist/commonjs/react-query/zonesSecurityZoneCheckin.js +1 -1
  319. package/dist/commonjs/react-query/zonesSecurityZoneCheckin.js.map +1 -1
  320. package/dist/commonjs/sdk/users.d.ts +2 -2
  321. package/dist/commonjs/sdk/users.d.ts.map +1 -1
  322. package/dist/commonjs/sdk/users.js +3 -3
  323. package/dist/commonjs/sdk/users.js.map +1 -1
  324. package/dist/commonjs/sdk/vendors.d.ts +28 -4
  325. package/dist/commonjs/sdk/vendors.d.ts.map +1 -1
  326. package/dist/commonjs/sdk/vendors.js +27 -0
  327. package/dist/commonjs/sdk/vendors.js.map +1 -1
  328. package/dist/commonjs/sdk/vendorscans.d.ts +1 -1
  329. package/dist/commonjs/sdk/vendorscans.d.ts.map +1 -1
  330. package/dist/commonjs/sdk/webhooks.d.ts +8 -1
  331. package/dist/commonjs/sdk/webhooks.d.ts.map +1 -1
  332. package/dist/commonjs/sdk/webhooks.js +10 -0
  333. package/dist/commonjs/sdk/webhooks.js.map +1 -1
  334. package/dist/commonjs/sdk/zones.d.ts +2 -3
  335. package/dist/commonjs/sdk/zones.d.ts.map +1 -1
  336. package/dist/commonjs/sdk/zones.js +1 -1
  337. package/dist/commonjs/sdk/zones.js.map +1 -1
  338. package/dist/esm/__tests__/vendormanagedbycompanies.test.js +1 -1
  339. package/dist/esm/__tests__/vendors.test.js +40 -2
  340. package/dist/esm/__tests__/vendors.test.js.map +1 -1
  341. package/dist/esm/__tests__/webhooks.test.js +45 -1
  342. package/dist/esm/__tests__/webhooks.test.js.map +1 -1
  343. package/dist/esm/__tests__/zones.test.js +5 -87
  344. package/dist/esm/__tests__/zones.test.js.map +1 -1
  345. package/dist/esm/funcs/organizationsGetFacility.js +2 -2
  346. package/dist/esm/funcs/organizationsGetFacility.js.map +1 -1
  347. package/dist/esm/funcs/organizationsListOrSearchFacilities.js +2 -2
  348. package/dist/esm/funcs/supportArticlesGetSupportArticle.d.ts +1 -1
  349. package/dist/esm/funcs/supportArticlesGetSupportArticle.d.ts.map +1 -1
  350. package/dist/esm/funcs/supportArticlesGetSupportArticle.js +2 -2
  351. package/dist/esm/funcs/supportArticlesGetSupportArticle.js.map +1 -1
  352. package/dist/esm/funcs/supportArticlesListOrSearchSupportArticles.d.ts +2 -1
  353. package/dist/esm/funcs/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -1
  354. package/dist/esm/funcs/supportArticlesListOrSearchSupportArticles.js +3 -2
  355. package/dist/esm/funcs/supportArticlesListOrSearchSupportArticles.js.map +1 -1
  356. package/dist/esm/funcs/usersChangePassword.d.ts +1 -1
  357. package/dist/esm/funcs/usersChangePassword.d.ts.map +1 -1
  358. package/dist/esm/funcs/usersChangePassword.js +1 -1
  359. package/dist/esm/funcs/usersChangePassword.js.map +1 -1
  360. package/dist/esm/funcs/usersGetCurrentUser.d.ts +1 -1
  361. package/dist/esm/funcs/usersGetCurrentUser.d.ts.map +1 -1
  362. package/dist/esm/funcs/usersGetCurrentUser.js +2 -2
  363. package/dist/esm/funcs/usersGetCurrentUser.js.map +1 -1
  364. package/dist/esm/funcs/usersGetUserById.d.ts +1 -1
  365. package/dist/esm/funcs/usersGetUserById.d.ts.map +1 -1
  366. package/dist/esm/funcs/usersGetUserById.js +2 -2
  367. package/dist/esm/funcs/usersGetUserById.js.map +1 -1
  368. package/dist/esm/funcs/usersMagiclink.d.ts +1 -1
  369. package/dist/esm/funcs/usersMagiclink.d.ts.map +1 -1
  370. package/dist/esm/funcs/usersMagiclink.js +2 -2
  371. package/dist/esm/funcs/usersMagiclink.js.map +1 -1
  372. package/dist/esm/funcs/usersPassword.d.ts +1 -1
  373. package/dist/esm/funcs/usersPassword.d.ts.map +1 -1
  374. package/dist/esm/funcs/usersPassword.js +2 -2
  375. package/dist/esm/funcs/usersPassword.js.map +1 -1
  376. package/dist/esm/funcs/usersPasswordResetRequest.d.ts +1 -1
  377. package/dist/esm/funcs/usersPasswordResetRequest.d.ts.map +1 -1
  378. package/dist/esm/funcs/usersPasswordResetRequest.js +2 -2
  379. package/dist/esm/funcs/usersPasswordResetRequest.js.map +1 -1
  380. package/dist/esm/funcs/{usersLogsUserIntoTheSystem.d.ts → usersPostAuthenticate.d.ts} +2 -2
  381. package/dist/esm/funcs/usersPostAuthenticate.d.ts.map +1 -0
  382. package/dist/esm/funcs/{usersLogsUserIntoTheSystem.js → usersPostAuthenticate.js} +6 -6
  383. package/dist/esm/funcs/usersPostAuthenticate.js.map +1 -0
  384. package/dist/esm/funcs/vendorScansVendorScanOut.d.ts +1 -1
  385. package/dist/esm/funcs/vendorScansVendorScanOut.d.ts.map +1 -1
  386. package/dist/esm/funcs/vendorScansVendorScanOut.js +1 -1
  387. package/dist/esm/funcs/vendorScansVendorScanOut.js.map +1 -1
  388. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts +1 -1
  389. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  390. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js +2 -1
  391. package/dist/esm/funcs/vendorsAddVendorManagedByCompany.js.map +1 -1
  392. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts +1 -1
  393. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  394. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js +2 -1
  395. package/dist/esm/funcs/vendorsDeleteVendorManagedByCompany.js.map +1 -1
  396. package/dist/esm/funcs/vendorsExpediteTimeRemaining.d.ts +1 -1
  397. package/dist/esm/funcs/vendorsExpediteTimeRemaining.d.ts.map +1 -1
  398. package/dist/esm/funcs/vendorsExpediteTimeRemaining.js +2 -2
  399. package/dist/esm/funcs/vendorsExpediteTimeRemaining.js.map +1 -1
  400. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts +34 -0
  401. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.d.ts.map +1 -0
  402. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js +109 -0
  403. package/dist/esm/funcs/vendorsGetVendorCredentialDetails.js.map +1 -0
  404. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts +1 -1
  405. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.d.ts.map +1 -1
  406. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js +2 -2
  407. package/dist/esm/funcs/vendorsGetVendorInvoiceDetails.js.map +1 -1
  408. package/dist/esm/funcs/vendorsGetVendorsDetails.js +2 -2
  409. package/dist/esm/funcs/vendorsGetVendorsDetails.js.map +1 -1
  410. package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.js +2 -2
  411. package/dist/esm/funcs/vendorsListVendorAdditionalFacilityFields.js.map +1 -1
  412. package/dist/esm/funcs/vendorsListVendorCredentials.d.ts +2 -1
  413. package/dist/esm/funcs/vendorsListVendorCredentials.d.ts.map +1 -1
  414. package/dist/esm/funcs/vendorsListVendorCredentials.js +3 -2
  415. package/dist/esm/funcs/vendorsListVendorCredentials.js.map +1 -1
  416. package/dist/esm/funcs/vendorsListVendorCredits.js +2 -2
  417. package/dist/esm/funcs/vendorsListVendorCredits.js.map +1 -1
  418. package/dist/esm/funcs/vendorsListVendorFacilityStatuses.js +2 -2
  419. package/dist/esm/funcs/vendorsListVendorFacilityStatuses.js.map +1 -1
  420. package/dist/esm/funcs/vendorsListVendorInvoices.d.ts +1 -1
  421. package/dist/esm/funcs/vendorsListVendorInvoices.d.ts.map +1 -1
  422. package/dist/esm/funcs/vendorsListVendorInvoices.js +2 -2
  423. package/dist/esm/funcs/vendorsListVendorInvoices.js.map +1 -1
  424. package/dist/esm/funcs/vendorsListVendorManagedByCompanies.js +2 -2
  425. package/dist/esm/funcs/vendorsListVendorManagedByCompanies.js.map +1 -1
  426. package/dist/esm/funcs/vendorsListVendorScrubDetails.d.ts +1 -1
  427. package/dist/esm/funcs/vendorsListVendorScrubDetails.d.ts.map +1 -1
  428. package/dist/esm/funcs/vendorsListVendorScrubDetails.js +2 -2
  429. package/dist/esm/funcs/vendorsListVendorScrubDetails.js.map +1 -1
  430. package/dist/esm/funcs/vendorsListVendorScrubPurchases.d.ts +1 -1
  431. package/dist/esm/funcs/vendorsListVendorScrubPurchases.d.ts.map +1 -1
  432. package/dist/esm/funcs/vendorsListVendorScrubPurchases.js +2 -2
  433. package/dist/esm/funcs/vendorsListVendorScrubPurchases.js.map +1 -1
  434. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts +1 -1
  435. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  436. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js +2 -1
  437. package/dist/esm/funcs/vendorsUpdateVendorManagedByCompany.js.map +1 -1
  438. package/dist/esm/funcs/webhooksGetWebhookEndpoint.js +2 -2
  439. package/dist/esm/funcs/webhooksGetWebhookEndpoint.js.map +1 -1
  440. package/dist/esm/funcs/webhooksListAllWebhookEndpoints.d.ts +1 -1
  441. package/dist/esm/funcs/webhooksListAllWebhookEndpoints.d.ts.map +1 -1
  442. package/dist/esm/funcs/webhooksListAllWebhookEndpoints.js +1 -1
  443. package/dist/esm/funcs/webhooksListAllWebhookEndpoints.js.map +1 -1
  444. package/dist/esm/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts +18 -0
  445. package/dist/esm/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts.map +1 -0
  446. package/dist/esm/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js +87 -0
  447. package/dist/esm/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js.map +1 -0
  448. package/dist/esm/funcs/zonesSecurityZoneCheckin.d.ts +2 -3
  449. package/dist/esm/funcs/zonesSecurityZoneCheckin.d.ts.map +1 -1
  450. package/dist/esm/funcs/zonesSecurityZoneCheckin.js +2 -3
  451. package/dist/esm/funcs/zonesSecurityZoneCheckin.js.map +1 -1
  452. package/dist/esm/lib/config.d.ts +3 -3
  453. package/dist/esm/lib/config.js +3 -3
  454. package/dist/esm/lib/config.js.map +1 -1
  455. package/dist/esm/mcp-server/mcp-server.js +1 -1
  456. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  457. package/dist/esm/mcp-server/server.js +7 -3
  458. package/dist/esm/mcp-server/server.js.map +1 -1
  459. package/dist/esm/mcp-server/tools/usersPostAuthenticate.d.ts +8 -0
  460. package/dist/esm/mcp-server/tools/usersPostAuthenticate.d.ts.map +1 -0
  461. package/dist/esm/mcp-server/tools/{usersLogsUserIntoTheSystem.js → usersPostAuthenticate.js} +6 -6
  462. package/dist/esm/mcp-server/tools/usersPostAuthenticate.js.map +1 -0
  463. package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialDetails.d.ts +8 -0
  464. package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialDetails.d.ts.map +1 -0
  465. package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialDetails.js +45 -0
  466. package/dist/esm/mcp-server/tools/vendorsGetVendorCredentialDetails.js.map +1 -0
  467. package/dist/esm/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts +8 -0
  468. package/dist/esm/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts.map +1 -0
  469. package/dist/esm/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js +28 -0
  470. package/dist/esm/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js.map +1 -0
  471. package/dist/esm/mcp-server/tools/zonesSecurityZoneCheckin.js +1 -1
  472. package/dist/esm/mcp-server/tools/zonesSecurityZoneCheckin.js.map +1 -1
  473. package/dist/esm/models/components/backgroundcheckresult.d.ts +186 -0
  474. package/dist/esm/models/components/backgroundcheckresult.d.ts.map +1 -0
  475. package/dist/esm/models/components/backgroundcheckresult.js +197 -0
  476. package/dist/esm/models/components/backgroundcheckresult.js.map +1 -0
  477. package/dist/esm/models/components/credential.d.ts +156 -0
  478. package/dist/esm/models/components/credential.d.ts.map +1 -0
  479. package/dist/esm/models/components/credential.js +148 -0
  480. package/dist/esm/models/components/credential.js.map +1 -0
  481. package/dist/esm/models/components/credentialdocument.d.ts +95 -0
  482. package/dist/esm/models/components/credentialdocument.d.ts.map +1 -0
  483. package/dist/esm/models/components/credentialdocument.js +110 -0
  484. package/dist/esm/models/components/credentialdocument.js.map +1 -0
  485. package/dist/esm/models/components/datarequest.d.ts +138 -0
  486. package/dist/esm/models/components/datarequest.d.ts.map +1 -0
  487. package/dist/esm/models/components/datarequest.js +161 -0
  488. package/dist/esm/models/components/datarequest.js.map +1 -0
  489. package/dist/esm/models/components/expand.d.ts +45 -0
  490. package/dist/esm/models/components/expand.d.ts.map +1 -1
  491. package/dist/esm/models/components/expand.js +15 -0
  492. package/dist/esm/models/components/expand.js.map +1 -1
  493. package/dist/esm/models/components/facility.d.ts +10 -10
  494. package/dist/esm/models/components/facility.d.ts.map +1 -1
  495. package/dist/esm/models/components/facility.js +10 -10
  496. package/dist/esm/models/components/facility.js.map +1 -1
  497. package/dist/esm/models/components/index.d.ts +9 -0
  498. package/dist/esm/models/components/index.d.ts.map +1 -1
  499. package/dist/esm/models/components/index.js +9 -0
  500. package/dist/esm/models/components/index.js.map +1 -1
  501. package/dist/esm/models/components/invoice.d.ts +2 -2
  502. package/dist/esm/models/components/invoice.js +2 -2
  503. package/dist/esm/models/components/invoiceitem.d.ts +52 -4
  504. package/dist/esm/models/components/invoiceitem.d.ts.map +1 -1
  505. package/dist/esm/models/components/invoiceitem.js +55 -8
  506. package/dist/esm/models/components/invoiceitem.js.map +1 -1
  507. package/dist/esm/models/components/product.d.ts +36 -0
  508. package/dist/esm/models/components/product.d.ts.map +1 -0
  509. package/dist/esm/models/components/product.js +35 -0
  510. package/dist/esm/models/components/product.js.map +1 -0
  511. package/dist/esm/models/components/screeningresponse.d.ts +52 -0
  512. package/dist/esm/models/components/screeningresponse.d.ts.map +1 -0
  513. package/dist/esm/models/components/screeningresponse.js +78 -0
  514. package/dist/esm/models/components/screeningresponse.js.map +1 -0
  515. package/dist/esm/models/components/user.d.ts +2 -2
  516. package/dist/esm/models/components/user.d.ts.map +1 -1
  517. package/dist/esm/models/components/user.js +2 -2
  518. package/dist/esm/models/components/user.js.map +1 -1
  519. package/dist/esm/models/components/vendor.d.ts +48 -6
  520. package/dist/esm/models/components/vendor.d.ts.map +1 -1
  521. package/dist/esm/models/components/vendor.js +64 -6
  522. package/dist/esm/models/components/vendor.js.map +1 -1
  523. package/dist/esm/models/components/vendorcredentialdatarequest.d.ts +148 -0
  524. package/dist/esm/models/components/vendorcredentialdatarequest.d.ts.map +1 -0
  525. package/dist/esm/models/components/vendorcredentialdatarequest.js +184 -0
  526. package/dist/esm/models/components/vendorcredentialdatarequest.js.map +1 -0
  527. package/dist/esm/models/components/vendorcredentialfile.d.ts +125 -0
  528. package/dist/esm/models/components/vendorcredentialfile.d.ts.map +1 -0
  529. package/dist/esm/models/components/vendorcredentialfile.js +167 -0
  530. package/dist/esm/models/components/vendorcredentialfile.js.map +1 -0
  531. package/dist/esm/models/components/vendorcredentialsummary.d.ts +172 -0
  532. package/dist/esm/models/components/vendorcredentialsummary.d.ts.map +1 -1
  533. package/dist/esm/models/components/vendorcredentialsummary.js +227 -0
  534. package/dist/esm/models/components/vendorcredentialsummary.js.map +1 -1
  535. package/dist/esm/models/components/vendorscan.d.ts +80 -0
  536. package/dist/esm/models/components/vendorscan.d.ts.map +1 -0
  537. package/dist/esm/models/components/vendorscan.js +104 -0
  538. package/dist/esm/models/components/vendorscan.js.map +1 -0
  539. package/dist/esm/models/operations/addvendormanagedbycompany.d.ts +13 -13
  540. package/dist/esm/models/operations/addvendormanagedbycompany.d.ts.map +1 -1
  541. package/dist/esm/models/operations/addvendormanagedbycompany.js +13 -13
  542. package/dist/esm/models/operations/addvendormanagedbycompany.js.map +1 -1
  543. package/dist/esm/models/operations/changepassword.d.ts +13 -13
  544. package/dist/esm/models/operations/changepassword.d.ts.map +1 -1
  545. package/dist/esm/models/operations/changepassword.js +13 -13
  546. package/dist/esm/models/operations/changepassword.js.map +1 -1
  547. package/dist/esm/models/operations/deletevendormanagedbycompany.d.ts +13 -13
  548. package/dist/esm/models/operations/deletevendormanagedbycompany.d.ts.map +1 -1
  549. package/dist/esm/models/operations/deletevendormanagedbycompany.js +15 -13
  550. package/dist/esm/models/operations/deletevendormanagedbycompany.js.map +1 -1
  551. package/dist/esm/models/operations/expeditetimeremaining.d.ts +13 -13
  552. package/dist/esm/models/operations/expeditetimeremaining.d.ts.map +1 -1
  553. package/dist/esm/models/operations/expeditetimeremaining.js +13 -13
  554. package/dist/esm/models/operations/expeditetimeremaining.js.map +1 -1
  555. package/dist/esm/models/operations/getvendorcredentialdetails.d.ts +74 -0
  556. package/dist/esm/models/operations/getvendorcredentialdetails.d.ts.map +1 -0
  557. package/dist/esm/models/operations/getvendorcredentialdetails.js +78 -0
  558. package/dist/esm/models/operations/getvendorcredentialdetails.js.map +1 -0
  559. package/dist/esm/models/operations/index.d.ts +3 -1
  560. package/dist/esm/models/operations/index.d.ts.map +1 -1
  561. package/dist/esm/models/operations/index.js +3 -1
  562. package/dist/esm/models/operations/index.js.map +1 -1
  563. package/dist/esm/models/operations/listallwebhookendpoints.d.ts +13 -13
  564. package/dist/esm/models/operations/listallwebhookendpoints.d.ts.map +1 -1
  565. package/dist/esm/models/operations/listallwebhookendpoints.js +13 -13
  566. package/dist/esm/models/operations/listallwebhookendpoints.js.map +1 -1
  567. package/dist/esm/models/operations/listvendoradditionalfacilityfields.d.ts +15 -15
  568. package/dist/esm/models/operations/listvendoradditionalfacilityfields.d.ts.map +1 -1
  569. package/dist/esm/models/operations/listvendoradditionalfacilityfields.js +17 -15
  570. package/dist/esm/models/operations/listvendoradditionalfacilityfields.js.map +1 -1
  571. package/dist/esm/models/operations/listvendorcredentials.d.ts +25 -25
  572. package/dist/esm/models/operations/listvendorcredentials.d.ts.map +1 -1
  573. package/dist/esm/models/operations/listvendorcredentials.js +23 -23
  574. package/dist/esm/models/operations/listvendorcredentials.js.map +1 -1
  575. package/dist/esm/models/operations/listvendorcredits.d.ts +15 -15
  576. package/dist/esm/models/operations/listvendorcredits.d.ts.map +1 -1
  577. package/dist/esm/models/operations/listvendorcredits.js +15 -15
  578. package/dist/esm/models/operations/listvendorcredits.js.map +1 -1
  579. package/dist/esm/models/operations/listvendorfacilitystatuses.d.ts +15 -15
  580. package/dist/esm/models/operations/listvendorfacilitystatuses.d.ts.map +1 -1
  581. package/dist/esm/models/operations/listvendorfacilitystatuses.js +16 -15
  582. package/dist/esm/models/operations/listvendorfacilitystatuses.js.map +1 -1
  583. package/dist/esm/models/operations/listvendorinvoices.d.ts +17 -17
  584. package/dist/esm/models/operations/listvendorinvoices.d.ts.map +1 -1
  585. package/dist/esm/models/operations/listvendorinvoices.js +17 -17
  586. package/dist/esm/models/operations/listvendorinvoices.js.map +1 -1
  587. package/dist/esm/models/operations/listvendormanagedbycompanies.d.ts +15 -15
  588. package/dist/esm/models/operations/listvendormanagedbycompanies.d.ts.map +1 -1
  589. package/dist/esm/models/operations/listvendormanagedbycompanies.js +17 -15
  590. package/dist/esm/models/operations/listvendormanagedbycompanies.js.map +1 -1
  591. package/dist/esm/models/operations/listvendorscrubpackages.d.ts +2 -2
  592. package/dist/esm/models/operations/listvendorscrubpackages.d.ts.map +1 -1
  593. package/dist/esm/models/operations/listvendorscrubpackages.js +2 -2
  594. package/dist/esm/models/operations/listvendorscrubpackages.js.map +1 -1
  595. package/dist/esm/models/operations/listvendorscrubpurchases.d.ts +15 -15
  596. package/dist/esm/models/operations/listvendorscrubpurchases.d.ts.map +1 -1
  597. package/dist/esm/models/operations/listvendorscrubpurchases.js +15 -15
  598. package/dist/esm/models/operations/listvendorscrubpurchases.js.map +1 -1
  599. package/dist/esm/models/operations/postauthenticate.d.ts +98 -0
  600. package/dist/esm/models/operations/postauthenticate.d.ts.map +1 -0
  601. package/dist/esm/models/operations/postauthenticate.js +122 -0
  602. package/dist/esm/models/operations/postauthenticate.js.map +1 -0
  603. package/dist/esm/models/operations/securityzonecheckin.d.ts +190 -4
  604. package/dist/esm/models/operations/securityzonecheckin.d.ts.map +1 -1
  605. package/dist/esm/models/operations/securityzonecheckin.js +239 -0
  606. package/dist/esm/models/operations/securityzonecheckin.js.map +1 -1
  607. package/dist/esm/models/operations/updatesthewebhookendpointwiththegivenid.d.ts +35 -0
  608. package/dist/esm/models/operations/updatesthewebhookendpointwiththegivenid.d.ts.map +1 -0
  609. package/dist/esm/models/operations/updatesthewebhookendpointwiththegivenid.js +43 -0
  610. package/dist/esm/models/operations/updatesthewebhookendpointwiththegivenid.js.map +1 -0
  611. package/dist/esm/models/operations/updatevendormanagedbycompany.d.ts +13 -13
  612. package/dist/esm/models/operations/updatevendormanagedbycompany.d.ts.map +1 -1
  613. package/dist/esm/models/operations/updatevendormanagedbycompany.js +15 -13
  614. package/dist/esm/models/operations/updatevendormanagedbycompany.js.map +1 -1
  615. package/dist/esm/models/operations/vendorscanout.d.ts +13 -13
  616. package/dist/esm/models/operations/vendorscanout.d.ts.map +1 -1
  617. package/dist/esm/models/operations/vendorscanout.js +13 -13
  618. package/dist/esm/models/operations/vendorscanout.js.map +1 -1
  619. package/dist/esm/react-query/index.d.ts +3 -1
  620. package/dist/esm/react-query/index.d.ts.map +1 -1
  621. package/dist/esm/react-query/index.js +3 -1
  622. package/dist/esm/react-query/index.js.map +1 -1
  623. package/dist/esm/react-query/usersChangePassword.d.ts +1 -1
  624. package/dist/esm/react-query/usersChangePassword.d.ts.map +1 -1
  625. package/dist/{commonjs/react-query/usersLogsUserIntoTheSystem.d.ts → esm/react-query/usersPostAuthenticate.d.ts} +8 -8
  626. package/dist/esm/react-query/usersPostAuthenticate.d.ts.map +1 -0
  627. package/dist/esm/react-query/{usersLogsUserIntoTheSystem.js → usersPostAuthenticate.js} +10 -10
  628. package/dist/esm/react-query/usersPostAuthenticate.js.map +1 -0
  629. package/dist/esm/react-query/vendorScansVendorScanOut.d.ts +1 -1
  630. package/dist/esm/react-query/vendorScansVendorScanOut.d.ts.map +1 -1
  631. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts +1 -1
  632. package/dist/esm/react-query/vendorsAddVendorManagedByCompany.d.ts.map +1 -1
  633. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts +1 -1
  634. package/dist/esm/react-query/vendorsDeleteVendorManagedByCompany.d.ts.map +1 -1
  635. package/dist/esm/react-query/vendorsExpediteTimeRemaining.d.ts +1 -1
  636. package/dist/esm/react-query/vendorsExpediteTimeRemaining.d.ts.map +1 -1
  637. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts +79 -0
  638. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.d.ts.map +1 -0
  639. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js +122 -0
  640. package/dist/esm/react-query/vendorsGetVendorCredentialDetails.js.map +1 -0
  641. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts +1 -1
  642. package/dist/esm/react-query/vendorsUpdateVendorManagedByCompany.d.ts.map +1 -1
  643. package/dist/esm/react-query/webhooksListAllWebhookEndpoints.d.ts +1 -1
  644. package/dist/esm/react-query/webhooksListAllWebhookEndpoints.d.ts.map +1 -1
  645. package/dist/esm/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts +24 -0
  646. package/dist/esm/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.d.ts.map +1 -0
  647. package/dist/esm/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js +46 -0
  648. package/dist/esm/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.js.map +1 -0
  649. package/dist/esm/react-query/zonesSecurityZoneCheckin.d.ts +2 -3
  650. package/dist/esm/react-query/zonesSecurityZoneCheckin.d.ts.map +1 -1
  651. package/dist/esm/react-query/zonesSecurityZoneCheckin.js +1 -1
  652. package/dist/esm/react-query/zonesSecurityZoneCheckin.js.map +1 -1
  653. package/dist/esm/sdk/users.d.ts +2 -2
  654. package/dist/esm/sdk/users.d.ts.map +1 -1
  655. package/dist/esm/sdk/users.js +3 -3
  656. package/dist/esm/sdk/users.js.map +1 -1
  657. package/dist/esm/sdk/vendors.d.ts +28 -4
  658. package/dist/esm/sdk/vendors.d.ts.map +1 -1
  659. package/dist/esm/sdk/vendors.js +27 -0
  660. package/dist/esm/sdk/vendors.js.map +1 -1
  661. package/dist/esm/sdk/vendorscans.d.ts +1 -1
  662. package/dist/esm/sdk/vendorscans.d.ts.map +1 -1
  663. package/dist/esm/sdk/webhooks.d.ts +8 -1
  664. package/dist/esm/sdk/webhooks.d.ts.map +1 -1
  665. package/dist/esm/sdk/webhooks.js +10 -0
  666. package/dist/esm/sdk/webhooks.js.map +1 -1
  667. package/dist/esm/sdk/zones.d.ts +2 -3
  668. package/dist/esm/sdk/zones.d.ts.map +1 -1
  669. package/dist/esm/sdk/zones.js +1 -1
  670. package/dist/esm/sdk/zones.js.map +1 -1
  671. package/jsr.json +1 -1
  672. package/package.json +1 -1
  673. package/src/__tests__/vendormanagedbycompanies.test.ts +1 -1
  674. package/src/__tests__/vendors.test.ts +43 -2
  675. package/src/__tests__/webhooks.test.ts +50 -1
  676. package/src/__tests__/zones.test.ts +5 -87
  677. package/src/funcs/organizationsGetFacility.ts +2 -2
  678. package/src/funcs/organizationsListOrSearchFacilities.ts +2 -2
  679. package/src/funcs/supportArticlesGetSupportArticle.ts +6 -2
  680. package/src/funcs/supportArticlesListOrSearchSupportArticles.ts +12 -1
  681. package/src/funcs/usersChangePassword.ts +4 -4
  682. package/src/funcs/usersGetCurrentUser.ts +5 -1
  683. package/src/funcs/usersGetUserById.ts +5 -1
  684. package/src/funcs/usersMagiclink.ts +5 -1
  685. package/src/funcs/usersPassword.ts +6 -2
  686. package/src/funcs/usersPasswordResetRequest.ts +6 -2
  687. package/src/funcs/{usersLogsUserIntoTheSystem.ts → usersPostAuthenticate.ts} +16 -12
  688. package/src/funcs/vendorScansVendorScanOut.ts +4 -4
  689. package/src/funcs/vendorsAddVendorManagedByCompany.ts +8 -4
  690. package/src/funcs/vendorsDeleteVendorManagedByCompany.ts +5 -4
  691. package/src/funcs/vendorsExpediteTimeRemaining.ts +13 -6
  692. package/src/funcs/vendorsGetVendorCredentialDetails.ts +204 -0
  693. package/src/funcs/vendorsGetVendorInvoiceDetails.ts +6 -2
  694. package/src/funcs/vendorsGetVendorsDetails.ts +2 -2
  695. package/src/funcs/vendorsListVendorAdditionalFacilityFields.ts +2 -2
  696. package/src/funcs/vendorsListVendorCredentials.ts +12 -1
  697. package/src/funcs/vendorsListVendorCredits.ts +2 -2
  698. package/src/funcs/vendorsListVendorFacilityStatuses.ts +2 -2
  699. package/src/funcs/vendorsListVendorInvoices.ts +7 -2
  700. package/src/funcs/vendorsListVendorManagedByCompanies.ts +2 -2
  701. package/src/funcs/vendorsListVendorScrubDetails.ts +6 -2
  702. package/src/funcs/vendorsListVendorScrubPurchases.ts +7 -2
  703. package/src/funcs/vendorsUpdateVendorManagedByCompany.ts +5 -4
  704. package/src/funcs/webhooksGetWebhookEndpoint.ts +2 -2
  705. package/src/funcs/webhooksListAllWebhookEndpoints.ts +7 -4
  706. package/src/funcs/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts +176 -0
  707. package/src/funcs/zonesSecurityZoneCheckin.ts +5 -6
  708. package/src/lib/config.ts +3 -3
  709. package/src/mcp-server/mcp-server.ts +1 -1
  710. package/src/mcp-server/server.ts +7 -3
  711. package/src/mcp-server/tools/{usersLogsUserIntoTheSystem.ts → usersPostAuthenticate.ts} +5 -5
  712. package/src/mcp-server/tools/vendorsGetVendorCredentialDetails.ts +56 -0
  713. package/src/mcp-server/tools/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts +40 -0
  714. package/src/mcp-server/tools/zonesSecurityZoneCheckin.ts +1 -1
  715. package/src/models/components/backgroundcheckresult.ts +378 -0
  716. package/src/models/components/credential.ts +239 -0
  717. package/src/models/components/credentialdocument.ts +231 -0
  718. package/src/models/components/datarequest.ts +274 -0
  719. package/src/models/components/expand.ts +22 -0
  720. package/src/models/components/facility.ts +20 -20
  721. package/src/models/components/index.ts +9 -0
  722. package/src/models/components/invoice.ts +4 -4
  723. package/src/models/components/invoiceitem.ts +126 -12
  724. package/src/models/components/product.ts +70 -0
  725. package/src/models/components/screeningresponse.ts +136 -0
  726. package/src/models/components/user.ts +4 -4
  727. package/src/models/components/vendor.ts +115 -9
  728. package/src/models/components/vendorcredentialdatarequest.ts +397 -0
  729. package/src/models/components/vendorcredentialfile.ts +354 -0
  730. package/src/models/components/vendorcredentialsummary.ts +501 -0
  731. package/src/models/components/vendorscan.ts +198 -0
  732. package/src/models/operations/addvendormanagedbycompany.ts +40 -31
  733. package/src/models/operations/changepassword.ts +23 -21
  734. package/src/models/operations/deletevendormanagedbycompany.ts +39 -37
  735. package/src/models/operations/expeditetimeremaining.ts +48 -37
  736. package/src/models/operations/getvendorcredentialdetails.ts +181 -0
  737. package/src/models/operations/index.ts +3 -1
  738. package/src/models/operations/listallwebhookendpoints.ts +42 -33
  739. package/src/models/operations/listvendoradditionalfacilityfields.ts +43 -39
  740. package/src/models/operations/listvendorcredentials.ts +46 -50
  741. package/src/models/operations/listvendorcredits.ts +29 -26
  742. package/src/models/operations/listvendorfacilitystatuses.ts +49 -38
  743. package/src/models/operations/listvendorinvoices.ts +34 -30
  744. package/src/models/operations/listvendormanagedbycompanies.ts +52 -44
  745. package/src/models/operations/listvendorscrubpackages.ts +4 -4
  746. package/src/models/operations/listvendorscrubpurchases.ts +50 -37
  747. package/src/models/operations/{logsuserintothesystem.ts → postauthenticate.ts} +65 -68
  748. package/src/models/operations/securityzonecheckin.ts +428 -4
  749. package/src/models/operations/updatesthewebhookendpointwiththegivenid.ts +97 -0
  750. package/src/models/operations/updatevendormanagedbycompany.ts +39 -37
  751. package/src/models/operations/vendorscanout.ts +23 -21
  752. package/src/react-query/index.ts +3 -1
  753. package/src/react-query/usersChangePassword.ts +1 -1
  754. package/src/react-query/{usersLogsUserIntoTheSystem.ts → usersPostAuthenticate.ts} +20 -20
  755. package/src/react-query/vendorScansVendorScanOut.ts +1 -1
  756. package/src/react-query/vendorsAddVendorManagedByCompany.ts +1 -1
  757. package/src/react-query/vendorsDeleteVendorManagedByCompany.ts +1 -1
  758. package/src/react-query/vendorsExpediteTimeRemaining.ts +1 -1
  759. package/src/react-query/vendorsGetVendorCredentialDetails.ts +223 -0
  760. package/src/react-query/vendorsUpdateVendorManagedByCompany.ts +1 -1
  761. package/src/react-query/webhooksListAllWebhookEndpoints.ts +1 -1
  762. package/src/react-query/webhooksUpdatesTheWebhookEndpointWithTheGivenId.ts +98 -0
  763. package/src/react-query/zonesSecurityZoneCheckin.ts +3 -3
  764. package/src/sdk/users.ts +6 -6
  765. package/src/sdk/vendors.ts +43 -4
  766. package/src/sdk/vendorscans.ts +1 -1
  767. package/src/sdk/webhooks.ts +19 -1
  768. package/src/sdk/zones.ts +2 -3
  769. package/dist/commonjs/funcs/usersLogsUserIntoTheSystem.d.ts.map +0 -1
  770. package/dist/commonjs/funcs/usersLogsUserIntoTheSystem.js.map +0 -1
  771. package/dist/commonjs/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts +0 -8
  772. package/dist/commonjs/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts.map +0 -1
  773. package/dist/commonjs/mcp-server/tools/usersLogsUserIntoTheSystem.js.map +0 -1
  774. package/dist/commonjs/models/operations/logsuserintothesystem.d.ts +0 -98
  775. package/dist/commonjs/models/operations/logsuserintothesystem.d.ts.map +0 -1
  776. package/dist/commonjs/models/operations/logsuserintothesystem.js.map +0 -1
  777. package/dist/commonjs/react-query/usersLogsUserIntoTheSystem.d.ts.map +0 -1
  778. package/dist/commonjs/react-query/usersLogsUserIntoTheSystem.js.map +0 -1
  779. package/dist/esm/funcs/usersLogsUserIntoTheSystem.d.ts.map +0 -1
  780. package/dist/esm/funcs/usersLogsUserIntoTheSystem.js.map +0 -1
  781. package/dist/esm/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts +0 -8
  782. package/dist/esm/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts.map +0 -1
  783. package/dist/esm/mcp-server/tools/usersLogsUserIntoTheSystem.js.map +0 -1
  784. package/dist/esm/models/operations/logsuserintothesystem.d.ts +0 -98
  785. package/dist/esm/models/operations/logsuserintothesystem.d.ts.map +0 -1
  786. package/dist/esm/models/operations/logsuserintothesystem.js +0 -122
  787. package/dist/esm/models/operations/logsuserintothesystem.js.map +0 -1
  788. package/dist/esm/react-query/usersLogsUserIntoTheSystem.d.ts.map +0 -1
  789. package/dist/esm/react-query/usersLogsUserIntoTheSystem.js.map +0 -1
@@ -0,0 +1,274 @@
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 { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export const DataType = {
13
+ File: "File",
14
+ Url: "URL",
15
+ ShortText: "Short Text",
16
+ LongText: "Long Text",
17
+ Date: "Date",
18
+ } as const;
19
+ export type DataType = ClosedEnum<typeof DataType>;
20
+
21
+ export type Url = {
22
+ value?: string | null | undefined;
23
+ func?: string | null | undefined;
24
+ expires?: string | null | undefined;
25
+ daysValid?: number | null | undefined;
26
+ };
27
+
28
+ export type DataRequestFile = {
29
+ fileName?: string | null | undefined;
30
+ contentType?: string | null | undefined;
31
+ fileSize?: number | null | undefined;
32
+ updatedAt?: string | null | undefined;
33
+ url?: string | null | undefined;
34
+ };
35
+
36
+ export type DataRequest = {
37
+ id?: number | undefined;
38
+ dataType?: DataType | undefined;
39
+ name?: string | null | undefined;
40
+ description?: string | null | undefined;
41
+ url?: Url | null | undefined;
42
+ file?: DataRequestFile | null | undefined;
43
+ };
44
+
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
+ /** @internal */
65
+ export const Url$inboundSchema: z.ZodType<Url, z.ZodTypeDef, unknown> = z
66
+ .object({
67
+ value: z.nullable(z.string()).optional(),
68
+ func: z.nullable(z.string()).optional(),
69
+ expires: z.nullable(z.string()).optional(),
70
+ days_valid: z.nullable(z.number().int()).optional(),
71
+ }).transform((v) => {
72
+ return remap$(v, {
73
+ "days_valid": "daysValid",
74
+ });
75
+ });
76
+
77
+ /** @internal */
78
+ export type Url$Outbound = {
79
+ value?: string | null | undefined;
80
+ func?: string | null | undefined;
81
+ expires?: string | null | undefined;
82
+ days_valid?: number | null | undefined;
83
+ };
84
+
85
+ /** @internal */
86
+ export const Url$outboundSchema: z.ZodType<Url$Outbound, z.ZodTypeDef, Url> = z
87
+ .object({
88
+ value: z.nullable(z.string()).optional(),
89
+ func: z.nullable(z.string()).optional(),
90
+ expires: z.nullable(z.string()).optional(),
91
+ daysValid: z.nullable(z.number().int()).optional(),
92
+ }).transform((v) => {
93
+ return remap$(v, {
94
+ daysValid: "days_valid",
95
+ });
96
+ });
97
+
98
+ /**
99
+ * @internal
100
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
101
+ */
102
+ export namespace Url$ {
103
+ /** @deprecated use `Url$inboundSchema` instead. */
104
+ export const inboundSchema = Url$inboundSchema;
105
+ /** @deprecated use `Url$outboundSchema` instead. */
106
+ export const outboundSchema = Url$outboundSchema;
107
+ /** @deprecated use `Url$Outbound` instead. */
108
+ export type Outbound = Url$Outbound;
109
+ }
110
+
111
+ export function urlToJSON(url: Url): string {
112
+ return JSON.stringify(Url$outboundSchema.parse(url));
113
+ }
114
+
115
+ export function urlFromJSON(
116
+ jsonString: string,
117
+ ): SafeParseResult<Url, SDKValidationError> {
118
+ return safeParse(
119
+ jsonString,
120
+ (x) => Url$inboundSchema.parse(JSON.parse(x)),
121
+ `Failed to parse 'Url' from JSON`,
122
+ );
123
+ }
124
+
125
+ /** @internal */
126
+ export const DataRequestFile$inboundSchema: z.ZodType<
127
+ DataRequestFile,
128
+ z.ZodTypeDef,
129
+ unknown
130
+ > = z.object({
131
+ file_name: z.nullable(z.string()).optional(),
132
+ content_type: z.nullable(z.string()).optional(),
133
+ file_size: z.nullable(z.number().int()).optional(),
134
+ updated_at: z.nullable(z.string()).optional(),
135
+ url: z.nullable(z.string()).optional(),
136
+ }).transform((v) => {
137
+ return remap$(v, {
138
+ "file_name": "fileName",
139
+ "content_type": "contentType",
140
+ "file_size": "fileSize",
141
+ "updated_at": "updatedAt",
142
+ });
143
+ });
144
+
145
+ /** @internal */
146
+ export type DataRequestFile$Outbound = {
147
+ file_name?: string | null | undefined;
148
+ content_type?: string | null | undefined;
149
+ file_size?: number | null | undefined;
150
+ updated_at?: string | null | undefined;
151
+ url?: string | null | undefined;
152
+ };
153
+
154
+ /** @internal */
155
+ export const DataRequestFile$outboundSchema: z.ZodType<
156
+ DataRequestFile$Outbound,
157
+ z.ZodTypeDef,
158
+ DataRequestFile
159
+ > = z.object({
160
+ fileName: z.nullable(z.string()).optional(),
161
+ contentType: z.nullable(z.string()).optional(),
162
+ fileSize: z.nullable(z.number().int()).optional(),
163
+ updatedAt: z.nullable(z.string()).optional(),
164
+ url: z.nullable(z.string()).optional(),
165
+ }).transform((v) => {
166
+ return remap$(v, {
167
+ fileName: "file_name",
168
+ contentType: "content_type",
169
+ fileSize: "file_size",
170
+ updatedAt: "updated_at",
171
+ });
172
+ });
173
+
174
+ /**
175
+ * @internal
176
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
177
+ */
178
+ export namespace DataRequestFile$ {
179
+ /** @deprecated use `DataRequestFile$inboundSchema` instead. */
180
+ export const inboundSchema = DataRequestFile$inboundSchema;
181
+ /** @deprecated use `DataRequestFile$outboundSchema` instead. */
182
+ export const outboundSchema = DataRequestFile$outboundSchema;
183
+ /** @deprecated use `DataRequestFile$Outbound` instead. */
184
+ export type Outbound = DataRequestFile$Outbound;
185
+ }
186
+
187
+ export function dataRequestFileToJSON(
188
+ dataRequestFile: DataRequestFile,
189
+ ): string {
190
+ return JSON.stringify(DataRequestFile$outboundSchema.parse(dataRequestFile));
191
+ }
192
+
193
+ export function dataRequestFileFromJSON(
194
+ jsonString: string,
195
+ ): SafeParseResult<DataRequestFile, SDKValidationError> {
196
+ return safeParse(
197
+ jsonString,
198
+ (x) => DataRequestFile$inboundSchema.parse(JSON.parse(x)),
199
+ `Failed to parse 'DataRequestFile' from JSON`,
200
+ );
201
+ }
202
+
203
+ /** @internal */
204
+ export const DataRequest$inboundSchema: z.ZodType<
205
+ DataRequest,
206
+ z.ZodTypeDef,
207
+ unknown
208
+ > = z.object({
209
+ id: z.number().int().optional(),
210
+ data_type: DataType$inboundSchema.optional(),
211
+ name: z.nullable(z.string()).optional(),
212
+ description: z.nullable(z.string()).optional(),
213
+ url: z.nullable(z.lazy(() => Url$inboundSchema)).optional(),
214
+ file: z.nullable(z.lazy(() => DataRequestFile$inboundSchema)).optional(),
215
+ }).transform((v) => {
216
+ return remap$(v, {
217
+ "data_type": "dataType",
218
+ });
219
+ });
220
+
221
+ /** @internal */
222
+ export type DataRequest$Outbound = {
223
+ id?: number | undefined;
224
+ data_type?: string | undefined;
225
+ name?: string | null | undefined;
226
+ description?: string | null | undefined;
227
+ url?: Url$Outbound | null | undefined;
228
+ file?: DataRequestFile$Outbound | null | undefined;
229
+ };
230
+
231
+ /** @internal */
232
+ export const DataRequest$outboundSchema: z.ZodType<
233
+ DataRequest$Outbound,
234
+ z.ZodTypeDef,
235
+ DataRequest
236
+ > = z.object({
237
+ id: z.number().int().optional(),
238
+ dataType: DataType$outboundSchema.optional(),
239
+ name: z.nullable(z.string()).optional(),
240
+ description: z.nullable(z.string()).optional(),
241
+ url: z.nullable(z.lazy(() => Url$outboundSchema)).optional(),
242
+ file: z.nullable(z.lazy(() => DataRequestFile$outboundSchema)).optional(),
243
+ }).transform((v) => {
244
+ return remap$(v, {
245
+ dataType: "data_type",
246
+ });
247
+ });
248
+
249
+ /**
250
+ * @internal
251
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
252
+ */
253
+ export namespace DataRequest$ {
254
+ /** @deprecated use `DataRequest$inboundSchema` instead. */
255
+ export const inboundSchema = DataRequest$inboundSchema;
256
+ /** @deprecated use `DataRequest$outboundSchema` instead. */
257
+ export const outboundSchema = DataRequest$outboundSchema;
258
+ /** @deprecated use `DataRequest$Outbound` instead. */
259
+ export type Outbound = DataRequest$Outbound;
260
+ }
261
+
262
+ export function dataRequestToJSON(dataRequest: DataRequest): string {
263
+ return JSON.stringify(DataRequest$outboundSchema.parse(dataRequest));
264
+ }
265
+
266
+ export function dataRequestFromJSON(
267
+ jsonString: string,
268
+ ): SafeParseResult<DataRequest, SDKValidationError> {
269
+ return safeParse(
270
+ jsonString,
271
+ (x) => DataRequest$inboundSchema.parse(JSON.parse(x)),
272
+ `Failed to parse 'DataRequest' from JSON`,
273
+ );
274
+ }
@@ -40,6 +40,28 @@ export const Expand = {
40
40
  SupportArticleSupportCategory: "support_article.support_category",
41
41
  InvoiceLineItems: "invoice.line_items",
42
42
  InvoiceInvoiceTransactions: "invoice.invoice_transactions",
43
+ VendorCredentialCredential: "vendor_credential.credential",
44
+ VendorCredentialVendor: "vendor_credential.vendor",
45
+ VendorCredentialInvoice: "vendor_credential.invoice",
46
+ VendorCredentialVendorCredentialFiles:
47
+ "vendor_credential.vendor_credential_files",
48
+ VendorCredentialLatestVendorCredentialId:
49
+ "vendor_credential.latest_vendor_credential_id",
50
+ VendorCredentialPreviouslyApproved: "vendor_credential.previously_approved",
51
+ VendorCredentialUnsatisfiedDependencies:
52
+ "vendor_credential.unsatisfied_dependencies",
53
+ VendorCredentialAllowExpediting: "vendor_credential.allow_expediting",
54
+ VendorCredentialUnpaidExpeditedInvoiceId:
55
+ "vendor_credential.unpaid_expedited_invoice_id",
56
+ VendorCredentialExpeditedOffers: "vendor_credential.expedited_offers",
57
+ VendorCredentialBackgroundCheckResults:
58
+ "vendor_credential.background_check_results",
59
+ VendorCredentialVendorCredentialDefaultStatus:
60
+ "vendor_credential.vendor_credential_default_status",
61
+ VendorCredentialVendorCredentialDataRequests:
62
+ "vendor_credential.vendor_credential_data_requests",
63
+ VendorCredentialCredentialVariants: "vendor_credential.credential_variants",
64
+ VendorCredentialTargetsChop: "vendor_credential.targets_chop",
43
65
  } as const;
44
66
  /**
45
67
  * An expansion scope that is valid for the object being requested.
@@ -48,23 +48,23 @@ export type Contacts = {
48
48
  /**
49
49
  * This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
50
50
  */
51
- contact?: Contact | undefined;
51
+ contact?: Contact | null | undefined;
52
52
  /**
53
53
  * This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
54
54
  */
55
- adminContact?: Contact | undefined;
55
+ adminContact?: Contact | null | undefined;
56
56
  /**
57
57
  * This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
58
58
  */
59
- techContact?: Contact | undefined;
59
+ techContact?: Contact | null | undefined;
60
60
  /**
61
61
  * This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
62
62
  */
63
- greenSecurityCsm?: Contact | undefined;
63
+ greenSecurityCsm?: Contact | null | undefined;
64
64
  /**
65
65
  * This object represents a contact at the system or facility level. Use it to verify vendors, create appointments, or check in visitors.
66
66
  */
67
- accountManager?: Contact | undefined;
67
+ accountManager?: Contact | null | undefined;
68
68
  };
69
69
 
70
70
  export type VendorCounts = {
@@ -282,11 +282,11 @@ export const Contacts$inboundSchema: z.ZodType<
282
282
  z.ZodTypeDef,
283
283
  unknown
284
284
  > = z.object({
285
- contact: Contact$inboundSchema.optional(),
286
- admin_contact: Contact$inboundSchema.optional(),
287
- tech_contact: Contact$inboundSchema.optional(),
288
- green_security_csm: Contact$inboundSchema.optional(),
289
- account_manager: Contact$inboundSchema.optional(),
285
+ contact: z.nullable(Contact$inboundSchema).optional(),
286
+ admin_contact: z.nullable(Contact$inboundSchema).optional(),
287
+ tech_contact: z.nullable(Contact$inboundSchema).optional(),
288
+ green_security_csm: z.nullable(Contact$inboundSchema).optional(),
289
+ account_manager: z.nullable(Contact$inboundSchema).optional(),
290
290
  }).transform((v) => {
291
291
  return remap$(v, {
292
292
  "admin_contact": "adminContact",
@@ -298,11 +298,11 @@ export const Contacts$inboundSchema: z.ZodType<
298
298
 
299
299
  /** @internal */
300
300
  export type Contacts$Outbound = {
301
- contact?: Contact$Outbound | undefined;
302
- admin_contact?: Contact$Outbound | undefined;
303
- tech_contact?: Contact$Outbound | undefined;
304
- green_security_csm?: Contact$Outbound | undefined;
305
- account_manager?: Contact$Outbound | undefined;
301
+ contact?: Contact$Outbound | null | undefined;
302
+ admin_contact?: Contact$Outbound | null | undefined;
303
+ tech_contact?: Contact$Outbound | null | undefined;
304
+ green_security_csm?: Contact$Outbound | null | undefined;
305
+ account_manager?: Contact$Outbound | null | undefined;
306
306
  };
307
307
 
308
308
  /** @internal */
@@ -311,11 +311,11 @@ export const Contacts$outboundSchema: z.ZodType<
311
311
  z.ZodTypeDef,
312
312
  Contacts
313
313
  > = z.object({
314
- contact: Contact$outboundSchema.optional(),
315
- adminContact: Contact$outboundSchema.optional(),
316
- techContact: Contact$outboundSchema.optional(),
317
- greenSecurityCsm: Contact$outboundSchema.optional(),
318
- accountManager: Contact$outboundSchema.optional(),
314
+ contact: z.nullable(Contact$outboundSchema).optional(),
315
+ adminContact: z.nullable(Contact$outboundSchema).optional(),
316
+ techContact: z.nullable(Contact$outboundSchema).optional(),
317
+ greenSecurityCsm: z.nullable(Contact$outboundSchema).optional(),
318
+ accountManager: z.nullable(Contact$outboundSchema).optional(),
319
319
  }).transform((v) => {
320
320
  return remap$(v, {
321
321
  adminContact: "admin_contact",
@@ -3,10 +3,14 @@
3
3
  */
4
4
 
5
5
  export * from "./activestatus.js";
6
+ export * from "./backgroundcheckresult.js";
6
7
  export * from "./company.js";
7
8
  export * from "./contact.js";
9
+ export * from "./credential.js";
10
+ export * from "./credentialdocument.js";
8
11
  export * from "./credentialstatus.js";
9
12
  export * from "./credit.js";
13
+ export * from "./datarequest.js";
10
14
  export * from "./department.js";
11
15
  export * from "./departmentsummary.js";
12
16
  export * from "./desc.js";
@@ -23,9 +27,11 @@ export * from "./loginrequirementsfromemail.js";
23
27
  export * from "./mfarequiredresponse.js";
24
28
  export * from "./pager.js";
25
29
  export * from "./passwordrequiredresponse.js";
30
+ export * from "./product.js";
26
31
  export * from "./productvariant.js";
27
32
  export * from "./samlloginrequiredresponse.js";
28
33
  export * from "./scantype.js";
34
+ export * from "./screeningresponse.js";
29
35
  export * from "./security.js";
30
36
  export * from "./state.js";
31
37
  export * from "./subscription.js";
@@ -36,12 +42,15 @@ export * from "./user.js";
36
42
  export * from "./userlocation.js";
37
43
  export * from "./vendor.js";
38
44
  export * from "./vendoradditionalfacilityfields.js";
45
+ export * from "./vendorcredentialdatarequest.js";
46
+ export * from "./vendorcredentialfile.js";
39
47
  export * from "./vendorcredentialscontainer.js";
40
48
  export * from "./vendorcredentialsummary.js";
41
49
  export * from "./vendorfacilitystatusview.js";
42
50
  export * from "./vendorjobtitle.js";
43
51
  export * from "./vendormanagedbycompany.js";
44
52
  export * from "./vendorrequiredcredential.js";
53
+ export * from "./vendorscan.js";
45
54
  export * from "./vendorscrubdetails.js";
46
55
  export * from "./vendorscrubpurchase.js";
47
56
  export * from "./vendortype.js";
@@ -35,7 +35,7 @@ export type Invoice = {
35
35
  convenienceFee?: number | null | undefined;
36
36
  shipping?: number | null | undefined;
37
37
  discount?: number | undefined;
38
- items?: Array<InvoiceItem> | null | undefined;
38
+ lines?: Array<InvoiceItem> | null | undefined;
39
39
  transactions?: Array<InvoiceTransaction> | null | undefined;
40
40
  };
41
41
 
@@ -53,7 +53,7 @@ export const Invoice$inboundSchema: z.ZodType<Invoice, z.ZodTypeDef, unknown> =
53
53
  convenience_fee: z.nullable(z.number()).optional(),
54
54
  shipping: z.nullable(z.number().int()).optional(),
55
55
  discount: z.number().int().optional(),
56
- items: z.nullable(z.array(InvoiceItem$inboundSchema)).optional(),
56
+ lines: z.nullable(z.array(InvoiceItem$inboundSchema)).optional(),
57
57
  transactions: z.nullable(z.array(InvoiceTransaction$inboundSchema))
58
58
  .optional(),
59
59
  }).transform((v) => {
@@ -79,7 +79,7 @@ export type Invoice$Outbound = {
79
79
  convenience_fee?: number | null | undefined;
80
80
  shipping?: number | null | undefined;
81
81
  discount?: number | undefined;
82
- items?: Array<InvoiceItem$Outbound> | null | undefined;
82
+ lines?: Array<InvoiceItem$Outbound> | null | undefined;
83
83
  transactions?: Array<InvoiceTransaction$Outbound> | null | undefined;
84
84
  };
85
85
 
@@ -100,7 +100,7 @@ export const Invoice$outboundSchema: z.ZodType<
100
100
  convenienceFee: z.nullable(z.number()).optional(),
101
101
  shipping: z.nullable(z.number().int()).optional(),
102
102
  discount: z.number().int().optional(),
103
- items: z.nullable(z.array(InvoiceItem$outboundSchema)).optional(),
103
+ lines: z.nullable(z.array(InvoiceItem$outboundSchema)).optional(),
104
104
  transactions: z.nullable(z.array(InvoiceTransaction$outboundSchema))
105
105
  .optional(),
106
106
  }).transform((v) => {
@@ -7,60 +7,171 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ Product,
12
+ Product$inboundSchema,
13
+ Product$Outbound,
14
+ Product$outboundSchema,
15
+ } from "./product.js";
16
+ import {
17
+ ProductVariant,
18
+ ProductVariant$inboundSchema,
19
+ ProductVariant$Outbound,
20
+ ProductVariant$outboundSchema,
21
+ } from "./productvariant.js";
22
+
23
+ export type Variant = ProductVariant | number;
24
+
25
+ export type InvoiceItemProduct = Product | number;
10
26
 
11
27
  /**
12
28
  * Reduced list of attributes of the Invoice line item record
13
29
  */
14
30
  export type InvoiceItem = {
15
- itemId?: number | undefined;
31
+ id?: number | undefined;
16
32
  dateStarts?: string | null | undefined;
17
33
  dateEnds?: string | null | undefined;
18
34
  isSubscription?: boolean | null | undefined;
19
35
  productTitle?: string | null | undefined;
20
- itemTitle?: string | null | undefined;
36
+ title?: string | null | undefined;
21
37
  quantity?: number | null | undefined;
22
38
  unitPrice?: number | null | undefined;
23
39
  subtotal?: number | null | undefined;
40
+ variant?: ProductVariant | number | null | undefined;
41
+ product?: Product | number | null | undefined;
24
42
  };
25
43
 
44
+ /** @internal */
45
+ export const Variant$inboundSchema: z.ZodType<Variant, z.ZodTypeDef, unknown> =
46
+ z.union([ProductVariant$inboundSchema, z.number().int()]);
47
+
48
+ /** @internal */
49
+ export type Variant$Outbound = ProductVariant$Outbound | number;
50
+
51
+ /** @internal */
52
+ export const Variant$outboundSchema: z.ZodType<
53
+ Variant$Outbound,
54
+ z.ZodTypeDef,
55
+ Variant
56
+ > = z.union([ProductVariant$outboundSchema, z.number().int()]);
57
+
58
+ /**
59
+ * @internal
60
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
+ */
62
+ export namespace Variant$ {
63
+ /** @deprecated use `Variant$inboundSchema` instead. */
64
+ export const inboundSchema = Variant$inboundSchema;
65
+ /** @deprecated use `Variant$outboundSchema` instead. */
66
+ export const outboundSchema = Variant$outboundSchema;
67
+ /** @deprecated use `Variant$Outbound` instead. */
68
+ export type Outbound = Variant$Outbound;
69
+ }
70
+
71
+ export function variantToJSON(variant: Variant): string {
72
+ return JSON.stringify(Variant$outboundSchema.parse(variant));
73
+ }
74
+
75
+ export function variantFromJSON(
76
+ jsonString: string,
77
+ ): SafeParseResult<Variant, SDKValidationError> {
78
+ return safeParse(
79
+ jsonString,
80
+ (x) => Variant$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'Variant' from JSON`,
82
+ );
83
+ }
84
+
85
+ /** @internal */
86
+ export const InvoiceItemProduct$inboundSchema: z.ZodType<
87
+ InvoiceItemProduct,
88
+ z.ZodTypeDef,
89
+ unknown
90
+ > = z.union([Product$inboundSchema, z.number().int()]);
91
+
92
+ /** @internal */
93
+ export type InvoiceItemProduct$Outbound = Product$Outbound | number;
94
+
95
+ /** @internal */
96
+ export const InvoiceItemProduct$outboundSchema: z.ZodType<
97
+ InvoiceItemProduct$Outbound,
98
+ z.ZodTypeDef,
99
+ InvoiceItemProduct
100
+ > = z.union([Product$outboundSchema, z.number().int()]);
101
+
102
+ /**
103
+ * @internal
104
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
105
+ */
106
+ export namespace InvoiceItemProduct$ {
107
+ /** @deprecated use `InvoiceItemProduct$inboundSchema` instead. */
108
+ export const inboundSchema = InvoiceItemProduct$inboundSchema;
109
+ /** @deprecated use `InvoiceItemProduct$outboundSchema` instead. */
110
+ export const outboundSchema = InvoiceItemProduct$outboundSchema;
111
+ /** @deprecated use `InvoiceItemProduct$Outbound` instead. */
112
+ export type Outbound = InvoiceItemProduct$Outbound;
113
+ }
114
+
115
+ export function invoiceItemProductToJSON(
116
+ invoiceItemProduct: InvoiceItemProduct,
117
+ ): string {
118
+ return JSON.stringify(
119
+ InvoiceItemProduct$outboundSchema.parse(invoiceItemProduct),
120
+ );
121
+ }
122
+
123
+ export function invoiceItemProductFromJSON(
124
+ jsonString: string,
125
+ ): SafeParseResult<InvoiceItemProduct, SDKValidationError> {
126
+ return safeParse(
127
+ jsonString,
128
+ (x) => InvoiceItemProduct$inboundSchema.parse(JSON.parse(x)),
129
+ `Failed to parse 'InvoiceItemProduct' from JSON`,
130
+ );
131
+ }
132
+
26
133
  /** @internal */
27
134
  export const InvoiceItem$inboundSchema: z.ZodType<
28
135
  InvoiceItem,
29
136
  z.ZodTypeDef,
30
137
  unknown
31
138
  > = z.object({
32
- item_id: z.number().int().optional(),
139
+ id: z.number().int().optional(),
33
140
  date_starts: z.nullable(z.string()).optional(),
34
141
  date_ends: z.nullable(z.string()).optional(),
35
142
  is_subscription: z.nullable(z.boolean()).optional(),
36
143
  product_title: z.nullable(z.string()).optional(),
37
- item_title: z.nullable(z.string()).optional(),
144
+ title: z.nullable(z.string()).optional(),
38
145
  quantity: z.nullable(z.number()).optional(),
39
146
  unit_price: z.nullable(z.number().int()).optional(),
40
147
  subtotal: z.nullable(z.number().int()).optional(),
148
+ variant: z.nullable(z.union([ProductVariant$inboundSchema, z.number().int()]))
149
+ .optional(),
150
+ product: z.nullable(z.union([Product$inboundSchema, z.number().int()]))
151
+ .optional(),
41
152
  }).transform((v) => {
42
153
  return remap$(v, {
43
- "item_id": "itemId",
44
154
  "date_starts": "dateStarts",
45
155
  "date_ends": "dateEnds",
46
156
  "is_subscription": "isSubscription",
47
157
  "product_title": "productTitle",
48
- "item_title": "itemTitle",
49
158
  "unit_price": "unitPrice",
50
159
  });
51
160
  });
52
161
 
53
162
  /** @internal */
54
163
  export type InvoiceItem$Outbound = {
55
- item_id?: number | undefined;
164
+ id?: number | undefined;
56
165
  date_starts?: string | null | undefined;
57
166
  date_ends?: string | null | undefined;
58
167
  is_subscription?: boolean | null | undefined;
59
168
  product_title?: string | null | undefined;
60
- item_title?: string | null | undefined;
169
+ title?: string | null | undefined;
61
170
  quantity?: number | null | undefined;
62
171
  unit_price?: number | null | undefined;
63
172
  subtotal?: number | null | undefined;
173
+ variant?: ProductVariant$Outbound | number | null | undefined;
174
+ product?: Product$Outbound | number | null | undefined;
64
175
  };
65
176
 
66
177
  /** @internal */
@@ -69,23 +180,26 @@ export const InvoiceItem$outboundSchema: z.ZodType<
69
180
  z.ZodTypeDef,
70
181
  InvoiceItem
71
182
  > = z.object({
72
- itemId: z.number().int().optional(),
183
+ id: z.number().int().optional(),
73
184
  dateStarts: z.nullable(z.string()).optional(),
74
185
  dateEnds: z.nullable(z.string()).optional(),
75
186
  isSubscription: z.nullable(z.boolean()).optional(),
76
187
  productTitle: z.nullable(z.string()).optional(),
77
- itemTitle: z.nullable(z.string()).optional(),
188
+ title: z.nullable(z.string()).optional(),
78
189
  quantity: z.nullable(z.number()).optional(),
79
190
  unitPrice: z.nullable(z.number().int()).optional(),
80
191
  subtotal: z.nullable(z.number().int()).optional(),
192
+ variant: z.nullable(
193
+ z.union([ProductVariant$outboundSchema, z.number().int()]),
194
+ ).optional(),
195
+ product: z.nullable(z.union([Product$outboundSchema, z.number().int()]))
196
+ .optional(),
81
197
  }).transform((v) => {
82
198
  return remap$(v, {
83
- itemId: "item_id",
84
199
  dateStarts: "date_starts",
85
200
  dateEnds: "date_ends",
86
201
  isSubscription: "is_subscription",
87
202
  productTitle: "product_title",
88
- itemTitle: "item_title",
89
203
  unitPrice: "unit_price",
90
204
  });
91
205
  });