@greensecurity/javascript-sdk 0.9.1

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 (432) hide show
  1. package/.devcontainer/README.md +35 -0
  2. package/.devcontainer/devcontainer.json +45 -0
  3. package/FUNCTIONS.md +109 -0
  4. package/REACT_QUERY.md +318 -0
  5. package/README.md +561 -0
  6. package/RUNTIMES.md +48 -0
  7. package/core.d.ts +10 -0
  8. package/core.d.ts.map +1 -0
  9. package/core.js +17 -0
  10. package/core.js.map +1 -0
  11. package/docs/sdks/greensecurity/README.md +14 -0
  12. package/docs/sdks/organizations/README.md +252 -0
  13. package/docs/sdks/user/README.md +348 -0
  14. package/docs/sdks/vendors/README.md +219 -0
  15. package/funcs/organizationsGetFacility.d.ts +17 -0
  16. package/funcs/organizationsGetFacility.d.ts.map +1 -0
  17. package/funcs/organizationsGetFacility.js +117 -0
  18. package/funcs/organizationsGetFacility.js.map +1 -0
  19. package/funcs/organizationsListOrSearchFacilities.d.ts +28 -0
  20. package/funcs/organizationsListOrSearchFacilities.d.ts.map +1 -0
  21. package/funcs/organizationsListOrSearchFacilities.js +131 -0
  22. package/funcs/organizationsListOrSearchFacilities.js.map +1 -0
  23. package/funcs/userGetCurrentUser.d.ts +16 -0
  24. package/funcs/userGetCurrentUser.d.ts.map +1 -0
  25. package/funcs/userGetCurrentUser.js +101 -0
  26. package/funcs/userGetCurrentUser.js.map +1 -0
  27. package/funcs/userGetUserById.d.ts +17 -0
  28. package/funcs/userGetUserById.d.ts.map +1 -0
  29. package/funcs/userGetUserById.js +117 -0
  30. package/funcs/userGetUserById.js.map +1 -0
  31. package/funcs/userLogsUserIntoTheSystem.d.ts +46 -0
  32. package/funcs/userLogsUserIntoTheSystem.d.ts.map +1 -0
  33. package/funcs/userLogsUserIntoTheSystem.js +137 -0
  34. package/funcs/userLogsUserIntoTheSystem.js.map +1 -0
  35. package/funcs/vendorsCreateVendorRegistration.d.ts +16 -0
  36. package/funcs/vendorsCreateVendorRegistration.d.ts.map +1 -0
  37. package/funcs/vendorsCreateVendorRegistration.js +107 -0
  38. package/funcs/vendorsCreateVendorRegistration.js.map +1 -0
  39. package/funcs/vendorsListVendorJobTitles.d.ts +16 -0
  40. package/funcs/vendorsListVendorJobTitles.d.ts.map +1 -0
  41. package/funcs/vendorsListVendorJobTitles.js +114 -0
  42. package/funcs/vendorsListVendorJobTitles.js.map +1 -0
  43. package/hooks/hooks.d.ts +24 -0
  44. package/hooks/hooks.d.ts.map +1 -0
  45. package/hooks/hooks.js +86 -0
  46. package/hooks/hooks.js.map +1 -0
  47. package/hooks/index.d.ts +3 -0
  48. package/hooks/index.d.ts.map +1 -0
  49. package/hooks/index.js +22 -0
  50. package/hooks/index.js.map +1 -0
  51. package/hooks/registration.d.ts +3 -0
  52. package/hooks/registration.d.ts.map +1 -0
  53. package/hooks/registration.js +15 -0
  54. package/hooks/registration.js.map +1 -0
  55. package/hooks/types.d.ts +78 -0
  56. package/hooks/types.d.ts.map +1 -0
  57. package/hooks/types.js +6 -0
  58. package/hooks/types.js.map +1 -0
  59. package/index.d.ts +4 -0
  60. package/index.d.ts.map +1 -0
  61. package/index.js +46 -0
  62. package/index.js.map +1 -0
  63. package/jsr.json +27 -0
  64. package/lib/base64.d.ts +10 -0
  65. package/lib/base64.d.ts.map +1 -0
  66. package/lib/base64.js +71 -0
  67. package/lib/base64.js.map +1 -0
  68. package/lib/config.d.ts +38 -0
  69. package/lib/config.d.ts.map +1 -0
  70. package/lib/config.js +46 -0
  71. package/lib/config.js.map +1 -0
  72. package/lib/dlv.d.ts +14 -0
  73. package/lib/dlv.d.ts.map +1 -0
  74. package/lib/dlv.js +49 -0
  75. package/lib/dlv.js.map +1 -0
  76. package/lib/encodings.d.ts +52 -0
  77. package/lib/encodings.d.ts.map +1 -0
  78. package/lib/encodings.js +368 -0
  79. package/lib/encodings.js.map +1 -0
  80. package/lib/env.d.ts +16 -0
  81. package/lib/env.d.ts.map +1 -0
  82. package/lib/env.js +66 -0
  83. package/lib/env.js.map +1 -0
  84. package/lib/files.d.ts +8 -0
  85. package/lib/files.d.ts.map +1 -0
  86. package/lib/files.js +36 -0
  87. package/lib/files.js.map +1 -0
  88. package/lib/http.d.ts +67 -0
  89. package/lib/http.d.ts.map +1 -0
  90. package/lib/http.js +217 -0
  91. package/lib/http.js.map +1 -0
  92. package/lib/is-plain-object.d.ts +2 -0
  93. package/lib/is-plain-object.d.ts.map +1 -0
  94. package/lib/is-plain-object.js +41 -0
  95. package/lib/is-plain-object.js.map +1 -0
  96. package/lib/logger.d.ts +6 -0
  97. package/lib/logger.d.ts.map +1 -0
  98. package/lib/logger.js +6 -0
  99. package/lib/logger.js.map +1 -0
  100. package/lib/matchers.d.ts +64 -0
  101. package/lib/matchers.d.ts.map +1 -0
  102. package/lib/matchers.js +204 -0
  103. package/lib/matchers.js.map +1 -0
  104. package/lib/primitives.d.ts +23 -0
  105. package/lib/primitives.d.ts.map +1 -0
  106. package/lib/primitives.js +104 -0
  107. package/lib/primitives.js.map +1 -0
  108. package/lib/retries.d.ts +38 -0
  109. package/lib/retries.d.ts.map +1 -0
  110. package/lib/retries.js +153 -0
  111. package/lib/retries.js.map +1 -0
  112. package/lib/schemas.d.ts +19 -0
  113. package/lib/schemas.d.ts.map +1 -0
  114. package/lib/schemas.js +62 -0
  115. package/lib/schemas.js.map +1 -0
  116. package/lib/sdks.d.ts +60 -0
  117. package/lib/sdks.d.ts.map +1 -0
  118. package/lib/sdks.js +280 -0
  119. package/lib/sdks.js.map +1 -0
  120. package/lib/security.d.ts +82 -0
  121. package/lib/security.d.ts.map +1 -0
  122. package/lib/security.js +145 -0
  123. package/lib/security.js.map +1 -0
  124. package/lib/url.d.ts +5 -0
  125. package/lib/url.d.ts.map +1 -0
  126. package/lib/url.js +25 -0
  127. package/lib/url.js.map +1 -0
  128. package/models/components/contact.d.ts +135 -0
  129. package/models/components/contact.d.ts.map +1 -0
  130. package/models/components/contact.js +172 -0
  131. package/models/components/contact.js.map +1 -0
  132. package/models/components/departmentsummary.d.ts +34 -0
  133. package/models/components/departmentsummary.d.ts.map +1 -0
  134. package/models/components/departmentsummary.js +71 -0
  135. package/models/components/departmentsummary.js.map +1 -0
  136. package/models/components/desc.d.ts +25 -0
  137. package/models/components/desc.d.ts.map +1 -0
  138. package/models/components/desc.js +66 -0
  139. package/models/components/desc.js.map +1 -0
  140. package/models/components/expand.d.ts +79 -0
  141. package/models/components/expand.d.ts.map +1 -0
  142. package/models/components/expand.js +79 -0
  143. package/models/components/expand.js.map +1 -0
  144. package/models/components/facility.d.ts +544 -0
  145. package/models/components/facility.d.ts.map +1 -0
  146. package/models/components/facility.js +797 -0
  147. package/models/components/facility.js.map +1 -0
  148. package/models/components/facilitysummary.d.ts +34 -0
  149. package/models/components/facilitysummary.d.ts.map +1 -0
  150. package/models/components/facilitysummary.js +71 -0
  151. package/models/components/facilitysummary.js.map +1 -0
  152. package/models/components/imageset.d.ts +38 -0
  153. package/models/components/imageset.d.ts.map +1 -0
  154. package/models/components/imageset.js +75 -0
  155. package/models/components/imageset.js.map +1 -0
  156. package/models/components/index.d.ts +20 -0
  157. package/models/components/index.d.ts.map +1 -0
  158. package/models/components/index.js +39 -0
  159. package/models/components/index.js.map +1 -0
  160. package/models/components/loginemailandpassword.d.ts +45 -0
  161. package/models/components/loginemailandpassword.d.ts.map +1 -0
  162. package/models/components/loginemailandpassword.js +82 -0
  163. package/models/components/loginemailandpassword.js.map +1 -0
  164. package/models/components/loginrequirementsfromemail.d.ts +40 -0
  165. package/models/components/loginrequirementsfromemail.d.ts.map +1 -0
  166. package/models/components/loginrequirementsfromemail.js +80 -0
  167. package/models/components/loginrequirementsfromemail.js.map +1 -0
  168. package/models/components/mfarequiredresponse.d.ts +98 -0
  169. package/models/components/mfarequiredresponse.d.ts.map +1 -0
  170. package/models/components/mfarequiredresponse.js +126 -0
  171. package/models/components/mfarequiredresponse.js.map +1 -0
  172. package/models/components/pager.d.ts +69 -0
  173. package/models/components/pager.d.ts.map +1 -0
  174. package/models/components/pager.js +97 -0
  175. package/models/components/pager.js.map +1 -0
  176. package/models/components/passwordrequiredresponse.d.ts +62 -0
  177. package/models/components/passwordrequiredresponse.d.ts.map +1 -0
  178. package/models/components/passwordrequiredresponse.js +92 -0
  179. package/models/components/passwordrequiredresponse.js.map +1 -0
  180. package/models/components/samlloginrequiredresponse.d.ts +73 -0
  181. package/models/components/samlloginrequiredresponse.d.ts.map +1 -0
  182. package/models/components/samlloginrequiredresponse.js +106 -0
  183. package/models/components/samlloginrequiredresponse.js.map +1 -0
  184. package/models/components/security.d.ts +31 -0
  185. package/models/components/security.d.ts.map +1 -0
  186. package/models/components/security.js +80 -0
  187. package/models/components/security.js.map +1 -0
  188. package/models/components/status.d.ts +37 -0
  189. package/models/components/status.d.ts.map +1 -0
  190. package/models/components/status.js +65 -0
  191. package/models/components/status.js.map +1 -0
  192. package/models/components/systemsummary.d.ts +34 -0
  193. package/models/components/systemsummary.d.ts.map +1 -0
  194. package/models/components/systemsummary.js +71 -0
  195. package/models/components/systemsummary.js.map +1 -0
  196. package/models/components/user.d.ts +265 -0
  197. package/models/components/user.d.ts.map +1 -0
  198. package/models/components/user.js +284 -0
  199. package/models/components/user.js.map +1 -0
  200. package/models/components/vendorjobtitle.d.ts +41 -0
  201. package/models/components/vendorjobtitle.d.ts.map +1 -0
  202. package/models/components/vendorjobtitle.js +71 -0
  203. package/models/components/vendorjobtitle.js.map +1 -0
  204. package/models/components/vendortype.d.ts +69 -0
  205. package/models/components/vendortype.d.ts.map +1 -0
  206. package/models/components/vendortype.js +135 -0
  207. package/models/components/vendortype.js.map +1 -0
  208. package/models/errors/apierror.d.ts +8 -0
  209. package/models/errors/apierror.d.ts.map +1 -0
  210. package/models/errors/apierror.js +21 -0
  211. package/models/errors/apierror.js.map +1 -0
  212. package/models/errors/apierrorresponse.d.ts +51 -0
  213. package/models/errors/apierrorresponse.d.ts.map +1 -0
  214. package/models/errors/apierrorresponse.js +91 -0
  215. package/models/errors/apierrorresponse.js.map +1 -0
  216. package/models/errors/httpclienterrors.d.ts +44 -0
  217. package/models/errors/httpclienterrors.d.ts.map +1 -0
  218. package/models/errors/httpclienterrors.js +78 -0
  219. package/models/errors/httpclienterrors.js.map +1 -0
  220. package/models/errors/index.d.ts +5 -0
  221. package/models/errors/index.d.ts.map +1 -0
  222. package/models/errors/index.js +24 -0
  223. package/models/errors/index.js.map +1 -0
  224. package/models/errors/sdkvalidationerror.d.ts +20 -0
  225. package/models/errors/sdkvalidationerror.d.ts.map +1 -0
  226. package/models/errors/sdkvalidationerror.js +115 -0
  227. package/models/errors/sdkvalidationerror.js.map +1 -0
  228. package/models/operations/createvendorregistration.d.ts +115 -0
  229. package/models/operations/createvendorregistration.d.ts.map +1 -0
  230. package/models/operations/createvendorregistration.js +143 -0
  231. package/models/operations/createvendorregistration.js.map +1 -0
  232. package/models/operations/getfacility.d.ts +32 -0
  233. package/models/operations/getfacility.d.ts.map +1 -0
  234. package/models/operations/getfacility.js +69 -0
  235. package/models/operations/getfacility.js.map +1 -0
  236. package/models/operations/getuserbyid.d.ts +32 -0
  237. package/models/operations/getuserbyid.d.ts.map +1 -0
  238. package/models/operations/getuserbyid.js +69 -0
  239. package/models/operations/getuserbyid.js.map +1 -0
  240. package/models/operations/index.d.ts +7 -0
  241. package/models/operations/index.d.ts.map +1 -0
  242. package/models/operations/index.js +26 -0
  243. package/models/operations/index.js.map +1 -0
  244. package/models/operations/listorsearchfacilities.d.ts +110 -0
  245. package/models/operations/listorsearchfacilities.d.ts.map +1 -0
  246. package/models/operations/listorsearchfacilities.js +130 -0
  247. package/models/operations/listorsearchfacilities.js.map +1 -0
  248. package/models/operations/listvendorjobtitles.d.ts +86 -0
  249. package/models/operations/listvendorjobtitles.d.ts.map +1 -0
  250. package/models/operations/listvendorjobtitles.js +118 -0
  251. package/models/operations/listvendorjobtitles.js.map +1 -0
  252. package/models/operations/logsuserintothesystem.d.ts +98 -0
  253. package/models/operations/logsuserintothesystem.d.ts.map +1 -0
  254. package/models/operations/logsuserintothesystem.js +164 -0
  255. package/models/operations/logsuserintothesystem.js.map +1 -0
  256. package/package.json +41 -0
  257. package/react-query/_context.d.ts +8 -0
  258. package/react-query/_context.d.ts.map +1 -0
  259. package/react-query/_context.js +21 -0
  260. package/react-query/_context.js.map +1 -0
  261. package/react-query/_types.d.ts +14 -0
  262. package/react-query/_types.d.ts.map +1 -0
  263. package/react-query/_types.js +6 -0
  264. package/react-query/_types.js.map +1 -0
  265. package/react-query/index.d.ts +10 -0
  266. package/react-query/index.d.ts.map +1 -0
  267. package/react-query/index.js +32 -0
  268. package/react-query/index.js.map +1 -0
  269. package/react-query/organizationsGetFacility.d.ts +31 -0
  270. package/react-query/organizationsGetFacility.d.ts.map +1 -0
  271. package/react-query/organizationsGetFacility.js +87 -0
  272. package/react-query/organizationsGetFacility.js.map +1 -0
  273. package/react-query/organizationsListOrSearchFacilities.d.ts +91 -0
  274. package/react-query/organizationsListOrSearchFacilities.d.ts.map +1 -0
  275. package/react-query/organizationsListOrSearchFacilities.js +132 -0
  276. package/react-query/organizationsListOrSearchFacilities.js.map +1 -0
  277. package/react-query/userGetCurrentUser.d.ts +29 -0
  278. package/react-query/userGetCurrentUser.d.ts.map +1 -0
  279. package/react-query/userGetCurrentUser.js +75 -0
  280. package/react-query/userGetCurrentUser.js.map +1 -0
  281. package/react-query/userGetUserById.d.ts +31 -0
  282. package/react-query/userGetUserById.d.ts.map +1 -0
  283. package/react-query/userGetUserById.js +87 -0
  284. package/react-query/userGetUserById.js.map +1 -0
  285. package/react-query/userLogsUserIntoTheSystem.d.ts +53 -0
  286. package/react-query/userLogsUserIntoTheSystem.d.ts.map +1 -0
  287. package/react-query/userLogsUserIntoTheSystem.js +77 -0
  288. package/react-query/userLogsUserIntoTheSystem.js.map +1 -0
  289. package/react-query/vendorsCreateVendorRegistration.d.ts +23 -0
  290. package/react-query/vendorsCreateVendorRegistration.d.ts.map +1 -0
  291. package/react-query/vendorsCreateVendorRegistration.js +51 -0
  292. package/react-query/vendorsCreateVendorRegistration.js.map +1 -0
  293. package/react-query/vendorsListVendorJobTitles.d.ts +53 -0
  294. package/react-query/vendorsListVendorJobTitles.d.ts.map +1 -0
  295. package/react-query/vendorsListVendorJobTitles.js +102 -0
  296. package/react-query/vendorsListVendorJobTitles.js.map +1 -0
  297. package/sdk/index.d.ts +2 -0
  298. package/sdk/index.d.ts.map +1 -0
  299. package/sdk/index.js +21 -0
  300. package/sdk/index.js.map +1 -0
  301. package/sdk/organizations.d.ts +33 -0
  302. package/sdk/organizations.d.ts.map +1 -0
  303. package/sdk/organizations.js +45 -0
  304. package/sdk/organizations.js.map +1 -0
  305. package/sdk/sdk.d.ts +13 -0
  306. package/sdk/sdk.d.ts.map +1 -0
  307. package/sdk/sdk.js +23 -0
  308. package/sdk/sdk.js.map +1 -0
  309. package/sdk/user.d.ts +57 -0
  310. package/sdk/user.d.ts.map +1 -0
  311. package/sdk/user.js +72 -0
  312. package/sdk/user.js.map +1 -0
  313. package/sdk/vendors.d.ts +19 -0
  314. package/sdk/vendors.d.ts.map +1 -0
  315. package/sdk/vendors.js +32 -0
  316. package/sdk/vendors.js.map +1 -0
  317. package/src/core.ts +13 -0
  318. package/src/funcs/organizationsGetFacility.ts +144 -0
  319. package/src/funcs/organizationsListOrSearchFacilities.ts +152 -0
  320. package/src/funcs/userGetCurrentUser.ts +118 -0
  321. package/src/funcs/userGetUserById.ts +141 -0
  322. package/src/funcs/userLogsUserIntoTheSystem.ts +161 -0
  323. package/src/funcs/vendorsCreateVendorRegistration.ts +132 -0
  324. package/src/funcs/vendorsListVendorJobTitles.ts +141 -0
  325. package/src/hooks/hooks.ts +132 -0
  326. package/src/hooks/index.ts +6 -0
  327. package/src/hooks/registration.ts +14 -0
  328. package/src/hooks/types.ts +110 -0
  329. package/src/index.ts +7 -0
  330. package/src/lib/base64.ts +37 -0
  331. package/src/lib/config.ts +76 -0
  332. package/src/lib/dlv.ts +53 -0
  333. package/src/lib/encodings.ts +483 -0
  334. package/src/lib/env.ts +43 -0
  335. package/src/lib/files.ts +40 -0
  336. package/src/lib/http.ts +323 -0
  337. package/src/lib/is-plain-object.ts +43 -0
  338. package/src/lib/logger.ts +9 -0
  339. package/src/lib/matchers.ts +322 -0
  340. package/src/lib/primitives.ts +136 -0
  341. package/src/lib/retries.ts +218 -0
  342. package/src/lib/schemas.ts +91 -0
  343. package/src/lib/sdks.ts +400 -0
  344. package/src/lib/security.ts +260 -0
  345. package/src/lib/url.ts +33 -0
  346. package/src/models/components/contact.ts +268 -0
  347. package/src/models/components/departmentsummary.ts +73 -0
  348. package/src/models/components/desc.ts +48 -0
  349. package/src/models/components/expand.ts +52 -0
  350. package/src/models/components/facility.ts +1334 -0
  351. package/src/models/components/facilitysummary.ts +71 -0
  352. package/src/models/components/imageset.ts +77 -0
  353. package/src/models/components/index.ts +23 -0
  354. package/src/models/components/loginemailandpassword.ts +95 -0
  355. package/src/models/components/loginrequirementsfromemail.ts +88 -0
  356. package/src/models/components/mfarequiredresponse.ts +160 -0
  357. package/src/models/components/pager.ts +126 -0
  358. package/src/models/components/passwordrequiredresponse.ts +105 -0
  359. package/src/models/components/samlloginrequiredresponse.ts +136 -0
  360. package/src/models/components/security.ts +75 -0
  361. package/src/models/components/status.ts +38 -0
  362. package/src/models/components/systemsummary.ts +69 -0
  363. package/src/models/components/user.ts +451 -0
  364. package/src/models/components/vendorjobtitle.ts +76 -0
  365. package/src/models/components/vendortype.ts +170 -0
  366. package/src/models/errors/apierror.ts +27 -0
  367. package/src/models/errors/apierrorresponse.ts +95 -0
  368. package/src/models/errors/httpclienterrors.ts +62 -0
  369. package/src/models/errors/index.ts +8 -0
  370. package/src/models/errors/sdkvalidationerror.ts +97 -0
  371. package/src/models/operations/createvendorregistration.ts +237 -0
  372. package/src/models/operations/getfacility.ts +69 -0
  373. package/src/models/operations/getuserbyid.ts +69 -0
  374. package/src/models/operations/index.ts +10 -0
  375. package/src/models/operations/listorsearchfacilities.ts +219 -0
  376. package/src/models/operations/listvendorjobtitles.ts +179 -0
  377. package/src/models/operations/logsuserintothesystem.ts +270 -0
  378. package/src/react-query/_types.ts +91 -0
  379. package/src/react-query/index.ts +14 -0
  380. package/src/react-query/organizationsGetFacility.ts +154 -0
  381. package/src/react-query/organizationsListOrSearchFacilities.ts +241 -0
  382. package/src/react-query/userGetCurrentUser.ts +124 -0
  383. package/src/react-query/userGetUserById.ts +152 -0
  384. package/src/react-query/userLogsUserIntoTheSystem.ts +119 -0
  385. package/src/react-query/vendorsCreateVendorRegistration.ts +93 -0
  386. package/src/react-query/vendorsListVendorJobTitles.ts +194 -0
  387. package/src/sdk/index.ts +5 -0
  388. package/src/sdk/organizations.ts +59 -0
  389. package/src/sdk/sdk.ts +25 -0
  390. package/src/sdk/user.ts +92 -0
  391. package/src/sdk/vendors.ts +45 -0
  392. package/src/types/blobs.ts +31 -0
  393. package/src/types/constdatetime.ts +15 -0
  394. package/src/types/enums.ts +16 -0
  395. package/src/types/fp.ts +50 -0
  396. package/src/types/index.ts +11 -0
  397. package/src/types/operations.ts +105 -0
  398. package/src/types/rfcdate.ts +54 -0
  399. package/src/types/streams.ts +21 -0
  400. package/tsconfig.json +41 -0
  401. package/types/blobs.d.ts +4 -0
  402. package/types/blobs.d.ts.map +1 -0
  403. package/types/blobs.js +62 -0
  404. package/types/blobs.js.map +1 -0
  405. package/types/constdatetime.d.ts +3 -0
  406. package/types/constdatetime.d.ts.map +1 -0
  407. package/types/constdatetime.js +46 -0
  408. package/types/constdatetime.js.map +1 -0
  409. package/types/enums.d.ts +12 -0
  410. package/types/enums.d.ts.map +1 -0
  411. package/types/enums.js +10 -0
  412. package/types/enums.js.map +1 -0
  413. package/types/fp.d.ts +31 -0
  414. package/types/fp.d.ts.map +1 -0
  415. package/types/fp.js +37 -0
  416. package/types/fp.js.map +1 -0
  417. package/types/index.d.ts +8 -0
  418. package/types/index.d.ts.map +1 -0
  419. package/types/index.js +16 -0
  420. package/types/index.js.map +1 -0
  421. package/types/operations.d.ts +27 -0
  422. package/types/operations.d.ts.map +1 -0
  423. package/types/operations.js +83 -0
  424. package/types/operations.js.map +1 -0
  425. package/types/rfcdate.d.ts +21 -0
  426. package/types/rfcdate.d.ts.map +1 -0
  427. package/types/rfcdate.js +46 -0
  428. package/types/rfcdate.js.map +1 -0
  429. package/types/streams.d.ts +2 -0
  430. package/types/streams.d.ts.map +1 -0
  431. package/types/streams.js +18 -0
  432. package/types/streams.js.map +1 -0
