@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,53 @@
1
+ import { InvalidateQueryFilters, QueryClient, QueryFunctionContext, QueryKey, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query";
2
+ import { GreenSecurityCore } from "../core.js";
3
+ import { RequestOptions } from "../lib/sdks.js";
4
+ import * as components from "../models/components/index.js";
5
+ import * as operations from "../models/operations/index.js";
6
+ import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js";
7
+ export type VendorsListVendorJobTitlesQueryData = operations.ListVendorJobTitlesResponseBody;
8
+ /**
9
+ * List vendor job titles
10
+ *
11
+ * @remarks
12
+ * List valid job titles for Vendors. This can be used during sign up or in a filter.
13
+ */
14
+ export declare function useVendorsListVendorJobTitles(request: operations.ListVendorJobTitlesRequest, options?: QueryHookOptions<VendorsListVendorJobTitlesQueryData>): UseQueryResult<VendorsListVendorJobTitlesQueryData, Error>;
15
+ /**
16
+ * List vendor job titles
17
+ *
18
+ * @remarks
19
+ * List valid job titles for Vendors. This can be used during sign up or in a filter.
20
+ */
21
+ export declare function useVendorsListVendorJobTitlesSuspense(request: operations.ListVendorJobTitlesRequest, options?: SuspenseQueryHookOptions<VendorsListVendorJobTitlesQueryData>): UseSuspenseQueryResult<VendorsListVendorJobTitlesQueryData, Error>;
22
+ export declare function prefetchVendorsListVendorJobTitles(queryClient: QueryClient, client$: GreenSecurityCore, request: operations.ListVendorJobTitlesRequest): Promise<void>;
23
+ export declare function setVendorsListVendorJobTitlesData(client: QueryClient, queryKeyBase: [
24
+ parameters: {
25
+ sort?: string | null | undefined;
26
+ desc?: components.Desc | undefined;
27
+ page?: number | undefined;
28
+ itemsPerPage?: number | undefined;
29
+ jobLike?: string | undefined;
30
+ }
31
+ ], data: VendorsListVendorJobTitlesQueryData): VendorsListVendorJobTitlesQueryData | undefined;
32
+ export declare function invalidateVendorsListVendorJobTitles(client: QueryClient, queryKeyBase: TupleToPrefixes<[
33
+ parameters: {
34
+ sort?: string | null | undefined;
35
+ desc?: components.Desc | undefined;
36
+ page?: number | undefined;
37
+ itemsPerPage?: number | undefined;
38
+ jobLike?: string | undefined;
39
+ }
40
+ ]>, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
41
+ export declare function invalidateAllVendorsListVendorJobTitles(client: QueryClient, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
42
+ export declare function buildVendorsListVendorJobTitlesQuery(client$: GreenSecurityCore, request: operations.ListVendorJobTitlesRequest, options?: RequestOptions): {
43
+ queryKey: QueryKey;
44
+ queryFn: (context: QueryFunctionContext) => Promise<VendorsListVendorJobTitlesQueryData>;
45
+ };
46
+ export declare function queryKeyVendorsListVendorJobTitles(parameters: {
47
+ sort?: string | null | undefined;
48
+ desc?: components.Desc | undefined;
49
+ page?: number | undefined;
50
+ itemsPerPage?: number | undefined;
51
+ jobLike?: string | undefined;
52
+ }): QueryKey;
53
+ //# sourceMappingURL=vendorsListVendorJobTitles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendorsListVendorJobTitles.d.ts","sourceRoot":"","sources":["../src/react-query/vendorsListVendorJobTitles.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,sBAAsB,EACtB,WAAW,EACX,oBAAoB,EACpB,QAAQ,EAER,cAAc,EAEd,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,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
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useVendorsListVendorJobTitles = useVendorsListVendorJobTitles;
7
+ exports.useVendorsListVendorJobTitlesSuspense = useVendorsListVendorJobTitlesSuspense;
8
+ exports.prefetchVendorsListVendorJobTitles = prefetchVendorsListVendorJobTitles;
9
+ exports.setVendorsListVendorJobTitlesData = setVendorsListVendorJobTitlesData;
10
+ exports.invalidateVendorsListVendorJobTitles = invalidateVendorsListVendorJobTitles;
11
+ exports.invalidateAllVendorsListVendorJobTitles = invalidateAllVendorsListVendorJobTitles;
12
+ exports.buildVendorsListVendorJobTitlesQuery = buildVendorsListVendorJobTitlesQuery;
13
+ exports.queryKeyVendorsListVendorJobTitles = queryKeyVendorsListVendorJobTitles;
14
+ const react_query_1 = require("@tanstack/react-query");
15
+ const vendorsListVendorJobTitles_js_1 = require("../funcs/vendorsListVendorJobTitles.js");
16
+ const primitives_js_1 = require("../lib/primitives.js");
17
+ const fp_js_1 = require("../types/fp.js");
18
+ const _context_js_1 = require("./_context.js");
19
+ /**
20
+ * List vendor job titles
21
+ *
22
+ * @remarks
23
+ * List valid job titles for Vendors. This can be used during sign up or in a filter.
24
+ */
25
+ function useVendorsListVendorJobTitles(request, options) {
26
+ const client = (0, _context_js_1.useGreenSecurityContext)();
27
+ return (0, react_query_1.useQuery)({
28
+ ...buildVendorsListVendorJobTitlesQuery(client, request, options),
29
+ ...options,
30
+ });
31
+ }
32
+ /**
33
+ * List vendor job titles
34
+ *
35
+ * @remarks
36
+ * List valid job titles for Vendors. This can be used during sign up or in a filter.
37
+ */
38
+ function useVendorsListVendorJobTitlesSuspense(request, options) {
39
+ const client = (0, _context_js_1.useGreenSecurityContext)();
40
+ return (0, react_query_1.useSuspenseQuery)({
41
+ ...buildVendorsListVendorJobTitlesQuery(client, request, options),
42
+ ...options,
43
+ });
44
+ }
45
+ function prefetchVendorsListVendorJobTitles(queryClient, client$, request) {
46
+ return queryClient.prefetchQuery({
47
+ ...buildVendorsListVendorJobTitlesQuery(client$, request),
48
+ });
49
+ }
50
+ function setVendorsListVendorJobTitlesData(client, queryKeyBase, data) {
51
+ const key = queryKeyVendorsListVendorJobTitles(...queryKeyBase);
52
+ return client.setQueryData(key, data);
53
+ }
54
+ function invalidateVendorsListVendorJobTitles(client, queryKeyBase, filters) {
55
+ return client.invalidateQueries({
56
+ ...filters,
57
+ queryKey: [
58
+ "@greensecurity/javascript-sdk",
59
+ "vendors",
60
+ "listVendorJobTitles",
61
+ ...queryKeyBase,
62
+ ],
63
+ });
64
+ }
65
+ function invalidateAllVendorsListVendorJobTitles(client, filters) {
66
+ return client.invalidateQueries({
67
+ ...filters,
68
+ queryKey: [
69
+ "@greensecurity/javascript-sdk",
70
+ "vendors",
71
+ "listVendorJobTitles",
72
+ ],
73
+ });
74
+ }
75
+ function buildVendorsListVendorJobTitlesQuery(client$, request, options) {
76
+ return {
77
+ queryKey: queryKeyVendorsListVendorJobTitles({
78
+ sort: request.sort,
79
+ desc: request.desc,
80
+ page: request.page,
81
+ itemsPerPage: request.itemsPerPage,
82
+ jobLike: request.jobLike,
83
+ }),
84
+ queryFn: async function vendorsListVendorJobTitlesQueryFn(ctx) {
85
+ const sig = (0, primitives_js_1.combineSignals)(ctx.signal, options?.fetchOptions?.signal);
86
+ const mergedOptions = {
87
+ ...options,
88
+ fetchOptions: { ...options?.fetchOptions, signal: sig },
89
+ };
90
+ return (0, fp_js_1.unwrapAsync)((0, vendorsListVendorJobTitles_js_1.vendorsListVendorJobTitles)(client$, request, mergedOptions));
91
+ },
92
+ };
93
+ }
94
+ function queryKeyVendorsListVendorJobTitles(parameters) {
95
+ return [
96
+ "@greensecurity/javascript-sdk",
97
+ "vendors",
98
+ "listVendorJobTitles",
99
+ parameters,
100
+ ];
101
+ }
102
+ //# sourceMappingURL=vendorsListVendorJobTitles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendorsListVendorJobTit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dk.js";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/sdk/index.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC"}
package/sdk/index.js ADDED
@@ -0,0 +1,21 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
17
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ __exportStar(require("./sdk.js"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/sdk/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,2CAAyB"}
@@ -0,0 +1,33 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as components from "../models/components/index.js";
3
+ import * as operations from "../models/operations/index.js";
4
+ export declare class Organizations extends ClientSDK {
5
+ /**
6
+ * List or search facilities
7
+ *
8
+ * @remarks
9
+ * List or search facilities.
10
+ *
11
+ * Available `expand` scopes are:
12
+ *
13
+ * - facility.appointment_policy
14
+ * - facility.contacts
15
+ * - facility.vendor_counts
16
+ * - facility.flu_credential
17
+ * - facility.scrubs_policy
18
+ * - facility.system
19
+ * - facility.vendor_guest_policy
20
+ * - facility.vendor_policy
21
+ * - facility.visitor_policy
22
+ * - facility.workflow
23
+ */
24
+ listOrSearchFacilities(request: operations.ListOrSearchFacilitiesRequest, options?: RequestOptions): Promise<operations.ListOrSearchFacilitiesResponseBody>;
25
+ /**
26
+ * Get facility
27
+ *
28
+ * @remarks
29
+ * Retrieve an individual facility.
30
+ */
31
+ getFacility(request: operations.GetFacilityRequest, options?: RequestOptions): Promise<components.Facility>;
32
+ }
33
+ //# sourceMappingURL=organizations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../src/sdk/organizations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;;;;;;;;;;;;;;;;;OAkBG;IACG,sBAAsB,CAC1B,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAQzD;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;CAOhC"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Organizations = void 0;
7
+ const organizationsGetFacility_js_1 = require("../funcs/organizationsGetFacility.js");
8
+ const organizationsListOrSearchFacilities_js_1 = require("../funcs/organizationsListOrSearchFacilities.js");
9
+ const sdks_js_1 = require("../lib/sdks.js");
10
+ const fp_js_1 = require("../types/fp.js");
11
+ class Organizations extends sdks_js_1.ClientSDK {
12
+ /**
13
+ * List or search facilities
14
+ *
15
+ * @remarks
16
+ * List or search facilities.
17
+ *
18
+ * Available `expand` scopes are:
19
+ *
20
+ * - facility.appointment_policy
21
+ * - facility.contacts
22
+ * - facility.vendor_counts
23
+ * - facility.flu_credential
24
+ * - facility.scrubs_policy
25
+ * - facility.system
26
+ * - facility.vendor_guest_policy
27
+ * - facility.vendor_policy
28
+ * - facility.visitor_policy
29
+ * - facility.workflow
30
+ */
31
+ async listOrSearchFacilities(request, options) {
32
+ return (0, fp_js_1.unwrapAsync)((0, organizationsListOrSearchFacilities_js_1.organizationsListOrSearchFacilities)(this, request, options));
33
+ }
34
+ /**
35
+ * Get facility
36
+ *
37
+ * @remarks
38
+ * Retrieve an individual facility.
39
+ */
40
+ async getFacility(request, options) {
41
+ return (0, fp_js_1.unwrapAsync)((0, organizationsGetFacility_js_1.organizationsGetFacility)(this, request, options));
42
+ }
43
+ }
44
+ exports.Organizations = Organizations;
45
+ //# sourceMappingURL=organizations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organizations.js","sourceRoot":"","sources":["../src/sdk/organizations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,sFAAgF;AAChF,4GAAsG;AACtG,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,aAAc,SAAQ,mBAAS;IAC1C;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4EAAmC,EACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA/CD,sCA+CC"}
package/sdk/sdk.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ import { ClientSDK } from "../lib/sdks.js";
2
+ import { Organizations } from "./organizations.js";
3
+ import { User } from "./user.js";
4
+ import { Vendors } from "./vendors.js";
5
+ export declare class GreenSecurity extends ClientSDK {
6
+ private _vendors?;
7
+ get vendors(): Vendors;
8
+ private _user?;
9
+ get user(): User;
10
+ private _organizations?;
11
+ get organizations(): Organizations;
12
+ }
13
+ //# sourceMappingURL=sdk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.d.ts","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,qBAAa,aAAc,SAAQ,SAAS;IAC1C,OAAO,CAAC,QAAQ,CAAC,CAAU;IAC3B,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,KAAK,CAAC,CAAO;IACrB,IAAI,IAAI,IAAI,IAAI,CAEf;IAED,OAAO,CAAC,cAAc,CAAC,CAAgB;IACvC,IAAI,aAAa,IAAI,aAAa,CAEjC;CACF"}
package/sdk/sdk.js ADDED
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.GreenSecurity = void 0;
7
+ const sdks_js_1 = require("../lib/sdks.js");
8
+ const organizations_js_1 = require("./organizations.js");
9
+ const user_js_1 = require("./user.js");
10
+ const vendors_js_1 = require("./vendors.js");
11
+ class GreenSecurity extends sdks_js_1.ClientSDK {
12
+ get vendors() {
13
+ return (this._vendors ?? (this._vendors = new vendors_js_1.Vendors(this._options)));
14
+ }
15
+ get user() {
16
+ return (this._user ?? (this._user = new user_js_1.User(this._options)));
17
+ }
18
+ get organizations() {
19
+ return (this._organizations ?? (this._organizations = new organizations_js_1.Organizations(this._options)));
20
+ }
21
+ }
22
+ exports.GreenSecurity = GreenSecurity;
23
+ //# sourceMappingURL=sdk.js.map
package/sdk/sdk.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,yDAAmD;AACnD,uCAAiC;AACjC,6CAAuC;AAEvC,MAAa,aAAc,SAAQ,mBAAS;IAE1C,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,QAAQ,KAAb,IAAI,CAAC,QAAQ,GAAK,IAAI,oBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxD,CAAC;IAGD,IAAI,IAAI;QACN,OAAO,CAAC,IAAI,CAAC,KAAK,KAAV,IAAI,CAAC,KAAK,GAAK,IAAI,cAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAClD,CAAC;IAGD,IAAI,aAAa;QACf,OAAO,CAAC,IAAI,CAAC,cAAc,KAAnB,IAAI,CAAC,cAAc,GAAK,IAAI,gCAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACpE,CAAC;CACF;AAfD,sCAeC"}
package/sdk/user.d.ts ADDED
@@ -0,0 +1,57 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as components from "../models/components/index.js";
3
+ import * as operations from "../models/operations/index.js";
4
+ export declare class User extends ClientSDK {
5
+ /**
6
+ * Get current user
7
+ *
8
+ * @remarks
9
+ * Returns a user object for the user represented by the authorization token
10
+ */
11
+ getCurrentUser(options?: RequestOptions): Promise<components.User>;
12
+ /**
13
+ * Get user by id
14
+ *
15
+ * @remarks
16
+ * Returns a user object for the user represented by the identifier in the path.
17
+ */
18
+ getUserById(request: operations.GetUserByIdRequest, options?: RequestOptions): Promise<components.User>;
19
+ /**
20
+ * Logs user into the system
21
+ *
22
+ * @remarks
23
+ * This endpoint allows a user to authenticate themselves and retrieve a permanent token for access.
24
+ *
25
+ * Permanent tokens should only ever be stored in an encrypted storage because they represent a fully logged in user.
26
+ *
27
+ * Users may log in with `email/password`, `SAML`, `magic link` or `mfa`. The application should handle all of the above as equally valid login methods.
28
+ *
29
+ * The most common way to authenticate a user is to log in with an email and password. If the user provides valid credentials, the server will either respond with a full user object including the token.
30
+ *
31
+ * When the user's account is protected via MFA, the server will send a 6 digit code to the user via their default MFA provider. You should collect that code and resend the email, password and mfa_code together to get a successful authentication.
32
+ *
33
+ * The ideal flow for a login sequence is the following:
34
+ *
35
+ * 1. Present an email address field only and allow the user to submit
36
+ * 2. Send `email` and `return_url` payload to this endpoint
37
+ * 3. Follow the flow based on the response `requires` field
38
+ *
39
+ * Requires: `password`
40
+ *
41
+ * 1. Show a password field for the user to fill out
42
+ * 2. Submit the `email` and `password` to this endpoint
43
+ * 3. If the response is `200`, the login is done. If the response is `201`, then check if `requires: mfa_code` is returned and show MFA flow
44
+ * 4. Submit `email`, `password`, `mfa_code` to this endpoint
45
+ * 5. If the response is `200`, the login is done. Otherwise, show the appropriate error to the user and go back to step 1 or 3 depending on the error.
46
+ *
47
+ * Requires: `saml_login`
48
+ *
49
+ * 1. [Open a browser](https://docs.expo.dev/versions/latest/sdk/webbrowser/#webbrowseropenauthsessionasyncurl-redirecturl-options) to the url returned in `sso_url`
50
+ * 2. User completes sign-in using their configured SAML IdP
51
+ * 3. Site redirects to your selected `return_url`
52
+ * 4. The `user_token` will be appended as a query string parameter to your `return_url` - you must parse this token and store it
53
+ * 5. Fetch the user object from `/users/me` using the token
54
+ */
55
+ logsUserIntoTheSystem(request: operations.LogsUserIntoTheSystemRequestBody, options?: RequestOptions): Promise<operations.LogsUserIntoTheSystemResponse>;
56
+ }
57
+ //# sourceMappingURL=user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../src/sdk/user.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,IAAK,SAAQ,SAAS;IACjC;;;;;OAKG;IACG,cAAc,CAClB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;IAO3B;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;IAQ3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACG,qBAAqB,CACzB,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAOrD"}
package/sdk/user.js ADDED
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.User = void 0;
7
+ const userGetCurrentUser_js_1 = require("../funcs/userGetCurrentUser.js");
8
+ const userGetUserById_js_1 = require("../funcs/userGetUserById.js");
9
+ const userLogsUserIntoTheSystem_js_1 = require("../funcs/userLogsUserIntoTheSystem.js");
10
+ const sdks_js_1 = require("../lib/sdks.js");
11
+ const fp_js_1 = require("../types/fp.js");
12
+ class User extends sdks_js_1.ClientSDK {
13
+ /**
14
+ * Get current user
15
+ *
16
+ * @remarks
17
+ * Returns a user object for the user represented by the authorization token
18
+ */
19
+ async getCurrentUser(options) {
20
+ return (0, fp_js_1.unwrapAsync)((0, userGetCurrentUser_js_1.userGetCurrentUser)(this, options));
21
+ }
22
+ /**
23
+ * Get user by id
24
+ *
25
+ * @remarks
26
+ * Returns a user object for the user represented by the identifier in the path.
27
+ */
28
+ async getUserById(request, options) {
29
+ return (0, fp_js_1.unwrapAsync)((0, userGetUserById_js_1.userGetUserById)(this, request, options));
30
+ }
31
+ /**
32
+ * Logs user into the system
33
+ *
34
+ * @remarks
35
+ * This endpoint allows a user to authenticate themselves and retrieve a permanent token for access.
36
+ *
37
+ * Permanent tokens should only ever be stored in an encrypted storage because they represent a fully logged in user.
38
+ *
39
+ * Users may log in with `email/password`, `SAML`, `magic link` or `mfa`. The application should handle all of the above as equally valid login methods.
40
+ *
41
+ * The most common way to authenticate a user is to log in with an email and password. If the user provides valid credentials, the server will either respond with a full user object including the token.
42
+ *
43
+ * When the user's account is protected via MFA, the server will send a 6 digit code to the user via their default MFA provider. You should collect that code and resend the email, password and mfa_code together to get a successful authentication.
44
+ *
45
+ * The ideal flow for a login sequence is the following:
46
+ *
47
+ * 1. Present an email address field only and allow the user to submit
48
+ * 2. Send `email` and `return_url` payload to this endpoint
49
+ * 3. Follow the flow based on the response `requires` field
50
+ *
51
+ * Requires: `password`
52
+ *
53
+ * 1. Show a password field for the user to fill out
54
+ * 2. Submit the `email` and `password` to this endpoint
55
+ * 3. If the response is `200`, the login is done. If the response is `201`, then check if `requires: mfa_code` is returned and show MFA flow
56
+ * 4. Submit `email`, `password`, `mfa_code` to this endpoint
57
+ * 5. If the response is `200`, the login is done. Otherwise, show the appropriate error to the user and go back to step 1 or 3 depending on the error.
58
+ *
59
+ * Requires: `saml_login`
60
+ *
61
+ * 1. [Open a browser](https://docs.expo.dev/versions/latest/sdk/webbrowser/#webbrowseropenauthsessionasyncurl-redirecturl-options) to the url returned in `sso_url`
62
+ * 2. User completes sign-in using their configured SAML IdP
63
+ * 3. Site redirects to your selected `return_url`
64
+ * 4. The `user_token` will be appended as a query string parameter to your `return_url` - you must parse this token and store it
65
+ * 5. Fetch the user object from `/users/me` using the token
66
+ */
67
+ async logsUserIntoTheSystem(request, options) {
68
+ return (0, fp_js_1.unwrapAsync)((0, userLogsUserIntoTheSystem_js_1.userLogsUserIntoTheSystem)(this, request, options));
69
+ }
70
+ }
71
+ exports.User = User;
72
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../src/sdk/user.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0EAAoE;AACpE,oEAA8D;AAC9D,wFAAkF;AAClF,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,IAAK,SAAQ,mBAAS;IACjC;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,KAAK,CAAC,qBAAqB,CACzB,OAAoD,EACpD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA/ED,oBA+EC"}
@@ -0,0 +1,19 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as operations from "../models/operations/index.js";
3
+ export declare class Vendors extends ClientSDK {
4
+ /**
5
+ * Create vendor registration
6
+ *
7
+ * @remarks
8
+ * Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.
9
+ */
10
+ createVendorRegistration(request: operations.CreateVendorRegistrationRequestBody, options?: RequestOptions): Promise<operations.CreateVendorRegistrationResponseBody>;
11
+ /**
12
+ * List vendor job titles
13
+ *
14
+ * @remarks
15
+ * List valid job titles for Vendors. This can be used during sign up or in a filter.
16
+ */
17
+ listVendorJobTitles(request: operations.ListVendorJobTitlesRequest, options?: RequestOptions): Promise<operations.ListVendorJobTitlesResponseBody>;
18
+ }
19
+ //# sourceMappingURL=vendors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendors.d.ts","sourceRoot":"","sources":["../src/sdk/vendors.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACG,wBAAwB,CAC5B,OAAO,EAAE,UAAU,CAAC,mCAAmC,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oCAAoC,CAAC;IAQ3D;;;;;OAKG;IACG,mBAAmB,CACvB,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAOvD"}
package/sdk/vendors.js ADDED
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Vendors = void 0;
7
+ const vendorsCreateVendorRegistration_js_1 = require("../funcs/vendorsCreateVendorRegistration.js");
8
+ const vendorsListVendorJobTitles_js_1 = require("../funcs/vendorsListVendorJobTitles.js");
9
+ const sdks_js_1 = require("../lib/sdks.js");
10
+ const fp_js_1 = require("../types/fp.js");
11
+ class Vendors extends sdks_js_1.ClientSDK {
12
+ /**
13
+ * Create vendor registration
14
+ *
15
+ * @remarks
16
+ * Create an initial vendor registration. Once successful, the vendor will be able to continue to filling out the rest of their onboarding profile.
17
+ */
18
+ async createVendorRegistration(request, options) {
19
+ return (0, fp_js_1.unwrapAsync)((0, vendorsCreateVendorRegistration_js_1.vendorsCreateVendorRegistration)(this, request, options));
20
+ }
21
+ /**
22
+ * List vendor job titles
23
+ *
24
+ * @remarks
25
+ * List valid job titles for Vendors. This can be used during sign up or in a filter.
26
+ */
27
+ async listVendorJobTitles(request, options) {
28
+ return (0, fp_js_1.unwrapAsync)((0, vendorsListVendorJobTitles_js_1.vendorsListVendorJobTitles)(this, request, options));
29
+ }
30
+ }
31
+ exports.Vendors = Vendors;
32
+ //# sourceMappingURL=vendors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendors.js","sourceRoot":"","sources":["../src/sdk/vendors.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oGAA8F;AAC9F,0FAAoF;AACpF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,wBAAwB,CAC5B,OAAuD,EACvD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA+B,EAChD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAlCD,0BAkCC"}
package/src/core.ts ADDED
@@ -0,0 +1,13 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { ClientSDK } from "./lib/sdks.js";
6
+
7
+ /**
8
+ * A minimal client to use when calling standalone SDK functions. Typically, an
9
+ * instance of this class would be instantiated once at the start of an
10
+ * application and passed around through some dependency injection mechanism to
11
+ * parts of an application that need to make SDK calls.
12
+ */
13
+ export class GreenSecurityCore extends ClientSDK {}