@go-mondo/identity-sdk 0.0.2-beta.1 → 0.0.2-beta.13

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 (1128) hide show
  1. package/.github/workflows/release.yaml +2 -2
  2. package/.release-please-manifest.json +1 -1
  3. package/.tsbuildinfo/cjs.json +1 -1
  4. package/.tsbuildinfo/esm.json +1 -1
  5. package/CHANGELOG.md +85 -0
  6. package/README.md +1 -1
  7. package/dist/cjs/action/schema/base.d.ts +29 -20
  8. package/dist/cjs/action/schema/base.d.ts.map +1 -1
  9. package/dist/cjs/action/schema/base.js +25 -11
  10. package/dist/cjs/action/schema/base.test.d.ts +2 -0
  11. package/dist/cjs/action/schema/base.test.d.ts.map +1 -0
  12. package/dist/cjs/action/schema/base.test.js +138 -0
  13. package/dist/cjs/action/schema/operations/set-password.d.ts +30 -30
  14. package/dist/cjs/action/schema/operations/set-password.d.ts.map +1 -1
  15. package/dist/cjs/action/schema/operations/set-password.js +12 -11
  16. package/dist/cjs/action/schema/operations/set-password.test.d.ts +2 -0
  17. package/dist/cjs/action/schema/operations/set-password.test.d.ts.map +1 -0
  18. package/dist/cjs/action/schema/operations/set-password.test.js +168 -0
  19. package/dist/cjs/action/schema/operations/sign-up-verification.d.ts +21 -21
  20. package/dist/cjs/action/schema/operations/sign-up-verification.d.ts.map +1 -1
  21. package/dist/cjs/action/schema/operations/sign-up-verification.js +10 -9
  22. package/dist/cjs/action/schema/operations/sign-up-verification.test.d.ts +2 -0
  23. package/dist/cjs/action/schema/operations/sign-up-verification.test.d.ts.map +1 -0
  24. package/dist/cjs/action/schema/operations/sign-up-verification.test.js +140 -0
  25. package/dist/cjs/action/schema/operations/sign-up.d.ts +40 -43
  26. package/dist/cjs/action/schema/operations/sign-up.d.ts.map +1 -1
  27. package/dist/cjs/action/schema/operations/sign-up.js +26 -17
  28. package/dist/cjs/action/schema/operations/sign-up.test.d.ts +2 -0
  29. package/dist/cjs/action/schema/operations/sign-up.test.d.ts.map +1 -0
  30. package/dist/cjs/action/schema/operations/sign-up.test.js +173 -0
  31. package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts +19 -19
  32. package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts.map +1 -1
  33. package/dist/cjs/action/schema/operations/user-attribute-verification.js +8 -7
  34. package/dist/cjs/action/schema/operations/user-attribute-verification.test.d.ts +2 -0
  35. package/dist/cjs/action/schema/operations/user-attribute-verification.test.d.ts.map +1 -0
  36. package/dist/cjs/action/schema/operations/user-attribute-verification.test.js +128 -0
  37. package/dist/cjs/action/schema/schema.d.ts +72 -84
  38. package/dist/cjs/action/schema/schema.d.ts.map +1 -1
  39. package/dist/cjs/action/schema/schema.js +3 -7
  40. package/dist/cjs/action/schema/schema.test.d.ts +2 -0
  41. package/dist/cjs/action/schema/schema.test.d.ts.map +1 -0
  42. package/dist/cjs/action/schema/schema.test.js +190 -0
  43. package/dist/cjs/action/schema/utils.d.ts +7 -0
  44. package/dist/cjs/action/schema/utils.d.ts.map +1 -0
  45. package/dist/cjs/action/schema/utils.js +16 -0
  46. package/dist/cjs/action/schema/utils.test.d.ts +2 -0
  47. package/dist/cjs/action/schema/utils.test.d.ts.map +1 -0
  48. package/dist/cjs/action/schema/utils.test.js +26 -0
  49. package/dist/cjs/activity/index.d.ts +1 -0
  50. package/dist/cjs/activity/index.d.ts.map +1 -1
  51. package/dist/cjs/activity/index.js +1 -0
  52. package/dist/cjs/activity/resources.d.ts +13 -0
  53. package/dist/cjs/activity/resources.d.ts.map +1 -0
  54. package/dist/cjs/activity/resources.js +29 -0
  55. package/dist/cjs/activity/resources.test.d.ts +2 -0
  56. package/dist/cjs/activity/resources.test.d.ts.map +1 -0
  57. package/dist/cjs/activity/resources.test.js +224 -0
  58. package/dist/cjs/activity/schema/base.d.ts +104 -53
  59. package/dist/cjs/activity/schema/base.d.ts.map +1 -1
  60. package/dist/cjs/activity/schema/base.js +54 -18
  61. package/dist/cjs/activity/schema/base.test.d.ts +2 -0
  62. package/dist/cjs/activity/schema/base.test.d.ts.map +1 -0
  63. package/dist/cjs/activity/schema/base.test.js +269 -0
  64. package/dist/cjs/activity/schema/schema.d.ts +294 -148
  65. package/dist/cjs/activity/schema/schema.d.ts.map +1 -1
  66. package/dist/cjs/activity/schema/schema.js +13 -21
  67. package/dist/cjs/activity/schema/schema.test.d.ts +2 -0
  68. package/dist/cjs/activity/schema/schema.test.d.ts.map +1 -0
  69. package/dist/cjs/activity/schema/schema.test.js +343 -0
  70. package/dist/cjs/activity/schema/types/authentication.d.ts +64 -23
  71. package/dist/cjs/activity/schema/types/authentication.d.ts.map +1 -1
  72. package/dist/cjs/activity/schema/types/authentication.js +18 -6
  73. package/dist/cjs/activity/schema/types/authentication.test.d.ts +2 -0
  74. package/dist/cjs/activity/schema/types/authentication.test.d.ts.map +1 -0
  75. package/dist/cjs/activity/schema/types/authentication.test.js +302 -0
  76. package/dist/cjs/activity/schema/types/authorization.d.ts +64 -23
  77. package/dist/cjs/activity/schema/types/authorization.d.ts.map +1 -1
  78. package/dist/cjs/activity/schema/types/authorization.js +19 -8
  79. package/dist/cjs/activity/schema/types/authorization.test.d.ts +2 -0
  80. package/dist/cjs/activity/schema/types/authorization.test.d.ts.map +1 -0
  81. package/dist/cjs/activity/schema/types/authorization.test.js +340 -0
  82. package/dist/cjs/activity/schema/types/note.d.ts +83 -50
  83. package/dist/cjs/activity/schema/types/note.d.ts.map +1 -1
  84. package/dist/cjs/activity/schema/types/note.js +21 -11
  85. package/dist/cjs/activity/schema/types/note.test.d.ts +2 -0
  86. package/dist/cjs/activity/schema/types/note.test.d.ts.map +1 -0
  87. package/dist/cjs/activity/schema/types/note.test.js +318 -0
  88. package/dist/cjs/activity/schema/types/operation.d.ts +64 -23
  89. package/dist/cjs/activity/schema/types/operation.d.ts.map +1 -1
  90. package/dist/cjs/activity/schema/types/operation.js +20 -7
  91. package/dist/cjs/activity/schema/types/operation.test.d.ts +2 -0
  92. package/dist/cjs/activity/schema/types/operation.test.d.ts.map +1 -0
  93. package/dist/cjs/activity/schema/types/operation.test.js +343 -0
  94. package/dist/cjs/activity/schema/types/unknown.d.ts +50 -21
  95. package/dist/cjs/activity/schema/types/unknown.d.ts.map +1 -1
  96. package/dist/cjs/activity/schema/types/unknown.js +13 -5
  97. package/dist/cjs/activity/schema/types/unknown.test.d.ts +2 -0
  98. package/dist/cjs/activity/schema/types/unknown.test.d.ts.map +1 -0
  99. package/dist/cjs/activity/schema/types/unknown.test.js +274 -0
  100. package/dist/cjs/activity/schema/utils.test.d.ts +2 -0
  101. package/dist/cjs/activity/schema/utils.test.d.ts.map +1 -0
  102. package/dist/cjs/activity/schema/utils.test.js +26 -0
  103. package/dist/cjs/app/authorization/resources.d.ts +12 -0
  104. package/dist/cjs/app/authorization/resources.d.ts.map +1 -0
  105. package/dist/cjs/app/authorization/resources.js +31 -0
  106. package/dist/cjs/app/authorization/schema.d.ts +98 -0
  107. package/dist/cjs/app/authorization/schema.d.ts.map +1 -0
  108. package/dist/cjs/app/authorization/schema.js +82 -0
  109. package/dist/cjs/app/authorization/schema.test.d.ts +2 -0
  110. package/dist/cjs/app/authorization/schema.test.d.ts.map +1 -0
  111. package/dist/cjs/app/authorization/schema.test.js +378 -0
  112. package/dist/cjs/app/index.d.ts +13 -1
  113. package/dist/cjs/app/index.d.ts.map +1 -1
  114. package/dist/cjs/app/index.js +20 -1
  115. package/dist/cjs/app/oauth/resources.d.ts +12 -0
  116. package/dist/cjs/app/oauth/resources.d.ts.map +1 -0
  117. package/dist/cjs/app/oauth/resources.js +34 -0
  118. package/dist/cjs/app/oauth/schema.d.ts +35 -0
  119. package/dist/cjs/app/oauth/schema.d.ts.map +1 -0
  120. package/dist/cjs/app/oauth/schema.js +35 -0
  121. package/dist/cjs/app/oauth/schema.test.d.ts +2 -0
  122. package/dist/cjs/app/oauth/schema.test.d.ts.map +1 -0
  123. package/dist/cjs/app/oauth/schema.test.js +172 -0
  124. package/dist/cjs/app/oidc/resources.d.ts +16 -0
  125. package/dist/cjs/app/oidc/resources.d.ts.map +1 -0
  126. package/dist/cjs/app/oidc/resources.js +48 -0
  127. package/dist/cjs/app/oidc/schema.d.ts +27 -0
  128. package/dist/cjs/app/oidc/schema.d.ts.map +1 -0
  129. package/dist/cjs/app/oidc/schema.js +23 -0
  130. package/dist/cjs/app/oidc/schema.test.d.ts +2 -0
  131. package/dist/cjs/app/oidc/schema.test.d.ts.map +1 -0
  132. package/dist/cjs/app/oidc/schema.test.js +114 -0
  133. package/dist/cjs/app/registration/resources.d.ts +12 -0
  134. package/dist/cjs/app/registration/resources.d.ts.map +1 -0
  135. package/dist/cjs/app/registration/resources.js +34 -0
  136. package/dist/cjs/app/registration/resources.test.d.ts +2 -0
  137. package/dist/cjs/app/registration/resources.test.d.ts.map +1 -0
  138. package/dist/cjs/app/registration/resources.test.js +295 -0
  139. package/dist/cjs/app/registration/schema.d.ts +25 -0
  140. package/dist/cjs/app/registration/schema.d.ts.map +1 -0
  141. package/dist/cjs/app/registration/schema.js +30 -0
  142. package/dist/cjs/app/registration/schema.test.d.ts +2 -0
  143. package/dist/cjs/app/registration/schema.test.d.ts.map +1 -0
  144. package/dist/cjs/app/registration/schema.test.js +180 -0
  145. package/dist/cjs/app/resources.d.ts +21 -0
  146. package/dist/cjs/app/resources.d.ts.map +1 -0
  147. package/dist/cjs/app/resources.js +57 -0
  148. package/dist/cjs/app/resources.test.d.ts +2 -0
  149. package/dist/cjs/app/resources.test.d.ts.map +1 -0
  150. package/dist/cjs/app/resources.test.js +288 -0
  151. package/dist/cjs/app/saml/resources.d.ts +16 -0
  152. package/dist/cjs/app/saml/resources.d.ts.map +1 -0
  153. package/dist/cjs/app/saml/resources.js +48 -0
  154. package/dist/cjs/app/saml/schema.d.ts +27 -0
  155. package/dist/cjs/app/saml/schema.d.ts.map +1 -0
  156. package/dist/cjs/app/saml/schema.js +23 -0
  157. package/dist/cjs/app/schema.d.ts +81 -0
  158. package/dist/cjs/app/schema.d.ts.map +1 -0
  159. package/dist/cjs/app/schema.js +63 -0
  160. package/dist/cjs/app/schema.test.d.ts +2 -0
  161. package/dist/cjs/app/schema.test.d.ts.map +1 -0
  162. package/dist/cjs/app/schema.test.js +181 -0
  163. package/dist/cjs/app/utils.d.ts.map +1 -0
  164. package/dist/cjs/app/utils.test.d.ts +2 -0
  165. package/dist/cjs/app/utils.test.d.ts.map +1 -0
  166. package/dist/cjs/app/utils.test.js +42 -0
  167. package/dist/cjs/association/index.d.ts +2 -1
  168. package/dist/cjs/association/index.d.ts.map +1 -1
  169. package/dist/cjs/association/index.js +2 -1
  170. package/dist/cjs/association/resources.d.ts +23 -0
  171. package/dist/cjs/association/resources.d.ts.map +1 -0
  172. package/dist/cjs/association/resources.js +49 -0
  173. package/dist/cjs/association/schema.d.ts +245 -0
  174. package/dist/cjs/association/schema.d.ts.map +1 -0
  175. package/dist/cjs/association/schema.js +59 -0
  176. package/dist/cjs/association/schema.test.d.ts +2 -0
  177. package/dist/cjs/association/schema.test.d.ts.map +1 -0
  178. package/dist/cjs/association/schema.test.js +129 -0
  179. package/dist/cjs/authentication/factors/schema.d.ts +20 -0
  180. package/dist/cjs/authentication/factors/schema.d.ts.map +1 -0
  181. package/dist/cjs/authentication/factors/schema.js +30 -0
  182. package/dist/cjs/authentication/factors/schema.test.d.ts +2 -0
  183. package/dist/cjs/authentication/factors/schema.test.d.ts.map +1 -0
  184. package/dist/cjs/authentication/factors/schema.test.js +123 -0
  185. package/dist/cjs/authentication/index.d.ts +9 -1
  186. package/dist/cjs/authentication/index.d.ts.map +1 -1
  187. package/dist/cjs/authentication/index.js +15 -1
  188. package/dist/cjs/authentication/providers/schema.d.ts +28 -0
  189. package/dist/cjs/authentication/providers/schema.d.ts.map +1 -0
  190. package/dist/cjs/authentication/{schema/provider.js → providers/schema.js} +12 -10
  191. package/dist/cjs/authentication/resources.d.ts +2 -0
  192. package/dist/cjs/authentication/resources.d.ts.map +1 -0
  193. package/dist/cjs/authentication/resources.js +4 -0
  194. package/dist/cjs/authentication/sessions/resources.d.ts +21 -0
  195. package/dist/cjs/authentication/sessions/resources.d.ts.map +1 -0
  196. package/dist/cjs/authentication/sessions/resources.js +43 -0
  197. package/dist/cjs/authentication/sessions/schema.d.ts +108 -0
  198. package/dist/cjs/authentication/sessions/schema.d.ts.map +1 -0
  199. package/dist/cjs/authentication/sessions/schema.js +88 -0
  200. package/dist/cjs/authentication/settings/resources.d.ts +12 -0
  201. package/dist/cjs/authentication/settings/resources.d.ts.map +1 -0
  202. package/dist/cjs/authentication/settings/resources.js +31 -0
  203. package/dist/cjs/authentication/settings/schema.d.ts +26 -0
  204. package/dist/cjs/authentication/settings/schema.d.ts.map +1 -0
  205. package/dist/cjs/authentication/settings/schema.js +26 -0
  206. package/dist/cjs/authentication/settings/schema.test.d.ts +2 -0
  207. package/dist/cjs/authentication/settings/schema.test.d.ts.map +1 -0
  208. package/dist/cjs/authentication/settings/schema.test.js +82 -0
  209. package/dist/cjs/authentication/strategies/resources.d.ts +21 -0
  210. package/dist/cjs/authentication/strategies/resources.d.ts.map +1 -0
  211. package/dist/cjs/authentication/strategies/resources.js +58 -0
  212. package/dist/cjs/authentication/strategies/schema/base.d.ts +71 -0
  213. package/dist/cjs/authentication/strategies/schema/base.d.ts.map +1 -0
  214. package/dist/cjs/authentication/strategies/schema/base.js +61 -0
  215. package/dist/cjs/authentication/strategies/schema/schema.d.ts +214 -0
  216. package/dist/cjs/authentication/strategies/schema/schema.d.ts.map +1 -0
  217. package/dist/cjs/authentication/{schema/strategy → strategies/schema}/schema.js +2 -1
  218. package/dist/cjs/authentication/strategies/schema/types/email.d.ts +62 -0
  219. package/dist/cjs/authentication/strategies/schema/types/email.d.ts.map +1 -0
  220. package/dist/cjs/authentication/strategies/schema/types/email.js +31 -0
  221. package/dist/cjs/authentication/strategies/schema/types/email.test.d.ts +2 -0
  222. package/dist/cjs/authentication/strategies/schema/types/email.test.d.ts.map +1 -0
  223. package/dist/cjs/authentication/strategies/schema/types/email.test.js +204 -0
  224. package/dist/cjs/authentication/strategies/schema/types/password.d.ts +138 -0
  225. package/dist/cjs/authentication/strategies/schema/types/password.d.ts.map +1 -0
  226. package/dist/cjs/authentication/strategies/schema/types/password.js +60 -0
  227. package/dist/cjs/authentication/strategies/schema/types/totp.d.ts +123 -0
  228. package/dist/cjs/authentication/strategies/schema/types/totp.d.ts.map +1 -0
  229. package/dist/cjs/authentication/strategies/schema/types/totp.js +81 -0
  230. package/dist/cjs/authentication/utils.d.ts +13 -0
  231. package/dist/cjs/authentication/utils.d.ts.map +1 -0
  232. package/dist/cjs/authentication/utils.js +25 -0
  233. package/dist/cjs/authentication/utils.test.d.ts +2 -0
  234. package/dist/cjs/authentication/utils.test.d.ts.map +1 -0
  235. package/dist/cjs/authentication/utils.test.js +142 -0
  236. package/dist/cjs/authorization/index.d.ts +1 -1
  237. package/dist/cjs/authorization/index.d.ts.map +1 -1
  238. package/dist/cjs/authorization/index.js +3 -1
  239. package/dist/cjs/authorization/permissions/resources.d.ts +2 -2
  240. package/dist/cjs/authorization/permissions/resources.d.ts.map +1 -1
  241. package/dist/cjs/authorization/permissions/resources.js +5 -5
  242. package/dist/cjs/authorization/permissions/schema.d.ts +92 -89
  243. package/dist/cjs/authorization/permissions/schema.d.ts.map +1 -1
  244. package/dist/cjs/authorization/permissions/schema.js +49 -36
  245. package/dist/cjs/authorization/permissions/schema.test.d.ts +2 -0
  246. package/dist/cjs/authorization/permissions/schema.test.d.ts.map +1 -0
  247. package/dist/cjs/authorization/permissions/schema.test.js +215 -0
  248. package/dist/cjs/authorization/roles/resources.d.ts +2 -2
  249. package/dist/cjs/authorization/roles/resources.d.ts.map +1 -1
  250. package/dist/cjs/authorization/roles/resources.js +5 -5
  251. package/dist/cjs/authorization/roles/schema.d.ts +102 -98
  252. package/dist/cjs/authorization/roles/schema.d.ts.map +1 -1
  253. package/dist/cjs/authorization/roles/schema.js +44 -39
  254. package/dist/cjs/authorization/roles/schema.test.d.ts +2 -0
  255. package/dist/cjs/authorization/roles/schema.test.d.ts.map +1 -0
  256. package/dist/cjs/authorization/roles/schema.test.js +235 -0
  257. package/dist/cjs/authorization/schema.d.ts +18 -0
  258. package/dist/cjs/authorization/schema.d.ts.map +1 -0
  259. package/dist/cjs/authorization/{utils.js → schema.js} +13 -1
  260. package/dist/cjs/authorization/schema.test.d.ts +2 -0
  261. package/dist/cjs/authorization/schema.test.d.ts.map +1 -0
  262. package/dist/cjs/authorization/schema.test.js +42 -0
  263. package/dist/cjs/common/errors/http.test.d.ts +2 -0
  264. package/dist/cjs/common/errors/http.test.d.ts.map +1 -0
  265. package/dist/cjs/common/errors/http.test.js +71 -0
  266. package/dist/cjs/common/errors/validation.test.d.ts +2 -0
  267. package/dist/cjs/common/errors/validation.test.d.ts.map +1 -0
  268. package/dist/cjs/common/errors/validation.test.js +92 -0
  269. package/dist/cjs/common/index.d.ts +1 -0
  270. package/dist/cjs/common/index.d.ts.map +1 -1
  271. package/dist/cjs/common/index.js +6 -0
  272. package/dist/cjs/common/resources/init.d.ts +7 -6
  273. package/dist/cjs/common/resources/init.d.ts.map +1 -1
  274. package/dist/cjs/common/resources/init.js +17 -9
  275. package/dist/cjs/common/resources/init.test.d.ts +2 -0
  276. package/dist/cjs/common/resources/init.test.d.ts.map +1 -0
  277. package/dist/cjs/common/resources/init.test.js +233 -0
  278. package/dist/cjs/common/resources/operations.test.d.ts +2 -0
  279. package/dist/cjs/common/resources/operations.test.d.ts.map +1 -0
  280. package/dist/cjs/common/resources/operations.test.js +356 -0
  281. package/dist/cjs/common/resources/utils.d.ts +1 -10
  282. package/dist/cjs/common/resources/utils.d.ts.map +1 -1
  283. package/dist/cjs/common/resources/utils.js +0 -26
  284. package/dist/cjs/common/resources/utils.test.d.ts +2 -0
  285. package/dist/cjs/common/resources/utils.test.d.ts.map +1 -0
  286. package/dist/cjs/common/resources/utils.test.js +134 -0
  287. package/dist/cjs/common/schema/aggregate.d.ts +6 -5
  288. package/dist/cjs/common/schema/aggregate.d.ts.map +1 -1
  289. package/dist/cjs/common/schema/aggregate.js +4 -4
  290. package/dist/cjs/common/schema/aggregate.test.d.ts +2 -0
  291. package/dist/cjs/common/schema/aggregate.test.d.ts.map +1 -0
  292. package/dist/cjs/common/schema/aggregate.test.js +74 -0
  293. package/dist/cjs/common/schema/collection.d.ts +11 -10
  294. package/dist/cjs/common/schema/collection.d.ts.map +1 -1
  295. package/dist/cjs/common/schema/collection.js +6 -4
  296. package/dist/cjs/common/schema/collection.test.d.ts +2 -0
  297. package/dist/cjs/common/schema/collection.test.d.ts.map +1 -0
  298. package/dist/cjs/common/schema/collection.test.js +116 -0
  299. package/dist/cjs/common/schema/dates.d.ts +27 -26
  300. package/dist/cjs/common/schema/dates.d.ts.map +1 -1
  301. package/dist/cjs/common/schema/dates.js +17 -11
  302. package/dist/cjs/common/schema/dates.test.js +24 -13
  303. package/dist/cjs/common/schema/id.d.ts +3 -0
  304. package/dist/cjs/common/schema/id.d.ts.map +1 -0
  305. package/dist/cjs/common/schema/id.js +6 -0
  306. package/dist/cjs/common/schema/id.test.d.ts +2 -0
  307. package/dist/cjs/common/schema/id.test.d.ts.map +1 -0
  308. package/dist/cjs/common/schema/id.test.js +148 -0
  309. package/dist/cjs/common/schema/jwt.d.ts +27 -14
  310. package/dist/cjs/common/schema/jwt.d.ts.map +1 -1
  311. package/dist/cjs/common/schema/jwt.js +14 -2
  312. package/dist/cjs/common/schema/jwt.test.d.ts +2 -0
  313. package/dist/cjs/common/schema/jwt.test.d.ts.map +1 -0
  314. package/dist/cjs/common/schema/jwt.test.js +62 -0
  315. package/dist/cjs/common/schema/metadata.d.ts +28 -37
  316. package/dist/cjs/common/schema/metadata.d.ts.map +1 -1
  317. package/dist/cjs/common/schema/metadata.js +47 -27
  318. package/dist/cjs/common/schema/metadata.test.js +71 -23
  319. package/dist/cjs/common/schema/pagination.d.ts +6 -5
  320. package/dist/cjs/common/schema/pagination.d.ts.map +1 -1
  321. package/dist/cjs/common/schema/pagination.js +4 -4
  322. package/dist/cjs/common/schema/pagination.test.d.ts +2 -0
  323. package/dist/cjs/common/schema/pagination.test.d.ts.map +1 -0
  324. package/dist/cjs/common/schema/pagination.test.js +67 -0
  325. package/dist/cjs/common/schema/schema.d.ts +5 -0
  326. package/dist/cjs/common/schema/schema.d.ts.map +1 -1
  327. package/dist/cjs/common/schema/schema.js +12 -0
  328. package/dist/cjs/common/schema/schema.test.d.ts +2 -0
  329. package/dist/cjs/common/schema/schema.test.d.ts.map +1 -0
  330. package/dist/cjs/common/schema/schema.test.js +29 -0
  331. package/dist/cjs/common/schema/sets.d.ts +3 -2
  332. package/dist/cjs/common/schema/sets.d.ts.map +1 -1
  333. package/dist/cjs/common/schema/sets.js +10 -7
  334. package/dist/cjs/common/schema/sets.test.d.ts +2 -0
  335. package/dist/cjs/common/schema/sets.test.d.ts.map +1 -0
  336. package/dist/cjs/common/schema/sets.test.js +93 -0
  337. package/dist/cjs/common/schema/url.d.ts +2 -0
  338. package/dist/cjs/common/schema/url.d.ts.map +1 -0
  339. package/dist/cjs/common/schema/url.js +12 -0
  340. package/dist/cjs/common/schema/url.test.d.ts +2 -0
  341. package/dist/cjs/common/schema/url.test.d.ts.map +1 -0
  342. package/dist/cjs/common/schema/url.test.js +74 -0
  343. package/dist/cjs/customer/index.d.ts +3 -1
  344. package/dist/cjs/customer/index.d.ts.map +1 -1
  345. package/dist/cjs/customer/index.js +3 -1
  346. package/dist/cjs/customer/organization/schema.d.ts +53 -0
  347. package/dist/cjs/customer/organization/schema.d.ts.map +1 -0
  348. package/dist/cjs/customer/organization/schema.js +48 -0
  349. package/dist/cjs/customer/schema.d.ts +18 -0
  350. package/dist/cjs/customer/schema.d.ts.map +1 -0
  351. package/dist/cjs/customer/{schema/utils.js → schema.js} +13 -1
  352. package/dist/cjs/customer/schema.test.d.ts +2 -0
  353. package/dist/cjs/customer/schema.test.d.ts.map +1 -0
  354. package/dist/cjs/customer/schema.test.js +42 -0
  355. package/dist/cjs/customer/users/resources.d.ts +2 -2
  356. package/dist/cjs/customer/users/resources.d.ts.map +1 -1
  357. package/dist/cjs/customer/users/resources.js +5 -5
  358. package/dist/cjs/customer/users/schema.d.ts +143 -139
  359. package/dist/cjs/customer/users/schema.d.ts.map +1 -1
  360. package/dist/cjs/customer/users/schema.js +78 -63
  361. package/dist/cjs/customer/users/schema.test.js +63 -24
  362. package/dist/cjs/customer/users/utils.d.ts +11 -0
  363. package/dist/cjs/customer/users/utils.d.ts.map +1 -0
  364. package/dist/cjs/customer/users/utils.js +33 -0
  365. package/dist/cjs/customer/users/utils.test.d.ts +2 -0
  366. package/dist/cjs/customer/users/utils.test.d.ts.map +1 -0
  367. package/dist/cjs/customer/users/utils.test.js +145 -0
  368. package/dist/cjs/identity/index.d.ts +1 -1
  369. package/dist/cjs/identity/index.d.ts.map +1 -1
  370. package/dist/cjs/identity/index.js +1 -1
  371. package/dist/{esm/identity/schema → cjs/identity}/schema.d.ts +5 -1
  372. package/dist/cjs/identity/schema.d.ts.map +1 -0
  373. package/dist/cjs/identity/{schema/schema.js → schema.js} +5 -2
  374. package/dist/cjs/identity/schema.test.d.ts +2 -0
  375. package/dist/cjs/identity/schema.test.d.ts.map +1 -0
  376. package/dist/cjs/identity/schema.test.js +45 -0
  377. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.d.ts +31 -28
  378. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.d.ts.map +1 -1
  379. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.js +62 -24
  380. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.test.d.ts +2 -0
  381. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.test.d.ts.map +1 -0
  382. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.test.js +333 -0
  383. package/dist/cjs/oauth/authorize/schema/grants/implicit.d.ts +16 -10
  384. package/dist/cjs/oauth/authorize/schema/grants/implicit.d.ts.map +1 -1
  385. package/dist/cjs/oauth/authorize/schema/grants/implicit.js +19 -10
  386. package/dist/cjs/oauth/authorize/schema/schema.d.ts +44 -36
  387. package/dist/cjs/oauth/authorize/schema/schema.d.ts.map +1 -1
  388. package/dist/cjs/oauth/common/schema.d.ts +27 -7
  389. package/dist/cjs/oauth/common/schema.d.ts.map +1 -1
  390. package/dist/cjs/oauth/common/schema.js +27 -8
  391. package/dist/cjs/oauth/common/schema.test.d.ts +2 -0
  392. package/dist/cjs/oauth/common/schema.test.d.ts.map +1 -0
  393. package/dist/cjs/oauth/common/schema.test.js +289 -0
  394. package/dist/cjs/oauth/index.d.ts +1 -1
  395. package/dist/cjs/oauth/index.d.ts.map +1 -1
  396. package/dist/cjs/oauth/index.js +2 -1
  397. package/dist/cjs/oauth/token/schema/grants/authorization-code.d.ts +12 -9
  398. package/dist/cjs/oauth/token/schema/grants/authorization-code.d.ts.map +1 -1
  399. package/dist/cjs/oauth/token/schema/grants/authorization-code.js +11 -10
  400. package/dist/cjs/oauth/token/schema/grants/client-credentials.d.ts +20 -15
  401. package/dist/cjs/oauth/token/schema/grants/client-credentials.d.ts.map +1 -1
  402. package/dist/cjs/oauth/token/schema/grants/client-credentials.js +17 -12
  403. package/dist/cjs/oauth/token/schema/grants/refresh-token.d.ts +11 -8
  404. package/dist/cjs/oauth/token/schema/grants/refresh-token.d.ts.map +1 -1
  405. package/dist/cjs/oauth/token/schema/grants/refresh-token.js +9 -9
  406. package/dist/cjs/oauth/token/schema/schema.d.ts +28 -21
  407. package/dist/cjs/oauth/token/schema/schema.d.ts.map +1 -1
  408. package/dist/cjs/oauth/token/schema/schema.test.d.ts +2 -0
  409. package/dist/cjs/oauth/token/schema/schema.test.d.ts.map +1 -0
  410. package/dist/cjs/oauth/token/schema/schema.test.js +136 -0
  411. package/dist/cjs/workspace/authorization/schema.d.ts +48 -0
  412. package/dist/cjs/workspace/authorization/schema.d.ts.map +1 -0
  413. package/dist/cjs/workspace/authorization/schema.js +27 -0
  414. package/dist/cjs/workspace/branding/schema.d.ts +31 -0
  415. package/dist/cjs/workspace/branding/schema.d.ts.map +1 -0
  416. package/dist/cjs/workspace/branding/schema.js +30 -0
  417. package/dist/cjs/workspace/index.d.ts +8 -1
  418. package/dist/cjs/workspace/index.d.ts.map +1 -1
  419. package/dist/cjs/workspace/index.js +8 -1
  420. package/dist/cjs/workspace/membership/schema.d.ts +26 -0
  421. package/dist/cjs/workspace/membership/schema.d.ts.map +1 -0
  422. package/dist/cjs/workspace/{schema/membership.js → membership/schema.js} +6 -6
  423. package/dist/cjs/workspace/registration/schema.d.ts +27 -0
  424. package/dist/cjs/workspace/registration/schema.d.ts.map +1 -0
  425. package/dist/cjs/workspace/registration/schema.js +24 -0
  426. package/dist/cjs/workspace/settings/schema.d.ts +16 -0
  427. package/dist/cjs/workspace/settings/schema.d.ts.map +1 -0
  428. package/dist/cjs/workspace/{schema/settings.js → settings/schema.js} +7 -6
  429. package/dist/cjs/workspace/settings/schema.test.d.ts +2 -0
  430. package/dist/cjs/workspace/settings/schema.test.d.ts.map +1 -0
  431. package/dist/cjs/workspace/settings/schema.test.js +72 -0
  432. package/dist/cjs/workspace/tenant/schema.d.ts +56 -0
  433. package/dist/cjs/workspace/tenant/schema.d.ts.map +1 -0
  434. package/dist/cjs/workspace/tenant/schema.js +32 -0
  435. package/dist/cjs/workspace/user/notifications/schema.d.ts +56 -0
  436. package/dist/cjs/workspace/user/notifications/schema.d.ts.map +1 -0
  437. package/dist/cjs/workspace/user/notifications/schema.js +47 -0
  438. package/dist/cjs/workspace/user/preferences/schema.d.ts +19 -0
  439. package/dist/cjs/workspace/user/preferences/schema.d.ts.map +1 -0
  440. package/dist/cjs/workspace/user/preferences/schema.js +24 -0
  441. package/dist/cjs/workspace/user/schema.d.ts +3 -0
  442. package/dist/cjs/workspace/user/schema.d.ts.map +1 -0
  443. package/dist/cjs/{association/schema → workspace/user}/schema.js +2 -1
  444. package/dist/{esm/workspace/schema → cjs/workspace}/utils.d.ts +0 -3
  445. package/dist/cjs/workspace/utils.d.ts.map +1 -0
  446. package/dist/cjs/workspace/{schema/utils.js → utils.js} +1 -4
  447. package/dist/cjs/workspace/utils.test.d.ts +2 -0
  448. package/dist/cjs/workspace/utils.test.d.ts.map +1 -0
  449. package/dist/cjs/workspace/utils.test.js +63 -0
  450. package/dist/esm/action/schema/base.d.ts +29 -20
  451. package/dist/esm/action/schema/base.d.ts.map +1 -1
  452. package/dist/esm/action/schema/base.js +24 -10
  453. package/dist/esm/action/schema/base.test.d.ts +2 -0
  454. package/dist/esm/action/schema/base.test.d.ts.map +1 -0
  455. package/dist/esm/action/schema/base.test.js +136 -0
  456. package/dist/esm/action/schema/operations/set-password.d.ts +30 -30
  457. package/dist/esm/action/schema/operations/set-password.d.ts.map +1 -1
  458. package/dist/esm/action/schema/operations/set-password.js +12 -11
  459. package/dist/esm/action/schema/operations/set-password.test.d.ts +2 -0
  460. package/dist/esm/action/schema/operations/set-password.test.d.ts.map +1 -0
  461. package/dist/esm/action/schema/operations/set-password.test.js +166 -0
  462. package/dist/esm/action/schema/operations/sign-up-verification.d.ts +21 -21
  463. package/dist/esm/action/schema/operations/sign-up-verification.d.ts.map +1 -1
  464. package/dist/esm/action/schema/operations/sign-up-verification.js +10 -9
  465. package/dist/esm/action/schema/operations/sign-up-verification.test.d.ts +2 -0
  466. package/dist/esm/action/schema/operations/sign-up-verification.test.d.ts.map +1 -0
  467. package/dist/esm/action/schema/operations/sign-up-verification.test.js +138 -0
  468. package/dist/esm/action/schema/operations/sign-up.d.ts +40 -43
  469. package/dist/esm/action/schema/operations/sign-up.d.ts.map +1 -1
  470. package/dist/esm/action/schema/operations/sign-up.js +20 -11
  471. package/dist/esm/action/schema/operations/sign-up.test.d.ts +2 -0
  472. package/dist/esm/action/schema/operations/sign-up.test.d.ts.map +1 -0
  473. package/dist/esm/action/schema/operations/sign-up.test.js +171 -0
  474. package/dist/esm/action/schema/operations/user-attribute-verification.d.ts +19 -19
  475. package/dist/esm/action/schema/operations/user-attribute-verification.d.ts.map +1 -1
  476. package/dist/esm/action/schema/operations/user-attribute-verification.js +8 -7
  477. package/dist/esm/action/schema/operations/user-attribute-verification.test.d.ts +2 -0
  478. package/dist/esm/action/schema/operations/user-attribute-verification.test.d.ts.map +1 -0
  479. package/dist/esm/action/schema/operations/user-attribute-verification.test.js +126 -0
  480. package/dist/esm/action/schema/schema.d.ts +72 -84
  481. package/dist/esm/action/schema/schema.d.ts.map +1 -1
  482. package/dist/esm/action/schema/schema.js +2 -7
  483. package/dist/esm/action/schema/schema.test.d.ts +2 -0
  484. package/dist/esm/action/schema/schema.test.d.ts.map +1 -0
  485. package/dist/esm/action/schema/schema.test.js +188 -0
  486. package/dist/esm/action/schema/utils.d.ts +7 -0
  487. package/dist/esm/action/schema/utils.d.ts.map +1 -0
  488. package/dist/esm/action/schema/utils.js +9 -0
  489. package/dist/esm/action/schema/utils.test.d.ts +2 -0
  490. package/dist/esm/action/schema/utils.test.d.ts.map +1 -0
  491. package/dist/esm/action/schema/utils.test.js +24 -0
  492. package/dist/esm/activity/index.d.ts +1 -0
  493. package/dist/esm/activity/index.d.ts.map +1 -1
  494. package/dist/esm/activity/index.js +1 -0
  495. package/dist/esm/activity/resources.d.ts +13 -0
  496. package/dist/esm/activity/resources.d.ts.map +1 -0
  497. package/dist/esm/activity/resources.js +24 -0
  498. package/dist/esm/activity/resources.test.d.ts +2 -0
  499. package/dist/esm/activity/resources.test.d.ts.map +1 -0
  500. package/dist/esm/activity/resources.test.js +189 -0
  501. package/dist/esm/activity/schema/base.d.ts +104 -53
  502. package/dist/esm/activity/schema/base.d.ts.map +1 -1
  503. package/dist/esm/activity/schema/base.js +56 -20
  504. package/dist/esm/activity/schema/base.test.d.ts +2 -0
  505. package/dist/esm/activity/schema/base.test.d.ts.map +1 -0
  506. package/dist/esm/activity/schema/base.test.js +267 -0
  507. package/dist/esm/activity/schema/schema.d.ts +294 -148
  508. package/dist/esm/activity/schema/schema.d.ts.map +1 -1
  509. package/dist/esm/activity/schema/schema.js +10 -20
  510. package/dist/esm/activity/schema/schema.test.d.ts +2 -0
  511. package/dist/esm/activity/schema/schema.test.d.ts.map +1 -0
  512. package/dist/esm/activity/schema/schema.test.js +341 -0
  513. package/dist/esm/activity/schema/types/authentication.d.ts +64 -23
  514. package/dist/esm/activity/schema/types/authentication.d.ts.map +1 -1
  515. package/dist/esm/activity/schema/types/authentication.js +18 -6
  516. package/dist/esm/activity/schema/types/authentication.test.d.ts +2 -0
  517. package/dist/esm/activity/schema/types/authentication.test.d.ts.map +1 -0
  518. package/dist/esm/activity/schema/types/authentication.test.js +300 -0
  519. package/dist/esm/activity/schema/types/authorization.d.ts +64 -23
  520. package/dist/esm/activity/schema/types/authorization.d.ts.map +1 -1
  521. package/dist/esm/activity/schema/types/authorization.js +19 -8
  522. package/dist/esm/activity/schema/types/authorization.test.d.ts +2 -0
  523. package/dist/esm/activity/schema/types/authorization.test.d.ts.map +1 -0
  524. package/dist/esm/activity/schema/types/authorization.test.js +338 -0
  525. package/dist/esm/activity/schema/types/note.d.ts +83 -50
  526. package/dist/esm/activity/schema/types/note.d.ts.map +1 -1
  527. package/dist/esm/activity/schema/types/note.js +23 -13
  528. package/dist/esm/activity/schema/types/note.test.d.ts +2 -0
  529. package/dist/esm/activity/schema/types/note.test.d.ts.map +1 -0
  530. package/dist/esm/activity/schema/types/note.test.js +316 -0
  531. package/dist/esm/activity/schema/types/operation.d.ts +64 -23
  532. package/dist/esm/activity/schema/types/operation.d.ts.map +1 -1
  533. package/dist/esm/activity/schema/types/operation.js +20 -7
  534. package/dist/esm/activity/schema/types/operation.test.d.ts +2 -0
  535. package/dist/esm/activity/schema/types/operation.test.d.ts.map +1 -0
  536. package/dist/esm/activity/schema/types/operation.test.js +341 -0
  537. package/dist/esm/activity/schema/types/unknown.d.ts +50 -21
  538. package/dist/esm/activity/schema/types/unknown.d.ts.map +1 -1
  539. package/dist/esm/activity/schema/types/unknown.js +13 -5
  540. package/dist/esm/activity/schema/types/unknown.test.d.ts +2 -0
  541. package/dist/esm/activity/schema/types/unknown.test.d.ts.map +1 -0
  542. package/dist/esm/activity/schema/types/unknown.test.js +272 -0
  543. package/dist/esm/activity/schema/utils.test.d.ts +2 -0
  544. package/dist/esm/activity/schema/utils.test.d.ts.map +1 -0
  545. package/dist/esm/activity/schema/utils.test.js +24 -0
  546. package/dist/esm/app/authorization/resources.d.ts +12 -0
  547. package/dist/esm/app/authorization/resources.d.ts.map +1 -0
  548. package/dist/esm/app/authorization/resources.js +25 -0
  549. package/dist/esm/app/authorization/schema.d.ts +98 -0
  550. package/dist/esm/app/authorization/schema.d.ts.map +1 -0
  551. package/dist/esm/app/authorization/schema.js +79 -0
  552. package/dist/esm/app/authorization/schema.test.d.ts +2 -0
  553. package/dist/esm/app/authorization/schema.test.d.ts.map +1 -0
  554. package/dist/esm/app/authorization/schema.test.js +376 -0
  555. package/dist/esm/app/index.d.ts +13 -1
  556. package/dist/esm/app/index.d.ts.map +1 -1
  557. package/dist/esm/app/index.js +20 -1
  558. package/dist/esm/app/oauth/resources.d.ts +12 -0
  559. package/dist/esm/app/oauth/resources.d.ts.map +1 -0
  560. package/dist/esm/app/oauth/resources.js +28 -0
  561. package/dist/esm/app/oauth/schema.d.ts +35 -0
  562. package/dist/esm/app/oauth/schema.d.ts.map +1 -0
  563. package/dist/esm/app/oauth/schema.js +32 -0
  564. package/dist/esm/app/oauth/schema.test.d.ts +2 -0
  565. package/dist/esm/app/oauth/schema.test.d.ts.map +1 -0
  566. package/dist/esm/app/oauth/schema.test.js +170 -0
  567. package/dist/esm/app/oidc/resources.d.ts +16 -0
  568. package/dist/esm/app/oidc/resources.d.ts.map +1 -0
  569. package/dist/esm/app/oidc/resources.js +40 -0
  570. package/dist/esm/app/oidc/schema.d.ts +27 -0
  571. package/dist/esm/app/oidc/schema.d.ts.map +1 -0
  572. package/dist/esm/app/oidc/schema.js +20 -0
  573. package/dist/esm/app/oidc/schema.test.d.ts +2 -0
  574. package/dist/esm/app/oidc/schema.test.d.ts.map +1 -0
  575. package/dist/esm/app/oidc/schema.test.js +112 -0
  576. package/dist/esm/app/registration/resources.d.ts +12 -0
  577. package/dist/esm/app/registration/resources.d.ts.map +1 -0
  578. package/dist/esm/app/registration/resources.js +28 -0
  579. package/dist/esm/app/registration/resources.test.d.ts +2 -0
  580. package/dist/esm/app/registration/resources.test.d.ts.map +1 -0
  581. package/dist/esm/app/registration/resources.test.js +260 -0
  582. package/dist/esm/app/registration/schema.d.ts +25 -0
  583. package/dist/esm/app/registration/schema.d.ts.map +1 -0
  584. package/dist/esm/app/registration/schema.js +27 -0
  585. package/dist/esm/app/registration/schema.test.d.ts +2 -0
  586. package/dist/esm/app/registration/schema.test.d.ts.map +1 -0
  587. package/dist/esm/app/registration/schema.test.js +178 -0
  588. package/dist/esm/app/resources.d.ts +21 -0
  589. package/dist/esm/app/resources.d.ts.map +1 -0
  590. package/dist/esm/app/resources.js +48 -0
  591. package/dist/esm/app/resources.test.d.ts +2 -0
  592. package/dist/esm/app/resources.test.d.ts.map +1 -0
  593. package/dist/esm/app/resources.test.js +253 -0
  594. package/dist/esm/app/saml/resources.d.ts +16 -0
  595. package/dist/esm/app/saml/resources.d.ts.map +1 -0
  596. package/dist/esm/app/saml/resources.js +40 -0
  597. package/dist/esm/app/saml/schema.d.ts +27 -0
  598. package/dist/esm/app/saml/schema.d.ts.map +1 -0
  599. package/dist/esm/app/saml/schema.js +20 -0
  600. package/dist/esm/app/schema.d.ts +81 -0
  601. package/dist/esm/app/schema.d.ts.map +1 -0
  602. package/dist/esm/app/schema.js +60 -0
  603. package/dist/esm/app/schema.test.d.ts +2 -0
  604. package/dist/esm/app/schema.test.d.ts.map +1 -0
  605. package/dist/esm/app/schema.test.js +179 -0
  606. package/dist/esm/app/utils.d.ts.map +1 -0
  607. package/dist/esm/app/utils.test.d.ts +2 -0
  608. package/dist/esm/app/utils.test.d.ts.map +1 -0
  609. package/dist/esm/app/utils.test.js +40 -0
  610. package/dist/esm/association/index.d.ts +2 -1
  611. package/dist/esm/association/index.d.ts.map +1 -1
  612. package/dist/esm/association/index.js +2 -1
  613. package/dist/esm/association/resources.d.ts +23 -0
  614. package/dist/esm/association/resources.d.ts.map +1 -0
  615. package/dist/esm/association/resources.js +42 -0
  616. package/dist/esm/association/schema.d.ts +245 -0
  617. package/dist/esm/association/schema.d.ts.map +1 -0
  618. package/dist/esm/association/schema.js +56 -0
  619. package/dist/esm/association/schema.test.d.ts +2 -0
  620. package/dist/esm/association/schema.test.d.ts.map +1 -0
  621. package/dist/esm/association/schema.test.js +127 -0
  622. package/dist/esm/authentication/factors/schema.d.ts +20 -0
  623. package/dist/esm/authentication/factors/schema.d.ts.map +1 -0
  624. package/dist/esm/authentication/factors/schema.js +27 -0
  625. package/dist/esm/authentication/factors/schema.test.d.ts +2 -0
  626. package/dist/esm/authentication/factors/schema.test.d.ts.map +1 -0
  627. package/dist/esm/authentication/factors/schema.test.js +121 -0
  628. package/dist/esm/authentication/index.d.ts +9 -1
  629. package/dist/esm/authentication/index.d.ts.map +1 -1
  630. package/dist/esm/authentication/index.js +15 -1
  631. package/dist/esm/authentication/providers/schema.d.ts +28 -0
  632. package/dist/esm/authentication/providers/schema.d.ts.map +1 -0
  633. package/dist/esm/authentication/providers/schema.js +23 -0
  634. package/dist/esm/authentication/resources.d.ts +2 -0
  635. package/dist/esm/authentication/resources.d.ts.map +1 -0
  636. package/dist/esm/authentication/resources.js +1 -0
  637. package/dist/esm/authentication/sessions/resources.d.ts +21 -0
  638. package/dist/esm/authentication/sessions/resources.d.ts.map +1 -0
  639. package/dist/esm/authentication/sessions/resources.js +37 -0
  640. package/dist/esm/authentication/sessions/schema.d.ts +108 -0
  641. package/dist/esm/authentication/sessions/schema.d.ts.map +1 -0
  642. package/dist/esm/authentication/sessions/schema.js +85 -0
  643. package/dist/esm/authentication/settings/resources.d.ts +12 -0
  644. package/dist/esm/authentication/settings/resources.d.ts.map +1 -0
  645. package/dist/esm/authentication/settings/resources.js +25 -0
  646. package/dist/esm/authentication/settings/schema.d.ts +26 -0
  647. package/dist/esm/authentication/settings/schema.d.ts.map +1 -0
  648. package/dist/esm/authentication/settings/schema.js +23 -0
  649. package/dist/esm/authentication/settings/schema.test.d.ts +2 -0
  650. package/dist/esm/authentication/settings/schema.test.d.ts.map +1 -0
  651. package/dist/esm/authentication/settings/schema.test.js +80 -0
  652. package/dist/esm/authentication/strategies/resources.d.ts +21 -0
  653. package/dist/esm/authentication/strategies/resources.d.ts.map +1 -0
  654. package/dist/esm/authentication/strategies/resources.js +49 -0
  655. package/dist/esm/authentication/strategies/schema/base.d.ts +71 -0
  656. package/dist/esm/authentication/strategies/schema/base.d.ts.map +1 -0
  657. package/dist/esm/authentication/strategies/schema/base.js +58 -0
  658. package/dist/esm/authentication/strategies/schema/schema.d.ts +214 -0
  659. package/dist/esm/authentication/strategies/schema/schema.d.ts.map +1 -0
  660. package/dist/esm/authentication/{schema/strategy → strategies/schema}/schema.js +4 -3
  661. package/dist/esm/authentication/strategies/schema/types/email.d.ts +62 -0
  662. package/dist/esm/authentication/strategies/schema/types/email.d.ts.map +1 -0
  663. package/dist/esm/authentication/strategies/schema/types/email.js +28 -0
  664. package/dist/esm/authentication/strategies/schema/types/email.test.d.ts +2 -0
  665. package/dist/esm/authentication/strategies/schema/types/email.test.d.ts.map +1 -0
  666. package/dist/esm/authentication/strategies/schema/types/email.test.js +202 -0
  667. package/dist/esm/authentication/strategies/schema/types/password.d.ts +138 -0
  668. package/dist/esm/authentication/strategies/schema/types/password.d.ts.map +1 -0
  669. package/dist/esm/authentication/strategies/schema/types/password.js +57 -0
  670. package/dist/esm/authentication/strategies/schema/types/totp.d.ts +123 -0
  671. package/dist/esm/authentication/strategies/schema/types/totp.d.ts.map +1 -0
  672. package/dist/esm/authentication/strategies/schema/types/totp.js +78 -0
  673. package/dist/esm/authentication/utils.d.ts +13 -0
  674. package/dist/esm/authentication/utils.d.ts.map +1 -0
  675. package/dist/esm/authentication/utils.js +17 -0
  676. package/dist/esm/authentication/utils.test.d.ts +2 -0
  677. package/dist/esm/authentication/utils.test.d.ts.map +1 -0
  678. package/dist/esm/authentication/utils.test.js +140 -0
  679. package/dist/esm/authorization/index.d.ts +1 -1
  680. package/dist/esm/authorization/index.d.ts.map +1 -1
  681. package/dist/esm/authorization/index.js +3 -1
  682. package/dist/esm/authorization/permissions/resources.d.ts +2 -2
  683. package/dist/esm/authorization/permissions/resources.d.ts.map +1 -1
  684. package/dist/esm/authorization/permissions/resources.js +6 -6
  685. package/dist/esm/authorization/permissions/schema.d.ts +92 -89
  686. package/dist/esm/authorization/permissions/schema.d.ts.map +1 -1
  687. package/dist/esm/authorization/permissions/schema.js +47 -34
  688. package/dist/esm/authorization/permissions/schema.test.d.ts +2 -0
  689. package/dist/esm/authorization/permissions/schema.test.d.ts.map +1 -0
  690. package/dist/esm/authorization/permissions/schema.test.js +213 -0
  691. package/dist/esm/authorization/roles/resources.d.ts +2 -2
  692. package/dist/esm/authorization/roles/resources.d.ts.map +1 -1
  693. package/dist/esm/authorization/roles/resources.js +6 -6
  694. package/dist/esm/authorization/roles/schema.d.ts +102 -98
  695. package/dist/esm/authorization/roles/schema.d.ts.map +1 -1
  696. package/dist/esm/authorization/roles/schema.js +43 -38
  697. package/dist/esm/authorization/roles/schema.test.d.ts +2 -0
  698. package/dist/esm/authorization/roles/schema.test.d.ts.map +1 -0
  699. package/dist/esm/authorization/roles/schema.test.js +233 -0
  700. package/dist/esm/authorization/schema.d.ts +18 -0
  701. package/dist/esm/authorization/schema.d.ts.map +1 -0
  702. package/dist/esm/authorization/schema.js +27 -0
  703. package/dist/esm/authorization/schema.test.d.ts +2 -0
  704. package/dist/esm/authorization/schema.test.d.ts.map +1 -0
  705. package/dist/esm/authorization/schema.test.js +40 -0
  706. package/dist/esm/common/errors/http.test.d.ts +2 -0
  707. package/dist/esm/common/errors/http.test.d.ts.map +1 -0
  708. package/dist/esm/common/errors/http.test.js +69 -0
  709. package/dist/esm/common/errors/validation.test.d.ts +2 -0
  710. package/dist/esm/common/errors/validation.test.d.ts.map +1 -0
  711. package/dist/esm/common/errors/validation.test.js +90 -0
  712. package/dist/esm/common/index.d.ts +1 -0
  713. package/dist/esm/common/index.d.ts.map +1 -1
  714. package/dist/esm/common/index.js +1 -0
  715. package/dist/esm/common/resources/init.d.ts +7 -6
  716. package/dist/esm/common/resources/init.d.ts.map +1 -1
  717. package/dist/esm/common/resources/init.js +17 -9
  718. package/dist/esm/common/resources/init.test.d.ts +2 -0
  719. package/dist/esm/common/resources/init.test.d.ts.map +1 -0
  720. package/dist/esm/common/resources/init.test.js +231 -0
  721. package/dist/esm/common/resources/operations.test.d.ts +2 -0
  722. package/dist/esm/common/resources/operations.test.d.ts.map +1 -0
  723. package/dist/esm/common/resources/operations.test.js +354 -0
  724. package/dist/esm/common/resources/utils.d.ts +1 -10
  725. package/dist/esm/common/resources/utils.d.ts.map +1 -1
  726. package/dist/esm/common/resources/utils.js +0 -24
  727. package/dist/esm/common/resources/utils.test.d.ts +2 -0
  728. package/dist/esm/common/resources/utils.test.d.ts.map +1 -0
  729. package/dist/esm/common/resources/utils.test.js +132 -0
  730. package/dist/esm/common/schema/aggregate.d.ts +6 -5
  731. package/dist/esm/common/schema/aggregate.d.ts.map +1 -1
  732. package/dist/esm/common/schema/aggregate.js +4 -4
  733. package/dist/esm/common/schema/aggregate.test.d.ts +2 -0
  734. package/dist/esm/common/schema/aggregate.test.d.ts.map +1 -0
  735. package/dist/esm/common/schema/aggregate.test.js +72 -0
  736. package/dist/esm/common/schema/collection.d.ts +11 -10
  737. package/dist/esm/common/schema/collection.d.ts.map +1 -1
  738. package/dist/esm/common/schema/collection.js +4 -4
  739. package/dist/esm/common/schema/collection.test.d.ts +2 -0
  740. package/dist/esm/common/schema/collection.test.d.ts.map +1 -0
  741. package/dist/esm/common/schema/collection.test.js +114 -0
  742. package/dist/esm/common/schema/dates.d.ts +27 -26
  743. package/dist/esm/common/schema/dates.d.ts.map +1 -1
  744. package/dist/esm/common/schema/dates.js +17 -11
  745. package/dist/esm/common/schema/dates.test.js +24 -13
  746. package/dist/esm/common/schema/id.d.ts +3 -0
  747. package/dist/esm/common/schema/id.d.ts.map +1 -0
  748. package/dist/esm/common/schema/id.js +2 -0
  749. package/dist/esm/common/schema/id.test.d.ts +2 -0
  750. package/dist/esm/common/schema/id.test.d.ts.map +1 -0
  751. package/dist/esm/common/schema/id.test.js +146 -0
  752. package/dist/esm/common/schema/jwt.d.ts +27 -14
  753. package/dist/esm/common/schema/jwt.d.ts.map +1 -1
  754. package/dist/esm/common/schema/jwt.js +14 -2
  755. package/dist/esm/common/schema/jwt.test.d.ts +2 -0
  756. package/dist/esm/common/schema/jwt.test.d.ts.map +1 -0
  757. package/dist/esm/common/schema/jwt.test.js +60 -0
  758. package/dist/esm/common/schema/metadata.d.ts +28 -37
  759. package/dist/esm/common/schema/metadata.d.ts.map +1 -1
  760. package/dist/esm/common/schema/metadata.js +45 -26
  761. package/dist/esm/common/schema/metadata.test.js +72 -24
  762. package/dist/esm/common/schema/pagination.d.ts +6 -5
  763. package/dist/esm/common/schema/pagination.d.ts.map +1 -1
  764. package/dist/esm/common/schema/pagination.js +4 -4
  765. package/dist/esm/common/schema/pagination.test.d.ts +2 -0
  766. package/dist/esm/common/schema/pagination.test.d.ts.map +1 -0
  767. package/dist/esm/common/schema/pagination.test.js +65 -0
  768. package/dist/esm/common/schema/schema.d.ts +5 -0
  769. package/dist/esm/common/schema/schema.d.ts.map +1 -1
  770. package/dist/esm/common/schema/schema.js +8 -0
  771. package/dist/esm/common/schema/schema.test.d.ts +2 -0
  772. package/dist/esm/common/schema/schema.test.d.ts.map +1 -0
  773. package/dist/esm/common/schema/schema.test.js +27 -0
  774. package/dist/esm/common/schema/sets.d.ts +3 -2
  775. package/dist/esm/common/schema/sets.d.ts.map +1 -1
  776. package/dist/esm/common/schema/sets.js +9 -6
  777. package/dist/esm/common/schema/sets.test.d.ts +2 -0
  778. package/dist/esm/common/schema/sets.test.d.ts.map +1 -0
  779. package/dist/esm/common/schema/sets.test.js +91 -0
  780. package/dist/esm/common/schema/url.d.ts +2 -0
  781. package/dist/esm/common/schema/url.d.ts.map +1 -0
  782. package/dist/esm/common/schema/url.js +9 -0
  783. package/dist/esm/common/schema/url.test.d.ts +2 -0
  784. package/dist/esm/common/schema/url.test.d.ts.map +1 -0
  785. package/dist/esm/common/schema/url.test.js +72 -0
  786. package/dist/esm/customer/index.d.ts +3 -1
  787. package/dist/esm/customer/index.d.ts.map +1 -1
  788. package/dist/esm/customer/index.js +3 -1
  789. package/dist/esm/customer/organization/schema.d.ts +53 -0
  790. package/dist/esm/customer/organization/schema.d.ts.map +1 -0
  791. package/dist/esm/customer/organization/schema.js +45 -0
  792. package/dist/esm/customer/schema.d.ts +18 -0
  793. package/dist/esm/customer/schema.d.ts.map +1 -0
  794. package/dist/esm/customer/schema.js +27 -0
  795. package/dist/esm/customer/schema.test.d.ts +2 -0
  796. package/dist/esm/customer/schema.test.d.ts.map +1 -0
  797. package/dist/esm/customer/schema.test.js +40 -0
  798. package/dist/esm/customer/users/resources.d.ts +2 -2
  799. package/dist/esm/customer/users/resources.d.ts.map +1 -1
  800. package/dist/esm/customer/users/resources.js +7 -7
  801. package/dist/esm/customer/users/schema.d.ts +143 -139
  802. package/dist/esm/customer/users/schema.d.ts.map +1 -1
  803. package/dist/esm/customer/users/schema.js +77 -62
  804. package/dist/esm/customer/users/schema.test.js +61 -22
  805. package/dist/esm/customer/users/utils.d.ts +11 -0
  806. package/dist/esm/customer/users/utils.d.ts.map +1 -0
  807. package/dist/esm/customer/users/utils.js +27 -0
  808. package/dist/esm/customer/users/utils.test.d.ts +2 -0
  809. package/dist/esm/customer/users/utils.test.d.ts.map +1 -0
  810. package/dist/esm/customer/users/utils.test.js +143 -0
  811. package/dist/esm/identity/index.d.ts +1 -1
  812. package/dist/esm/identity/index.d.ts.map +1 -1
  813. package/dist/esm/identity/index.js +1 -1
  814. package/dist/{cjs/identity/schema → esm/identity}/schema.d.ts +5 -1
  815. package/dist/esm/identity/schema.d.ts.map +1 -0
  816. package/dist/esm/identity/schema.js +9 -0
  817. package/dist/esm/identity/schema.test.d.ts +2 -0
  818. package/dist/esm/identity/schema.test.d.ts.map +1 -0
  819. package/dist/esm/identity/schema.test.js +43 -0
  820. package/dist/esm/oauth/authorize/schema/grants/authorization-code.d.ts +31 -28
  821. package/dist/esm/oauth/authorize/schema/grants/authorization-code.d.ts.map +1 -1
  822. package/dist/esm/oauth/authorize/schema/grants/authorization-code.js +58 -20
  823. package/dist/esm/oauth/authorize/schema/grants/authorization-code.test.d.ts +2 -0
  824. package/dist/esm/oauth/authorize/schema/grants/authorization-code.test.d.ts.map +1 -0
  825. package/dist/esm/oauth/authorize/schema/grants/authorization-code.test.js +331 -0
  826. package/dist/esm/oauth/authorize/schema/grants/implicit.d.ts +16 -10
  827. package/dist/esm/oauth/authorize/schema/grants/implicit.d.ts.map +1 -1
  828. package/dist/esm/oauth/authorize/schema/grants/implicit.js +19 -10
  829. package/dist/esm/oauth/authorize/schema/schema.d.ts +44 -36
  830. package/dist/esm/oauth/authorize/schema/schema.d.ts.map +1 -1
  831. package/dist/esm/oauth/common/schema.d.ts +27 -7
  832. package/dist/esm/oauth/common/schema.d.ts.map +1 -1
  833. package/dist/esm/oauth/common/schema.js +26 -7
  834. package/dist/esm/oauth/common/schema.test.d.ts +2 -0
  835. package/dist/esm/oauth/common/schema.test.d.ts.map +1 -0
  836. package/dist/esm/oauth/common/schema.test.js +287 -0
  837. package/dist/esm/oauth/index.d.ts +1 -1
  838. package/dist/esm/oauth/index.d.ts.map +1 -1
  839. package/dist/esm/oauth/index.js +1 -1
  840. package/dist/esm/oauth/token/schema/grants/authorization-code.d.ts +12 -9
  841. package/dist/esm/oauth/token/schema/grants/authorization-code.d.ts.map +1 -1
  842. package/dist/esm/oauth/token/schema/grants/authorization-code.js +11 -10
  843. package/dist/esm/oauth/token/schema/grants/client-credentials.d.ts +20 -15
  844. package/dist/esm/oauth/token/schema/grants/client-credentials.d.ts.map +1 -1
  845. package/dist/esm/oauth/token/schema/grants/client-credentials.js +14 -9
  846. package/dist/esm/oauth/token/schema/grants/refresh-token.d.ts +11 -8
  847. package/dist/esm/oauth/token/schema/grants/refresh-token.d.ts.map +1 -1
  848. package/dist/esm/oauth/token/schema/grants/refresh-token.js +7 -7
  849. package/dist/esm/oauth/token/schema/schema.d.ts +28 -21
  850. package/dist/esm/oauth/token/schema/schema.d.ts.map +1 -1
  851. package/dist/esm/oauth/token/schema/schema.test.d.ts +2 -0
  852. package/dist/esm/oauth/token/schema/schema.test.d.ts.map +1 -0
  853. package/dist/esm/oauth/token/schema/schema.test.js +134 -0
  854. package/dist/esm/workspace/authorization/schema.d.ts +48 -0
  855. package/dist/esm/workspace/authorization/schema.d.ts.map +1 -0
  856. package/dist/esm/workspace/authorization/schema.js +24 -0
  857. package/dist/esm/workspace/branding/schema.d.ts +31 -0
  858. package/dist/esm/workspace/branding/schema.d.ts.map +1 -0
  859. package/dist/esm/workspace/branding/schema.js +27 -0
  860. package/dist/esm/workspace/index.d.ts +8 -1
  861. package/dist/esm/workspace/index.d.ts.map +1 -1
  862. package/dist/esm/workspace/index.js +8 -1
  863. package/dist/esm/workspace/membership/schema.d.ts +26 -0
  864. package/dist/esm/workspace/membership/schema.d.ts.map +1 -0
  865. package/dist/esm/workspace/{schema/membership.js → membership/schema.js} +6 -6
  866. package/dist/esm/workspace/registration/schema.d.ts +27 -0
  867. package/dist/esm/workspace/registration/schema.d.ts.map +1 -0
  868. package/dist/esm/workspace/registration/schema.js +21 -0
  869. package/dist/esm/workspace/settings/schema.d.ts +16 -0
  870. package/dist/esm/workspace/settings/schema.d.ts.map +1 -0
  871. package/dist/esm/workspace/{schema/settings.js → settings/schema.js} +7 -6
  872. package/dist/esm/workspace/settings/schema.test.d.ts +2 -0
  873. package/dist/esm/workspace/settings/schema.test.d.ts.map +1 -0
  874. package/dist/esm/workspace/settings/schema.test.js +70 -0
  875. package/dist/esm/workspace/tenant/schema.d.ts +56 -0
  876. package/dist/esm/workspace/tenant/schema.d.ts.map +1 -0
  877. package/dist/esm/workspace/tenant/schema.js +29 -0
  878. package/dist/esm/workspace/user/notifications/schema.d.ts +56 -0
  879. package/dist/esm/workspace/user/notifications/schema.d.ts.map +1 -0
  880. package/dist/esm/workspace/user/notifications/schema.js +44 -0
  881. package/dist/esm/workspace/user/preferences/schema.d.ts +19 -0
  882. package/dist/esm/workspace/user/preferences/schema.d.ts.map +1 -0
  883. package/dist/esm/workspace/user/preferences/schema.js +21 -0
  884. package/dist/esm/workspace/user/schema.d.ts +3 -0
  885. package/dist/esm/workspace/user/schema.d.ts.map +1 -0
  886. package/dist/esm/workspace/user/schema.js +2 -0
  887. package/dist/{cjs/workspace/schema → esm/workspace}/utils.d.ts +0 -3
  888. package/dist/esm/workspace/utils.d.ts.map +1 -0
  889. package/dist/esm/workspace/{schema/utils.js → utils.js} +1 -4
  890. package/dist/esm/workspace/utils.test.d.ts +2 -0
  891. package/dist/esm/workspace/utils.test.d.ts.map +1 -0
  892. package/dist/esm/workspace/utils.test.js +61 -0
  893. package/package.json +7 -7
  894. package/src/action/schema/base.test.ts.bak +152 -0
  895. package/src/action/schema/operations/set-password.test.ts.bak +197 -0
  896. package/src/action/schema/operations/sign-up-verification.test.ts.bak +163 -0
  897. package/src/action/schema/operations/sign-up.test.ts.bak +203 -0
  898. package/src/action/schema/operations/user-attribute-verification.test.ts.bak +148 -0
  899. package/src/action/schema/schema.test.ts.bak +218 -0
  900. package/src/activity/schema/base.test.ts.bak +291 -0
  901. package/src/activity/schema/schema.test.ts.bak +392 -0
  902. package/src/activity/schema/types/authentication.test.ts.bak +337 -0
  903. package/src/activity/schema/types/authorization.test.ts.bak +379 -0
  904. package/src/activity/schema/types/note.test.ts.bak +367 -0
  905. package/src/activity/schema/types/operation.test.ts.bak +379 -0
  906. package/src/activity/schema/types/unknown.test.ts.bak +304 -0
  907. package/src/app/authorization/schema.test.ts.bak +412 -0
  908. package/src/app/oidc/schema.test.ts.bak +117 -0
  909. package/src/app/registration/schema.test.ts.bak +308 -0
  910. package/src/app/schema.test.ts.bak +221 -0
  911. package/src/association/schema.test.ts.bak +148 -0
  912. package/src/authentication/factors/schema.test.ts.bak +174 -0
  913. package/src/authentication/settings/schema.test.ts.bak +91 -0
  914. package/src/authentication/strategies/schema/types/email.test.ts.bak +252 -0
  915. package/src/authorization/permissions/schema.test.ts.bak +267 -0
  916. package/src/authorization/roles/schema.test.ts.bak +283 -0
  917. package/src/common/schema/aggregate.test.ts.bak +89 -0
  918. package/src/common/schema/collection.test.ts.bak +116 -0
  919. package/src/common/schema/dates.test.ts.bak +49 -0
  920. package/src/common/schema/id.test.ts.bak +149 -0
  921. package/src/common/schema/jwt.test.ts.bak +61 -0
  922. package/src/common/schema/metadata.test.ts.bak +141 -0
  923. package/src/common/schema/pagination.test.ts.bak +80 -0
  924. package/src/common/schema/schema.test.ts.bak +41 -0
  925. package/src/common/schema/sets.test.ts.bak +108 -0
  926. package/src/customer/users/schema.test.ts.bak +138 -0
  927. package/src/identity/schema.test.ts.bak +48 -0
  928. package/src/oauth/token/schema/schema.test.ts.bak +142 -0
  929. package/src/workspace/settings/schema.test.ts.bak +88 -0
  930. package/dist/cjs/app/schema/app.d.ts +0 -58
  931. package/dist/cjs/app/schema/app.d.ts.map +0 -1
  932. package/dist/cjs/app/schema/app.js +0 -43
  933. package/dist/cjs/app/schema/authorization.d.ts +0 -37
  934. package/dist/cjs/app/schema/authorization.d.ts.map +0 -1
  935. package/dist/cjs/app/schema/authorization.js +0 -44
  936. package/dist/cjs/app/schema/oauth.d.ts +0 -30
  937. package/dist/cjs/app/schema/oauth.d.ts.map +0 -1
  938. package/dist/cjs/app/schema/oauth.js +0 -21
  939. package/dist/cjs/app/schema/oidc.d.ts +0 -28
  940. package/dist/cjs/app/schema/oidc.d.ts.map +0 -1
  941. package/dist/cjs/app/schema/oidc.js +0 -13
  942. package/dist/cjs/app/schema/registration.d.ts +0 -22
  943. package/dist/cjs/app/schema/registration.d.ts.map +0 -1
  944. package/dist/cjs/app/schema/registration.js +0 -16
  945. package/dist/cjs/app/schema/saml.d.ts +0 -28
  946. package/dist/cjs/app/schema/saml.d.ts.map +0 -1
  947. package/dist/cjs/app/schema/saml.js +0 -13
  948. package/dist/cjs/app/schema/schema.d.ts +0 -8
  949. package/dist/cjs/app/schema/schema.d.ts.map +0 -1
  950. package/dist/cjs/app/schema/schema.js +0 -23
  951. package/dist/cjs/app/schema/utils.d.ts.map +0 -1
  952. package/dist/cjs/association/schema/association.d.ts +0 -82
  953. package/dist/cjs/association/schema/association.d.ts.map +0 -1
  954. package/dist/cjs/association/schema/association.js +0 -26
  955. package/dist/cjs/association/schema/schema.d.ts +0 -2
  956. package/dist/cjs/association/schema/schema.d.ts.map +0 -1
  957. package/dist/cjs/authentication/schema/factors.d.ts +0 -48
  958. package/dist/cjs/authentication/schema/factors.d.ts.map +0 -1
  959. package/dist/cjs/authentication/schema/factors.js +0 -28
  960. package/dist/cjs/authentication/schema/factors.test.d.ts +0 -2
  961. package/dist/cjs/authentication/schema/factors.test.d.ts.map +0 -1
  962. package/dist/cjs/authentication/schema/factors.test.js +0 -123
  963. package/dist/cjs/authentication/schema/provider.d.ts +0 -27
  964. package/dist/cjs/authentication/schema/provider.d.ts.map +0 -1
  965. package/dist/cjs/authentication/schema/schema.d.ts +0 -6
  966. package/dist/cjs/authentication/schema/schema.d.ts.map +0 -1
  967. package/dist/cjs/authentication/schema/schema.js +0 -21
  968. package/dist/cjs/authentication/schema/session.d.ts +0 -59
  969. package/dist/cjs/authentication/schema/session.d.ts.map +0 -1
  970. package/dist/cjs/authentication/schema/session.js +0 -46
  971. package/dist/cjs/authentication/schema/settings.d.ts +0 -46
  972. package/dist/cjs/authentication/schema/settings.d.ts.map +0 -1
  973. package/dist/cjs/authentication/schema/settings.js +0 -16
  974. package/dist/cjs/authentication/schema/strategy/base.d.ts +0 -54
  975. package/dist/cjs/authentication/schema/strategy/base.d.ts.map +0 -1
  976. package/dist/cjs/authentication/schema/strategy/base.js +0 -39
  977. package/dist/cjs/authentication/schema/strategy/schema.d.ts +0 -158
  978. package/dist/cjs/authentication/schema/strategy/schema.d.ts.map +0 -1
  979. package/dist/cjs/authentication/schema/strategy/types/email.d.ts +0 -44
  980. package/dist/cjs/authentication/schema/strategy/types/email.d.ts.map +0 -1
  981. package/dist/cjs/authentication/schema/strategy/types/email.js +0 -20
  982. package/dist/cjs/authentication/schema/strategy/types/password.d.ts +0 -99
  983. package/dist/cjs/authentication/schema/strategy/types/password.d.ts.map +0 -1
  984. package/dist/cjs/authentication/schema/strategy/types/password.js +0 -35
  985. package/dist/cjs/authentication/schema/strategy/types/totp.d.ts +0 -91
  986. package/dist/cjs/authentication/schema/strategy/types/totp.d.ts.map +0 -1
  987. package/dist/cjs/authentication/schema/strategy/types/totp.js +0 -48
  988. package/dist/cjs/authorization/utils.d.ts +0 -11
  989. package/dist/cjs/authorization/utils.d.ts.map +0 -1
  990. package/dist/cjs/customer/schema/organization.d.ts +0 -54
  991. package/dist/cjs/customer/schema/organization.d.ts.map +0 -1
  992. package/dist/cjs/customer/schema/organization.js +0 -40
  993. package/dist/cjs/customer/schema/schema.d.ts +0 -4
  994. package/dist/cjs/customer/schema/schema.d.ts.map +0 -1
  995. package/dist/cjs/customer/schema/schema.js +0 -19
  996. package/dist/cjs/customer/schema/utils.d.ts +0 -11
  997. package/dist/cjs/customer/schema/utils.d.ts.map +0 -1
  998. package/dist/cjs/identity/schema/schema.d.ts.map +0 -1
  999. package/dist/cjs/workspace/schema/authorization.d.ts +0 -31
  1000. package/dist/cjs/workspace/schema/authorization.d.ts.map +0 -1
  1001. package/dist/cjs/workspace/schema/authorization.js +0 -22
  1002. package/dist/cjs/workspace/schema/branding.d.ts +0 -38
  1003. package/dist/cjs/workspace/schema/branding.d.ts.map +0 -1
  1004. package/dist/cjs/workspace/schema/branding.js +0 -25
  1005. package/dist/cjs/workspace/schema/membership.d.ts +0 -25
  1006. package/dist/cjs/workspace/schema/membership.d.ts.map +0 -1
  1007. package/dist/cjs/workspace/schema/registration.d.ts +0 -28
  1008. package/dist/cjs/workspace/schema/registration.d.ts.map +0 -1
  1009. package/dist/cjs/workspace/schema/registration.js +0 -22
  1010. package/dist/cjs/workspace/schema/schema.d.ts +0 -10
  1011. package/dist/cjs/workspace/schema/schema.d.ts.map +0 -1
  1012. package/dist/cjs/workspace/schema/schema.js +0 -25
  1013. package/dist/cjs/workspace/schema/settings.d.ts +0 -23
  1014. package/dist/cjs/workspace/schema/settings.d.ts.map +0 -1
  1015. package/dist/cjs/workspace/schema/tenant.d.ts +0 -57
  1016. package/dist/cjs/workspace/schema/tenant.d.ts.map +0 -1
  1017. package/dist/cjs/workspace/schema/tenant.js +0 -26
  1018. package/dist/cjs/workspace/schema/user-notification.d.ts +0 -62
  1019. package/dist/cjs/workspace/schema/user-notification.d.ts.map +0 -1
  1020. package/dist/cjs/workspace/schema/user-notification.js +0 -44
  1021. package/dist/cjs/workspace/schema/user-preferences.d.ts +0 -26
  1022. package/dist/cjs/workspace/schema/user-preferences.d.ts.map +0 -1
  1023. package/dist/cjs/workspace/schema/user-preferences.js +0 -19
  1024. package/dist/cjs/workspace/schema/utils.d.ts.map +0 -1
  1025. package/dist/esm/app/schema/app.d.ts +0 -58
  1026. package/dist/esm/app/schema/app.d.ts.map +0 -1
  1027. package/dist/esm/app/schema/app.js +0 -40
  1028. package/dist/esm/app/schema/authorization.d.ts +0 -37
  1029. package/dist/esm/app/schema/authorization.d.ts.map +0 -1
  1030. package/dist/esm/app/schema/authorization.js +0 -41
  1031. package/dist/esm/app/schema/oauth.d.ts +0 -30
  1032. package/dist/esm/app/schema/oauth.d.ts.map +0 -1
  1033. package/dist/esm/app/schema/oauth.js +0 -18
  1034. package/dist/esm/app/schema/oidc.d.ts +0 -28
  1035. package/dist/esm/app/schema/oidc.d.ts.map +0 -1
  1036. package/dist/esm/app/schema/oidc.js +0 -10
  1037. package/dist/esm/app/schema/registration.d.ts +0 -22
  1038. package/dist/esm/app/schema/registration.d.ts.map +0 -1
  1039. package/dist/esm/app/schema/registration.js +0 -13
  1040. package/dist/esm/app/schema/saml.d.ts +0 -28
  1041. package/dist/esm/app/schema/saml.d.ts.map +0 -1
  1042. package/dist/esm/app/schema/saml.js +0 -10
  1043. package/dist/esm/app/schema/schema.d.ts +0 -8
  1044. package/dist/esm/app/schema/schema.d.ts.map +0 -1
  1045. package/dist/esm/app/schema/schema.js +0 -7
  1046. package/dist/esm/app/schema/utils.d.ts.map +0 -1
  1047. package/dist/esm/association/schema/association.d.ts +0 -82
  1048. package/dist/esm/association/schema/association.d.ts.map +0 -1
  1049. package/dist/esm/association/schema/association.js +0 -23
  1050. package/dist/esm/association/schema/schema.d.ts +0 -2
  1051. package/dist/esm/association/schema/schema.d.ts.map +0 -1
  1052. package/dist/esm/association/schema/schema.js +0 -1
  1053. package/dist/esm/authentication/schema/factors.d.ts +0 -48
  1054. package/dist/esm/authentication/schema/factors.d.ts.map +0 -1
  1055. package/dist/esm/authentication/schema/factors.js +0 -25
  1056. package/dist/esm/authentication/schema/factors.test.d.ts +0 -2
  1057. package/dist/esm/authentication/schema/factors.test.d.ts.map +0 -1
  1058. package/dist/esm/authentication/schema/factors.test.js +0 -121
  1059. package/dist/esm/authentication/schema/provider.d.ts +0 -27
  1060. package/dist/esm/authentication/schema/provider.d.ts.map +0 -1
  1061. package/dist/esm/authentication/schema/provider.js +0 -21
  1062. package/dist/esm/authentication/schema/schema.d.ts +0 -6
  1063. package/dist/esm/authentication/schema/schema.d.ts.map +0 -1
  1064. package/dist/esm/authentication/schema/schema.js +0 -5
  1065. package/dist/esm/authentication/schema/session.d.ts +0 -59
  1066. package/dist/esm/authentication/schema/session.d.ts.map +0 -1
  1067. package/dist/esm/authentication/schema/session.js +0 -43
  1068. package/dist/esm/authentication/schema/settings.d.ts +0 -46
  1069. package/dist/esm/authentication/schema/settings.d.ts.map +0 -1
  1070. package/dist/esm/authentication/schema/settings.js +0 -13
  1071. package/dist/esm/authentication/schema/strategy/base.d.ts +0 -54
  1072. package/dist/esm/authentication/schema/strategy/base.d.ts.map +0 -1
  1073. package/dist/esm/authentication/schema/strategy/base.js +0 -36
  1074. package/dist/esm/authentication/schema/strategy/schema.d.ts +0 -158
  1075. package/dist/esm/authentication/schema/strategy/schema.d.ts.map +0 -1
  1076. package/dist/esm/authentication/schema/strategy/types/email.d.ts +0 -44
  1077. package/dist/esm/authentication/schema/strategy/types/email.d.ts.map +0 -1
  1078. package/dist/esm/authentication/schema/strategy/types/email.js +0 -17
  1079. package/dist/esm/authentication/schema/strategy/types/password.d.ts +0 -99
  1080. package/dist/esm/authentication/schema/strategy/types/password.d.ts.map +0 -1
  1081. package/dist/esm/authentication/schema/strategy/types/password.js +0 -32
  1082. package/dist/esm/authentication/schema/strategy/types/totp.d.ts +0 -91
  1083. package/dist/esm/authentication/schema/strategy/types/totp.d.ts.map +0 -1
  1084. package/dist/esm/authentication/schema/strategy/types/totp.js +0 -45
  1085. package/dist/esm/authorization/utils.d.ts +0 -11
  1086. package/dist/esm/authorization/utils.d.ts.map +0 -1
  1087. package/dist/esm/authorization/utils.js +0 -15
  1088. package/dist/esm/customer/schema/organization.d.ts +0 -54
  1089. package/dist/esm/customer/schema/organization.d.ts.map +0 -1
  1090. package/dist/esm/customer/schema/organization.js +0 -37
  1091. package/dist/esm/customer/schema/schema.d.ts +0 -4
  1092. package/dist/esm/customer/schema/schema.d.ts.map +0 -1
  1093. package/dist/esm/customer/schema/schema.js +0 -3
  1094. package/dist/esm/customer/schema/utils.d.ts +0 -11
  1095. package/dist/esm/customer/schema/utils.d.ts.map +0 -1
  1096. package/dist/esm/customer/schema/utils.js +0 -15
  1097. package/dist/esm/identity/schema/schema.d.ts.map +0 -1
  1098. package/dist/esm/identity/schema/schema.js +0 -6
  1099. package/dist/esm/workspace/schema/authorization.d.ts +0 -31
  1100. package/dist/esm/workspace/schema/authorization.d.ts.map +0 -1
  1101. package/dist/esm/workspace/schema/authorization.js +0 -19
  1102. package/dist/esm/workspace/schema/branding.d.ts +0 -38
  1103. package/dist/esm/workspace/schema/branding.d.ts.map +0 -1
  1104. package/dist/esm/workspace/schema/branding.js +0 -22
  1105. package/dist/esm/workspace/schema/membership.d.ts +0 -25
  1106. package/dist/esm/workspace/schema/membership.d.ts.map +0 -1
  1107. package/dist/esm/workspace/schema/registration.d.ts +0 -28
  1108. package/dist/esm/workspace/schema/registration.d.ts.map +0 -1
  1109. package/dist/esm/workspace/schema/registration.js +0 -19
  1110. package/dist/esm/workspace/schema/schema.d.ts +0 -10
  1111. package/dist/esm/workspace/schema/schema.d.ts.map +0 -1
  1112. package/dist/esm/workspace/schema/schema.js +0 -9
  1113. package/dist/esm/workspace/schema/settings.d.ts +0 -23
  1114. package/dist/esm/workspace/schema/settings.d.ts.map +0 -1
  1115. package/dist/esm/workspace/schema/tenant.d.ts +0 -57
  1116. package/dist/esm/workspace/schema/tenant.d.ts.map +0 -1
  1117. package/dist/esm/workspace/schema/tenant.js +0 -23
  1118. package/dist/esm/workspace/schema/user-notification.d.ts +0 -62
  1119. package/dist/esm/workspace/schema/user-notification.d.ts.map +0 -1
  1120. package/dist/esm/workspace/schema/user-notification.js +0 -41
  1121. package/dist/esm/workspace/schema/user-preferences.d.ts +0 -26
  1122. package/dist/esm/workspace/schema/user-preferences.d.ts.map +0 -1
  1123. package/dist/esm/workspace/schema/user-preferences.js +0 -16
  1124. package/dist/esm/workspace/schema/utils.d.ts.map +0 -1
  1125. /package/dist/cjs/app/{schema/utils.d.ts → utils.d.ts} +0 -0
  1126. /package/dist/cjs/app/{schema/utils.js → utils.js} +0 -0
  1127. /package/dist/esm/app/{schema/utils.d.ts → utils.d.ts} +0 -0
  1128. /package/dist/esm/app/{schema/utils.js → utils.js} +0 -0
