@go-mondo/identity-sdk 0.0.2-beta.9 → 0.0.2-beta.91

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 (630) 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 +575 -0
  6. package/README.md +384 -2
  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 +48 -10
  10. package/dist/cjs/action/schema/base.test.js +50 -35
  11. package/dist/cjs/action/schema/operations/sign-up-verification.d.ts +21 -21
  12. package/dist/cjs/action/schema/operations/sign-up-verification.d.ts.map +1 -1
  13. package/dist/cjs/action/schema/operations/sign-up-verification.js +41 -7
  14. package/dist/cjs/action/schema/operations/sign-up-verification.test.js +28 -29
  15. package/dist/cjs/action/schema/operations/sign-up.d.ts +40 -43
  16. package/dist/cjs/action/schema/operations/sign-up.d.ts.map +1 -1
  17. package/dist/cjs/action/schema/operations/sign-up.js +57 -15
  18. package/dist/cjs/action/schema/operations/sign-up.test.js +33 -34
  19. package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts +19 -19
  20. package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts.map +1 -1
  21. package/dist/cjs/action/schema/operations/user-attribute-verification.js +39 -5
  22. package/dist/cjs/action/schema/operations/user-attribute-verification.test.js +25 -26
  23. package/dist/cjs/action/schema/schema.d.ts +49 -77
  24. package/dist/cjs/action/schema/schema.d.ts.map +1 -1
  25. package/dist/cjs/action/schema/schema.js +7 -5
  26. package/dist/cjs/action/schema/schema.test.js +31 -58
  27. package/dist/cjs/activity/resources.d.ts +3 -3
  28. package/dist/cjs/activity/resources.d.ts.map +1 -1
  29. package/dist/cjs/activity/resources.js +2 -2
  30. package/dist/cjs/activity/resources.test.js +14 -13
  31. package/dist/cjs/activity/schema/base.d.ts +88 -69
  32. package/dist/cjs/activity/schema/base.d.ts.map +1 -1
  33. package/dist/cjs/activity/schema/base.js +71 -26
  34. package/dist/cjs/activity/schema/base.test.js +85 -55
  35. package/dist/cjs/activity/schema/schema.d.ts +293 -226
  36. package/dist/cjs/activity/schema/schema.d.ts.map +1 -1
  37. package/dist/cjs/activity/schema/schema.test.js +47 -48
  38. package/dist/cjs/activity/schema/types/authentication.d.ts +64 -46
  39. package/dist/cjs/activity/schema/types/authentication.d.ts.map +1 -1
  40. package/dist/cjs/activity/schema/types/authentication.js +49 -7
  41. package/dist/cjs/activity/schema/types/authentication.test.js +37 -38
  42. package/dist/cjs/activity/schema/types/authorization.d.ts +64 -46
  43. package/dist/cjs/activity/schema/types/authorization.d.ts.map +1 -1
  44. package/dist/cjs/activity/schema/types/authorization.js +49 -7
  45. package/dist/cjs/activity/schema/types/authorization.test.js +41 -42
  46. package/dist/cjs/activity/schema/types/note.d.ts +83 -70
  47. package/dist/cjs/activity/schema/types/note.d.ts.map +1 -1
  48. package/dist/cjs/activity/schema/types/note.js +53 -12
  49. package/dist/cjs/activity/schema/types/note.test.js +48 -49
  50. package/dist/cjs/activity/schema/types/operation.d.ts +64 -45
  51. package/dist/cjs/activity/schema/types/operation.d.ts.map +1 -1
  52. package/dist/cjs/activity/schema/types/operation.js +52 -8
  53. package/dist/cjs/activity/schema/types/operation.test.js +34 -35
  54. package/dist/cjs/activity/schema/types/unknown.d.ts +50 -41
  55. package/dist/cjs/activity/schema/types/unknown.d.ts.map +1 -1
  56. package/dist/cjs/activity/schema/types/unknown.js +45 -6
  57. package/dist/cjs/activity/schema/types/unknown.test.js +29 -30
  58. package/dist/cjs/app/authorization/resources.d.ts +4 -4
  59. package/dist/cjs/app/authorization/resources.d.ts.map +1 -1
  60. package/dist/cjs/app/authorization/resources.js +2 -6
  61. package/dist/cjs/app/authorization/schema.d.ts +90 -52
  62. package/dist/cjs/app/authorization/schema.d.ts.map +1 -1
  63. package/dist/cjs/app/authorization/schema.js +90 -65
  64. package/dist/cjs/app/authorization/schema.test.js +155 -74
  65. package/dist/cjs/app/oauth/resources.d.ts +4 -4
  66. package/dist/cjs/app/oauth/resources.d.ts.map +1 -1
  67. package/dist/cjs/app/oauth/resources.js +2 -3
  68. package/dist/cjs/app/oauth/schema.d.ts +34 -41
  69. package/dist/cjs/app/oauth/schema.d.ts.map +1 -1
  70. package/dist/cjs/app/oauth/schema.js +56 -17
  71. package/dist/cjs/app/oauth/schema.test.js +39 -40
  72. package/dist/cjs/app/oidc/resources.d.ts +6 -6
  73. package/dist/cjs/app/oidc/resources.d.ts.map +1 -1
  74. package/dist/cjs/app/oidc/resources.js +4 -5
  75. package/dist/cjs/app/oidc/schema.d.ts +26 -37
  76. package/dist/cjs/app/oidc/schema.d.ts.map +1 -1
  77. package/dist/cjs/app/oidc/schema.js +50 -13
  78. package/dist/cjs/app/oidc/schema.test.js +46 -27
  79. package/dist/cjs/app/registration/resources.d.ts +4 -4
  80. package/dist/cjs/app/registration/resources.d.ts.map +1 -1
  81. package/dist/cjs/app/registration/resources.js +2 -3
  82. package/dist/cjs/app/registration/resources.test.js +14 -13
  83. package/dist/cjs/app/registration/schema.d.ts +24 -31
  84. package/dist/cjs/app/registration/schema.d.ts.map +1 -1
  85. package/dist/cjs/app/registration/schema.js +56 -16
  86. package/dist/cjs/app/registration/schema.test.js +68 -150
  87. package/dist/cjs/app/resources.d.ts +7 -7
  88. package/dist/cjs/app/resources.d.ts.map +1 -1
  89. package/dist/cjs/app/resources.js +6 -6
  90. package/dist/cjs/app/resources.test.js +14 -13
  91. package/dist/cjs/app/saml/resources.d.ts +6 -6
  92. package/dist/cjs/app/saml/resources.d.ts.map +1 -1
  93. package/dist/cjs/app/saml/resources.js +4 -5
  94. package/dist/cjs/app/saml/schema.d.ts +26 -37
  95. package/dist/cjs/app/saml/schema.d.ts.map +1 -1
  96. package/dist/cjs/app/saml/schema.js +50 -13
  97. package/dist/cjs/app/schema.d.ts +72 -68
  98. package/dist/cjs/app/schema.d.ts.map +1 -1
  99. package/dist/cjs/app/schema.js +76 -35
  100. package/dist/cjs/app/schema.test.js +128 -42
  101. package/dist/cjs/association/resources.d.ts +5 -5
  102. package/dist/cjs/association/resources.d.ts.map +1 -1
  103. package/dist/cjs/association/resources.js +4 -6
  104. package/dist/cjs/association/schema.d.ts +270 -182
  105. package/dist/cjs/association/schema.d.ts.map +1 -1
  106. package/dist/cjs/association/schema.js +70 -32
  107. package/dist/cjs/association/schema.test.js +13 -54
  108. package/dist/cjs/authentication/factors/schema.d.ts +39 -49
  109. package/dist/cjs/authentication/factors/schema.d.ts.map +1 -1
  110. package/dist/cjs/authentication/factors/schema.js +59 -20
  111. package/dist/cjs/authentication/factors/schema.test.js +33 -34
  112. package/dist/cjs/authentication/index.d.ts +1 -0
  113. package/dist/cjs/authentication/index.d.ts.map +1 -1
  114. package/dist/cjs/authentication/index.js +2 -0
  115. package/dist/cjs/authentication/providers/schema.d.ts +23 -22
  116. package/dist/cjs/authentication/providers/schema.d.ts.map +1 -1
  117. package/dist/cjs/authentication/providers/schema.js +44 -9
  118. package/dist/cjs/authentication/sessions/resources.d.ts +4 -4
  119. package/dist/cjs/authentication/sessions/resources.d.ts.map +1 -1
  120. package/dist/cjs/authentication/sessions/resources.js +3 -3
  121. package/dist/cjs/authentication/sessions/schema.d.ts +96 -74
  122. package/dist/cjs/authentication/sessions/schema.d.ts.map +1 -1
  123. package/dist/cjs/authentication/sessions/schema.js +99 -33
  124. package/dist/cjs/authentication/sessions/schema.test.d.ts +2 -0
  125. package/dist/cjs/authentication/sessions/schema.test.d.ts.map +1 -0
  126. package/dist/cjs/authentication/sessions/schema.test.js +65 -0
  127. package/dist/cjs/authentication/settings/resources.d.ts +4 -4
  128. package/dist/cjs/authentication/settings/resources.d.ts.map +1 -1
  129. package/dist/cjs/authentication/settings/resources.js +2 -3
  130. package/dist/cjs/authentication/settings/schema.d.ts +45 -62
  131. package/dist/cjs/authentication/settings/schema.d.ts.map +1 -1
  132. package/dist/cjs/authentication/settings/schema.js +49 -14
  133. package/dist/cjs/authentication/settings/schema.test.js +409 -22
  134. package/dist/cjs/authentication/strategies/resources.d.ts +9 -8
  135. package/dist/cjs/authentication/strategies/resources.d.ts.map +1 -1
  136. package/dist/cjs/authentication/strategies/resources.js +11 -11
  137. package/dist/cjs/authentication/strategies/schema/base.d.ts +59 -53
  138. package/dist/cjs/authentication/strategies/schema/base.d.ts.map +1 -1
  139. package/dist/cjs/authentication/strategies/schema/base.js +68 -24
  140. package/dist/cjs/authentication/strategies/schema/schema.d.ts +126 -200
  141. package/dist/cjs/authentication/strategies/schema/schema.d.ts.map +1 -1
  142. package/dist/cjs/authentication/strategies/schema/schema.js +39 -6
  143. package/dist/cjs/authentication/strategies/schema/types/email.d.ts +62 -61
  144. package/dist/cjs/authentication/strategies/schema/types/email.d.ts.map +1 -1
  145. package/dist/cjs/authentication/strategies/schema/types/email.js +59 -16
  146. package/dist/cjs/authentication/strategies/schema/types/email.test.js +49 -49
  147. package/dist/cjs/authentication/strategies/schema/types/totp.d.ts +108 -95
  148. package/dist/cjs/authentication/strategies/schema/types/totp.d.ts.map +1 -1
  149. package/dist/cjs/authentication/strategies/schema/types/totp.js +83 -26
  150. package/dist/cjs/authorization/permissions/resources.d.ts +7 -7
  151. package/dist/cjs/authorization/permissions/resources.d.ts.map +1 -1
  152. package/dist/cjs/authorization/permissions/resources.js +6 -6
  153. package/dist/cjs/authorization/permissions/schema.d.ts +92 -88
  154. package/dist/cjs/authorization/permissions/schema.d.ts.map +1 -1
  155. package/dist/cjs/authorization/permissions/schema.js +78 -37
  156. package/dist/cjs/authorization/permissions/schema.test.js +54 -62
  157. package/dist/cjs/authorization/roles/resources.d.ts +7 -7
  158. package/dist/cjs/authorization/roles/resources.d.ts.map +1 -1
  159. package/dist/cjs/authorization/roles/resources.js +6 -6
  160. package/dist/cjs/authorization/roles/schema.d.ts +102 -98
  161. package/dist/cjs/authorization/roles/schema.d.ts.map +1 -1
  162. package/dist/cjs/authorization/roles/schema.js +74 -38
  163. package/dist/cjs/authorization/roles/schema.test.js +55 -62
  164. package/dist/cjs/authorization/schema.d.ts +7 -6
  165. package/dist/cjs/authorization/schema.d.ts.map +1 -1
  166. package/dist/cjs/authorization/schema.js +42 -3
  167. package/dist/cjs/common/index.d.ts +2 -0
  168. package/dist/cjs/common/index.d.ts.map +1 -1
  169. package/dist/cjs/common/resources/authorization.d.ts +18 -1
  170. package/dist/cjs/common/resources/authorization.d.ts.map +1 -1
  171. package/dist/cjs/common/resources/authorization.js +6 -0
  172. package/dist/cjs/common/resources/init.d.ts +28 -11
  173. package/dist/cjs/common/resources/init.d.ts.map +1 -1
  174. package/dist/cjs/common/resources/init.js +81 -21
  175. package/dist/cjs/common/resources/init.test.js +62 -38
  176. package/dist/cjs/common/resources/operations.d.ts +7 -6
  177. package/dist/cjs/common/resources/operations.d.ts.map +1 -1
  178. package/dist/cjs/common/resources/operations.js +44 -21
  179. package/dist/cjs/common/resources/operations.test.js +47 -17
  180. package/dist/cjs/common/resources/utils.d.ts +0 -9
  181. package/dist/cjs/common/resources/utils.d.ts.map +1 -1
  182. package/dist/cjs/common/resources/utils.js +0 -26
  183. package/dist/cjs/common/resources/utils.test.js +2 -31
  184. package/dist/cjs/common/schema/aggregate.d.ts +6 -5
  185. package/dist/cjs/common/schema/aggregate.d.ts.map +1 -1
  186. package/dist/cjs/common/schema/aggregate.js +37 -4
  187. package/dist/cjs/common/schema/aggregate.test.js +21 -22
  188. package/dist/cjs/common/schema/collection.d.ts +13 -14
  189. package/dist/cjs/common/schema/collection.d.ts.map +1 -1
  190. package/dist/cjs/common/schema/collection.js +40 -5
  191. package/dist/cjs/common/schema/collection.test.js +99 -48
  192. package/dist/cjs/common/schema/dates.d.ts +43 -26
  193. package/dist/cjs/common/schema/dates.d.ts.map +1 -1
  194. package/dist/cjs/common/schema/dates.js +63 -12
  195. package/dist/cjs/common/schema/dates.test.js +24 -13
  196. package/dist/cjs/common/schema/id.d.ts +2 -1
  197. package/dist/cjs/common/schema/id.d.ts.map +1 -1
  198. package/dist/cjs/common/schema/id.js +35 -2
  199. package/dist/cjs/common/schema/id.test.js +70 -38
  200. package/dist/cjs/common/schema/jwt.d.ts +22 -14
  201. package/dist/cjs/common/schema/jwt.d.ts.map +1 -1
  202. package/dist/cjs/common/schema/jwt.js +37 -8
  203. package/dist/cjs/common/schema/jwt.test.js +22 -25
  204. package/dist/cjs/common/schema/metadata.d.ts +86 -49
  205. package/dist/cjs/common/schema/metadata.d.ts.map +1 -1
  206. package/dist/cjs/common/schema/metadata.js +154 -75
  207. package/dist/cjs/common/schema/metadata.test.js +198 -67
  208. package/dist/cjs/common/schema/pagination.d.ts +15 -5
  209. package/dist/cjs/common/schema/pagination.d.ts.map +1 -1
  210. package/dist/cjs/common/schema/pagination.js +46 -4
  211. package/dist/cjs/common/schema/pagination.test.js +55 -36
  212. package/dist/cjs/common/schema/schema.d.ts +4 -4
  213. package/dist/cjs/common/schema/schema.d.ts.map +1 -1
  214. package/dist/cjs/common/schema/schema.js +28 -5
  215. package/dist/cjs/common/schema/schema.test.js +42 -15
  216. package/dist/cjs/common/schema/sets.d.ts +6 -2
  217. package/dist/cjs/common/schema/sets.d.ts.map +1 -1
  218. package/dist/cjs/common/schema/sets.js +50 -7
  219. package/dist/cjs/common/schema/url.d.ts +21 -0
  220. package/dist/cjs/common/schema/url.d.ts.map +1 -1
  221. package/dist/cjs/common/schema/url.js +79 -0
  222. package/dist/cjs/common/schema/url.test.js +10 -0
  223. package/dist/cjs/customer/organization/schema.d.ts +59 -46
  224. package/dist/cjs/customer/organization/schema.d.ts.map +1 -1
  225. package/dist/cjs/customer/organization/schema.js +76 -26
  226. package/dist/cjs/customer/schema.d.ts +7 -6
  227. package/dist/cjs/customer/schema.d.ts.map +1 -1
  228. package/dist/cjs/customer/schema.js +42 -3
  229. package/dist/cjs/customer/users/resources.d.ts +7 -7
  230. package/dist/cjs/customer/users/resources.d.ts.map +1 -1
  231. package/dist/cjs/customer/users/resources.js +6 -6
  232. package/dist/cjs/customer/users/schema.d.ts +213 -104
  233. package/dist/cjs/customer/users/schema.d.ts.map +1 -1
  234. package/dist/cjs/customer/users/schema.js +141 -56
  235. package/dist/cjs/customer/users/schema.test.js +591 -60
  236. package/dist/cjs/customer/users/utils.d.ts +3 -2
  237. package/dist/cjs/customer/users/utils.d.ts.map +1 -1
  238. package/dist/cjs/identity/schema.d.ts +5 -1
  239. package/dist/cjs/identity/schema.d.ts.map +1 -1
  240. package/dist/cjs/identity/schema.js +38 -2
  241. package/dist/cjs/identity/schema.test.js +21 -16
  242. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.d.ts +34 -28
  243. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.d.ts.map +1 -1
  244. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.js +93 -38
  245. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.test.js +47 -48
  246. package/dist/cjs/oauth/authorize/schema/grants/common.d.ts +6 -0
  247. package/dist/cjs/oauth/authorize/schema/grants/common.d.ts.map +1 -0
  248. package/dist/cjs/oauth/authorize/schema/grants/common.js +47 -0
  249. package/dist/cjs/oauth/authorize/schema/grants/implicit.d.ts +18 -10
  250. package/dist/cjs/oauth/authorize/schema/grants/implicit.d.ts.map +1 -1
  251. package/dist/cjs/oauth/authorize/schema/grants/implicit.js +56 -11
  252. package/dist/cjs/oauth/authorize/schema/schema.d.ts +48 -36
  253. package/dist/cjs/oauth/authorize/schema/schema.d.ts.map +1 -1
  254. package/dist/cjs/oauth/authorize/schema/schema.js +4 -2
  255. package/dist/cjs/oauth/common/schema.d.ts +24 -7
  256. package/dist/cjs/oauth/common/schema.d.ts.map +1 -1
  257. package/dist/cjs/oauth/common/schema.js +59 -8
  258. package/dist/cjs/oauth/common/schema.test.js +22 -30
  259. package/dist/cjs/oauth/index.d.ts +3 -3
  260. package/dist/cjs/oauth/index.d.ts.map +1 -1
  261. package/dist/cjs/oauth/index.js +8 -25
  262. package/dist/cjs/oauth/token/schema/grants/authorization-code.d.ts +16 -9
  263. package/dist/cjs/oauth/token/schema/grants/authorization-code.d.ts.map +1 -1
  264. package/dist/cjs/oauth/token/schema/grants/authorization-code.js +66 -12
  265. package/dist/cjs/oauth/token/schema/grants/client-credentials.d.ts +16 -17
  266. package/dist/cjs/oauth/token/schema/grants/client-credentials.d.ts.map +1 -1
  267. package/dist/cjs/oauth/token/schema/grants/client-credentials.js +53 -16
  268. package/dist/cjs/oauth/token/schema/grants/common.d.ts +6 -0
  269. package/dist/cjs/oauth/token/schema/grants/common.d.ts.map +1 -0
  270. package/dist/cjs/oauth/token/schema/grants/common.js +52 -0
  271. package/dist/cjs/oauth/token/schema/grants/refresh-token.d.ts +15 -8
  272. package/dist/cjs/oauth/token/schema/grants/refresh-token.d.ts.map +1 -1
  273. package/dist/cjs/oauth/token/schema/grants/refresh-token.js +57 -11
  274. package/dist/cjs/oauth/token/schema/schema.d.ts +48 -21
  275. package/dist/cjs/oauth/token/schema/schema.d.ts.map +1 -1
  276. package/dist/cjs/oauth/token/schema/schema.js +79 -2
  277. package/dist/cjs/oauth/token/schema/schema.test.js +44 -28
  278. package/dist/cjs/workspace/authorization/schema.d.ts +62 -27
  279. package/dist/cjs/workspace/authorization/schema.d.ts.map +1 -1
  280. package/dist/cjs/workspace/authorization/schema.js +58 -13
  281. package/dist/cjs/workspace/branding/schema.d.ts +47 -37
  282. package/dist/cjs/workspace/branding/schema.d.ts.map +1 -1
  283. package/dist/cjs/workspace/branding/schema.js +61 -16
  284. package/dist/cjs/workspace/membership/schema.d.ts +42 -20
  285. package/dist/cjs/workspace/membership/schema.d.ts.map +1 -1
  286. package/dist/cjs/workspace/membership/schema.js +47 -7
  287. package/dist/cjs/workspace/registration/schema.d.ts +41 -27
  288. package/dist/cjs/workspace/registration/schema.d.ts.map +1 -1
  289. package/dist/cjs/workspace/registration/schema.js +63 -14
  290. package/dist/cjs/workspace/settings/schema.d.ts +20 -19
  291. package/dist/cjs/workspace/settings/schema.d.ts.map +1 -1
  292. package/dist/cjs/workspace/settings/schema.js +48 -8
  293. package/dist/cjs/workspace/settings/schema.test.js +18 -19
  294. package/dist/cjs/workspace/tenant/schema.d.ts +88 -57
  295. package/dist/cjs/workspace/tenant/schema.d.ts.map +1 -1
  296. package/dist/cjs/workspace/tenant/schema.js +59 -13
  297. package/dist/cjs/workspace/tenant/schema.test.d.ts +2 -0
  298. package/dist/cjs/workspace/tenant/schema.test.d.ts.map +1 -0
  299. package/dist/cjs/workspace/tenant/schema.test.js +235 -0
  300. package/dist/cjs/workspace/user/notifications/schema.d.ts +70 -56
  301. package/dist/cjs/workspace/user/notifications/schema.d.ts.map +1 -1
  302. package/dist/cjs/workspace/user/notifications/schema.js +76 -30
  303. package/dist/cjs/workspace/user/preferences/schema.d.ts +29 -25
  304. package/dist/cjs/workspace/user/preferences/schema.d.ts.map +1 -1
  305. package/dist/cjs/workspace/user/preferences/schema.js +57 -12
  306. package/dist/esm/action/schema/base.d.ts +21 -21
  307. package/dist/esm/action/schema/base.d.ts.map +1 -1
  308. package/dist/esm/action/schema/base.js +17 -12
  309. package/dist/esm/action/schema/base.test.js +51 -36
  310. package/dist/esm/action/schema/operations/sign-up-verification.d.ts +21 -21
  311. package/dist/esm/action/schema/operations/sign-up-verification.d.ts.map +1 -1
  312. package/dist/esm/action/schema/operations/sign-up-verification.js +8 -7
  313. package/dist/esm/action/schema/operations/sign-up-verification.test.js +28 -29
  314. package/dist/esm/action/schema/operations/sign-up.d.ts +40 -43
  315. package/dist/esm/action/schema/operations/sign-up.d.ts.map +1 -1
  316. package/dist/esm/action/schema/operations/sign-up.js +19 -10
  317. package/dist/esm/action/schema/operations/sign-up.test.js +33 -34
  318. package/dist/esm/action/schema/operations/user-attribute-verification.d.ts +19 -19
  319. package/dist/esm/action/schema/operations/user-attribute-verification.d.ts.map +1 -1
  320. package/dist/esm/action/schema/operations/user-attribute-verification.js +6 -5
  321. package/dist/esm/action/schema/operations/user-attribute-verification.test.js +25 -26
  322. package/dist/esm/action/schema/schema.d.ts +49 -77
  323. package/dist/esm/action/schema/schema.d.ts.map +1 -1
  324. package/dist/esm/action/schema/schema.js +7 -5
  325. package/dist/esm/action/schema/schema.test.js +24 -51
  326. package/dist/esm/activity/resources.d.ts +3 -3
  327. package/dist/esm/activity/resources.d.ts.map +1 -1
  328. package/dist/esm/activity/resources.js +4 -4
  329. package/dist/esm/activity/resources.test.js +14 -13
  330. package/dist/esm/activity/schema/base.d.ts +88 -69
  331. package/dist/esm/activity/schema/base.d.ts.map +1 -1
  332. package/dist/esm/activity/schema/base.js +38 -26
  333. package/dist/esm/activity/schema/base.test.js +85 -55
  334. package/dist/esm/activity/schema/schema.d.ts +293 -226
  335. package/dist/esm/activity/schema/schema.d.ts.map +1 -1
  336. package/dist/esm/activity/schema/schema.test.js +47 -48
  337. package/dist/esm/activity/schema/types/authentication.d.ts +64 -46
  338. package/dist/esm/activity/schema/types/authentication.d.ts.map +1 -1
  339. package/dist/esm/activity/schema/types/authentication.js +16 -7
  340. package/dist/esm/activity/schema/types/authentication.test.js +37 -38
  341. package/dist/esm/activity/schema/types/authorization.d.ts +64 -46
  342. package/dist/esm/activity/schema/types/authorization.d.ts.map +1 -1
  343. package/dist/esm/activity/schema/types/authorization.js +16 -7
  344. package/dist/esm/activity/schema/types/authorization.test.js +41 -42
  345. package/dist/esm/activity/schema/types/note.d.ts +83 -70
  346. package/dist/esm/activity/schema/types/note.d.ts.map +1 -1
  347. package/dist/esm/activity/schema/types/note.js +20 -12
  348. package/dist/esm/activity/schema/types/note.test.js +48 -49
  349. package/dist/esm/activity/schema/types/operation.d.ts +64 -45
  350. package/dist/esm/activity/schema/types/operation.d.ts.map +1 -1
  351. package/dist/esm/activity/schema/types/operation.js +19 -8
  352. package/dist/esm/activity/schema/types/operation.test.js +34 -35
  353. package/dist/esm/activity/schema/types/unknown.d.ts +50 -41
  354. package/dist/esm/activity/schema/types/unknown.d.ts.map +1 -1
  355. package/dist/esm/activity/schema/types/unknown.js +12 -6
  356. package/dist/esm/activity/schema/types/unknown.test.js +29 -30
  357. package/dist/esm/app/authorization/resources.d.ts +4 -4
  358. package/dist/esm/app/authorization/resources.d.ts.map +1 -1
  359. package/dist/esm/app/authorization/resources.js +3 -7
  360. package/dist/esm/app/authorization/schema.d.ts +90 -52
  361. package/dist/esm/app/authorization/schema.d.ts.map +1 -1
  362. package/dist/esm/app/authorization/schema.js +58 -66
  363. package/dist/esm/app/authorization/schema.test.js +155 -74
  364. package/dist/esm/app/oauth/resources.d.ts +4 -4
  365. package/dist/esm/app/oauth/resources.d.ts.map +1 -1
  366. package/dist/esm/app/oauth/resources.js +3 -4
  367. package/dist/esm/app/oauth/schema.d.ts +34 -41
  368. package/dist/esm/app/oauth/schema.d.ts.map +1 -1
  369. package/dist/esm/app/oauth/schema.js +25 -19
  370. package/dist/esm/app/oauth/schema.test.js +39 -40
  371. package/dist/esm/app/oidc/resources.d.ts +6 -6
  372. package/dist/esm/app/oidc/resources.d.ts.map +1 -1
  373. package/dist/esm/app/oidc/resources.js +5 -6
  374. package/dist/esm/app/oidc/schema.d.ts +26 -37
  375. package/dist/esm/app/oidc/schema.d.ts.map +1 -1
  376. package/dist/esm/app/oidc/schema.js +19 -15
  377. package/dist/esm/app/oidc/schema.test.js +46 -27
  378. package/dist/esm/app/registration/resources.d.ts +4 -4
  379. package/dist/esm/app/registration/resources.d.ts.map +1 -1
  380. package/dist/esm/app/registration/resources.js +3 -4
  381. package/dist/esm/app/registration/resources.test.js +14 -13
  382. package/dist/esm/app/registration/schema.d.ts +24 -31
  383. package/dist/esm/app/registration/schema.d.ts.map +1 -1
  384. package/dist/esm/app/registration/schema.js +25 -18
  385. package/dist/esm/app/registration/schema.test.js +68 -150
  386. package/dist/esm/app/resources.d.ts +7 -7
  387. package/dist/esm/app/resources.d.ts.map +1 -1
  388. package/dist/esm/app/resources.js +8 -8
  389. package/dist/esm/app/resources.test.js +14 -13
  390. package/dist/esm/app/saml/resources.d.ts +6 -6
  391. package/dist/esm/app/saml/resources.d.ts.map +1 -1
  392. package/dist/esm/app/saml/resources.js +5 -6
  393. package/dist/esm/app/saml/schema.d.ts +26 -37
  394. package/dist/esm/app/saml/schema.d.ts.map +1 -1
  395. package/dist/esm/app/saml/schema.js +19 -15
  396. package/dist/esm/app/schema.d.ts +72 -68
  397. package/dist/esm/app/schema.d.ts.map +1 -1
  398. package/dist/esm/app/schema.js +45 -37
  399. package/dist/esm/app/schema.test.js +129 -43
  400. package/dist/esm/association/resources.d.ts +5 -5
  401. package/dist/esm/association/resources.d.ts.map +1 -1
  402. package/dist/esm/association/resources.js +6 -8
  403. package/dist/esm/association/schema.d.ts +270 -182
  404. package/dist/esm/association/schema.d.ts.map +1 -1
  405. package/dist/esm/association/schema.js +36 -31
  406. package/dist/esm/association/schema.test.js +14 -55
  407. package/dist/esm/authentication/factors/schema.d.ts +39 -49
  408. package/dist/esm/authentication/factors/schema.d.ts.map +1 -1
  409. package/dist/esm/authentication/factors/schema.js +26 -20
  410. package/dist/esm/authentication/factors/schema.test.js +33 -34
  411. package/dist/esm/authentication/index.d.ts +1 -0
  412. package/dist/esm/authentication/index.d.ts.map +1 -1
  413. package/dist/esm/authentication/index.js +2 -0
  414. package/dist/esm/authentication/providers/schema.d.ts +23 -22
  415. package/dist/esm/authentication/providers/schema.d.ts.map +1 -1
  416. package/dist/esm/authentication/providers/schema.js +13 -11
  417. package/dist/esm/authentication/sessions/resources.d.ts +4 -4
  418. package/dist/esm/authentication/sessions/resources.d.ts.map +1 -1
  419. package/dist/esm/authentication/sessions/resources.js +5 -5
  420. package/dist/esm/authentication/sessions/schema.d.ts +96 -74
  421. package/dist/esm/authentication/sessions/schema.d.ts.map +1 -1
  422. package/dist/esm/authentication/sessions/schema.js +67 -34
  423. package/dist/esm/authentication/sessions/schema.test.d.ts +2 -0
  424. package/dist/esm/authentication/sessions/schema.test.d.ts.map +1 -0
  425. package/dist/esm/authentication/sessions/schema.test.js +63 -0
  426. package/dist/esm/authentication/settings/resources.d.ts +4 -4
  427. package/dist/esm/authentication/settings/resources.d.ts.map +1 -1
  428. package/dist/esm/authentication/settings/resources.js +3 -4
  429. package/dist/esm/authentication/settings/schema.d.ts +45 -62
  430. package/dist/esm/authentication/settings/schema.d.ts.map +1 -1
  431. package/dist/esm/authentication/settings/schema.js +18 -16
  432. package/dist/esm/authentication/settings/schema.test.js +409 -22
  433. package/dist/esm/authentication/strategies/resources.d.ts +9 -8
  434. package/dist/esm/authentication/strategies/resources.d.ts.map +1 -1
  435. package/dist/esm/authentication/strategies/resources.js +13 -13
  436. package/dist/esm/authentication/strategies/schema/base.d.ts +59 -53
  437. package/dist/esm/authentication/strategies/schema/base.d.ts.map +1 -1
  438. package/dist/esm/authentication/strategies/schema/base.js +36 -25
  439. package/dist/esm/authentication/strategies/schema/schema.d.ts +126 -200
  440. package/dist/esm/authentication/strategies/schema/schema.d.ts.map +1 -1
  441. package/dist/esm/authentication/strategies/schema/schema.js +17 -6
  442. package/dist/esm/authentication/strategies/schema/types/email.d.ts +62 -61
  443. package/dist/esm/authentication/strategies/schema/types/email.d.ts.map +1 -1
  444. package/dist/esm/authentication/strategies/schema/types/email.js +25 -15
  445. package/dist/esm/authentication/strategies/schema/types/email.test.js +49 -49
  446. package/dist/esm/authentication/strategies/schema/types/totp.d.ts +108 -95
  447. package/dist/esm/authentication/strategies/schema/types/totp.d.ts.map +1 -1
  448. package/dist/esm/authentication/strategies/schema/types/totp.js +51 -27
  449. package/dist/esm/authorization/permissions/resources.d.ts +7 -7
  450. package/dist/esm/authorization/permissions/resources.d.ts.map +1 -1
  451. package/dist/esm/authorization/permissions/resources.js +8 -8
  452. package/dist/esm/authorization/permissions/schema.d.ts +92 -88
  453. package/dist/esm/authorization/permissions/schema.d.ts.map +1 -1
  454. package/dist/esm/authorization/permissions/schema.js +47 -39
  455. package/dist/esm/authorization/permissions/schema.test.js +54 -62
  456. package/dist/esm/authorization/roles/resources.d.ts +7 -7
  457. package/dist/esm/authorization/roles/resources.d.ts.map +1 -1
  458. package/dist/esm/authorization/roles/resources.js +8 -8
  459. package/dist/esm/authorization/roles/schema.d.ts +102 -98
  460. package/dist/esm/authorization/roles/schema.d.ts.map +1 -1
  461. package/dist/esm/authorization/roles/schema.js +43 -40
  462. package/dist/esm/authorization/roles/schema.test.js +55 -62
  463. package/dist/esm/authorization/schema.d.ts +7 -6
  464. package/dist/esm/authorization/schema.d.ts.map +1 -1
  465. package/dist/esm/authorization/schema.js +9 -3
  466. package/dist/esm/common/index.d.ts +2 -0
  467. package/dist/esm/common/index.d.ts.map +1 -1
  468. package/dist/esm/common/resources/authorization.d.ts +18 -1
  469. package/dist/esm/common/resources/authorization.d.ts.map +1 -1
  470. package/dist/esm/common/resources/authorization.js +5 -1
  471. package/dist/esm/common/resources/init.d.ts +28 -11
  472. package/dist/esm/common/resources/init.d.ts.map +1 -1
  473. package/dist/esm/common/resources/init.js +47 -21
  474. package/dist/esm/common/resources/init.test.js +63 -39
  475. package/dist/esm/common/resources/operations.d.ts +7 -6
  476. package/dist/esm/common/resources/operations.d.ts.map +1 -1
  477. package/dist/esm/common/resources/operations.js +41 -19
  478. package/dist/esm/common/resources/operations.test.js +48 -18
  479. package/dist/esm/common/resources/utils.d.ts +0 -9
  480. package/dist/esm/common/resources/utils.d.ts.map +1 -1
  481. package/dist/esm/common/resources/utils.js +0 -24
  482. package/dist/esm/common/resources/utils.test.js +3 -32
  483. package/dist/esm/common/schema/aggregate.d.ts +6 -5
  484. package/dist/esm/common/schema/aggregate.d.ts.map +1 -1
  485. package/dist/esm/common/schema/aggregate.js +4 -4
  486. package/dist/esm/common/schema/aggregate.test.js +21 -22
  487. package/dist/esm/common/schema/collection.d.ts +13 -14
  488. package/dist/esm/common/schema/collection.d.ts.map +1 -1
  489. package/dist/esm/common/schema/collection.js +5 -5
  490. package/dist/esm/common/schema/collection.test.js +66 -48
  491. package/dist/esm/common/schema/dates.d.ts +43 -26
  492. package/dist/esm/common/schema/dates.d.ts.map +1 -1
  493. package/dist/esm/common/schema/dates.js +29 -11
  494. package/dist/esm/common/schema/dates.test.js +24 -13
  495. package/dist/esm/common/schema/id.d.ts +2 -1
  496. package/dist/esm/common/schema/id.d.ts.map +1 -1
  497. package/dist/esm/common/schema/id.js +2 -2
  498. package/dist/esm/common/schema/id.test.js +70 -38
  499. package/dist/esm/common/schema/jwt.d.ts +22 -14
  500. package/dist/esm/common/schema/jwt.d.ts.map +1 -1
  501. package/dist/esm/common/schema/jwt.js +3 -7
  502. package/dist/esm/common/schema/jwt.test.js +22 -25
  503. package/dist/esm/common/schema/metadata.d.ts +86 -49
  504. package/dist/esm/common/schema/metadata.d.ts.map +1 -1
  505. package/dist/esm/common/schema/metadata.js +120 -74
  506. package/dist/esm/common/schema/metadata.test.js +199 -68
  507. package/dist/esm/common/schema/pagination.d.ts +15 -5
  508. package/dist/esm/common/schema/pagination.d.ts.map +1 -1
  509. package/dist/esm/common/schema/pagination.js +13 -4
  510. package/dist/esm/common/schema/pagination.test.js +55 -36
  511. package/dist/esm/common/schema/schema.d.ts +4 -4
  512. package/dist/esm/common/schema/schema.d.ts.map +1 -1
  513. package/dist/esm/common/schema/schema.js +6 -5
  514. package/dist/esm/common/schema/schema.test.js +9 -15
  515. package/dist/esm/common/schema/sets.d.ts +6 -2
  516. package/dist/esm/common/schema/sets.d.ts.map +1 -1
  517. package/dist/esm/common/schema/sets.js +16 -6
  518. package/dist/esm/common/schema/url.d.ts +21 -0
  519. package/dist/esm/common/schema/url.d.ts.map +1 -1
  520. package/dist/esm/common/schema/url.js +45 -0
  521. package/dist/esm/common/schema/url.test.js +11 -1
  522. package/dist/esm/customer/organization/schema.d.ts +59 -46
  523. package/dist/esm/customer/organization/schema.d.ts.map +1 -1
  524. package/dist/esm/customer/organization/schema.js +43 -26
  525. package/dist/esm/customer/schema.d.ts +7 -6
  526. package/dist/esm/customer/schema.d.ts.map +1 -1
  527. package/dist/esm/customer/schema.js +9 -3
  528. package/dist/esm/customer/users/resources.d.ts +7 -7
  529. package/dist/esm/customer/users/resources.d.ts.map +1 -1
  530. package/dist/esm/customer/users/resources.js +8 -8
  531. package/dist/esm/customer/users/schema.d.ts +213 -104
  532. package/dist/esm/customer/users/schema.d.ts.map +1 -1
  533. package/dist/esm/customer/users/schema.js +107 -55
  534. package/dist/esm/customer/users/schema.test.js +592 -61
  535. package/dist/esm/customer/users/utils.d.ts +3 -2
  536. package/dist/esm/customer/users/utils.d.ts.map +1 -1
  537. package/dist/esm/customer/users/utils.test.js +1 -1
  538. package/dist/esm/identity/schema.d.ts +5 -1
  539. package/dist/esm/identity/schema.d.ts.map +1 -1
  540. package/dist/esm/identity/schema.js +5 -2
  541. package/dist/esm/identity/schema.test.js +21 -16
  542. package/dist/esm/oauth/authorize/schema/grants/authorization-code.d.ts +34 -28
  543. package/dist/esm/oauth/authorize/schema/grants/authorization-code.d.ts.map +1 -1
  544. package/dist/esm/oauth/authorize/schema/grants/authorization-code.js +60 -38
  545. package/dist/esm/oauth/authorize/schema/grants/authorization-code.test.js +48 -49
  546. package/dist/esm/oauth/authorize/schema/grants/common.d.ts +6 -0
  547. package/dist/esm/oauth/authorize/schema/grants/common.d.ts.map +1 -0
  548. package/dist/esm/oauth/authorize/schema/grants/common.js +11 -0
  549. package/dist/esm/oauth/authorize/schema/grants/implicit.d.ts +18 -10
  550. package/dist/esm/oauth/authorize/schema/grants/implicit.d.ts.map +1 -1
  551. package/dist/esm/oauth/authorize/schema/grants/implicit.js +22 -10
  552. package/dist/esm/oauth/authorize/schema/schema.d.ts +48 -36
  553. package/dist/esm/oauth/authorize/schema/schema.d.ts.map +1 -1
  554. package/dist/esm/oauth/authorize/schema/schema.js +4 -3
  555. package/dist/esm/oauth/common/schema.d.ts +24 -7
  556. package/dist/esm/oauth/common/schema.d.ts.map +1 -1
  557. package/dist/esm/oauth/common/schema.js +25 -7
  558. package/dist/esm/oauth/common/schema.test.js +23 -31
  559. package/dist/esm/oauth/index.d.ts +3 -3
  560. package/dist/esm/oauth/index.d.ts.map +1 -1
  561. package/dist/esm/oauth/index.js +3 -3
  562. package/dist/esm/oauth/token/schema/grants/authorization-code.d.ts +16 -9
  563. package/dist/esm/oauth/token/schema/grants/authorization-code.d.ts.map +1 -1
  564. package/dist/esm/oauth/token/schema/grants/authorization-code.js +32 -11
  565. package/dist/esm/oauth/token/schema/grants/client-credentials.d.ts +16 -17
  566. package/dist/esm/oauth/token/schema/grants/client-credentials.d.ts.map +1 -1
  567. package/dist/esm/oauth/token/schema/grants/client-credentials.js +19 -15
  568. package/dist/esm/oauth/token/schema/grants/common.d.ts +6 -0
  569. package/dist/esm/oauth/token/schema/grants/common.d.ts.map +1 -0
  570. package/dist/esm/oauth/token/schema/grants/common.js +16 -0
  571. package/dist/esm/oauth/token/schema/grants/refresh-token.d.ts +15 -8
  572. package/dist/esm/oauth/token/schema/grants/refresh-token.d.ts.map +1 -1
  573. package/dist/esm/oauth/token/schema/grants/refresh-token.js +23 -10
  574. package/dist/esm/oauth/token/schema/schema.d.ts +48 -21
  575. package/dist/esm/oauth/token/schema/schema.d.ts.map +1 -1
  576. package/dist/esm/oauth/token/schema/schema.js +59 -4
  577. package/dist/esm/oauth/token/schema/schema.test.js +45 -29
  578. package/dist/esm/workspace/authorization/schema.d.ts +62 -27
  579. package/dist/esm/workspace/authorization/schema.d.ts.map +1 -1
  580. package/dist/esm/workspace/authorization/schema.js +27 -15
  581. package/dist/esm/workspace/branding/schema.d.ts +47 -37
  582. package/dist/esm/workspace/branding/schema.d.ts.map +1 -1
  583. package/dist/esm/workspace/branding/schema.js +29 -17
  584. package/dist/esm/workspace/membership/schema.d.ts +42 -20
  585. package/dist/esm/workspace/membership/schema.d.ts.map +1 -1
  586. package/dist/esm/workspace/membership/schema.js +14 -7
  587. package/dist/esm/workspace/registration/schema.d.ts +41 -27
  588. package/dist/esm/workspace/registration/schema.d.ts.map +1 -1
  589. package/dist/esm/workspace/registration/schema.js +32 -16
  590. package/dist/esm/workspace/settings/schema.d.ts +20 -19
  591. package/dist/esm/workspace/settings/schema.d.ts.map +1 -1
  592. package/dist/esm/workspace/settings/schema.js +16 -9
  593. package/dist/esm/workspace/settings/schema.test.js +18 -19
  594. package/dist/esm/workspace/tenant/schema.d.ts +88 -57
  595. package/dist/esm/workspace/tenant/schema.d.ts.map +1 -1
  596. package/dist/esm/workspace/tenant/schema.js +26 -13
  597. package/dist/esm/workspace/tenant/schema.test.d.ts +2 -0
  598. package/dist/esm/workspace/tenant/schema.test.d.ts.map +1 -0
  599. package/dist/esm/workspace/tenant/schema.test.js +233 -0
  600. package/dist/esm/workspace/user/notifications/schema.d.ts +70 -56
  601. package/dist/esm/workspace/user/notifications/schema.d.ts.map +1 -1
  602. package/dist/esm/workspace/user/notifications/schema.js +42 -29
  603. package/dist/esm/workspace/user/preferences/schema.d.ts +29 -25
  604. package/dist/esm/workspace/user/preferences/schema.d.ts.map +1 -1
  605. package/dist/esm/workspace/user/preferences/schema.js +25 -13
  606. package/package.json +3 -3
  607. package/dist/cjs/action/schema/operations/set-password.d.ts +0 -31
  608. package/dist/cjs/action/schema/operations/set-password.d.ts.map +0 -1
  609. package/dist/cjs/action/schema/operations/set-password.js +0 -18
  610. package/dist/cjs/action/schema/operations/set-password.test.d.ts +0 -2
  611. package/dist/cjs/action/schema/operations/set-password.test.d.ts.map +0 -1
  612. package/dist/cjs/action/schema/operations/set-password.test.js +0 -167
  613. package/dist/cjs/authentication/strategies/schema/types/password.d.ts +0 -132
  614. package/dist/cjs/authentication/strategies/schema/types/password.d.ts.map +0 -1
  615. package/dist/cjs/authentication/strategies/schema/types/password.js +0 -52
  616. package/dist/cjs/common/schema/sets.test.d.ts +0 -2
  617. package/dist/cjs/common/schema/sets.test.d.ts.map +0 -1
  618. package/dist/cjs/common/schema/sets.test.js +0 -84
  619. package/dist/esm/action/schema/operations/set-password.d.ts +0 -31
  620. package/dist/esm/action/schema/operations/set-password.d.ts.map +0 -1
  621. package/dist/esm/action/schema/operations/set-password.js +0 -15
  622. package/dist/esm/action/schema/operations/set-password.test.d.ts +0 -2
  623. package/dist/esm/action/schema/operations/set-password.test.d.ts.map +0 -1
  624. package/dist/esm/action/schema/operations/set-password.test.js +0 -165
  625. package/dist/esm/authentication/strategies/schema/types/password.d.ts +0 -132
  626. package/dist/esm/authentication/strategies/schema/types/password.d.ts.map +0 -1
  627. package/dist/esm/authentication/strategies/schema/types/password.js +0 -49
  628. package/dist/esm/common/schema/sets.test.d.ts +0 -2
  629. package/dist/esm/common/schema/sets.test.d.ts.map +0 -1
  630. package/dist/esm/common/schema/sets.test.js +0 -82
