@greensecurity/javascript-sdk 0.15.1 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/REACT_QUERY.md +68 -30
  2. package/README.md +74 -19
  3. package/bin/mcp-server.js +1494 -215
  4. package/bin/mcp-server.js.map +56 -34
  5. package/funcs/organizationsListOrSearchFacilities.d.ts +4 -1
  6. package/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
  7. package/funcs/organizationsListOrSearchFacilities.js +47 -10
  8. package/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  9. package/funcs/supportArticlesGetSupportArticle.d.ts +25 -0
  10. package/funcs/supportArticlesGetSupportArticle.d.ts.map +1 -0
  11. package/funcs/supportArticlesGetSupportArticle.js +132 -0
  12. package/funcs/supportArticlesGetSupportArticle.js.map +1 -0
  13. package/funcs/supportArticlesListOrSearchSupportArticles.d.ts +19 -0
  14. package/funcs/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
  15. package/funcs/supportArticlesListOrSearchSupportArticles.js +153 -0
  16. package/funcs/supportArticlesListOrSearchSupportArticles.js.map +1 -0
  17. package/funcs/{userGetCurrentUser.d.ts → usersGetCurrentUser.d.ts} +2 -2
  18. package/funcs/usersGetCurrentUser.d.ts.map +1 -0
  19. package/funcs/{userGetCurrentUser.js → usersGetCurrentUser.js} +3 -3
  20. package/funcs/usersGetCurrentUser.js.map +1 -0
  21. package/funcs/{userGetUserById.d.ts → usersGetUserById.d.ts} +2 -2
  22. package/funcs/usersGetUserById.d.ts.map +1 -0
  23. package/funcs/{userGetUserById.js → usersGetUserById.js} +3 -3
  24. package/funcs/usersGetUserById.js.map +1 -0
  25. package/funcs/{userLogsUserIntoTheSystem.d.ts → usersLogsUserIntoTheSystem.d.ts} +2 -2
  26. package/funcs/usersLogsUserIntoTheSystem.d.ts.map +1 -0
  27. package/funcs/{userLogsUserIntoTheSystem.js → usersLogsUserIntoTheSystem.js} +3 -3
  28. package/funcs/usersLogsUserIntoTheSystem.js.map +1 -0
  29. package/funcs/{userMagiclink.d.ts → usersMagiclink.d.ts} +2 -2
  30. package/funcs/usersMagiclink.d.ts.map +1 -0
  31. package/funcs/{userMagiclink.js → usersMagiclink.js} +4 -4
  32. package/funcs/usersMagiclink.js.map +1 -0
  33. package/funcs/{userPassword.d.ts → usersPassword.d.ts} +2 -2
  34. package/funcs/usersPassword.d.ts.map +1 -0
  35. package/funcs/{userPassword.js → usersPassword.js} +4 -4
  36. package/funcs/usersPassword.js.map +1 -0
  37. package/funcs/{userPasswordResetRequest.d.ts → usersPasswordResetRequest.d.ts} +2 -2
  38. package/funcs/usersPasswordResetRequest.d.ts.map +1 -0
  39. package/funcs/{userPasswordResetRequest.js → usersPasswordResetRequest.js} +4 -4
  40. package/funcs/usersPasswordResetRequest.js.map +1 -0
  41. package/funcs/vendorsCreateVendorRegistration.d.ts +1 -1
  42. package/funcs/vendorsCreateVendorRegistration.d.ts.map +1 -1
  43. package/funcs/vendorsCreateVendorRegistration.js +2 -1
  44. package/funcs/vendorsCreateVendorRegistration.js.map +1 -1
  45. package/funcs/vendorsExpediteTimeRemaining.d.ts +17 -0
  46. package/funcs/vendorsExpediteTimeRemaining.d.ts.map +1 -0
  47. package/funcs/vendorsExpediteTimeRemaining.js +120 -0
  48. package/funcs/vendorsExpediteTimeRemaining.js.map +1 -0
  49. package/funcs/vendorsListVendorCredentials.d.ts +16 -0
  50. package/funcs/vendorsListVendorCredentials.d.ts.map +1 -0
  51. package/funcs/vendorsListVendorCredentials.js +124 -0
  52. package/funcs/vendorsListVendorCredentials.js.map +1 -0
  53. package/funcs/vendorsListVendorInvoices.d.ts +24 -0
  54. package/funcs/vendorsListVendorInvoices.d.ts.map +1 -0
  55. package/funcs/vendorsListVendorInvoices.js +166 -0
  56. package/funcs/vendorsListVendorInvoices.js.map +1 -0
  57. package/funcs/vendorsListVendorJobTitles.d.ts +4 -1
  58. package/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
  59. package/funcs/vendorsListVendorJobTitles.js +39 -6
  60. package/funcs/vendorsListVendorJobTitles.js.map +1 -1
  61. package/jsr.json +1 -1
  62. package/lib/config.d.ts +3 -3
  63. package/lib/config.js +3 -3
  64. package/mcp-server/mcp-server.js +1 -1
  65. package/mcp-server/server.d.ts.map +1 -1
  66. package/mcp-server/server.js +23 -13
  67. package/mcp-server/server.js.map +1 -1
  68. package/mcp-server/tools/organizationsListOrSearchFacilities.js +1 -1
  69. package/mcp-server/tools/organizationsListOrSearchFacilities.js.map +1 -1
  70. package/mcp-server/tools/supportArticlesGetSupportArticle.d.ts +8 -0
  71. package/mcp-server/tools/supportArticlesGetSupportArticle.d.ts.map +1 -0
  72. package/mcp-server/tools/supportArticlesGetSupportArticle.js +71 -0
  73. package/mcp-server/tools/supportArticlesGetSupportArticle.js.map +1 -0
  74. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.d.ts +8 -0
  75. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
  76. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js +64 -0
  77. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js.map +1 -0
  78. package/mcp-server/tools/usersGetCurrentUser.d.ts +3 -0
  79. package/mcp-server/tools/usersGetCurrentUser.d.ts.map +1 -0
  80. package/mcp-server/tools/usersGetCurrentUser.js +26 -0
  81. package/mcp-server/tools/usersGetCurrentUser.js.map +1 -0
  82. package/mcp-server/tools/usersGetUserById.d.ts +8 -0
  83. package/mcp-server/tools/usersGetUserById.d.ts.map +1 -0
  84. package/mcp-server/tools/usersGetUserById.js +64 -0
  85. package/mcp-server/tools/usersGetUserById.js.map +1 -0
  86. package/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts +8 -0
  87. package/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts.map +1 -0
  88. package/mcp-server/tools/usersLogsUserIntoTheSystem.js +94 -0
  89. package/mcp-server/tools/usersLogsUserIntoTheSystem.js.map +1 -0
  90. package/mcp-server/tools/usersMagiclink.d.ts +8 -0
  91. package/mcp-server/tools/usersMagiclink.d.ts.map +1 -0
  92. package/mcp-server/tools/usersMagiclink.js +64 -0
  93. package/mcp-server/tools/usersMagiclink.js.map +1 -0
  94. package/mcp-server/tools/usersPassword.d.ts +8 -0
  95. package/mcp-server/tools/usersPassword.d.ts.map +1 -0
  96. package/mcp-server/tools/usersPassword.js +65 -0
  97. package/mcp-server/tools/usersPassword.js.map +1 -0
  98. package/mcp-server/tools/usersPasswordResetRequest.d.ts +8 -0
  99. package/mcp-server/tools/usersPasswordResetRequest.d.ts.map +1 -0
  100. package/mcp-server/tools/usersPasswordResetRequest.js +64 -0
  101. package/mcp-server/tools/usersPasswordResetRequest.js.map +1 -0
  102. package/mcp-server/tools/vendorsExpediteTimeRemaining.d.ts +8 -0
  103. package/mcp-server/tools/vendorsExpediteTimeRemaining.d.ts.map +1 -0
  104. package/mcp-server/tools/vendorsExpediteTimeRemaining.js +64 -0
  105. package/mcp-server/tools/vendorsExpediteTimeRemaining.js.map +1 -0
  106. package/mcp-server/tools/vendorsListVendorCredentials.d.ts +8 -0
  107. package/mcp-server/tools/vendorsListVendorCredentials.d.ts.map +1 -0
  108. package/mcp-server/tools/vendorsListVendorCredentials.js +64 -0
  109. package/mcp-server/tools/vendorsListVendorCredentials.js.map +1 -0
  110. package/mcp-server/tools/vendorsListVendorInvoices.d.ts +8 -0
  111. package/mcp-server/tools/vendorsListVendorInvoices.d.ts.map +1 -0
  112. package/mcp-server/tools/vendorsListVendorInvoices.js +68 -0
  113. package/mcp-server/tools/vendorsListVendorInvoices.js.map +1 -0
  114. package/mcp-server/tools/vendorsListVendorJobTitles.js +1 -1
  115. package/mcp-server/tools/vendorsListVendorJobTitles.js.map +1 -1
  116. package/models/components/{status.d.ts → activestatus.d.ts} +8 -8
  117. package/models/components/activestatus.d.ts.map +1 -0
  118. package/models/components/{status.js → activestatus.js} +12 -13
  119. package/models/components/activestatus.js.map +1 -0
  120. package/models/components/contact.d.ts +8 -8
  121. package/models/components/contact.d.ts.map +1 -1
  122. package/models/components/contact.js +14 -13
  123. package/models/components/contact.js.map +1 -1
  124. package/models/components/credentialstatus.d.ts +49 -0
  125. package/models/components/credentialstatus.d.ts.map +1 -0
  126. package/models/components/credentialstatus.js +68 -0
  127. package/models/components/credentialstatus.js.map +1 -0
  128. package/models/components/expand.d.ts +15 -0
  129. package/models/components/expand.d.ts.map +1 -1
  130. package/models/components/expand.js +5 -0
  131. package/models/components/expand.js.map +1 -1
  132. package/models/components/index.d.ts +7 -1
  133. package/models/components/index.d.ts.map +1 -1
  134. package/models/components/index.js +7 -1
  135. package/models/components/index.js.map +1 -1
  136. package/models/components/invoice.d.ts +43 -0
  137. package/models/components/invoice.d.ts.map +1 -0
  138. package/models/components/invoice.js +91 -0
  139. package/models/components/invoice.js.map +1 -0
  140. package/models/components/invoiceitem.d.ts +40 -0
  141. package/models/components/invoiceitem.d.ts.map +1 -0
  142. package/models/components/invoiceitem.js +94 -0
  143. package/models/components/invoiceitem.js.map +1 -0
  144. package/models/components/supportarticle.d.ts +43 -0
  145. package/models/components/supportarticle.d.ts.map +1 -0
  146. package/models/components/supportarticle.js +92 -0
  147. package/models/components/supportarticle.js.map +1 -0
  148. package/models/components/vendorcredentialslim.d.ts +44 -0
  149. package/models/components/vendorcredentialslim.d.ts.map +1 -0
  150. package/models/components/vendorcredentialslim.js +94 -0
  151. package/models/components/vendorcredentialslim.js.map +1 -0
  152. package/models/components/vendorrequiredcredential.d.ts +42 -0
  153. package/models/components/vendorrequiredcredential.d.ts.map +1 -0
  154. package/models/components/vendorrequiredcredential.js +96 -0
  155. package/models/components/vendorrequiredcredential.js.map +1 -0
  156. package/models/operations/createvendorregistration.d.ts +13 -13
  157. package/models/operations/createvendorregistration.d.ts.map +1 -1
  158. package/models/operations/createvendorregistration.js +18 -16
  159. package/models/operations/createvendorregistration.js.map +1 -1
  160. package/models/operations/expeditetimeremaining.d.ts +60 -0
  161. package/models/operations/expeditetimeremaining.d.ts.map +1 -0
  162. package/models/operations/expeditetimeremaining.js +113 -0
  163. package/models/operations/expeditetimeremaining.js.map +1 -0
  164. package/models/operations/getsupportarticle.d.ts +38 -0
  165. package/models/operations/getsupportarticle.d.ts.map +1 -0
  166. package/models/operations/getsupportarticle.js +72 -0
  167. package/models/operations/getsupportarticle.js.map +1 -0
  168. package/models/operations/index.d.ts +5 -0
  169. package/models/operations/index.d.ts.map +1 -1
  170. package/models/operations/index.js +5 -0
  171. package/models/operations/index.js.map +1 -1
  172. package/models/operations/listorsearchfacilities.d.ts +40 -15
  173. package/models/operations/listorsearchfacilities.d.ts.map +1 -1
  174. package/models/operations/listorsearchfacilities.js +55 -18
  175. package/models/operations/listorsearchfacilities.js.map +1 -1
  176. package/models/operations/listorsearchsupportarticles.d.ts +106 -0
  177. package/models/operations/listorsearchsupportarticles.d.ts.map +1 -0
  178. package/models/operations/listorsearchsupportarticles.js +149 -0
  179. package/models/operations/listorsearchsupportarticles.js.map +1 -0
  180. package/models/operations/listvendorcredentials.d.ts +122 -0
  181. package/models/operations/listvendorcredentials.d.ts.map +1 -0
  182. package/models/operations/listvendorcredentials.js +169 -0
  183. package/models/operations/listvendorcredentials.js.map +1 -0
  184. package/models/operations/listvendorinvoices.d.ts +116 -0
  185. package/models/operations/listvendorinvoices.d.ts.map +1 -0
  186. package/models/operations/listvendorinvoices.js +155 -0
  187. package/models/operations/listvendorinvoices.js.map +1 -0
  188. package/models/operations/listvendorjobtitles.d.ts +38 -13
  189. package/models/operations/listvendorjobtitles.d.ts.map +1 -1
  190. package/models/operations/listvendorjobtitles.js +51 -16
  191. package/models/operations/listvendorjobtitles.js.map +1 -1
  192. package/models/operations/magiclink.d.ts +13 -13
  193. package/models/operations/magiclink.d.ts.map +1 -1
  194. package/models/operations/magiclink.js +16 -16
  195. package/models/operations/magiclink.js.map +1 -1
  196. package/models/operations/password.d.ts +13 -13
  197. package/models/operations/password.d.ts.map +1 -1
  198. package/models/operations/password.js +16 -16
  199. package/models/operations/password.js.map +1 -1
  200. package/models/operations/passwordresetrequest.d.ts +13 -13
  201. package/models/operations/passwordresetrequest.d.ts.map +1 -1
  202. package/models/operations/passwordresetrequest.js +16 -16
  203. package/models/operations/passwordresetrequest.js.map +1 -1
  204. package/package.json +1 -1
  205. package/react-query/index.d.ts +11 -6
  206. package/react-query/index.d.ts.map +1 -1
  207. package/react-query/index.js +11 -6
  208. package/react-query/index.js.map +1 -1
  209. package/react-query/organizationsListOrSearchFacilities.d.ts +57 -6
  210. package/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  211. package/react-query/organizationsListOrSearchFacilities.js +90 -1
  212. package/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  213. package/react-query/supportArticlesGetSupportArticle.d.ts +57 -0
  214. package/react-query/supportArticlesGetSupportArticle.d.ts.map +1 -0
  215. package/react-query/supportArticlesGetSupportArticle.js +113 -0
  216. package/react-query/supportArticlesGetSupportArticle.js.map +1 -0
  217. package/react-query/supportArticlesListOrSearchSupportArticles.d.ts +75 -0
  218. package/react-query/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
  219. package/react-query/supportArticlesListOrSearchSupportArticles.js +159 -0
  220. package/react-query/supportArticlesListOrSearchSupportArticles.js.map +1 -0
  221. package/react-query/usersGetCurrentUser.d.ts +29 -0
  222. package/react-query/usersGetCurrentUser.d.ts.map +1 -0
  223. package/react-query/usersGetCurrentUser.js +75 -0
  224. package/react-query/usersGetCurrentUser.js.map +1 -0
  225. package/react-query/usersGetUserById.d.ts +31 -0
  226. package/react-query/usersGetUserById.d.ts.map +1 -0
  227. package/react-query/usersGetUserById.js +87 -0
  228. package/react-query/usersGetUserById.js.map +1 -0
  229. package/react-query/{userLogsUserIntoTheSystem.d.ts → usersLogsUserIntoTheSystem.d.ts} +7 -7
  230. package/react-query/usersLogsUserIntoTheSystem.d.ts.map +1 -0
  231. package/react-query/{userLogsUserIntoTheSystem.js → usersLogsUserIntoTheSystem.js} +13 -13
  232. package/react-query/usersLogsUserIntoTheSystem.js.map +1 -0
  233. package/react-query/usersMagiclink.d.ts +23 -0
  234. package/react-query/usersMagiclink.d.ts.map +1 -0
  235. package/react-query/{userMagiclink.js → usersMagiclink.js} +13 -13
  236. package/react-query/usersMagiclink.js.map +1 -0
  237. package/react-query/usersPassword.d.ts +24 -0
  238. package/react-query/usersPassword.d.ts.map +1 -0
  239. package/react-query/{userPassword.js → usersPassword.js} +13 -13
  240. package/react-query/usersPassword.js.map +1 -0
  241. package/react-query/usersPasswordResetRequest.d.ts +23 -0
  242. package/react-query/usersPasswordResetRequest.d.ts.map +1 -0
  243. package/react-query/{userPasswordResetRequest.js → usersPasswordResetRequest.js} +13 -13
  244. package/react-query/usersPasswordResetRequest.js.map +1 -0
  245. package/react-query/vendorsCreateVendorRegistration.d.ts +1 -1
  246. package/react-query/vendorsCreateVendorRegistration.d.ts.map +1 -1
  247. package/react-query/vendorsExpediteTimeRemaining.d.ts +30 -0
  248. package/react-query/vendorsExpediteTimeRemaining.d.ts.map +1 -0
  249. package/react-query/vendorsExpediteTimeRemaining.js +96 -0
  250. package/react-query/vendorsExpediteTimeRemaining.js.map +1 -0
  251. package/react-query/vendorsListVendorCredentials.d.ts +55 -0
  252. package/react-query/vendorsListVendorCredentials.d.ts.map +1 -0
  253. package/react-query/vendorsListVendorCredentials.js +103 -0
  254. package/react-query/vendorsListVendorCredentials.js.map +1 -0
  255. package/react-query/vendorsListVendorInvoices.d.ts +96 -0
  256. package/react-query/vendorsListVendorInvoices.d.ts.map +1 -0
  257. package/react-query/vendorsListVendorInvoices.js +178 -0
  258. package/react-query/vendorsListVendorInvoices.js.map +1 -0
  259. package/react-query/vendorsListVendorJobTitles.d.ts +28 -3
  260. package/react-query/vendorsListVendorJobTitles.d.ts.map +1 -1
  261. package/react-query/vendorsListVendorJobTitles.js +59 -0
  262. package/react-query/vendorsListVendorJobTitles.js.map +1 -1
  263. package/sdk/organizations.d.ts +4 -1
  264. package/sdk/organizations.d.ts.map +1 -1
  265. package/sdk/organizations.js +2 -1
  266. package/sdk/organizations.js.map +1 -1
  267. package/sdk/sdk.d.ts +6 -3
  268. package/sdk/sdk.d.ts.map +1 -1
  269. package/sdk/sdk.js +7 -3
  270. package/sdk/sdk.js.map +1 -1
  271. package/sdk/supportarticles.d.ts +30 -0
  272. package/sdk/supportarticles.d.ts.map +1 -0
  273. package/sdk/supportarticles.js +40 -0
  274. package/sdk/supportarticles.js.map +1 -0
  275. package/sdk/{user.d.ts → users.d.ts} +5 -5
  276. package/sdk/users.d.ts.map +1 -0
  277. package/sdk/{user.js → users.js} +16 -16
  278. package/sdk/users.js.map +1 -0
  279. package/sdk/vendors.d.ts +32 -2
  280. package/sdk/vendors.d.ts.map +1 -1
  281. package/sdk/vendors.js +36 -1
  282. package/sdk/vendors.js.map +1 -1
  283. package/src/__tests__/organizations.test.ts +5 -175
  284. package/src/__tests__/supportarticles.test.ts +64 -0
  285. package/src/__tests__/user.test.ts +13 -7
  286. package/src/__tests__/vendors.test.ts +65 -2
  287. package/src/funcs/organizationsListOrSearchFacilities.ts +116 -39
  288. package/src/funcs/supportArticlesGetSupportArticle.ts +181 -0
  289. package/src/funcs/supportArticlesListOrSearchSupportArticles.ts +234 -0
  290. package/src/funcs/{userGetCurrentUser.ts → usersGetCurrentUser.ts} +1 -1
  291. package/src/funcs/{userGetUserById.ts → usersGetUserById.ts} +1 -1
  292. package/src/funcs/{userLogsUserIntoTheSystem.ts → usersLogsUserIntoTheSystem.ts} +1 -1
  293. package/src/funcs/{userMagiclink.ts → usersMagiclink.ts} +5 -5
  294. package/src/funcs/{userPassword.ts → usersPassword.ts} +5 -5
  295. package/src/funcs/{userPasswordResetRequest.ts → usersPasswordResetRequest.ts} +8 -5
  296. package/src/funcs/vendorsCreateVendorRegistration.ts +8 -4
  297. package/src/funcs/vendorsExpediteTimeRemaining.ts +171 -0
  298. package/src/funcs/vendorsListVendorCredentials.ts +169 -0
  299. package/src/funcs/vendorsListVendorInvoices.ts +255 -0
  300. package/src/funcs/vendorsListVendorJobTitles.ts +101 -30
  301. package/src/lib/config.ts +3 -3
  302. package/src/mcp-server/mcp-server.ts +1 -1
  303. package/src/mcp-server/server.ts +23 -13
  304. package/src/mcp-server/tools/organizationsListOrSearchFacilities.ts +1 -1
  305. package/src/mcp-server/tools/supportArticlesGetSupportArticle.ts +46 -0
  306. package/src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts +39 -0
  307. package/src/mcp-server/tools/{userGetCurrentUser.ts → usersGetCurrentUser.ts} +4 -4
  308. package/src/mcp-server/tools/{userGetUserById.ts → usersGetUserById.ts} +4 -4
  309. package/src/mcp-server/tools/{userLogsUserIntoTheSystem.ts → usersLogsUserIntoTheSystem.ts} +4 -4
  310. package/src/mcp-server/tools/{userMagiclink.ts → usersMagiclink.ts} +4 -4
  311. package/src/mcp-server/tools/{userPassword.ts → usersPassword.ts} +4 -4
  312. package/src/mcp-server/tools/{userPasswordResetRequest.ts → usersPasswordResetRequest.ts} +4 -4
  313. package/src/mcp-server/tools/vendorsExpediteTimeRemaining.ts +37 -0
  314. package/src/mcp-server/tools/vendorsListVendorCredentials.ts +37 -0
  315. package/src/mcp-server/tools/vendorsListVendorInvoices.ts +41 -0
  316. package/src/mcp-server/tools/vendorsListVendorJobTitles.ts +1 -1
  317. package/src/models/components/activestatus.ts +38 -0
  318. package/src/models/components/contact.ts +14 -16
  319. package/src/models/components/credentialstatus.ts +44 -0
  320. package/src/models/components/expand.ts +5 -0
  321. package/src/models/components/index.ts +7 -1
  322. package/src/models/components/invoice.ts +99 -0
  323. package/src/models/components/invoiceitem.ts +98 -0
  324. package/src/models/components/supportarticle.ts +99 -0
  325. package/src/models/components/vendorcredentialslim.ts +106 -0
  326. package/src/models/components/vendorrequiredcredential.ts +106 -0
  327. package/src/models/operations/createvendorregistration.ts +39 -32
  328. package/src/models/operations/expeditetimeremaining.ts +152 -0
  329. package/src/models/operations/getsupportarticle.ts +77 -0
  330. package/src/models/operations/index.ts +5 -0
  331. package/src/models/operations/listorsearchfacilities.ts +118 -34
  332. package/src/models/operations/listorsearchsupportarticles.ts +261 -0
  333. package/src/models/operations/listvendorcredentials.ts +281 -0
  334. package/src/models/operations/listvendorinvoices.ts +252 -0
  335. package/src/models/operations/listvendorjobtitles.ts +99 -22
  336. package/src/models/operations/magiclink.ts +21 -21
  337. package/src/models/operations/password.ts +21 -21
  338. package/src/models/operations/passwordresetrequest.ts +39 -31
  339. package/src/react-query/index.ts +11 -6
  340. package/src/react-query/organizationsListOrSearchFacilities.ts +183 -5
  341. package/src/react-query/supportArticlesGetSupportArticle.ts +192 -0
  342. package/src/react-query/supportArticlesListOrSearchSupportArticles.ts +349 -0
  343. package/src/react-query/{userGetCurrentUser.ts → usersGetCurrentUser.ts} +27 -27
  344. package/src/react-query/{userGetUserById.ts → usersGetUserById.ts} +31 -29
  345. package/src/react-query/{userLogsUserIntoTheSystem.ts → usersLogsUserIntoTheSystem.ts} +18 -18
  346. package/src/react-query/{userMagiclink.ts → usersMagiclink.ts} +18 -18
  347. package/src/react-query/{userPassword.ts → usersPassword.ts} +18 -18
  348. package/src/react-query/{userPasswordResetRequest.ts → usersPasswordResetRequest.ts} +19 -19
  349. package/src/react-query/vendorsCreateVendorRegistration.ts +1 -1
  350. package/src/react-query/vendorsExpediteTimeRemaining.ts +165 -0
  351. package/src/react-query/vendorsListVendorCredentials.ts +200 -0
  352. package/src/react-query/vendorsListVendorInvoices.ts +364 -0
  353. package/src/react-query/vendorsListVendorJobTitles.ts +149 -1
  354. package/src/sdk/organizations.ts +5 -2
  355. package/src/sdk/sdk.ts +10 -4
  356. package/src/sdk/supportarticles.ts +59 -0
  357. package/src/sdk/{user.ts → users.ts} +16 -16
  358. package/src/sdk/vendors.ts +68 -3
  359. package/funcs/userGetCurrentUser.d.ts.map +0 -1
  360. package/funcs/userGetCurrentUser.js.map +0 -1
  361. package/funcs/userGetUserById.d.ts.map +0 -1
  362. package/funcs/userGetUserById.js.map +0 -1
  363. package/funcs/userLogsUserIntoTheSystem.d.ts.map +0 -1
  364. package/funcs/userLogsUserIntoTheSystem.js.map +0 -1
  365. package/funcs/userMagiclink.d.ts.map +0 -1
  366. package/funcs/userMagiclink.js.map +0 -1
  367. package/funcs/userPassword.d.ts.map +0 -1
  368. package/funcs/userPassword.js.map +0 -1
  369. package/funcs/userPasswordResetRequest.d.ts.map +0 -1
  370. package/funcs/userPasswordResetRequest.js.map +0 -1
  371. package/models/components/status.d.ts.map +0 -1
  372. package/models/components/status.js.map +0 -1
  373. package/react-query/userGetCurrentUser.d.ts +0 -29
  374. package/react-query/userGetCurrentUser.d.ts.map +0 -1
  375. package/react-query/userGetCurrentUser.js +0 -75
  376. package/react-query/userGetCurrentUser.js.map +0 -1
  377. package/react-query/userGetUserById.d.ts +0 -31
  378. package/react-query/userGetUserById.d.ts.map +0 -1
  379. package/react-query/userGetUserById.js +0 -87
  380. package/react-query/userGetUserById.js.map +0 -1
  381. package/react-query/userLogsUserIntoTheSystem.d.ts.map +0 -1
  382. package/react-query/userLogsUserIntoTheSystem.js.map +0 -1
  383. package/react-query/userMagiclink.d.ts +0 -23
  384. package/react-query/userMagiclink.d.ts.map +0 -1
  385. package/react-query/userMagiclink.js.map +0 -1
  386. package/react-query/userPassword.d.ts +0 -24
  387. package/react-query/userPassword.d.ts.map +0 -1
  388. package/react-query/userPassword.js.map +0 -1
  389. package/react-query/userPasswordResetRequest.d.ts +0 -23
  390. package/react-query/userPasswordResetRequest.d.ts.map +0 -1
  391. package/react-query/userPasswordResetRequest.js.map +0 -1
  392. package/sdk/user.d.ts.map +0 -1
  393. package/sdk/user.js.map +0 -1
  394. package/src/models/components/status.ts +0 -38
