@greensecurity/javascript-sdk 0.15.0 → 0.16.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 (333) hide show
  1. package/README.md +31 -19
  2. package/bin/mcp-server.js +834 -198
  3. package/bin/mcp-server.js.map +45 -32
  4. package/funcs/organizationsListOrSearchFacilities.d.ts +1 -1
  5. package/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -1
  6. package/funcs/organizationsListOrSearchFacilities.js +2 -2
  7. package/funcs/organizationsListOrSearchFacilities.js.map +1 -1
  8. package/funcs/supportArticlesGetSupportArticle.d.ts +25 -0
  9. package/funcs/supportArticlesGetSupportArticle.d.ts.map +1 -0
  10. package/funcs/supportArticlesGetSupportArticle.js +132 -0
  11. package/funcs/supportArticlesGetSupportArticle.js.map +1 -0
  12. package/funcs/supportArticlesListOrSearchSupportArticles.d.ts +16 -0
  13. package/funcs/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
  14. package/funcs/supportArticlesListOrSearchSupportArticles.js +118 -0
  15. package/funcs/supportArticlesListOrSearchSupportArticles.js.map +1 -0
  16. package/funcs/{userGetCurrentUser.d.ts → usersGetCurrentUser.d.ts} +2 -2
  17. package/funcs/usersGetCurrentUser.d.ts.map +1 -0
  18. package/funcs/{userGetCurrentUser.js → usersGetCurrentUser.js} +3 -3
  19. package/funcs/usersGetCurrentUser.js.map +1 -0
  20. package/funcs/{userGetUserById.d.ts → usersGetUserById.d.ts} +2 -2
  21. package/funcs/usersGetUserById.d.ts.map +1 -0
  22. package/funcs/{userGetUserById.js → usersGetUserById.js} +3 -3
  23. package/funcs/usersGetUserById.js.map +1 -0
  24. package/funcs/{userLogsUserIntoTheSystem.d.ts → usersLogsUserIntoTheSystem.d.ts} +2 -2
  25. package/funcs/usersLogsUserIntoTheSystem.d.ts.map +1 -0
  26. package/funcs/{userLogsUserIntoTheSystem.js → usersLogsUserIntoTheSystem.js} +3 -3
  27. package/funcs/usersLogsUserIntoTheSystem.js.map +1 -0
  28. package/funcs/{userMagiclink.d.ts → usersMagiclink.d.ts} +2 -2
  29. package/funcs/usersMagiclink.d.ts.map +1 -0
  30. package/funcs/{userMagiclink.js → usersMagiclink.js} +4 -4
  31. package/funcs/usersMagiclink.js.map +1 -0
  32. package/funcs/{userPassword.d.ts → usersPassword.d.ts} +2 -2
  33. package/funcs/usersPassword.d.ts.map +1 -0
  34. package/funcs/{userPassword.js → usersPassword.js} +4 -4
  35. package/funcs/usersPassword.js.map +1 -0
  36. package/funcs/{userPasswordResetRequest.d.ts → usersPasswordResetRequest.d.ts} +2 -2
  37. package/funcs/usersPasswordResetRequest.d.ts.map +1 -0
  38. package/funcs/{userPasswordResetRequest.js → usersPasswordResetRequest.js} +4 -4
  39. package/funcs/usersPasswordResetRequest.js.map +1 -0
  40. package/funcs/vendorsCreateVendorRegistration.d.ts +1 -1
  41. package/funcs/vendorsCreateVendorRegistration.d.ts.map +1 -1
  42. package/funcs/vendorsCreateVendorRegistration.js +2 -1
  43. package/funcs/vendorsCreateVendorRegistration.js.map +1 -1
  44. package/funcs/vendorsListVendorCredentials.d.ts +16 -0
  45. package/funcs/vendorsListVendorCredentials.d.ts.map +1 -0
  46. package/funcs/vendorsListVendorCredentials.js +124 -0
  47. package/funcs/vendorsListVendorCredentials.js.map +1 -0
  48. package/funcs/vendorsListVendorJobTitles.d.ts +1 -1
  49. package/funcs/vendorsListVendorJobTitles.d.ts.map +1 -1
  50. package/funcs/vendorsListVendorJobTitles.js +1 -1
  51. package/funcs/vendorsListVendorJobTitles.js.map +1 -1
  52. package/jsr.json +1 -1
  53. package/lib/config.d.ts +3 -3
  54. package/lib/config.js +3 -3
  55. package/mcp-server/mcp-server.js +1 -1
  56. package/mcp-server/server.d.ts.map +1 -1
  57. package/mcp-server/server.js +19 -13
  58. package/mcp-server/server.js.map +1 -1
  59. package/mcp-server/tools/supportArticlesGetSupportArticle.d.ts +8 -0
  60. package/mcp-server/tools/supportArticlesGetSupportArticle.d.ts.map +1 -0
  61. package/mcp-server/tools/supportArticlesGetSupportArticle.js +71 -0
  62. package/mcp-server/tools/supportArticlesGetSupportArticle.js.map +1 -0
  63. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.d.ts +8 -0
  64. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
  65. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js +64 -0
  66. package/mcp-server/tools/supportArticlesListOrSearchSupportArticles.js.map +1 -0
  67. package/mcp-server/tools/usersGetCurrentUser.d.ts +3 -0
  68. package/mcp-server/tools/usersGetCurrentUser.d.ts.map +1 -0
  69. package/mcp-server/tools/usersGetCurrentUser.js +26 -0
  70. package/mcp-server/tools/usersGetCurrentUser.js.map +1 -0
  71. package/mcp-server/tools/usersGetUserById.d.ts +8 -0
  72. package/mcp-server/tools/usersGetUserById.d.ts.map +1 -0
  73. package/mcp-server/tools/usersGetUserById.js +64 -0
  74. package/mcp-server/tools/usersGetUserById.js.map +1 -0
  75. package/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts +8 -0
  76. package/mcp-server/tools/usersLogsUserIntoTheSystem.d.ts.map +1 -0
  77. package/mcp-server/tools/usersLogsUserIntoTheSystem.js +94 -0
  78. package/mcp-server/tools/usersLogsUserIntoTheSystem.js.map +1 -0
  79. package/mcp-server/tools/usersMagiclink.d.ts +8 -0
  80. package/mcp-server/tools/usersMagiclink.d.ts.map +1 -0
  81. package/mcp-server/tools/usersMagiclink.js +64 -0
  82. package/mcp-server/tools/usersMagiclink.js.map +1 -0
  83. package/mcp-server/tools/usersPassword.d.ts +8 -0
  84. package/mcp-server/tools/usersPassword.d.ts.map +1 -0
  85. package/mcp-server/tools/usersPassword.js +65 -0
  86. package/mcp-server/tools/usersPassword.js.map +1 -0
  87. package/mcp-server/tools/usersPasswordResetRequest.d.ts +8 -0
  88. package/mcp-server/tools/usersPasswordResetRequest.d.ts.map +1 -0
  89. package/mcp-server/tools/usersPasswordResetRequest.js +64 -0
  90. package/mcp-server/tools/usersPasswordResetRequest.js.map +1 -0
  91. package/mcp-server/tools/vendorsListVendorCredentials.d.ts +8 -0
  92. package/mcp-server/tools/vendorsListVendorCredentials.d.ts.map +1 -0
  93. package/mcp-server/tools/vendorsListVendorCredentials.js +64 -0
  94. package/mcp-server/tools/vendorsListVendorCredentials.js.map +1 -0
  95. package/models/components/{status.d.ts → activestatus.d.ts} +8 -8
  96. package/models/components/activestatus.d.ts.map +1 -0
  97. package/models/components/{status.js → activestatus.js} +12 -13
  98. package/models/components/activestatus.js.map +1 -0
  99. package/models/components/contact.d.ts +8 -8
  100. package/models/components/contact.d.ts.map +1 -1
  101. package/models/components/contact.js +14 -13
  102. package/models/components/contact.js.map +1 -1
  103. package/models/components/credentialstatus.d.ts +49 -0
  104. package/models/components/credentialstatus.d.ts.map +1 -0
  105. package/models/components/credentialstatus.js +68 -0
  106. package/models/components/credentialstatus.js.map +1 -0
  107. package/models/components/expand.d.ts +12 -0
  108. package/models/components/expand.d.ts.map +1 -1
  109. package/models/components/expand.js +4 -0
  110. package/models/components/expand.js.map +1 -1
  111. package/models/components/index.d.ts +5 -1
  112. package/models/components/index.d.ts.map +1 -1
  113. package/models/components/index.js +5 -1
  114. package/models/components/index.js.map +1 -1
  115. package/models/components/supportarticle.d.ts +43 -0
  116. package/models/components/supportarticle.d.ts.map +1 -0
  117. package/models/components/supportarticle.js +92 -0
  118. package/models/components/supportarticle.js.map +1 -0
  119. package/models/components/vendorcredentialslim.d.ts +44 -0
  120. package/models/components/vendorcredentialslim.d.ts.map +1 -0
  121. package/models/components/vendorcredentialslim.js +94 -0
  122. package/models/components/vendorcredentialslim.js.map +1 -0
  123. package/models/components/vendorrequiredcredential.d.ts +42 -0
  124. package/models/components/vendorrequiredcredential.d.ts.map +1 -0
  125. package/models/components/vendorrequiredcredential.js +96 -0
  126. package/models/components/vendorrequiredcredential.js.map +1 -0
  127. package/models/operations/createvendorregistration.d.ts +13 -13
  128. package/models/operations/createvendorregistration.d.ts.map +1 -1
  129. package/models/operations/createvendorregistration.js +18 -16
  130. package/models/operations/createvendorregistration.js.map +1 -1
  131. package/models/operations/getsupportarticle.d.ts +38 -0
  132. package/models/operations/getsupportarticle.d.ts.map +1 -0
  133. package/models/operations/getsupportarticle.js +72 -0
  134. package/models/operations/getsupportarticle.js.map +1 -0
  135. package/models/operations/index.d.ts +3 -0
  136. package/models/operations/index.d.ts.map +1 -1
  137. package/models/operations/index.js +3 -0
  138. package/models/operations/index.js.map +1 -1
  139. package/models/operations/listorsearchfacilities.d.ts +15 -15
  140. package/models/operations/listorsearchfacilities.d.ts.map +1 -1
  141. package/models/operations/listorsearchfacilities.js +20 -18
  142. package/models/operations/listorsearchfacilities.js.map +1 -1
  143. package/models/operations/listorsearchsupportarticles.d.ts +81 -0
  144. package/models/operations/listorsearchsupportarticles.d.ts.map +1 -0
  145. package/models/operations/listorsearchsupportarticles.js +114 -0
  146. package/models/operations/listorsearchsupportarticles.js.map +1 -0
  147. package/models/operations/listvendorcredentials.d.ts +122 -0
  148. package/models/operations/listvendorcredentials.d.ts.map +1 -0
  149. package/models/operations/listvendorcredentials.js +169 -0
  150. package/models/operations/listvendorcredentials.js.map +1 -0
  151. package/models/operations/listvendorjobtitles.d.ts +13 -13
  152. package/models/operations/listvendorjobtitles.d.ts.map +1 -1
  153. package/models/operations/listvendorjobtitles.js +16 -16
  154. package/models/operations/listvendorjobtitles.js.map +1 -1
  155. package/models/operations/magiclink.d.ts +13 -13
  156. package/models/operations/magiclink.d.ts.map +1 -1
  157. package/models/operations/magiclink.js +16 -16
  158. package/models/operations/magiclink.js.map +1 -1
  159. package/models/operations/password.d.ts +13 -13
  160. package/models/operations/password.d.ts.map +1 -1
  161. package/models/operations/password.js +16 -16
  162. package/models/operations/password.js.map +1 -1
  163. package/models/operations/passwordresetrequest.d.ts +13 -13
  164. package/models/operations/passwordresetrequest.d.ts.map +1 -1
  165. package/models/operations/passwordresetrequest.js +16 -16
  166. package/models/operations/passwordresetrequest.js.map +1 -1
  167. package/package.json +1 -1
  168. package/react-query/index.d.ts +9 -6
  169. package/react-query/index.d.ts.map +1 -1
  170. package/react-query/index.js +9 -6
  171. package/react-query/index.js.map +1 -1
  172. package/react-query/organizationsListOrSearchFacilities.d.ts +4 -4
  173. package/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -1
  174. package/react-query/organizationsListOrSearchFacilities.js +1 -1
  175. package/react-query/organizationsListOrSearchFacilities.js.map +1 -1
  176. package/react-query/supportArticlesGetSupportArticle.d.ts +57 -0
  177. package/react-query/supportArticlesGetSupportArticle.d.ts.map +1 -0
  178. package/react-query/supportArticlesGetSupportArticle.js +113 -0
  179. package/react-query/supportArticlesGetSupportArticle.js.map +1 -0
  180. package/react-query/supportArticlesListOrSearchSupportArticles.d.ts +50 -0
  181. package/react-query/supportArticlesListOrSearchSupportArticles.d.ts.map +1 -0
  182. package/react-query/supportArticlesListOrSearchSupportArticles.js +101 -0
  183. package/react-query/supportArticlesListOrSearchSupportArticles.js.map +1 -0
  184. package/react-query/usersGetCurrentUser.d.ts +29 -0
  185. package/react-query/usersGetCurrentUser.d.ts.map +1 -0
  186. package/react-query/usersGetCurrentUser.js +75 -0
  187. package/react-query/usersGetCurrentUser.js.map +1 -0
  188. package/react-query/usersGetUserById.d.ts +31 -0
  189. package/react-query/usersGetUserById.d.ts.map +1 -0
  190. package/react-query/usersGetUserById.js +87 -0
  191. package/react-query/usersGetUserById.js.map +1 -0
  192. package/react-query/{userLogsUserIntoTheSystem.d.ts → usersLogsUserIntoTheSystem.d.ts} +7 -7
  193. package/react-query/usersLogsUserIntoTheSystem.d.ts.map +1 -0
  194. package/react-query/{userLogsUserIntoTheSystem.js → usersLogsUserIntoTheSystem.js} +13 -13
  195. package/react-query/usersLogsUserIntoTheSystem.js.map +1 -0
  196. package/react-query/usersMagiclink.d.ts +23 -0
  197. package/react-query/usersMagiclink.d.ts.map +1 -0
  198. package/react-query/{userMagiclink.js → usersMagiclink.js} +13 -13
  199. package/react-query/usersMagiclink.js.map +1 -0
  200. package/react-query/usersPassword.d.ts +24 -0
  201. package/react-query/usersPassword.d.ts.map +1 -0
  202. package/react-query/{userPassword.js → usersPassword.js} +13 -13
  203. package/react-query/usersPassword.js.map +1 -0
  204. package/react-query/usersPasswordResetRequest.d.ts +23 -0
  205. package/react-query/usersPasswordResetRequest.d.ts.map +1 -0
  206. package/react-query/{userPasswordResetRequest.js → usersPasswordResetRequest.js} +13 -13
  207. package/react-query/usersPasswordResetRequest.js.map +1 -0
  208. package/react-query/vendorsCreateVendorRegistration.d.ts +1 -1
  209. package/react-query/vendorsCreateVendorRegistration.d.ts.map +1 -1
  210. package/react-query/vendorsListVendorCredentials.d.ts +55 -0
  211. package/react-query/vendorsListVendorCredentials.d.ts.map +1 -0
  212. package/react-query/vendorsListVendorCredentials.js +103 -0
  213. package/react-query/vendorsListVendorCredentials.js.map +1 -0
  214. package/react-query/vendorsListVendorJobTitles.d.ts +1 -1
  215. package/react-query/vendorsListVendorJobTitles.d.ts.map +1 -1
  216. package/sdk/organizations.d.ts +1 -1
  217. package/sdk/organizations.d.ts.map +1 -1
  218. package/sdk/sdk.d.ts +6 -3
  219. package/sdk/sdk.d.ts.map +1 -1
  220. package/sdk/sdk.js +7 -3
  221. package/sdk/sdk.js.map +1 -1
  222. package/sdk/supportarticles.d.ts +27 -0
  223. package/sdk/supportarticles.d.ts.map +1 -0
  224. package/sdk/supportarticles.js +39 -0
  225. package/sdk/supportarticles.js.map +1 -0
  226. package/sdk/{user.d.ts → users.d.ts} +5 -5
  227. package/sdk/users.d.ts.map +1 -0
  228. package/sdk/{user.js → users.js} +16 -16
  229. package/sdk/users.js.map +1 -0
  230. package/sdk/vendors.d.ts +9 -2
  231. package/sdk/vendors.d.ts.map +1 -1
  232. package/sdk/vendors.js +10 -0
  233. package/sdk/vendors.js.map +1 -1
  234. package/src/__tests__/organizations.test.ts +5 -175
  235. package/src/__tests__/supportarticles.test.ts +63 -0
  236. package/src/__tests__/user.test.ts +13 -7
  237. package/src/__tests__/vendors.test.ts +7 -1
  238. package/src/funcs/organizationsListOrSearchFacilities.ts +8 -5
  239. package/src/funcs/supportArticlesGetSupportArticle.ts +181 -0
  240. package/src/funcs/supportArticlesListOrSearchSupportArticles.ts +165 -0
  241. package/src/funcs/{userGetCurrentUser.ts → usersGetCurrentUser.ts} +1 -1
  242. package/src/funcs/{userGetUserById.ts → usersGetUserById.ts} +1 -1
  243. package/src/funcs/{userLogsUserIntoTheSystem.ts → usersLogsUserIntoTheSystem.ts} +1 -1
  244. package/src/funcs/{userMagiclink.ts → usersMagiclink.ts} +5 -5
  245. package/src/funcs/{userPassword.ts → usersPassword.ts} +5 -5
  246. package/src/funcs/{userPasswordResetRequest.ts → usersPasswordResetRequest.ts} +8 -5
  247. package/src/funcs/vendorsCreateVendorRegistration.ts +8 -4
  248. package/src/funcs/vendorsListVendorCredentials.ts +169 -0
  249. package/src/funcs/vendorsListVendorJobTitles.ts +7 -4
  250. package/src/lib/config.ts +3 -3
  251. package/src/mcp-server/mcp-server.ts +1 -1
  252. package/src/mcp-server/server.ts +19 -13
  253. package/src/mcp-server/tools/supportArticlesGetSupportArticle.ts +46 -0
  254. package/src/mcp-server/tools/supportArticlesListOrSearchSupportArticles.ts +39 -0
  255. package/src/mcp-server/tools/{userGetCurrentUser.ts → usersGetCurrentUser.ts} +4 -4
  256. package/src/mcp-server/tools/{userGetUserById.ts → usersGetUserById.ts} +4 -4
  257. package/src/mcp-server/tools/{userLogsUserIntoTheSystem.ts → usersLogsUserIntoTheSystem.ts} +4 -4
  258. package/src/mcp-server/tools/{userMagiclink.ts → usersMagiclink.ts} +4 -4
  259. package/src/mcp-server/tools/{userPassword.ts → usersPassword.ts} +4 -4
  260. package/src/mcp-server/tools/{userPasswordResetRequest.ts → usersPasswordResetRequest.ts} +4 -4
  261. package/src/mcp-server/tools/vendorsListVendorCredentials.ts +37 -0
  262. package/src/models/components/activestatus.ts +38 -0
  263. package/src/models/components/contact.ts +14 -16
  264. package/src/models/components/credentialstatus.ts +44 -0
  265. package/src/models/components/expand.ts +4 -0
  266. package/src/models/components/index.ts +5 -1
  267. package/src/models/components/supportarticle.ts +99 -0
  268. package/src/models/components/vendorcredentialslim.ts +106 -0
  269. package/src/models/components/vendorrequiredcredential.ts +106 -0
  270. package/src/models/operations/createvendorregistration.ts +39 -32
  271. package/src/models/operations/getsupportarticle.ts +77 -0
  272. package/src/models/operations/index.ts +3 -0
  273. package/src/models/operations/listorsearchfacilities.ts +49 -37
  274. package/src/models/operations/listorsearchsupportarticles.ts +186 -0
  275. package/src/models/operations/listvendorcredentials.ts +281 -0
  276. package/src/models/operations/listvendorjobtitles.ts +31 -22
  277. package/src/models/operations/magiclink.ts +21 -21
  278. package/src/models/operations/password.ts +21 -21
  279. package/src/models/operations/passwordresetrequest.ts +39 -31
  280. package/src/react-query/index.ts +9 -6
  281. package/src/react-query/organizationsListOrSearchFacilities.ts +5 -5
  282. package/src/react-query/supportArticlesGetSupportArticle.ts +192 -0
  283. package/src/react-query/supportArticlesListOrSearchSupportArticles.ts +201 -0
  284. package/src/react-query/{userGetCurrentUser.ts → usersGetCurrentUser.ts} +27 -27
  285. package/src/react-query/{userGetUserById.ts → usersGetUserById.ts} +31 -29
  286. package/src/react-query/{userLogsUserIntoTheSystem.ts → usersLogsUserIntoTheSystem.ts} +18 -18
  287. package/src/react-query/{userMagiclink.ts → usersMagiclink.ts} +18 -18
  288. package/src/react-query/{userPassword.ts → usersPassword.ts} +18 -18
  289. package/src/react-query/{userPasswordResetRequest.ts → usersPasswordResetRequest.ts} +19 -19
  290. package/src/react-query/vendorsCreateVendorRegistration.ts +1 -1
  291. package/src/react-query/vendorsListVendorCredentials.ts +200 -0
  292. package/src/react-query/vendorsListVendorJobTitles.ts +1 -1
  293. package/src/sdk/organizations.ts +1 -1
  294. package/src/sdk/sdk.ts +10 -4
  295. package/src/sdk/supportarticles.ts +53 -0
  296. package/src/sdk/{user.ts → users.ts} +16 -16
  297. package/src/sdk/vendors.ts +22 -2
  298. package/funcs/userGetCurrentUser.d.ts.map +0 -1
  299. package/funcs/userGetCurrentUser.js.map +0 -1
  300. package/funcs/userGetUserById.d.ts.map +0 -1
  301. package/funcs/userGetUserById.js.map +0 -1
  302. package/funcs/userLogsUserIntoTheSystem.d.ts.map +0 -1
  303. package/funcs/userLogsUserIntoTheSystem.js.map +0 -1
  304. package/funcs/userMagiclink.d.ts.map +0 -1
  305. package/funcs/userMagiclink.js.map +0 -1
  306. package/funcs/userPassword.d.ts.map +0 -1
  307. package/funcs/userPassword.js.map +0 -1
  308. package/funcs/userPasswordResetRequest.d.ts.map +0 -1
  309. package/funcs/userPasswordResetRequest.js.map +0 -1
  310. package/models/components/status.d.ts.map +0 -1
  311. package/models/components/status.js.map +0 -1
  312. package/react-query/userGetCurrentUser.d.ts +0 -29
  313. package/react-query/userGetCurrentUser.d.ts.map +0 -1
  314. package/react-query/userGetCurrentUser.js +0 -75
  315. package/react-query/userGetCurrentUser.js.map +0 -1
  316. package/react-query/userGetUserById.d.ts +0 -31
  317. package/react-query/userGetUserById.d.ts.map +0 -1
  318. package/react-query/userGetUserById.js +0 -87
  319. package/react-query/userGetUserById.js.map +0 -1
  320. package/react-query/userLogsUserIntoTheSystem.d.ts.map +0 -1
  321. package/react-query/userLogsUserIntoTheSystem.js.map +0 -1
  322. package/react-query/userMagiclink.d.ts +0 -23
  323. package/react-query/userMagiclink.d.ts.map +0 -1
  324. package/react-query/userMagiclink.js.map +0 -1
  325. package/react-query/userPassword.d.ts +0 -24
  326. package/react-query/userPassword.d.ts.map +0 -1
  327. package/react-query/userPassword.js.map +0 -1
  328. package/react-query/userPasswordResetRequest.d.ts +0 -23
  329. package/react-query/userPasswordResetRequest.d.ts.map +0 -1
  330. package/react-query/userPasswordResetRequest.js.map +0 -1
  331. package/sdk/user.d.ts.map +0 -1
  332. package/sdk/user.js.map +0 -1
  333. 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
  */