@@ -1,38 +1,48 @@
1
- export declare const BrandingPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
2
- logo?: {
3
- dark?: string | undefined;
4
- light?: string | undefined;
5
- email?: string | undefined;
6
- } | undefined;
7
- color?: {
8
- link?: string | undefined;
9
- linkHover?: string | undefined;
10
- } | undefined;
11
- updatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
12
- deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
13
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
14
- metadata?: ((In: {
15
- [x: string]: string | number | boolean;
16
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
17
- [x: string]: string | number | boolean;
18
- } | undefined>) | undefined;
19
- }, {}>;
20
- export type BrandingPayload = typeof BrandingPayloadSchema.inferOut;
21
- export declare const UpsertBrandingPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
22
- logo?: {
23
- dark?: string | undefined;
24
- light?: string | undefined;
25
- email?: string | undefined;
26
- } | undefined;
27
- color?: {
28
- link?: string | undefined;
29
- linkHover?: string | undefined;
30
- } | undefined;
31
- metadata?: ((In: {
32
- [x: string]: string | number | boolean;
33
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
34
- [x: string]: string | number | boolean;
35
- } | undefined>) | undefined;
36
- }, {}>;
37
- export type UpsertBrandingPayload = typeof UpsertBrandingPayloadSchema.inferOut;
1
+ import * as z from 'zod/v4';
2
+ export declare const BrandingSchema: z.ZodObject<{
3
+ metadata: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodMap<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataMap, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataMap, import("../../common/schema/metadata.js").MetadataMap | undefined>>;
4
+ deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
5
+ deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
6
+ updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
7
+ logo: z.ZodOptional<z.ZodObject<{
8
+ dark: z.ZodOptional<z.ZodURL>;
9
+ light: z.ZodOptional<z.ZodURL>;
10
+ email: z.ZodOptional<z.ZodURL>;
11
+ }, z.core.$strip>>;
12
+ color: z.ZodOptional<z.ZodObject<{
13
+ link: z.ZodOptional<z.ZodString>;
14
+ linkHover: z.ZodOptional<z.ZodString>;
15
+ }, z.core.$strip>>;
16
+ }, z.core.$strip>;
17
+ export type BrandingProperties = z.input<typeof BrandingSchema>;
18
+ export type Branding = z.output<typeof BrandingSchema>;
19
+ export declare const BrandingPayloadSchema: z.ZodObject<{
20
+ metadata: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodMap<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataRecord, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataRecord | undefined, import("../../common/schema/metadata.js").MetadataRecord | undefined>>;
21
+ 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>>>;
22
+ 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>>>;
23
+ updatedAt: 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>>>;
24
+ logo: z.ZodOptional<z.ZodObject<{
25
+ dark: z.ZodOptional<z.ZodURL>;
26
+ light: z.ZodOptional<z.ZodURL>;
27
+ email: z.ZodOptional<z.ZodURL>;
28
+ }, z.core.$strip>>;
29
+ color: z.ZodOptional<z.ZodObject<{
30
+ link: z.ZodOptional<z.ZodString>;
31
+ linkHover: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strip>>;
33
+ }, z.core.$strip>;
34
+ export type BrandingPayload = z.output<typeof BrandingPayloadSchema>;
35
+ export declare const UpsertBrandingPayloadSchema: z.ZodObject<{
36
+ metadata: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodMap<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataRecord, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataRecord | null | undefined, import("../../common/schema/metadata.js").MetadataRecord | undefined>>;
37
+ logo: z.ZodOptional<z.ZodObject<{
38
+ dark: z.ZodOptional<z.ZodURL>;
39
+ light: z.ZodOptional<z.ZodURL>;
40
+ email: z.ZodOptional<z.ZodURL>;
41
+ }, z.core.$strip>>;
42
+ color: z.ZodOptional<z.ZodObject<{
43
+ link: z.ZodOptional<z.ZodString>;
44
+ linkHover: z.ZodOptional<z.ZodString>;
45
+ }, z.core.$strip>>;
46
+ }, z.core.$strip>;
47
+ export type UpsertBrandingPayload = z.output<typeof UpsertBrandingPayloadSchema>;
38
48
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/branding/schema.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;MAIG,CAAC;AACtC,MAAM,MAAM,eAAe,GAAG,OAAO,qBAAqB,CAAC,QAAQ,CAAC;AAEpE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;MAEvC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,OAAO,2BAA2B,CAAC,QAAQ,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/branding/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AA+B5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;iBAMzB,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAChE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;iBAMhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;;;;;;;;;;iBAGtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAC1C,OAAO,2BAA2B,CACnC,CAAC"}
@@ -1,22 +1,34 @@
1
- import { type } from 'arktype';
2
- import { OptionalDatePayloadSchema } from '../../common/schema/dates.js';
3
- import { MetadataPayloadPropertySchema } from '../../common/schema/metadata.js';
4
- const LogoSchema = type({
5
- dark: type('string.url').optional(),
6
- light: type('string.url').optional(),
7
- email: type('string.url').optional(),
1
+ import * as z from 'zod/v4';
2
+ import { DeactivatedAtPropertyPayloadSchema, DeactivatedAtPropertySchema, DeletedAtPropertyPayloadSchema, DeletedAtPropertySchema, OptionalDatePayloadSchema, OptionalDateSchema, } from '../../common/schema/dates.js';
3
+ import { MetadataMapPropertySchema, MetadataRecordPropertySchema, UpsertMetadataPropertySchema, } from '../../common/schema/metadata.js';
4
+ const LogoSchema = z.object({
5
+ dark: z.url().optional(),
6
+ light: z.url().optional(),
7
+ email: z.url().optional(),
8
8
  });
9
- const ColorSchema = type({
10
- link: type('string').optional(),
11
- linkHover: type('string').optional(),
9
+ const ColorSchema = z.object({
10
+ link: z.string().optional(),
11
+ linkHover: z.string().optional(),
12
12
  });
13
- const BaseAttributes = type({
13
+ const BaseSchema = z.object({
14
14
  logo: LogoSchema.optional(),
15
15
  color: ColorSchema.optional(),
16
16
  });
17
- export const BrandingPayloadSchema = BaseAttributes.and({
18
- 'updatedAt?': OptionalDatePayloadSchema,
19
- 'deletedAt?': OptionalDatePayloadSchema,
20
- 'deactivatedAt?': OptionalDatePayloadSchema,
21
- }).and(MetadataPayloadPropertySchema);
22
- export const UpsertBrandingPayloadSchema = BaseAttributes.and(MetadataPayloadPropertySchema);
17
+ export const BrandingSchema = z.object({
18
+ ...BaseSchema.shape,
19
+ updatedAt: OptionalDateSchema,
20
+ ...DeletedAtPropertySchema.shape,
21
+ ...DeactivatedAtPropertySchema.shape,
22
+ ...MetadataMapPropertySchema.shape,
23
+ });
24
+ export const BrandingPayloadSchema = z.object({
25
+ ...BaseSchema.shape,
26
+ updatedAt: OptionalDatePayloadSchema,
27
+ ...DeletedAtPropertyPayloadSchema.shape,
28
+ ...DeactivatedAtPropertyPayloadSchema.shape,
29
+ ...MetadataRecordPropertySchema.shape,
30
+ });
31
+ export const UpsertBrandingPayloadSchema = z.object({
32
+ ...BaseSchema.shape,
33
+ ...UpsertMetadataPropertySchema.shape,
34
+ });
@@ -1,25 +1,47 @@
1
+ import * as z from 'zod/v4';
1
2
  export declare const FeatureFlag: {
3
+ readonly REMOVE_MEMBERSHIP: "Membership.Remove";
2
4
  readonly REMOVE_BRANDING: "Branding.Remove";
3
5
  };
4
6
  export type AnyFeatureFlag = (typeof FeatureFlag)[keyof typeof FeatureFlag];
5
- export declare const FeaturePayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
6
- expiresAt: (In: string | Date) => import("arktype").Out<string>;
7
- }, {}>;
8
- export type FeaturePayload = typeof FeaturePayloadSchema.inferOut;
9
- export declare const FeaturesPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
10
- "Branding.Remove"?: {
11
- expiresAt: (In: string | Date) => import("arktype").Out<string>;
12
- } | undefined;
13
- }, {}>;
14
- export type FeaturesPayload = typeof FeaturesPayloadSchema.inferOut;
15
- export declare const MembershipPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
16
- features?: {
17
- "Branding.Remove"?: {
18
- expiresAt: (In: string | Date) => import("arktype").Out<string>;
19
- } | undefined;
20
- } | undefined;
21
- startAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
22
- endAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
23
- }, {}>;
24
- export type MembershipPayload = typeof MembershipPayloadSchema.inferOut;
7
+ export declare const FeaturePayloadSchema: z.ZodObject<{
8
+ expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
9
+ }, z.core.$strip>;
10
+ export type FeaturePayload = z.output<typeof FeaturePayloadSchema>;
11
+ export declare const FeaturesPayloadSchema: z.ZodObject<{
12
+ "Membership.Remove": z.ZodOptional<z.ZodObject<{
13
+ expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
14
+ }, z.core.$strip>>;
15
+ "Branding.Remove": z.ZodOptional<z.ZodObject<{
16
+ expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
17
+ }, z.core.$strip>>;
18
+ }, z.core.$strip>;
19
+ export type FeaturesPayload = z.output<typeof FeaturesPayloadSchema>;
20
+ export declare const MembershipSchema: z.ZodObject<{
21
+ features: z.ZodOptional<z.ZodObject<{
22
+ "Membership.Remove": z.ZodOptional<z.ZodObject<{
23
+ expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
24
+ }, z.core.$strip>>;
25
+ "Branding.Remove": z.ZodOptional<z.ZodObject<{
26
+ expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
27
+ }, z.core.$strip>>;
28
+ }, z.core.$strip>>;
29
+ startAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
30
+ endAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
31
+ }, z.core.$strip>;
32
+ export type MembershipProperties = z.input<typeof MembershipSchema>;
33
+ export type Membership = z.output<typeof MembershipSchema>;
34
+ export declare const MembershipPayloadSchema: z.ZodObject<{
35
+ features: z.ZodOptional<z.ZodObject<{
36
+ "Membership.Remove": z.ZodOptional<z.ZodObject<{
37
+ expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
38
+ }, z.core.$strip>>;
39
+ "Branding.Remove": z.ZodOptional<z.ZodObject<{
40
+ expiresAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
41
+ }, z.core.$strip>>;
42
+ }, z.core.$strip>>;
43
+ startAt: 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>>>;
44
+ endAt: 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>>>;
45
+ }, z.core.$strip>;
46
+ export type MembershipPayload = z.output<typeof MembershipPayloadSchema>;
25
47
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/membership/schema.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW;;CAEd,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB;;MAE/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,oBAAoB,CAAC,QAAQ,CAAC;AAElE,eAAO,MAAM,qBAAqB;;;;MAEhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,qBAAqB,CAAC,QAAQ,CAAC;AAEpE,eAAO,MAAM,uBAAuB;;;;;;;;MAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,uBAAuB,CAAC,QAAQ,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/membership/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAO5B,eAAO,MAAM,WAAW;;;CAGd,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEnE,eAAO,MAAM,qBAAqB;;;;;;;iBAGhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAI3B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACpE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3D,eAAO,MAAM,uBAAuB;;;;;;;;;;;iBAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -1,16 +1,23 @@
1
- import { type } from 'arktype';
2
- import { OptionalDatePayloadSchema, RequiredDatePayloadSchema, } from '../../common/schema/dates.js';
1
+ import * as z from 'zod/v4';
2
+ import { OptionalDatePayloadSchema, OptionalDateSchema, RequiredDatePayloadSchema, } from '../../common/schema/dates.js';
3
3
  export const FeatureFlag = {
4
+ REMOVE_MEMBERSHIP: 'Membership.Remove',
4
5
  REMOVE_BRANDING: 'Branding.Remove',
5
6
  };
6
- export const FeaturePayloadSchema = type({
7
+ export const FeaturePayloadSchema = z.object({
7
8
  expiresAt: RequiredDatePayloadSchema,
8
9
  });
9
- export const FeaturesPayloadSchema = type({
10
+ export const FeaturesPayloadSchema = z.object({
11
+ [FeatureFlag.REMOVE_MEMBERSHIP]: FeaturePayloadSchema.optional(),
10
12
  [FeatureFlag.REMOVE_BRANDING]: FeaturePayloadSchema.optional(),
11
13
  });
12
- export const MembershipPayloadSchema = type({
14
+ export const MembershipSchema = z.object({
13
15
  features: FeaturesPayloadSchema.optional(),
14
- 'startAt?': OptionalDatePayloadSchema,
15
- 'endAt?': OptionalDatePayloadSchema,
16
+ startAt: OptionalDateSchema,
17
+ endAt: OptionalDateSchema,
18
+ });
19
+ export const MembershipPayloadSchema = z.object({
20
+ features: FeaturesPayloadSchema.optional(),
21
+ startAt: OptionalDatePayloadSchema,
22
+ endAt: OptionalDatePayloadSchema,
16
23
  });
@@ -1,28 +1,42 @@
1
- export declare const RegistrationPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
2
- allowSelfRegistration: boolean;
3
- identifiers: {
4
- type: "email" | "phoneNumber";
5
- }[];
6
- updatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
7
- deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
8
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
9
- metadata?: ((In: {
10
- [x: string]: string | number | boolean;
11
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
12
- [x: string]: string | number | boolean;
13
- } | undefined>) | undefined;
14
- }, {}>;
15
- export type RegistrationPayload = typeof RegistrationPayloadSchema.inferOut;
16
- export declare const UpsertRegistrationPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
17
- allowSelfRegistration?: boolean | undefined;
18
- identifiers?: {
19
- type: "email" | "phoneNumber";
20
- }[] | undefined;
21
- metadata?: ((In: {
22
- [x: string]: string | number | boolean;
23
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
24
- [x: string]: string | number | boolean;
25
- } | undefined>) | undefined;
26
- }, {}>;
27
- export type UpsertRegistrationPayload = typeof UpsertRegistrationPayloadSchema.inferOut;
1
+ import * as z from 'zod/v4';
2
+ export declare const RegistrationSchema: z.ZodObject<{
3
+ metadata: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodMap<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataMap, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataMap, import("../../common/schema/metadata.js").MetadataMap | undefined>>;
4
+ deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
5
+ deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
6
+ updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
7
+ allowSelfRegistration: z.ZodDefault<z.ZodBoolean>;
8
+ identifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
9
+ type: z.ZodEnum<{
10
+ email: "email";
11
+ phoneNumber: "phoneNumber";
12
+ }>;
13
+ }, z.core.$strip>>>;
14
+ }, z.core.$strip>;
15
+ export type RegistrationProperties = z.input<typeof RegistrationSchema>;
16
+ export type Registration = z.output<typeof RegistrationSchema>;
17
+ export declare const RegistrationPayloadSchema: z.ZodObject<{
18
+ metadata: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodMap<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataRecord, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataRecord | undefined, import("../../common/schema/metadata.js").MetadataRecord | undefined>>;
19
+ 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>>>;
20
+ 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>>>;
21
+ updatedAt: 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>>>;
22
+ allowSelfRegistration: z.ZodDefault<z.ZodBoolean>;
23
+ identifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
24
+ type: z.ZodEnum<{
25
+ email: "email";
26
+ phoneNumber: "phoneNumber";
27
+ }>;
28
+ }, z.core.$strip>>>;
29
+ }, z.core.$strip>;
30
+ export type RegistrationPayload = z.output<typeof RegistrationPayloadSchema>;
31
+ export declare const UpsertRegistrationPayloadSchema: z.ZodObject<{
32
+ metadata: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodMap<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataRecord, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataRecord | null | undefined, import("../../common/schema/metadata.js").MetadataRecord | undefined>>;
33
+ allowSelfRegistration: z.ZodOptional<z.ZodBoolean>;
34
+ identifiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
+ type: z.ZodEnum<{
36
+ email: "email";
37
+ phoneNumber: "phoneNumber";
38
+ }>;
39
+ }, z.core.$strip>>>;
40
+ }, z.core.$strip>;
41
+ export type UpsertRegistrationPayload = z.output<typeof UpsertRegistrationPayloadSchema>;
28
42
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/registration/schema.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;MAOD,CAAC;AACtC,MAAM,MAAM,mBAAmB,GAAG,OAAO,yBAAyB,CAAC,QAAQ,CAAC;AAE5E,eAAO,MAAM,+BAA+B;;;;;;;;;;MAGP,CAAC;AACtC,MAAM,MAAM,yBAAyB,GACnC,OAAO,+BAA+B,CAAC,QAAQ,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/registration/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAoC5B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAM7B,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACxE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE/D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;iBAMpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE7E,eAAO,MAAM,+BAA+B;;;;;;;;;iBAI1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAC9C,OAAO,+BAA+B,CACvC,CAAC"}
@@ -1,19 +1,35 @@
1
- import { type } from 'arktype';
2
- import { OptionalDatePayloadSchema } from '../../common/schema/dates.js';
3
- import { MetadataPayloadPropertySchema } from '../../common/schema/metadata.js';
4
- import { IdentityIdentifierSchema } from '../../identity/schema.js';
5
- const IdentityIdentifierPropertySchema = type({
1
+ import * as z from 'zod/v4';
2
+ import { DeactivatedAtPropertyPayloadSchema, DeactivatedAtPropertySchema, DeletedAtPropertyPayloadSchema, DeletedAtPropertySchema, OptionalDatePayloadSchema, OptionalDateSchema, } from '../../common/schema/dates.js';
3
+ import { MetadataMapPropertySchema, MetadataRecordPropertySchema, UpsertMetadataPropertySchema, } from '../../common/schema/metadata.js';
4
+ import { IdentityIdentifier, IdentityIdentifierSchema, } from '../../identity/schema.js';
5
+ const IdentityIdentifierPropertySchema = z.array(z.object({
6
6
  type: IdentityIdentifierSchema,
7
- }).array();
8
- const AllowSelfRegistrationSchema = type('boolean');
9
- export const RegistrationPayloadSchema = type({
10
- allowSelfRegistration: AllowSelfRegistrationSchema,
11
- identifiers: IdentityIdentifierPropertySchema,
12
- 'updatedAt?': OptionalDatePayloadSchema,
13
- 'deletedAt?': OptionalDatePayloadSchema,
14
- 'deactivatedAt?': OptionalDatePayloadSchema,
15
- }).and(MetadataPayloadPropertySchema);
16
- export const UpsertRegistrationPayloadSchema = type({
7
+ }));
8
+ const AllowSelfRegistrationSchema = z.boolean();
9
+ const BaseSchema = z.object({
10
+ allowSelfRegistration: AllowSelfRegistrationSchema.default(false),
11
+ identifiers: IdentityIdentifierPropertySchema.default([
12
+ {
13
+ type: IdentityIdentifier.EMAIL,
14
+ },
15
+ ]),
16
+ });
17
+ export const RegistrationSchema = z.object({
18
+ ...BaseSchema.shape,
19
+ updatedAt: OptionalDateSchema,
20
+ ...DeletedAtPropertySchema.shape,
21
+ ...DeactivatedAtPropertySchema.shape,
22
+ ...MetadataMapPropertySchema.shape,
23
+ });
24
+ export const RegistrationPayloadSchema = z.object({
25
+ ...BaseSchema.shape,
26
+ updatedAt: OptionalDatePayloadSchema,
27
+ ...DeletedAtPropertyPayloadSchema.shape,
28
+ ...DeactivatedAtPropertyPayloadSchema.shape,
29
+ ...MetadataRecordPropertySchema.shape,
30
+ });
31
+ export const UpsertRegistrationPayloadSchema = z.object({
17
32
  allowSelfRegistration: AllowSelfRegistrationSchema.optional(),
18
33
  identifiers: IdentityIdentifierPropertySchema.optional(),
19
- }).and(MetadataPayloadPropertySchema);
34
+ ...UpsertMetadataPropertySchema.shape,
35
+ });
@@ -1,23 +1,24 @@
1
+ import * as z from 'zod/v4';
1
2
  /**
2
3
  * This isn't really being used yet...but some general settings would go here
3
4
  */
4
- export declare const SettingsPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
5
- updatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
6
- deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
7
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
8
- metadata?: ((In: {
9
- [x: string]: string | number | boolean;
10
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
11
- [x: string]: string | number | boolean;
12
- } | undefined>) | undefined;
13
- }, {}>;
14
- export type SettingsPayload = typeof SettingsPayloadSchema.inferOut;
15
- export declare const UpsertSettingsPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
16
- metadata?: ((In: {
17
- [x: string]: string | number | boolean;
18
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
19
- [x: string]: string | number | boolean;
20
- } | undefined>) | undefined;
21
- }, {}>;
22
- export type UpsertSettingsPayload = typeof UpsertSettingsPayloadSchema.inferOut;
5
+ export declare const SettingsSchema: z.ZodObject<{
6
+ metadata: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodMap<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataMap, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataMap, import("../../common/schema/metadata.js").MetadataMap | undefined>>;
7
+ deactivatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
8
+ deletedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
9
+ updatedAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>;
10
+ }, z.core.$strip>;
11
+ export type SettingsProperties = z.input<typeof SettingsSchema>;
12
+ export type Settings = z.output<typeof SettingsSchema>;
13
+ export declare const SettingsPayloadSchema: z.ZodObject<{
14
+ metadata: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodMap<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataRecord, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataRecord | undefined, import("../../common/schema/metadata.js").MetadataRecord | undefined>>;
15
+ 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>>>;
16
+ 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>>>;
17
+ updatedAt: 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>>>;
18
+ }, z.core.$strip>;
19
+ export type SettingsPayload = z.output<typeof SettingsPayloadSchema>;
20
+ export declare const UpsertSettingsPayloadSchema: z.ZodObject<{
21
+ metadata: z.ZodPipe<z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodUndefined, z.ZodNull, z.ZodMap<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataRecord, Record<string, string | number | boolean> | Map<string, string | number | boolean> | null | undefined>>>, z.ZodTransform<import("../../common/schema/metadata.js").MetadataRecord | null | undefined, import("../../common/schema/metadata.js").MetadataRecord | undefined>>;
22
+ }, z.core.$strip>;
23
+ export type UpsertSettingsPayload = z.output<typeof UpsertSettingsPayloadSchema>;
23
24
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/settings/schema.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;MAIG,CAAC;AACtC,MAAM,MAAM,eAAe,GAAG,OAAO,qBAAqB,CAAC,QAAQ,CAAC;AAEpE,eAAO,MAAM,2BAA2B;;;;;;MAAgC,CAAC;AACzE,MAAM,MAAM,qBAAqB,GAAG,OAAO,2BAA2B,CAAC,QAAQ,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/workspace/settings/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAe5B;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;iBAKzB,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAChE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,qBAAqB;;;;;iBAKhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;iBAA+B,CAAC;AACxE,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAC1C,OAAO,2BAA2B,CACnC,CAAC"}
@@ -1,12 +1,19 @@
1
- import { type } from 'arktype';
2
- import { OptionalDatePayloadSchema } from '../../common/schema/dates.js';
3
- import { MetadataPayloadPropertySchema } from '../../common/schema/metadata.js';
1
+ import * as z from 'zod/v4';
2
+ import { DeactivatedAtPropertyPayloadSchema, DeactivatedAtPropertySchema, DeletedAtPropertyPayloadSchema, DeletedAtPropertySchema, OptionalDatePayloadSchema, OptionalDateSchema, } from '../../common/schema/dates.js';
3
+ import { MetadataMapPropertySchema, MetadataRecordPropertySchema, UpsertMetadataPropertySchema, } from '../../common/schema/metadata.js';
4
4
  /**
5
5
  * This isn't really being used yet...but some general settings would go here
6
6
  */
7
- export const SettingsPayloadSchema = type({
8
- 'updatedAt?': OptionalDatePayloadSchema,
9
- 'deletedAt?': OptionalDatePayloadSchema,
10
- 'deactivatedAt?': OptionalDatePayloadSchema,
11
- }).and(MetadataPayloadPropertySchema);
12
- export const UpsertSettingsPayloadSchema = MetadataPayloadPropertySchema;
7
+ export const SettingsSchema = z.object({
8
+ updatedAt: OptionalDateSchema,
9
+ ...DeletedAtPropertySchema.shape,
10
+ ...DeactivatedAtPropertySchema.shape,
11
+ ...MetadataMapPropertySchema.shape,
12
+ });
13
+ export const SettingsPayloadSchema = z.object({
14
+ updatedAt: OptionalDatePayloadSchema,
15
+ ...DeletedAtPropertyPayloadSchema.shape,
16
+ ...DeactivatedAtPropertyPayloadSchema.shape,
17
+ ...MetadataRecordPropertySchema.shape,
18
+ });
19
+ export const UpsertSettingsPayloadSchema = UpsertMetadataPropertySchema;
@@ -1,4 +1,3 @@
1
- import { type } from 'arktype';
2
1
  import { describe, expect, test } from 'vitest';
3
2
  import { SettingsPayloadSchema, UpsertSettingsPayloadSchema, } from './schema.js';
4
3
  describe('Workspace Settings - Schema', () => {
@@ -10,25 +9,25 @@ describe('Workspace Settings - Schema', () => {
10
9
  deactivatedAt: new Date().toISOString(),
11
10
  metadata: { version: '1.0', theme: 'dark' },
12
11
  };
13
- const result = SettingsPayloadSchema(payload);
14
- expect(result).not.toBeInstanceOf(type.errors);
15
- expect(result).toEqual(payload);
12
+ const result = SettingsPayloadSchema.safeParse(payload);
13
+ // Parse succeeds for valid data
14
+ expect(result.data).toEqual(payload);
16
15
  });
17
16
  test('should accept minimal settings payload', () => {
18
17
  const payload = {
19
18
  metadata: {},
20
19
  };
21
- const result = SettingsPayloadSchema(payload);
22
- expect(result).not.toBeInstanceOf(type.errors);
23
- expect(result).toEqual(payload);
20
+ const result = SettingsPayloadSchema.safeParse(payload);
21
+ // Parse succeeds for valid data
22
+ expect(result.data?.metadata).toBeUndefined();
24
23
  });
25
24
  test('should accept payload with some optional dates', () => {
26
25
  const payload = {
27
26
  updatedAt: new Date().toISOString(),
28
27
  metadata: { lastModified: 'now' },
29
28
  };
30
- const result = SettingsPayloadSchema(payload);
31
- expect(result).not.toBeInstanceOf(type.errors);
29
+ const result = SettingsPayloadSchema.safeParse(payload);
30
+ // Parse succeeds for valid data
32
31
  });
33
32
  test('should accept payload with only metadata', () => {
34
33
  const payload = {
@@ -36,16 +35,16 @@ describe('Workspace Settings - Schema', () => {
36
35
  preferences: 'yes',
37
36
  },
38
37
  };
39
- const result = SettingsPayloadSchema(payload);
40
- expect(result).not.toBeInstanceOf(type.errors);
38
+ const result = SettingsPayloadSchema.safeParse(payload);
39
+ // Parse succeeds for valid data
41
40
  });
42
41
  test('should reject invalid date format', () => {
43
42
  const payload = {
44
43
  updatedAt: 'invalid-date',
45
44
  metadata: {},
46
45
  };
47
- const result = SettingsPayloadSchema(payload);
48
- expect(result).toBeInstanceOf(type.errors);
46
+ const result = SettingsPayloadSchema.safeParse(payload);
47
+ expect(result.success).toBe(false);
49
48
  });
50
49
  });
51
50
  describe('UpsertSettingsPayloadSchema', () => {
@@ -55,17 +54,17 @@ describe('Workspace Settings - Schema', () => {
55
54
  settings: 'light',
56
55
  },
57
56
  };
58
- const result = UpsertSettingsPayloadSchema(payload);
59
- expect(result).not.toBeInstanceOf(type.errors);
60
- expect(result).toEqual(payload);
57
+ const result = UpsertSettingsPayloadSchema.safeParse(payload);
58
+ // Parse succeeds for valid data
59
+ expect(result.data).toEqual(payload);
61
60
  });
62
61
  test('should accept empty metadata', () => {
63
62
  const payload = {
64
63
  metadata: {},
65
64
  };
66
- const result = UpsertSettingsPayloadSchema(payload);
67
- expect(result).not.toBeInstanceOf(type.errors);
68
- expect(result).toEqual(payload);
65
+ const result = UpsertSettingsPayloadSchema.safeParse(payload);
66
+ // Parse succeeds for valid data
67
+ expect(result.data?.metadata).toBeNull();
69
68
  });
70
69
  });
71
70
  });