@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,71 @@
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * A simplified representation of a Facility, typically used in list views.
12
+ */
13
+ export type FacilitySummary = {
14
+ id?: number | undefined;
15
+ name?: string | undefined;
16
+ };
17
+
18
+ /** @internal */
19
+ export const FacilitySummary$inboundSchema: z.ZodType<
20
+ FacilitySummary,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ id: z.number().int().optional(),
25
+ name: z.string().optional(),
26
+ });
27
+
28
+ /** @internal */
29
+ export type FacilitySummary$Outbound = {
30
+ id?: number | undefined;
31
+ name?: string | undefined;
32
+ };
33
+
34
+ /** @internal */
35
+ export const FacilitySummary$outboundSchema: z.ZodType<
36
+ FacilitySummary$Outbound,
37
+ z.ZodTypeDef,
38
+ FacilitySummary
39
+ > = z.object({
40
+ id: z.number().int().optional(),
41
+ name: z.string().optional(),
42
+ });
43
+
44
+ /**
45
+ * @internal
46
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
+ */
48
+ export namespace FacilitySummary$ {
49
+ /** @deprecated use `FacilitySummary$inboundSchema` instead. */
50
+ export const inboundSchema = FacilitySummary$inboundSchema;
51
+ /** @deprecated use `FacilitySummary$outboundSchema` instead. */
52
+ export const outboundSchema = FacilitySummary$outboundSchema;
53
+ /** @deprecated use `FacilitySummary$Outbound` instead. */
54
+ export type Outbound = FacilitySummary$Outbound;
55
+ }
56
+
57
+ export function facilitySummaryToJSON(
58
+ facilitySummary: FacilitySummary,
59
+ ): string {
60
+ return JSON.stringify(FacilitySummary$outboundSchema.parse(facilitySummary));
61
+ }
62
+
63
+ export function facilitySummaryFromJSON(
64
+ jsonString: string,
65
+ ): SafeParseResult<FacilitySummary, SDKValidationError> {
66
+ return safeParse(
67
+ jsonString,
68
+ (x) => FacilitySummary$inboundSchema.parse(JSON.parse(x)),
69
+ `Failed to parse 'FacilitySummary' from JSON`,
70
+ );
71
+ }
@@ -0,0 +1,77 @@
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * A set of images in different sizes
12
+ */
13
+ export type ImageSet = {
14
+ tiny?: string | undefined;
15
+ thumb?: string | undefined;
16
+ large?: string | undefined;
17
+ original?: string | undefined;
18
+ };
19
+
20
+ /** @internal */
21
+ export const ImageSet$inboundSchema: z.ZodType<
22
+ ImageSet,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ tiny: z.string().optional(),
27
+ thumb: z.string().optional(),
28
+ large: z.string().optional(),
29
+ original: z.string().optional(),
30
+ });
31
+
32
+ /** @internal */
33
+ export type ImageSet$Outbound = {
34
+ tiny?: string | undefined;
35
+ thumb?: string | undefined;
36
+ large?: string | undefined;
37
+ original?: string | undefined;
38
+ };
39
+
40
+ /** @internal */
41
+ export const ImageSet$outboundSchema: z.ZodType<
42
+ ImageSet$Outbound,
43
+ z.ZodTypeDef,
44
+ ImageSet
45
+ > = z.object({
46
+ tiny: z.string().optional(),
47
+ thumb: z.string().optional(),
48
+ large: z.string().optional(),
49
+ original: z.string().optional(),
50
+ });
51
+
52
+ /**
53
+ * @internal
54
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
55
+ */
56
+ export namespace ImageSet$ {
57
+ /** @deprecated use `ImageSet$inboundSchema` instead. */
58
+ export const inboundSchema = ImageSet$inboundSchema;
59
+ /** @deprecated use `ImageSet$outboundSchema` instead. */
60
+ export const outboundSchema = ImageSet$outboundSchema;
61
+ /** @deprecated use `ImageSet$Outbound` instead. */
62
+ export type Outbound = ImageSet$Outbound;
63
+ }
64
+
65
+ export function imageSetToJSON(imageSet: ImageSet): string {
66
+ return JSON.stringify(ImageSet$outboundSchema.parse(imageSet));
67
+ }
68
+
69
+ export function imageSetFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<ImageSet, SDKValidationError> {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) => ImageSet$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'ImageSet' from JSON`,
76
+ );
77
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ export * from "./contact.js";
6
+ export * from "./departmentsummary.js";
7
+ export * from "./desc.js";
8
+ export * from "./expand.js";
9
+ export * from "./facility.js";
10
+ export * from "./facilitysummary.js";
11
+ export * from "./imageset.js";
12
+ export * from "./loginemailandpassword.js";
13
+ export * from "./loginrequirementsfromemail.js";
14
+ export * from "./mfarequiredresponse.js";
15
+ export * from "./pager.js";
16
+ export * from "./passwordrequiredresponse.js";
17
+ export * from "./samlloginrequiredresponse.js";
18
+ export * from "./security.js";
19
+ export * from "./status.js";
20
+ export * from "./systemsummary.js";
21
+ export * from "./user.js";
22
+ export * from "./vendorjobtitle.js";
23
+ export * from "./vendortype.js";
@@ -0,0 +1,95 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Login a user with Email, Password and optional MFA
13
+ */
14
+ export type LoginEmailAndPassword = {
15
+ /**
16
+ * A valid email address
17
+ */
18
+ email: string;
19
+ /**
20
+ * MFA Code as entered by the user. Typically a 6 digit code treated as a string.
21
+ */
22
+ mfaCode?: string | undefined;
23
+ /**
24
+ * Password as entered by the user
25
+ */
26
+ password: string;
27
+ };
28
+
29
+ /** @internal */
30
+ export const LoginEmailAndPassword$inboundSchema: z.ZodType<
31
+ LoginEmailAndPassword,
32
+ z.ZodTypeDef,
33
+ unknown
34
+ > = z.object({
35
+ email: z.string(),
36
+ mfa_code: z.string().optional(),
37
+ password: z.string(),
38
+ }).transform((v) => {
39
+ return remap$(v, {
40
+ "mfa_code": "mfaCode",
41
+ });
42
+ });
43
+
44
+ /** @internal */
45
+ export type LoginEmailAndPassword$Outbound = {
46
+ email: string;
47
+ mfa_code?: string | undefined;
48
+ password: string;
49
+ };
50
+
51
+ /** @internal */
52
+ export const LoginEmailAndPassword$outboundSchema: z.ZodType<
53
+ LoginEmailAndPassword$Outbound,
54
+ z.ZodTypeDef,
55
+ LoginEmailAndPassword
56
+ > = z.object({
57
+ email: z.string(),
58
+ mfaCode: z.string().optional(),
59
+ password: z.string(),
60
+ }).transform((v) => {
61
+ return remap$(v, {
62
+ mfaCode: "mfa_code",
63
+ });
64
+ });
65
+
66
+ /**
67
+ * @internal
68
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
69
+ */
70
+ export namespace LoginEmailAndPassword$ {
71
+ /** @deprecated use `LoginEmailAndPassword$inboundSchema` instead. */
72
+ export const inboundSchema = LoginEmailAndPassword$inboundSchema;
73
+ /** @deprecated use `LoginEmailAndPassword$outboundSchema` instead. */
74
+ export const outboundSchema = LoginEmailAndPassword$outboundSchema;
75
+ /** @deprecated use `LoginEmailAndPassword$Outbound` instead. */
76
+ export type Outbound = LoginEmailAndPassword$Outbound;
77
+ }
78
+
79
+ export function loginEmailAndPasswordToJSON(
80
+ loginEmailAndPassword: LoginEmailAndPassword,
81
+ ): string {
82
+ return JSON.stringify(
83
+ LoginEmailAndPassword$outboundSchema.parse(loginEmailAndPassword),
84
+ );
85
+ }
86
+
87
+ export function loginEmailAndPasswordFromJSON(
88
+ jsonString: string,
89
+ ): SafeParseResult<LoginEmailAndPassword, SDKValidationError> {
90
+ return safeParse(
91
+ jsonString,
92
+ (x) => LoginEmailAndPassword$inboundSchema.parse(JSON.parse(x)),
93
+ `Failed to parse 'LoginEmailAndPassword' from JSON`,
94
+ );
95
+ }
@@ -0,0 +1,88 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Given a user email, checks whether SAML or Password is required.
13
+ */
14
+ export type LoginRequirementsFromEmail = {
15
+ /**
16
+ * Properly formatted email address
17
+ */
18
+ email: string;
19
+ /**
20
+ * A proper URI where the user should be sent after completing a SAML login. This is encoded into the response you will get if the user requires a SAML login.
21
+ */
22
+ returnUrl: string;
23
+ };
24
+
25
+ /** @internal */
26
+ export const LoginRequirementsFromEmail$inboundSchema: z.ZodType<
27
+ LoginRequirementsFromEmail,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ email: z.string(),
32
+ return_url: z.string(),
33
+ }).transform((v) => {
34
+ return remap$(v, {
35
+ "return_url": "returnUrl",
36
+ });
37
+ });
38
+
39
+ /** @internal */
40
+ export type LoginRequirementsFromEmail$Outbound = {
41
+ email: string;
42
+ return_url: string;
43
+ };
44
+
45
+ /** @internal */
46
+ export const LoginRequirementsFromEmail$outboundSchema: z.ZodType<
47
+ LoginRequirementsFromEmail$Outbound,
48
+ z.ZodTypeDef,
49
+ LoginRequirementsFromEmail
50
+ > = z.object({
51
+ email: z.string(),
52
+ returnUrl: z.string(),
53
+ }).transform((v) => {
54
+ return remap$(v, {
55
+ returnUrl: "return_url",
56
+ });
57
+ });
58
+
59
+ /**
60
+ * @internal
61
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
+ */
63
+ export namespace LoginRequirementsFromEmail$ {
64
+ /** @deprecated use `LoginRequirementsFromEmail$inboundSchema` instead. */
65
+ export const inboundSchema = LoginRequirementsFromEmail$inboundSchema;
66
+ /** @deprecated use `LoginRequirementsFromEmail$outboundSchema` instead. */
67
+ export const outboundSchema = LoginRequirementsFromEmail$outboundSchema;
68
+ /** @deprecated use `LoginRequirementsFromEmail$Outbound` instead. */
69
+ export type Outbound = LoginRequirementsFromEmail$Outbound;
70
+ }
71
+
72
+ export function loginRequirementsFromEmailToJSON(
73
+ loginRequirementsFromEmail: LoginRequirementsFromEmail,
74
+ ): string {
75
+ return JSON.stringify(
76
+ LoginRequirementsFromEmail$outboundSchema.parse(loginRequirementsFromEmail),
77
+ );
78
+ }
79
+
80
+ export function loginRequirementsFromEmailFromJSON(
81
+ jsonString: string,
82
+ ): SafeParseResult<LoginRequirementsFromEmail, SDKValidationError> {
83
+ return safeParse(
84
+ jsonString,
85
+ (x) => LoginRequirementsFromEmail$inboundSchema.parse(JSON.parse(x)),
86
+ `Failed to parse 'LoginRequirementsFromEmail' from JSON`,
87
+ );
88
+ }
@@ -0,0 +1,160 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export const MfaRequiredResponseRequires = {
13
+ MfaCode: "mfa_code",
14
+ } as const;
15
+ export type MfaRequiredResponseRequires = ClosedEnum<
16
+ typeof MfaRequiredResponseRequires
17
+ >;
18
+
19
+ export const MfaMethod = {
20
+ Text: "text",
21
+ Email: "email",
22
+ } as const;
23
+ export type MfaMethod = ClosedEnum<typeof MfaMethod>;
24
+
25
+ /**
26
+ * The response is sent when a login is successful, but requires more information such as a MFA.
27
+ *
28
+ * @remarks
29
+ *
30
+ * If the `mfa_method` is text or email, it's best to show helper text to the user to notify them that a code was sent via mobile or email and they should enter it to proceed.
31
+ */
32
+ export type MfaRequiredResponse = {
33
+ requires: MfaRequiredResponseRequires;
34
+ success: boolean;
35
+ /**
36
+ * Error describing the exact condition of what further steps are needed to finish the login process.
37
+ */
38
+ error: string;
39
+ /**
40
+ * A redacted version of the phone number such as `###-###-1234`
41
+ */
42
+ mobilePhone?: string | undefined;
43
+ mfaMethod?: MfaMethod | undefined;
44
+ };
45
+
46
+ /** @internal */
47
+ export const MfaRequiredResponseRequires$inboundSchema: z.ZodNativeEnum<
48
+ typeof MfaRequiredResponseRequires
49
+ > = z.nativeEnum(MfaRequiredResponseRequires);
50
+
51
+ /** @internal */
52
+ export const MfaRequiredResponseRequires$outboundSchema: z.ZodNativeEnum<
53
+ typeof MfaRequiredResponseRequires
54
+ > = MfaRequiredResponseRequires$inboundSchema;
55
+
56
+ /**
57
+ * @internal
58
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
+ */
60
+ export namespace MfaRequiredResponseRequires$ {
61
+ /** @deprecated use `MfaRequiredResponseRequires$inboundSchema` instead. */
62
+ export const inboundSchema = MfaRequiredResponseRequires$inboundSchema;
63
+ /** @deprecated use `MfaRequiredResponseRequires$outboundSchema` instead. */
64
+ export const outboundSchema = MfaRequiredResponseRequires$outboundSchema;
65
+ }
66
+
67
+ /** @internal */
68
+ export const MfaMethod$inboundSchema: z.ZodNativeEnum<typeof MfaMethod> = z
69
+ .nativeEnum(MfaMethod);
70
+
71
+ /** @internal */
72
+ export const MfaMethod$outboundSchema: z.ZodNativeEnum<typeof MfaMethod> =
73
+ MfaMethod$inboundSchema;
74
+
75
+ /**
76
+ * @internal
77
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
78
+ */
79
+ export namespace MfaMethod$ {
80
+ /** @deprecated use `MfaMethod$inboundSchema` instead. */
81
+ export const inboundSchema = MfaMethod$inboundSchema;
82
+ /** @deprecated use `MfaMethod$outboundSchema` instead. */
83
+ export const outboundSchema = MfaMethod$outboundSchema;
84
+ }
85
+
86
+ /** @internal */
87
+ export const MfaRequiredResponse$inboundSchema: z.ZodType<
88
+ MfaRequiredResponse,
89
+ z.ZodTypeDef,
90
+ unknown
91
+ > = z.object({
92
+ requires: MfaRequiredResponseRequires$inboundSchema,
93
+ success: z.boolean(),
94
+ error: z.string(),
95
+ mobile_phone: z.string().optional(),
96
+ mfa_method: MfaMethod$inboundSchema.optional(),
97
+ }).transform((v) => {
98
+ return remap$(v, {
99
+ "mobile_phone": "mobilePhone",
100
+ "mfa_method": "mfaMethod",
101
+ });
102
+ });
103
+
104
+ /** @internal */
105
+ export type MfaRequiredResponse$Outbound = {
106
+ requires: string;
107
+ success: boolean;
108
+ error: string;
109
+ mobile_phone?: string | undefined;
110
+ mfa_method?: string | undefined;
111
+ };
112
+
113
+ /** @internal */
114
+ export const MfaRequiredResponse$outboundSchema: z.ZodType<
115
+ MfaRequiredResponse$Outbound,
116
+ z.ZodTypeDef,
117
+ MfaRequiredResponse
118
+ > = z.object({
119
+ requires: MfaRequiredResponseRequires$outboundSchema,
120
+ success: z.boolean(),
121
+ error: z.string(),
122
+ mobilePhone: z.string().optional(),
123
+ mfaMethod: MfaMethod$outboundSchema.optional(),
124
+ }).transform((v) => {
125
+ return remap$(v, {
126
+ mobilePhone: "mobile_phone",
127
+ mfaMethod: "mfa_method",
128
+ });
129
+ });
130
+
131
+ /**
132
+ * @internal
133
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
134
+ */
135
+ export namespace MfaRequiredResponse$ {
136
+ /** @deprecated use `MfaRequiredResponse$inboundSchema` instead. */
137
+ export const inboundSchema = MfaRequiredResponse$inboundSchema;
138
+ /** @deprecated use `MfaRequiredResponse$outboundSchema` instead. */
139
+ export const outboundSchema = MfaRequiredResponse$outboundSchema;
140
+ /** @deprecated use `MfaRequiredResponse$Outbound` instead. */
141
+ export type Outbound = MfaRequiredResponse$Outbound;
142
+ }
143
+
144
+ export function mfaRequiredResponseToJSON(
145
+ mfaRequiredResponse: MfaRequiredResponse,
146
+ ): string {
147
+ return JSON.stringify(
148
+ MfaRequiredResponse$outboundSchema.parse(mfaRequiredResponse),
149
+ );
150
+ }
151
+
152
+ export function mfaRequiredResponseFromJSON(
153
+ jsonString: string,
154
+ ): SafeParseResult<MfaRequiredResponse, SDKValidationError> {
155
+ return safeParse(
156
+ jsonString,
157
+ (x) => MfaRequiredResponse$inboundSchema.parse(JSON.parse(x)),
158
+ `Failed to parse 'MfaRequiredResponse' from JSON`,
159
+ );
160
+ }
@@ -0,0 +1,126 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * Pagination information for a pageable list
13
+ */
14
+ export type Pager = {
15
+ /**
16
+ * Url path of where to fetch this or other pages of the same objects
17
+ */
18
+ baseUrl: string;
19
+ /**
20
+ * A comma-separated list of column names signifying which columns the `items` are sorted by.
21
+ */
22
+ sort: string;
23
+ /**
24
+ * `0` signifies the items are sorted in ascending order, `1` signifies the items are sorted in descending order
25
+ */
26
+ desc: number;
27
+ /**
28
+ * Number of total items for all pages
29
+ */
30
+ itemCount: number;
31
+ itemsPerPage: number;
32
+ /**
33
+ * The page represented by the current `items` list. Pages are 1-based for easy display to the user.
34
+ */
35
+ page: number;
36
+ /**
37
+ * When `true`, the following fields may be updated by adding query string parameters to the request (via GET)
38
+ *
39
+ * @remarks
40
+ *
41
+ * - sort
42
+ * - desc
43
+ * - page
44
+ * - items_per_page
45
+ */
46
+ useUrlParams: boolean;
47
+ };
48
+
49
+ /** @internal */
50
+ export const Pager$inboundSchema: z.ZodType<Pager, z.ZodTypeDef, unknown> = z
51
+ .object({
52
+ base_url: z.string(),
53
+ sort: z.string(),
54
+ desc: z.number().int(),
55
+ item_count: z.number().int(),
56
+ items_per_page: z.number().int(),
57
+ page: z.number().int(),
58
+ use_url_params: z.boolean(),
59
+ }).transform((v) => {
60
+ return remap$(v, {
61
+ "base_url": "baseUrl",
62
+ "item_count": "itemCount",
63
+ "items_per_page": "itemsPerPage",
64
+ "use_url_params": "useUrlParams",
65
+ });
66
+ });
67
+
68
+ /** @internal */
69
+ export type Pager$Outbound = {
70
+ base_url: string;
71
+ sort: string;
72
+ desc: number;
73
+ item_count: number;
74
+ items_per_page: number;
75
+ page: number;
76
+ use_url_params: boolean;
77
+ };
78
+
79
+ /** @internal */
80
+ export const Pager$outboundSchema: z.ZodType<
81
+ Pager$Outbound,
82
+ z.ZodTypeDef,
83
+ Pager
84
+ > = z.object({
85
+ baseUrl: z.string(),
86
+ sort: z.string(),
87
+ desc: z.number().int(),
88
+ itemCount: z.number().int(),
89
+ itemsPerPage: z.number().int(),
90
+ page: z.number().int(),
91
+ useUrlParams: z.boolean(),
92
+ }).transform((v) => {
93
+ return remap$(v, {
94
+ baseUrl: "base_url",
95
+ itemCount: "item_count",
96
+ itemsPerPage: "items_per_page",
97
+ useUrlParams: "use_url_params",
98
+ });
99
+ });
100
+
101
+ /**
102
+ * @internal
103
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
104
+ */
105
+ export namespace Pager$ {
106
+ /** @deprecated use `Pager$inboundSchema` instead. */
107
+ export const inboundSchema = Pager$inboundSchema;
108
+ /** @deprecated use `Pager$outboundSchema` instead. */
109
+ export const outboundSchema = Pager$outboundSchema;
110
+ /** @deprecated use `Pager$Outbound` instead. */
111
+ export type Outbound = Pager$Outbound;
112
+ }
113
+
114
+ export function pagerToJSON(pager: Pager): string {
115
+ return JSON.stringify(Pager$outboundSchema.parse(pager));
116
+ }
117
+
118
+ export function pagerFromJSON(
119
+ jsonString: string,
120
+ ): SafeParseResult<Pager, SDKValidationError> {
121
+ return safeParse(
122
+ jsonString,
123
+ (x) => Pager$inboundSchema.parse(JSON.parse(x)),
124
+ `Failed to parse 'Pager' from JSON`,
125
+ );
126
+ }