@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":"loginrequirementsfromemail.js","sourceRoot":"","sources":["../../src/models/components/loginrequirementsfromemail.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqEH,4EAMC;AAED,gFAQC;AAnFD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAkBjD,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C;AAED,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,98 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export declare const MfaRequiredResponseRequires: {
6
+ readonly MfaCode: "mfa_code";
7
+ };
8
+ export type MfaRequiredResponseRequires = ClosedEnum<typeof MfaRequiredResponseRequires>;
9
+ export declare const MfaMethod: {
10
+ readonly Text: "text";
11
+ readonly Email: "email";
12
+ };
13
+ export type MfaMethod = ClosedEnum<typeof MfaMethod>;
14
+ /**
15
+ * The response is sent when a login is successful, but requires more information such as a MFA.
16
+ *
17
+ * @remarks
18
+ *
19
+ * If the `mfa_method` is text or email, it's best to show helper text to the user to notify them that a code was sent via mobile or email and they should enter it to proceed.
20
+ */
21
+ export type MfaRequiredResponse = {
22
+ requires: MfaRequiredResponseRequires;
23
+ success: boolean;
24
+ /**
25
+ * Error describing the exact condition of what further steps are needed to finish the login process.
26
+ */
27
+ error: string;
28
+ /**
29
+ * A redacted version of the phone number such as `###-###-1234`
30
+ */
31
+ mobilePhone?: string | undefined;
32
+ mfaMethod?: MfaMethod | undefined;
33
+ };
34
+ /** @internal */
35
+ export declare const MfaRequiredResponseRequires$inboundSchema: z.ZodNativeEnum<typeof MfaRequiredResponseRequires>;
36
+ /** @internal */
37
+ export declare const MfaRequiredResponseRequires$outboundSchema: z.ZodNativeEnum<typeof MfaRequiredResponseRequires>;
38
+ /**
39
+ * @internal
40
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
41
+ */
42
+ export declare namespace MfaRequiredResponseRequires$ {
43
+ /** @deprecated use `MfaRequiredResponseRequires$inboundSchema` instead. */
44
+ const inboundSchema: z.ZodNativeEnum<{
45
+ readonly MfaCode: "mfa_code";
46
+ }>;
47
+ /** @deprecated use `MfaRequiredResponseRequires$outboundSchema` instead. */
48
+ const outboundSchema: z.ZodNativeEnum<{
49
+ readonly MfaCode: "mfa_code";
50
+ }>;
51
+ }
52
+ /** @internal */
53
+ export declare const MfaMethod$inboundSchema: z.ZodNativeEnum<typeof MfaMethod>;
54
+ /** @internal */
55
+ export declare const MfaMethod$outboundSchema: z.ZodNativeEnum<typeof MfaMethod>;
56
+ /**
57
+ * @internal
58
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
+ */
60
+ export declare namespace MfaMethod$ {
61
+ /** @deprecated use `MfaMethod$inboundSchema` instead. */
62
+ const inboundSchema: z.ZodNativeEnum<{
63
+ readonly Text: "text";
64
+ readonly Email: "email";
65
+ }>;
66
+ /** @deprecated use `MfaMethod$outboundSchema` instead. */
67
+ const outboundSchema: z.ZodNativeEnum<{
68
+ readonly Text: "text";
69
+ readonly Email: "email";
70
+ }>;
71
+ }
72
+ /** @internal */
73
+ export declare const MfaRequiredResponse$inboundSchema: z.ZodType<MfaRequiredResponse, z.ZodTypeDef, unknown>;
74
+ /** @internal */
75
+ export type MfaRequiredResponse$Outbound = {
76
+ requires: string;
77
+ success: boolean;
78
+ error: string;
79
+ mobile_phone?: string | undefined;
80
+ mfa_method?: string | undefined;
81
+ };
82
+ /** @internal */
83
+ export declare const MfaRequiredResponse$outboundSchema: z.ZodType<MfaRequiredResponse$Outbound, z.ZodTypeDef, MfaRequiredResponse>;
84
+ /**
85
+ * @internal
86
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
87
+ */
88
+ export declare namespace MfaRequiredResponse$ {
89
+ /** @deprecated use `MfaRequiredResponse$inboundSchema` instead. */
90
+ const inboundSchema: z.ZodType<MfaRequiredResponse, z.ZodTypeDef, unknown>;
91
+ /** @deprecated use `MfaRequiredResponse$outboundSchema` instead. */
92
+ const outboundSchema: z.ZodType<MfaRequiredResponse$Outbound, z.ZodTypeDef, MfaRequiredResponse>;
93
+ /** @deprecated use `MfaRequiredResponse$Outbound` instead. */
94
+ type Outbound = MfaRequiredResponse$Outbound;
95
+ }
96
+ export declare function mfaRequiredResponseToJSON(mfaRequiredResponse: MfaRequiredResponse): string;
97
+ export declare function mfaRequiredResponseFromJSON(jsonString: string): SafeParseResult<MfaRequiredResponse, SDKValidationError>;
98
+ //# sourceMappingURL=mfarequiredresponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mfarequiredresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/mfarequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;CAE9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAErD;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE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AAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAYnB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
@@ -0,0 +1,126 @@
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.MfaRequiredResponse$ = exports.MfaRequiredResponse$outboundSchema = exports.MfaRequiredResponse$inboundSchema = exports.MfaMethod$ = exports.MfaMethod$outboundSchema = exports.MfaMethod$inboundSchema = exports.MfaRequiredResponseRequires$ = exports.MfaRequiredResponseRequires$outboundSchema = exports.MfaRequiredResponseRequires$inboundSchema = exports.MfaMethod = exports.MfaRequiredResponseRequires = void 0;
40
+ exports.mfaRequiredResponseToJSON = mfaRequiredResponseToJSON;
41
+ exports.mfaRequiredResponseFromJSON = mfaRequiredResponseFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ exports.MfaRequiredResponseRequires = {
46
+ MfaCode: "mfa_code",
47
+ };
48
+ exports.MfaMethod = {
49
+ Text: "text",
50
+ Email: "email",
51
+ };
52
+ /** @internal */
53
+ exports.MfaRequiredResponseRequires$inboundSchema = z.nativeEnum(exports.MfaRequiredResponseRequires);
54
+ /** @internal */
55
+ exports.MfaRequiredResponseRequires$outboundSchema = exports.MfaRequiredResponseRequires$inboundSchema;
56
+ /**
57
+ * @internal
58
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
+ */
60
+ var MfaRequiredResponseRequires$;
61
+ (function (MfaRequiredResponseRequires$) {
62
+ /** @deprecated use `MfaRequiredResponseRequires$inboundSchema` instead. */
63
+ MfaRequiredResponseRequires$.inboundSchema = exports.MfaRequiredResponseRequires$inboundSchema;
64
+ /** @deprecated use `MfaRequiredResponseRequires$outboundSchema` instead. */
65
+ MfaRequiredResponseRequires$.outboundSchema = exports.MfaRequiredResponseRequires$outboundSchema;
66
+ })(MfaRequiredResponseRequires$ || (exports.MfaRequiredResponseRequires$ = MfaRequiredResponseRequires$ = {}));
67
+ /** @internal */
68
+ exports.MfaMethod$inboundSchema = z
69
+ .nativeEnum(exports.MfaMethod);
70
+ /** @internal */
71
+ exports.MfaMethod$outboundSchema = exports.MfaMethod$inboundSchema;
72
+ /**
73
+ * @internal
74
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
75
+ */
76
+ var MfaMethod$;
77
+ (function (MfaMethod$) {
78
+ /** @deprecated use `MfaMethod$inboundSchema` instead. */
79
+ MfaMethod$.inboundSchema = exports.MfaMethod$inboundSchema;
80
+ /** @deprecated use `MfaMethod$outboundSchema` instead. */
81
+ MfaMethod$.outboundSchema = exports.MfaMethod$outboundSchema;
82
+ })(MfaMethod$ || (exports.MfaMethod$ = MfaMethod$ = {}));
83
+ /** @internal */
84
+ exports.MfaRequiredResponse$inboundSchema = z.object({
85
+ requires: exports.MfaRequiredResponseRequires$inboundSchema,
86
+ success: z.boolean(),
87
+ error: z.string(),
88
+ mobile_phone: z.string().optional(),
89
+ mfa_method: exports.MfaMethod$inboundSchema.optional(),
90
+ }).transform((v) => {
91
+ return (0, primitives_js_1.remap)(v, {
92
+ "mobile_phone": "mobilePhone",
93
+ "mfa_method": "mfaMethod",
94
+ });
95
+ });
96
+ /** @internal */
97
+ exports.MfaRequiredResponse$outboundSchema = z.object({
98
+ requires: exports.MfaRequiredResponseRequires$outboundSchema,
99
+ success: z.boolean(),
100
+ error: z.string(),
101
+ mobilePhone: z.string().optional(),
102
+ mfaMethod: exports.MfaMethod$outboundSchema.optional(),
103
+ }).transform((v) => {
104
+ return (0, primitives_js_1.remap)(v, {
105
+ mobilePhone: "mobile_phone",
106
+ mfaMethod: "mfa_method",
107
+ });
108
+ });
109
+ /**
110
+ * @internal
111
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
112
+ */
113
+ var MfaRequiredResponse$;
114
+ (function (MfaRequiredResponse$) {
115
+ /** @deprecated use `MfaRequiredResponse$inboundSchema` instead. */
116
+ MfaRequiredResponse$.inboundSchema = exports.MfaRequiredResponse$inboundSchema;
117
+ /** @deprecated use `MfaRequiredResponse$outboundSchema` instead. */
118
+ MfaRequiredResponse$.outboundSchema = exports.MfaRequiredResponse$outboundSchema;
119
+ })(MfaRequiredResponse$ || (exports.MfaRequiredResponse$ = MfaRequiredResponse$ = {}));
120
+ function mfaRequiredResponseToJSON(mfaRequiredResponse) {
121
+ return JSON.stringify(exports.MfaRequiredResponse$outboundSchema.parse(mfaRequiredResponse));
122
+ }
123
+ function mfaRequiredResponseFromJSON(jsonString) {
124
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MfaRequiredResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MfaRequiredResponse' from JSON`);
125
+ }
126
+ //# sourceMappingURL=mfarequiredresponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mfarequiredresponse.js","sourceRoot":"","sources":["../../src/models/components/mfarequiredresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6IH,8DAMC;AAED,kEAQC;AA3JD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAKpC,QAAA,2BAA2B,GAAG;IACzC,OAAO,EAAE,UAAU;CACX,CAAC;AAKE,QAAA,SAAS,GAAG;IACvB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAwBX,gBAAgB;AACH,QAAA,yCAAyC,GAElD,CAAC,CAAC,UAAU,CAAC,mCAA2B,CAAC,CAAC;AAE9C,gBAAgB;AACH,QAAA,0CAA0C,GAEnD,iDAAyC,CAAC;AAE9C;;;GAGG;AACH,IAAiB,4BAA4B,CAK5C;AALD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAA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AAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,69 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ /**
5
+ * Pagination information for a pageable list
6
+ */
7
+ export type Pager = {
8
+ /**
9
+ * Url path of where to fetch this or other pages of the same objects
10
+ */
11
+ baseUrl: string;
12
+ /**
13
+ * A comma-separated list of column names signifying which columns the `items` are sorted by.
14
+ */
15
+ sort: string;
16
+ /**
17
+ * `0` signifies the items are sorted in ascending order, `1` signifies the items are sorted in descending order
18
+ */
19
+ desc: number;
20
+ /**
21
+ * Number of total items for all pages
22
+ */
23
+ itemCount: number;
24
+ itemsPerPage: number;
25
+ /**
26
+ * The page represented by the current `items` list. Pages are 1-based for easy display to the user.
27
+ */
28
+ page: number;
29
+ /**
30
+ * When `true`, the following fields may be updated by adding query string parameters to the request (via GET)
31
+ *
32
+ * @remarks
33
+ *
34
+ * - sort
35
+ * - desc
36
+ * - page
37
+ * - items_per_page
38
+ */
39
+ useUrlParams: boolean;
40
+ };
41
+ /** @internal */
42
+ export declare const Pager$inboundSchema: z.ZodType<Pager, z.ZodTypeDef, unknown>;
43
+ /** @internal */
44
+ export type Pager$Outbound = {
45
+ base_url: string;
46
+ sort: string;
47
+ desc: number;
48
+ item_count: number;
49
+ items_per_page: number;
50
+ page: number;
51
+ use_url_params: boolean;
52
+ };
53
+ /** @internal */
54
+ export declare const Pager$outboundSchema: z.ZodType<Pager$Outbound, z.ZodTypeDef, Pager>;
55
+ /**
56
+ * @internal
57
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
58
+ */
59
+ export declare namespace Pager$ {
60
+ /** @deprecated use `Pager$inboundSchema` instead. */
61
+ const inboundSchema: z.ZodType<Pager, z.ZodTypeDef, unknown>;
62
+ /** @deprecated use `Pager$outboundSchema` instead. */
63
+ const outboundSchema: z.ZodType<Pager$Outbound, z.ZodTypeDef, Pager>;
64
+ /** @deprecated use `Pager$Outbound` instead. */
65
+ type Outbound = Pager$Outbound;
66
+ }
67
+ export declare function pagerToJSON(pager: Pager): string;
68
+ export declare function pagerFromJSON(jsonString: string): SafeParseResult<Pager, SDKValidationError>;
69
+ //# sourceMappingURL=pager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pager.d.ts","sourceRoot":"","sources":["../../src/models/components/pager.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;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG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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.Pager$ = exports.Pager$outboundSchema = exports.Pager$inboundSchema = void 0;
40
+ exports.pagerToJSON = pagerToJSON;
41
+ exports.pagerFromJSON = pagerFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ /** @internal */
46
+ exports.Pager$inboundSchema = z
47
+ .object({
48
+ base_url: z.string(),
49
+ sort: z.string(),
50
+ desc: z.number().int(),
51
+ item_count: z.number().int(),
52
+ items_per_page: z.number().int(),
53
+ page: z.number().int(),
54
+ use_url_params: z.boolean(),
55
+ }).transform((v) => {
56
+ return (0, primitives_js_1.remap)(v, {
57
+ "base_url": "baseUrl",
58
+ "item_count": "itemCount",
59
+ "items_per_page": "itemsPerPage",
60
+ "use_url_params": "useUrlParams",
61
+ });
62
+ });
63
+ /** @internal */
64
+ exports.Pager$outboundSchema = z.object({
65
+ baseUrl: z.string(),
66
+ sort: z.string(),
67
+ desc: z.number().int(),
68
+ itemCount: z.number().int(),
69
+ itemsPerPage: z.number().int(),
70
+ page: z.number().int(),
71
+ useUrlParams: z.boolean(),
72
+ }).transform((v) => {
73
+ return (0, primitives_js_1.remap)(v, {
74
+ baseUrl: "base_url",
75
+ itemCount: "item_count",
76
+ itemsPerPage: "items_per_page",
77
+ useUrlParams: "use_url_params",
78
+ });
79
+ });
80
+ /**
81
+ * @internal
82
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
83
+ */
84
+ var Pager$;
85
+ (function (Pager$) {
86
+ /** @deprecated use `Pager$inboundSchema` instead. */
87
+ Pager$.inboundSchema = exports.Pager$inboundSchema;
88
+ /** @deprecated use `Pager$outboundSchema` instead. */
89
+ Pager$.outboundSchema = exports.Pager$outboundSchema;
90
+ })(Pager$ || (exports.Pager$ = Pager$ = {}));
91
+ function pagerToJSON(pager) {
92
+ return JSON.stringify(exports.Pager$outboundSchema.parse(pager));
93
+ }
94
+ function pagerFromJSON(jsonString) {
95
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Pager$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Pager' from JSON`);
96
+ }
97
+ //# sourceMappingURL=pager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pager.js","sourceRoot":"","sources":["../../src/models/components/pager.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+GH,kCAEC;AAED,sCAQC;AAzHD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AA0CjD,gBAAgB;AACH,QAAA,mBAAmB,GAA4C,C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AgB;QAC9B,YAAY,EAAE,gBAAgB;KAC/B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,MAAM,CAOtB;AAPD,WAAiB,MAAM;IACrB,qDAAqD;IACxC,oBAAa,GAAG,2BAAmB,CAAC;IACjD,sDAAsD;IACzC,qBAAc,GAAG,4BAAoB,CAAC;AAGrD,CAAC,EAPgB,MAAM,sBAAN,MAAM,QAOtB;AAED,SAAgB,WAAW,CAAC,KAAY;IACtC,OAAO,IAAI,CAAC,SAAS,CAAC,4BAAoB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,aAAa,CAC3B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2BAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/C,mCAAmC,CACpC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,62 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export declare const Requires: {
6
+ readonly Password: "password";
7
+ };
8
+ export type Requires = ClosedEnum<typeof Requires>;
9
+ /**
10
+ * The response is sent when the email address provided requires a password (no SAML login).
11
+ */
12
+ export type PasswordRequiredResponse = {
13
+ requires: Requires;
14
+ success: boolean;
15
+ /**
16
+ * Error describing the exact condition of what further steps are needed to finish the login process.
17
+ */
18
+ error: string;
19
+ };
20
+ /** @internal */
21
+ export declare const Requires$inboundSchema: z.ZodNativeEnum<typeof Requires>;
22
+ /** @internal */
23
+ export declare const Requires$outboundSchema: z.ZodNativeEnum<typeof Requires>;
24
+ /**
25
+ * @internal
26
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
27
+ */
28
+ export declare namespace Requires$ {
29
+ /** @deprecated use `Requires$inboundSchema` instead. */
30
+ const inboundSchema: z.ZodNativeEnum<{
31
+ readonly Password: "password";
32
+ }>;
33
+ /** @deprecated use `Requires$outboundSchema` instead. */
34
+ const outboundSchema: z.ZodNativeEnum<{
35
+ readonly Password: "password";
36
+ }>;
37
+ }
38
+ /** @internal */
39
+ export declare const PasswordRequiredResponse$inboundSchema: z.ZodType<PasswordRequiredResponse, z.ZodTypeDef, unknown>;
40
+ /** @internal */
41
+ export type PasswordRequiredResponse$Outbound = {
42
+ requires: string;
43
+ success: boolean;
44
+ error: string;
45
+ };
46
+ /** @internal */
47
+ export declare const PasswordRequiredResponse$outboundSchema: z.ZodType<PasswordRequiredResponse$Outbound, z.ZodTypeDef, PasswordRequiredResponse>;
48
+ /**
49
+ * @internal
50
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
51
+ */
52
+ export declare namespace PasswordRequiredResponse$ {
53
+ /** @deprecated use `PasswordRequiredResponse$inboundSchema` instead. */
54
+ const inboundSchema: z.ZodType<PasswordRequiredResponse, z.ZodTypeDef, unknown>;
55
+ /** @deprecated use `PasswordRequiredResponse$outboundSchema` instead. */
56
+ const outboundSchema: z.ZodType<PasswordRequiredResponse$Outbound, z.ZodTypeDef, PasswordRequiredResponse>;
57
+ /** @deprecated use `PasswordRequiredResponse$Outbound` instead. */
58
+ type Outbound = PasswordRequiredResponse$Outbound;
59
+ }
60
+ export declare function passwordRequiredResponseToJSON(passwordRequiredResponse: PasswordRequiredResponse): string;
61
+ export declare function passwordRequiredResponseFromJSON(jsonString: string): SafeParseResult<PasswordRequiredResponse, SDKValidationError>;
62
+ //# sourceMappingURL=passwordrequiredresponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"passwordrequiredresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/passwordrequiredresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,M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CAAC;IACpE,yEAAyE;IAClE,MAAM,cAAc,sFAA0C,CAAC;IACtE,mEAAmE;IACnE,KAAY,QAAQ,GAAG,iCAAiC,CAAC;CAC1D;AAED,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR;AAED,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
@@ -0,0 +1,92 @@
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.PasswordRequiredResponse$ = exports.PasswordRequiredResponse$outboundSchema = exports.PasswordRequiredResponse$inboundSchema = exports.Requires$ = exports.Requires$outboundSchema = exports.Requires$inboundSchema = exports.Requires = void 0;
40
+ exports.passwordRequiredResponseToJSON = passwordRequiredResponseToJSON;
41
+ exports.passwordRequiredResponseFromJSON = passwordRequiredResponseFromJSON;
42
+ const z = __importStar(require("zod"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ exports.Requires = {
45
+ Password: "password",
46
+ };
47
+ /** @internal */
48
+ exports.Requires$inboundSchema = z
49
+ .nativeEnum(exports.Requires);
50
+ /** @internal */
51
+ exports.Requires$outboundSchema = exports.Requires$inboundSchema;
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 Requires$;
57
+ (function (Requires$) {
58
+ /** @deprecated use `Requires$inboundSchema` instead. */
59
+ Requires$.inboundSchema = exports.Requires$inboundSchema;
60
+ /** @deprecated use `Requires$outboundSchema` instead. */
61
+ Requires$.outboundSchema = exports.Requires$outboundSchema;
62
+ })(Requires$ || (exports.Requires$ = Requires$ = {}));
63
+ /** @internal */
64
+ exports.PasswordRequiredResponse$inboundSchema = z.object({
65
+ requires: exports.Requires$inboundSchema,
66
+ success: z.boolean(),
67
+ error: z.string(),
68
+ });
69
+ /** @internal */
70
+ exports.PasswordRequiredResponse$outboundSchema = z.object({
71
+ requires: exports.Requires$outboundSchema,
72
+ success: z.boolean(),
73
+ error: z.string(),
74
+ });
75
+ /**
76
+ * @internal
77
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
78
+ */
79
+ var PasswordRequiredResponse$;
80
+ (function (PasswordRequiredResponse$) {
81
+ /** @deprecated use `PasswordRequiredResponse$inboundSchema` instead. */
82
+ PasswordRequiredResponse$.inboundSchema = exports.PasswordRequiredResponse$inboundSchema;
83
+ /** @deprecated use `PasswordRequiredResponse$outboundSchema` instead. */
84
+ PasswordRequiredResponse$.outboundSchema = exports.PasswordRequiredResponse$outboundSchema;
85
+ })(PasswordRequiredResponse$ || (exports.PasswordRequiredResponse$ = PasswordRequiredResponse$ = {}));
86
+ function passwordRequiredResponseToJSON(passwordRequiredResponse) {
87
+ return JSON.stringify(exports.PasswordRequiredResponse$outboundSchema.parse(passwordRequiredResponse));
88
+ }
89
+ function passwordRequiredResponseFromJSON(jsonString) {
90
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PasswordRequiredResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PasswordRequiredResponse' from JSON`);
91
+ }
92
+ //# sourceMappingURL=passwordrequiredresponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"passwordrequiredresponse.js","sourceRoot":"","sources":["../../src/models/components/passwordrequiredresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFH,wEAMC;AAED,4EAQC;AApGD,uCAAyB;AACzB,qDAAiD;AAKpC,QAAA,QAAQ,GAAG;IACtB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAeX,gBAAgB;AACH,QAAA,sBAAsB,GAAqC,CAAC;KACtE,UAAU,CAAC,gBAAQ,CAAC,CAAC;AAExB,gBAAgB;AACH,QAAA,uBAAuB,GAClC,8BAAsB,CAAC;AAEzB;;;GAGG;AACH,IAAiB,SAAS,CAKzB;AALD,WAAiB,SAAS;IACxB,wDAAwD;IAC3C,uBAAa,GAAG,8BAAsB,CAAC;IACpD,yDAAyD;IAC5C,wBAAc,GAAG,+BAAuB,CAAC;AACxD,CAAC,EALgB,SAAS,yBAAT,SAAS,QAKzB;AAED,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,8BAAsB;IAChC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,+BAAuB;IACjC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,8CAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,+CAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,yCAAzB,yBAAyB,QAOzC;AAED,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,73 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export declare const SamlLoginRequiredResponseRequires: {
6
+ readonly SamlLogin: "saml_login";
7
+ };
8
+ export type SamlLoginRequiredResponseRequires = ClosedEnum<typeof SamlLoginRequiredResponseRequires>;
9
+ /**
10
+ * The email address provided must complete SAML authentication at the provided `sso_url` which encodes the `return_url` that was sent as part of the request.
11
+ *
12
+ * @remarks
13
+ *
14
+ * The user will complete their SAML login at the external IdP and the browser will be redirected to your selected `return_url` with an extra query string parameter called `user_token`. That token is equivalent to the user login and can be used in the `/users/me` endpoint to get user details.
15
+ */
16
+ export type SamlLoginRequiredResponse = {
17
+ requires: SamlLoginRequiredResponseRequires;
18
+ success: boolean;
19
+ error: string;
20
+ /**
21
+ * Instructions that should be displayed to a user in case the SAML flow determines that the account is valid but this is a registration of a brand new user.
22
+ */
23
+ ssoInstructions?: string | undefined;
24
+ /**
25
+ * This is the URL that should be opened to initiate the SAML login flow
26
+ */
27
+ ssoUrl: string;
28
+ };
29
+ /** @internal */
30
+ export declare const SamlLoginRequiredResponseRequires$inboundSchema: z.ZodNativeEnum<typeof SamlLoginRequiredResponseRequires>;
31
+ /** @internal */
32
+ export declare const SamlLoginRequiredResponseRequires$outboundSchema: z.ZodNativeEnum<typeof SamlLoginRequiredResponseRequires>;
33
+ /**
34
+ * @internal
35
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
36
+ */
37
+ export declare namespace SamlLoginRequiredResponseRequires$ {
38
+ /** @deprecated use `SamlLoginRequiredResponseRequires$inboundSchema` instead. */
39
+ const inboundSchema: z.ZodNativeEnum<{
40
+ readonly SamlLogin: "saml_login";
41
+ }>;
42
+ /** @deprecated use `SamlLoginRequiredResponseRequires$outboundSchema` instead. */
43
+ const outboundSchema: z.ZodNativeEnum<{
44
+ readonly SamlLogin: "saml_login";
45
+ }>;
46
+ }
47
+ /** @internal */
48
+ export declare const SamlLoginRequiredResponse$inboundSchema: z.ZodType<SamlLoginRequiredResponse, z.ZodTypeDef, unknown>;
49
+ /** @internal */
50
+ export type SamlLoginRequiredResponse$Outbound = {
51
+ requires: string;
52
+ success: boolean;
53
+ error: string;
54
+ sso_instructions?: string | undefined;
55
+ sso_url: string;
56
+ };
57
+ /** @internal */
58
+ export declare const SamlLoginRequiredResponse$outboundSchema: z.ZodType<SamlLoginRequiredResponse$Outbound, z.ZodTypeDef, SamlLoginRequiredResponse>;
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 SamlLoginRequiredResponse$ {
64
+ /** @deprecated use `SamlLoginRequiredResponse$inboundSchema` instead. */
65
+ const inboundSchema: z.ZodType<SamlLoginRequiredResponse, z.ZodTypeDef, unknown>;
66
+ /** @deprecated use `SamlLoginRequiredResponse$outboundSchema` instead. */
67
+ const outboundSchema: z.ZodType<SamlLoginRequiredResponse$Outbound, z.ZodTypeDef, SamlLoginRequiredResponse>;
68
+ /** @deprecated use `SamlLoginRequiredResponse$Outbound` instead. */
69
+ type Outbound = SamlLoginRequiredResponse$Outbound;
70
+ }
71
+ export declare function samlLoginRequiredResponseToJSON(samlLoginRequiredResponse: SamlLoginRequiredResponse): string;
72
+ export declare function samlLoginRequiredResponseFromJSON(jsonString: string): SafeParseResult<SamlLoginRequiredResponse, SDKValidationError>;
73
+ //# sourceMappingURL=samlloginrequiredresponse.d.ts.map