@go-mondo/identity-sdk 0.0.2-beta.7 → 0.0.2-beta.71

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 (876) hide show
  1. package/.github/workflows/release.yaml +1 -1
  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 +450 -0
  6. package/README.md +3 -1
  7. package/dist/cjs/action/schema/base.d.ts +21 -21
  8. package/dist/cjs/action/schema/base.d.ts.map +1 -1
  9. package/dist/cjs/action/schema/base.js +51 -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 +137 -0
  13. package/dist/cjs/action/schema/operations/sign-up-verification.d.ts +21 -21
  14. package/dist/cjs/action/schema/operations/sign-up-verification.d.ts.map +1 -1
  15. package/dist/cjs/action/schema/operations/sign-up-verification.js +42 -8
  16. package/dist/cjs/action/schema/operations/sign-up-verification.test.d.ts +2 -0
  17. package/dist/cjs/action/schema/operations/sign-up-verification.test.d.ts.map +1 -0
  18. package/dist/cjs/action/schema/operations/sign-up-verification.test.js +140 -0
  19. package/dist/cjs/action/schema/operations/sign-up.d.ts +40 -43
  20. package/dist/cjs/action/schema/operations/sign-up.d.ts.map +1 -1
  21. package/dist/cjs/action/schema/operations/sign-up.js +57 -15
  22. package/dist/cjs/action/schema/operations/sign-up.test.d.ts +2 -0
  23. package/dist/cjs/action/schema/operations/sign-up.test.d.ts.map +1 -0
  24. package/dist/cjs/action/schema/operations/sign-up.test.js +173 -0
  25. package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts +19 -19
  26. package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts.map +1 -1
  27. package/dist/cjs/action/schema/operations/user-attribute-verification.js +40 -6
  28. package/dist/cjs/action/schema/operations/user-attribute-verification.test.d.ts +2 -0
  29. package/dist/cjs/action/schema/operations/user-attribute-verification.test.d.ts.map +1 -0
  30. package/dist/cjs/action/schema/operations/user-attribute-verification.test.js +128 -0
  31. package/dist/cjs/action/schema/schema.d.ts +49 -77
  32. package/dist/cjs/action/schema/schema.d.ts.map +1 -1
  33. package/dist/cjs/action/schema/schema.js +7 -5
  34. package/dist/cjs/action/schema/schema.test.d.ts +2 -0
  35. package/dist/cjs/action/schema/schema.test.d.ts.map +1 -0
  36. package/dist/cjs/action/schema/schema.test.js +164 -0
  37. package/dist/cjs/action/schema/utils.d.ts +7 -0
  38. package/dist/cjs/action/schema/utils.d.ts.map +1 -0
  39. package/dist/cjs/action/schema/utils.js +16 -0
  40. package/dist/cjs/action/schema/utils.test.d.ts +2 -0
  41. package/dist/cjs/action/schema/utils.test.d.ts.map +1 -0
  42. package/dist/cjs/action/schema/utils.test.js +26 -0
  43. package/dist/cjs/activity/resources.d.ts.map +1 -1
  44. package/dist/cjs/activity/resources.js +1 -1
  45. package/dist/cjs/activity/resources.test.d.ts +2 -0
  46. package/dist/cjs/activity/resources.test.d.ts.map +1 -0
  47. package/dist/cjs/activity/resources.test.js +224 -0
  48. package/dist/cjs/activity/schema/base.d.ts +88 -69
  49. package/dist/cjs/activity/schema/base.d.ts.map +1 -1
  50. package/dist/cjs/activity/schema/base.js +74 -28
  51. package/dist/cjs/activity/schema/base.test.d.ts +2 -0
  52. package/dist/cjs/activity/schema/base.test.d.ts.map +1 -0
  53. package/dist/cjs/activity/schema/base.test.js +269 -0
  54. package/dist/cjs/activity/schema/schema.d.ts +293 -226
  55. package/dist/cjs/activity/schema/schema.d.ts.map +1 -1
  56. package/dist/cjs/activity/schema/schema.test.d.ts +2 -0
  57. package/dist/cjs/activity/schema/schema.test.d.ts.map +1 -0
  58. package/dist/cjs/activity/schema/schema.test.js +343 -0
  59. package/dist/cjs/activity/schema/types/authentication.d.ts +64 -46
  60. package/dist/cjs/activity/schema/types/authentication.d.ts.map +1 -1
  61. package/dist/cjs/activity/schema/types/authentication.js +50 -8
  62. package/dist/cjs/activity/schema/types/authentication.test.d.ts +2 -0
  63. package/dist/cjs/activity/schema/types/authentication.test.d.ts.map +1 -0
  64. package/dist/cjs/activity/schema/types/authentication.test.js +302 -0
  65. package/dist/cjs/activity/schema/types/authorization.d.ts +64 -46
  66. package/dist/cjs/activity/schema/types/authorization.d.ts.map +1 -1
  67. package/dist/cjs/activity/schema/types/authorization.js +50 -8
  68. package/dist/cjs/activity/schema/types/authorization.test.d.ts +2 -0
  69. package/dist/cjs/activity/schema/types/authorization.test.d.ts.map +1 -0
  70. package/dist/cjs/activity/schema/types/authorization.test.js +340 -0
  71. package/dist/cjs/activity/schema/types/note.d.ts +83 -70
  72. package/dist/cjs/activity/schema/types/note.d.ts.map +1 -1
  73. package/dist/cjs/activity/schema/types/note.js +53 -12
  74. package/dist/cjs/activity/schema/types/note.test.d.ts +2 -0
  75. package/dist/cjs/activity/schema/types/note.test.d.ts.map +1 -0
  76. package/dist/cjs/activity/schema/types/note.test.js +318 -0
  77. package/dist/cjs/activity/schema/types/operation.d.ts +64 -45
  78. package/dist/cjs/activity/schema/types/operation.d.ts.map +1 -1
  79. package/dist/cjs/activity/schema/types/operation.js +52 -8
  80. package/dist/cjs/activity/schema/types/operation.test.d.ts +2 -0
  81. package/dist/cjs/activity/schema/types/operation.test.d.ts.map +1 -0
  82. package/dist/cjs/activity/schema/types/operation.test.js +343 -0
  83. package/dist/cjs/activity/schema/types/unknown.d.ts +50 -41
  84. package/dist/cjs/activity/schema/types/unknown.d.ts.map +1 -1
  85. package/dist/cjs/activity/schema/types/unknown.js +45 -6
  86. package/dist/cjs/activity/schema/types/unknown.test.d.ts +2 -0
  87. package/dist/cjs/activity/schema/types/unknown.test.d.ts.map +1 -0
  88. package/dist/cjs/activity/schema/types/unknown.test.js +274 -0
  89. package/dist/cjs/activity/schema/utils.test.d.ts +2 -0
  90. package/dist/cjs/activity/schema/utils.test.d.ts.map +1 -0
  91. package/dist/cjs/activity/schema/utils.test.js +26 -0
  92. package/dist/cjs/app/authorization/resources.d.ts.map +1 -1
  93. package/dist/cjs/app/authorization/resources.js +2 -6
  94. package/dist/cjs/app/authorization/schema.d.ts +99 -52
  95. package/dist/cjs/app/authorization/schema.d.ts.map +1 -1
  96. package/dist/cjs/app/authorization/schema.js +89 -53
  97. package/dist/cjs/app/authorization/schema.test.d.ts +2 -0
  98. package/dist/cjs/app/authorization/schema.test.d.ts.map +1 -0
  99. package/dist/cjs/app/authorization/schema.test.js +378 -0
  100. package/dist/cjs/app/oauth/resources.d.ts.map +1 -1
  101. package/dist/cjs/app/oauth/resources.js +2 -3
  102. package/dist/cjs/app/oauth/schema.d.ts +34 -41
  103. package/dist/cjs/app/oauth/schema.d.ts.map +1 -1
  104. package/dist/cjs/app/oauth/schema.js +58 -18
  105. package/dist/cjs/app/oauth/schema.test.d.ts +2 -0
  106. package/dist/cjs/app/oauth/schema.test.d.ts.map +1 -0
  107. package/dist/cjs/app/oauth/schema.test.js +172 -0
  108. package/dist/cjs/app/oidc/resources.d.ts.map +1 -1
  109. package/dist/cjs/app/oidc/resources.js +4 -5
  110. package/dist/cjs/app/oidc/schema.d.ts +26 -37
  111. package/dist/cjs/app/oidc/schema.d.ts.map +1 -1
  112. package/dist/cjs/app/oidc/schema.js +49 -12
  113. package/dist/cjs/app/oidc/schema.test.d.ts +2 -0
  114. package/dist/cjs/app/oidc/schema.test.d.ts.map +1 -0
  115. package/dist/cjs/app/oidc/schema.test.js +114 -0
  116. package/dist/cjs/app/registration/resources.d.ts.map +1 -1
  117. package/dist/cjs/app/registration/resources.js +2 -3
  118. package/dist/cjs/app/registration/resources.test.d.ts +2 -0
  119. package/dist/cjs/app/registration/resources.test.d.ts.map +1 -0
  120. package/dist/cjs/app/registration/resources.test.js +295 -0
  121. package/dist/cjs/app/registration/schema.d.ts +24 -31
  122. package/dist/cjs/app/registration/schema.d.ts.map +1 -1
  123. package/dist/cjs/app/registration/schema.js +56 -16
  124. package/dist/cjs/app/registration/schema.test.d.ts +2 -0
  125. package/dist/cjs/app/registration/schema.test.d.ts.map +1 -0
  126. package/dist/cjs/app/registration/schema.test.js +180 -0
  127. package/dist/cjs/app/resources.d.ts.map +1 -1
  128. package/dist/cjs/app/resources.js +5 -5
  129. package/dist/cjs/app/resources.test.d.ts +2 -0
  130. package/dist/cjs/app/resources.test.d.ts.map +1 -0
  131. package/dist/cjs/app/resources.test.js +288 -0
  132. package/dist/cjs/app/saml/resources.d.ts.map +1 -1
  133. package/dist/cjs/app/saml/resources.js +4 -5
  134. package/dist/cjs/app/saml/schema.d.ts +26 -37
  135. package/dist/cjs/app/saml/schema.d.ts.map +1 -1
  136. package/dist/cjs/app/saml/schema.js +50 -13
  137. package/dist/cjs/app/schema.d.ts +75 -67
  138. package/dist/cjs/app/schema.d.ts.map +1 -1
  139. package/dist/cjs/app/schema.js +83 -37
  140. package/dist/cjs/app/schema.test.d.ts +2 -0
  141. package/dist/cjs/app/schema.test.d.ts.map +1 -0
  142. package/dist/cjs/app/schema.test.js +181 -0
  143. package/dist/cjs/app/utils.test.d.ts +2 -0
  144. package/dist/cjs/app/utils.test.d.ts.map +1 -0
  145. package/dist/cjs/app/utils.test.js +42 -0
  146. package/dist/cjs/association/resources.d.ts.map +1 -1
  147. package/dist/cjs/association/resources.js +3 -5
  148. package/dist/cjs/association/schema.d.ts +270 -128
  149. package/dist/cjs/association/schema.d.ts.map +1 -1
  150. package/dist/cjs/association/schema.js +78 -29
  151. package/dist/cjs/association/schema.test.d.ts +2 -0
  152. package/dist/cjs/association/schema.test.d.ts.map +1 -0
  153. package/dist/cjs/association/schema.test.js +80 -0
  154. package/dist/cjs/authentication/factors/schema.d.ts +39 -49
  155. package/dist/cjs/authentication/factors/schema.d.ts.map +1 -1
  156. package/dist/cjs/authentication/factors/schema.js +59 -20
  157. package/dist/cjs/authentication/factors/schema.test.js +50 -50
  158. package/dist/cjs/authentication/index.d.ts +1 -0
  159. package/dist/cjs/authentication/index.d.ts.map +1 -1
  160. package/dist/cjs/authentication/index.js +2 -0
  161. package/dist/cjs/authentication/providers/schema.d.ts +23 -22
  162. package/dist/cjs/authentication/providers/schema.d.ts.map +1 -1
  163. package/dist/cjs/authentication/providers/schema.js +45 -10
  164. package/dist/cjs/authentication/sessions/resources.d.ts.map +1 -1
  165. package/dist/cjs/authentication/sessions/resources.js +2 -2
  166. package/dist/cjs/authentication/sessions/schema.d.ts +96 -74
  167. package/dist/cjs/authentication/sessions/schema.d.ts.map +1 -1
  168. package/dist/cjs/authentication/sessions/schema.js +108 -35
  169. package/dist/cjs/authentication/settings/resources.d.ts.map +1 -1
  170. package/dist/cjs/authentication/settings/resources.js +2 -3
  171. package/dist/cjs/authentication/settings/schema.d.ts +45 -62
  172. package/dist/cjs/authentication/settings/schema.d.ts.map +1 -1
  173. package/dist/cjs/authentication/settings/schema.js +49 -14
  174. package/dist/cjs/authentication/settings/schema.test.d.ts +2 -0
  175. package/dist/cjs/authentication/settings/schema.test.d.ts.map +1 -0
  176. package/dist/cjs/authentication/settings/schema.test.js +460 -0
  177. package/dist/cjs/authentication/strategies/resources.d.ts +2 -1
  178. package/dist/cjs/authentication/strategies/resources.d.ts.map +1 -1
  179. package/dist/cjs/authentication/strategies/resources.js +10 -10
  180. package/dist/cjs/authentication/strategies/schema/base.d.ts +59 -53
  181. package/dist/cjs/authentication/strategies/schema/base.d.ts.map +1 -1
  182. package/dist/cjs/authentication/strategies/schema/base.js +71 -25
  183. package/dist/cjs/authentication/strategies/schema/schema.d.ts +126 -200
  184. package/dist/cjs/authentication/strategies/schema/schema.d.ts.map +1 -1
  185. package/dist/cjs/authentication/strategies/schema/schema.js +39 -6
  186. package/dist/cjs/authentication/strategies/schema/types/email.d.ts +62 -61
  187. package/dist/cjs/authentication/strategies/schema/types/email.d.ts.map +1 -1
  188. package/dist/cjs/authentication/strategies/schema/types/email.js +59 -16
  189. package/dist/cjs/authentication/strategies/schema/types/email.test.d.ts +2 -0
  190. package/dist/cjs/authentication/strategies/schema/types/email.test.d.ts.map +1 -0
  191. package/dist/cjs/authentication/strategies/schema/types/email.test.js +205 -0
  192. package/dist/cjs/authentication/strategies/schema/types/totp.d.ts +108 -95
  193. package/dist/cjs/authentication/strategies/schema/types/totp.d.ts.map +1 -1
  194. package/dist/cjs/authentication/strategies/schema/types/totp.js +83 -26
  195. package/dist/cjs/authentication/utils.d.ts +13 -0
  196. package/dist/cjs/authentication/utils.d.ts.map +1 -0
  197. package/dist/cjs/authentication/utils.js +25 -0
  198. package/dist/cjs/authentication/utils.test.d.ts +2 -0
  199. package/dist/cjs/authentication/utils.test.d.ts.map +1 -0
  200. package/dist/cjs/authentication/utils.test.js +142 -0
  201. package/dist/cjs/authorization/index.d.ts +1 -1
  202. package/dist/cjs/authorization/index.d.ts.map +1 -1
  203. package/dist/cjs/authorization/index.js +1 -1
  204. package/dist/cjs/authorization/permissions/resources.d.ts.map +1 -1
  205. package/dist/cjs/authorization/permissions/resources.js +5 -5
  206. package/dist/cjs/authorization/permissions/schema.d.ts +92 -89
  207. package/dist/cjs/authorization/permissions/schema.d.ts.map +1 -1
  208. package/dist/cjs/authorization/permissions/schema.js +85 -43
  209. package/dist/cjs/authorization/permissions/schema.test.d.ts +2 -0
  210. package/dist/cjs/authorization/permissions/schema.test.d.ts.map +1 -0
  211. package/dist/cjs/authorization/permissions/schema.test.js +209 -0
  212. package/dist/cjs/authorization/roles/resources.d.ts.map +1 -1
  213. package/dist/cjs/authorization/roles/resources.js +5 -5
  214. package/dist/cjs/authorization/roles/schema.d.ts +102 -98
  215. package/dist/cjs/authorization/roles/schema.d.ts.map +1 -1
  216. package/dist/cjs/authorization/roles/schema.js +82 -44
  217. package/dist/cjs/authorization/roles/schema.test.d.ts +2 -0
  218. package/dist/cjs/authorization/roles/schema.test.d.ts.map +1 -0
  219. package/dist/cjs/authorization/roles/schema.test.js +229 -0
  220. package/dist/cjs/authorization/schema.d.ts +18 -0
  221. package/dist/cjs/authorization/schema.d.ts.map +1 -0
  222. package/dist/cjs/authorization/schema.js +68 -0
  223. package/dist/cjs/authorization/schema.test.d.ts +2 -0
  224. package/dist/cjs/authorization/schema.test.d.ts.map +1 -0
  225. package/dist/cjs/authorization/schema.test.js +42 -0
  226. package/dist/cjs/common/errors/http.test.d.ts +2 -0
  227. package/dist/cjs/common/errors/http.test.d.ts.map +1 -0
  228. package/dist/cjs/common/errors/http.test.js +71 -0
  229. package/dist/cjs/common/errors/validation.test.d.ts +2 -0
  230. package/dist/cjs/common/errors/validation.test.d.ts.map +1 -0
  231. package/dist/cjs/common/errors/validation.test.js +92 -0
  232. package/dist/cjs/common/resources/init.d.ts +7 -6
  233. package/dist/cjs/common/resources/init.d.ts.map +1 -1
  234. package/dist/cjs/common/resources/init.js +50 -9
  235. package/dist/cjs/common/resources/init.test.d.ts +2 -0
  236. package/dist/cjs/common/resources/init.test.d.ts.map +1 -0
  237. package/dist/cjs/common/resources/init.test.js +233 -0
  238. package/dist/cjs/common/resources/operations.d.ts +3 -2
  239. package/dist/cjs/common/resources/operations.d.ts.map +1 -1
  240. package/dist/cjs/common/resources/operations.js +15 -8
  241. package/dist/cjs/common/resources/operations.test.d.ts +2 -0
  242. package/dist/cjs/common/resources/operations.test.d.ts.map +1 -0
  243. package/dist/cjs/common/resources/operations.test.js +356 -0
  244. package/dist/cjs/common/resources/utils.d.ts +1 -10
  245. package/dist/cjs/common/resources/utils.d.ts.map +1 -1
  246. package/dist/cjs/common/resources/utils.js +0 -26
  247. package/dist/cjs/common/resources/utils.test.d.ts +2 -0
  248. package/dist/cjs/common/resources/utils.test.d.ts.map +1 -0
  249. package/dist/cjs/common/resources/utils.test.js +134 -0
  250. package/dist/cjs/common/schema/aggregate.d.ts +6 -5
  251. package/dist/cjs/common/schema/aggregate.d.ts.map +1 -1
  252. package/dist/cjs/common/schema/aggregate.js +37 -4
  253. package/dist/cjs/common/schema/aggregate.test.d.ts +2 -0
  254. package/dist/cjs/common/schema/aggregate.test.d.ts.map +1 -0
  255. package/dist/cjs/common/schema/aggregate.test.js +74 -0
  256. package/dist/cjs/common/schema/collection.d.ts +13 -14
  257. package/dist/cjs/common/schema/collection.d.ts.map +1 -1
  258. package/dist/cjs/common/schema/collection.js +40 -5
  259. package/dist/cjs/common/schema/collection.test.d.ts +2 -0
  260. package/dist/cjs/common/schema/collection.test.d.ts.map +1 -0
  261. package/dist/cjs/common/schema/collection.test.js +149 -0
  262. package/dist/cjs/common/schema/dates.d.ts +43 -26
  263. package/dist/cjs/common/schema/dates.d.ts.map +1 -1
  264. package/dist/cjs/common/schema/dates.js +63 -12
  265. package/dist/cjs/common/schema/dates.test.js +24 -13
  266. package/dist/cjs/common/schema/id.d.ts +3 -0
  267. package/dist/cjs/common/schema/id.d.ts.map +1 -0
  268. package/dist/cjs/common/schema/id.js +39 -0
  269. package/dist/cjs/common/schema/id.test.d.ts +2 -0
  270. package/dist/cjs/common/schema/id.test.d.ts.map +1 -0
  271. package/dist/cjs/common/schema/id.test.js +148 -0
  272. package/dist/cjs/common/schema/jwt.d.ts +28 -14
  273. package/dist/cjs/common/schema/jwt.d.ts.map +1 -1
  274. package/dist/cjs/common/schema/jwt.js +37 -5
  275. package/dist/cjs/common/schema/jwt.test.d.ts +2 -0
  276. package/dist/cjs/common/schema/jwt.test.d.ts.map +1 -0
  277. package/dist/cjs/common/schema/jwt.test.js +61 -0
  278. package/dist/cjs/common/schema/metadata.d.ts +28 -39
  279. package/dist/cjs/common/schema/metadata.d.ts.map +1 -1
  280. package/dist/cjs/common/schema/metadata.js +80 -27
  281. package/dist/cjs/common/schema/metadata.test.js +71 -23
  282. package/dist/cjs/common/schema/pagination.d.ts +15 -5
  283. package/dist/cjs/common/schema/pagination.d.ts.map +1 -1
  284. package/dist/cjs/common/schema/pagination.js +46 -4
  285. package/dist/cjs/common/schema/pagination.test.d.ts +2 -0
  286. package/dist/cjs/common/schema/pagination.test.d.ts.map +1 -0
  287. package/dist/cjs/common/schema/pagination.test.js +87 -0
  288. package/dist/cjs/common/schema/schema.d.ts +4 -4
  289. package/dist/cjs/common/schema/schema.d.ts.map +1 -1
  290. package/dist/cjs/common/schema/schema.js +28 -5
  291. package/dist/cjs/common/schema/schema.test.js +42 -15
  292. package/dist/cjs/common/schema/sets.d.ts +6 -2
  293. package/dist/cjs/common/schema/sets.d.ts.map +1 -1
  294. package/dist/cjs/common/schema/sets.js +50 -7
  295. package/dist/cjs/common/schema/url.d.ts +19 -0
  296. package/dist/cjs/common/schema/url.d.ts.map +1 -1
  297. package/dist/cjs/common/schema/url.js +74 -0
  298. package/dist/cjs/common/schema/url.test.d.ts +2 -0
  299. package/dist/cjs/common/schema/url.test.d.ts.map +1 -0
  300. package/dist/cjs/common/schema/url.test.js +74 -0
  301. package/dist/cjs/customer/index.d.ts +2 -1
  302. package/dist/cjs/customer/index.d.ts.map +1 -1
  303. package/dist/cjs/customer/index.js +2 -1
  304. package/dist/cjs/customer/organization/schema.d.ts +68 -0
  305. package/dist/cjs/customer/organization/schema.d.ts.map +1 -0
  306. package/dist/cjs/customer/organization/schema.js +92 -0
  307. package/dist/cjs/customer/schema.d.ts +18 -0
  308. package/dist/cjs/customer/schema.d.ts.map +1 -0
  309. package/dist/cjs/customer/schema.js +68 -0
  310. package/dist/cjs/customer/schema.test.d.ts +2 -0
  311. package/dist/cjs/customer/schema.test.d.ts.map +1 -0
  312. package/dist/cjs/customer/schema.test.js +42 -0
  313. package/dist/cjs/customer/users/resources.d.ts.map +1 -1
  314. package/dist/cjs/customer/users/resources.js +5 -5
  315. package/dist/cjs/customer/users/schema.d.ts +215 -105
  316. package/dist/cjs/customer/users/schema.d.ts.map +1 -1
  317. package/dist/cjs/customer/users/schema.js +148 -65
  318. package/dist/cjs/customer/users/schema.test.js +579 -67
  319. package/dist/cjs/customer/users/utils.d.ts +3 -2
  320. package/dist/cjs/customer/users/utils.d.ts.map +1 -1
  321. package/dist/cjs/customer/users/utils.test.d.ts +2 -0
  322. package/dist/cjs/customer/users/utils.test.d.ts.map +1 -0
  323. package/dist/cjs/customer/users/utils.test.js +145 -0
  324. package/dist/cjs/identity/schema.d.ts +5 -1
  325. package/dist/cjs/identity/schema.d.ts.map +1 -1
  326. package/dist/cjs/identity/schema.js +38 -2
  327. package/dist/cjs/identity/schema.test.d.ts +2 -0
  328. package/dist/cjs/identity/schema.test.d.ts.map +1 -0
  329. package/dist/cjs/identity/schema.test.js +45 -0
  330. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.d.ts +34 -28
  331. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.d.ts.map +1 -1
  332. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.js +96 -22
  333. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.test.d.ts +2 -0
  334. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.test.d.ts.map +1 -0
  335. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.test.js +333 -0
  336. package/dist/cjs/oauth/authorize/schema/grants/common.d.ts +6 -0
  337. package/dist/cjs/oauth/authorize/schema/grants/common.d.ts.map +1 -0
  338. package/dist/cjs/oauth/authorize/schema/grants/common.js +47 -0
  339. package/dist/cjs/oauth/authorize/schema/grants/implicit.d.ts +18 -10
  340. package/dist/cjs/oauth/authorize/schema/grants/implicit.d.ts.map +1 -1
  341. package/dist/cjs/oauth/authorize/schema/grants/implicit.js +56 -11
  342. package/dist/cjs/oauth/authorize/schema/schema.d.ts +48 -36
  343. package/dist/cjs/oauth/authorize/schema/schema.d.ts.map +1 -1
  344. package/dist/cjs/oauth/authorize/schema/schema.js +4 -2
  345. package/dist/cjs/oauth/common/schema.d.ts +24 -7
  346. package/dist/cjs/oauth/common/schema.d.ts.map +1 -1
  347. package/dist/cjs/oauth/common/schema.js +59 -8
  348. package/dist/cjs/oauth/common/schema.test.d.ts +2 -0
  349. package/dist/cjs/oauth/common/schema.test.d.ts.map +1 -0
  350. package/dist/cjs/oauth/common/schema.test.js +282 -0
  351. package/dist/cjs/oauth/index.d.ts +3 -3
  352. package/dist/cjs/oauth/index.d.ts.map +1 -1
  353. package/dist/cjs/oauth/index.js +8 -25
  354. package/dist/cjs/oauth/token/schema/grants/authorization-code.d.ts +16 -9
  355. package/dist/cjs/oauth/token/schema/grants/authorization-code.d.ts.map +1 -1
  356. package/dist/cjs/oauth/token/schema/grants/authorization-code.js +66 -12
  357. package/dist/cjs/oauth/token/schema/grants/client-credentials.d.ts +16 -17
  358. package/dist/cjs/oauth/token/schema/grants/client-credentials.d.ts.map +1 -1
  359. package/dist/cjs/oauth/token/schema/grants/client-credentials.js +53 -16
  360. package/dist/cjs/oauth/token/schema/grants/common.d.ts +6 -0
  361. package/dist/cjs/oauth/token/schema/grants/common.d.ts.map +1 -0
  362. package/dist/cjs/oauth/token/schema/grants/common.js +52 -0
  363. package/dist/cjs/oauth/token/schema/grants/refresh-token.d.ts +15 -8
  364. package/dist/cjs/oauth/token/schema/grants/refresh-token.d.ts.map +1 -1
  365. package/dist/cjs/oauth/token/schema/grants/refresh-token.js +57 -11
  366. package/dist/cjs/oauth/token/schema/schema.d.ts +48 -21
  367. package/dist/cjs/oauth/token/schema/schema.d.ts.map +1 -1
  368. package/dist/cjs/oauth/token/schema/schema.js +79 -2
  369. package/dist/cjs/oauth/token/schema/schema.test.d.ts +2 -0
  370. package/dist/cjs/oauth/token/schema/schema.test.d.ts.map +1 -0
  371. package/dist/cjs/oauth/token/schema/schema.test.js +138 -0
  372. package/dist/cjs/workspace/authorization/schema.d.ts +71 -27
  373. package/dist/cjs/workspace/authorization/schema.d.ts.map +1 -1
  374. package/dist/cjs/workspace/authorization/schema.js +58 -13
  375. package/dist/cjs/workspace/branding/schema.d.ts +47 -37
  376. package/dist/cjs/workspace/branding/schema.d.ts.map +1 -1
  377. package/dist/cjs/workspace/branding/schema.js +61 -16
  378. package/dist/cjs/workspace/membership/schema.d.ts +42 -20
  379. package/dist/cjs/workspace/membership/schema.d.ts.map +1 -1
  380. package/dist/cjs/workspace/membership/schema.js +47 -7
  381. package/dist/cjs/workspace/registration/schema.d.ts +41 -27
  382. package/dist/cjs/workspace/registration/schema.d.ts.map +1 -1
  383. package/dist/cjs/workspace/registration/schema.js +63 -14
  384. package/dist/cjs/workspace/settings/schema.d.ts +20 -19
  385. package/dist/cjs/workspace/settings/schema.d.ts.map +1 -1
  386. package/dist/cjs/workspace/settings/schema.js +47 -7
  387. package/dist/cjs/workspace/settings/schema.test.d.ts +2 -0
  388. package/dist/cjs/workspace/settings/schema.test.d.ts.map +1 -0
  389. package/dist/cjs/workspace/settings/schema.test.js +72 -0
  390. package/dist/cjs/workspace/tenant/schema.d.ts +88 -56
  391. package/dist/cjs/workspace/tenant/schema.d.ts.map +1 -1
  392. package/dist/cjs/workspace/tenant/schema.js +64 -17
  393. package/dist/cjs/workspace/tenant/schema.test.d.ts +2 -0
  394. package/dist/cjs/workspace/tenant/schema.test.d.ts.map +1 -0
  395. package/dist/cjs/workspace/tenant/schema.test.js +235 -0
  396. package/dist/cjs/workspace/user/notifications/schema.d.ts +70 -56
  397. package/dist/cjs/workspace/user/notifications/schema.d.ts.map +1 -1
  398. package/dist/cjs/workspace/user/notifications/schema.js +78 -31
  399. package/dist/cjs/workspace/user/preferences/schema.d.ts +29 -25
  400. package/dist/cjs/workspace/user/preferences/schema.d.ts.map +1 -1
  401. package/dist/cjs/workspace/user/preferences/schema.js +57 -12
  402. package/dist/cjs/workspace/utils.d.ts +0 -3
  403. package/dist/cjs/workspace/utils.d.ts.map +1 -1
  404. package/dist/cjs/workspace/utils.js +0 -3
  405. package/dist/cjs/workspace/utils.test.d.ts +2 -0
  406. package/dist/cjs/workspace/utils.test.d.ts.map +1 -0
  407. package/dist/cjs/workspace/utils.test.js +63 -0
  408. package/dist/esm/action/schema/base.d.ts +21 -21
  409. package/dist/esm/action/schema/base.d.ts.map +1 -1
  410. package/dist/esm/action/schema/base.js +19 -12
  411. package/dist/esm/action/schema/base.test.d.ts +2 -0
  412. package/dist/esm/action/schema/base.test.d.ts.map +1 -0
  413. package/dist/esm/action/schema/base.test.js +135 -0
  414. package/dist/esm/action/schema/operations/sign-up-verification.d.ts +21 -21
  415. package/dist/esm/action/schema/operations/sign-up-verification.d.ts.map +1 -1
  416. package/dist/esm/action/schema/operations/sign-up-verification.js +9 -8
  417. package/dist/esm/action/schema/operations/sign-up-verification.test.d.ts +2 -0
  418. package/dist/esm/action/schema/operations/sign-up-verification.test.d.ts.map +1 -0
  419. package/dist/esm/action/schema/operations/sign-up-verification.test.js +138 -0
  420. package/dist/esm/action/schema/operations/sign-up.d.ts +40 -43
  421. package/dist/esm/action/schema/operations/sign-up.d.ts.map +1 -1
  422. package/dist/esm/action/schema/operations/sign-up.js +19 -10
  423. package/dist/esm/action/schema/operations/sign-up.test.d.ts +2 -0
  424. package/dist/esm/action/schema/operations/sign-up.test.d.ts.map +1 -0
  425. package/dist/esm/action/schema/operations/sign-up.test.js +171 -0
  426. package/dist/esm/action/schema/operations/user-attribute-verification.d.ts +19 -19
  427. package/dist/esm/action/schema/operations/user-attribute-verification.d.ts.map +1 -1
  428. package/dist/esm/action/schema/operations/user-attribute-verification.js +7 -6
  429. package/dist/esm/action/schema/operations/user-attribute-verification.test.d.ts +2 -0
  430. package/dist/esm/action/schema/operations/user-attribute-verification.test.d.ts.map +1 -0
  431. package/dist/esm/action/schema/operations/user-attribute-verification.test.js +126 -0
  432. package/dist/esm/action/schema/schema.d.ts +49 -77
  433. package/dist/esm/action/schema/schema.d.ts.map +1 -1
  434. package/dist/esm/action/schema/schema.js +7 -5
  435. package/dist/esm/action/schema/schema.test.d.ts +2 -0
  436. package/dist/esm/action/schema/schema.test.d.ts.map +1 -0
  437. package/dist/esm/action/schema/schema.test.js +162 -0
  438. package/dist/esm/action/schema/utils.d.ts +7 -0
  439. package/dist/esm/action/schema/utils.d.ts.map +1 -0
  440. package/dist/esm/action/schema/utils.js +9 -0
  441. package/dist/esm/action/schema/utils.test.d.ts +2 -0
  442. package/dist/esm/action/schema/utils.test.d.ts.map +1 -0
  443. package/dist/esm/action/schema/utils.test.js +24 -0
  444. package/dist/esm/activity/resources.d.ts.map +1 -1
  445. package/dist/esm/activity/resources.js +2 -2
  446. package/dist/esm/activity/resources.test.d.ts +2 -0
  447. package/dist/esm/activity/resources.test.d.ts.map +1 -0
  448. package/dist/esm/activity/resources.test.js +189 -0
  449. package/dist/esm/activity/schema/base.d.ts +88 -69
  450. package/dist/esm/activity/schema/base.d.ts.map +1 -1
  451. package/dist/esm/activity/schema/base.js +42 -29
  452. package/dist/esm/activity/schema/base.test.d.ts +2 -0
  453. package/dist/esm/activity/schema/base.test.d.ts.map +1 -0
  454. package/dist/esm/activity/schema/base.test.js +267 -0
  455. package/dist/esm/activity/schema/schema.d.ts +293 -226
  456. package/dist/esm/activity/schema/schema.d.ts.map +1 -1
  457. package/dist/esm/activity/schema/schema.test.d.ts +2 -0
  458. package/dist/esm/activity/schema/schema.test.d.ts.map +1 -0
  459. package/dist/esm/activity/schema/schema.test.js +341 -0
  460. package/dist/esm/activity/schema/types/authentication.d.ts +64 -46
  461. package/dist/esm/activity/schema/types/authentication.d.ts.map +1 -1
  462. package/dist/esm/activity/schema/types/authentication.js +17 -8
  463. package/dist/esm/activity/schema/types/authentication.test.d.ts +2 -0
  464. package/dist/esm/activity/schema/types/authentication.test.d.ts.map +1 -0
  465. package/dist/esm/activity/schema/types/authentication.test.js +300 -0
  466. package/dist/esm/activity/schema/types/authorization.d.ts +64 -46
  467. package/dist/esm/activity/schema/types/authorization.d.ts.map +1 -1
  468. package/dist/esm/activity/schema/types/authorization.js +17 -8
  469. package/dist/esm/activity/schema/types/authorization.test.d.ts +2 -0
  470. package/dist/esm/activity/schema/types/authorization.test.d.ts.map +1 -0
  471. package/dist/esm/activity/schema/types/authorization.test.js +338 -0
  472. package/dist/esm/activity/schema/types/note.d.ts +83 -70
  473. package/dist/esm/activity/schema/types/note.d.ts.map +1 -1
  474. package/dist/esm/activity/schema/types/note.js +20 -12
  475. package/dist/esm/activity/schema/types/note.test.d.ts +2 -0
  476. package/dist/esm/activity/schema/types/note.test.d.ts.map +1 -0
  477. package/dist/esm/activity/schema/types/note.test.js +316 -0
  478. package/dist/esm/activity/schema/types/operation.d.ts +64 -45
  479. package/dist/esm/activity/schema/types/operation.d.ts.map +1 -1
  480. package/dist/esm/activity/schema/types/operation.js +19 -8
  481. package/dist/esm/activity/schema/types/operation.test.d.ts +2 -0
  482. package/dist/esm/activity/schema/types/operation.test.d.ts.map +1 -0
  483. package/dist/esm/activity/schema/types/operation.test.js +341 -0
  484. package/dist/esm/activity/schema/types/unknown.d.ts +50 -41
  485. package/dist/esm/activity/schema/types/unknown.d.ts.map +1 -1
  486. package/dist/esm/activity/schema/types/unknown.js +12 -6
  487. package/dist/esm/activity/schema/types/unknown.test.d.ts +2 -0
  488. package/dist/esm/activity/schema/types/unknown.test.d.ts.map +1 -0
  489. package/dist/esm/activity/schema/types/unknown.test.js +272 -0
  490. package/dist/esm/activity/schema/utils.test.d.ts +2 -0
  491. package/dist/esm/activity/schema/utils.test.d.ts.map +1 -0
  492. package/dist/esm/activity/schema/utils.test.js +24 -0
  493. package/dist/esm/app/authorization/resources.d.ts.map +1 -1
  494. package/dist/esm/app/authorization/resources.js +3 -7
  495. package/dist/esm/app/authorization/schema.d.ts +99 -52
  496. package/dist/esm/app/authorization/schema.d.ts.map +1 -1
  497. package/dist/esm/app/authorization/schema.js +58 -55
  498. package/dist/esm/app/authorization/schema.test.d.ts +2 -0
  499. package/dist/esm/app/authorization/schema.test.d.ts.map +1 -0
  500. package/dist/esm/app/authorization/schema.test.js +376 -0
  501. package/dist/esm/app/oauth/resources.d.ts.map +1 -1
  502. package/dist/esm/app/oauth/resources.js +3 -4
  503. package/dist/esm/app/oauth/schema.d.ts +34 -41
  504. package/dist/esm/app/oauth/schema.d.ts.map +1 -1
  505. package/dist/esm/app/oauth/schema.js +27 -20
  506. package/dist/esm/app/oauth/schema.test.d.ts +2 -0
  507. package/dist/esm/app/oauth/schema.test.d.ts.map +1 -0
  508. package/dist/esm/app/oauth/schema.test.js +170 -0
  509. package/dist/esm/app/oidc/resources.d.ts.map +1 -1
  510. package/dist/esm/app/oidc/resources.js +5 -6
  511. package/dist/esm/app/oidc/schema.d.ts +26 -37
  512. package/dist/esm/app/oidc/schema.d.ts.map +1 -1
  513. package/dist/esm/app/oidc/schema.js +18 -14
  514. package/dist/esm/app/oidc/schema.test.d.ts +2 -0
  515. package/dist/esm/app/oidc/schema.test.d.ts.map +1 -0
  516. package/dist/esm/app/oidc/schema.test.js +112 -0
  517. package/dist/esm/app/registration/resources.d.ts.map +1 -1
  518. package/dist/esm/app/registration/resources.js +3 -4
  519. package/dist/esm/app/registration/resources.test.d.ts +2 -0
  520. package/dist/esm/app/registration/resources.test.d.ts.map +1 -0
  521. package/dist/esm/app/registration/resources.test.js +260 -0
  522. package/dist/esm/app/registration/schema.d.ts +24 -31
  523. package/dist/esm/app/registration/schema.d.ts.map +1 -1
  524. package/dist/esm/app/registration/schema.js +24 -17
  525. package/dist/esm/app/registration/schema.test.d.ts +2 -0
  526. package/dist/esm/app/registration/schema.test.d.ts.map +1 -0
  527. package/dist/esm/app/registration/schema.test.js +178 -0
  528. package/dist/esm/app/resources.d.ts.map +1 -1
  529. package/dist/esm/app/resources.js +7 -7
  530. package/dist/esm/app/resources.test.d.ts +2 -0
  531. package/dist/esm/app/resources.test.d.ts.map +1 -0
  532. package/dist/esm/app/resources.test.js +253 -0
  533. package/dist/esm/app/saml/resources.d.ts.map +1 -1
  534. package/dist/esm/app/saml/resources.js +5 -6
  535. package/dist/esm/app/saml/schema.d.ts +26 -37
  536. package/dist/esm/app/saml/schema.d.ts.map +1 -1
  537. package/dist/esm/app/saml/schema.js +19 -15
  538. package/dist/esm/app/schema.d.ts +75 -67
  539. package/dist/esm/app/schema.d.ts.map +1 -1
  540. package/dist/esm/app/schema.js +50 -37
  541. package/dist/esm/app/schema.test.d.ts +2 -0
  542. package/dist/esm/app/schema.test.d.ts.map +1 -0
  543. package/dist/esm/app/schema.test.js +179 -0
  544. package/dist/esm/app/utils.test.d.ts +2 -0
  545. package/dist/esm/app/utils.test.d.ts.map +1 -0
  546. package/dist/esm/app/utils.test.js +40 -0
  547. package/dist/esm/association/resources.d.ts.map +1 -1
  548. package/dist/esm/association/resources.js +5 -7
  549. package/dist/esm/association/schema.d.ts +270 -128
  550. package/dist/esm/association/schema.d.ts.map +1 -1
  551. package/dist/esm/association/schema.js +45 -29
  552. package/dist/esm/association/schema.test.d.ts +2 -0
  553. package/dist/esm/association/schema.test.d.ts.map +1 -0
  554. package/dist/esm/association/schema.test.js +78 -0
  555. package/dist/esm/authentication/factors/schema.d.ts +39 -49
  556. package/dist/esm/authentication/factors/schema.d.ts.map +1 -1
  557. package/dist/esm/authentication/factors/schema.js +26 -20
  558. package/dist/esm/authentication/factors/schema.test.js +50 -50
  559. package/dist/esm/authentication/index.d.ts +1 -0
  560. package/dist/esm/authentication/index.d.ts.map +1 -1
  561. package/dist/esm/authentication/index.js +2 -0
  562. package/dist/esm/authentication/providers/schema.d.ts +23 -22
  563. package/dist/esm/authentication/providers/schema.d.ts.map +1 -1
  564. package/dist/esm/authentication/providers/schema.js +13 -11
  565. package/dist/esm/authentication/sessions/resources.d.ts.map +1 -1
  566. package/dist/esm/authentication/sessions/resources.js +3 -3
  567. package/dist/esm/authentication/sessions/schema.d.ts +96 -74
  568. package/dist/esm/authentication/sessions/schema.d.ts.map +1 -1
  569. package/dist/esm/authentication/sessions/schema.js +75 -35
  570. package/dist/esm/authentication/settings/resources.d.ts.map +1 -1
  571. package/dist/esm/authentication/settings/resources.js +3 -4
  572. package/dist/esm/authentication/settings/schema.d.ts +45 -62
  573. package/dist/esm/authentication/settings/schema.d.ts.map +1 -1
  574. package/dist/esm/authentication/settings/schema.js +18 -16
  575. package/dist/esm/authentication/settings/schema.test.d.ts +2 -0
  576. package/dist/esm/authentication/settings/schema.test.d.ts.map +1 -0
  577. package/dist/esm/authentication/settings/schema.test.js +458 -0
  578. package/dist/esm/authentication/strategies/resources.d.ts +2 -1
  579. package/dist/esm/authentication/strategies/resources.d.ts.map +1 -1
  580. package/dist/esm/authentication/strategies/resources.js +12 -12
  581. package/dist/esm/authentication/strategies/schema/base.d.ts +59 -53
  582. package/dist/esm/authentication/strategies/schema/base.d.ts.map +1 -1
  583. package/dist/esm/authentication/strategies/schema/base.js +38 -25
  584. package/dist/esm/authentication/strategies/schema/schema.d.ts +126 -200
  585. package/dist/esm/authentication/strategies/schema/schema.d.ts.map +1 -1
  586. package/dist/esm/authentication/strategies/schema/schema.js +17 -6
  587. package/dist/esm/authentication/strategies/schema/types/email.d.ts +62 -61
  588. package/dist/esm/authentication/strategies/schema/types/email.d.ts.map +1 -1
  589. package/dist/esm/authentication/strategies/schema/types/email.js +25 -15
  590. package/dist/esm/authentication/strategies/schema/types/email.test.d.ts +2 -0
  591. package/dist/esm/authentication/strategies/schema/types/email.test.d.ts.map +1 -0
  592. package/dist/esm/authentication/strategies/schema/types/email.test.js +203 -0
  593. package/dist/esm/authentication/strategies/schema/types/totp.d.ts +108 -95
  594. package/dist/esm/authentication/strategies/schema/types/totp.d.ts.map +1 -1
  595. package/dist/esm/authentication/strategies/schema/types/totp.js +51 -27
  596. package/dist/esm/authentication/utils.d.ts +13 -0
  597. package/dist/esm/authentication/utils.d.ts.map +1 -0
  598. package/dist/esm/authentication/utils.js +17 -0
  599. package/dist/esm/authentication/utils.test.d.ts +2 -0
  600. package/dist/esm/authentication/utils.test.d.ts.map +1 -0
  601. package/dist/esm/authentication/utils.test.js +140 -0
  602. package/dist/esm/authorization/index.d.ts +1 -1
  603. package/dist/esm/authorization/index.d.ts.map +1 -1
  604. package/dist/esm/authorization/index.js +1 -1
  605. package/dist/esm/authorization/permissions/resources.d.ts.map +1 -1
  606. package/dist/esm/authorization/permissions/resources.js +7 -7
  607. package/dist/esm/authorization/permissions/schema.d.ts +92 -89
  608. package/dist/esm/authorization/permissions/schema.d.ts.map +1 -1
  609. package/dist/esm/authorization/permissions/schema.js +51 -42
  610. package/dist/esm/authorization/permissions/schema.test.d.ts +2 -0
  611. package/dist/esm/authorization/permissions/schema.test.d.ts.map +1 -0
  612. package/dist/esm/authorization/permissions/schema.test.js +207 -0
  613. package/dist/esm/authorization/roles/resources.d.ts.map +1 -1
  614. package/dist/esm/authorization/roles/resources.js +7 -7
  615. package/dist/esm/authorization/roles/schema.d.ts +102 -98
  616. package/dist/esm/authorization/roles/schema.d.ts.map +1 -1
  617. package/dist/esm/authorization/roles/schema.js +49 -44
  618. package/dist/esm/authorization/roles/schema.test.d.ts +2 -0
  619. package/dist/esm/authorization/roles/schema.test.d.ts.map +1 -0
  620. package/dist/esm/authorization/roles/schema.test.js +227 -0
  621. package/dist/esm/authorization/schema.d.ts +18 -0
  622. package/dist/esm/authorization/schema.d.ts.map +1 -0
  623. package/dist/esm/authorization/schema.js +27 -0
  624. package/dist/esm/authorization/schema.test.d.ts +2 -0
  625. package/dist/esm/authorization/schema.test.d.ts.map +1 -0
  626. package/dist/esm/authorization/schema.test.js +40 -0
  627. package/dist/esm/common/errors/http.test.d.ts +2 -0
  628. package/dist/esm/common/errors/http.test.d.ts.map +1 -0
  629. package/dist/esm/common/errors/http.test.js +69 -0
  630. package/dist/esm/common/errors/validation.test.d.ts +2 -0
  631. package/dist/esm/common/errors/validation.test.d.ts.map +1 -0
  632. package/dist/esm/common/errors/validation.test.js +90 -0
  633. package/dist/esm/common/resources/init.d.ts +7 -6
  634. package/dist/esm/common/resources/init.d.ts.map +1 -1
  635. package/dist/esm/common/resources/init.js +17 -9
  636. package/dist/esm/common/resources/init.test.d.ts +2 -0
  637. package/dist/esm/common/resources/init.test.d.ts.map +1 -0
  638. package/dist/esm/common/resources/init.test.js +231 -0
  639. package/dist/esm/common/resources/operations.d.ts +3 -2
  640. package/dist/esm/common/resources/operations.d.ts.map +1 -1
  641. package/dist/esm/common/resources/operations.js +12 -6
  642. package/dist/esm/common/resources/operations.test.d.ts +2 -0
  643. package/dist/esm/common/resources/operations.test.d.ts.map +1 -0
  644. package/dist/esm/common/resources/operations.test.js +354 -0
  645. package/dist/esm/common/resources/utils.d.ts +1 -10
  646. package/dist/esm/common/resources/utils.d.ts.map +1 -1
  647. package/dist/esm/common/resources/utils.js +0 -24
  648. package/dist/esm/common/resources/utils.test.d.ts +2 -0
  649. package/dist/esm/common/resources/utils.test.d.ts.map +1 -0
  650. package/dist/esm/common/resources/utils.test.js +132 -0
  651. package/dist/esm/common/schema/aggregate.d.ts +6 -5
  652. package/dist/esm/common/schema/aggregate.d.ts.map +1 -1
  653. package/dist/esm/common/schema/aggregate.js +4 -4
  654. package/dist/esm/common/schema/aggregate.test.d.ts +2 -0
  655. package/dist/esm/common/schema/aggregate.test.d.ts.map +1 -0
  656. package/dist/esm/common/schema/aggregate.test.js +72 -0
  657. package/dist/esm/common/schema/collection.d.ts +13 -14
  658. package/dist/esm/common/schema/collection.d.ts.map +1 -1
  659. package/dist/esm/common/schema/collection.js +5 -5
  660. package/dist/esm/common/schema/collection.test.d.ts +2 -0
  661. package/dist/esm/common/schema/collection.test.d.ts.map +1 -0
  662. package/dist/esm/common/schema/collection.test.js +114 -0
  663. package/dist/esm/common/schema/dates.d.ts +43 -26
  664. package/dist/esm/common/schema/dates.d.ts.map +1 -1
  665. package/dist/esm/common/schema/dates.js +29 -11
  666. package/dist/esm/common/schema/dates.test.js +24 -13
  667. package/dist/esm/common/schema/id.d.ts +3 -0
  668. package/dist/esm/common/schema/id.d.ts.map +1 -0
  669. package/dist/esm/common/schema/id.js +2 -0
  670. package/dist/esm/common/schema/id.test.d.ts +2 -0
  671. package/dist/esm/common/schema/id.test.d.ts.map +1 -0
  672. package/dist/esm/common/schema/id.test.js +146 -0
  673. package/dist/esm/common/schema/jwt.d.ts +28 -14
  674. package/dist/esm/common/schema/jwt.d.ts.map +1 -1
  675. package/dist/esm/common/schema/jwt.js +3 -4
  676. package/dist/esm/common/schema/jwt.test.d.ts +2 -0
  677. package/dist/esm/common/schema/jwt.test.d.ts.map +1 -0
  678. package/dist/esm/common/schema/jwt.test.js +59 -0
  679. package/dist/esm/common/schema/metadata.d.ts +28 -39
  680. package/dist/esm/common/schema/metadata.d.ts.map +1 -1
  681. package/dist/esm/common/schema/metadata.js +45 -26
  682. package/dist/esm/common/schema/metadata.test.js +72 -24
  683. package/dist/esm/common/schema/pagination.d.ts +15 -5
  684. package/dist/esm/common/schema/pagination.d.ts.map +1 -1
  685. package/dist/esm/common/schema/pagination.js +13 -4
  686. package/dist/esm/common/schema/pagination.test.d.ts +2 -0
  687. package/dist/esm/common/schema/pagination.test.d.ts.map +1 -0
  688. package/dist/esm/common/schema/pagination.test.js +85 -0
  689. package/dist/esm/common/schema/schema.d.ts +4 -4
  690. package/dist/esm/common/schema/schema.d.ts.map +1 -1
  691. package/dist/esm/common/schema/schema.js +6 -5
  692. package/dist/esm/common/schema/schema.test.js +9 -15
  693. package/dist/esm/common/schema/sets.d.ts +6 -2
  694. package/dist/esm/common/schema/sets.d.ts.map +1 -1
  695. package/dist/esm/common/schema/sets.js +16 -6
  696. package/dist/esm/common/schema/url.d.ts +19 -0
  697. package/dist/esm/common/schema/url.d.ts.map +1 -1
  698. package/dist/esm/common/schema/url.js +40 -0
  699. package/dist/esm/common/schema/url.test.d.ts +2 -0
  700. package/dist/esm/common/schema/url.test.d.ts.map +1 -0
  701. package/dist/esm/common/schema/url.test.js +72 -0
  702. package/dist/esm/customer/index.d.ts +2 -1
  703. package/dist/esm/customer/index.d.ts.map +1 -1
  704. package/dist/esm/customer/index.js +2 -1
  705. package/dist/esm/customer/organization/schema.d.ts +68 -0
  706. package/dist/esm/customer/organization/schema.d.ts.map +1 -0
  707. package/dist/esm/customer/organization/schema.js +56 -0
  708. package/dist/esm/customer/schema.d.ts +18 -0
  709. package/dist/esm/customer/schema.d.ts.map +1 -0
  710. package/dist/esm/customer/schema.js +27 -0
  711. package/dist/esm/customer/schema.test.d.ts +2 -0
  712. package/dist/esm/customer/schema.test.d.ts.map +1 -0
  713. package/dist/esm/customer/schema.test.js +40 -0
  714. package/dist/esm/customer/users/resources.d.ts.map +1 -1
  715. package/dist/esm/customer/users/resources.js +7 -7
  716. package/dist/esm/customer/users/schema.d.ts +215 -105
  717. package/dist/esm/customer/users/schema.d.ts.map +1 -1
  718. package/dist/esm/customer/users/schema.js +109 -59
  719. package/dist/esm/customer/users/schema.test.js +578 -66
  720. package/dist/esm/customer/users/utils.d.ts +3 -2
  721. package/dist/esm/customer/users/utils.d.ts.map +1 -1
  722. package/dist/esm/customer/users/utils.test.d.ts +2 -0
  723. package/dist/esm/customer/users/utils.test.d.ts.map +1 -0
  724. package/dist/esm/customer/users/utils.test.js +143 -0
  725. package/dist/esm/identity/schema.d.ts +5 -1
  726. package/dist/esm/identity/schema.d.ts.map +1 -1
  727. package/dist/esm/identity/schema.js +5 -2
  728. package/dist/esm/identity/schema.test.d.ts +2 -0
  729. package/dist/esm/identity/schema.test.d.ts.map +1 -0
  730. package/dist/esm/identity/schema.test.js +43 -0
  731. package/dist/esm/oauth/authorize/schema/grants/authorization-code.d.ts +34 -28
  732. package/dist/esm/oauth/authorize/schema/grants/authorization-code.d.ts.map +1 -1
  733. package/dist/esm/oauth/authorize/schema/grants/authorization-code.js +63 -22
  734. package/dist/esm/oauth/authorize/schema/grants/authorization-code.test.d.ts +2 -0
  735. package/dist/esm/oauth/authorize/schema/grants/authorization-code.test.d.ts.map +1 -0
  736. package/dist/esm/oauth/authorize/schema/grants/authorization-code.test.js +331 -0
  737. package/dist/esm/oauth/authorize/schema/grants/common.d.ts +6 -0
  738. package/dist/esm/oauth/authorize/schema/grants/common.d.ts.map +1 -0
  739. package/dist/esm/oauth/authorize/schema/grants/common.js +11 -0
  740. package/dist/esm/oauth/authorize/schema/grants/implicit.d.ts +18 -10
  741. package/dist/esm/oauth/authorize/schema/grants/implicit.d.ts.map +1 -1
  742. package/dist/esm/oauth/authorize/schema/grants/implicit.js +22 -10
  743. package/dist/esm/oauth/authorize/schema/schema.d.ts +48 -36
  744. package/dist/esm/oauth/authorize/schema/schema.d.ts.map +1 -1
  745. package/dist/esm/oauth/authorize/schema/schema.js +4 -3
  746. package/dist/esm/oauth/common/schema.d.ts +24 -7
  747. package/dist/esm/oauth/common/schema.d.ts.map +1 -1
  748. package/dist/esm/oauth/common/schema.js +25 -7
  749. package/dist/esm/oauth/common/schema.test.d.ts +2 -0
  750. package/dist/esm/oauth/common/schema.test.d.ts.map +1 -0
  751. package/dist/esm/oauth/common/schema.test.js +280 -0
  752. package/dist/esm/oauth/index.d.ts +3 -3
  753. package/dist/esm/oauth/index.d.ts.map +1 -1
  754. package/dist/esm/oauth/index.js +3 -3
  755. package/dist/esm/oauth/token/schema/grants/authorization-code.d.ts +16 -9
  756. package/dist/esm/oauth/token/schema/grants/authorization-code.d.ts.map +1 -1
  757. package/dist/esm/oauth/token/schema/grants/authorization-code.js +32 -11
  758. package/dist/esm/oauth/token/schema/grants/client-credentials.d.ts +16 -17
  759. package/dist/esm/oauth/token/schema/grants/client-credentials.d.ts.map +1 -1
  760. package/dist/esm/oauth/token/schema/grants/client-credentials.js +19 -15
  761. package/dist/esm/oauth/token/schema/grants/common.d.ts +6 -0
  762. package/dist/esm/oauth/token/schema/grants/common.d.ts.map +1 -0
  763. package/dist/esm/oauth/token/schema/grants/common.js +16 -0
  764. package/dist/esm/oauth/token/schema/grants/refresh-token.d.ts +15 -8
  765. package/dist/esm/oauth/token/schema/grants/refresh-token.d.ts.map +1 -1
  766. package/dist/esm/oauth/token/schema/grants/refresh-token.js +23 -10
  767. package/dist/esm/oauth/token/schema/schema.d.ts +48 -21
  768. package/dist/esm/oauth/token/schema/schema.d.ts.map +1 -1
  769. package/dist/esm/oauth/token/schema/schema.js +59 -4
  770. package/dist/esm/oauth/token/schema/schema.test.d.ts +2 -0
  771. package/dist/esm/oauth/token/schema/schema.test.d.ts.map +1 -0
  772. package/dist/esm/oauth/token/schema/schema.test.js +136 -0
  773. package/dist/esm/workspace/authorization/schema.d.ts +71 -27
  774. package/dist/esm/workspace/authorization/schema.d.ts.map +1 -1
  775. package/dist/esm/workspace/authorization/schema.js +27 -15
  776. package/dist/esm/workspace/branding/schema.d.ts +47 -37
  777. package/dist/esm/workspace/branding/schema.d.ts.map +1 -1
  778. package/dist/esm/workspace/branding/schema.js +29 -17
  779. package/dist/esm/workspace/membership/schema.d.ts +42 -20
  780. package/dist/esm/workspace/membership/schema.d.ts.map +1 -1
  781. package/dist/esm/workspace/membership/schema.js +14 -7
  782. package/dist/esm/workspace/registration/schema.d.ts +41 -27
  783. package/dist/esm/workspace/registration/schema.d.ts.map +1 -1
  784. package/dist/esm/workspace/registration/schema.js +32 -16
  785. package/dist/esm/workspace/settings/schema.d.ts +20 -19
  786. package/dist/esm/workspace/settings/schema.d.ts.map +1 -1
  787. package/dist/esm/workspace/settings/schema.js +15 -8
  788. package/dist/esm/workspace/settings/schema.test.d.ts +2 -0
  789. package/dist/esm/workspace/settings/schema.test.d.ts.map +1 -0
  790. package/dist/esm/workspace/settings/schema.test.js +70 -0
  791. package/dist/esm/workspace/tenant/schema.d.ts +88 -56
  792. package/dist/esm/workspace/tenant/schema.d.ts.map +1 -1
  793. package/dist/esm/workspace/tenant/schema.js +29 -15
  794. package/dist/esm/workspace/tenant/schema.test.d.ts +2 -0
  795. package/dist/esm/workspace/tenant/schema.test.d.ts.map +1 -0
  796. package/dist/esm/workspace/tenant/schema.test.js +233 -0
  797. package/dist/esm/workspace/user/notifications/schema.d.ts +70 -56
  798. package/dist/esm/workspace/user/notifications/schema.d.ts.map +1 -1
  799. package/dist/esm/workspace/user/notifications/schema.js +45 -31
  800. package/dist/esm/workspace/user/preferences/schema.d.ts +29 -25
  801. package/dist/esm/workspace/user/preferences/schema.d.ts.map +1 -1
  802. package/dist/esm/workspace/user/preferences/schema.js +25 -13
  803. package/dist/esm/workspace/utils.d.ts +0 -3
  804. package/dist/esm/workspace/utils.d.ts.map +1 -1
  805. package/dist/esm/workspace/utils.js +0 -3
  806. package/dist/esm/workspace/utils.test.d.ts +2 -0
  807. package/dist/esm/workspace/utils.test.d.ts.map +1 -0
  808. package/dist/esm/workspace/utils.test.js +61 -0
  809. package/package.json +3 -3
  810. package/src/action/schema/operations/sign-up-verification.test.ts.bak +163 -0
  811. package/src/action/schema/operations/sign-up.test.ts.bak +203 -0
  812. package/src/action/schema/operations/user-attribute-verification.test.ts.bak +148 -0
  813. package/src/activity/schema/base.test.ts.bak +291 -0
  814. package/src/activity/schema/schema.test.ts.bak +392 -0
  815. package/src/activity/schema/types/authentication.test.ts.bak +337 -0
  816. package/src/activity/schema/types/authorization.test.ts.bak +379 -0
  817. package/src/activity/schema/types/note.test.ts.bak +367 -0
  818. package/src/activity/schema/types/operation.test.ts.bak +379 -0
  819. package/src/activity/schema/types/unknown.test.ts.bak +304 -0
  820. package/src/app/authorization/schema.test.ts.bak +412 -0
  821. package/src/app/oidc/schema.test.ts.bak +117 -0
  822. package/src/app/registration/schema.test.ts.bak +308 -0
  823. package/src/app/schema.test.ts.bak +221 -0
  824. package/src/association/schema.test.ts.bak +148 -0
  825. package/src/authentication/factors/schema.test.ts.bak +174 -0
  826. package/src/authentication/settings/schema.test.ts.bak +91 -0
  827. package/src/authorization/permissions/schema.test.ts.bak +267 -0
  828. package/src/authorization/roles/schema.test.ts.bak +283 -0
  829. package/src/common/schema/aggregate.test.ts.bak +89 -0
  830. package/src/common/schema/collection.test.ts.bak +116 -0
  831. package/src/common/schema/dates.test.ts.bak +49 -0
  832. package/src/common/schema/id.test.ts.bak +149 -0
  833. package/src/common/schema/jwt.test.ts.bak +61 -0
  834. package/src/common/schema/metadata.test.ts.bak +141 -0
  835. package/src/common/schema/pagination.test.ts.bak +80 -0
  836. package/src/common/schema/schema.test.ts.bak +41 -0
  837. package/src/customer/users/schema.test.ts.bak +138 -0
  838. package/src/identity/schema.test.ts.bak +48 -0
  839. package/src/oauth/token/schema/schema.test.ts.bak +142 -0
  840. package/src/workspace/settings/schema.test.ts.bak +88 -0
  841. package/dist/cjs/action/schema/operations/set-password.d.ts +0 -31
  842. package/dist/cjs/action/schema/operations/set-password.d.ts.map +0 -1
  843. package/dist/cjs/action/schema/operations/set-password.js +0 -18
  844. package/dist/cjs/authentication/strategies/schema/types/password.d.ts +0 -132
  845. package/dist/cjs/authentication/strategies/schema/types/password.d.ts.map +0 -1
  846. package/dist/cjs/authentication/strategies/schema/types/password.js +0 -52
  847. package/dist/cjs/authorization/utils.d.ts +0 -11
  848. package/dist/cjs/authorization/utils.d.ts.map +0 -1
  849. package/dist/cjs/authorization/utils.js +0 -23
  850. package/dist/cjs/customer/schema/organization.d.ts +0 -54
  851. package/dist/cjs/customer/schema/organization.d.ts.map +0 -1
  852. package/dist/cjs/customer/schema/organization.js +0 -40
  853. package/dist/cjs/customer/schema/schema.d.ts +0 -4
  854. package/dist/cjs/customer/schema/schema.d.ts.map +0 -1
  855. package/dist/cjs/customer/schema/schema.js +0 -19
  856. package/dist/cjs/customer/schema/utils.d.ts +0 -11
  857. package/dist/cjs/customer/schema/utils.d.ts.map +0 -1
  858. package/dist/cjs/customer/schema/utils.js +0 -23
  859. package/dist/esm/action/schema/operations/set-password.d.ts +0 -31
  860. package/dist/esm/action/schema/operations/set-password.d.ts.map +0 -1
  861. package/dist/esm/action/schema/operations/set-password.js +0 -15
  862. package/dist/esm/authentication/strategies/schema/types/password.d.ts +0 -132
  863. package/dist/esm/authentication/strategies/schema/types/password.d.ts.map +0 -1
  864. package/dist/esm/authentication/strategies/schema/types/password.js +0 -49
  865. package/dist/esm/authorization/utils.d.ts +0 -11
  866. package/dist/esm/authorization/utils.d.ts.map +0 -1
  867. package/dist/esm/authorization/utils.js +0 -15
  868. package/dist/esm/customer/schema/organization.d.ts +0 -54
  869. package/dist/esm/customer/schema/organization.d.ts.map +0 -1
  870. package/dist/esm/customer/schema/organization.js +0 -37
  871. package/dist/esm/customer/schema/schema.d.ts +0 -4
  872. package/dist/esm/customer/schema/schema.d.ts.map +0 -1
  873. package/dist/esm/customer/schema/schema.js +0 -3
  874. package/dist/esm/customer/schema/utils.d.ts +0 -11
  875. package/dist/esm/customer/schema/utils.d.ts.map +0 -1
  876. package/dist/esm/customer/schema/utils.js +0 -15
