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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (550) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/.tsbuildinfo/cjs.json +1 -1
  3. package/.tsbuildinfo/esm.json +1 -1
  4. package/CHANGELOG.md +7 -0
  5. package/dist/cjs/action/schema/base.d.ts +22 -20
  6. package/dist/cjs/action/schema/base.d.ts.map +1 -1
  7. package/dist/cjs/action/schema/base.js +15 -8
  8. package/dist/cjs/action/schema/base.test.js +50 -34
  9. package/dist/cjs/action/schema/operations/set-password.d.ts +30 -30
  10. package/dist/cjs/action/schema/operations/set-password.d.ts.map +1 -1
  11. package/dist/cjs/action/schema/operations/set-password.js +9 -8
  12. package/dist/cjs/action/schema/operations/set-password.test.js +30 -29
  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 +8 -7
  16. package/dist/cjs/action/schema/operations/sign-up-verification.test.js +28 -29
  17. package/dist/cjs/action/schema/operations/sign-up.d.ts +40 -43
  18. package/dist/cjs/action/schema/operations/sign-up.d.ts.map +1 -1
  19. package/dist/cjs/action/schema/operations/sign-up.js +24 -15
  20. package/dist/cjs/action/schema/operations/sign-up.test.js +33 -34
  21. package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts +19 -19
  22. package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts.map +1 -1
  23. package/dist/cjs/action/schema/operations/user-attribute-verification.js +6 -5
  24. package/dist/cjs/action/schema/operations/user-attribute-verification.test.js +25 -26
  25. package/dist/cjs/action/schema/schema.d.ts +70 -76
  26. package/dist/cjs/action/schema/schema.d.ts.map +1 -1
  27. package/dist/cjs/action/schema/schema.test.js +26 -27
  28. package/dist/cjs/activity/resources.d.ts.map +1 -1
  29. package/dist/cjs/activity/resources.js +1 -1
  30. package/dist/cjs/activity/schema/base.d.ts +88 -69
  31. package/dist/cjs/activity/schema/base.d.ts.map +1 -1
  32. package/dist/cjs/activity/schema/base.js +30 -18
  33. package/dist/cjs/activity/schema/base.test.js +85 -55
  34. package/dist/cjs/activity/schema/schema.d.ts +293 -226
  35. package/dist/cjs/activity/schema/schema.d.ts.map +1 -1
  36. package/dist/cjs/activity/schema/schema.test.js +47 -48
  37. package/dist/cjs/activity/schema/types/authentication.d.ts +64 -46
  38. package/dist/cjs/activity/schema/types/authentication.d.ts.map +1 -1
  39. package/dist/cjs/activity/schema/types/authentication.js +16 -7
  40. package/dist/cjs/activity/schema/types/authentication.test.js +37 -38
  41. package/dist/cjs/activity/schema/types/authorization.d.ts +64 -46
  42. package/dist/cjs/activity/schema/types/authorization.d.ts.map +1 -1
  43. package/dist/cjs/activity/schema/types/authorization.js +16 -7
  44. package/dist/cjs/activity/schema/types/authorization.test.js +41 -42
  45. package/dist/cjs/activity/schema/types/note.d.ts +83 -70
  46. package/dist/cjs/activity/schema/types/note.d.ts.map +1 -1
  47. package/dist/cjs/activity/schema/types/note.js +20 -12
  48. package/dist/cjs/activity/schema/types/note.test.js +48 -49
  49. package/dist/cjs/activity/schema/types/operation.d.ts +64 -45
  50. package/dist/cjs/activity/schema/types/operation.d.ts.map +1 -1
  51. package/dist/cjs/activity/schema/types/operation.js +19 -8
  52. package/dist/cjs/activity/schema/types/operation.test.js +34 -35
  53. package/dist/cjs/activity/schema/types/unknown.d.ts +50 -41
  54. package/dist/cjs/activity/schema/types/unknown.d.ts.map +1 -1
  55. package/dist/cjs/activity/schema/types/unknown.js +12 -6
  56. package/dist/cjs/activity/schema/types/unknown.test.js +29 -30
  57. package/dist/cjs/app/authorization/resources.d.ts.map +1 -1
  58. package/dist/cjs/app/authorization/resources.js +2 -3
  59. package/dist/cjs/app/authorization/schema.d.ts +96 -52
  60. package/dist/cjs/app/authorization/schema.d.ts.map +1 -1
  61. package/dist/cjs/app/authorization/schema.js +61 -52
  62. package/dist/cjs/app/authorization/schema.test.js +96 -71
  63. package/dist/cjs/app/oauth/resources.d.ts.map +1 -1
  64. package/dist/cjs/app/oauth/resources.js +2 -3
  65. package/dist/cjs/app/oauth/schema.d.ts +34 -41
  66. package/dist/cjs/app/oauth/schema.d.ts.map +1 -1
  67. package/dist/cjs/app/oauth/schema.js +23 -17
  68. package/dist/cjs/app/oauth/schema.test.js +38 -39
  69. package/dist/cjs/app/oidc/resources.d.ts.map +1 -1
  70. package/dist/cjs/app/oidc/resources.js +4 -5
  71. package/dist/cjs/app/oidc/schema.d.ts +26 -37
  72. package/dist/cjs/app/oidc/schema.d.ts.map +1 -1
  73. package/dist/cjs/app/oidc/schema.js +17 -12
  74. package/dist/cjs/app/oidc/schema.test.js +45 -26
  75. package/dist/cjs/app/registration/resources.d.ts.map +1 -1
  76. package/dist/cjs/app/registration/resources.js +2 -3
  77. package/dist/cjs/app/registration/schema.d.ts +24 -31
  78. package/dist/cjs/app/registration/schema.d.ts.map +1 -1
  79. package/dist/cjs/app/registration/schema.js +23 -16
  80. package/dist/cjs/app/registration/schema.test.js +68 -150
  81. package/dist/cjs/app/resources.d.ts.map +1 -1
  82. package/dist/cjs/app/resources.js +5 -5
  83. package/dist/cjs/app/saml/resources.d.ts.map +1 -1
  84. package/dist/cjs/app/saml/resources.js +4 -5
  85. package/dist/cjs/app/saml/schema.d.ts +26 -37
  86. package/dist/cjs/app/saml/schema.d.ts.map +1 -1
  87. package/dist/cjs/app/saml/schema.js +17 -12
  88. package/dist/cjs/app/schema.d.ts +72 -68
  89. package/dist/cjs/app/schema.d.ts.map +1 -1
  90. package/dist/cjs/app/schema.js +34 -27
  91. package/dist/cjs/app/schema.test.js +38 -41
  92. package/dist/cjs/association/resources.d.ts.map +1 -1
  93. package/dist/cjs/association/resources.js +3 -5
  94. package/dist/cjs/association/schema.d.ts +225 -181
  95. package/dist/cjs/association/schema.d.ts.map +1 -1
  96. package/dist/cjs/association/schema.js +28 -22
  97. package/dist/cjs/association/schema.test.js +36 -28
  98. package/dist/cjs/authentication/factors/schema.d.ts +18 -55
  99. package/dist/cjs/authentication/factors/schema.d.ts.map +1 -1
  100. package/dist/cjs/authentication/factors/schema.js +21 -23
  101. package/dist/cjs/authentication/factors/schema.test.js +33 -34
  102. package/dist/cjs/authentication/providers/schema.d.ts +23 -22
  103. package/dist/cjs/authentication/providers/schema.d.ts.map +1 -1
  104. package/dist/cjs/authentication/providers/schema.js +10 -8
  105. package/dist/cjs/authentication/sessions/resources.d.ts.map +1 -1
  106. package/dist/cjs/authentication/sessions/resources.js +2 -2
  107. package/dist/cjs/authentication/sessions/schema.d.ts +101 -74
  108. package/dist/cjs/authentication/sessions/schema.d.ts.map +1 -1
  109. package/dist/cjs/authentication/sessions/schema.js +56 -25
  110. package/dist/cjs/authentication/settings/resources.d.ts.map +1 -1
  111. package/dist/cjs/authentication/settings/resources.js +2 -3
  112. package/dist/cjs/authentication/settings/schema.d.ts +25 -68
  113. package/dist/cjs/authentication/settings/schema.d.ts.map +1 -1
  114. package/dist/cjs/authentication/settings/schema.js +13 -10
  115. package/dist/cjs/authentication/settings/schema.test.js +28 -19
  116. package/dist/cjs/authentication/strategies/resources.d.ts.map +1 -1
  117. package/dist/cjs/authentication/strategies/resources.js +5 -5
  118. package/dist/cjs/authentication/strategies/schema/base.d.ts +59 -51
  119. package/dist/cjs/authentication/strategies/schema/base.d.ts.map +1 -1
  120. package/dist/cjs/authentication/strategies/schema/base.js +26 -15
  121. package/dist/cjs/authentication/strategies/schema/schema.d.ts +206 -197
  122. package/dist/cjs/authentication/strategies/schema/schema.d.ts.map +1 -1
  123. package/dist/cjs/authentication/strategies/schema/types/email.d.ts +61 -60
  124. package/dist/cjs/authentication/strategies/schema/types/email.d.ts.map +1 -1
  125. package/dist/cjs/authentication/strategies/schema/types/email.js +24 -14
  126. package/dist/cjs/authentication/strategies/schema/types/email.test.js +49 -50
  127. package/dist/cjs/authentication/strategies/schema/types/password.d.ts +129 -122
  128. package/dist/cjs/authentication/strategies/schema/types/password.d.ts.map +1 -1
  129. package/dist/cjs/authentication/strategies/schema/types/password.js +33 -25
  130. package/dist/cjs/authentication/strategies/schema/types/totp.d.ts +107 -94
  131. package/dist/cjs/authentication/strategies/schema/types/totp.d.ts.map +1 -1
  132. package/dist/cjs/authentication/strategies/schema/types/totp.js +50 -26
  133. package/dist/cjs/authorization/permissions/resources.d.ts.map +1 -1
  134. package/dist/cjs/authorization/permissions/resources.js +5 -5
  135. package/dist/cjs/authorization/permissions/schema.d.ts +92 -88
  136. package/dist/cjs/authorization/permissions/schema.d.ts.map +1 -1
  137. package/dist/cjs/authorization/permissions/schema.js +38 -28
  138. package/dist/cjs/authorization/permissions/schema.test.js +57 -59
  139. package/dist/cjs/authorization/roles/resources.d.ts.map +1 -1
  140. package/dist/cjs/authorization/roles/resources.js +5 -5
  141. package/dist/cjs/authorization/roles/schema.d.ts +102 -98
  142. package/dist/cjs/authorization/roles/schema.d.ts.map +1 -1
  143. package/dist/cjs/authorization/roles/schema.js +35 -32
  144. package/dist/cjs/authorization/roles/schema.test.js +58 -59
  145. package/dist/cjs/authorization/schema.d.ts +7 -6
  146. package/dist/cjs/authorization/schema.d.ts.map +1 -1
  147. package/dist/cjs/authorization/schema.js +9 -3
  148. package/dist/cjs/common/resources/init.d.ts +7 -6
  149. package/dist/cjs/common/resources/init.d.ts.map +1 -1
  150. package/dist/cjs/common/resources/init.js +17 -9
  151. package/dist/cjs/common/resources/utils.d.ts +0 -9
  152. package/dist/cjs/common/resources/utils.d.ts.map +1 -1
  153. package/dist/cjs/common/resources/utils.js +0 -26
  154. package/dist/cjs/common/resources/utils.test.js +0 -29
  155. package/dist/cjs/common/schema/aggregate.d.ts +6 -5
  156. package/dist/cjs/common/schema/aggregate.d.ts.map +1 -1
  157. package/dist/cjs/common/schema/aggregate.js +4 -4
  158. package/dist/cjs/common/schema/aggregate.test.js +21 -22
  159. package/dist/cjs/common/schema/collection.d.ts +11 -10
  160. package/dist/cjs/common/schema/collection.d.ts.map +1 -1
  161. package/dist/cjs/common/schema/collection.js +6 -4
  162. package/dist/cjs/common/schema/collection.test.js +66 -48
  163. package/dist/cjs/common/schema/dates.d.ts +27 -26
  164. package/dist/cjs/common/schema/dates.d.ts.map +1 -1
  165. package/dist/cjs/common/schema/dates.js +17 -11
  166. package/dist/cjs/common/schema/dates.test.js +24 -13
  167. package/dist/cjs/common/schema/id.d.ts +2 -1
  168. package/dist/cjs/common/schema/id.d.ts.map +1 -1
  169. package/dist/cjs/common/schema/id.js +2 -2
  170. package/dist/cjs/common/schema/id.test.js +70 -38
  171. package/dist/cjs/common/schema/jwt.d.ts +27 -14
  172. package/dist/cjs/common/schema/jwt.d.ts.map +1 -1
  173. package/dist/cjs/common/schema/jwt.js +14 -2
  174. package/dist/cjs/common/schema/jwt.test.js +25 -19
  175. package/dist/cjs/common/schema/metadata.d.ts +24 -41
  176. package/dist/cjs/common/schema/metadata.d.ts.map +1 -1
  177. package/dist/cjs/common/schema/metadata.js +38 -37
  178. package/dist/cjs/common/schema/metadata.test.js +36 -37
  179. package/dist/cjs/common/schema/pagination.d.ts +6 -5
  180. package/dist/cjs/common/schema/pagination.d.ts.map +1 -1
  181. package/dist/cjs/common/schema/pagination.js +4 -4
  182. package/dist/cjs/common/schema/pagination.test.js +19 -20
  183. package/dist/cjs/common/schema/schema.d.ts +4 -4
  184. package/dist/cjs/common/schema/schema.d.ts.map +1 -1
  185. package/dist/cjs/common/schema/schema.js +6 -5
  186. package/dist/cjs/common/schema/schema.test.js +9 -15
  187. package/dist/cjs/common/schema/sets.d.ts +3 -2
  188. package/dist/cjs/common/schema/sets.d.ts.map +1 -1
  189. package/dist/cjs/common/schema/sets.js +9 -6
  190. package/dist/cjs/common/schema/sets.test.js +52 -43
  191. package/dist/cjs/customer/organization/schema.d.ts +44 -46
  192. package/dist/cjs/customer/organization/schema.d.ts.map +1 -1
  193. package/dist/cjs/customer/organization/schema.js +26 -20
  194. package/dist/cjs/customer/schema.d.ts +7 -6
  195. package/dist/cjs/customer/schema.d.ts.map +1 -1
  196. package/dist/cjs/customer/schema.js +9 -3
  197. package/dist/cjs/customer/users/resources.d.ts.map +1 -1
  198. package/dist/cjs/customer/users/resources.js +5 -5
  199. package/dist/cjs/customer/users/schema.d.ts +140 -139
  200. package/dist/cjs/customer/users/schema.d.ts.map +1 -1
  201. package/dist/cjs/customer/users/schema.js +58 -46
  202. package/dist/cjs/customer/users/schema.test.js +22 -35
  203. package/dist/cjs/customer/users/utils.d.ts +3 -2
  204. package/dist/cjs/customer/users/utils.d.ts.map +1 -1
  205. package/dist/cjs/identity/schema.d.ts +5 -1
  206. package/dist/cjs/identity/schema.d.ts.map +1 -1
  207. package/dist/cjs/identity/schema.js +5 -2
  208. package/dist/cjs/identity/schema.test.js +21 -16
  209. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.d.ts +31 -28
  210. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.d.ts.map +1 -1
  211. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.js +56 -37
  212. package/dist/cjs/oauth/authorize/schema/grants/authorization-code.test.js +44 -45
  213. package/dist/cjs/oauth/authorize/schema/grants/implicit.d.ts +16 -10
  214. package/dist/cjs/oauth/authorize/schema/grants/implicit.d.ts.map +1 -1
  215. package/dist/cjs/oauth/authorize/schema/grants/implicit.js +19 -10
  216. package/dist/cjs/oauth/authorize/schema/schema.d.ts +44 -36
  217. package/dist/cjs/oauth/authorize/schema/schema.d.ts.map +1 -1
  218. package/dist/cjs/oauth/common/schema.d.ts +21 -7
  219. package/dist/cjs/oauth/common/schema.d.ts.map +1 -1
  220. package/dist/cjs/oauth/common/schema.js +20 -7
  221. package/dist/cjs/oauth/common/schema.test.js +25 -26
  222. package/dist/cjs/oauth/token/schema/grants/authorization-code.d.ts +12 -9
  223. package/dist/cjs/oauth/token/schema/grants/authorization-code.d.ts.map +1 -1
  224. package/dist/cjs/oauth/token/schema/grants/authorization-code.js +11 -10
  225. package/dist/cjs/oauth/token/schema/grants/client-credentials.d.ts +20 -15
  226. package/dist/cjs/oauth/token/schema/grants/client-credentials.d.ts.map +1 -1
  227. package/dist/cjs/oauth/token/schema/grants/client-credentials.js +13 -8
  228. package/dist/cjs/oauth/token/schema/grants/refresh-token.d.ts +11 -8
  229. package/dist/cjs/oauth/token/schema/grants/refresh-token.d.ts.map +1 -1
  230. package/dist/cjs/oauth/token/schema/grants/refresh-token.js +6 -6
  231. package/dist/cjs/oauth/token/schema/schema.d.ts +28 -21
  232. package/dist/cjs/oauth/token/schema/schema.d.ts.map +1 -1
  233. package/dist/cjs/oauth/token/schema/schema.test.js +42 -28
  234. package/dist/cjs/workspace/authorization/schema.d.ts +44 -27
  235. package/dist/cjs/workspace/authorization/schema.d.ts.map +1 -1
  236. package/dist/cjs/workspace/authorization/schema.js +16 -11
  237. package/dist/cjs/workspace/branding/schema.d.ts +30 -37
  238. package/dist/cjs/workspace/branding/schema.d.ts.map +1 -1
  239. package/dist/cjs/workspace/branding/schema.js +20 -15
  240. package/dist/cjs/workspace/membership/schema.d.ts +21 -20
  241. package/dist/cjs/workspace/membership/schema.d.ts.map +1 -1
  242. package/dist/cjs/workspace/membership/schema.js +6 -6
  243. package/dist/cjs/workspace/registration/schema.d.ts +26 -27
  244. package/dist/cjs/workspace/registration/schema.d.ts.map +1 -1
  245. package/dist/cjs/workspace/registration/schema.js +13 -11
  246. package/dist/cjs/workspace/settings/schema.d.ts +12 -19
  247. package/dist/cjs/workspace/settings/schema.d.ts.map +1 -1
  248. package/dist/cjs/workspace/settings/schema.js +7 -6
  249. package/dist/cjs/workspace/settings/schema.test.js +18 -19
  250. package/dist/cjs/workspace/tenant/schema.d.ts +55 -57
  251. package/dist/cjs/workspace/tenant/schema.d.ts.map +1 -1
  252. package/dist/cjs/workspace/tenant/schema.js +17 -12
  253. package/dist/cjs/workspace/user/notifications/schema.d.ts +50 -56
  254. package/dist/cjs/workspace/user/notifications/schema.d.ts.map +1 -1
  255. package/dist/cjs/workspace/user/notifications/schema.js +26 -23
  256. package/dist/cjs/workspace/user/preferences/schema.d.ts +18 -25
  257. package/dist/cjs/workspace/user/preferences/schema.d.ts.map +1 -1
  258. package/dist/cjs/workspace/user/preferences/schema.js +16 -11
  259. package/dist/esm/action/schema/base.d.ts +22 -20
  260. package/dist/esm/action/schema/base.d.ts.map +1 -1
  261. package/dist/esm/action/schema/base.js +15 -8
  262. package/dist/esm/action/schema/base.test.js +50 -34
  263. package/dist/esm/action/schema/operations/set-password.d.ts +30 -30
  264. package/dist/esm/action/schema/operations/set-password.d.ts.map +1 -1
  265. package/dist/esm/action/schema/operations/set-password.js +9 -8
  266. package/dist/esm/action/schema/operations/set-password.test.js +30 -29
  267. package/dist/esm/action/schema/operations/sign-up-verification.d.ts +21 -21
  268. package/dist/esm/action/schema/operations/sign-up-verification.d.ts.map +1 -1
  269. package/dist/esm/action/schema/operations/sign-up-verification.js +8 -7
  270. package/dist/esm/action/schema/operations/sign-up-verification.test.js +28 -29
  271. package/dist/esm/action/schema/operations/sign-up.d.ts +40 -43
  272. package/dist/esm/action/schema/operations/sign-up.d.ts.map +1 -1
  273. package/dist/esm/action/schema/operations/sign-up.js +19 -10
  274. package/dist/esm/action/schema/operations/sign-up.test.js +33 -34
  275. package/dist/esm/action/schema/operations/user-attribute-verification.d.ts +19 -19
  276. package/dist/esm/action/schema/operations/user-attribute-verification.d.ts.map +1 -1
  277. package/dist/esm/action/schema/operations/user-attribute-verification.js +6 -5
  278. package/dist/esm/action/schema/operations/user-attribute-verification.test.js +25 -26
  279. package/dist/esm/action/schema/schema.d.ts +70 -76
  280. package/dist/esm/action/schema/schema.d.ts.map +1 -1
  281. package/dist/esm/action/schema/schema.test.js +26 -27
  282. package/dist/esm/activity/resources.d.ts.map +1 -1
  283. package/dist/esm/activity/resources.js +2 -2
  284. package/dist/esm/activity/schema/base.d.ts +88 -69
  285. package/dist/esm/activity/schema/base.d.ts.map +1 -1
  286. package/dist/esm/activity/schema/base.js +30 -18
  287. package/dist/esm/activity/schema/base.test.js +85 -55
  288. package/dist/esm/activity/schema/schema.d.ts +293 -226
  289. package/dist/esm/activity/schema/schema.d.ts.map +1 -1
  290. package/dist/esm/activity/schema/schema.test.js +47 -48
  291. package/dist/esm/activity/schema/types/authentication.d.ts +64 -46
  292. package/dist/esm/activity/schema/types/authentication.d.ts.map +1 -1
  293. package/dist/esm/activity/schema/types/authentication.js +16 -7
  294. package/dist/esm/activity/schema/types/authentication.test.js +37 -38
  295. package/dist/esm/activity/schema/types/authorization.d.ts +64 -46
  296. package/dist/esm/activity/schema/types/authorization.d.ts.map +1 -1
  297. package/dist/esm/activity/schema/types/authorization.js +16 -7
  298. package/dist/esm/activity/schema/types/authorization.test.js +41 -42
  299. package/dist/esm/activity/schema/types/note.d.ts +83 -70
  300. package/dist/esm/activity/schema/types/note.d.ts.map +1 -1
  301. package/dist/esm/activity/schema/types/note.js +20 -12
  302. package/dist/esm/activity/schema/types/note.test.js +48 -49
  303. package/dist/esm/activity/schema/types/operation.d.ts +64 -45
  304. package/dist/esm/activity/schema/types/operation.d.ts.map +1 -1
  305. package/dist/esm/activity/schema/types/operation.js +19 -8
  306. package/dist/esm/activity/schema/types/operation.test.js +34 -35
  307. package/dist/esm/activity/schema/types/unknown.d.ts +50 -41
  308. package/dist/esm/activity/schema/types/unknown.d.ts.map +1 -1
  309. package/dist/esm/activity/schema/types/unknown.js +12 -6
  310. package/dist/esm/activity/schema/types/unknown.test.js +29 -30
  311. package/dist/esm/app/authorization/resources.d.ts.map +1 -1
  312. package/dist/esm/app/authorization/resources.js +2 -3
  313. package/dist/esm/app/authorization/schema.d.ts +96 -52
  314. package/dist/esm/app/authorization/schema.d.ts.map +1 -1
  315. package/dist/esm/app/authorization/schema.js +61 -52
  316. package/dist/esm/app/authorization/schema.test.js +96 -71
  317. package/dist/esm/app/oauth/resources.d.ts.map +1 -1
  318. package/dist/esm/app/oauth/resources.js +2 -3
  319. package/dist/esm/app/oauth/schema.d.ts +34 -41
  320. package/dist/esm/app/oauth/schema.d.ts.map +1 -1
  321. package/dist/esm/app/oauth/schema.js +23 -17
  322. package/dist/esm/app/oauth/schema.test.js +38 -39
  323. package/dist/esm/app/oidc/resources.d.ts.map +1 -1
  324. package/dist/esm/app/oidc/resources.js +4 -5
  325. package/dist/esm/app/oidc/schema.d.ts +26 -37
  326. package/dist/esm/app/oidc/schema.d.ts.map +1 -1
  327. package/dist/esm/app/oidc/schema.js +17 -12
  328. package/dist/esm/app/oidc/schema.test.js +45 -26
  329. package/dist/esm/app/registration/resources.d.ts.map +1 -1
  330. package/dist/esm/app/registration/resources.js +2 -3
  331. package/dist/esm/app/registration/schema.d.ts +24 -31
  332. package/dist/esm/app/registration/schema.d.ts.map +1 -1
  333. package/dist/esm/app/registration/schema.js +23 -16
  334. package/dist/esm/app/registration/schema.test.js +68 -150
  335. package/dist/esm/app/resources.d.ts.map +1 -1
  336. package/dist/esm/app/resources.js +6 -6
  337. package/dist/esm/app/saml/resources.d.ts.map +1 -1
  338. package/dist/esm/app/saml/resources.js +4 -5
  339. package/dist/esm/app/saml/schema.d.ts +26 -37
  340. package/dist/esm/app/saml/schema.d.ts.map +1 -1
  341. package/dist/esm/app/saml/schema.js +17 -12
  342. package/dist/esm/app/schema.d.ts +72 -68
  343. package/dist/esm/app/schema.d.ts.map +1 -1
  344. package/dist/esm/app/schema.js +34 -27
  345. package/dist/esm/app/schema.test.js +38 -41
  346. package/dist/esm/association/resources.d.ts.map +1 -1
  347. package/dist/esm/association/resources.js +4 -6
  348. package/dist/esm/association/schema.d.ts +225 -181
  349. package/dist/esm/association/schema.d.ts.map +1 -1
  350. package/dist/esm/association/schema.js +28 -22
  351. package/dist/esm/association/schema.test.js +36 -28
  352. package/dist/esm/authentication/factors/schema.d.ts +18 -55
  353. package/dist/esm/authentication/factors/schema.d.ts.map +1 -1
  354. package/dist/esm/authentication/factors/schema.js +21 -23
  355. package/dist/esm/authentication/factors/schema.test.js +33 -34
  356. package/dist/esm/authentication/providers/schema.d.ts +23 -22
  357. package/dist/esm/authentication/providers/schema.d.ts.map +1 -1
  358. package/dist/esm/authentication/providers/schema.js +10 -8
  359. package/dist/esm/authentication/sessions/resources.d.ts.map +1 -1
  360. package/dist/esm/authentication/sessions/resources.js +3 -3
  361. package/dist/esm/authentication/sessions/schema.d.ts +101 -74
  362. package/dist/esm/authentication/sessions/schema.d.ts.map +1 -1
  363. package/dist/esm/authentication/sessions/schema.js +56 -25
  364. package/dist/esm/authentication/settings/resources.d.ts.map +1 -1
  365. package/dist/esm/authentication/settings/resources.js +2 -3
  366. package/dist/esm/authentication/settings/schema.d.ts +25 -68
  367. package/dist/esm/authentication/settings/schema.d.ts.map +1 -1
  368. package/dist/esm/authentication/settings/schema.js +13 -10
  369. package/dist/esm/authentication/settings/schema.test.js +28 -19
  370. package/dist/esm/authentication/strategies/resources.d.ts.map +1 -1
  371. package/dist/esm/authentication/strategies/resources.js +6 -6
  372. package/dist/esm/authentication/strategies/schema/base.d.ts +59 -51
  373. package/dist/esm/authentication/strategies/schema/base.d.ts.map +1 -1
  374. package/dist/esm/authentication/strategies/schema/base.js +26 -15
  375. package/dist/esm/authentication/strategies/schema/schema.d.ts +206 -197
  376. package/dist/esm/authentication/strategies/schema/schema.d.ts.map +1 -1
  377. package/dist/esm/authentication/strategies/schema/types/email.d.ts +61 -60
  378. package/dist/esm/authentication/strategies/schema/types/email.d.ts.map +1 -1
  379. package/dist/esm/authentication/strategies/schema/types/email.js +24 -14
  380. package/dist/esm/authentication/strategies/schema/types/email.test.js +49 -50
  381. package/dist/esm/authentication/strategies/schema/types/password.d.ts +129 -122
  382. package/dist/esm/authentication/strategies/schema/types/password.d.ts.map +1 -1
  383. package/dist/esm/authentication/strategies/schema/types/password.js +33 -25
  384. package/dist/esm/authentication/strategies/schema/types/totp.d.ts +107 -94
  385. package/dist/esm/authentication/strategies/schema/types/totp.d.ts.map +1 -1
  386. package/dist/esm/authentication/strategies/schema/types/totp.js +50 -26
  387. package/dist/esm/authorization/permissions/resources.d.ts.map +1 -1
  388. package/dist/esm/authorization/permissions/resources.js +6 -6
  389. package/dist/esm/authorization/permissions/schema.d.ts +92 -88
  390. package/dist/esm/authorization/permissions/schema.d.ts.map +1 -1
  391. package/dist/esm/authorization/permissions/schema.js +38 -28
  392. package/dist/esm/authorization/permissions/schema.test.js +57 -59
  393. package/dist/esm/authorization/roles/resources.d.ts.map +1 -1
  394. package/dist/esm/authorization/roles/resources.js +6 -6
  395. package/dist/esm/authorization/roles/schema.d.ts +102 -98
  396. package/dist/esm/authorization/roles/schema.d.ts.map +1 -1
  397. package/dist/esm/authorization/roles/schema.js +35 -32
  398. package/dist/esm/authorization/roles/schema.test.js +58 -59
  399. package/dist/esm/authorization/schema.d.ts +7 -6
  400. package/dist/esm/authorization/schema.d.ts.map +1 -1
  401. package/dist/esm/authorization/schema.js +9 -3
  402. package/dist/esm/common/resources/init.d.ts +7 -6
  403. package/dist/esm/common/resources/init.d.ts.map +1 -1
  404. package/dist/esm/common/resources/init.js +17 -9
  405. package/dist/esm/common/resources/utils.d.ts +0 -9
  406. package/dist/esm/common/resources/utils.d.ts.map +1 -1
  407. package/dist/esm/common/resources/utils.js +0 -24
  408. package/dist/esm/common/resources/utils.test.js +1 -30
  409. package/dist/esm/common/schema/aggregate.d.ts +6 -5
  410. package/dist/esm/common/schema/aggregate.d.ts.map +1 -1
  411. package/dist/esm/common/schema/aggregate.js +4 -4
  412. package/dist/esm/common/schema/aggregate.test.js +21 -22
  413. package/dist/esm/common/schema/collection.d.ts +11 -10
  414. package/dist/esm/common/schema/collection.d.ts.map +1 -1
  415. package/dist/esm/common/schema/collection.js +4 -4
  416. package/dist/esm/common/schema/collection.test.js +66 -48
  417. package/dist/esm/common/schema/dates.d.ts +27 -26
  418. package/dist/esm/common/schema/dates.d.ts.map +1 -1
  419. package/dist/esm/common/schema/dates.js +17 -11
  420. package/dist/esm/common/schema/dates.test.js +24 -13
  421. package/dist/esm/common/schema/id.d.ts +2 -1
  422. package/dist/esm/common/schema/id.d.ts.map +1 -1
  423. package/dist/esm/common/schema/id.js +2 -2
  424. package/dist/esm/common/schema/id.test.js +70 -38
  425. package/dist/esm/common/schema/jwt.d.ts +27 -14
  426. package/dist/esm/common/schema/jwt.d.ts.map +1 -1
  427. package/dist/esm/common/schema/jwt.js +14 -2
  428. package/dist/esm/common/schema/jwt.test.js +25 -19
  429. package/dist/esm/common/schema/metadata.d.ts +24 -41
  430. package/dist/esm/common/schema/metadata.d.ts.map +1 -1
  431. package/dist/esm/common/schema/metadata.js +38 -37
  432. package/dist/esm/common/schema/metadata.test.js +36 -37
  433. package/dist/esm/common/schema/pagination.d.ts +6 -5
  434. package/dist/esm/common/schema/pagination.d.ts.map +1 -1
  435. package/dist/esm/common/schema/pagination.js +4 -4
  436. package/dist/esm/common/schema/pagination.test.js +19 -20
  437. package/dist/esm/common/schema/schema.d.ts +4 -4
  438. package/dist/esm/common/schema/schema.d.ts.map +1 -1
  439. package/dist/esm/common/schema/schema.js +6 -5
  440. package/dist/esm/common/schema/schema.test.js +9 -15
  441. package/dist/esm/common/schema/sets.d.ts +3 -2
  442. package/dist/esm/common/schema/sets.d.ts.map +1 -1
  443. package/dist/esm/common/schema/sets.js +9 -6
  444. package/dist/esm/common/schema/sets.test.js +53 -44
  445. package/dist/esm/customer/organization/schema.d.ts +44 -46
  446. package/dist/esm/customer/organization/schema.d.ts.map +1 -1
  447. package/dist/esm/customer/organization/schema.js +26 -20
  448. package/dist/esm/customer/schema.d.ts +7 -6
  449. package/dist/esm/customer/schema.d.ts.map +1 -1
  450. package/dist/esm/customer/schema.js +9 -3
  451. package/dist/esm/customer/users/resources.d.ts.map +1 -1
  452. package/dist/esm/customer/users/resources.js +6 -6
  453. package/dist/esm/customer/users/schema.d.ts +140 -139
  454. package/dist/esm/customer/users/schema.d.ts.map +1 -1
  455. package/dist/esm/customer/users/schema.js +58 -46
  456. package/dist/esm/customer/users/schema.test.js +22 -35
  457. package/dist/esm/customer/users/utils.d.ts +3 -2
  458. package/dist/esm/customer/users/utils.d.ts.map +1 -1
  459. package/dist/esm/customer/users/utils.test.js +1 -1
  460. package/dist/esm/identity/schema.d.ts +5 -1
  461. package/dist/esm/identity/schema.d.ts.map +1 -1
  462. package/dist/esm/identity/schema.js +5 -2
  463. package/dist/esm/identity/schema.test.js +21 -16
  464. package/dist/esm/oauth/authorize/schema/grants/authorization-code.d.ts +31 -28
  465. package/dist/esm/oauth/authorize/schema/grants/authorization-code.d.ts.map +1 -1
  466. package/dist/esm/oauth/authorize/schema/grants/authorization-code.js +56 -37
  467. package/dist/esm/oauth/authorize/schema/grants/authorization-code.test.js +44 -45
  468. package/dist/esm/oauth/authorize/schema/grants/implicit.d.ts +16 -10
  469. package/dist/esm/oauth/authorize/schema/grants/implicit.d.ts.map +1 -1
  470. package/dist/esm/oauth/authorize/schema/grants/implicit.js +19 -10
  471. package/dist/esm/oauth/authorize/schema/schema.d.ts +44 -36
  472. package/dist/esm/oauth/authorize/schema/schema.d.ts.map +1 -1
  473. package/dist/esm/oauth/common/schema.d.ts +21 -7
  474. package/dist/esm/oauth/common/schema.d.ts.map +1 -1
  475. package/dist/esm/oauth/common/schema.js +20 -7
  476. package/dist/esm/oauth/common/schema.test.js +25 -26
  477. package/dist/esm/oauth/token/schema/grants/authorization-code.d.ts +12 -9
  478. package/dist/esm/oauth/token/schema/grants/authorization-code.d.ts.map +1 -1
  479. package/dist/esm/oauth/token/schema/grants/authorization-code.js +11 -10
  480. package/dist/esm/oauth/token/schema/grants/client-credentials.d.ts +20 -15
  481. package/dist/esm/oauth/token/schema/grants/client-credentials.d.ts.map +1 -1
  482. package/dist/esm/oauth/token/schema/grants/client-credentials.js +13 -8
  483. package/dist/esm/oauth/token/schema/grants/refresh-token.d.ts +11 -8
  484. package/dist/esm/oauth/token/schema/grants/refresh-token.d.ts.map +1 -1
  485. package/dist/esm/oauth/token/schema/grants/refresh-token.js +6 -6
  486. package/dist/esm/oauth/token/schema/schema.d.ts +28 -21
  487. package/dist/esm/oauth/token/schema/schema.d.ts.map +1 -1
  488. package/dist/esm/oauth/token/schema/schema.test.js +42 -28
  489. package/dist/esm/workspace/authorization/schema.d.ts +44 -27
  490. package/dist/esm/workspace/authorization/schema.d.ts.map +1 -1
  491. package/dist/esm/workspace/authorization/schema.js +16 -11
  492. package/dist/esm/workspace/branding/schema.d.ts +30 -37
  493. package/dist/esm/workspace/branding/schema.d.ts.map +1 -1
  494. package/dist/esm/workspace/branding/schema.js +20 -15
  495. package/dist/esm/workspace/membership/schema.d.ts +21 -20
  496. package/dist/esm/workspace/membership/schema.d.ts.map +1 -1
  497. package/dist/esm/workspace/membership/schema.js +6 -6
  498. package/dist/esm/workspace/registration/schema.d.ts +26 -27
  499. package/dist/esm/workspace/registration/schema.d.ts.map +1 -1
  500. package/dist/esm/workspace/registration/schema.js +13 -11
  501. package/dist/esm/workspace/settings/schema.d.ts +12 -19
  502. package/dist/esm/workspace/settings/schema.d.ts.map +1 -1
  503. package/dist/esm/workspace/settings/schema.js +7 -6
  504. package/dist/esm/workspace/settings/schema.test.js +18 -19
  505. package/dist/esm/workspace/tenant/schema.d.ts +55 -57
  506. package/dist/esm/workspace/tenant/schema.d.ts.map +1 -1
  507. package/dist/esm/workspace/tenant/schema.js +17 -12
  508. package/dist/esm/workspace/user/notifications/schema.d.ts +50 -56
  509. package/dist/esm/workspace/user/notifications/schema.d.ts.map +1 -1
  510. package/dist/esm/workspace/user/notifications/schema.js +26 -23
  511. package/dist/esm/workspace/user/preferences/schema.d.ts +18 -25
  512. package/dist/esm/workspace/user/preferences/schema.d.ts.map +1 -1
  513. package/dist/esm/workspace/user/preferences/schema.js +16 -11
  514. package/package.json +3 -3
  515. package/src/action/schema/base.test.ts.bak +152 -0
  516. package/src/action/schema/operations/set-password.test.ts.bak +197 -0
  517. package/src/action/schema/operations/sign-up-verification.test.ts.bak +163 -0
  518. package/src/action/schema/operations/sign-up.test.ts.bak +203 -0
  519. package/src/action/schema/operations/user-attribute-verification.test.ts.bak +148 -0
  520. package/src/action/schema/schema.test.ts.bak +218 -0
  521. package/src/activity/schema/base.test.ts.bak +291 -0
  522. package/src/activity/schema/schema.test.ts.bak +392 -0
  523. package/src/activity/schema/types/authentication.test.ts.bak +337 -0
  524. package/src/activity/schema/types/authorization.test.ts.bak +379 -0
  525. package/src/activity/schema/types/note.test.ts.bak +367 -0
  526. package/src/activity/schema/types/operation.test.ts.bak +379 -0
  527. package/src/activity/schema/types/unknown.test.ts.bak +304 -0
  528. package/src/app/authorization/schema.test.ts.bak +412 -0
  529. package/src/app/oidc/schema.test.ts.bak +117 -0
  530. package/src/app/registration/schema.test.ts.bak +308 -0
  531. package/src/app/schema.test.ts.bak +221 -0
  532. package/src/association/schema.test.ts.bak +148 -0
  533. package/src/authentication/factors/schema.test.ts.bak +174 -0
  534. package/src/authentication/settings/schema.test.ts.bak +91 -0
  535. package/src/authentication/strategies/schema/types/email.test.ts.bak +252 -0
  536. package/src/authorization/permissions/schema.test.ts.bak +267 -0
  537. package/src/authorization/roles/schema.test.ts.bak +283 -0
  538. package/src/common/schema/aggregate.test.ts.bak +89 -0
  539. package/src/common/schema/collection.test.ts.bak +116 -0
  540. package/src/common/schema/dates.test.ts.bak +49 -0
  541. package/src/common/schema/id.test.ts.bak +149 -0
  542. package/src/common/schema/jwt.test.ts.bak +61 -0
  543. package/src/common/schema/metadata.test.ts.bak +141 -0
  544. package/src/common/schema/pagination.test.ts.bak +80 -0
  545. package/src/common/schema/schema.test.ts.bak +41 -0
  546. package/src/common/schema/sets.test.ts.bak +108 -0
  547. package/src/customer/users/schema.test.ts.bak +138 -0
  548. package/src/identity/schema.test.ts.bak +48 -0
  549. package/src/oauth/token/schema/schema.test.ts.bak +142 -0
  550. package/src/workspace/settings/schema.test.ts.bak +88 -0
