@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 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,wDAAsC;AACtC,wDAAsC;AACtC,0DAAwC"}
@@ -0,0 +1,20 @@
1
+ import * as z from "zod";
2
+ export declare class SDKValidationError extends Error {
3
+ /**
4
+ * The raw value that failed validation.
5
+ */
6
+ readonly rawValue: unknown;
7
+ /**
8
+ * The raw message that failed validation.
9
+ */
10
+ readonly rawMessage: unknown;
11
+ constructor(message: string, cause: unknown, rawValue: unknown);
12
+ /**
13
+ * Return a pretty-formatted error message if the underlying validation error
14
+ * is a ZodError or some other recognized error type, otherwise return the
15
+ * default error message.
16
+ */
17
+ pretty(): string;
18
+ }
19
+ export declare function formatZodError(err: z.ZodError, level?: number): string;
20
+ //# sourceMappingURL=sdkvalidationerror.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdkvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/errors/sdkvalidationerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,qBAAa,kBAAmB,SAAQ,KAAK;IAC3C;;OAEG;IACH,SAAgB,QAAQ,EAAE,OAAO,CAAC;IAElC;;OAEG;IACH,SAAgB,UAAU,EAAE,OAAO,CAAC;gBAExB,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO;IAQ9D;;;;OAIG;IACI,MAAM,IAAI,MAAM;CAOxB;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE,KAAK,SAAI,GAAG,MAAM,CAyDjE"}
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.SDKValidationError = void 0;
40
+ exports.formatZodError = formatZodError;
41
+ const z = __importStar(require("zod"));
42
+ class SDKValidationError extends Error {
43
+ constructor(message, cause, rawValue) {
44
+ super(`${message}: ${cause}`);
45
+ this.name = "SDKValidationError";
46
+ this.cause = cause;
47
+ this.rawValue = rawValue;
48
+ this.rawMessage = message;
49
+ }
50
+ /**
51
+ * Return a pretty-formatted error message if the underlying validation error
52
+ * is a ZodError or some other recognized error type, otherwise return the
53
+ * default error message.
54
+ */
55
+ pretty() {
56
+ if (this.cause instanceof z.ZodError) {
57
+ return `${this.rawMessage}\n${formatZodError(this.cause)}`;
58
+ }
59
+ else {
60
+ return this.toString();
61
+ }
62
+ }
63
+ }
64
+ exports.SDKValidationError = SDKValidationError;
65
+ function formatZodError(err, level = 0) {
66
+ let pre = " ".repeat(level);
67
+ pre = level > 0 ? `│${pre}` : pre;
68
+ pre += " ".repeat(level);
69
+ let message = "";
70
+ const append = (str) => (message += `\n${pre}${str}`);
71
+ const len = err.issues.length;
72
+ const headline = len === 1 ? `${len} issue found` : `${len} issues found`;
73
+ if (len) {
74
+ append(`┌ ${headline}:`);
75
+ }
76
+ for (const issue of err.issues) {
77
+ let path = issue.path.join(".");
78
+ path = path ? `<root>.${path}` : "<root>";
79
+ append(`│ • [${path}]: ${issue.message} (${issue.code})`);
80
+ switch (issue.code) {
81
+ case "invalid_literal":
82
+ case "invalid_type": {
83
+ append(`│ Want: ${issue.expected}`);
84
+ append(`│ Got: ${issue.received}`);
85
+ break;
86
+ }
87
+ case "unrecognized_keys": {
88
+ append(`│ Keys: ${issue.keys.join(", ")}`);
89
+ break;
90
+ }
91
+ case "invalid_enum_value": {
92
+ append(`│ Allowed: ${issue.options.join(", ")}`);
93
+ append(`│ Got: ${issue.received}`);
94
+ break;
95
+ }
96
+ case "invalid_union_discriminator": {
97
+ append(`│ Allowed: ${issue.options.join(", ")}`);
98
+ break;
99
+ }
100
+ case "invalid_union": {
101
+ const len = issue.unionErrors.length;
102
+ append(`│ ✖︎ Attemped to deserialize into one of ${len} union members:`);
103
+ issue.unionErrors.forEach((err, i) => {
104
+ append(`│ ✖︎ Member ${i + 1} of ${len}`);
105
+ append(`${formatZodError(err, level + 1)}`);
106
+ });
107
+ }
108
+ }
109
+ }
110
+ if (err.issues.length) {
111
+ append(`└─*`);
112
+ }
113
+ return message.slice(1);
114
+ }
115
+ //# sourceMappingURL=sdkvalidationerror.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdkvalidationerror.js","sourceRoot":"","sources":["../../src/models/errors/sdkvalidationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCH,wCAyDC;AA5FD,uCAAyB;AAEzB,MAAa,kBAAmB,SAAQ,KAAK;IAW3C,YAAY,OAAe,EAAE,KAAc,EAAE,QAAiB;QAC5D,KAAK,CAAC,GAAG,OAAO,KAAK,KAAK,EAAE,CAAC,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC;IAC5B,CAAC;IAED;;;;OAIG;IACI,MAAM;QACX,IAAI,IAAI,CAAC,KAAK,YAAY,CAAC,CAAC,QAAQ,EAAE,CAAC;YACrC,OAAO,GAAG,IAAI,CAAC,UAAU,KAAK,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QAC7D,CAAC;aAAM,CAAC;YACN,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;QACzB,CAAC;IACH,CAAC;CACF;AA/BD,gDA+BC;AAED,SAAgB,cAAc,CAAC,GAAe,EAAE,KAAK,GAAG,CAAC;IACvD,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,GAAG,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IAClC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAE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AK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACrD,MAAM,CAAC,kBAAkB,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;gBAC3C,MAAM;YACR,CAAC;YACD,KAAK,6BAA6B,CAAC,CAAC,CAAC;gBACnC,MAAM,CAAC,kBAAkB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACrD,MAAM;YACR,CAAC;YACD,KAAK,eAAe,CAAC,CAAC,CAAC;gBACrB,MAAM,GAAG,GAAG,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC;gBACrC,MAAM,CACJ,8CAA8C,GAAG,iBAAiB,CACnE,CAAC;gBACF,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;oBACnC,MAAM,CAAC,iBAAiB,CAAC,GAAG,CAAC,OAAO,GAAG,EAAE,CAAC,CAAC;oBAC3C,MAAM,CAAC,GAAG,cAAc,CAAC,GAAG,EAAE,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;gBAC9C,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;QACtB,MAAM,CAAC,KAAK,CAAC,CAAC;IAChB,CAAC;IAED,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC1B,CAAC"}
@@ -0,0 +1,115 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type CreateVendorRegistrationRequestBody = {
5
+ /**
6
+ * The vendor's email address
7
+ */
8
+ email: string;
9
+ /**
10
+ * The password is required. It must meet the following complexity rules:
11
+ *
12
+ * @remarks
13
+ *
14
+ * 1. At least 8 characters long
15
+ * 2. Contains at least 1 upper case character
16
+ * 3. Contains at least 1 lower case character
17
+ * 4. Contains at least 1 number
18
+ * 5. Contains at least 1 symbol
19
+ * 6. Must not include the user name or email address
20
+ */
21
+ password: string;
22
+ /**
23
+ * [IANA TimeZone Identifier](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
24
+ */
25
+ timezone?: string | undefined;
26
+ /**
27
+ * Leave this undefined/null unless you have been assigned an Affiliate ID by Green Security.
28
+ */
29
+ affiliateId?: number | undefined;
30
+ /**
31
+ * If the vendor is being invited to join a specific Vendor Group, provide the ID of that Vendor Group.
32
+ */
33
+ vendorGroupId?: number | undefined;
34
+ /**
35
+ * If the vendor is being invited to join a specific company that already exists, provide the company ID that was part of the invitation. Leave empty otherwise.
36
+ */
37
+ managingCompanyId?: number | undefined;
38
+ };
39
+ export type Data = {};
40
+ /**
41
+ * The request was successful, and a new resource was created.
42
+ */
43
+ export type CreateVendorRegistrationResponseBody = {
44
+ data: Data;
45
+ };
46
+ /** @internal */
47
+ export declare const CreateVendorRegistrationRequestBody$inboundSchema: z.ZodType<CreateVendorRegistrationRequestBody, z.ZodTypeDef, unknown>;
48
+ /** @internal */
49
+ export type CreateVendorRegistrationRequestBody$Outbound = {
50
+ email: string;
51
+ password: string;
52
+ timezone?: string | undefined;
53
+ affiliate_id?: number | undefined;
54
+ vendor_group_id?: number | undefined;
55
+ managing_company_id?: number | undefined;
56
+ };
57
+ /** @internal */
58
+ export declare const CreateVendorRegistrationRequestBody$outboundSchema: z.ZodType<CreateVendorRegistrationRequestBody$Outbound, z.ZodTypeDef, CreateVendorRegistrationRequestBody>;
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 declare namespace CreateVendorRegistrationRequestBody$ {
64
+ /** @deprecated use `CreateVendorRegistrationRequestBody$inboundSchema` instead. */
65
+ const inboundSchema: z.ZodType<CreateVendorRegistrationRequestBody, z.ZodTypeDef, unknown>;
66
+ /** @deprecated use `CreateVendorRegistrationRequestBody$outboundSchema` instead. */
67
+ const outboundSchema: z.ZodType<CreateVendorRegistrationRequestBody$Outbound, z.ZodTypeDef, CreateVendorRegistrationRequestBody>;
68
+ /** @deprecated use `CreateVendorRegistrationRequestBody$Outbound` instead. */
69
+ type Outbound = CreateVendorRegistrationRequestBody$Outbound;
70
+ }
71
+ export declare function createVendorRegistrationRequestBodyToJSON(createVendorRegistrationRequestBody: CreateVendorRegistrationRequestBody): string;
72
+ export declare function createVendorRegistrationRequestBodyFromJSON(jsonString: string): SafeParseResult<CreateVendorRegistrationRequestBody, SDKValidationError>;
73
+ /** @internal */
74
+ export declare const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown>;
75
+ /** @internal */
76
+ export type Data$Outbound = {};
77
+ /** @internal */
78
+ export declare const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data>;
79
+ /**
80
+ * @internal
81
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
82
+ */
83
+ export declare namespace Data$ {
84
+ /** @deprecated use `Data$inboundSchema` instead. */
85
+ const inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown>;
86
+ /** @deprecated use `Data$outboundSchema` instead. */
87
+ const outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data>;
88
+ /** @deprecated use `Data$Outbound` instead. */
89
+ type Outbound = Data$Outbound;
90
+ }
91
+ export declare function dataToJSON(data: Data): string;
92
+ export declare function dataFromJSON(jsonString: string): SafeParseResult<Data, SDKValidationError>;
93
+ /** @internal */
94
+ export declare const CreateVendorRegistrationResponseBody$inboundSchema: z.ZodType<CreateVendorRegistrationResponseBody, z.ZodTypeDef, unknown>;
95
+ /** @internal */
96
+ export type CreateVendorRegistrationResponseBody$Outbound = {
97
+ data: Data$Outbound;
98
+ };
99
+ /** @internal */
100
+ export declare const CreateVendorRegistrationResponseBody$outboundSchema: z.ZodType<CreateVendorRegistrationResponseBody$Outbound, z.ZodTypeDef, CreateVendorRegistrationResponseBody>;
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 declare namespace CreateVendorRegistrationResponseBody$ {
106
+ /** @deprecated use `CreateVendorRegistrationResponseBody$inboundSchema` instead. */
107
+ const inboundSchema: z.ZodType<CreateVendorRegistrationResponseBody, z.ZodTypeDef, unknown>;
108
+ /** @deprecated use `CreateVendorRegistrationResponseBody$outboundSchema` instead. */
109
+ const outboundSchema: z.ZodType<CreateVendorRegistrationResponseBody$Outbound, z.ZodTypeDef, CreateVendorRegistrationResponseBody>;
110
+ /** @deprecated use `CreateVendorRegistrationResponseBody$Outbound` instead. */
111
+ type Outbound = CreateVendorRegistrationResponseBody$Outbound;
112
+ }
113
+ export declare function createVendorRegistrationResponseBodyToJSON(createVendorRegistrationResponseBody: CreateVendorRegistrationResponseBody): string;
114
+ export declare function createVendorRegistrationResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateVendorRegistrationResponseBody, SDKValidationError>;
115
+ //# sourceMappingURL=createvendorregistration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createvendorregistration.d.ts","sourceRoot":"","sources":["../../src/models/operations/createvendorregistration.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,mCAAmC,GAAG;IAChD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;;;;;;;;OAWG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;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AE,MAAM,GACjB,eAAe,CAAC,oCAAoC,EAAE,kBAAkB,CAAC,CAO3E"}
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.CreateVendorRegistrationResponseBody$ = exports.CreateVendorRegistrationResponseBody$outboundSchema = exports.CreateVendorRegistrationResponseBody$inboundSchema = exports.Data$ = exports.Data$outboundSchema = exports.Data$inboundSchema = exports.CreateVendorRegistrationRequestBody$ = exports.CreateVendorRegistrationRequestBody$outboundSchema = exports.CreateVendorRegistrationRequestBody$inboundSchema = void 0;
40
+ exports.createVendorRegistrationRequestBodyToJSON = createVendorRegistrationRequestBodyToJSON;
41
+ exports.createVendorRegistrationRequestBodyFromJSON = createVendorRegistrationRequestBodyFromJSON;
42
+ exports.dataToJSON = dataToJSON;
43
+ exports.dataFromJSON = dataFromJSON;
44
+ exports.createVendorRegistrationResponseBodyToJSON = createVendorRegistrationResponseBodyToJSON;
45
+ exports.createVendorRegistrationResponseBodyFromJSON = createVendorRegistrationResponseBodyFromJSON;
46
+ const z = __importStar(require("zod"));
47
+ const primitives_js_1 = require("../../lib/primitives.js");
48
+ const schemas_js_1 = require("../../lib/schemas.js");
49
+ /** @internal */
50
+ exports.CreateVendorRegistrationRequestBody$inboundSchema = z.object({
51
+ email: z.string(),
52
+ password: z.string(),
53
+ timezone: z.string().optional(),
54
+ affiliate_id: z.number().int().optional(),
55
+ vendor_group_id: z.number().int().optional(),
56
+ managing_company_id: z.number().int().optional(),
57
+ }).transform((v) => {
58
+ return (0, primitives_js_1.remap)(v, {
59
+ "affiliate_id": "affiliateId",
60
+ "vendor_group_id": "vendorGroupId",
61
+ "managing_company_id": "managingCompanyId",
62
+ });
63
+ });
64
+ /** @internal */
65
+ exports.CreateVendorRegistrationRequestBody$outboundSchema = z.object({
66
+ email: z.string(),
67
+ password: z.string(),
68
+ timezone: z.string().optional(),
69
+ affiliateId: z.number().int().optional(),
70
+ vendorGroupId: z.number().int().optional(),
71
+ managingCompanyId: z.number().int().optional(),
72
+ }).transform((v) => {
73
+ return (0, primitives_js_1.remap)(v, {
74
+ affiliateId: "affiliate_id",
75
+ vendorGroupId: "vendor_group_id",
76
+ managingCompanyId: "managing_company_id",
77
+ });
78
+ });
79
+ /**
80
+ * @internal
81
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
82
+ */
83
+ var CreateVendorRegistrationRequestBody$;
84
+ (function (CreateVendorRegistrationRequestBody$) {
85
+ /** @deprecated use `CreateVendorRegistrationRequestBody$inboundSchema` instead. */
86
+ CreateVendorRegistrationRequestBody$.inboundSchema = exports.CreateVendorRegistrationRequestBody$inboundSchema;
87
+ /** @deprecated use `CreateVendorRegistrationRequestBody$outboundSchema` instead. */
88
+ CreateVendorRegistrationRequestBody$.outboundSchema = exports.CreateVendorRegistrationRequestBody$outboundSchema;
89
+ })(CreateVendorRegistrationRequestBody$ || (exports.CreateVendorRegistrationRequestBody$ = CreateVendorRegistrationRequestBody$ = {}));
90
+ function createVendorRegistrationRequestBodyToJSON(createVendorRegistrationRequestBody) {
91
+ return JSON.stringify(exports.CreateVendorRegistrationRequestBody$outboundSchema.parse(createVendorRegistrationRequestBody));
92
+ }
93
+ function createVendorRegistrationRequestBodyFromJSON(jsonString) {
94
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateVendorRegistrationRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateVendorRegistrationRequestBody' from JSON`);
95
+ }
96
+ /** @internal */
97
+ exports.Data$inboundSchema = z
98
+ .object({});
99
+ /** @internal */
100
+ exports.Data$outboundSchema = z.object({});
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
+ var Data$;
106
+ (function (Data$) {
107
+ /** @deprecated use `Data$inboundSchema` instead. */
108
+ Data$.inboundSchema = exports.Data$inboundSchema;
109
+ /** @deprecated use `Data$outboundSchema` instead. */
110
+ Data$.outboundSchema = exports.Data$outboundSchema;
111
+ })(Data$ || (exports.Data$ = Data$ = {}));
112
+ function dataToJSON(data) {
113
+ return JSON.stringify(exports.Data$outboundSchema.parse(data));
114
+ }
115
+ function dataFromJSON(jsonString) {
116
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Data$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Data' from JSON`);
117
+ }
118
+ /** @internal */
119
+ exports.CreateVendorRegistrationResponseBody$inboundSchema = z.object({
120
+ data: z.lazy(() => exports.Data$inboundSchema),
121
+ });
122
+ /** @internal */
123
+ exports.CreateVendorRegistrationResponseBody$outboundSchema = z.object({
124
+ data: z.lazy(() => exports.Data$outboundSchema),
125
+ });
126
+ /**
127
+ * @internal
128
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
129
+ */
130
+ var CreateVendorRegistrationResponseBody$;
131
+ (function (CreateVendorRegistrationResponseBody$) {
132
+ /** @deprecated use `CreateVendorRegistrationResponseBody$inboundSchema` instead. */
133
+ CreateVendorRegistrationResponseBody$.inboundSchema = exports.CreateVendorRegistrationResponseBody$inboundSchema;
134
+ /** @deprecated use `CreateVendorRegistrationResponseBody$outboundSchema` instead. */
135
+ CreateVendorRegistrationResponseBody$.outboundSchema = exports.CreateVendorRegistrationResponseBody$outboundSchema;
136
+ })(CreateVendorRegistrationResponseBody$ || (exports.CreateVendorRegistrationResponseBody$ = CreateVendorRegistrationResponseBody$ = {}));
137
+ function createVendorRegistrationResponseBodyToJSON(createVendorRegistrationResponseBody) {
138
+ return JSON.stringify(exports.CreateVendorRegistrationResponseBody$outboundSchema.parse(createVendorRegistrationResponseBody));
139
+ }
140
+ function createVendorRegistrationResponseBodyFromJSON(jsonString) {
141
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateVendorRegistrationResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateVendorRegistrationResponseBody' from JSON`);
142
+ }
143
+ //# sourceMappingURL=createvendorregistration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createvendorregistration.js","sourceRoot":"","sources":["../../src/models/operations/createvendorregistration.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsHH,8FAQC;AAED,kGASC;AA0BD,gCAEC;AAED,oCAQC;AAwCD,gGAQC;AAED,oGASC;AAxOD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAiDjD,gBAAgB;AACH,QAAA,iDAAiD,GAI1D,CAAC,CAAC,MAAM,CAAC;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AI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9C,kCAAkC,CACnC,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC;CACvC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,mDAAmD,GAI5D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,2BAAmB,CAAC;CACxC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,qCAAqC,CASrD;AATD,WAAiB,qCAAqC;IACpD,oFAAoF;IACvE,mDAAa,GACxB,0DAAkD,CAAC;IACrD,qFAAqF;IACxE,oDAAc,GACzB,2DAAmD,CAAC;AAGxD,CAAC,EATgB,qCAAqC,qDAArC,qCAAqC,QASrD;AAED,SAAgB,0CAA0C,CACxD,oCAA0E;IAE1E,OAAO,IAAI,CAAC,SAAS,CACnB,2DAAmD,CAAC,KAAK,CACvD,oCAAoC,CACrC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,0DAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC"}
@@ -0,0 +1,32 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type GetFacilityRequest = {
5
+ /**
6
+ * The identifier of the object
7
+ */
8
+ id: number;
9
+ };
10
+ /** @internal */
11
+ export declare const GetFacilityRequest$inboundSchema: z.ZodType<GetFacilityRequest, z.ZodTypeDef, unknown>;
12
+ /** @internal */
13
+ export type GetFacilityRequest$Outbound = {
14
+ id: number;
15
+ };
16
+ /** @internal */
17
+ export declare const GetFacilityRequest$outboundSchema: z.ZodType<GetFacilityRequest$Outbound, z.ZodTypeDef, GetFacilityRequest>;
18
+ /**
19
+ * @internal
20
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
21
+ */
22
+ export declare namespace GetFacilityRequest$ {
23
+ /** @deprecated use `GetFacilityRequest$inboundSchema` instead. */
24
+ const inboundSchema: z.ZodType<GetFacilityRequest, z.ZodTypeDef, unknown>;
25
+ /** @deprecated use `GetFacilityRequest$outboundSchema` instead. */
26
+ const outboundSchema: z.ZodType<GetFacilityRequest$Outbound, z.ZodTypeDef, GetFacilityRequest>;
27
+ /** @deprecated use `GetFacilityRequest$Outbound` instead. */
28
+ type Outbound = GetFacilityRequest$Outbound;
29
+ }
30
+ export declare function getFacilityRequestToJSON(getFacilityRequest: GetFacilityRequest): string;
31
+ export declare function getFacilityRequestFromJSON(jsonString: string): SafeParseResult<GetFacilityRequest, SDKValidationError>;
32
+ //# sourceMappingURL=getfacility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getfacility.d.ts","sourceRoot":"","sources":["../../src/models/operations/getfacility.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAGlB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa,sDAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc,0EAAoC,CAAC;IAChE,6DAA6D;IAC7D,KAAY,QAAQ,GAAG,2BAA2B,CAAC;CACpD;AAED,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.GetFacilityRequest$ = exports.GetFacilityRequest$outboundSchema = exports.GetFacilityRequest$inboundSchema = void 0;
40
+ exports.getFacilityRequestToJSON = getFacilityRequestToJSON;
41
+ exports.getFacilityRequestFromJSON = getFacilityRequestFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ /** @internal */
45
+ exports.GetFacilityRequest$inboundSchema = z.object({
46
+ id: z.number().int(),
47
+ });
48
+ /** @internal */
49
+ exports.GetFacilityRequest$outboundSchema = z.object({
50
+ id: z.number().int(),
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
+ var GetFacilityRequest$;
57
+ (function (GetFacilityRequest$) {
58
+ /** @deprecated use `GetFacilityRequest$inboundSchema` instead. */
59
+ GetFacilityRequest$.inboundSchema = exports.GetFacilityRequest$inboundSchema;
60
+ /** @deprecated use `GetFacilityRequest$outboundSchema` instead. */
61
+ GetFacilityRequest$.outboundSchema = exports.GetFacilityRequest$outboundSchema;
62
+ })(GetFacilityRequest$ || (exports.GetFacilityRequest$ = GetFacilityRequest$ = {}));
63
+ function getFacilityRequestToJSON(getFacilityRequest) {
64
+ return JSON.stringify(exports.GetFacilityRequest$outboundSchema.parse(getFacilityRequest));
65
+ }
66
+ function getFacilityRequestFromJSON(jsonString) {
67
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetFacilityRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFacilityRequest' from JSON`);
68
+ }
69
+ //# sourceMappingURL=getfacility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getfacility.js","sourceRoot":"","sources":["../../src/models/operations/getfacility.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,4DAMC;AAED,gEAQC;AAhED,uCAAyB;AACzB,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrB,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC;AAED,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,32 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type GetUserByIdRequest = {
5
+ /**
6
+ * The identifier of the object
7
+ */
8
+ id: number;
9
+ };
10
+ /** @internal */
11
+ export declare const GetUserByIdRequest$inboundSchema: z.ZodType<GetUserByIdRequest, z.ZodTypeDef, unknown>;
12
+ /** @internal */
13
+ export type GetUserByIdRequest$Outbound = {
14
+ id: number;
15
+ };
16
+ /** @internal */
17
+ export declare const GetUserByIdRequest$outboundSchema: z.ZodType<GetUserByIdRequest$Outbound, z.ZodTypeDef, GetUserByIdRequest>;
18
+ /**
19
+ * @internal
20
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
21
+ */
22
+ export declare namespace GetUserByIdRequest$ {
23
+ /** @deprecated use `GetUserByIdRequest$inboundSchema` instead. */
24
+ const inboundSchema: z.ZodType<GetUserByIdRequest, z.ZodTypeDef, unknown>;
25
+ /** @deprecated use `GetUserByIdRequest$outboundSchema` instead. */
26
+ const outboundSchema: z.ZodType<GetUserByIdRequest$Outbound, z.ZodTypeDef, GetUserByIdRequest>;
27
+ /** @deprecated use `GetUserByIdRequest$Outbound` instead. */
28
+ type Outbound = GetUserByIdRequest$Outbound;
29
+ }
30
+ export declare function getUserByIdRequestToJSON(getUserByIdRequest: GetUserByIdRequest): string;
31
+ export declare function getUserByIdRequestFromJSON(jsonString: string): SafeParseResult<GetUserByIdRequest, SDKValidationError>;
32
+ //# sourceMappingURL=getuserbyid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getuserbyid.d.ts","sourceRoot":"","sources":["../../src/models/operations/getuserbyid.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAGlB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa,sDAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc,0EAAoC,CAAC;IAChE,6DAA6D;IAC7D,KAAY,QAAQ,GAAG,2BAA2B,CAAC;CACpD;AAED,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.GetUserByIdRequest$ = exports.GetUserByIdRequest$outboundSchema = exports.GetUserByIdRequest$inboundSchema = void 0;
40
+ exports.getUserByIdRequestToJSON = getUserByIdRequestToJSON;
41
+ exports.getUserByIdRequestFromJSON = getUserByIdRequestFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ /** @internal */
45
+ exports.GetUserByIdRequest$inboundSchema = z.object({
46
+ id: z.number().int(),
47
+ });
48
+ /** @internal */
49
+ exports.GetUserByIdRequest$outboundSchema = z.object({
50
+ id: z.number().int(),
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
+ var GetUserByIdRequest$;
57
+ (function (GetUserByIdRequest$) {
58
+ /** @deprecated use `GetUserByIdRequest$inboundSchema` instead. */
59
+ GetUserByIdRequest$.inboundSchema = exports.GetUserByIdRequest$inboundSchema;
60
+ /** @deprecated use `GetUserByIdRequest$outboundSchema` instead. */
61
+ GetUserByIdRequest$.outboundSchema = exports.GetUserByIdRequest$outboundSchema;
62
+ })(GetUserByIdRequest$ || (exports.GetUserByIdRequest$ = GetUserByIdRequest$ = {}));
63
+ function getUserByIdRequestToJSON(getUserByIdRequest) {
64
+ return JSON.stringify(exports.GetUserByIdRequest$outboundSchema.parse(getUserByIdRequest));
65
+ }
66
+ function getUserByIdRequestFromJSON(jsonString) {
67
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetUserByIdRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetUserByIdRequest' from JSON`);
68
+ }
69
+ //# sourceMappingURL=getuserbyid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getuserbyid.js","sourceRoot":"","sources":["../../src/models/operations/getuserbyid.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,4DAMC;AAED,gEAQC;AAhED,uCAAyB;AACzB,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrB,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC;AAED,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}