@@ -77,13 +77,14 @@ export const ListOrSearchFacilitiesRequest$inboundSchema: z.ZodType<
77
77
  system_id: z.number().int().optional(),
78
78
  name_like: z.string().optional(),
79
79
  state_like: z.string().optional(),
80
- status: components.Status$inboundSchema.default("Active"),
80
+ active_status: components.ActiveStatus$inboundSchema.default("Active"),
81
81
  }).transform((v) => {
82
82
  return remap$(v, {
83
83
  "items_per_page": "itemsPerPage",
84
84
  "system_id": "systemId",
85
85
  "name_like": "nameLike",
86
86
  "state_like": "stateLike",
87
+ "active_status": "activeStatus",
87
88
  });
88
89
  });
89
90
 
@@ -97,7 +98,7 @@ export type ListOrSearchFacilitiesRequest$Outbound = {
97
98
  system_id?: number | undefined;
98
99
  name_like?: string | undefined;
99
100
  state_like?: string | undefined;
100
- status: string;
101
+ active_status: string;
101
102
  };
102
103
 
103
104
  /** @internal */
@@ -114,13 +115,14 @@ export const ListOrSearchFacilitiesRequest$outboundSchema: z.ZodType<
114
115
  systemId: z.number().int().optional(),
115
116
  nameLike: z.string().optional(),