@@ -1,3 +1,4 @@
1
+ import * as z from 'zod/v4';
1
2
  export declare const VerifiableAttribute: {
2
3
  readonly EMAIL: "email";
3
4
  readonly PHONE_NUMBER: "phoneNumber";
@@ -9,141 +10,250 @@ 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/internal/methods/object.ts").ObjectType<{
13
- givenName?: string | undefined;
14
- middleName?: string | undefined;
15
- familyName?: string | undefined;
16
- honorificPrefix?: string | undefined;
17
- honorificSuffix?: string | undefined;
18
- }, {}>;
19
- export declare const UpdateUserNamePropertiesSchema: import("arktype/internal/methods/object.ts").ObjectType<{
20
- givenName?: string | null | undefined;
21
- middleName?: string | null | undefined;
22
- familyName?: string | null | undefined;
23
- honorificPrefix?: string | null | undefined;
24
- honorificSuffix?: string | null | undefined;
25
- }, {}>;
26
- export declare const UserIdSchema: import("arktype/internal/methods/string.ts").StringType<string, {}>;
27
- export type UserId = typeof UserIdSchema.inferOut;
28
- export declare const UserIdPropertySchema: import("arktype/internal/methods/object.ts").ObjectType<{
29
- id: string;
30
- }, {}>;
31
- export type UserIdProperty = typeof UserIdPropertySchema.inferOut;
32
- export declare const RequiredEmailSchema: import("arktype/internal/methods/string.ts").StringType<string, {}>;
33
- export declare const RequiredPhoneNumberSchema: import("arktype/internal/methods/string.ts").StringType<string, {}>;
34
- export declare const VerifiedEmailOrPhonePropertiesSchema: import("arktype/internal/methods/object.ts").ObjectType<{
35
- email?: string | undefined;
36
- verifiedEmail?: boolean | undefined;
37
- phoneNumber?: string | undefined;
38
- verifiedPhoneNumber?: boolean | undefined;
39
- }, {}>;
40
- export declare const EmailOrPhonePropertiesSchema: import("arktype/internal/methods/object.ts").ObjectType<{
41
- email?: string | undefined;
42
- phoneNumber?: string | undefined;
43
- }, {}>;
44
- export declare const UserAssociationsSchema: import("arktype/internal/methods/object.ts").ObjectType<{
45
- roles?: string[] | undefined;
46
- }, {}>;
47
- export type UserAssociations = typeof UserAssociationsSchema.inferOut;
48
- export declare const UserSchema: import("arktype/internal/methods/object.ts").ObjectType<{
13
+ export declare const UserStatusSchema: z.ZodEnum<{
14
+ active: "active";
15
+ suspended: "suspended";
16
+ unverified: "unverified";
17
+ }>;
18
+ export declare const UserNamePropertiesSchema: z.ZodObject<{
19
+ givenName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
20
+ middleName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
21
+ familyName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
22
+ honorificPrefix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
23
+ honorificSuffix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
24
+ }, z.core.$strip>;
25
+ export declare const UpdateUserNamePropertiesSchema: z.ZodObject<{
26
+ givenName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
27
+ middleName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
28
+ familyName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
29
+ honorificPrefix: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
30
+ honorificSuffix: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
31
+ }, z.core.$strip>;
32
+ export declare const UserIdPropertySchema: z.ZodObject<{
33
+ id: z.ZodString;
34
+ }, z.core.$strip>;
35
+ export type UserIdProperty = z.output<typeof UserIdPropertySchema>;
36
+ export declare const RequiredEmailSchema: z.ZodEmail;
37
+ export declare const RequiredPhoneNumberSchema: z.ZodE164;
38
+ export declare const VerifiedEmailOrPhonePropertiesSchema: z.ZodObject<{
39
+ verifiedEmail: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
40
+ verifiedPhoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodE164, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
41
+ }, z.core.$strip>;
42
+ export declare const UnverifiedEmailOrPhonePropertiesSchema: z.ZodObject<{
43
+ unverifiedEmail: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
44
+ unverifiedPhoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodE164, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
45
+ }, z.core.$strip>;
46
+ export declare const EmailOrPhonePropertiesSchema: z.ZodObject<{
47
+ email: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
48
+ phoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodE164, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
49
+ }, z.core.$strip>;
50
+ export declare const UserAssociationsSchema: z.ZodObject<{
51
+ roles: z.ZodOptional<z.ZodUnion<readonly [z.ZodUndefined, z.ZodArray<z.ZodString>]>>;
52
+ }, z.core.$strip>;
53
+ export type UserAssociations = z.output<typeof UserAssociationsSchema>;
54
+ export declare const UserSchema: z.ZodPipe<z.ZodObject<{
55
+ 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>>;
56
+ deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
57
+ deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
58
+ updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
59
+ createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
60
+ lastLogin: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
61
+ status: z.ZodEnum<{
62
+ active: "active";
63
+ suspended: "suspended";
64
+ unverified: "unverified";
65
+ }>;
66
+ roles: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
67
+ ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
68
+ count: z.ZodOptional<z.ZodNumber>;
69
+ }, z.core.$strip>, z.ZodUndefined]>>;
70
+ unverifiedEmail: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
71
+ unverifiedPhoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodE164, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
72
+ verifiedEmail: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
73
+ verifiedPhoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodE164, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
74
+ givenName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
75
+ middleName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
76
+ familyName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
77
+ honorificPrefix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
78
+ honorificSuffix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
79
+ id: z.ZodString;
80
+ }, z.core.$strip>, z.ZodTransform<{
81
+ email: string | undefined;
82
+ phoneNumber: string | undefined;
83
+ metadata: Map<string, string | number | boolean>;
84
+ updatedAt: Date;
85
+ createdAt: Date;
86
+ status: "active" | "suspended" | "unverified";
49
87
  id: string;
88
+ deactivatedAt?: Date | undefined;
89
+ deletedAt?: Date | undefined;
90
+ lastLogin?: Date | undefined;
91
+ roles?: {
92
+ ids?: string[] | undefined;
93
+ count?: number | undefined;
94
+ } | undefined;
95
+ unverifiedEmail?: string | undefined;
96
+ unverifiedPhoneNumber?: string | undefined;
97
+ verifiedEmail?: string | undefined;
98
+ verifiedPhoneNumber?: string | undefined;
50
99
  givenName?: string | undefined;
51
100
  middleName?: string | undefined;
52
101
  familyName?: string | undefined;
53
102
  honorificPrefix?: string | undefined;
54
103
  honorificSuffix?: string | undefined;
55
- email?: string | undefined;
56
- verifiedEmail?: boolean | undefined;
57
- phoneNumber?: string | undefined;
58
- verifiedPhoneNumber?: boolean | undefined;
104
+ }, {
105
+ metadata: Map<string, string | number | boolean>;
106
+ updatedAt: Date;
107
+ createdAt: Date;
59
108
  status: "active" | "suspended" | "unverified";
109
+ id: string;
110
+ deactivatedAt?: Date | undefined;
111
+ deletedAt?: Date | undefined;
112
+ lastLogin?: Date | undefined;
60
113
  roles?: {
61
114
  ids?: string[] | undefined;
62
115
  count?: number | undefined;
63
116
  } | undefined;
64
- createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
65
- updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
66
- lastLogin?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
67
- deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
68
- deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
69
- metadata: (In: import("arktype/internal/attributes.ts").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
70
- }, {}>;
71
- export type UserProperties = typeof UserSchema.inferIn;
72
- export type User = typeof UserSchema.inferOut;
73
- export declare const UserPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
74
- id: string;
117
+ unverifiedEmail?: string | undefined;
118
+ unverifiedPhoneNumber?: string | undefined;
119
+ verifiedEmail?: string | undefined;
120
+ verifiedPhoneNumber?: string | undefined;
75
121
  givenName?: string | undefined;
76
122
  middleName?: string | undefined;
77
123
  familyName?: string | undefined;
78
124
  honorificPrefix?: string | undefined;
79
125
  honorificSuffix?: string | undefined;
80
- email?: string | undefined;
81
- verifiedEmail?: boolean | undefined;
82
- phoneNumber?: string | undefined;
83
- verifiedPhoneNumber?: boolean | undefined;
126
+ }>>;
127
+ export type UserProperties = z.input<typeof UserSchema>;
128
+ export type User = z.output<typeof UserSchema>;
129
+ export declare const UserPayloadSchema: z.ZodPipe<z.ZodObject<{
130
+ 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>>>;
131
+ 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>>>;
132
+ 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>>>;
133
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
134
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
135
+ 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>>>;
136
+ status: z.ZodEnum<{
137
+ active: "active";
138
+ suspended: "suspended";
139
+ unverified: "unverified";
140
+ }>;
141
+ roles: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
142
+ ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
143
+ count: z.ZodOptional<z.ZodNumber>;
144
+ }, z.core.$strip>, z.ZodUndefined]>>;
145
+ unverifiedEmail: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
146
+ unverifiedPhoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodE164, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
147
+ verifiedEmail: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
148
+ verifiedPhoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodE164, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
149
+ givenName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
150
+ middleName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
151
+ familyName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
152
+ honorificPrefix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
153
+ honorificSuffix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
154
+ id: z.ZodString;
155
+ }, z.core.$strip>, z.ZodTransform<{
156
+ email: string | undefined;
157
+ phoneNumber: string | undefined;
158
+ updatedAt: string;
159
+ createdAt: string;
84
160
  status: "active" | "suspended" | "unverified";
161
+ id: string;
162
+ metadata?: Record<string, string | number | boolean> | undefined;
163
+ deactivatedAt?: string | undefined;
164
+ deletedAt?: string | undefined;
165
+ lastLogin?: string | undefined;
85
166
  roles?: {
86
167
  ids?: string[] | undefined;
87
168
  count?: number | undefined;
88
169
  } | undefined;
89
- createdAt: (In: string | Date) => import("arktype").Out<string>;
90
- updatedAt: (In: string | Date) => import("arktype").Out<string>;
91
- lastLogin?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
92
- deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
93
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
94
- metadata?: ((In: {
95
- [x: string]: string | number | boolean;
96
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
97
- [x: string]: string | number | boolean;
98
- } | undefined>) | undefined;
99
- }, {}>;
100
- export type UserPayload = typeof UserPayloadSchema.inferOut;
101
- export declare const InsertUserPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
102
- id?: string | undefined;
170
+ unverifiedEmail?: string | undefined;
171
+ unverifiedPhoneNumber?: string | undefined;
172
+ verifiedEmail?: string | undefined;
173
+ verifiedPhoneNumber?: string | undefined;
103
174
  givenName?: string | undefined;
104
175
  middleName?: string | undefined;
105
176
  familyName?: string | undefined;
106
177
  honorificPrefix?: string | undefined;
107
178
  honorificSuffix?: string | undefined;
108
- email?: string | undefined;
109
- verifiedEmail?: boolean | undefined;
110
- phoneNumber?: string | undefined;
111
- verifiedPhoneNumber?: boolean | undefined;
112
- roles?: string[] | undefined;
113
- metadata?: ((In: {
114
- [x: string]: string | number | boolean;
115
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
116
- [x: string]: string | number | boolean;
117
- } | null>) | undefined;
118
- }, {}>;
119
- export type InsertUserInput = typeof InsertUserPayloadSchema.inferIn;
120
- export type InsertUserPayload = typeof InsertUserPayloadSchema.inferOut;
121
- export declare const UpdateUserPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
122
- suspended?: boolean | undefined;
123
- givenName?: string | null | undefined;
124
- middleName?: string | null | undefined;
125
- familyName?: string | null | undefined;
126
- honorificPrefix?: string | null | undefined;
127
- honorificSuffix?: string | null | undefined;
128
- metadata?: ((In: {
129
- [x: string]: string | number | boolean;
130
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
131
- [x: string]: string | number | boolean;
132
- } | null>) | undefined;
133
- }, {}>;
134
- export type UpdateUserInput = typeof UpdateUserPayloadSchema.inferIn;
135
- export type UpdateUserPayload = typeof UpdateUserPayloadSchema.inferOut;
136
- export declare const UserAssociationReferenceSchema: import("arktype/internal/methods/object.ts").ObjectType<{
179
+ }, {
180
+ updatedAt: string;
181
+ createdAt: string;
182
+ status: "active" | "suspended" | "unverified";
137
183
  id: string;
184
+ metadata?: Record<string, string | number | boolean> | undefined;
185
+ deactivatedAt?: string | undefined;
186
+ deletedAt?: string | undefined;
187
+ lastLogin?: string | undefined;
188
+ roles?: {
189
+ ids?: string[] | undefined;
190
+ count?: number | undefined;
191
+ } | undefined;
192
+ unverifiedEmail?: string | undefined;
193
+ unverifiedPhoneNumber?: string | undefined;
194
+ verifiedEmail?: string | undefined;
195
+ verifiedPhoneNumber?: string | undefined;
138
196
  givenName?: string | undefined;
139
197
  middleName?: string | undefined;
140
198
  familyName?: string | undefined;
141
199
  honorificPrefix?: string | undefined;
142
200
  honorificSuffix?: string | undefined;
143
- email?: string | undefined;
144
- phoneNumber?: string | undefined;
145
- status: "active" | "suspended" | "unverified";
146
- model: "User";
147
- }, {}>;
148
- export type UserAssociationReference = typeof UserAssociationReferenceSchema.inferOut;
201
+ }>>;
202
+ export type UserPayload = z.output<typeof UserPayloadSchema>;
203
+ export declare const InsertUserPayloadSchema: z.ZodObject<{
204
+ 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>>>;
205
+ roles: z.ZodOptional<z.ZodUnion<readonly [z.ZodUndefined, z.ZodArray<z.ZodString>]>>;
206
+ unverifiedEmail: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
207
+ unverifiedPhoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodE164, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
208
+ verifiedEmail: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
209
+ verifiedPhoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodE164, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
210
+ givenName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
211
+ middleName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
212
+ familyName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
213
+ honorificPrefix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
214
+ honorificSuffix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
215
+ id: z.ZodOptional<z.ZodString>;
216
+ status: z.ZodOptional<z.ZodEnum<{
217
+ active: "active";
218
+ suspended: "suspended";
219
+ unverified: "unverified";
220
+ }>>;
221
+ }, z.core.$strip>;
222
+ export type InsertUserInput = z.input<typeof InsertUserPayloadSchema>;
223
+ export type InsertUserPayload = z.output<typeof InsertUserPayloadSchema>;
224
+ export declare const UpdateUserPayloadSchema: z.ZodObject<{
225
+ 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>>>;
226
+ unverifiedEmail: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
227
+ unverifiedPhoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodE164, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
228
+ verifiedEmail: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
229
+ verifiedPhoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodE164, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
230
+ givenName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
231
+ middleName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
232
+ familyName: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
233
+ honorificPrefix: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
234
+ honorificSuffix: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>>;
235
+ suspended: z.ZodOptional<z.ZodBoolean>;
236
+ }, z.core.$strip>;
237
+ export type UpdateUserInput = z.input<typeof UpdateUserPayloadSchema>;
238
+ export type UpdateUserPayload = z.output<typeof UpdateUserPayloadSchema>;
239
+ /**
240
+ * Association
241
+ */
242
+ export declare const UserAssociationReferenceSchema: z.ZodObject<{
243
+ status: z.ZodDefault<z.ZodEnum<{
244
+ active: "active";
245
+ suspended: "suspended";
246
+ unverified: "unverified";
247
+ }>>;
248
+ model: z.ZodLiteral<"User">;
249
+ email: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodEmail, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
250
+ phoneNumber: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodE164, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
251
+ givenName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
252
+ middleName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
253
+ familyName: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
254
+ honorificPrefix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
255
+ honorificSuffix: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNull, z.ZodUndefined]>, z.ZodTransform<string | undefined, string | null | undefined>>>;
256
+ id: z.ZodString;
257
+ }, z.core.$strip>;
258
+ export type UserAssociationReference = z.output<typeof UserAssociationReferenceSchema>;
149
259
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/customer/users/schema.ts"],"names":[],"mappings":"AAmBA,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;AAGH,eAAO,MAAM,8BAA8B;;;;;;MAMzC,CAAC;AAGH,eAAO,MAAM,YAAY,qEAAc,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,qEAAuB,CAAC;AACxD,eAAO,MAAM,yBAAyB,qEAAiB,CAAC;AAExD,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;;;;;;;;;;;;;;;;;MAMO,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,KAAK,CAAC,MAAM,QAAQ,CAAC;AA2B5B,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;AAEzE,eAAO,MAAM,gBAAgB;;;;EAAoC,CAAC;AAElE,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,WAAW,CAAC;AAElD,eAAO,MAAM,oCAAoC;;;iBAG/C,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;iBAKjD,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;AAqBvE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIpB,CAAC;AACJ,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;AAY/C,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAI3B,CAAC;AACJ,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAgB7D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;iBAyBhC,CAAC;AACL,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;;;;;;;;;;;;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;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;iBAMzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAC7C,OAAO,8BAA8B,CACtC,CAAC"}
@@ -1,8 +1,10 @@
1
- import { type } from 'arktype';
1
+ import * as z from 'zod/v4';
2
+ import { RoleIdAssociationsSchema } from '../../authorization/schema.js';
2
3
  import { AggregateSchema } from '../../common/schema/aggregate.js';
