@go-mondo/identity-sdk 0.0.2-beta.8 → 0.0.2-beta.80

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