@@ -49,13 +49,13 @@ export type ListOrSearchFacilitiesRequest = {
49
49
  *
50
50
  * > NOTE: There may be times where it makes sense to show only active objects, active and inactive, or deleted. Some objects may have a separate property for `visible` which should override this state.
51
51
  */
52
- status?: components.Status | undefined;
52
+ activeStatus?: components.ActiveStatus | undefined;
53
53
  };
54
54
 
55
55
  /**
56
56
  * The request was successful, and the server has returned the requested resource in the response body.
57
57
  */
58
- export type ListOrSearchFacilitiesResponseBody = {
58
+ export type ListOrSearchFacilitiesListOrSearchFacilitiesOk = {
59
59
  /**
60
60
  * Pagination information for a pageable list
61
61
  */
@@ -63,6 +63,10 @@ export type ListOrSearchFacilitiesResponseBody = {
63
63
  items: Array<components.Facility>;
64
64
  };
65
65
 
66
+ export type ListOrSearchFacilitiesResponse = {
67
+ result: ListOrSearchFacilitiesListOrSearchFacilitiesOk;
68
+ };
69
+
66
70
  /** @internal */
67
71
  export const ListOrSearchFacilitiesRequest$inboundSchema: z.ZodType<
68
72
  ListOrSearchFacilitiesRequest,
@@ -77,13 +81,14 @@ export const ListOrSearchFacilitiesRequest$inboundSchema: z.ZodType<
77
81
  system_id: z.number().int().optional(),
78
82
  name_like: z.string().optional(),
79
83
  state_like: z.string().optional(),
80
- status: components.Status$inboundSchema.default("Active"),
84
+ active_status: components.ActiveStatus$inboundSchema.default("Active"),
81
85
  }).transform((v) => {
82
86
  return remap$(v, {
83
87
  "items_per_page": "itemsPerPage",
84
88
  "system_id": "systemId",
85
89
  "name_like": "nameLike",
86
90
  "state_like": "stateLike",
91
+ "active_status": "activeStatus",
87
92
  });
88
93
  });