116
117
  stateLike: z.string().optional(),
117
- status: components.Status$outboundSchema.default("Active"),
118
+ activeStatus: components.ActiveStatus$outboundSchema.default("Active"),
118
119
  }).transform((v) => {
119
120
  return remap$(v, {
120
121
  itemsPerPage: "items_per_page",
121
122
  systemId: "system_id",
122
123
  nameLike: "name_like",
123
124
  stateLike: "state_like",
125
+ activeStatus: "active_status",
124
126
  });
125
127
  });
126
128
 
@@ -158,62 +160,72 @@ export function listOrSearchFacilitiesRequestFromJSON(
158
160
  }
159
161
 
160
162
  /** @internal */
161
- export const ListOrSearchFacilitiesResponseBody$inboundSchema: z.ZodType<
162
- ListOrSearchFacilitiesResponseBody,
163
- z.ZodTypeDef,
164
- unknown
165
- > = z.object({
166
- pager: components.Pager$inboundSchema,
167
- items: z.array(components.Facility$inboundSchema),
168
- });
163
+ export const ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema:
164
+ z.ZodType<
165
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk,
166
+ z.ZodTypeDef,
167
+ unknown
168
+ > = z.object({
169
+ pager: components.Pager$inboundSchema,
170
+ items: z.array(components.Facility$inboundSchema),
171
+ });
169
172
 