@@ -1,203 +1,212 @@
1
+ import type { z } from 'zod';
1
2
  /**
2
3
  * Union(s)
3
4
  */
4
- export declare const InsertStrategyPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
5
- type: "email";
6
- label: string;
7
- status: import("arktype/internal/attributes.ts").Default<"enabled" | "disabled", "enabled">;
8
- id?: string | 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
- type: "password";
16
- label: string;
17
- status: import("arktype/internal/attributes.ts").Default<"enabled" | "disabled", "enabled">;
18
- id?: string | undefined;
19
- metadata?: ((In: {
20
- [x: string]: string | number | boolean;
21
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
22
- [x: string]: string | number | boolean;
23
- } | undefined>) | undefined;
24
- settings?: {
25
- passwordPolicy: {
26
- minimumLength: import("arktype/internal/attributes.ts").Default<number, number>;
27
- maximumLength: import("arktype/internal/attributes.ts").Default<number, number>;
28
- minimumCapital: import("arktype/internal/attributes.ts").Default<number, number>;
29
- minimumLower: import("arktype/internal/attributes.ts").Default<number, number>;
30
- minimumNumber: import("arktype/internal/attributes.ts").Default<number, number>;
31
- minimumSpecial: import("arktype/internal/attributes.ts").Default<number, number>;
32
- };
33
- } | undefined;
34
- } | {
35
- type: "totp";
36
- label: string;
37
- status: import("arktype/internal/attributes.ts").Default<"enabled" | "disabled", "enabled">;
38
- id?: string | undefined;
39
- metadata?: ((In: {
40
- [x: string]: string | number | boolean;
41
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
42
- [x: string]: string | number | boolean;
43
- } | undefined>) | undefined;
44
- settings?: {
45
- digits: import("arktype/internal/attributes.ts").Default<6 | 7 | 8, 6>;
46
- period: import("arktype/internal/attributes.ts").Default<15 | 30 | 60, 30>;
47
- algorithm: import("arktype/internal/attributes.ts").Default<string, string>;
48
- } | undefined;
49
- }, {}>;
50
- export type InsertStrategyInput = typeof InsertStrategyPayloadSchema.inferIn;
51
- export type InsertStrategyPayload = typeof InsertStrategyPayloadSchema.inferOut;
52
- export declare const UpdateStrategyPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
53
- type: "email";
54
- label?: string | undefined;
55
- status?: "enabled" | "disabled" | undefined;
56
- metadata?: ((In: {
57
- [x: string]: string | number | boolean;
58
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
59
- [x: string]: string | number | boolean;
60
- } | undefined>) | undefined;
61
- } | {
62
- type: "password";
63
- label?: string | undefined;
64
- status?: "enabled" | "disabled" | undefined;
65
- metadata?: ((In: {
66
- [x: string]: string | number | boolean;
67
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
68
- [x: string]: string | number | boolean;
69
- } | undefined>) | undefined;
70
- settings?: {
71
- passwordPolicy: {
72
- minimumLength: import("arktype/internal/attributes.ts").Default<number, number>;
73
- maximumLength: import("arktype/internal/attributes.ts").Default<number, number>;
74
- minimumCapital: import("arktype/internal/attributes.ts").Default<number, number>;
75
- minimumLower: import("arktype/internal/attributes.ts").Default<number, number>;
76
- minimumNumber: import("arktype/internal/attributes.ts").Default<number, number>;
77
- minimumSpecial: import("arktype/internal/attributes.ts").Default<number, number>;
78
- };
79
- } | undefined;
80
- } | {
81
- type: "totp";
82
- label?: string | undefined;
83
- status?: "enabled" | "disabled" | undefined;
84
- metadata?: ((In: {
85
- [x: string]: string | number | boolean;
86
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
87
- [x: string]: string | number | boolean;
88
- } | undefined>) | undefined;
89
- settings?: {
90
- digits: import("arktype/internal/attributes.ts").Default<6 | 7 | 8, 6>;
91
- period: import("arktype/internal/attributes.ts").Default<15 | 30 | 60, 30>;
92
- algorithm: import("arktype/internal/attributes.ts").Default<string, string>;
93
- } | undefined;
94
- }, {}>;
95
- export type UpdateStrategyInput = typeof UpdateStrategyPayloadSchema.inferIn;
96
- export type UpdateStrategyPayload = typeof UpdateStrategyPayloadSchema.inferOut;
97
- export declare const StrategyPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
98
- status: "enabled" | "disabled";
99
- label: string;
100
- createdAt: (In: string | Date) => import("arktype").Out<string>;
101
- updatedAt: (In: string | Date) => import("arktype").Out<string>;
102
- deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
103
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
104
- metadata?: ((In: {
105
- [x: string]: string | number | boolean;
106
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
107
- [x: string]: string | number | boolean;
108
- } | undefined>) | undefined;
109
- type: "email";
110
- } | {
111
- status: "enabled" | "disabled";
112
- label: string;
113
- createdAt: (In: string | Date) => import("arktype").Out<string>;
114
- updatedAt: (In: string | Date) => import("arktype").Out<string>;
115
- deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
116
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
117
- metadata?: ((In: {
118
- [x: string]: string | number | boolean;
119
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
120
- [x: string]: string | number | boolean;
121
- } | undefined>) | undefined;
122
- type: "password";
123
- settings: {
124
- passwordPolicy: {
125
- minimumLength: import("arktype/internal/attributes.ts").Default<number, number>;
126
- maximumLength: import("arktype/internal/attributes.ts").Default<number, number>;
127
- minimumCapital: import("arktype/internal/attributes.ts").Default<number, number>;
128
- minimumLower: import("arktype/internal/attributes.ts").Default<number, number>;
129
- minimumNumber: import("arktype/internal/attributes.ts").Default<number, number>;
130
- minimumSpecial: import("arktype/internal/attributes.ts").Default<number, number>;
131
- };
132
- };
133
- } | {
134
- status: "enabled" | "disabled";
135
- label: string;
136
- createdAt: (In: string | Date) => import("arktype").Out<string>;
137
- updatedAt: (In: string | Date) => import("arktype").Out<string>;
138
- deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
139
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
140
- metadata?: ((In: {
141
- [x: string]: string | number | boolean;
142
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
143
- [x: string]: string | number | boolean;
144
- } | undefined>) | undefined;
145
- type: "totp";
146
- settings: {
147
- digits: import("arktype/internal/attributes.ts").Default<6 | 7 | 8, 6>;
148
- period: import("arktype/internal/attributes.ts").Default<15 | 30 | 60, 30>;
149
- algorithm: import("arktype/internal/attributes.ts").Default<string, string>;
150
- };
151
- }, {}>;
152
- export type StrategyPayload = typeof StrategyPayloadSchema.inferOut;
153
- export declare const StrategySchema: import("arktype/internal/methods/object.ts").ObjectType<{
154
- id: string;
155
- status: import("arktype/internal/attributes.ts").Default<"enabled" | "disabled", "enabled">;
156
- label: string;
157
- createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
158
- updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
159
- deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
160
- deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
161
- metadata: (In: import("arktype/internal/attributes.ts").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean>>;
162
- type: "email";
163
- } | {
164
- id: string;
165
- status: import("arktype/internal/attributes.ts").Default<"enabled" | "disabled", "enabled">;
166
- label: string;
167
- createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
168
- updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
169
- deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
170
- deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
171
- metadata: (In: import("arktype/internal/attributes.ts").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean>>;
172
- type: "password";
173
- settings: {
174
- passwordPolicy: {
175
- minimumLength: import("arktype/internal/attributes.ts").Default<number, number>;
176
- maximumLength: import("arktype/internal/attributes.ts").Default<number, number>;
177
- minimumCapital: import("arktype/internal/attributes.ts").Default<number, number>;
178
- minimumLower: import("arktype/internal/attributes.ts").Default<number, number>;
179
- minimumNumber: import("arktype/internal/attributes.ts").Default<number, number>;
180
- minimumSpecial: import("arktype/internal/attributes.ts").Default<number, number>;
181
- };
182
- };
183
- } | {
184
- id: string;
185
- status: import("arktype/internal/attributes.ts").Default<"enabled" | "disabled", "enabled">;
186
- label: string;
187
- createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
188
- updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
189
- deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
190
- deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
191
- metadata: (In: import("arktype/internal/attributes.ts").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean>>;
192
- type: "totp";
193
- settings: {
194
- digits: import("arktype/internal/attributes.ts").Default<6 | 7 | 8, 6>;
195
- period: import("arktype/internal/attributes.ts").Default<15 | 30 | 60, 30>;
196
- algorithm: import("arktype/internal/attributes.ts").Default<string, string>;
197
- };
198
- }, {}>;
199
- export type StrategyProperties = typeof StrategySchema.inferIn;
200
- export type Strategy = typeof StrategySchema.inferOut;
5
+ export declare const InsertStrategyPayloadSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
6
+ settings: z.ZodOptional<z.ZodObject<{
7
+ passwordPolicy: z.ZodObject<{
8
+ minimumLength: z.ZodDefault<z.ZodNumber>;
9
+ maximumLength: z.ZodDefault<z.ZodNumber>;
10
+ minimumCapital: z.ZodDefault<z.ZodNumber>;
11
+ minimumLower: z.ZodDefault<z.ZodNumber>;
12
+ minimumNumber: z.ZodDefault<z.ZodNumber>;
13
+ minimumSpecial: z.ZodDefault<z.ZodNumber>;
14
+ }, z.core.$strip>;
15
+ }, z.core.$strip>>;
16
+ 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>>>;
17
+ id: z.ZodOptional<z.ZodString>;
18
+ label: z.ZodString;
19
+ status: z.ZodDefault<z.ZodEnum<{
20
+ enabled: "enabled";
21
+ disabled: "disabled";
22
+ }>>;
23
+ type: z.ZodLiteral<"password">;
24
+ }, z.core.$strip>, z.ZodObject<{
25
+ 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>>>;
26
+ id: z.ZodOptional<z.ZodString>;
27
+ label: z.ZodString;
28
+ status: z.ZodDefault<z.ZodEnum<{
29
+ enabled: "enabled";
30
+ disabled: "disabled";
31
+ }>>;
32
+ type: z.ZodLiteral<"email">;
33
+ }, z.core.$strip>]>, z.ZodObject<{
34
+ settings: z.ZodOptional<z.ZodObject<{
35
+ digits: z.ZodDefault<z.ZodNumber>;
36
+ period: z.ZodDefault<z.ZodNumber>;
37
+ algorithm: z.ZodDefault<z.ZodEnum<{
38
+ [x: string]: string;
39
+ }>>;
40
+ }, z.core.$strip>>;
41
+ 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>>>;
42
+ id: z.ZodOptional<z.ZodString>;
43
+ label: z.ZodString;
44
+ status: z.ZodDefault<z.ZodEnum<{
45
+ enabled: "enabled";
46
+ disabled: "disabled";
47
+ }>>;
48
+ type: z.ZodLiteral<"totp">;
49
+ }, z.core.$strip>]>;
50
+ export type InsertStrategyInput = z.input<typeof InsertStrategyPayloadSchema>;
51
+ export type InsertStrategyPayload = z.output<typeof InsertStrategyPayloadSchema>;
52
+ export declare const UpdateStrategyPayloadSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
53
+ settings: z.ZodOptional<z.ZodObject<{
54
+ passwordPolicy: z.ZodObject<{
55
+ minimumLength: z.ZodDefault<z.ZodNumber>;
56
+ maximumLength: z.ZodDefault<z.ZodNumber>;
57
+ minimumCapital: z.ZodDefault<z.ZodNumber>;
58
+ minimumLower: z.ZodDefault<z.ZodNumber>;
59
+ minimumNumber: z.ZodDefault<z.ZodNumber>;
60
+ minimumSpecial: z.ZodDefault<z.ZodNumber>;
61
+ }, z.core.$strip>;
62
+ }, z.core.$strip>>;
63
+ 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>>>;
64
+ label: z.ZodOptional<z.ZodString>;
65
+ status: z.ZodOptional<z.ZodEnum<{
66
+ enabled: "enabled";
67
+ disabled: "disabled";
68
+ }>>;
69
+ type: z.ZodLiteral<"password">;
70
+ }, z.core.$strip>, z.ZodObject<{
71
+ 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>>>;
72
+ label: z.ZodOptional<z.ZodString>;
73
+ status: z.ZodOptional<z.ZodEnum<{
74
+ enabled: "enabled";
75
+ disabled: "disabled";
76
+ }>>;
77
+ type: z.ZodLiteral<"email">;
78
+ }, z.core.$strip>]>, z.ZodObject<{
79
+ settings: z.ZodOptional<z.ZodObject<{
80
+ digits: z.ZodDefault<z.ZodNumber>;
81
+ period: z.ZodDefault<z.ZodNumber>;
82
+ algorithm: z.ZodDefault<z.ZodEnum<{
83
+ [x: string]: string;
84
+ }>>;
85
+ }, z.core.$strip>>;
86
+ 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>>>;
87
+ label: z.ZodOptional<z.ZodString>;
88
+ status: z.ZodOptional<z.ZodEnum<{
89
+ enabled: "enabled";
90
+ disabled: "disabled";
91
+ }>>;
92
+ type: z.ZodLiteral<"totp">;
93
+ }, z.core.$strip>]>;
94
+ export type UpdateStrategyInput = z.input<typeof UpdateStrategyPayloadSchema>;
95
+ export type UpdateStrategyPayload = z.output<typeof UpdateStrategyPayloadSchema>;
96
+ export declare const StrategyPayloadSchema: z.ZodUnion<[z.ZodObject<{
97
+ settings: z.ZodObject<{
98
+ passwordPolicy: z.ZodObject<{
99
+ minimumLength: z.ZodDefault<z.ZodNumber>;
100
+ maximumLength: z.ZodDefault<z.ZodNumber>;
101
+ minimumCapital: z.ZodDefault<z.ZodNumber>;
102
+ minimumLower: z.ZodDefault<z.ZodNumber>;
103
+ minimumNumber: z.ZodDefault<z.ZodNumber>;
104
+ minimumSpecial: z.ZodDefault<z.ZodNumber>;
105
+ }, z.core.$strip>;
106
+ }, z.core.$strip>;
107
+ type: z.ZodLiteral<"password">;
108
+ 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>>>;
109
+ status: z.ZodEnum<{
110
+ enabled: "enabled";
111
+ disabled: "disabled";
112
+ }>;
113
+ label: z.ZodString;
114
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
115
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
116
+ 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>>>;
117
+ 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>>>;
118
+ }, z.core.$strip>, z.ZodUnion<[z.ZodObject<{
119
+ type: z.ZodLiteral<"email">;
120
+ 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>>>;
121
+ status: z.ZodEnum<{
122
+ enabled: "enabled";
123
+ disabled: "disabled";
124
+ }>;
125
+ label: z.ZodString;
126
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
127
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
128
+ 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>>>;
129
+ 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>>>;
130
+ }, z.core.$strip>, z.ZodObject<{
131
+ settings: z.ZodObject<{
132
+ digits: z.ZodDefault<z.ZodNumber>;
133
+ period: z.ZodDefault<z.ZodNumber>;
134
+ algorithm: z.ZodDefault<z.ZodEnum<{
135
+ [x: string]: string;
136
+ }>>;
137
+ }, z.core.$strip>;
138
+ type: z.ZodLiteral<"totp">;
139
+ 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>>>;
140
+ status: z.ZodEnum<{
141
+ enabled: "enabled";
142
+ disabled: "disabled";
143
+ }>;
144
+ label: z.ZodString;
145
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
146
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
147
+ 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>>>;
148
+ 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>>>;
149
+ }, z.core.$strip>]>]>;
150
+ export type StrategyPayload = z.input<typeof StrategyPayloadSchema>;
151
+ export declare const StrategySchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
152
+ settings: z.ZodObject<{
153
+ passwordPolicy: z.ZodObject<{
154
+ minimumLength: z.ZodDefault<z.ZodNumber>;
155
+ maximumLength: z.ZodDefault<z.ZodNumber>;
156
+ minimumCapital: z.ZodDefault<z.ZodNumber>;
157
+ minimumLower: z.ZodDefault<z.ZodNumber>;
158
+ minimumNumber: z.ZodDefault<z.ZodNumber>;
159
+ minimumSpecial: z.ZodDefault<z.ZodNumber>;
160
+ }, z.core.$strip>;
161
+ }, z.core.$strip>;
162
+ type: z.ZodLiteral<"password">;
163
+ 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>>;
164
+ id: z.ZodString;
165
+ status: z.ZodDefault<z.ZodEnum<{
166
+ enabled: "enabled";
167
+ disabled: "disabled";
168
+ }>>;
169
+ label: z.ZodString;
170
+ createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
171
+ updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
172
+ deletedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>>;
173
+ deactivatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>>;
174
+ }, z.core.$strip>, z.ZodObject<{
175
+ type: z.ZodLiteral<"email">;
176
+ 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>>;
177
+ id: z.ZodString;
178
+ status: z.ZodDefault<z.ZodEnum<{
179
+ enabled: "enabled";
180
+ disabled: "disabled";
181
+ }>>;
182
+ label: z.ZodString;
183
+ createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
184
+ updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
185
+ deletedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>>;
186
+ deactivatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>>;
187
+ }, z.core.$strip>]>, z.ZodObject<{
188
+ settings: z.ZodObject<{
189
+ digits: z.ZodDefault<z.ZodNumber>;
190
+ period: z.ZodDefault<z.ZodNumber>;
191
+ algorithm: z.ZodDefault<z.ZodEnum<{
192
+ [x: string]: string;
193
+ }>>;
194
+ }, z.core.$strip>;
195
+ type: z.ZodLiteral<"totp">;
196
+ 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>>;
197
+ id: z.ZodString;
198
+ status: z.ZodDefault<z.ZodEnum<{
199
+ enabled: "enabled";
200
+ disabled: "disabled";
201
+ }>>;
202
+ label: z.ZodString;
203
+ createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
204
+ updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
205
+ deletedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>>;
206
+ deactivatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>>;
207
+ }, z.core.$strip>]>;
208
+ export type StrategyProperties = z.input<typeof StrategySchema>;
209
+ export type Strategy = z.output<typeof StrategySchema>;
201
210
  export { BaseInsertStrategyPayloadSchema, BaseStrategyPayloadSchema, BaseUpdateStrategyPayloadSchema, StrategyIdPropertySchema, StrategyIdSchema, StrategyLabelSchema, StrategyStatus, StrategyStatusSchema, StrategyType, type AnyStrategyStatus, type AnyStrategyType, type StrategyId, type StrategyIdProperty, } from './base.js';