89
94
 
@@ -97,7 +102,7 @@ export type ListOrSearchFacilitiesRequest$Outbound = {
97
102
  system_id?: number | undefined;
98
103
  name_like?: string | undefined;
99
104
  state_like?: string | undefined;
100
- status: string;
105
+ active_status: string;
101
106
  };
102
107
 
103
108
  /** @internal */
@@ -114,13 +119,14 @@ export const ListOrSearchFacilitiesRequest$outboundSchema: z.ZodType<
114
119
  systemId: z.number().int().optional(),
115
120
  nameLike: z.string().optional(),
116
121
  stateLike: z.string().optional(),
117
- status: components.Status$outboundSchema.default("Active"),
122
+ activeStatus: components.ActiveStatus$outboundSchema.default("Active"),
118
123
  }).transform((v) => {
119
124
  return remap$(v, {
120
125
  itemsPerPage: "items_per_page",
121
126
  systemId: "system_id",
122
127
  nameLike: "name_like",
123
128
  stateLike: "state_like",
129
+ activeStatus: "active_status",
124
130
  });
125
131
  });
126
132
 
@@ -158,62 +164,140 @@ export function listOrSearchFacilitiesRequestFromJSON(
158
164
  }
159
165
 
160
166
  /** @internal */
161
- export const ListOrSearchFacilitiesResponseBody$inboundSchema: z.ZodType<
162
- ListOrSearchFacilitiesResponseBody,
167
+ export const ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema:
168
+ z.ZodType<
169
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk,
170
+ z.ZodTypeDef,
171
+ unknown
172
+ > = z.object({
173
+ pager: components.Pager$inboundSchema,
174
+ items: z.array(components.Facility$inboundSchema),
175
+ });
176
+
177
+ /** @internal */
178
+ export type ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound = {
179
+ pager: components.Pager$Outbound;
180
+ items: Array<components.Facility$Outbound>;
181
+ };
182
+
183
+ /** @internal */
184
+ export const ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema:
185
+ z.ZodType<
186
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound,
187
+ z.ZodTypeDef,
188
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk
189
+ > = z.object({
190
+ pager: components.Pager$outboundSchema,
191
+ items: z.array(components.Facility$outboundSchema),
192
+ });
193
+
194
+ /**
195
+ * @internal
196
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
197
+ */
198
+ export namespace ListOrSearchFacilitiesListOrSearchFacilitiesOk$ {
199
+ /** @deprecated use `ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema` instead. */
200
+ export const inboundSchema =
201
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema;
202
+ /** @deprecated use `ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema` instead. */
203
+ export const outboundSchema =
204
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema;
205
+ /** @deprecated use `ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound` instead. */
206
+ export type Outbound =
207
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound;
208
+ }
209
+
210
+ export function listOrSearchFacilitiesListOrSearchFacilitiesOkToJSON(
211
+ listOrSearchFacilitiesListOrSearchFacilitiesOk:
212
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk,
213
+ ): string {
214
+ return JSON.stringify(
215
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema.parse(
216
+ listOrSearchFacilitiesListOrSearchFacilitiesOk,
217
+ ),
218
+ );
219
+ }
220
+
221
+ export function listOrSearchFacilitiesListOrSearchFacilitiesOkFromJSON(
222
+ jsonString: string,
223
+ ): SafeParseResult<
224
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk,
225
+ SDKValidationError
226
+ > {
227
+ return safeParse(
228
+ jsonString,
229
+ (x) =>
230
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema.parse(
231
+ JSON.parse(x),
232
+ ),
233
+ `Failed to parse 'ListOrSearchFacilitiesListOrSearchFacilitiesOk' from JSON`,
234
+ );
235
+ }
236
+
237
+ /** @internal */
238
+ export const ListOrSearchFacilitiesResponse$inboundSchema: z.ZodType<
239
+ ListOrSearchFacilitiesResponse,
163
240
  z.ZodTypeDef,