170
173
  /** @internal */
171
- export type ListOrSearchFacilitiesResponseBody$Outbound = {
174
+ export type ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound = {
172
175
  pager: components.Pager$Outbound;
173
176
  items: Array<components.Facility$Outbound>;
174
177
  };
175
178
 
176
179
  /** @internal */
177
- export const ListOrSearchFacilitiesResponseBody$outboundSchema: z.ZodType<
178
- ListOrSearchFacilitiesResponseBody$Outbound,
179
- z.ZodTypeDef,
180
- ListOrSearchFacilitiesResponseBody
181
- > = z.object({
182
- pager: components.Pager$outboundSchema,
183
- items: z.array(components.Facility$outboundSchema),
184
- });
180
+ export const ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema:
181
+ z.ZodType<
182
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound,
183
+ z.ZodTypeDef,
184
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk
185
+ > = z.object({
186
+ pager: components.Pager$outboundSchema,
187
+ items: z.array(components.Facility$outboundSchema),
188
+ });
185
189
 
186
190
  /**
187
191
  * @internal
188
192
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
189
193
  */
190
- export namespace ListOrSearchFacilitiesResponseBody$ {
191
- /** @deprecated use `ListOrSearchFacilitiesResponseBody$inboundSchema` instead. */
192
- export const inboundSchema = ListOrSearchFacilitiesResponseBody$inboundSchema;
193
- /** @deprecated use `ListOrSearchFacilitiesResponseBody$outboundSchema` instead. */
194
+ export namespace ListOrSearchFacilitiesListOrSearchFacilitiesOk$ {
195
+ /** @deprecated use `ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema` instead. */
196
+ export const inboundSchema =
197
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema;
198
+ /** @deprecated use `ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema` instead. */
194
199
  export const outboundSchema =
195
- ListOrSearchFacilitiesResponseBody$outboundSchema;
196
- /** @deprecated use `ListOrSearchFacilitiesResponseBody$Outbound` instead. */
197
- export type Outbound = ListOrSearchFacilitiesResponseBody$Outbound;
200
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema;
201
+ /** @deprecated use `ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound` instead. */
202
+ export type Outbound =
203
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$Outbound;
198
204
  }
199
205
 
200
- export function listOrSearchFacilitiesResponseBodyToJSON(
201
- listOrSearchFacilitiesResponseBody: ListOrSearchFacilitiesResponseBody,
206
+ export function listOrSearchFacilitiesListOrSearchFacilitiesOkToJSON(
207
+ listOrSearchFacilitiesListOrSearchFacilitiesOk:
208
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk,
202
209
  ): string {
203
210
  return JSON.stringify(
204
- ListOrSearchFacilitiesResponseBody$outboundSchema.parse(
205
- listOrSearchFacilitiesResponseBody,
211
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$outboundSchema.parse(
212
+ listOrSearchFacilitiesListOrSearchFacilitiesOk,
206
213
  ),
207
214
  );
208
215
  }
209
216
 
210
- export function listOrSearchFacilitiesResponseBodyFromJSON(
217
+ export function listOrSearchFacilitiesListOrSearchFacilitiesOkFromJSON(
211
218
  jsonString: string,
212
- ): SafeParseResult<ListOrSearchFacilitiesResponseBody, SDKValidationError> {
219
+ ): SafeParseResult<
220
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk,
221
+ SDKValidationError
222
+ > {
213
223
  return safeParse(
214
224
  jsonString,
215
225
  (x) =>
216
- ListOrSearchFacilitiesResponseBody$inboundSchema.parse(JSON.parse(x)),
217
- `Failed to parse 'ListOrSearchFacilitiesResponseBody' from JSON`,
226
+ ListOrSearchFacilitiesListOrSearchFacilitiesOk$inboundSchema.parse(
227
+ JSON.parse(x),
228
+ ),
229
+ `Failed to parse 'ListOrSearchFacilitiesListOrSearchFacilitiesOk' from JSON`,
218
230
  );
219
231
  }
@@ -0,0 +1,186 @@
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
+ /** @internal */
43
+ export const ListOrSearchSupportArticlesRequest$inboundSchema: z.ZodType<
44
+ ListOrSearchSupportArticlesRequest,
45
+ z.ZodTypeDef,
46
+ unknown
47
+ > = z.object({
48
+ sort: z.nullable(z.string()).optional(),
49
+ desc: components.Desc$inboundSchema.optional(),
50
+ page: z.number().int().optional(),
51
+ items_per_page: z.number().int().optional(),
52
+ }).transform((v) => {
53
+ return remap$(v, {
54
+ "items_per_page": "itemsPerPage",
55
+ });
56
+ });
57
+
58
+ /** @internal */
59
+ export type ListOrSearchSupportArticlesRequest$Outbound = {
60
+ sort?: string | null | undefined;
61
+ desc?: components.Desc$Outbound | undefined;
62
+ page?: number | undefined;
63
+ items_per_page?: number | undefined;
64
+ };
65
+
66
+ /** @internal */
67
+ export const ListOrSearchSupportArticlesRequest$outboundSchema: z.ZodType<
68
+ ListOrSearchSupportArticlesRequest$Outbound,
69
+ z.ZodTypeDef,
70
+ ListOrSearchSupportArticlesRequest
71
+ > = z.object({
72
+ sort: z.nullable(z.string()).optional(),
73
+ desc: components.Desc$outboundSchema.optional(),
74
+ page: z.number().int().optional(),
75
+ itemsPerPage: z.number().int().optional(),
76
+ }).transform((v) => {
77
+ return remap$(v, {
78
+ itemsPerPage: "items_per_page",
79
+ });
80
+ });
81
+
82
+ /**
83
+ * @internal
84
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
85
+ */
86
+ export namespace ListOrSearchSupportArticlesRequest$ {
87
+ /** @deprecated use `ListOrSearchSupportArticlesRequest$inboundSchema` instead. */
88
+ export const inboundSchema = ListOrSearchSupportArticlesRequest$inboundSchema;
89
+ /** @deprecated use `ListOrSearchSupportArticlesRequest$outboundSchema` instead. */
90
+ export const outboundSchema =
91
+ ListOrSearchSupportArticlesRequest$outboundSchema;
92
+ /** @deprecated use `ListOrSearchSupportArticlesRequest$Outbound` instead. */
93
+ export type Outbound = ListOrSearchSupportArticlesRequest$Outbound;
94
+ }
95
+
96
+ export function listOrSearchSupportArticlesRequestToJSON(
97
+ listOrSearchSupportArticlesRequest: ListOrSearchSupportArticlesRequest,
98
+ ): string {
99
+ return JSON.stringify(
100
+ ListOrSearchSupportArticlesRequest$outboundSchema.parse(
101
+ listOrSearchSupportArticlesRequest,
102
+ ),
103
+ );
104
+ }
105
+
106
+ export function listOrSearchSupportArticlesRequestFromJSON(
107
+ jsonString: string,
108
+ ): SafeParseResult<ListOrSearchSupportArticlesRequest, SDKValidationError> {
109
+ return safeParse(
110
+ jsonString,
111
+ (x) =>
112
+ ListOrSearchSupportArticlesRequest$inboundSchema.parse(JSON.parse(x)),
113
+ `Failed to parse 'ListOrSearchSupportArticlesRequest' from JSON`,
114
+ );
115
+ }
116
+
117
+ /** @internal */
118
+ export const ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema:
119
+ z.ZodType<
120
+ ListOrSearchSupportArticlesListOrSearchArticlesOk,
121
+ z.ZodTypeDef,
122
+ unknown
123
+ > = z.object({
124
+ pager: components.Pager$inboundSchema,
125
+ items: z.array(components.SupportArticle$inboundSchema),
126
+ });
127
+
128
+ /** @internal */
129
+ export type ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound = {
130
+ pager: components.Pager$Outbound;
131
+ items: Array<components.SupportArticle$Outbound>;
132
+ };
133
+
134
+ /** @internal */
135
+ export const ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema:
136
+ z.ZodType<
137
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound,
138
+ z.ZodTypeDef,
139
+ ListOrSearchSupportArticlesListOrSearchArticlesOk
140
+ > = z.object({
141
+ pager: components.Pager$outboundSchema,
142
+ items: z.array(components.SupportArticle$outboundSchema),
143
+ });
144
+
145
+ /**
146
+ * @internal
147
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
148
+ */
149
+ export namespace ListOrSearchSupportArticlesListOrSearchArticlesOk$ {
150
+ /** @deprecated use `ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema` instead. */
151
+ export const inboundSchema =
152
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema;
153
+ /** @deprecated use `ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema` instead. */
154
+ export const outboundSchema =
155
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema;
156
+ /** @deprecated use `ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound` instead. */
157
+ export type Outbound =
158
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$Outbound;
159
+ }
160
+
161
+ export function listOrSearchSupportArticlesListOrSearchArticlesOkToJSON(
162
+ listOrSearchSupportArticlesListOrSearchArticlesOk:
163
+ ListOrSearchSupportArticlesListOrSearchArticlesOk,
164
+ ): string {
165
+ return JSON.stringify(
166
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$outboundSchema.parse(
167
+ listOrSearchSupportArticlesListOrSearchArticlesOk,
168
+ ),
169
+ );
170
+ }
171
+
172
+ export function listOrSearchSupportArticlesListOrSearchArticlesOkFromJSON(
173
+ jsonString: string,
174
+ ): SafeParseResult<
175
+ ListOrSearchSupportArticlesListOrSearchArticlesOk,
176
+ SDKValidationError
177
+ > {
178
+ return safeParse(
179
+ jsonString,
180
+ (x) =>
181
+ ListOrSearchSupportArticlesListOrSearchArticlesOk$inboundSchema.parse(
182
+ JSON.parse(x),
183
+ ),
184
+ `Failed to parse 'ListOrSearchSupportArticlesListOrSearchArticlesOk' from JSON`,
185
+ );
186
+ }
@@ -0,0 +1,281 @@
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 ListVendorCredentialsRequest = {
13
+ /**
14
+ * Search by credential status (Pending Approval, Declined, Expired...)
15
+ */
16
+ credentialStatus?: components.CredentialStatus | undefined;
17
+ /**
18
+ * The ID associated with a medical facility
19
+ */
20
+ facilityId?: number | undefined;
21
+ /**
22
+ * False will return credentials that apply to vendor's company
23
+ */
24
+ includeVc?: number | undefined;
25
+ /**
26
+ * False will exclude credentials that apply to company
27
+ */
28
+ includeCc?: number | undefined;
29
+ /**
30
+ * Marking as a 1 will return vendor credentials listed as urgent
31
+ */
32
+ urgent?: number | undefined;
33
+ /**
34
+ * ID of the vendor rep.
35
+ */
36
+ vendorId: number;
37
+ };
38
+
39
+ export type Credentials = {
40
+ id: number;
41
+ name: string;
42
+ };
43
+
44
+ /**
45
+ * The request was successful, and the server has returned the requested resource in the response body.
46
+ */
47
+ export type ListVendorCredentialsResponseBody = {
48
+ vendorRequiredCredentials: Array<components.VendorRequiredCredential>;
49
+ credentials: Array<Credentials>;
50
+ vendorCredentials: Array<components.VendorCredentialSlim>;
51
+ /**
52
+ * Pagination information for a pageable list
53
+ */
54
+ pager: components.Pager;
55
+ };
56
+
57
+ /** @internal */
58
+ export const ListVendorCredentialsRequest$inboundSchema: z.ZodType<
59
+ ListVendorCredentialsRequest,
60
+ z.ZodTypeDef,
61
+ unknown
62
+ > = z.object({
63
+ credential_status: components.CredentialStatus$inboundSchema.default(
64
+ "Pending Vendor",
65
+ ),
66
+ facility_id: z.number().optional(),
67
+ include_vc: z.number().optional(),
68
+ include_cc: z.number().optional(),
69
+ urgent: z.number().optional(),
70
+ vendor_id: z.number().int(),
71
+ }).transform((v) => {
72
+ return remap$(v, {
73
+ "credential_status": "credentialStatus",
74
+ "facility_id": "facilityId",
75
+ "include_vc": "includeVc",
76
+ "include_cc": "includeCc",
77
+ "vendor_id": "vendorId",
78
+ });
79
+ });
80
+
81
+ /** @internal */
82
+ export type ListVendorCredentialsRequest$Outbound = {
83
+ credential_status: string;
84
+ facility_id?: number | undefined;
85
+ include_vc?: number | undefined;
86
+ include_cc?: number | undefined;
87
+ urgent?: number | undefined;
88
+ vendor_id: number;
89
+ };
90
+
91
+ /** @internal */
92
+ export const ListVendorCredentialsRequest$outboundSchema: z.ZodType<
93
+ ListVendorCredentialsRequest$Outbound,
94
+ z.ZodTypeDef,
95
+ ListVendorCredentialsRequest
96
+ > = z.object({
97
+ credentialStatus: components.CredentialStatus$outboundSchema.default(
98
+ "Pending Vendor",
99
+ ),
100
+ facilityId: z.number().optional(),
101
+ includeVc: z.number().optional(),
102
+ includeCc: z.number().optional(),
103
+ urgent: z.number().optional(),
104
+ vendorId: z.number().int(),
105
+ }).transform((v) => {
106
+ return remap$(v, {
107
+ credentialStatus: "credential_status",
108
+ facilityId: "facility_id",
109
+ includeVc: "include_vc",
110
+ includeCc: "include_cc",
111
+ vendorId: "vendor_id",
112
+ });
113
+ });
114
+
115
+ /**
116
+ * @internal
117
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
118
+ */
119
+ export namespace ListVendorCredentialsRequest$ {
120
+ /** @deprecated use `ListVendorCredentialsRequest$inboundSchema` instead. */
121
+ export const inboundSchema = ListVendorCredentialsRequest$inboundSchema;
122
+ /** @deprecated use `ListVendorCredentialsRequest$outboundSchema` instead. */
123
+ export const outboundSchema = ListVendorCredentialsRequest$outboundSchema;
124
+ /** @deprecated use `ListVendorCredentialsRequest$Outbound` instead. */
125
+ export type Outbound = ListVendorCredentialsRequest$Outbound;
126
+ }
127
+
128
+ export function listVendorCredentialsRequestToJSON(
129
+ listVendorCredentialsRequest: ListVendorCredentialsRequest,
130
+ ): string {
131
+ return JSON.stringify(
132
+ ListVendorCredentialsRequest$outboundSchema.parse(
133
+ listVendorCredentialsRequest,
134
+ ),
135
+ );
136
+ }
137
+
138
+ export function listVendorCredentialsRequestFromJSON(
139
+ jsonString: string,
140
+ ): SafeParseResult<ListVendorCredentialsRequest, SDKValidationError> {
141
+ return safeParse(
142
+ jsonString,
143
+ (x) => ListVendorCredentialsRequest$inboundSchema.parse(JSON.parse(x)),
144
+ `Failed to parse 'ListVendorCredentialsRequest' from JSON`,
145
+ );
146
+ }
147
+
148
+ /** @internal */
149
+ export const Credentials$inboundSchema: z.ZodType<
150
+ Credentials,
151
+ z.ZodTypeDef,
152
+ unknown
153
+ > = z.object({
154
+ id: z.number().int(),
155
+ name: z.string(),
156
+ });
157
+
158
+ /** @internal */
159
+ export type Credentials$Outbound = {
160
+ id: number;
161
+ name: string;
162
+ };
163
+
164
+ /** @internal */
165
+ export const Credentials$outboundSchema: z.ZodType<
166
+ Credentials$Outbound,
167
+ z.ZodTypeDef,
168
+ Credentials
169
+ > = z.object({
170
+ id: z.number().int(),
171
+ name: z.string(),
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 Credentials$ {
179
+ /** @deprecated use `Credentials$inboundSchema` instead. */
180
+ export const inboundSchema = Credentials$inboundSchema;
181
+ /** @deprecated use `Credentials$outboundSchema` instead. */
182
+ export const outboundSchema = Credentials$outboundSchema;
183
+ /** @deprecated use `Credentials$Outbound` instead. */
184
+ export type Outbound = Credentials$Outbound;
185
+ }
186
+
187
+ export function credentialsToJSON(credentials: Credentials): string {
188
+ return JSON.stringify(Credentials$outboundSchema.parse(credentials));
189
+ }
190
+
191
+ export function credentialsFromJSON(
192
+ jsonString: string,
193
+ ): SafeParseResult<Credentials, SDKValidationError> {
194
+ return safeParse(
195
+ jsonString,
196
+ (x) => Credentials$inboundSchema.parse(JSON.parse(x)),
197
+ `Failed to parse 'Credentials' from JSON`,
198
+ );
199
+ }
200
+
201
+ /** @internal */
202
+ export const ListVendorCredentialsResponseBody$inboundSchema: z.ZodType<
203
+ ListVendorCredentialsResponseBody,
204
+ z.ZodTypeDef,
205
+ unknown
206
+ > = z.object({
207
+ vendor_required_credentials: z.array(
208
+ components.VendorRequiredCredential$inboundSchema,
209
+ ),
210
+ credentials: z.array(z.lazy(() => Credentials$inboundSchema)),
211
+ vendor_credentials: z.array(components.VendorCredentialSlim$inboundSchema),
212
+ pager: components.Pager$inboundSchema,
213
+ }).transform((v) => {
214
+ return remap$(v, {
215
+ "vendor_required_credentials": "vendorRequiredCredentials",
216
+ "vendor_credentials": "vendorCredentials",
217
+ });
218
+ });
219
+
220
+ /** @internal */
221
+ export type ListVendorCredentialsResponseBody$Outbound = {
222
+ vendor_required_credentials: Array<
223
+ components.VendorRequiredCredential$Outbound
224
+ >;
225
+ credentials: Array<Credentials$Outbound>;
226
+ vendor_credentials: Array<components.VendorCredentialSlim$Outbound>;
227
+ pager: components.Pager$Outbound;
228
+ };
229
+
230
+ /** @internal */
231
+ export const ListVendorCredentialsResponseBody$outboundSchema: z.ZodType<
232
+ ListVendorCredentialsResponseBody$Outbound,
233
+ z.ZodTypeDef,
234
+ ListVendorCredentialsResponseBody
235
+ > = z.object({
236
+ vendorRequiredCredentials: z.array(
237
+ components.VendorRequiredCredential$outboundSchema,
238
+ ),
239
+ credentials: z.array(z.lazy(() => Credentials$outboundSchema)),
240
+ vendorCredentials: z.array(components.VendorCredentialSlim$outboundSchema),
241
+ pager: components.Pager$outboundSchema,
242
+ }).transform((v) => {
243
+ return remap$(v, {
244
+ vendorRequiredCredentials: "vendor_required_credentials",
245
+ vendorCredentials: "vendor_credentials",
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 ListVendorCredentialsResponseBody$ {
254
+ /** @deprecated use `ListVendorCredentialsResponseBody$inboundSchema` instead. */
255
+ export const inboundSchema = ListVendorCredentialsResponseBody$inboundSchema;
256
+ /** @deprecated use `ListVendorCredentialsResponseBody$outboundSchema` instead. */
257
+ export const outboundSchema =
258
+ ListVendorCredentialsResponseBody$outboundSchema;
259
+ /** @deprecated use `ListVendorCredentialsResponseBody$Outbound` instead. */
260
+ export type Outbound = ListVendorCredentialsResponseBody$Outbound;
261
+ }
262
+
263
+ export function listVendorCredentialsResponseBodyToJSON(
264
+ listVendorCredentialsResponseBody: ListVendorCredentialsResponseBody,
265
+ ): string {
266
+ return JSON.stringify(
267
+ ListVendorCredentialsResponseBody$outboundSchema.parse(
268
+ listVendorCredentialsResponseBody,
269
+ ),
270
+ );
271
+ }
272
+
273
+ export function listVendorCredentialsResponseBodyFromJSON(
274
+ jsonString: string,
275
+ ): SafeParseResult<ListVendorCredentialsResponseBody, SDKValidationError> {
276
+ return safeParse(
277
+ jsonString,
278
+ (x) => ListVendorCredentialsResponseBody$inboundSchema.parse(JSON.parse(x)),
279
+ `Failed to parse 'ListVendorCredentialsResponseBody' from JSON`,
280
+ );
281
+ }