3
- import { OptionalDatePayloadSchema, OptionalDateSchema, RequiredDatePayloadSchema, RequiredDateSchema, } from '../../common/schema/dates.js';
4
- import { MetadataMapPropertySchema, MetadataPayloadPropertySchema, UpsertMetadataPayloadPropertySchema, } from '../../common/schema/metadata.js';
4
+ import { CreatedAtPropertyPayloadSchema, CreatedAtPropertySchema, DeactivatedAtPropertyPayloadSchema, DeactivatedAtPropertySchema, DeletedAtPropertyPayloadSchema, DeletedAtPropertySchema, OptionalDatePayloadSchema, OptionalDateSchema, UpdatedAtPropertyPayloadSchema, UpdatedAtPropertySchema, } from '../../common/schema/dates.js';
5
+ import { MetadataMapPropertySchema, MetadataPayloadPropertySchema, UpsertMetadataPropertyPayloadSchema, } from '../../common/schema/metadata.js';
5
6
  import { optionallyNullish, optionallyNullishToUndefined, optionallyUndefined, } from '../../common/schema/schema.js';
7
+ import { UserIdSchema } from '../schema.js';
6
8
  export const VerifiableAttribute = {
7
9
  EMAIL: 'email',
8
10
  PHONE_NUMBER: 'phoneNumber',
@@ -12,76 +14,124 @@ export const UserStatus = {
12
14
  SUSPENDED: 'suspended',
13
15
  UNVERIFIED: 'unverified',
14
16
  };
15
- const UserStatusSchema = type.enumerated(UserStatus.ACTIVE, UserStatus.SUSPENDED, UserStatus.UNVERIFIED);
16
- export const UserNamePropertiesSchema = type({
17
- givenName: optionallyNullishToUndefined(type('string')),
18
- middleName: optionallyNullishToUndefined(type('string')),
19
- familyName: optionallyNullishToUndefined(type('string')),
20
- honorificPrefix: optionallyNullishToUndefined(type('string')),
21
- honorificSuffix: optionallyNullishToUndefined(type('string')),
17
+ export const UserStatusSchema = z.enum(Object.values(UserStatus));
18
+ export const UserNamePropertiesSchema = z.object({
19
+ givenName: optionallyNullishToUndefined(z.string()),
20
+ middleName: optionallyNullishToUndefined(z.string()),
21
+ familyName: optionallyNullishToUndefined(z.string()),
22
+ honorificPrefix: optionallyNullishToUndefined(z.string()),
23
+ honorificSuffix: optionallyNullishToUndefined(z.string()),
22
24
  });
23
25
  // export type UserNameProperties = typeof UserNamePropertiesSchema.inferOut;
24
- export const UpdateUserNamePropertiesSchema = type({
25
- givenName: optionallyNullish(type('string')),
26
- middleName: optionallyNullish(type('string')),
27
- familyName: optionallyNullish(type('string')),
28
- honorificPrefix: optionallyNullish(type('string')),
29
- honorificSuffix: optionallyNullish(type('string')),
26
+ export const UpdateUserNamePropertiesSchema = z.object({
27
+ givenName: optionallyNullish(z.string()),
28
+ middleName: optionallyNullish(z.string()),
29
+ familyName: optionallyNullish(z.string()),
30
+ honorificPrefix: optionallyNullish(z.string()),
31
+ honorificSuffix: optionallyNullish(z.string()),
30
32
  });
31
33
  // type UpsertUserNameProperties = typeof UpdateUserNamePropertiesSchema.inferOut;
32
- export const UserIdSchema = type.string;
33
- export const UserIdPropertySchema = type({
34
+ export const UserIdPropertySchema = z.object({
34
35
  id: UserIdSchema,
35
36
  });
36
- export const RequiredEmailSchema = type('string.email');
37
- export const RequiredPhoneNumberSchema = type('string');
38
- export const VerifiedEmailOrPhonePropertiesSchema = type({
39
- email: optionallyNullishToUndefined(RequiredEmailSchema),
40
- verifiedEmail: optionallyNullishToUndefined(type('boolean')),
41
- phoneNumber: optionallyNullishToUndefined(RequiredPhoneNumberSchema),
42
- verifiedPhoneNumber: optionallyNullishToUndefined(type('boolean')),
37
+ export const RequiredEmailSchema = z.email();
38
+ export const RequiredPhoneNumberSchema = z.e164();
39
+ export const VerifiedEmailOrPhonePropertiesSchema = z.object({
40
+ verifiedEmail: optionallyNullishToUndefined(RequiredEmailSchema),
41
+ verifiedPhoneNumber: optionallyNullishToUndefined(RequiredPhoneNumberSchema),
42
+ });
43
+ export const UnverifiedEmailOrPhonePropertiesSchema = z.object({
44
+ unverifiedEmail: optionallyNullishToUndefined(RequiredEmailSchema),
45
+ unverifiedPhoneNumber: optionallyNullishToUndefined(RequiredPhoneNumberSchema),
43
46
  });
44
- export const EmailOrPhonePropertiesSchema = type({
47
+ export const EmailOrPhonePropertiesSchema = z.object({
45
48
  email: optionallyNullishToUndefined(RequiredEmailSchema),
46
49
  phoneNumber: optionallyNullishToUndefined(RequiredPhoneNumberSchema),
47
50
  });
48
- const UserRoleAssociationSchema = type('string[] | undefined');
49
- export const UserAssociationsSchema = type({
50
- roles: UserRoleAssociationSchema.optional(),
51
+ export const UserAssociationsSchema = z.object({
52
+ roles: RoleIdAssociationsSchema.optional(),
51
53
  });
52
- const BaseSchema = UserIdPropertySchema.and(UserNamePropertiesSchema)
53
- .and(VerifiedEmailOrPhonePropertiesSchema)
54
- .and({
54
+ const BaseSchema = z.object({
55
+ ...UserIdPropertySchema.shape,
56
+ ...UserNamePropertiesSchema.shape,
57
+ ...VerifiedEmailOrPhonePropertiesSchema.shape,
58
+ ...UnverifiedEmailOrPhonePropertiesSchema.shape,
55
59
  status: UserStatusSchema,
56
60
  roles: optionallyUndefined(AggregateSchema),
57
61
  });
58
- export const UserSchema = BaseSchema.and({
59
- lastLogin: OptionalDateSchema.optional(),
60
- createdAt: RequiredDateSchema,
61
- updatedAt: RequiredDateSchema,
62
- deletedAt: OptionalDateSchema.optional(),
63
- deactivatedAt: OptionalDateSchema.optional(),
64
- }).and(MetadataMapPropertySchema);
65
- export const UserPayloadSchema = BaseSchema.and({
66
- lastLogin: OptionalDatePayloadSchema.optional(),
67
- createdAt: RequiredDatePayloadSchema,
68
- updatedAt: RequiredDatePayloadSchema,
69
- 'deletedAt?': OptionalDatePayloadSchema,
70
- 'deactivatedAt?': OptionalDatePayloadSchema,
71
- }).and(MetadataPayloadPropertySchema);
72
- export const InsertUserPayloadSchema = type({
62
+ const UserSchemaBase = z.object({
63
+ ...BaseSchema.shape,
64
+ lastLogin: OptionalDateSchema,
65
+ ...CreatedAtPropertySchema.shape,
66
+ ...UpdatedAtPropertySchema.shape,
67
+ ...DeletedAtPropertySchema.shape,
68
+ ...DeactivatedAtPropertySchema.shape,
69
+ ...MetadataMapPropertySchema.shape,
70
+ });
71
+ export const UserSchema = UserSchemaBase.transform((user) => ({
72
+ ...user,
73
+ email: user.verifiedEmail,
74
+ phoneNumber: user.verifiedPhoneNumber,
75
+ }));
76
+ const UserPayloadSchemaBase = z.object({
77
+ ...BaseSchema.shape,
78
+ lastLogin: OptionalDatePayloadSchema,
79
+ ...CreatedAtPropertyPayloadSchema.shape,
80
+ ...UpdatedAtPropertyPayloadSchema.shape,
81
+ ...DeletedAtPropertyPayloadSchema.shape,
82
+ ...DeactivatedAtPropertyPayloadSchema.shape,
83
+ ...MetadataPayloadPropertySchema.shape,
84
+ });
85
+ export const UserPayloadSchema = UserPayloadSchemaBase.transform((user) => ({
86
+ ...user,
87
+ email: user.verifiedEmail,
88
+ phoneNumber: user.verifiedPhoneNumber,
89
+ }));
90
+ const requiredEmailOrPhoneMessage = 'At least one of verifiedEmail, verifiedPhoneNumber, unverifiedEmail, or unverifiedPhoneNumber is required';
91
+ const hasEmailOrPhone = (data) => data.verifiedEmail !== undefined ||
92
+ data.verifiedPhoneNumber !== undefined ||
93
+ data.unverifiedEmail !== undefined ||
94
+ data.unverifiedPhoneNumber !== undefined;
95
+ export const InsertUserPayloadSchema = z
96
+ .object({
73
97
  id: UserIdSchema.optional(),
98
+ status: UserStatusSchema.optional(),
99
+ ...UserNamePropertiesSchema.shape,
100
+ ...VerifiedEmailOrPhonePropertiesSchema.shape,
101
+ ...UnverifiedEmailOrPhonePropertiesSchema.shape,
102
+ ...UserAssociationsSchema.shape,
103
+ ...UpsertMetadataPropertyPayloadSchema.shape,
74
104
  })
75
- .and(UserNamePropertiesSchema)
76
- .and(VerifiedEmailOrPhonePropertiesSchema)
77
- .and(UserAssociationsSchema)
78
- .and(UpsertMetadataPayloadPropertySchema);
79
- export const UpdateUserPayloadSchema = type({
80
- suspended: type.boolean.optional(),
105
+ .refine(hasEmailOrPhone, {
106
+ message: requiredEmailOrPhoneMessage,
107
+ path: ['verifiedEmail'],
81
108
  })
82
- .and(UpdateUserNamePropertiesSchema)
83
- .and(UpsertMetadataPayloadPropertySchema);
84
- export const UserAssociationReferenceSchema = UserIdPropertySchema.and(UserNamePropertiesSchema).and(EmailOrPhonePropertiesSchema.and(type({
85
- status: UserStatusSchema,
86
- model: "'User'",
87
- })));
109
+ .refine(hasEmailOrPhone, {
110
+ message: requiredEmailOrPhoneMessage,
111
+ path: ['verifiedPhoneNumber'],
112
+ })
113
+ .refine(hasEmailOrPhone, {
114
+ message: requiredEmailOrPhoneMessage,
115
+ path: ['unverifiedEmail'],
116
+ })
117
+ .refine(hasEmailOrPhone, {
118
+ message: requiredEmailOrPhoneMessage,
119
+ path: ['unverifiedPhoneNumber'],
120
+ });
121
+ export const UpdateUserPayloadSchema = z.object({
122
+ suspended: z.boolean().optional(),
123
+ ...UpdateUserNamePropertiesSchema.shape,
124
+ ...VerifiedEmailOrPhonePropertiesSchema.shape,
125
+ ...UnverifiedEmailOrPhonePropertiesSchema.shape,
126
+ ...UpsertMetadataPropertyPayloadSchema.shape,
127
+ });
128
+ /**
129
+ * Association
130
+ */
131
+ export const UserAssociationReferenceSchema = z.object({
132
+ ...UserIdPropertySchema.shape,
133
+ ...UserNamePropertiesSchema.shape,
134
+ ...EmailOrPhonePropertiesSchema.shape,
135
+ status: UserStatusSchema.default('unverified'),
136
+ model: z.literal('User'),
137
+ });