164
241
  unknown
165
242
  > = z.object({
166
- pager: components.Pager$inboundSchema,
167
- items: z.array(components.Facility$inboundSchema),
243
+ Result: z.lazy(() =>
244
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema
245
+ ),
246
+ }).transform((v) => {
247
+ return remap$(v, {
248
+ "Result": "result",
249
+ });
168
250
  });
169
251
 
170
252
  /** @internal */
171
- export type ListOrSearchFacilitiesResponseBody$Outbound = {
172
- pager: components.Pager$Outbound;
173
- items: Array<components.Facility$Outbound>;
253
+ export type ListOrSearchFacilitiesResponse$Outbound = {
254
+ Result: ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound;
174
255
  };
175
256
 
176
257
  /** @internal */
177
- export const ListOrSearchFacilitiesResponseBody$outboundSchema: z.ZodType<
178
- ListOrSearchFacilitiesResponseBody$Outbound,
258
+ export const ListOrSearchFacilitiesResponse$outboundSchema: z.ZodType<
259
+ ListOrSearchFacilitiesResponse$Outbound,
179
260
  z.ZodTypeDef,
180
- ListOrSearchFacilitiesResponseBody
261
+ ListOrSearchFacilitiesResponse
181
262
  > = z.object({
182
- pager: components.Pager$outboundSchema,
183
- items: z.array(components.Facility$outboundSchema),
263
+ result: z.lazy(() =>
264
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema
265
+ ),
266
+ }).transform((v) => {
267
+ return remap$(v, {
268
+ result: "Result",
269
+ });
184
270
  });
185
271
 
186
272
  /**
187
273
  * @internal
188
274
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
189
275
  */
190
- export namespace ListOrSearchFacilitiesResponseBody$ {
191
- /** @deprecated use `ListOrSearchFacilitiesResponseBody$inboundSchema` instead. */
192
- export const inboundSchema = ListOrSearchFacilitiesResponseBody$inboundSchema;
193
- /** @deprecated use `ListOrSearchFacilitiesResponseBody$outboundSchema` instead. */
194
- export const outboundSchema =
195
- ListOrSearchFacilitiesResponseBody$outboundSchema;
196
- /** @deprecated use `ListOrSearchFacilitiesResponseBody$Outbound` instead. */
197
- export type Outbound = ListOrSearchFacilitiesResponseBody$Outbound;
276
+ export namespace ListOrSearchFacilitiesResponse$ {
277
+ /** @deprecated use `ListOrSearchFacilitiesResponse$inboundSchema` instead. */
278
+ export const inboundSchema = ListOrSearchFacilitiesResponse$inboundSchema;
279
+ /** @deprecated use `ListOrSearchFacilitiesResponse$outboundSchema` instead. */
280
+ export const outboundSchema = ListOrSearchFacilitiesResponse$outboundSchema;
281
+ /** @deprecated use `ListOrSearchFacilitiesResponse$Outbound` instead. */
282
+ export type Outbound = ListOrSearchFacilitiesResponse$Outbound;
198
283
  }
199
284
 
200
- export function listOrSearchFacilitiesResponseBodyToJSON(
201
- listOrSearchFacilitiesResponseBody: ListOrSearchFacilitiesResponseBody,
285
+ export function listOrSearchFacilitiesResponseToJSON(
286
+ listOrSearchFacilitiesResponse: ListOrSearchFacilitiesResponse,
202
287
  ): string {
203
288
  return JSON.stringify(
204
- ListOrSearchFacilitiesResponseBody$outboundSchema.parse(
205
- listOrSearchFacilitiesResponseBody,
289
+ ListOrSearchFacilitiesResponse$outboundSchema.parse(
290
+ listOrSearchFacilitiesResponse,
206
291
  ),
207
292
  );
208
293
  }
209
294
 
210
- export function listOrSearchFacilitiesResponseBodyFromJSON(
295
+ export function listOrSearchFacilitiesResponseFromJSON(
211
296
  jsonString: string,
212
- ): SafeParseResult<ListOrSearchFacilitiesResponseBody, SDKValidationError> {
297
+ ): SafeParseResult<ListOrSearchFacilitiesResponse, SDKValidationError> {
213
298
  return safeParse(
214
299
  jsonString,
215
- (x) =>
216
- ListOrSearchFacilitiesResponseBody$inboundSchema.parse(JSON.parse(x)),
217
- `Failed to parse 'ListOrSearchFacilitiesResponseBody' from JSON`,
300
+ (x) => ListOrSearchFacilitiesResponse$inboundSchema.parse(JSON.parse(x)),
301
+ `Failed to parse 'ListOrSearchFacilitiesResponse' from JSON`,
218
302
  );
219
303
  }
@@ -0,0 +1,261 @@
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 * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type ListOrSearchSupportArticlesRequest = {
13
+ /**
14
+ * A comma-separated list of object attributes to sort on.
15
+ */
16
+ sort?: string | null | undefined;
17
+ /**
18
+ * Sort desc
19
+ */
20
+ desc?: components.Desc | undefined;
21
+ /**
22
+ * A 1-based offset for which page to request (defaults to 1)
23
+ */
24
+ page?: number | undefined;
25
+ /**
26
+ * Number of items to show in a given page
27
+ */
28
+ itemsPerPage?: number | undefined;
29
+ };
30
+
31
+ /**
32
+ * The request was successful, and the server has returned the requested resource in the response body.
33
+ */
34
+ export type ListOrSearchSupportArticlesListOrSearchArticlesOk = {
35
+ /**
36
+ * Pagination information for a pageable list
37
+ */
38
+ pager: components.Pager;
39
+ items: Array<components.SupportArticle>;
40
+ };
41
+
42
+ export type ListOrSearchSupportArticlesResponse = {
43
+ result: ListOrSearchSupportArticlesListOrSearchArticlesOk;
44
+ };
45
+
46
+ /** @internal */
47
+ export const ListOrSearchSupportArticlesRequest$inboundSchema: z.ZodType<
48
+ ListOrSearchSupportArticlesRequest,
49
+ z.ZodTypeDef,
50
+ unknown
51
+ > = z.object({
52
+ sort: z.nullable(z.string()).optional(),
53
+ desc: components.Desc$inboundSchema.optional(),
54
+ page: z.number().int().optional(),
55
+ items_per_page: z.number().int().optional(),
56
+ }).transform((v) => {
57
+ return remap$(v, {
58
+ "items_per_page": "itemsPerPage",
59
+ });
60
+ });
61
+
62
+ /** @internal */
63
+ export type ListOrSearchSupportArticlesRequest$Outbound = {
64
+ sort?: string | null | undefined;
65
+ desc?: components.Desc$Outbound | undefined;
66
+ page?: number | undefined;
67
+ items_per_page?: number | undefined;
68
+ };
69
+
70
+ /** @internal */
71
+ export const ListOrSearchSupportArticlesRequest$outboundSchema: z.ZodType<
72
+ ListOrSearchSupportArticlesRequest$Outbound,
73
+ z.ZodTypeDef,
74
+ ListOrSearchSupportArticlesRequest
75
+ > = z.object({
76
+ sort: z.nullable(z.string()).optional(),
77
+ desc: components.Desc$outboundSchema.optional(),
78
+ page: z.number().int().optional(),
79
+ itemsPerPage: z.number().int().optional(),
80
+ }).transform((v) => {
81
+ return remap$(v, {
82
+ itemsPerPage: "items_per_page",
83
+ });
84
+ });
85
+
86
+ /**
87
+ * @internal
88
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
89
+ */
90
+ export namespace ListOrSearchSupportArticlesRequest$ {
91
+ /** @deprecated use `ListOrSearchSupportArticlesRequest$inboundSchema` instead. */
92
+ export const inboundSchema = ListOrSearchSupportArticlesRequest$inboundSchema;
93
+ /** @deprecated use `ListOrSearchSupportArticlesRequest$outboundSchema` instead. */
94
+ export const outboundSchema =
95
+ ListOrSearchSupportArticlesRequest$outboundSchema;
96
+ /** @deprecated use `ListOrSearchSupportArticlesRequest$Outbound` instead. */
97
+ export type Outbound = ListOrSearchSupportArticlesRequest$Outbound;
98
+ }
99
+
100
+ export function listOrSearchSupportArticlesRequestToJSON(
101
+ listOrSearchSupportArticlesRequest: ListOrSearchSupportArticlesRequest,
102
+ ): string {
103
+ return JSON.stringify(
104
+ ListOrSearchSupportArticlesRequest$outboundSchema.parse(
105
+ listOrSearchSupportArticlesRequest,
106
+ ),
107
+ );
108
+ }
109
+
110
+ export function listOrSearchSupportArticlesRequestFromJSON(
111
+ jsonString: string,
112
+ ): SafeParseResult<ListOrSearchSupportArticlesRequest, SDKValidationError> {
113
+ return safeParse(
114
+ jsonString,
115
+ (x) =>
116
+ ListOrSearchSupportArticlesRequest$inboundSchema.parse(JSON.parse(x)),
117
+ `Failed to parse 'ListOrSearchSupportArticlesRequest' from JSON`,
118
+ );
119
+ }
120
+
121
+ /** @internal */
122
+ export const ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema:
123
+ z.ZodType<
124
+ ListOrSearchSupportArticlesListOrSearchArticlesOk,
125
+ z.ZodTypeDef,
126
+ unknown
127
+ > = z.object({
128
+ pager: components.Pager$inboundSchema,
129
+ items: z.array(components.SupportArticle$inboundSchema),
130
+ });
131
+
132
+ /** @internal */
133
+ export type ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound = {
134
+ pager: components.Pager$Outbound;
135
+ items: Array<components.SupportArticle$Outbound>;
136
+ };
137
+
138
+ /** @internal */
139
+ export const ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema:
140
+ z.ZodType<
141
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound,
142
+ z.ZodTypeDef,
143
+ ListOrSearchSupportArticlesListOrSearchArticlesOk
144
+ > = z.object({
145
+ pager: components.Pager$outboundSchema,
146
+ items: z.array(components.SupportArticle$outboundSchema),
147
+ });
148
+
149
+ /**
150
+ * @internal
151
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
152
+ */
153
+ export namespace ListOrSearchSupportArticlesListOrSearchArticlesOk$ {
154
+ /** @deprecated use `ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema` instead. */
155
+ export const inboundSchema =
156
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema;
157
+ /** @deprecated use `ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema` instead. */
158
+ export const outboundSchema =
159
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema;
160
+ /** @deprecated use `ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound` instead. */
161
+ export type Outbound =
162
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound;
163
+ }
164
+
165
+ export function listOrSearchSupportArticlesListOrSearchArticlesOkToJSON(
166
+ listOrSearchSupportArticlesListOrSearchArticlesOk:
167
+ ListOrSearchSupportArticlesListOrSearchArticlesOk,
168
+ ): string {
169
+ return JSON.stringify(
170
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema.parse(
171
+ listOrSearchSupportArticlesListOrSearchArticlesOk,
172
+ ),
173
+ );
174
+ }
175
+
176
+ export function listOrSearchSupportArticlesListOrSearchArticlesOkFromJSON(
177
+ jsonString: string,
178
+ ): SafeParseResult<
179
+ ListOrSearchSupportArticlesListOrSearchArticlesOk,
180
+ SDKValidationError
181
+ > {
182
+ return safeParse(
183
+ jsonString,
184
+ (x) =>
185
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema.parse(
186
+ JSON.parse(x),
187
+ ),
188
+ `Failed to parse 'ListOrSearchSupportArticlesListOrSearchArticlesOk' from JSON`,
189
+ );
190
+ }
191
+
192
+ /** @internal */
193
+ export const ListOrSearchSupportArticlesResponse$inboundSchema: z.ZodType<
194
+ ListOrSearchSupportArticlesResponse,
195
+ z.ZodTypeDef,
196
+ unknown
197
+ > = z.object({
198
+ Result: z.lazy(() =>
199
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema
200
+ ),
201
+ }).transform((v) => {
202
+ return remap$(v, {
203
+ "Result": "result",
204
+ });
205
+ });
206
+
207
+ /** @internal */
208
+ export type ListOrSearchSupportArticlesResponse$Outbound = {
209
+ Result: ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound;
210
+ };
211
+
212
+ /** @internal */
213
+ export const ListOrSearchSupportArticlesResponse$outboundSchema: z.ZodType<
214
+ ListOrSearchSupportArticlesResponse$Outbound,
215
+ z.ZodTypeDef,
216
+ ListOrSearchSupportArticlesResponse
217
+ > = z.object({
218
+ result: z.lazy(() =>
219
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema
220
+ ),
221
+ }).transform((v) => {
222
+ return remap$(v, {
223
+ result: "Result",
224
+ });
225
+ });
226
+
227
+ /**
228
+ * @internal
229
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
230
+ */
231
+ export namespace ListOrSearchSupportArticlesResponse$ {
232
+ /** @deprecated use `ListOrSearchSupportArticlesResponse$inboundSchema` instead. */
233
+ export const inboundSchema =
234
+ ListOrSearchSupportArticlesResponse$inboundSchema;
235
+ /** @deprecated use `ListOrSearchSupportArticlesResponse$outboundSchema` instead. */
236
+ export const outboundSchema =
237
+ ListOrSearchSupportArticlesResponse$outboundSchema;
238
+ /** @deprecated use `ListOrSearchSupportArticlesResponse$Outbound` instead. */
239
+ export type Outbound = ListOrSearchSupportArticlesResponse$Outbound;
240
+ }
241
+
242
+ export function listOrSearchSupportArticlesResponseToJSON(
243
+ listOrSearchSupportArticlesResponse: ListOrSearchSupportArticlesResponse,
244
+ ): string {
245
+ return JSON.stringify(
246
+ ListOrSearchSupportArticlesResponse$outboundSchema.parse(
247
+ listOrSearchSupportArticlesResponse,
248
+ ),
249
+ );
250
+ }
251
+
252
+ export function listOrSearchSupportArticlesResponseFromJSON(
253
+ jsonString: string,
254
+ ): SafeParseResult<ListOrSearchSupportArticlesResponse, SDKValidationError> {
255
+ return safeParse(
256
+ jsonString,
257
+ (x) =>
258
+ ListOrSearchSupportArticlesResponse$inboundSchema.parse(JSON.parse(x)),
259
+ `Failed to parse 'ListOrSearchSupportArticlesResponse' from JSON`,
260
+ );
261
+ }