@@ -0,0 +1,219 @@
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 ListOrSearchFacilitiesRequest = {
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
+ * An array-style parameter to identify which sections of an object to expand. See documentation for the endpoint for a list of valid expansion values.
31
+ */
32
+ expand?: Array<components.Expand> | undefined;
33
+ /**
34
+ * An ID representing a Hospital System
35
+ */
36
+ systemId?: number | undefined;
37
+ /**
38
+ * A partial string to search in the object name. Do not include any wildcard characters. Searches are not case-sensitive by default.
39
+ */
40
+ nameLike?: string | undefined;
41
+ /**
42
+ * Search for objects residing in the same state as the search string (2-letter state codes)
43
+ */
44
+ stateLike?: string | undefined;
45
+ /**
46
+ * Search by status (Active/Inactive).
47
+ *
48
+ * @remarks
49
+ *
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
+ */
52
+ status?: components.Status | undefined;
53
+ };
54
+
55
+ /**
56
+ * The request was successful, and the server has returned the requested resource in the response body.
57
+ */
58
+ export type ListOrSearchFacilitiesResponseBody = {
59
+ /**
60
+ * Pagination information for a pageable list
61
+ */
62
+ pager: components.Pager;
63
+ items: Array<components.Facility>;
64
+ };
65
+
66
+ /** @internal */
67
+ export const ListOrSearchFacilitiesRequest$inboundSchema: z.ZodType<
68
+ ListOrSearchFacilitiesRequest,
69
+ z.ZodTypeDef,
70
+ unknown
71
+ > = z.object({
72
+ sort: z.nullable(z.string()).optional(),
73
+ desc: components.Desc$inboundSchema.optional(),
74
+ page: z.number().int().optional(),
75
+ items_per_page: z.number().int().optional(),
76
+ expand: z.array(components.Expand$inboundSchema).optional(),
77
+ system_id: z.number().int().optional(),
78
+ name_like: z.string().optional(),
79
+ state_like: z.string().optional(),
80
+ status: components.Status$inboundSchema.default("Active"),
81
+ }).transform((v) => {
82
+ return remap$(v, {
83
+ "items_per_page": "itemsPerPage",
84
+ "system_id": "systemId",
85
+ "name_like": "nameLike",
86
+ "state_like": "stateLike",
87
+ });
88
+ });
89
+
90
+ /** @internal */
91
+ export type ListOrSearchFacilitiesRequest$Outbound = {
92
+ sort?: string | null | undefined;
93
+ desc?: components.Desc$Outbound | undefined;
94
+ page?: number | undefined;
95
+ items_per_page?: number | undefined;
96
+ expand?: Array<string> | undefined;
97
+ system_id?: number | undefined;
98
+ name_like?: string | undefined;
99
+ state_like?: string | undefined;
100
+ status: string;
101
+ };
102
+
103
+ /** @internal */
104
+ export const ListOrSearchFacilitiesRequest$outboundSchema: z.ZodType<
105
+ ListOrSearchFacilitiesRequest$Outbound,
106
+ z.ZodTypeDef,
107
+ ListOrSearchFacilitiesRequest
108
+ > = z.object({
109
+ sort: z.nullable(z.string()).optional(),
110
+ desc: components.Desc$outboundSchema.optional(),
111
+ page: z.number().int().optional(),
112
+ itemsPerPage: z.number().int().optional(),
113
+ expand: z.array(components.Expand$outboundSchema).optional(),
114
+ systemId: z.number().int().optional(),
115
+ nameLike: z.string().optional(),
116
+ stateLike: z.string().optional(),
117
+ status: components.Status$outboundSchema.default("Active"),
118
+ }).transform((v) => {
119
+ return remap$(v, {
120
+ itemsPerPage: "items_per_page",
121
+ systemId: "system_id",
122
+ nameLike: "name_like",
123
+ stateLike: "state_like",
124
+ });
125
+ });
126
+
127
+ /**
128
+ * @internal
129
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
130
+ */
131
+ export namespace ListOrSearchFacilitiesRequest$ {
132
+ /** @deprecated use `ListOrSearchFacilitiesRequest$inboundSchema` instead. */
133
+ export const inboundSchema = ListOrSearchFacilitiesRequest$inboundSchema;
134
+ /** @deprecated use `ListOrSearchFacilitiesRequest$outboundSchema` instead. */
135
+ export const outboundSchema = ListOrSearchFacilitiesRequest$outboundSchema;
136
+ /** @deprecated use `ListOrSearchFacilitiesRequest$Outbound` instead. */
137
+ export type Outbound = ListOrSearchFacilitiesRequest$Outbound;
138
+ }
139
+
140
+ export function listOrSearchFacilitiesRequestToJSON(
141
+ listOrSearchFacilitiesRequest: ListOrSearchFacilitiesRequest,
142
+ ): string {
143
+ return JSON.stringify(
144
+ ListOrSearchFacilitiesRequest$outboundSchema.parse(
145
+ listOrSearchFacilitiesRequest,
146
+ ),
147
+ );
148
+ }
149
+
150
+ export function listOrSearchFacilitiesRequestFromJSON(
151
+ jsonString: string,
152
+ ): SafeParseResult<ListOrSearchFacilitiesRequest, SDKValidationError> {
153
+ return safeParse(
154
+ jsonString,
155
+ (x) => ListOrSearchFacilitiesRequest$inboundSchema.parse(JSON.parse(x)),
156
+ `Failed to parse 'ListOrSearchFacilitiesRequest' from JSON`,
157
+ );
158
+ }
159
+
160
+ /** @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
+ });
169
+
170
+ /** @internal */
171
+ export type ListOrSearchFacilitiesResponseBody$Outbound = {
172
+ pager: components.Pager$Outbound;
173
+ items: Array<components.Facility$Outbound>;
174
+ };
175
+
176
+ /** @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
+ });
185
+
186
+ /**
187
+ * @internal
188
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
189
+ */
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;
198
+ }
199
+
200
+ export function listOrSearchFacilitiesResponseBodyToJSON(
201
+ listOrSearchFacilitiesResponseBody: ListOrSearchFacilitiesResponseBody,
202
+ ): string {
203
+ return JSON.stringify(
204
+ ListOrSearchFacilitiesResponseBody$outboundSchema.parse(
205
+ listOrSearchFacilitiesResponseBody,
206
+ ),
207
+ );
208
+ }
209
+
210
+ export function listOrSearchFacilitiesResponseBodyFromJSON(
211
+ jsonString: string,
212
+ ): SafeParseResult<ListOrSearchFacilitiesResponseBody, SDKValidationError> {
213
+ return safeParse(
214
+ jsonString,
215
+ (x) =>
216
+ ListOrSearchFacilitiesResponseBody$inboundSchema.parse(JSON.parse(x)),
217
+ `Failed to parse 'ListOrSearchFacilitiesResponseBody' from JSON`,
218
+ );
219
+ }
@@ -0,0 +1,179 @@
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 ListVendorJobTitlesRequest = {
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
+ * Filter job titles that include the provided strings (case insensitive). Do not include any wildcard symbols.
31
+ */
32
+ jobLike?: string | undefined;
33
+ };
34
+
35
+ /**
36
+ * The request was successful, and the server has returned the requested resource in the response body.
37
+ */
38
+ export type ListVendorJobTitlesResponseBody = {
39
+ /**
40
+ * Pagination information for a pageable list
41
+ */
42
+ pager: components.Pager;
43
+ items: Array<components.VendorJobTitle>;
44
+ };
45
+
46
+ /** @internal */
47
+ export const ListVendorJobTitlesRequest$inboundSchema: z.ZodType<
48
+ ListVendorJobTitlesRequest,
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
+ job_like: z.string().optional(),
57
+ }).transform((v) => {
58
+ return remap$(v, {
59
+ "items_per_page": "itemsPerPage",
60
+ "job_like": "jobLike",
61
+ });
62
+ });
63
+
64
+ /** @internal */
65
+ export type ListVendorJobTitlesRequest$Outbound = {
66
+ sort?: string | null | undefined;
67
+ desc?: components.Desc$Outbound | undefined;
68
+ page?: number | undefined;
69
+ items_per_page?: number | undefined;
70
+ job_like?: string | undefined;
71
+ };
72
+
73
+ /** @internal */
74
+ export const ListVendorJobTitlesRequest$outboundSchema: z.ZodType<
75
+ ListVendorJobTitlesRequest$Outbound,
76
+ z.ZodTypeDef,
77
+ ListVendorJobTitlesRequest
78
+ > = z.object({
79
+ sort: z.nullable(z.string()).optional(),
80
+ desc: components.Desc$outboundSchema.optional(),
81
+ page: z.number().int().optional(),
82
+ itemsPerPage: z.number().int().optional(),
83
+ jobLike: z.string().optional(),
84
+ }).transform((v) => {
85
+ return remap$(v, {
86
+ itemsPerPage: "items_per_page",
87
+ jobLike: "job_like",
88
+ });
89
+ });
90
+
91
+ /**
92
+ * @internal
93
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
94
+ */
95
+ export namespace ListVendorJobTitlesRequest$ {
96
+ /** @deprecated use `ListVendorJobTitlesRequest$inboundSchema` instead. */
97
+ export const inboundSchema = ListVendorJobTitlesRequest$inboundSchema;
98
+ /** @deprecated use `ListVendorJobTitlesRequest$outboundSchema` instead. */
99
+ export const outboundSchema = ListVendorJobTitlesRequest$outboundSchema;
100
+ /** @deprecated use `ListVendorJobTitlesRequest$Outbound` instead. */
101
+ export type Outbound = ListVendorJobTitlesRequest$Outbound;
102
+ }
103
+
104
+ export function listVendorJobTitlesRequestToJSON(
105
+ listVendorJobTitlesRequest: ListVendorJobTitlesRequest,
106
+ ): string {
107
+ return JSON.stringify(
108
+ ListVendorJobTitlesRequest$outboundSchema.parse(listVendorJobTitlesRequest),
109
+ );
110
+ }
111
+
112
+ export function listVendorJobTitlesRequestFromJSON(
113
+ jsonString: string,
114
+ ): SafeParseResult<ListVendorJobTitlesRequest, SDKValidationError> {
115
+ return safeParse(
116
+ jsonString,
117
+ (x) => ListVendorJobTitlesRequest$inboundSchema.parse(JSON.parse(x)),
118
+ `Failed to parse 'ListVendorJobTitlesRequest' from JSON`,
119
+ );
120
+ }
121
+
122
+ /** @internal */
123
+ export const ListVendorJobTitlesResponseBody$inboundSchema: z.ZodType<
124
+ ListVendorJobTitlesResponseBody,
125
+ z.ZodTypeDef,
126
+ unknown
127
+ > = z.object({
128
+ pager: components.Pager$inboundSchema,
129
+ items: z.array(components.VendorJobTitle$inboundSchema),
130
+ });
131
+
132
+ /** @internal */
133
+ export type ListVendorJobTitlesResponseBody$Outbound = {
134
+ pager: components.Pager$Outbound;
135
+ items: Array<components.VendorJobTitle$Outbound>;
136
+ };
137
+
138
+ /** @internal */
139
+ export const ListVendorJobTitlesResponseBody$outboundSchema: z.ZodType<
140
+ ListVendorJobTitlesResponseBody$Outbound,
141
+ z.ZodTypeDef,
142
+ ListVendorJobTitlesResponseBody
143
+ > = z.object({
144
+ pager: components.Pager$outboundSchema,
145
+ items: z.array(components.VendorJobTitle$outboundSchema),
146
+ });
147
+
148
+ /**
149
+ * @internal
150
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
151
+ */
152
+ export namespace ListVendorJobTitlesResponseBody$ {
153
+ /** @deprecated use `ListVendorJobTitlesResponseBody$inboundSchema` instead. */
154
+ export const inboundSchema = ListVendorJobTitlesResponseBody$inboundSchema;
155
+ /** @deprecated use `ListVendorJobTitlesResponseBody$outboundSchema` instead. */
156
+ export const outboundSchema = ListVendorJobTitlesResponseBody$outboundSchema;
157
+ /** @deprecated use `ListVendorJobTitlesResponseBody$Outbound` instead. */
158
+ export type Outbound = ListVendorJobTitlesResponseBody$Outbound;
159
+ }
160
+
161
+ export function listVendorJobTitlesResponseBodyToJSON(
162
+ listVendorJobTitlesResponseBody: ListVendorJobTitlesResponseBody,
163
+ ): string {
164
+ return JSON.stringify(
165
+ ListVendorJobTitlesResponseBody$outboundSchema.parse(
166
+ listVendorJobTitlesResponseBody,
167
+ ),
168
+ );
169
+ }
170
+
171
+ export function listVendorJobTitlesResponseBodyFromJSON(
172
+ jsonString: string,
173
+ ): SafeParseResult<ListVendorJobTitlesResponseBody, SDKValidationError> {
174
+ return safeParse(
175
+ jsonString,
176
+ (x) => ListVendorJobTitlesResponseBody$inboundSchema.parse(JSON.parse(x)),
177
+ `Failed to parse 'ListVendorJobTitlesResponseBody' from JSON`,
178
+ );
179
+ }
@@ -0,0 +1,270 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as components from "../components/index.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Login request parameters
13
+ */
14
+ export type LogsUserIntoTheSystemRequestBody =
15
+ | components.LoginRequirementsFromEmail
16
+ | components.LoginEmailAndPassword;
17
+
18
+ /**
19
+ * The request has been accepted for processing, but the processing has not been completed. The request might be processed later.
20
+ */
21
+ export type LogsUserIntoTheSystemResponseBody =
22
+ | (components.PasswordRequiredResponse & { requires: "password" })
23
+ | (components.MfaRequiredResponse & { requires: "mfa_code" })
24
+ | (components.SamlLoginRequiredResponse & { requires: "saml_login" });
25
+
26
+ export type LogsUserIntoTheSystemResponse =
27
+ | components.User
28
+ | (components.PasswordRequiredResponse & { requires: "password" })
29
+ | (components.MfaRequiredResponse & { requires: "mfa_code" })
30
+ | (components.SamlLoginRequiredResponse & { requires: "saml_login" });
31
+
32
+ /** @internal */
33
+ export const LogsUserIntoTheSystemRequestBody$inboundSchema: z.ZodType<
34
+ LogsUserIntoTheSystemRequestBody,
35
+ z.ZodTypeDef,
36
+ unknown
37
+ > = z.union([
38
+ components.LoginRequirementsFromEmail$inboundSchema,
39
+ components.LoginEmailAndPassword$inboundSchema,
40
+ ]);
41
+
42
+ /** @internal */
43
+ export type LogsUserIntoTheSystemRequestBody$Outbound =
44
+ | components.LoginRequirementsFromEmail$Outbound
45
+ | components.LoginEmailAndPassword$Outbound;
46
+
47
+ /** @internal */
48
+ export const LogsUserIntoTheSystemRequestBody$outboundSchema: z.ZodType<
49
+ LogsUserIntoTheSystemRequestBody$Outbound,
50
+ z.ZodTypeDef,
51
+ LogsUserIntoTheSystemRequestBody
52
+ > = z.union([
53
+ components.LoginRequirementsFromEmail$outboundSchema,
54
+ components.LoginEmailAndPassword$outboundSchema,
55
+ ]);
56
+
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ export namespace LogsUserIntoTheSystemRequestBody$ {
62
+ /** @deprecated use `LogsUserIntoTheSystemRequestBody$inboundSchema` instead. */
63
+ export const inboundSchema = LogsUserIntoTheSystemRequestBody$inboundSchema;
64
+ /** @deprecated use `LogsUserIntoTheSystemRequestBody$outboundSchema` instead. */
65
+ export const outboundSchema = LogsUserIntoTheSystemRequestBody$outboundSchema;
66
+ /** @deprecated use `LogsUserIntoTheSystemRequestBody$Outbound` instead. */
67
+ export type Outbound = LogsUserIntoTheSystemRequestBody$Outbound;
68
+ }
69
+
70
+ export function logsUserIntoTheSystemRequestBodyToJSON(
71
+ logsUserIntoTheSystemRequestBody: LogsUserIntoTheSystemRequestBody,
72
+ ): string {
73
+ return JSON.stringify(
74
+ LogsUserIntoTheSystemRequestBody$outboundSchema.parse(
75
+ logsUserIntoTheSystemRequestBody,
76
+ ),
77
+ );
78
+ }
79
+
80
+ export function logsUserIntoTheSystemRequestBodyFromJSON(
81
+ jsonString: string,
82
+ ): SafeParseResult<LogsUserIntoTheSystemRequestBody, SDKValidationError> {
83
+ return safeParse(
84
+ jsonString,
85
+ (x) => LogsUserIntoTheSystemRequestBody$inboundSchema.parse(JSON.parse(x)),
86
+ `Failed to parse 'LogsUserIntoTheSystemRequestBody' from JSON`,
87
+ );
88
+ }
89
+
90
+ /** @internal */
91
+ export const LogsUserIntoTheSystemResponseBody$inboundSchema: z.ZodType<
92
+ LogsUserIntoTheSystemResponseBody,
93
+ z.ZodTypeDef,
94
+ unknown
95
+ > = z.union([
96
+ components.PasswordRequiredResponse$inboundSchema.and(
97
+ z.object({ requires: z.literal("password") }).transform((v) => ({
98
+ requires: v.requires,
99
+ })),
100
+ ),
101
+ components.MfaRequiredResponse$inboundSchema.and(
102
+ z.object({ requires: z.literal("mfa_code") }).transform((v) => ({
103
+ requires: v.requires,
104
+ })),
105
+ ),
106
+ components.SamlLoginRequiredResponse$inboundSchema.and(
107
+ z.object({ requires: z.literal("saml_login") }).transform((v) => ({
108
+ requires: v.requires,
109
+ })),
110
+ ),
111
+ ]);
112
+
113
+ /** @internal */
114
+ export type LogsUserIntoTheSystemResponseBody$Outbound =
115
+ | (components.PasswordRequiredResponse$Outbound & { requires: "password" })
116
+ | (components.MfaRequiredResponse$Outbound & { requires: "mfa_code" })
117
+ | (components.SamlLoginRequiredResponse$Outbound & {
118
+ requires: "saml_login";
119
+ });
120
+
121
+ /** @internal */
122
+ export const LogsUserIntoTheSystemResponseBody$outboundSchema: z.ZodType<
123
+ LogsUserIntoTheSystemResponseBody$Outbound,
124
+ z.ZodTypeDef,
125
+ LogsUserIntoTheSystemResponseBody
126
+ > = z.union([
127
+ components.PasswordRequiredResponse$outboundSchema.and(
128
+ z.object({ requires: z.literal("password") }).transform((v) => ({
129
+ requires: v.requires,
130
+ })),
131
+ ),
132
+ components.MfaRequiredResponse$outboundSchema.and(
133
+ z.object({ requires: z.literal("mfa_code") }).transform((v) => ({
134
+ requires: v.requires,
135
+ })),
136
+ ),
137
+ components.SamlLoginRequiredResponse$outboundSchema.and(
138
+ z.object({ requires: z.literal("saml_login") }).transform((v) => ({
139
+ requires: v.requires,
140
+ })),
141
+ ),
142
+ ]);
143
+
144
+ /**
145
+ * @internal
146
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
147
+ */
148
+ export namespace LogsUserIntoTheSystemResponseBody$ {
149
+ /** @deprecated use `LogsUserIntoTheSystemResponseBody$inboundSchema` instead. */
150
+ export const inboundSchema = LogsUserIntoTheSystemResponseBody$inboundSchema;
151
+ /** @deprecated use `LogsUserIntoTheSystemResponseBody$outboundSchema` instead. */
152
+ export const outboundSchema =
153
+ LogsUserIntoTheSystemResponseBody$outboundSchema;
154
+ /** @deprecated use `LogsUserIntoTheSystemResponseBody$Outbound` instead. */
155
+ export type Outbound = LogsUserIntoTheSystemResponseBody$Outbound;
156
+ }
157
+
158
+ export function logsUserIntoTheSystemResponseBodyToJSON(
159
+ logsUserIntoTheSystemResponseBody: LogsUserIntoTheSystemResponseBody,
160
+ ): string {
161
+ return JSON.stringify(
162
+ LogsUserIntoTheSystemResponseBody$outboundSchema.parse(
163
+ logsUserIntoTheSystemResponseBody,
164
+ ),
165
+ );
166
+ }
167
+
168
+ export function logsUserIntoTheSystemResponseBodyFromJSON(
169
+ jsonString: string,
170
+ ): SafeParseResult<LogsUserIntoTheSystemResponseBody, SDKValidationError> {
171
+ return safeParse(
172
+ jsonString,
173
+ (x) => LogsUserIntoTheSystemResponseBody$inboundSchema.parse(JSON.parse(x)),
174
+ `Failed to parse 'LogsUserIntoTheSystemResponseBody' from JSON`,
175
+ );
176
+ }
177
+
178
+ /** @internal */
179
+ export const LogsUserIntoTheSystemResponse$inboundSchema: z.ZodType<
180
+ LogsUserIntoTheSystemResponse,
181
+ z.ZodTypeDef,
182
+ unknown
183
+ > = z.union([
184
+ components.User$inboundSchema,
185
+ z.union([
186
+ components.PasswordRequiredResponse$inboundSchema.and(
187
+ z.object({ requires: z.literal("password") }).transform((v) => ({
188
+ requires: v.requires,
189
+ })),
190
+ ),
191
+ components.MfaRequiredResponse$inboundSchema.and(
192
+ z.object({ requires: z.literal("mfa_code") }).transform((v) => ({
193
+ requires: v.requires,
194
+ })),
195
+ ),
196
+ components.SamlLoginRequiredResponse$inboundSchema.and(
197
+ z.object({ requires: z.literal("saml_login") }).transform((v) => ({
198
+ requires: v.requires,
199
+ })),
200
+ ),
201
+ ]),
202
+ ]);
203
+
204
+ /** @internal */
205
+ export type LogsUserIntoTheSystemResponse$Outbound =
206
+ | components.User$Outbound
207
+ | (components.PasswordRequiredResponse$Outbound & { requires: "password" })
208
+ | (components.MfaRequiredResponse$Outbound & { requires: "mfa_code" })
209
+ | (components.SamlLoginRequiredResponse$Outbound & {
210
+ requires: "saml_login";
211
+ });
212
+
213
+ /** @internal */
214
+ export const LogsUserIntoTheSystemResponse$outboundSchema: z.ZodType<
215
+ LogsUserIntoTheSystemResponse$Outbound,
216
+ z.ZodTypeDef,
217
+ LogsUserIntoTheSystemResponse
218
+ > = z.union([
219
+ components.User$outboundSchema,
220
+ z.union([
221
+ components.PasswordRequiredResponse$outboundSchema.and(
222
+ z.object({ requires: z.literal("password") }).transform((v) => ({
223
+ requires: v.requires,
224
+ })),
225
+ ),
226
+ components.MfaRequiredResponse$outboundSchema.and(
227
+ z.object({ requires: z.literal("mfa_code") }).transform((v) => ({
228
+ requires: v.requires,
229
+ })),
230
+ ),
231
+ components.SamlLoginRequiredResponse$outboundSchema.and(
232
+ z.object({ requires: z.literal("saml_login") }).transform((v) => ({
233
+ requires: v.requires,
234
+ })),
235
+ ),
236
+ ]),
237
+ ]);
238
+
239
+ /**
240
+ * @internal
241
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
242
+ */
243
+ export namespace LogsUserIntoTheSystemResponse$ {
244
+ /** @deprecated use `LogsUserIntoTheSystemResponse$inboundSchema` instead. */
245
+ export const inboundSchema = LogsUserIntoTheSystemResponse$inboundSchema;
246
+ /** @deprecated use `LogsUserIntoTheSystemResponse$outboundSchema` instead. */
247
+ export const outboundSchema = LogsUserIntoTheSystemResponse$outboundSchema;
248
+ /** @deprecated use `LogsUserIntoTheSystemResponse$Outbound` instead. */
249
+ export type Outbound = LogsUserIntoTheSystemResponse$Outbound;
250
+ }
251
+
252
+ export function logsUserIntoTheSystemResponseToJSON(
253
+ logsUserIntoTheSystemResponse: LogsUserIntoTheSystemResponse,
254
+ ): string {
255
+ return JSON.stringify(
256
+ LogsUserIntoTheSystemResponse$outboundSchema.parse(
257
+ logsUserIntoTheSystemResponse,
258
+ ),
259
+ );
260
+ }
261
+
262
+ export function logsUserIntoTheSystemResponseFromJSON(
263
+ jsonString: string,
264
+ ): SafeParseResult<LogsUserIntoTheSystemResponse, SDKValidationError> {
265
+ return safeParse(
266
+ jsonString,
267
+ (x) => LogsUserIntoTheSystemResponse$inboundSchema.parse(JSON.parse(x)),
268
+ `Failed to parse 'LogsUserIntoTheSystemResponse' from JSON`,
269
+ );
270
+ }