202
211
  export * from './types/email.js';
203
212
  export * from './types/password.js';
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/authentication/strategies/schema/schema.ts"],"names":[],"mappings":"AAmBA;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAGrC,CAAC;AACJ,MAAM,MAAM,mBAAmB,GAAG,OAAO,2BAA2B,CAAC,OAAO,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,OAAO,2BAA2B,CAAC,QAAQ,CAAC;AAEhF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAGrC,CAAC;AACJ,MAAM,MAAM,mBAAmB,GAAG,OAAO,2BAA2B,CAAC,OAAO,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,OAAO,2BAA2B,CAAC,QAAQ,CAAC;AAEhF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEjC,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,OAAO,qBAAqB,CAAC,QAAQ,CAAC;AAEpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAC4C,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,OAAO,cAAc,CAAC,OAAO,CAAC;AAC/D,MAAM,MAAM,QAAQ,GAAG,OAAO,cAAc,CAAC,QAAQ,CAAC;AAEtD,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,EACzB,+BAA+B,EAC/B,wBAAwB,EACxB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,kBAAkB,GACxB,MAAM,WAAW,CAAC;AACnB,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/authentication/strategies/schema/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqB7B;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAGrC,CAAC;AACJ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAC1C,OAAO,2BAA2B,CACnC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAGrC,CAAC;AACJ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAC1C,OAAO,2BAA2B,CACnC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAEjC,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAC4C,CAAC;AACxE,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,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,EACzB,+BAA+B,EAC/B,wBAAwB,EACxB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,kBAAkB,GACxB,MAAM,WAAW,CAAC;AACnB,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
@@ -1,61 +1,62 @@
1
- export declare const EmailStrategySchema: import("arktype/internal/methods/object.ts").ObjectType<{
2
- id: string;
3
- status: import("arktype/internal/attributes.ts").Default<"enabled" | "disabled", "enabled">;
4
- label: string;
5
- createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
6
- updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
7
- deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
8
- deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
9
- metadata: (In: import("arktype/internal/attributes.ts").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean>>;
10
- type: "email";
11
- }, {}>;
12
- export type EmailStrategyProperties = typeof EmailStrategySchema.inferIn;
13
- export type EmailStrategy = typeof EmailStrategySchema.inferOut;
14
- export declare const EmailStrategyPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
15
- status: "enabled" | "disabled";
16
- label: string;
17
- createdAt: (In: string | Date) => import("arktype").Out<string>;
18
- updatedAt: (In: string | Date) => import("arktype").Out<string>;
19
- deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
20
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | 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
- type: "email";
27
- }, {}>;
28
- export type EmailStrategyPayload = typeof EmailStrategyPayloadSchema.inferOut;
29
- export declare const InsertEmailStrategyPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
30
- type: "email";
31
- label: string;
32
- status: import("arktype/internal/attributes.ts").Default<"enabled" | "disabled", "enabled">;
33
- id?: string | undefined;
34
- metadata?: ((In: {
35
- [x: string]: string | number | boolean;
36
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
37
- [x: string]: string | number | boolean;
38
- } | undefined>) | undefined;
39
- }, {}>;
40
- export type InsertEmailStrategyInput = typeof InsertEmailStrategyPayloadSchema.inferIn;
41
- export type InsertEmailStrategyPayload = typeof InsertEmailStrategyPayloadSchema.inferOut;
42
- export declare const UpdateEmailStrategyPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
43
- type: "email";
44
- label?: string | undefined;
45
- status?: "enabled" | "disabled" | undefined;
46
- metadata?: ((In: {
47
- [x: string]: string | number | boolean;
48
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
49
- [x: string]: string | number | boolean;
50
- } | undefined>) | undefined;
51
- }, {}>;
52
- export type UpdateEmailStrategyInput = typeof UpdateEmailStrategyPayloadSchema.inferIn;
53
- export type UpdateEmailStrategyPayload = typeof UpdateEmailStrategyPayloadSchema.inferOut;
54
- export declare const VerifyEmailSchema: import("arktype/internal/methods/object.ts").ObjectType<{
55
- code: string;
56
- email?: string | undefined;
57
- }, {}>;
58
- export declare const SendEmailVerificationCodeSchema: import("arktype/internal/methods/object.ts").ObjectType<{
59
- email?: string | undefined;
60
- }, {}>;
1
+ import { z } from 'zod';
2
+ export declare const EmailStrategySchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"email">;
4
+ 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>>;
5
+ id: z.ZodString;
6
+ status: z.ZodDefault<z.ZodEnum<{
7
+ enabled: "enabled";
8
+ disabled: "disabled";
9
+ }>>;
10
+ label: z.ZodString;
11
+ createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
12
+ updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>;
13
+ deletedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>>;
14
+ deactivatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>>>;
15
+ }, z.core.$strip>;
16
+ export type EmailStrategyProperties = z.input<typeof EmailStrategySchema>;
17
+ export type EmailStrategy = z.output<typeof EmailStrategySchema>;
18
+ export declare const EmailStrategyPayloadSchema: z.ZodObject<{
19
+ type: z.ZodLiteral<"email">;
20
+ 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>>>;
21
+ status: z.ZodEnum<{
22
+ enabled: "enabled";
23
+ disabled: "disabled";
24
+ }>;
25
+ label: z.ZodString;
26
+ createdAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
27
+ updatedAt: z.ZodPipe<z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>]>, z.ZodTransform<string, Date>>;
28
+ 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>>>;
29
+ 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>>>;
30
+ }, z.core.$strip>;
31
+ export type EmailStrategyPayload = z.output<typeof EmailStrategyPayloadSchema>;
32
+ export declare const InsertEmailStrategyPayloadSchema: z.ZodObject<{
33
+ 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>>>;
34
+ id: z.ZodOptional<z.ZodString>;
35
+ label: z.ZodString;
36
+ status: z.ZodDefault<z.ZodEnum<{
37
+ enabled: "enabled";
38
+ disabled: "disabled";
39
+ }>>;
40
+ type: z.ZodLiteral<"email">;
41
+ }, z.core.$strip>;
42
+ export type InsertEmailStrategyInput = z.input<typeof InsertEmailStrategyPayloadSchema>;
43
+ export type InsertEmailStrategyPayload = z.output<typeof InsertEmailStrategyPayloadSchema>;
44
+ export declare const UpdateEmailStrategyPayloadSchema: z.ZodObject<{
45
+ 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>>>;
46
+ label: z.ZodOptional<z.ZodString>;
47
+ status: z.ZodOptional<z.ZodEnum<{
48
+ enabled: "enabled";
49
+ disabled: "disabled";
50
+ }>>;
51
+ type: z.ZodLiteral<"email">;
52
+ }, z.core.$strip>;
53
+ export type UpdateEmailStrategyInput = z.input<typeof UpdateEmailStrategyPayloadSchema>;
54
+ export type UpdateEmailStrategyPayload = z.output<typeof UpdateEmailStrategyPayloadSchema>;
55
+ export declare const VerifyEmailSchema: z.ZodObject<{
56
+ email: z.ZodOptional<z.ZodEmail>;
57
+ code: z.ZodString;
58
+ }, z.core.$strip>;
59
+ export declare const SendEmailVerificationCodeSchema: z.ZodObject<{
60
+ email: z.ZodOptional<z.ZodEmail>;
61
+ }, z.core.$strip>;
61
62
  //# sourceMappingURL=email.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../../../../../src/authentication/strategies/schema/types/email.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,mBAAmB;;;;;;;;;;MAAqC,CAAC;AACtE,MAAM,MAAM,uBAAuB,GAAG,OAAO,mBAAmB,CAAC,OAAO,CAAC;AACzE,MAAM,MAAM,aAAa,GAAG,OAAO,mBAAmB,CAAC,QAAQ,CAAC;AAEhE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;MACI,CAAC;AAC5C,MAAM,MAAM,oBAAoB,GAAG,OAAO,0BAA0B,CAAC,QAAQ,CAAC;AAE9E,eAAO,MAAM,gCAAgC;;;;;;;;;;MAE5B,CAAC;AAClB,MAAM,MAAM,wBAAwB,GAClC,OAAO,gCAAgC,CAAC,OAAO,CAAC;AAClD,MAAM,MAAM,0BAA0B,GACpC,OAAO,gCAAgC,CAAC,QAAQ,CAAC;AAEnD,eAAO,MAAM,gCAAgC;;;;;;;;;MAE5C,CAAC;AACF,MAAM,MAAM,wBAAwB,GAClC,OAAO,gCAAgC,CAAC,OAAO,CAAC;AAClD,MAAM,MAAM,0BAA0B,GACpC,OAAO,gCAAgC,CAAC,QAAQ,CAAC;AAEnD,eAAO,MAAM,iBAAiB;;;MAK5B,CAAC;AAEH,eAAO,MAAM,+BAA+B;;MAE1C,CAAC"}
1
+ {"version":3,"file":"email.d.ts","sourceRoot":"","sources":["../../../../../../src/authentication/strategies/schema/types/email.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;iBAG9B,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC1E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEjE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;iBAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE/E,eAAO,MAAM,gCAAgC;;;;;;;;;iBAG3C,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,gCAAgC,CACxC,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAC/C,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;iBAG3C,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,gCAAgC,CACxC,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAC/C,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAEH,eAAO,MAAM,+BAA+B;;iBAE1C,CAAC"}