@@ -1,3 +1,4 @@
1
+ import { z } from 'zod';
1
2
  export declare const VerifiableAttribute: {
2
3
  readonly EMAIL: "email";
3
4
  readonly PHONE_NUMBER: "phoneNumber";
@@ -9,143 +10,146 @@ export declare const UserStatus: {
9
10
  readonly UNVERIFIED: "unverified";
10
11
  };
11
12
  export type AnyUserStatus = (typeof UserStatus)[keyof typeof UserStatus];
12
- export declare const UserNamePropertiesSchema: import("arktype/out/methods/object.js").ObjectType<{
13
- givenName?: string | undefined;
14
- middleName?: string | undefined;
15
- familyName?: string | undefined;
16
- honorificPrefix?: string | undefined;
17
- honorificSuffix?: string | undefined;
18
- }, {}>;
19
- export type UserNameProperties = typeof UserNamePropertiesSchema.inferOut;
20
- export declare const UpsertUserNamePropertiesSchema: import("arktype/out/methods/object.js").ObjectType<{
21
- givenName?: string | null | undefined;
22
- middleName?: string | null | undefined;
23
- familyName?: string | null | undefined;
24
- honorificPrefix?: string | null | undefined;
25
- honorificSuffix?: string | null | undefined;
26
- }, {}>;
27
- export declare const UserIdSchema: import("arktype/out/methods/string.js").StringType<string, {}>;
28
- export type UserId = typeof UserIdSchema.inferOut;
29
- export declare const UserIdPropertySchema: import("arktype/out/methods/object.js").ObjectType<{
30
- id: string;
31
- }, {}>;
32
- export type UserIdProperty = typeof UserIdPropertySchema.inferOut;
33
- export declare const RequiredEmailSchema: import("arktype/out/methods/string.js").StringType<string, {}>;
34
- export declare const RequiredPhoneNumberSchema: import("arktype/out/methods/string.js").StringType<string, {}>;
35
- export declare const VerifiedEmailOrPhonePropertiesSchema: import("arktype/out/methods/object.js").ObjectType<{
36
- email?: ((In: string | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
37
- verifiedEmail?: boolean | undefined;
38
- phoneNumber?: string | undefined;
39
- verifiedPhoneNumber?: boolean | undefined;
40
- }, {}>;
41
- export declare const EmailOrPhonePropertiesSchema: import("arktype/out/methods/object.js").ObjectType<{
42
- email?: ((In: string | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
43
- phoneNumber?: string | undefined;
44
- }, {}>;
45
- export declare const UserAssociationsSchema: import("arktype/out/methods/object.js").ObjectType<{
46
- roles?: string[] | undefined;
47
- }, {}>;
48
- export type UserAssociations = typeof UserAssociationsSchema.inferOut;
49
- export declare const UserSchema: import("arktype/out/methods/object.js").ObjectType<{
50
- id: string;
51
- givenName?: string | undefined;
52
- middleName?: string | undefined;
53
- familyName?: string | undefined;
54
- honorificPrefix?: string | undefined;
55
- honorificSuffix?: string | undefined;
56
- email?: ((In: string | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
57
- verifiedEmail?: boolean | undefined;
58
- phoneNumber?: string | undefined;
59
- verifiedPhoneNumber?: boolean | undefined;
60
- status: "active" | "suspended" | "unverified";
61
- roles?: {
62
- ids?: string[] | undefined;
63
- count?: number | undefined;
64
- } | undefined;
65
- createdAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
66
- updatedAt: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>);
67
- lastLogin?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
68
- deletedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
69
- deactivatedAt?: Date | ((In: string) => import("arktype/out/attributes.js").To<Date>) | undefined;
70
- metadata: (In: import("arktype/out/attributes.js").Default<unknown, Map<string, string | number | boolean>>) => import("arktype/out/attributes.js").Out<Map<string, string | number | boolean> | Map<string, any>>;
71
- }, {}>;
72
- export type UserProperties = typeof UserSchema.inferIn;
73
- export type User = typeof UserSchema.inferOut;
74
- export declare const UserPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
75
- id: string;
76
- givenName?: string | undefined;
77
- middleName?: string | undefined;
78
- familyName?: string | undefined;
79
- honorificPrefix?: string | undefined;
80
- honorificSuffix?: string | undefined;
81
- email?: ((In: string | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
82
- verifiedEmail?: boolean | undefined;
83
- phoneNumber?: string | undefined;
84
- verifiedPhoneNumber?: boolean | undefined;
85
- status: "active" | "suspended" | "unverified";
86
- roles?: {
87
- ids?: string[] | undefined;
88
- count?: number | undefined;
89
- } | undefined;
90
- createdAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
91
- updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
92
- lastLogin?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
93
- deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
94
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
95
- metadata?: ((In: {
96
- [x: string]: string | number | boolean;
97
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
98
- [x: string]: string | number | boolean;
99
- } | undefined>) | undefined;
100
- }, {}>;
101
- export type UserPayload = typeof UserPayloadSchema.inferOut;
102
- export declare const InsertUserPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
103
- id: import("arktype/out/attributes.js").Default<string, string>;
104
- suspended?: boolean | undefined;
105
- givenName?: string | undefined;
106
- middleName?: string | undefined;
107
- familyName?: string | undefined;
108
- honorificPrefix?: string | undefined;
109
- honorificSuffix?: string | undefined;
110
- email?: ((In: string | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
111
- verifiedEmail?: boolean | undefined;
112
- phoneNumber?: string | undefined;
113
- verifiedPhoneNumber?: boolean | undefined;
114
- roles?: string[] | undefined;
115
- metadata?: ((In: {
116
- [x: string]: string | number | boolean;
117
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
118
- [x: string]: string | number | boolean;
119
- } | null>) | undefined;
120
- }, {}>;
121
- export type InsertUserInput = typeof InsertUserPayloadSchema.inferIn;
122
- export type InsertUserPayload = typeof InsertUserPayloadSchema.inferOut;
123
- export declare const UpdateUserPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
124
- suspended?: boolean | undefined;
125
- givenName?: string | null | undefined;
126
- middleName?: string | null | undefined;
127
- familyName?: string | null | undefined;
128
- honorificPrefix?: string | null | undefined;
129
- honorificSuffix?: string | null | undefined;
130
- metadata?: ((In: {
131
- [x: string]: string | number | boolean;
132
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
133
- [x: string]: string | number | boolean;
134
- } | null>) | undefined;
135
- }, {}>;
136
- export type UpdateUserInput = typeof UpdateUserPayloadSchema.inferIn;
137
- export type UpdateUserPayload = typeof UpdateUserPayloadSchema.inferOut;
138
- export declare const UserAssociationReferenceSchema: import("arktype/out/methods/object.js").ObjectType<{
139
- id: string;
140
- givenName?: string | undefined;
141
- middleName?: string | undefined;
142
- familyName?: string | undefined;
143
- honorificPrefix?: string | undefined;
144
- honorificSuffix?: string | undefined;
145
- email?: ((In: string | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
146
- phoneNumber?: string | undefined;
147
- status: "active" | "suspended" | "unverified";
148
- model: "User";
149
- }, {}>;
150
- export type UserAssociationReference = typeof UserAssociationReferenceSchema.inferOut;
13
+ export declare const UserNamePropertiesSchema: z.ZodObject<{
14
+ givenName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
15
+ middleName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
16
+ familyName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
17
+ honorificPrefix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
18
+ honorificSuffix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
19
+ }, z.core.$strip>;
20
+ export declare const UpdateUserNamePropertiesSchema: z.ZodObject<{
21
+ givenName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
22
+ middleName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
23
+ familyName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
24
+ honorificPrefix: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
25
+ honorificSuffix: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
26
+ }, z.core.$strip>;
27
+ export declare const UserIdPropertySchema: z.ZodObject<{
28
+ id: z.ZodString;
29
+ }, z.core.$strip>;
30
+ export type UserIdProperty = z.output<typeof UserIdPropertySchema>;
31
+ export declare const RequiredEmailSchema: z.ZodEmail;
32
+ export declare const RequiredPhoneNumberSchema: z.ZodString;
33
+ export declare const VerifiedEmailOrPhonePropertiesSchema: z.ZodObject<{
34
+ email: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
35
+ verifiedEmail: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<boolean | undefined, boolean | null | undefined>>>;
36
+ phoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
37
+ verifiedPhoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<boolean | undefined, boolean | null | undefined>>>;
38
+ }, z.core.$strip>;
39
+ export declare const EmailOrPhonePropertiesSchema: z.ZodObject<{
40
+ email: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
41
+ phoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
42
+ }, z.core.$strip>;
43
+ export declare const UserAssociationsSchema: z.ZodObject<{
44
+ roles: z.ZodOptional<z.ZodUnion<readonly [z.ZodUndefined, z.ZodArray<z.ZodString>]>>;
45
+ }, z.core.$strip>;
46
+ export type UserAssociations = z.output<typeof UserAssociationsSchema>;
47
+ export declare const UserSchema: z.ZodObject<{
48
+ metadata: z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Map<string, string | number | boolean>, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>;
49
+ lastLogin: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>>;
50
+ createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
51
+ updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
52
+ deletedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>>;
53
+ deactivatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>>;
54
+ status: z.ZodEnum<{
55
+ active: "active";
56
+ suspended: "suspended";
57
+ unverified: "unverified";
58
+ }>;
59
+ roles: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
60
+ ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
61
+ count: z.ZodOptional<z.ZodNumber>;
62
+ }, z.core.$strip>, z.ZodUndefined]>>;
63
+ email: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
64
+ verifiedEmail: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<boolean | undefined, boolean | null | undefined>>>;
65
+ phoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
66
+ verifiedPhoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<boolean | undefined, boolean | null | undefined>>>;
67
+ givenName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
68
+ middleName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
69
+ familyName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
70
+ honorificPrefix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
71
+ honorificSuffix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
72
+ id: z.ZodString;
73
+ }, z.core.$strip>;
74
+ export type UserProperties = z.input<typeof UserSchema>;
75
+ export type User = z.output<typeof UserSchema>;
76
+ export declare const UserPayloadSchema: z.ZodObject<{
77
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Record<string, string | number | boolean> | undefined, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>;
78
+ lastLogin: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
79
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
80
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
81
+ deletedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
82
+ deactivatedAt: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>, z.ZodTransform<string | undefined, Date | undefined>>>;
83
+ status: z.ZodEnum<{
84
+ active: "active";
85
+ suspended: "suspended";
86
+ unverified: "unverified";
87
+ }>;
88
+ roles: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
89
+ ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
90
+ count: z.ZodOptional<z.ZodNumber>;
91
+ }, z.core.$strip>, z.ZodUndefined]>>;
92
+ email: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
93
+ verifiedEmail: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<boolean | undefined, boolean | null | undefined>>>;
94
+ phoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
95
+ verifiedPhoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<boolean | undefined, boolean | null | undefined>>>;
96
+ givenName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
97
+ middleName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
98
+ familyName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
99
+ honorificPrefix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
100
+ honorificSuffix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
101
+ id: z.ZodString;
102
+ }, z.core.$strip>;
103
+ export type UserPayload = z.output<typeof UserPayloadSchema>;
104
+ export declare const InsertUserPayloadSchema: z.ZodObject<{
105
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Record<string, string | number | boolean> | null | undefined, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>;
106
+ roles: z.ZodOptional<z.ZodUnion<readonly [z.ZodUndefined, z.ZodArray<z.ZodString>]>>;
107
+ email: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
108
+ verifiedEmail: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<boolean | undefined, boolean | null | undefined>>>;
109
+ phoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
110
+ verifiedPhoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<boolean | undefined, boolean | null | undefined>>>;
111
+ givenName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
112
+ middleName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
113
+ familyName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
114
+ honorificPrefix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
115
+ honorificSuffix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
116
+ id: z.ZodOptional<z.ZodString>;
117
+ }, z.core.$strip>;
118
+ export type InsertUserInput = z.input<typeof InsertUserPayloadSchema>;
119
+ export type InsertUserPayload = z.output<typeof InsertUserPayloadSchema>;
120
+ export declare const UpdateUserPayloadSchema: z.ZodObject<{
121
+ metadata: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodCustom<Map<string, string | number | boolean>, Map<string, string | number | boolean>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<Record<string, string | number | boolean> | null | undefined, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>;
122
+ email: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
123
+ verifiedEmail: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<boolean | undefined, boolean | null | undefined>>>;
124
+ phoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
125
+ verifiedPhoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<boolean | undefined, boolean | null | undefined>>>;
126
+ givenName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
127
+ middleName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
128
+ familyName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
129
+ honorificPrefix: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
130
+ honorificSuffix: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
131
+ suspended: z.ZodOptional<z.ZodBoolean>;
132
+ }, z.core.$strip>;
133
+ export type UpdateUserInput = z.input<typeof UpdateUserPayloadSchema>;
134
+ export type UpdateUserPayload = z.output<typeof UpdateUserPayloadSchema>;
135
+ /**
136
+ * Association
137
+ */
138
+ export declare const UserAssociationReferenceSchema: z.ZodObject<{
139
+ status: z.ZodDefault<z.ZodEnum<{
140
+ active: "active";
141
+ suspended: "suspended";
142
+ unverified: "unverified";
143
+ }>>;
144
+ model: z.ZodLiteral<"User">;
145
+ email: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
146
+ phoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
147
+ givenName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
148
+ middleName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
149
+ familyName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
150
+ honorificPrefix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
151
+ honorificSuffix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
152
+ id: z.ZodString;
153
+ }, z.core.$strip>;
154
+ export type UserAssociationReference = z.output<typeof UserAssociationReferenceSchema>;
151
155
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/customer/users/schema.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,eAAO,MAAM,UAAU;;;;CAIb,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAQzE,eAAO,MAAM,wBAAwB;;;;;;MAMnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,wBAAwB,CAAC,QAAQ,CAAC;AAE1E,eAAO,MAAM,8BAA8B;;;;;;MAMzC,CAAC;AAEH,eAAO,MAAM,YAAY,gEAAc,CAAC;AACxC,MAAM,MAAM,MAAM,GAAG,OAAO,YAAY,CAAC,QAAQ,CAAC;AAElD,eAAO,MAAM,oBAAoB;;MAE/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,oBAAoB,CAAC,QAAQ,CAAC;AAElE,eAAO,MAAM,mBAAmB,gEAAuB,CAAC;AACxD,eAAO,MAAM,yBAAyB,gEAAiB,CAAC;AAOxD,eAAO,MAAM,oCAAoC;;;;;MAK/C,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;MAGvC,CAAC;AAIH,eAAO,MAAM,sBAAsB;;MAEjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,sBAAsB,CAAC,QAAQ,CAAC;AAStE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;MAMU,CAAC;AAClC,MAAM,MAAM,cAAc,GAAG,OAAO,UAAU,CAAC,OAAO,CAAC;AACvD,MAAM,MAAM,IAAI,GAAG,OAAO,UAAU,CAAC,QAAQ,CAAC;AAE9C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;MAMO,CAAC;AACtC,MAAM,MAAM,WAAW,GAAG,OAAO,iBAAiB,CAAC,QAAQ,CAAC;AAE5D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;MAOO,CAAC;AAC5C,MAAM,MAAM,eAAe,GAAG,OAAO,uBAAuB,CAAC,OAAO,CAAC;AACrE,MAAM,MAAM,iBAAiB,GAAG,OAAO,uBAAuB,CAAC,QAAQ,CAAC;AAExE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;MAIO,CAAC;AAC5C,MAAM,MAAM,eAAe,GAAG,OAAO,uBAAuB,CAAC,OAAO,CAAC;AACrE,MAAM,MAAM,iBAAiB,GAAG,OAAO,uBAAuB,CAAC,QAAQ,CAAC;AAExE,eAAO,MAAM,8BAA8B;;;;;;;;;;;MAS1C,CAAC;AACF,MAAM,MAAM,wBAAwB,GAClC,OAAO,8BAA8B,CAAC,QAAQ,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/customer/users/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAEjE,eAAO,MAAM,UAAU;;;;CAIb,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAQzE,eAAO,MAAM,wBAAwB;;;;;;iBAMnC,CAAC;AAGH,eAAO,MAAM,8BAA8B;;;;;;iBAMzC,CAAC;AAGH,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEnE,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,yBAAyB,aAAa,CAAC;AAEpD,eAAO,MAAM,oCAAoC;;;;;iBAK/C,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;iBAGvC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;iBAEjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAUvE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQrB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AACxD,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAE/C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQ5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE7D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;iBAMlC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;iBAKlC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;iBAMzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,8BAA8B,CACtC,CAAC"}
@@ -1,11 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserAssociationReferenceSchema = exports.UpdateUserPayloadSchema = exports.InsertUserPayloadSchema = exports.UserPayloadSchema = exports.UserSchema = exports.UserAssociationsSchema = exports.EmailOrPhonePropertiesSchema = exports.VerifiedEmailOrPhonePropertiesSchema = exports.RequiredPhoneNumberSchema = exports.RequiredEmailSchema = exports.UserIdPropertySchema = exports.UserIdSchema = exports.UpsertUserNamePropertiesSchema = exports.UserNamePropertiesSchema = exports.UserStatus = exports.VerifiableAttribute = void 0;
4
- const arktype_1 = require("arktype");
3
+ exports.UserAssociationReferenceSchema = exports.UpdateUserPayloadSchema = exports.InsertUserPayloadSchema = exports.UserPayloadSchema = exports.UserSchema = exports.UserAssociationsSchema = exports.EmailOrPhonePropertiesSchema = exports.VerifiedEmailOrPhonePropertiesSchema = exports.RequiredPhoneNumberSchema = exports.RequiredEmailSchema = exports.UserIdPropertySchema = exports.UpdateUserNamePropertiesSchema = exports.UserNamePropertiesSchema = exports.UserStatus = exports.VerifiableAttribute = void 0;
4
+ const zod_1 = require("zod");
5
+ const schema_js_1 = require("../../authorization/schema.js");
5
6
  const aggregate_js_1 = require("../../common/schema/aggregate.js");
6
7
  const dates_js_1 = require("../../common/schema/dates.js");
7
8
  const metadata_js_1 = require("../../common/schema/metadata.js");
8
- const utils_js_1 = require("../schema/utils.js");
9
+ const schema_js_2 = require("../../common/schema/schema.js");
10
+ const schema_js_3 = require("../schema.js");
9
11
  exports.VerifiableAttribute = {
10
12
  EMAIL: 'email',
11
13
  PHONE_NUMBER: 'phoneNumber',
@@ -15,77 +17,90 @@ exports.UserStatus = {
15
17
  SUSPENDED: 'suspended',
16
18
  UNVERIFIED: 'unverified',
17
19
  };
18
- const UserStatusSchema = arktype_1.type.enumerated(exports.UserStatus.ACTIVE, exports.UserStatus.SUSPENDED, exports.UserStatus.UNVERIFIED);
19
- exports.UserNamePropertiesSchema = (0, arktype_1.type)({
20
- givenName: (0, arktype_1.type)('string | undefined').or('undefined').optional(),
21
- middleName: (0, arktype_1.type)('string | undefined').optional(),
22
- familyName: (0, arktype_1.type)('string | undefined').optional(),
23
- honorificPrefix: (0, arktype_1.type)('string | undefined').optional(),
24
- honorificSuffix: (0, arktype_1.type)('string | undefined').optional(),
20
+ const UserStatusSchema = zod_1.z.enum([
21
+ exports.UserStatus.ACTIVE,
22
+ exports.UserStatus.SUSPENDED,
23
+ exports.UserStatus.UNVERIFIED,
24
+ ]);
25
+ exports.UserNamePropertiesSchema = zod_1.z.object({
26
+ givenName: (0, schema_js_2.optionallyNullishToUndefined)(zod_1.z.string()),
27
+ middleName: (0, schema_js_2.optionallyNullishToUndefined)(zod_1.z.string()),
28
+ familyName: (0, schema_js_2.optionallyNullishToUndefined)(zod_1.z.string()),
29
+ honorificPrefix: (0, schema_js_2.optionallyNullishToUndefined)(zod_1.z.string()),
30
+ honorificSuffix: (0, schema_js_2.optionallyNullishToUndefined)(zod_1.z.string()),
25
31
  });
26
- exports.UpsertUserNamePropertiesSchema = (0, arktype_1.type)({
27
- givenName: (0, arktype_1.type)('string | undefined | null').optional(),
28
- middleName: (0, arktype_1.type)('string | undefined | null').optional(),
29
- familyName: (0, arktype_1.type)('string | undefined | null').optional(),
30
- honorificPrefix: (0, arktype_1.type)('string | undefined | null').optional(),
31
- honorificSuffix: (0, arktype_1.type)('string | undefined | null').optional(),
32
+ // export type UserNameProperties = typeof UserNamePropertiesSchema.inferOut;
33
+ exports.UpdateUserNamePropertiesSchema = zod_1.z.object({
34
+ givenName: (0, schema_js_2.optionallyNullish)(zod_1.z.string()),
35
+ middleName: (0, schema_js_2.optionallyNullish)(zod_1.z.string()),
36
+ familyName: (0, schema_js_2.optionallyNullish)(zod_1.z.string()),
37
+ honorificPrefix: (0, schema_js_2.optionallyNullish)(zod_1.z.string()),
38
+ honorificSuffix: (0, schema_js_2.optionallyNullish)(zod_1.z.string()),
32
39
  });
33
- exports.UserIdSchema = arktype_1.type.string;
34
- exports.UserIdPropertySchema = (0, arktype_1.type)({
35
- id: exports.UserIdSchema,
40
+ // type UpsertUserNameProperties = typeof UpdateUserNamePropertiesSchema.inferOut;
41
+ exports.UserIdPropertySchema = zod_1.z.object({
42
+ id: schema_js_3.UserIdSchema,
36
43
  });
37
- exports.RequiredEmailSchema = (0, arktype_1.type)('string.email');
38
- exports.RequiredPhoneNumberSchema = (0, arktype_1.type)('string');
39
- const EmailSchema = exports.RequiredEmailSchema.or('undefined').pipe((v) => v != null ? v : undefined);
40
- const PhoneNumberSchema = exports.RequiredPhoneNumberSchema.or('undefined');
41
- exports.VerifiedEmailOrPhonePropertiesSchema = (0, arktype_1.type)({
42
- email: EmailSchema.optional(),
43
- verifiedEmail: (0, arktype_1.type)('boolean').or('undefined').optional(),
44
- phoneNumber: PhoneNumberSchema.optional(),
45
- verifiedPhoneNumber: (0, arktype_1.type)('boolean').or('undefined').optional(),
44
+ exports.RequiredEmailSchema = zod_1.z.email();
45
+ exports.RequiredPhoneNumberSchema = zod_1.z.string();
46
+ exports.VerifiedEmailOrPhonePropertiesSchema = zod_1.z.object({
47
+ email: (0, schema_js_2.optionallyNullishToUndefined)(exports.RequiredEmailSchema),
48
+ verifiedEmail: (0, schema_js_2.optionallyNullishToUndefined)(zod_1.z.boolean()),
49
+ phoneNumber: (0, schema_js_2.optionallyNullishToUndefined)(exports.RequiredPhoneNumberSchema),
50
+ verifiedPhoneNumber: (0, schema_js_2.optionallyNullishToUndefined)(zod_1.z.boolean()),
46
51
  });
47
- exports.EmailOrPhonePropertiesSchema = (0, arktype_1.type)({
48
- email: EmailSchema.optional(),
49
- phoneNumber: PhoneNumberSchema.optional(),
52
+ exports.EmailOrPhonePropertiesSchema = zod_1.z.object({
53
+ email: (0, schema_js_2.optionallyNullishToUndefined)(exports.RequiredEmailSchema),
54
+ phoneNumber: (0, schema_js_2.optionallyNullishToUndefined)(exports.RequiredPhoneNumberSchema),
50
55
  });
51
- const UserRoleAssociationSchema = (0, arktype_1.type)('string[] | undefined');
52
- exports.UserAssociationsSchema = (0, arktype_1.type)({
53
- roles: UserRoleAssociationSchema.optional(),
56
+ exports.UserAssociationsSchema = zod_1.z.object({
57
+ roles: schema_js_1.RoleIdAssociationsSchema.optional(),
54
58
  });
55
- const BaseSchema = exports.UserIdPropertySchema.and(exports.UserNamePropertiesSchema)
56
- .and(exports.VerifiedEmailOrPhonePropertiesSchema)
57
- .and({
59
+ const BaseSchema = zod_1.z.object({
60
+ ...exports.UserIdPropertySchema.shape,
61
+ ...exports.UserNamePropertiesSchema.shape,
62
+ ...exports.VerifiedEmailOrPhonePropertiesSchema.shape,
58
63
  status: UserStatusSchema,
59
- roles: aggregate_js_1.AggregateSchema.or(arktype_1.type.undefined).optional(),
64
+ roles: (0, schema_js_2.optionallyUndefined)(aggregate_js_1.AggregateSchema),
60
65
  });
61
- exports.UserSchema = BaseSchema.and({
66
+ exports.UserSchema = zod_1.z.object({
67
+ ...BaseSchema.shape,
62
68
  lastLogin: dates_js_1.OptionalDateSchema.optional(),
63
69
  createdAt: dates_js_1.RequiredDateSchema,
64
70
  updatedAt: dates_js_1.RequiredDateSchema,
65
- 'deletedAt?': dates_js_1.OptionalDateSchema,
66
- 'deactivatedAt?': dates_js_1.OptionalDateSchema,
67
- }).and(metadata_js_1.MetadataMapPropertySchema);
68
- exports.UserPayloadSchema = BaseSchema.and({
71
+ deletedAt: dates_js_1.OptionalDateSchema.optional(),
72
+ deactivatedAt: dates_js_1.OptionalDateSchema.optional(),
73
+ ...metadata_js_1.MetadataMapPropertySchema.shape,
74
+ });
75
+ exports.UserPayloadSchema = zod_1.z.object({
76
+ ...BaseSchema.shape,
69
77
  lastLogin: dates_js_1.OptionalDatePayloadSchema.optional(),
70
78
  createdAt: dates_js_1.RequiredDatePayloadSchema,
71
79
  updatedAt: dates_js_1.RequiredDatePayloadSchema,
72
- 'deletedAt?': dates_js_1.OptionalDatePayloadSchema,
73
- 'deactivatedAt?': dates_js_1.OptionalDatePayloadSchema,
74
- }).and(metadata_js_1.MetadataPayloadPropertySchema);
75
- exports.InsertUserPayloadSchema = (0, arktype_1.type)({
76
- suspended: arktype_1.type.boolean.optional(),
77
- id: exports.UserIdSchema.default(() => (0, utils_js_1.generateUserId)()),
78
- })
79
- .and(exports.UserNamePropertiesSchema)
80
- .and(exports.VerifiedEmailOrPhonePropertiesSchema)
81
- .and(exports.UserAssociationsSchema)
82
- .and(metadata_js_1.UpsertMetadataPayloadPropertySchema);
83
- exports.UpdateUserPayloadSchema = (0, arktype_1.type)({
84
- suspended: arktype_1.type.boolean.optional(),
85
- })
86
- .and(exports.UpsertUserNamePropertiesSchema)
87
- .and(metadata_js_1.UpsertMetadataPayloadPropertySchema);
88
- exports.UserAssociationReferenceSchema = exports.UserIdPropertySchema.and(exports.UserNamePropertiesSchema).and(exports.EmailOrPhonePropertiesSchema.and((0, arktype_1.type)({
89
- status: UserStatusSchema,
90
- model: "'User'",
91
- })));
80
+ deletedAt: dates_js_1.OptionalDatePayloadSchema.optional(),
81
+ deactivatedAt: dates_js_1.OptionalDatePayloadSchema.optional(),
82
+ ...metadata_js_1.MetadataPayloadPropertySchema.shape,
83
+ });
84
+ exports.InsertUserPayloadSchema = zod_1.z.object({
85
+ id: schema_js_3.UserIdSchema.optional(),
86
+ ...exports.UserNamePropertiesSchema.shape,
87
+ ...exports.VerifiedEmailOrPhonePropertiesSchema.shape,
88
+ ...exports.UserAssociationsSchema.shape,
89
+ ...metadata_js_1.UpsertMetadataPropertyPayloadSchema.shape,
90
+ });
91
+ exports.UpdateUserPayloadSchema = zod_1.z.object({
92
+ suspended: zod_1.z.boolean().optional(),
93
+ ...exports.UpdateUserNamePropertiesSchema.shape,
94
+ ...exports.VerifiedEmailOrPhonePropertiesSchema.shape,
95
+ ...metadata_js_1.UpsertMetadataPropertyPayloadSchema.shape,
96
+ });
97
+ /**
98
+ * Association
99
+ */
100
+ exports.UserAssociationReferenceSchema = zod_1.z.object({
101
+ ...exports.UserIdPropertySchema.shape,
102
+ ...exports.UserNamePropertiesSchema.shape,
103
+ ...exports.EmailOrPhonePropertiesSchema.shape,
104
+ status: UserStatusSchema.default('unverified'),
105
+ model: zod_1.z.literal('User'),
106
+ });