@go-mondo/identity-sdk 0.0.1-beta.2

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 (451) hide show
  1. package/.tsbuildinfo/cjs.json +1 -0
  2. package/.tsbuildinfo/esm.json +1 -0
  3. package/CHANGELOG.md +63 -0
  4. package/README.md +3 -0
  5. package/lib/cjs/action/index.d.ts +2 -0
  6. package/lib/cjs/action/index.d.ts.map +1 -0
  7. package/lib/cjs/action/index.js +17 -0
  8. package/lib/cjs/action/schema/base.d.ts +21 -0
  9. package/lib/cjs/action/schema/base.d.ts.map +1 -0
  10. package/lib/cjs/action/schema/base.js +19 -0
  11. package/lib/cjs/action/schema/operations/set-password.d.ts +31 -0
  12. package/lib/cjs/action/schema/operations/set-password.d.ts.map +1 -0
  13. package/lib/cjs/action/schema/operations/set-password.js +18 -0
  14. package/lib/cjs/action/schema/operations/sign-up-verification.d.ts +22 -0
  15. package/lib/cjs/action/schema/operations/sign-up-verification.d.ts.map +1 -0
  16. package/lib/cjs/action/schema/operations/sign-up-verification.js +15 -0
  17. package/lib/cjs/action/schema/operations/sign-up.d.ts +44 -0
  18. package/lib/cjs/action/schema/operations/sign-up.d.ts.map +1 -0
  19. package/lib/cjs/action/schema/operations/sign-up.js +21 -0
  20. package/lib/cjs/action/schema/operations/user-attribute-verification.d.ts +20 -0
  21. package/lib/cjs/action/schema/operations/user-attribute-verification.d.ts.map +1 -0
  22. package/lib/cjs/action/schema/operations/user-attribute-verification.js +13 -0
  23. package/lib/cjs/action/schema/schema.d.ts +92 -0
  24. package/lib/cjs/action/schema/schema.d.ts.map +1 -0
  25. package/lib/cjs/action/schema/schema.js +40 -0
  26. package/lib/cjs/activity/index.d.ts +2 -0
  27. package/lib/cjs/activity/index.d.ts.map +1 -0
  28. package/lib/cjs/activity/index.js +17 -0
  29. package/lib/cjs/activity/schema/base.d.ts +54 -0
  30. package/lib/cjs/activity/schema/base.d.ts.map +1 -0
  31. package/lib/cjs/activity/schema/base.js +34 -0
  32. package/lib/cjs/activity/schema/schema.d.ts +156 -0
  33. package/lib/cjs/activity/schema/schema.d.ts.map +1 -0
  34. package/lib/cjs/activity/schema/schema.js +54 -0
  35. package/lib/cjs/activity/schema/types/authentication.d.ts +29 -0
  36. package/lib/cjs/activity/schema/types/authentication.d.ts.map +1 -0
  37. package/lib/cjs/activity/schema/types/authentication.js +16 -0
  38. package/lib/cjs/activity/schema/types/authorization.d.ts +29 -0
  39. package/lib/cjs/activity/schema/types/authorization.d.ts.map +1 -0
  40. package/lib/cjs/activity/schema/types/authorization.js +17 -0
  41. package/lib/cjs/activity/schema/types/note.d.ts +51 -0
  42. package/lib/cjs/activity/schema/types/note.d.ts.map +1 -0
  43. package/lib/cjs/activity/schema/types/note.js +17 -0
  44. package/lib/cjs/activity/schema/types/operation.d.ts +31 -0
  45. package/lib/cjs/activity/schema/types/operation.d.ts.map +1 -0
  46. package/lib/cjs/activity/schema/types/operation.js +18 -0
  47. package/lib/cjs/activity/schema/types/unknown.d.ts +22 -0
  48. package/lib/cjs/activity/schema/types/unknown.d.ts.map +1 -0
  49. package/lib/cjs/activity/schema/types/unknown.js +9 -0
  50. package/lib/cjs/activity/schema/utils.d.ts +7 -0
  51. package/lib/cjs/activity/schema/utils.d.ts.map +1 -0
  52. package/lib/cjs/activity/schema/utils.js +16 -0
  53. package/lib/cjs/app/index.d.ts +2 -0
  54. package/lib/cjs/app/index.d.ts.map +1 -0
  55. package/lib/cjs/app/index.js +17 -0
  56. package/lib/cjs/app/schema/app.d.ts +58 -0
  57. package/lib/cjs/app/schema/app.d.ts.map +1 -0
  58. package/lib/cjs/app/schema/app.js +43 -0
  59. package/lib/cjs/app/schema/authorization.d.ts +37 -0
  60. package/lib/cjs/app/schema/authorization.d.ts.map +1 -0
  61. package/lib/cjs/app/schema/authorization.js +44 -0
  62. package/lib/cjs/app/schema/oauth.d.ts +30 -0
  63. package/lib/cjs/app/schema/oauth.d.ts.map +1 -0
  64. package/lib/cjs/app/schema/oauth.js +21 -0
  65. package/lib/cjs/app/schema/oidc.d.ts +28 -0
  66. package/lib/cjs/app/schema/oidc.d.ts.map +1 -0
  67. package/lib/cjs/app/schema/oidc.js +13 -0
  68. package/lib/cjs/app/schema/registration.d.ts +22 -0
  69. package/lib/cjs/app/schema/registration.d.ts.map +1 -0
  70. package/lib/cjs/app/schema/registration.js +16 -0
  71. package/lib/cjs/app/schema/saml.d.ts +28 -0
  72. package/lib/cjs/app/schema/saml.d.ts.map +1 -0
  73. package/lib/cjs/app/schema/saml.js +13 -0
  74. package/lib/cjs/app/schema/schema.d.ts +8 -0
  75. package/lib/cjs/app/schema/schema.d.ts.map +1 -0
  76. package/lib/cjs/app/schema/schema.js +23 -0
  77. package/lib/cjs/app/schema/utils.d.ts +11 -0
  78. package/lib/cjs/app/schema/utils.d.ts.map +1 -0
  79. package/lib/cjs/app/schema/utils.js +23 -0
  80. package/lib/cjs/association/index.d.ts +2 -0
  81. package/lib/cjs/association/index.d.ts.map +1 -0
  82. package/lib/cjs/association/index.js +17 -0
  83. package/lib/cjs/association/schema/association.d.ts +79 -0
  84. package/lib/cjs/association/schema/association.d.ts.map +1 -0
  85. package/lib/cjs/association/schema/association.js +26 -0
  86. package/lib/cjs/association/schema/schema.d.ts +2 -0
  87. package/lib/cjs/association/schema/schema.d.ts.map +1 -0
  88. package/lib/cjs/association/schema/schema.js +17 -0
  89. package/lib/cjs/authentication/index.d.ts +2 -0
  90. package/lib/cjs/authentication/index.d.ts.map +1 -0
  91. package/lib/cjs/authentication/index.js +17 -0
  92. package/lib/cjs/authentication/schema/factors.d.ts +48 -0
  93. package/lib/cjs/authentication/schema/factors.d.ts.map +1 -0
  94. package/lib/cjs/authentication/schema/factors.js +28 -0
  95. package/lib/cjs/authentication/schema/factors.test.d.ts +2 -0
  96. package/lib/cjs/authentication/schema/factors.test.d.ts.map +1 -0
  97. package/lib/cjs/authentication/schema/factors.test.js +123 -0
  98. package/lib/cjs/authentication/schema/provider.d.ts +27 -0
  99. package/lib/cjs/authentication/schema/provider.d.ts.map +1 -0
  100. package/lib/cjs/authentication/schema/provider.js +24 -0
  101. package/lib/cjs/authentication/schema/schema.d.ts +6 -0
  102. package/lib/cjs/authentication/schema/schema.d.ts.map +1 -0
  103. package/lib/cjs/authentication/schema/schema.js +21 -0
  104. package/lib/cjs/authentication/schema/session.d.ts +59 -0
  105. package/lib/cjs/authentication/schema/session.d.ts.map +1 -0
  106. package/lib/cjs/authentication/schema/session.js +46 -0
  107. package/lib/cjs/authentication/schema/settings.d.ts +46 -0
  108. package/lib/cjs/authentication/schema/settings.d.ts.map +1 -0
  109. package/lib/cjs/authentication/schema/settings.js +16 -0
  110. package/lib/cjs/authentication/schema/strategy/base.d.ts +43 -0
  111. package/lib/cjs/authentication/schema/strategy/base.d.ts.map +1 -0
  112. package/lib/cjs/authentication/schema/strategy/base.js +31 -0
  113. package/lib/cjs/authentication/schema/strategy/schema.d.ts +169 -0
  114. package/lib/cjs/authentication/schema/strategy/schema.d.ts.map +1 -0
  115. package/lib/cjs/authentication/schema/strategy/schema.js +46 -0
  116. package/lib/cjs/authentication/schema/strategy/types/email.d.ts +44 -0
  117. package/lib/cjs/authentication/schema/strategy/types/email.d.ts.map +1 -0
  118. package/lib/cjs/authentication/schema/strategy/types/email.js +20 -0
  119. package/lib/cjs/authentication/schema/strategy/types/password.d.ts +99 -0
  120. package/lib/cjs/authentication/schema/strategy/types/password.d.ts.map +1 -0
  121. package/lib/cjs/authentication/schema/strategy/types/password.js +35 -0
  122. package/lib/cjs/authentication/schema/strategy/types/totp.d.ts +91 -0
  123. package/lib/cjs/authentication/schema/strategy/types/totp.d.ts.map +1 -0
  124. package/lib/cjs/authentication/schema/strategy/types/totp.js +48 -0
  125. package/lib/cjs/authorization/index.d.ts +2 -0
  126. package/lib/cjs/authorization/index.d.ts.map +1 -0
  127. package/lib/cjs/authorization/index.js +17 -0
  128. package/lib/cjs/authorization/schema/permission.d.ts +69 -0
  129. package/lib/cjs/authorization/schema/permission.d.ts.map +1 -0
  130. package/lib/cjs/authorization/schema/permission.js +50 -0
  131. package/lib/cjs/authorization/schema/role.d.ts +74 -0
  132. package/lib/cjs/authorization/schema/role.d.ts.map +1 -0
  133. package/lib/cjs/authorization/schema/role.js +52 -0
  134. package/lib/cjs/authorization/schema/schema.d.ts +4 -0
  135. package/lib/cjs/authorization/schema/schema.d.ts.map +1 -0
  136. package/lib/cjs/authorization/schema/schema.js +19 -0
  137. package/lib/cjs/authorization/schema/utils.d.ts +11 -0
  138. package/lib/cjs/authorization/schema/utils.d.ts.map +1 -0
  139. package/lib/cjs/authorization/schema/utils.js +23 -0
  140. package/lib/cjs/common/index.d.ts +2 -0
  141. package/lib/cjs/common/index.d.ts.map +1 -0
  142. package/lib/cjs/common/index.js +17 -0
  143. package/lib/cjs/common/schema/aggregate.d.ts +6 -0
  144. package/lib/cjs/common/schema/aggregate.d.ts.map +1 -0
  145. package/lib/cjs/common/schema/aggregate.js +8 -0
  146. package/lib/cjs/common/schema/dates.d.ts +39 -0
  147. package/lib/cjs/common/schema/dates.d.ts.map +1 -0
  148. package/lib/cjs/common/schema/dates.js +34 -0
  149. package/lib/cjs/common/schema/dates.test.d.ts +2 -0
  150. package/lib/cjs/common/schema/dates.test.d.ts.map +1 -0
  151. package/lib/cjs/common/schema/dates.test.js +33 -0
  152. package/lib/cjs/common/schema/jwt.d.ts +21 -0
  153. package/lib/cjs/common/schema/jwt.d.ts.map +1 -0
  154. package/lib/cjs/common/schema/jwt.js +24 -0
  155. package/lib/cjs/common/schema/metadata.d.ts +42 -0
  156. package/lib/cjs/common/schema/metadata.d.ts.map +1 -0
  157. package/lib/cjs/common/schema/metadata.js +88 -0
  158. package/lib/cjs/common/schema/metadata.test.d.ts +2 -0
  159. package/lib/cjs/common/schema/metadata.test.d.ts.map +1 -0
  160. package/lib/cjs/common/schema/metadata.test.js +62 -0
  161. package/lib/cjs/common/schema/schema.d.ts +5 -0
  162. package/lib/cjs/common/schema/schema.d.ts.map +1 -0
  163. package/lib/cjs/common/schema/schema.js +20 -0
  164. package/lib/cjs/customer/index.d.ts +2 -0
  165. package/lib/cjs/customer/index.d.ts.map +1 -0
  166. package/lib/cjs/customer/index.js +17 -0
  167. package/lib/cjs/customer/schema/organization.d.ts +54 -0
  168. package/lib/cjs/customer/schema/organization.d.ts.map +1 -0
  169. package/lib/cjs/customer/schema/organization.js +40 -0
  170. package/lib/cjs/customer/schema/schema.d.ts +4 -0
  171. package/lib/cjs/customer/schema/schema.d.ts.map +1 -0
  172. package/lib/cjs/customer/schema/schema.js +19 -0
  173. package/lib/cjs/customer/schema/user.d.ts +122 -0
  174. package/lib/cjs/customer/schema/user.d.ts.map +1 -0
  175. package/lib/cjs/customer/schema/user.js +83 -0
  176. package/lib/cjs/customer/schema/user.test.d.ts +2 -0
  177. package/lib/cjs/customer/schema/user.test.d.ts.map +1 -0
  178. package/lib/cjs/customer/schema/user.test.js +57 -0
  179. package/lib/cjs/customer/schema/utils.d.ts +11 -0
  180. package/lib/cjs/customer/schema/utils.d.ts.map +1 -0
  181. package/lib/cjs/customer/schema/utils.js +23 -0
  182. package/lib/cjs/identity/index.d.ts +2 -0
  183. package/lib/cjs/identity/index.d.ts.map +1 -0
  184. package/lib/cjs/identity/index.js +17 -0
  185. package/lib/cjs/identity/schema/schema.d.ts +7 -0
  186. package/lib/cjs/identity/schema/schema.d.ts.map +1 -0
  187. package/lib/cjs/identity/schema/schema.js +9 -0
  188. package/lib/cjs/oauth/index.d.ts +2 -0
  189. package/lib/cjs/oauth/index.d.ts.map +1 -0
  190. package/lib/cjs/oauth/index.js +17 -0
  191. package/lib/cjs/oauth/schema/schema.d.ts +8 -0
  192. package/lib/cjs/oauth/schema/schema.d.ts.map +1 -0
  193. package/lib/cjs/oauth/schema/schema.js +9 -0
  194. package/lib/cjs/package.json +1 -0
  195. package/lib/cjs/workspace/index.d.ts +2 -0
  196. package/lib/cjs/workspace/index.d.ts.map +1 -0
  197. package/lib/cjs/workspace/index.js +17 -0
  198. package/lib/cjs/workspace/schema/authorization.d.ts +31 -0
  199. package/lib/cjs/workspace/schema/authorization.d.ts.map +1 -0
  200. package/lib/cjs/workspace/schema/authorization.js +22 -0
  201. package/lib/cjs/workspace/schema/branding.d.ts +38 -0
  202. package/lib/cjs/workspace/schema/branding.d.ts.map +1 -0
  203. package/lib/cjs/workspace/schema/branding.js +25 -0
  204. package/lib/cjs/workspace/schema/membership.d.ts +25 -0
  205. package/lib/cjs/workspace/schema/membership.d.ts.map +1 -0
  206. package/lib/cjs/workspace/schema/membership.js +19 -0
  207. package/lib/cjs/workspace/schema/registration.d.ts +28 -0
  208. package/lib/cjs/workspace/schema/registration.d.ts.map +1 -0
  209. package/lib/cjs/workspace/schema/registration.js +22 -0
  210. package/lib/cjs/workspace/schema/schema.d.ts +10 -0
  211. package/lib/cjs/workspace/schema/schema.d.ts.map +1 -0
  212. package/lib/cjs/workspace/schema/schema.js +25 -0
  213. package/lib/cjs/workspace/schema/settings.d.ts +23 -0
  214. package/lib/cjs/workspace/schema/settings.d.ts.map +1 -0
  215. package/lib/cjs/workspace/schema/settings.js +15 -0
  216. package/lib/cjs/workspace/schema/tenant.d.ts +57 -0
  217. package/lib/cjs/workspace/schema/tenant.d.ts.map +1 -0
  218. package/lib/cjs/workspace/schema/tenant.js +26 -0
  219. package/lib/cjs/workspace/schema/user-notification.d.ts +62 -0
  220. package/lib/cjs/workspace/schema/user-notification.d.ts.map +1 -0
  221. package/lib/cjs/workspace/schema/user-notification.js +44 -0
  222. package/lib/cjs/workspace/schema/user-preferences.d.ts +26 -0
  223. package/lib/cjs/workspace/schema/user-preferences.d.ts.map +1 -0
  224. package/lib/cjs/workspace/schema/user-preferences.js +19 -0
  225. package/lib/cjs/workspace/schema/utils.d.ts +15 -0
  226. package/lib/cjs/workspace/schema/utils.d.ts.map +1 -0
  227. package/lib/cjs/workspace/schema/utils.js +64 -0
  228. package/lib/esm/action/index.d.ts +2 -0
  229. package/lib/esm/action/index.d.ts.map +1 -0
  230. package/lib/esm/action/index.js +1 -0
  231. package/lib/esm/action/schema/base.d.ts +21 -0
  232. package/lib/esm/action/schema/base.d.ts.map +1 -0
  233. package/lib/esm/action/schema/base.js +16 -0
  234. package/lib/esm/action/schema/operations/set-password.d.ts +31 -0
  235. package/lib/esm/action/schema/operations/set-password.d.ts.map +1 -0
  236. package/lib/esm/action/schema/operations/set-password.js +15 -0
  237. package/lib/esm/action/schema/operations/sign-up-verification.d.ts +22 -0
  238. package/lib/esm/action/schema/operations/sign-up-verification.d.ts.map +1 -0
  239. package/lib/esm/action/schema/operations/sign-up-verification.js +12 -0
  240. package/lib/esm/action/schema/operations/sign-up.d.ts +44 -0
  241. package/lib/esm/action/schema/operations/sign-up.d.ts.map +1 -0
  242. package/lib/esm/action/schema/operations/sign-up.js +18 -0
  243. package/lib/esm/action/schema/operations/user-attribute-verification.d.ts +20 -0
  244. package/lib/esm/action/schema/operations/user-attribute-verification.d.ts.map +1 -0
  245. package/lib/esm/action/schema/operations/user-attribute-verification.js +10 -0
  246. package/lib/esm/action/schema/schema.d.ts +92 -0
  247. package/lib/esm/action/schema/schema.d.ts.map +1 -0
  248. package/lib/esm/action/schema/schema.js +21 -0
  249. package/lib/esm/activity/index.d.ts +2 -0
  250. package/lib/esm/activity/index.d.ts.map +1 -0
  251. package/lib/esm/activity/index.js +1 -0
  252. package/lib/esm/activity/schema/base.d.ts +54 -0
  253. package/lib/esm/activity/schema/base.d.ts.map +1 -0
  254. package/lib/esm/activity/schema/base.js +31 -0
  255. package/lib/esm/activity/schema/schema.d.ts +156 -0
  256. package/lib/esm/activity/schema/schema.d.ts.map +1 -0
  257. package/lib/esm/activity/schema/schema.js +33 -0
  258. package/lib/esm/activity/schema/types/authentication.d.ts +29 -0
  259. package/lib/esm/activity/schema/types/authentication.d.ts.map +1 -0
  260. package/lib/esm/activity/schema/types/authentication.js +13 -0
  261. package/lib/esm/activity/schema/types/authorization.d.ts +29 -0
  262. package/lib/esm/activity/schema/types/authorization.d.ts.map +1 -0
  263. package/lib/esm/activity/schema/types/authorization.js +14 -0
  264. package/lib/esm/activity/schema/types/note.d.ts +51 -0
  265. package/lib/esm/activity/schema/types/note.d.ts.map +1 -0
  266. package/lib/esm/activity/schema/types/note.js +14 -0
  267. package/lib/esm/activity/schema/types/operation.d.ts +31 -0
  268. package/lib/esm/activity/schema/types/operation.d.ts.map +1 -0
  269. package/lib/esm/activity/schema/types/operation.js +15 -0
  270. package/lib/esm/activity/schema/types/unknown.d.ts +22 -0
  271. package/lib/esm/activity/schema/types/unknown.d.ts.map +1 -0
  272. package/lib/esm/activity/schema/types/unknown.js +6 -0
  273. package/lib/esm/activity/schema/utils.d.ts +7 -0
  274. package/lib/esm/activity/schema/utils.d.ts.map +1 -0
  275. package/lib/esm/activity/schema/utils.js +9 -0
  276. package/lib/esm/app/index.d.ts +2 -0
  277. package/lib/esm/app/index.d.ts.map +1 -0
  278. package/lib/esm/app/index.js +1 -0
  279. package/lib/esm/app/schema/app.d.ts +58 -0
  280. package/lib/esm/app/schema/app.d.ts.map +1 -0
  281. package/lib/esm/app/schema/app.js +40 -0
  282. package/lib/esm/app/schema/authorization.d.ts +37 -0
  283. package/lib/esm/app/schema/authorization.d.ts.map +1 -0
  284. package/lib/esm/app/schema/authorization.js +41 -0
  285. package/lib/esm/app/schema/oauth.d.ts +30 -0
  286. package/lib/esm/app/schema/oauth.d.ts.map +1 -0
  287. package/lib/esm/app/schema/oauth.js +18 -0
  288. package/lib/esm/app/schema/oidc.d.ts +28 -0
  289. package/lib/esm/app/schema/oidc.d.ts.map +1 -0
  290. package/lib/esm/app/schema/oidc.js +10 -0
  291. package/lib/esm/app/schema/registration.d.ts +22 -0
  292. package/lib/esm/app/schema/registration.d.ts.map +1 -0
  293. package/lib/esm/app/schema/registration.js +13 -0
  294. package/lib/esm/app/schema/saml.d.ts +28 -0
  295. package/lib/esm/app/schema/saml.d.ts.map +1 -0
  296. package/lib/esm/app/schema/saml.js +10 -0
  297. package/lib/esm/app/schema/schema.d.ts +8 -0
  298. package/lib/esm/app/schema/schema.d.ts.map +1 -0
  299. package/lib/esm/app/schema/schema.js +7 -0
  300. package/lib/esm/app/schema/utils.d.ts +11 -0
  301. package/lib/esm/app/schema/utils.d.ts.map +1 -0
  302. package/lib/esm/app/schema/utils.js +15 -0
  303. package/lib/esm/association/index.d.ts +2 -0
  304. package/lib/esm/association/index.d.ts.map +1 -0
  305. package/lib/esm/association/index.js +1 -0
  306. package/lib/esm/association/schema/association.d.ts +79 -0
  307. package/lib/esm/association/schema/association.d.ts.map +1 -0
  308. package/lib/esm/association/schema/association.js +23 -0
  309. package/lib/esm/association/schema/schema.d.ts +2 -0
  310. package/lib/esm/association/schema/schema.d.ts.map +1 -0
  311. package/lib/esm/association/schema/schema.js +1 -0
  312. package/lib/esm/authentication/index.d.ts +2 -0
  313. package/lib/esm/authentication/index.d.ts.map +1 -0
  314. package/lib/esm/authentication/index.js +1 -0
  315. package/lib/esm/authentication/schema/factors.d.ts +48 -0
  316. package/lib/esm/authentication/schema/factors.d.ts.map +1 -0
  317. package/lib/esm/authentication/schema/factors.js +25 -0
  318. package/lib/esm/authentication/schema/factors.test.d.ts +2 -0
  319. package/lib/esm/authentication/schema/factors.test.d.ts.map +1 -0
  320. package/lib/esm/authentication/schema/factors.test.js +121 -0
  321. package/lib/esm/authentication/schema/provider.d.ts +27 -0
  322. package/lib/esm/authentication/schema/provider.d.ts.map +1 -0
  323. package/lib/esm/authentication/schema/provider.js +21 -0
  324. package/lib/esm/authentication/schema/schema.d.ts +6 -0
  325. package/lib/esm/authentication/schema/schema.d.ts.map +1 -0
  326. package/lib/esm/authentication/schema/schema.js +5 -0
  327. package/lib/esm/authentication/schema/session.d.ts +59 -0
  328. package/lib/esm/authentication/schema/session.d.ts.map +1 -0
  329. package/lib/esm/authentication/schema/session.js +43 -0
  330. package/lib/esm/authentication/schema/settings.d.ts +46 -0
  331. package/lib/esm/authentication/schema/settings.d.ts.map +1 -0
  332. package/lib/esm/authentication/schema/settings.js +13 -0
  333. package/lib/esm/authentication/schema/strategy/base.d.ts +43 -0
  334. package/lib/esm/authentication/schema/strategy/base.d.ts.map +1 -0
  335. package/lib/esm/authentication/schema/strategy/base.js +28 -0
  336. package/lib/esm/authentication/schema/strategy/schema.d.ts +169 -0
  337. package/lib/esm/authentication/schema/strategy/schema.d.ts.map +1 -0
  338. package/lib/esm/authentication/schema/strategy/schema.js +22 -0
  339. package/lib/esm/authentication/schema/strategy/types/email.d.ts +44 -0
  340. package/lib/esm/authentication/schema/strategy/types/email.d.ts.map +1 -0
  341. package/lib/esm/authentication/schema/strategy/types/email.js +17 -0
  342. package/lib/esm/authentication/schema/strategy/types/password.d.ts +99 -0
  343. package/lib/esm/authentication/schema/strategy/types/password.d.ts.map +1 -0
  344. package/lib/esm/authentication/schema/strategy/types/password.js +32 -0
  345. package/lib/esm/authentication/schema/strategy/types/totp.d.ts +91 -0
  346. package/lib/esm/authentication/schema/strategy/types/totp.d.ts.map +1 -0
  347. package/lib/esm/authentication/schema/strategy/types/totp.js +45 -0
  348. package/lib/esm/authorization/index.d.ts +2 -0
  349. package/lib/esm/authorization/index.d.ts.map +1 -0
  350. package/lib/esm/authorization/index.js +1 -0
  351. package/lib/esm/authorization/schema/permission.d.ts +69 -0
  352. package/lib/esm/authorization/schema/permission.d.ts.map +1 -0
  353. package/lib/esm/authorization/schema/permission.js +47 -0
  354. package/lib/esm/authorization/schema/role.d.ts +74 -0
  355. package/lib/esm/authorization/schema/role.d.ts.map +1 -0
  356. package/lib/esm/authorization/schema/role.js +49 -0
  357. package/lib/esm/authorization/schema/schema.d.ts +4 -0
  358. package/lib/esm/authorization/schema/schema.d.ts.map +1 -0
  359. package/lib/esm/authorization/schema/schema.js +3 -0
  360. package/lib/esm/authorization/schema/utils.d.ts +11 -0
  361. package/lib/esm/authorization/schema/utils.d.ts.map +1 -0
  362. package/lib/esm/authorization/schema/utils.js +15 -0
  363. package/lib/esm/common/index.d.ts +2 -0
  364. package/lib/esm/common/index.d.ts.map +1 -0
  365. package/lib/esm/common/index.js +1 -0
  366. package/lib/esm/common/schema/aggregate.d.ts +6 -0
  367. package/lib/esm/common/schema/aggregate.d.ts.map +1 -0
  368. package/lib/esm/common/schema/aggregate.js +5 -0
  369. package/lib/esm/common/schema/dates.d.ts +39 -0
  370. package/lib/esm/common/schema/dates.d.ts.map +1 -0
  371. package/lib/esm/common/schema/dates.js +31 -0
  372. package/lib/esm/common/schema/dates.test.d.ts +2 -0
  373. package/lib/esm/common/schema/dates.test.d.ts.map +1 -0
  374. package/lib/esm/common/schema/dates.test.js +31 -0
  375. package/lib/esm/common/schema/jwt.d.ts +21 -0
  376. package/lib/esm/common/schema/jwt.d.ts.map +1 -0
  377. package/lib/esm/common/schema/jwt.js +21 -0
  378. package/lib/esm/common/schema/metadata.d.ts +42 -0
  379. package/lib/esm/common/schema/metadata.d.ts.map +1 -0
  380. package/lib/esm/common/schema/metadata.js +83 -0
  381. package/lib/esm/common/schema/metadata.test.d.ts +2 -0
  382. package/lib/esm/common/schema/metadata.test.d.ts.map +1 -0
  383. package/lib/esm/common/schema/metadata.test.js +60 -0
  384. package/lib/esm/common/schema/schema.d.ts +5 -0
  385. package/lib/esm/common/schema/schema.d.ts.map +1 -0
  386. package/lib/esm/common/schema/schema.js +4 -0
  387. package/lib/esm/customer/index.d.ts +2 -0
  388. package/lib/esm/customer/index.d.ts.map +1 -0
  389. package/lib/esm/customer/index.js +1 -0
  390. package/lib/esm/customer/schema/organization.d.ts +54 -0
  391. package/lib/esm/customer/schema/organization.d.ts.map +1 -0
  392. package/lib/esm/customer/schema/organization.js +37 -0
  393. package/lib/esm/customer/schema/schema.d.ts +4 -0
  394. package/lib/esm/customer/schema/schema.d.ts.map +1 -0
  395. package/lib/esm/customer/schema/schema.js +3 -0
  396. package/lib/esm/customer/schema/user.d.ts +122 -0
  397. package/lib/esm/customer/schema/user.d.ts.map +1 -0
  398. package/lib/esm/customer/schema/user.js +80 -0
  399. package/lib/esm/customer/schema/user.test.d.ts +2 -0
  400. package/lib/esm/customer/schema/user.test.d.ts.map +1 -0
  401. package/lib/esm/customer/schema/user.test.js +55 -0
  402. package/lib/esm/customer/schema/utils.d.ts +11 -0
  403. package/lib/esm/customer/schema/utils.d.ts.map +1 -0
  404. package/lib/esm/customer/schema/utils.js +15 -0
  405. package/lib/esm/identity/index.d.ts +2 -0
  406. package/lib/esm/identity/index.d.ts.map +1 -0
  407. package/lib/esm/identity/index.js +1 -0
  408. package/lib/esm/identity/schema/schema.d.ts +7 -0
  409. package/lib/esm/identity/schema/schema.d.ts.map +1 -0
  410. package/lib/esm/identity/schema/schema.js +6 -0
  411. package/lib/esm/oauth/index.d.ts +2 -0
  412. package/lib/esm/oauth/index.d.ts.map +1 -0
  413. package/lib/esm/oauth/index.js +1 -0
  414. package/lib/esm/oauth/schema/schema.d.ts +8 -0
  415. package/lib/esm/oauth/schema/schema.d.ts.map +1 -0
  416. package/lib/esm/oauth/schema/schema.js +6 -0
  417. package/lib/esm/package.json +1 -0
  418. package/lib/esm/workspace/index.d.ts +2 -0
  419. package/lib/esm/workspace/index.d.ts.map +1 -0
  420. package/lib/esm/workspace/index.js +1 -0
  421. package/lib/esm/workspace/schema/authorization.d.ts +31 -0
  422. package/lib/esm/workspace/schema/authorization.d.ts.map +1 -0
  423. package/lib/esm/workspace/schema/authorization.js +19 -0
  424. package/lib/esm/workspace/schema/branding.d.ts +38 -0
  425. package/lib/esm/workspace/schema/branding.d.ts.map +1 -0
  426. package/lib/esm/workspace/schema/branding.js +22 -0
  427. package/lib/esm/workspace/schema/membership.d.ts +25 -0
  428. package/lib/esm/workspace/schema/membership.d.ts.map +1 -0
  429. package/lib/esm/workspace/schema/membership.js +16 -0
  430. package/lib/esm/workspace/schema/registration.d.ts +28 -0
  431. package/lib/esm/workspace/schema/registration.d.ts.map +1 -0
  432. package/lib/esm/workspace/schema/registration.js +19 -0
  433. package/lib/esm/workspace/schema/schema.d.ts +10 -0
  434. package/lib/esm/workspace/schema/schema.d.ts.map +1 -0
  435. package/lib/esm/workspace/schema/schema.js +9 -0
  436. package/lib/esm/workspace/schema/settings.d.ts +23 -0
  437. package/lib/esm/workspace/schema/settings.d.ts.map +1 -0
  438. package/lib/esm/workspace/schema/settings.js +12 -0
  439. package/lib/esm/workspace/schema/tenant.d.ts +57 -0
  440. package/lib/esm/workspace/schema/tenant.d.ts.map +1 -0
  441. package/lib/esm/workspace/schema/tenant.js +23 -0
  442. package/lib/esm/workspace/schema/user-notification.d.ts +62 -0
  443. package/lib/esm/workspace/schema/user-notification.d.ts.map +1 -0
  444. package/lib/esm/workspace/schema/user-notification.js +41 -0
  445. package/lib/esm/workspace/schema/user-preferences.d.ts +26 -0
  446. package/lib/esm/workspace/schema/user-preferences.d.ts.map +1 -0
  447. package/lib/esm/workspace/schema/user-preferences.js +16 -0
  448. package/lib/esm/workspace/schema/utils.d.ts +15 -0
  449. package/lib/esm/workspace/schema/utils.d.ts.map +1 -0
  450. package/lib/esm/workspace/schema/utils.js +22 -0
  451. package/package.json +155 -0
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SignUpActionRequestSchema = exports.SignUpActionPayloadSchema = void 0;
4
+ const arktype_1 = require("arktype");
5
+ const app_js_1 = require("../../../app/schema/app.js");
6
+ const user_js_1 = require("../../../customer/schema/user.js");
7
+ const base_js_1 = require("../base.js");
8
+ exports.SignUpActionPayloadSchema = base_js_1.BasePayloadSchema.and({
9
+ operation: (0, arktype_1.type)("'sign-up'"),
10
+ app: app_js_1.AppIdSchema.optional(),
11
+ user: user_js_1.UserNamePropertiesSchema,
12
+ }).onUndeclaredKey('delete');
13
+ const EmailSignUpActionRequestSchema = user_js_1.UserNamePropertiesSchema.and({
14
+ email: user_js_1.RequiredEmailSchema,
15
+ phoneNumber: user_js_1.RequiredPhoneNumberSchema.optional(),
16
+ }).and(user_js_1.InsertUserPayloadSchema.pick('id'));
17
+ const PhoneNumberSignUpActionRequestSchema = user_js_1.UserNamePropertiesSchema.and({
18
+ phoneNumber: user_js_1.RequiredPhoneNumberSchema,
19
+ email: user_js_1.RequiredEmailSchema.optional(),
20
+ }).and(user_js_1.InsertUserPayloadSchema.pick('id'));
21
+ exports.SignUpActionRequestSchema = EmailSignUpActionRequestSchema.or(PhoneNumberSignUpActionRequestSchema);
@@ -0,0 +1,20 @@
1
+ export declare const UserAttributeVerificationActionPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
2
+ id: string;
3
+ attempt: number;
4
+ expiresAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
5
+ updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
6
+ deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
7
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
8
+ metadata?: ((In: {
9
+ [x: string]: string | number | boolean;
10
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
11
+ [x: string]: string | number | boolean;
12
+ } | undefined>) | undefined;
13
+ operation: "user-attribute-verification";
14
+ user: string;
15
+ attribute: "email" | "phoneNumber";
16
+ }, {}>;
17
+ export type UserAttributeVerificationActionPayload = typeof UserAttributeVerificationActionPayloadSchema.inferOut;
18
+ export declare const UserAttributeVerificationActionRequestSchema: import("arktype/out/methods/object.js").ObjectType<object, {}>;
19
+ export type UserAttributeVerificationActionRequest = typeof UserAttributeVerificationActionRequestSchema.inferOut;
20
+ //# sourceMappingURL=user-attribute-verification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user-attribute-verification.d.ts","sourceRoot":"","sources":["../../../../../src/action/schema/operations/user-attribute-verification.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;MAK3B,CAAC;AAC/B,MAAM,MAAM,sCAAsC,GAChD,OAAO,4CAA4C,CAAC,QAAQ,CAAC;AAE/D,eAAO,MAAM,4CAA4C,gEAE9B,CAAC;AAC5B,MAAM,MAAM,sCAAsC,GAChD,OAAO,4CAA4C,CAAC,QAAQ,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserAttributeVerificationActionRequestSchema = exports.UserAttributeVerificationActionPayloadSchema = void 0;
4
+ const arktype_1 = require("arktype");
5
+ const user_js_1 = require("../../../customer/schema/user.js");
6
+ const schema_js_1 = require("../../../identity/schema/schema.js");
7
+ const base_js_1 = require("../base.js");
8
+ exports.UserAttributeVerificationActionPayloadSchema = base_js_1.BasePayloadSchema.and({
9
+ operation: (0, arktype_1.type)("'user-attribute-verification'"),
10
+ user: user_js_1.UserIdSchema,
11
+ attribute: schema_js_1.IdentityIdentifierSchema,
12
+ }).onUndeclaredKey('delete');
13
+ exports.UserAttributeVerificationActionRequestSchema = (0, arktype_1.type)({}).onUndeclaredKey('delete');
@@ -0,0 +1,92 @@
1
+ export declare const ActionOperation: {
2
+ readonly SET_PASSWORD: "set-password";
3
+ readonly USER_ATTRIBUTE_VERIFICATION: "user-attribute-verification";
4
+ readonly SIGN_UP: "sign-up";
5
+ readonly SIGN_UP_VERIFICATION: "sign-up-verification";
6
+ };
7
+ export type AnyActionOperation = (typeof ActionOperation)[keyof typeof ActionOperation];
8
+ /**
9
+ * Union
10
+ */
11
+ export declare const ActionPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
12
+ id: string;
13
+ attempt: number;
14
+ expiresAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
15
+ updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
16
+ deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
17
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
18
+ metadata?: ((In: {
19
+ [x: string]: string | number | boolean;
20
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
21
+ [x: string]: string | number | boolean;
22
+ } | undefined>) | undefined;
23
+ operation: "set-password";
24
+ user: string;
25
+ identifier: "email" | "phoneNumber";
26
+ policy: {
27
+ minimumLength: import("arktype/out/attributes.js").Default<number, 8>;
28
+ maximumLength: import("arktype/out/attributes.js").Default<number, 36>;
29
+ minimumCapital: import("arktype/out/attributes.js").Default<number, 1>;
30
+ minimumLower: import("arktype/out/attributes.js").Default<number, 1>;
31
+ minimumNumber: import("arktype/out/attributes.js").Default<number, 1>;
32
+ minimumSpecial: import("arktype/out/attributes.js").Default<number, 1>;
33
+ };
34
+ } | {
35
+ id: string;
36
+ attempt: number;
37
+ expiresAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
38
+ updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
39
+ deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
40
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
41
+ metadata?: ((In: {
42
+ [x: string]: string | number | boolean;
43
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
44
+ [x: string]: string | number | boolean;
45
+ } | undefined>) | undefined;
46
+ operation: "sign-up-verification";
47
+ user: string;
48
+ identifier: "email" | "phoneNumber";
49
+ } | {
50
+ id: string;
51
+ attempt: number;
52
+ expiresAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
53
+ updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
54
+ deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
55
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
56
+ metadata?: ((In: {
57
+ [x: string]: string | number | boolean;
58
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
59
+ [x: string]: string | number | boolean;
60
+ } | undefined>) | undefined;
61
+ operation: "sign-up";
62
+ user: {
63
+ givenName?: string | undefined;
64
+ middleName?: string | undefined;
65
+ familyName?: string | undefined;
66
+ honorificPrefix?: string | undefined;
67
+ honorificSuffix?: string | undefined;
68
+ };
69
+ app?: string | undefined;
70
+ } | {
71
+ id: string;
72
+ attempt: number;
73
+ expiresAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
74
+ updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
75
+ deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
76
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
77
+ metadata?: ((In: {
78
+ [x: string]: string | number | boolean;
79
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
80
+ [x: string]: string | number | boolean;
81
+ } | undefined>) | undefined;
82
+ operation: "user-attribute-verification";
83
+ user: string;
84
+ attribute: "email" | "phoneNumber";
85
+ }, {}>;
86
+ export type ActionPayload = typeof ActionPayloadSchema.inferOut;
87
+ export { ActionIdPropertySchema, ActionIdSchema, type ActionId, type ActionIdProperty, } from './base.js';
88
+ export * from './operations/set-password.js';
89
+ export * from './operations/sign-up-verification.js';
90
+ export * from './operations/sign-up.js';
91
+ export * from './operations/user-attribute-verification.js';
92
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/action/schema/schema.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;;CAOlB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAC5B,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAImB,CAAC;AACpD,MAAM,MAAM,aAAa,GAAG,OAAO,mBAAmB,CAAC,QAAQ,CAAC;AAEhE,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,KAAK,QAAQ,EACb,KAAK,gBAAgB,GACtB,MAAM,WAAW,CAAC;AACnB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,6CAA6C,CAAC"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.ActionIdSchema = exports.ActionIdPropertySchema = exports.ActionPayloadSchema = exports.ActionOperation = void 0;
18
+ const set_password_js_1 = require("./operations/set-password.js");
19
+ const sign_up_verification_js_1 = require("./operations/sign-up-verification.js");
20
+ const sign_up_js_1 = require("./operations/sign-up.js");
21
+ const user_attribute_verification_js_1 = require("./operations/user-attribute-verification.js");
22
+ exports.ActionOperation = {
23
+ SET_PASSWORD: 'set-password',
24
+ USER_ATTRIBUTE_VERIFICATION: 'user-attribute-verification',
25
+ SIGN_UP: 'sign-up',
26
+ SIGN_UP_VERIFICATION: 'sign-up-verification',
27
+ };
28
+ /**
29
+ * Union
30
+ */
31
+ exports.ActionPayloadSchema = set_password_js_1.SetPasswordActionPayloadSchema.or(sign_up_verification_js_1.SignUpVerificationActionPayloadSchema)
32
+ .or(sign_up_js_1.SignUpActionPayloadSchema)
33
+ .or(user_attribute_verification_js_1.UserAttributeVerificationActionPayloadSchema);
34
+ var base_js_1 = require("./base.js");
35
+ Object.defineProperty(exports, "ActionIdPropertySchema", { enumerable: true, get: function () { return base_js_1.ActionIdPropertySchema; } });
36
+ Object.defineProperty(exports, "ActionIdSchema", { enumerable: true, get: function () { return base_js_1.ActionIdSchema; } });
37
+ __exportStar(require("./operations/set-password.js"), exports);
38
+ __exportStar(require("./operations/sign-up-verification.js"), exports);
39
+ __exportStar(require("./operations/sign-up.js"), exports);
40
+ __exportStar(require("./operations/user-attribute-verification.js"), exports);
@@ -0,0 +1,2 @@
1
+ export * from './schema/schema.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/activity/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./schema/schema.js"), exports);
@@ -0,0 +1,54 @@
1
+ export declare const ActivityIdSchema: import("arktype/out/methods/string.js").StringType<string, {}>;
2
+ export type ActivityId = typeof ActivityIdSchema.inferOut;
3
+ export declare const ActivityIdPropertySchema: import("arktype/out/methods/object.js").ObjectType<{
4
+ id: string;
5
+ }, {}>;
6
+ export type ActivityIdProperty = typeof ActivityIdPropertySchema.inferOut;
7
+ export declare const SourceSchema: import("arktype/out/methods/string.js").StringType<string, {}>;
8
+ export declare const PerformedBySchema: import("arktype/out/methods/object.js").ObjectType<{
9
+ type: "system" | "guest" | "identity" | "automation" | "integration";
10
+ identifier: string;
11
+ }, {}>;
12
+ export type PerformedBy = typeof PerformedBySchema.inferOut;
13
+ export declare const BasePayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
14
+ id: string;
15
+ performedBy: {
16
+ type: "system" | "guest" | "identity" | "automation" | "integration";
17
+ identifier: string;
18
+ };
19
+ source: string;
20
+ isMutateable: boolean;
21
+ createdAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
22
+ updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
23
+ deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
24
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
25
+ metadata?: ((In: {
26
+ [x: string]: string | number | boolean;
27
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
28
+ [x: string]: string | number | boolean;
29
+ } | undefined>) | undefined;
30
+ }, {}>;
31
+ export declare const BaseInsertPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
32
+ id: import("arktype/out/attributes.js").Default<string, string>;
33
+ performedBy?: {
34
+ type: "system" | "guest" | "identity" | "automation" | "integration";
35
+ identifier: string;
36
+ } | undefined;
37
+ metadata?: ((In: {
38
+ [x: string]: string | number | boolean;
39
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
40
+ [x: string]: string | number | boolean;
41
+ } | null>) | undefined;
42
+ }, {}>;
43
+ export declare const BaseUpdatePayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
44
+ performedBy?: {
45
+ type: "system" | "guest" | "identity" | "automation" | "integration";
46
+ identifier: string;
47
+ } | undefined;
48
+ metadata?: ((In: {
49
+ [x: string]: string | number | boolean;
50
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
51
+ [x: string]: string | number | boolean;
52
+ } | null>) | undefined;
53
+ }, {}>;
54
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/base.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,gBAAgB,gEAAc,CAAC;AAC5C,MAAM,MAAM,UAAU,GAAG,OAAO,gBAAgB,CAAC,QAAQ,CAAC;AAE1D,eAAO,MAAM,wBAAwB;;MAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,wBAAwB,CAAC,QAAQ,CAAC;AAE1E,eAAO,MAAM,YAAY,gEAAiB,CAAC;AAE3C,eAAO,MAAM,iBAAiB;;;MAS5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,iBAAiB,CAAC,QAAQ,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;MASO,CAAC;AAEtC,eAAO,MAAM,uBAAuB;;;;;;;;;;;MAGO,CAAC;AAE5C,eAAO,MAAM,uBAAuB;;;;;;;;;;MAEO,CAAC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseUpdatePayloadSchema = exports.BaseInsertPayloadSchema = exports.BasePayloadSchema = exports.PerformedBySchema = exports.SourceSchema = exports.ActivityIdPropertySchema = exports.ActivityIdSchema = void 0;
4
+ const arktype_1 = require("arktype");
5
+ const index_js_1 = require("../../common/index.js");
6
+ const metadata_js_1 = require("../../common/schema/metadata.js");
7
+ const schema_js_1 = require("./schema.js");
8
+ const utils_js_1 = require("./utils.js");
9
+ exports.ActivityIdSchema = arktype_1.type.string;
10
+ exports.ActivityIdPropertySchema = (0, arktype_1.type)({
11
+ id: exports.ActivityIdSchema,
12
+ });
13
+ exports.SourceSchema = (0, arktype_1.type)('string');
14
+ exports.PerformedBySchema = (0, arktype_1.type)({
15
+ type: arktype_1.type.enumerated(schema_js_1.PerformerType.SYSTEM, schema_js_1.PerformerType.GUEST, schema_js_1.PerformerType.IDENTITY, schema_js_1.PerformerType.AUTOMATION, schema_js_1.PerformerType.INTEGRATION),
16
+ identifier: (0, arktype_1.type)('string'),
17
+ });
18
+ exports.BasePayloadSchema = (0, arktype_1.type)({
19
+ id: exports.ActivityIdSchema,
20
+ performedBy: exports.PerformedBySchema,
21
+ source: exports.SourceSchema,
22
+ isMutateable: (0, arktype_1.type)('boolean'),
23
+ createdAt: index_js_1.RequiredDatePayloadSchema,
24
+ updatedAt: index_js_1.RequiredDatePayloadSchema,
25
+ 'deletedAt?': index_js_1.OptionalDatePayloadSchema,
26
+ 'deactivatedAt?': index_js_1.OptionalDatePayloadSchema,
27
+ }).and(metadata_js_1.MetadataPayloadPropertySchema);
28
+ exports.BaseInsertPayloadSchema = (0, arktype_1.type)({
29
+ id: exports.ActivityIdSchema.default(() => (0, utils_js_1.generateActivityId)()),
30
+ performedBy: exports.PerformedBySchema.optional(),
31
+ }).and(metadata_js_1.UpsertMetadataPayloadPropertySchema);
32
+ exports.BaseUpdatePayloadSchema = (0, arktype_1.type)({
33
+ performedBy: exports.PerformedBySchema.optional(),
34
+ }).and(metadata_js_1.UpsertMetadataPayloadPropertySchema);
@@ -0,0 +1,156 @@
1
+ export declare const ActivityType: {
2
+ readonly UNKNOWN: "unknown";
3
+ readonly NOTE: "note";
4
+ readonly OPERATION: "operation";
5
+ readonly AUTHORIZATION: "authorization";
6
+ readonly AUTHENTICATION: "authentication";
7
+ };
8
+ export type AnyActivityType = (typeof ActivityType)[keyof typeof ActivityType];
9
+ export declare const PerformerType: {
10
+ readonly SYSTEM: "system";
11
+ readonly GUEST: "guest";
12
+ readonly IDENTITY: "identity";
13
+ readonly AUTOMATION: "automation";
14
+ readonly INTEGRATION: "integration";
15
+ };
16
+ export type AnyPerformerType = (typeof PerformerType)[keyof typeof PerformerType];
17
+ export declare const ActivityPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
18
+ id: string;
19
+ performedBy: {
20
+ type: "system" | "guest" | "identity" | "automation" | "integration";
21
+ identifier: string;
22
+ };
23
+ source: string;
24
+ isMutateable: boolean;
25
+ createdAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
26
+ updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
27
+ deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
28
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
29
+ metadata?: ((In: {
30
+ [x: string]: string | number | boolean;
31
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
32
+ [x: string]: string | number | boolean;
33
+ } | undefined>) | undefined;
34
+ type: "authentication";
35
+ status: "success" | "fail";
36
+ identity: string;
37
+ } | {
38
+ id: string;
39
+ performedBy: {
40
+ type: "system" | "guest" | "identity" | "automation" | "integration";
41
+ identifier: string;
42
+ };
43
+ source: string;
44
+ isMutateable: boolean;
45
+ createdAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
46
+ updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
47
+ deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
48
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
49
+ metadata?: ((In: {
50
+ [x: string]: string | number | boolean;
51
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
52
+ [x: string]: string | number | boolean;
53
+ } | undefined>) | undefined;
54
+ type: "authorization";
55
+ status: "success" | "fail";
56
+ message: string;
57
+ identity?: string | undefined;
58
+ } | {
59
+ id: string;
60
+ performedBy: {
61
+ type: "system" | "guest" | "identity" | "automation" | "integration";
62
+ identifier: string;
63
+ };
64
+ source: string;
65
+ isMutateable: boolean;
66
+ createdAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
67
+ updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
68
+ deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
69
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
70
+ metadata?: ((In: {
71
+ [x: string]: string | number | boolean;
72
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
73
+ [x: string]: string | number | boolean;
74
+ } | undefined>) | undefined;
75
+ type: "note";
76
+ message: string;
77
+ } | {
78
+ id: string;
79
+ performedBy: {
80
+ type: "system" | "guest" | "identity" | "automation" | "integration";
81
+ identifier: string;
82
+ };
83
+ source: string;
84
+ isMutateable: boolean;
85
+ createdAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
86
+ updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
87
+ deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
88
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
89
+ metadata?: ((In: {
90
+ [x: string]: string | number | boolean;
91
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
92
+ [x: string]: string | number | boolean;
93
+ } | undefined>) | undefined;
94
+ type: "operation";
95
+ operation: "delete" | "automation" | "create" | "update";
96
+ message: string;
97
+ target: string;
98
+ } | {
99
+ id: string;
100
+ performedBy: {
101
+ type: "system" | "guest" | "identity" | "automation" | "integration";
102
+ identifier: string;
103
+ };
104
+ source: string;
105
+ isMutateable: boolean;
106
+ createdAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
107
+ updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
108
+ deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
109
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
110
+ metadata?: ((In: {
111
+ [x: string]: string | number | boolean;
112
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
113
+ [x: string]: string | number | boolean;
114
+ } | undefined>) | undefined;
115
+ type: "unknown";
116
+ message: string;
117
+ }, {}>;
118
+ export type ActivityPayload = typeof ActivityPayloadSchema.inferOut;
119
+ export declare const InsertActivityPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
120
+ id: import("arktype/out/attributes.js").Default<string, string>;
121
+ performedBy?: {
122
+ type: "system" | "guest" | "identity" | "automation" | "integration";
123
+ identifier: string;
124
+ } | undefined;
125
+ metadata?: ((In: {
126
+ [x: string]: string | number | boolean;
127
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
128
+ [x: string]: string | number | boolean;
129
+ } | null>) | undefined;
130
+ type: "note";
131
+ message: string;
132
+ }, {}>;
133
+ export type InsertActivityPayload = typeof InsertActivityPayloadSchema.inferOut;
134
+ export declare const UpdateActivityPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
135
+ performedBy?: {
136
+ type: "system" | "guest" | "identity" | "automation" | "integration";
137
+ identifier: string;
138
+ } | undefined;
139
+ metadata?: ((In: {
140
+ [x: string]: string | number | boolean;
141
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
142
+ [x: string]: string | number | boolean;
143
+ } | null>) | undefined;
144
+ type: "note";
145
+ message?: string | undefined;
146
+ }, {}>;
147
+ export type UpdateActivityPayload = typeof UpdateActivityPayloadSchema.inferOut;
148
+ export { ActivityIdPropertySchema, ActivityIdSchema, PerformedBySchema, SourceSchema, type ActivityId, type ActivityIdProperty, type PerformedBy, } from './base.js';
149
+ export * from './schema.js';
150
+ export * from './types/authentication.js';
151
+ export * from './types/authorization.js';
152
+ export * from './types/note.js';
153
+ export * from './types/operation.js';
154
+ export * from './types/unknown.js';
155
+ export * from './utils.js';
156
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/schema.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE/E,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAC1B,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAErD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKC,CAAC;AACpC,MAAM,MAAM,eAAe,GAAG,OAAO,qBAAqB,CAAC,QAAQ,CAAC;AAEpE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;MAAkC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,OAAO,2BAA2B,CAAC,QAAQ,CAAC;AAEhF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;MAAkC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,OAAO,2BAA2B,CAAC,QAAQ,CAAC;AAEhF,OAAO,EACL,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,WAAW,GACjB,MAAM,WAAW,CAAC;AACnB,cAAc,aAAa,CAAC;AAC5B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,YAAY,CAAC"}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.SourceSchema = exports.PerformedBySchema = exports.ActivityIdSchema = exports.ActivityIdPropertySchema = exports.UpdateActivityPayloadSchema = exports.InsertActivityPayloadSchema = exports.ActivityPayloadSchema = exports.PerformerType = exports.ActivityType = void 0;
18
+ const authentication_js_1 = require("./types/authentication.js");
19
+ const authorization_js_1 = require("./types/authorization.js");
20
+ const note_js_1 = require("./types/note.js");
21
+ const operation_js_1 = require("./types/operation.js");
22
+ const unknown_js_1 = require("./types/unknown.js");
23
+ exports.ActivityType = {
24
+ UNKNOWN: 'unknown',
25
+ NOTE: 'note',
26
+ OPERATION: 'operation',
27
+ AUTHORIZATION: 'authorization',
28
+ AUTHENTICATION: 'authentication',
29
+ };
30
+ exports.PerformerType = {
31
+ SYSTEM: 'system',
32
+ GUEST: 'guest',
33
+ IDENTITY: 'identity',
34
+ AUTOMATION: 'automation',
35
+ INTEGRATION: 'integration',
36
+ };
37
+ exports.ActivityPayloadSchema = note_js_1.NoteActivityPayloadSchema.or(authentication_js_1.AuthenticationActivityPayloadSchema)
38
+ .or(authorization_js_1.AuthorizationActivityPayloadSchema)
39
+ .or(operation_js_1.OperationActivityPayloadSchema)
40
+ .or(unknown_js_1.UnknownActivityPayloadSchema);
41
+ exports.InsertActivityPayloadSchema = note_js_1.InsertNoteActivityPayloadSchema;
42
+ exports.UpdateActivityPayloadSchema = note_js_1.UpdateNoteActivityPayloadSchema;
43
+ var base_js_1 = require("./base.js");
44
+ Object.defineProperty(exports, "ActivityIdPropertySchema", { enumerable: true, get: function () { return base_js_1.ActivityIdPropertySchema; } });
45
+ Object.defineProperty(exports, "ActivityIdSchema", { enumerable: true, get: function () { return base_js_1.ActivityIdSchema; } });
46
+ Object.defineProperty(exports, "PerformedBySchema", { enumerable: true, get: function () { return base_js_1.PerformedBySchema; } });
47
+ Object.defineProperty(exports, "SourceSchema", { enumerable: true, get: function () { return base_js_1.SourceSchema; } });
48
+ __exportStar(require("./schema.js"), exports);
49
+ __exportStar(require("./types/authentication.js"), exports);
50
+ __exportStar(require("./types/authorization.js"), exports);
51
+ __exportStar(require("./types/note.js"), exports);
52
+ __exportStar(require("./types/operation.js"), exports);
53
+ __exportStar(require("./types/unknown.js"), exports);
54
+ __exportStar(require("./utils.js"), exports);
@@ -0,0 +1,29 @@
1
+ export declare const AuthenticationStatus: {
2
+ readonly SUCESS: "success";
3
+ readonly FAIL: "fail";
4
+ };
5
+ export type AnyAuthenticationStatus = (typeof AuthenticationStatus)[keyof typeof AuthenticationStatus];
6
+ export declare const AuthenticationStatusSchema: import("arktype/out/methods/string.js").StringType<"success" | "fail", {}>;
7
+ export declare const AuthenticationActivityPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
8
+ id: string;
9
+ performedBy: {
10
+ type: "system" | "guest" | "identity" | "automation" | "integration";
11
+ identifier: string;
12
+ };
13
+ source: string;
14
+ isMutateable: boolean;
15
+ createdAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
16
+ updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
17
+ deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
18
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
19
+ metadata?: ((In: {
20
+ [x: string]: string | number | boolean;
21
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
22
+ [x: string]: string | number | boolean;
23
+ } | undefined>) | undefined;
24
+ type: "authentication";
25
+ status: "success" | "fail";
26
+ identity: string;
27
+ }, {}>;
28
+ export type AuthenticationActivityPayload = typeof AuthenticationActivityPayloadSchema.inferOut;
29
+ //# sourceMappingURL=authentication.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authentication.d.ts","sourceRoot":"","sources":["../../../../../src/activity/schema/types/authentication.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;;CAGvB,CAAC;AAEX,MAAM,MAAM,uBAAuB,GACjC,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEnE,eAAO,MAAM,0BAA0B,4EAGtC,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;MAI9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GACvC,OAAO,mCAAmC,CAAC,QAAQ,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthenticationActivityPayloadSchema = exports.AuthenticationStatusSchema = exports.AuthenticationStatus = void 0;
4
+ const arktype_1 = require("arktype");
5
+ const user_js_1 = require("../../../customer/schema/user.js");
6
+ const base_js_1 = require("../base.js");
7
+ exports.AuthenticationStatus = {
8
+ SUCESS: 'success',
9
+ FAIL: 'fail',
10
+ };
11
+ exports.AuthenticationStatusSchema = arktype_1.type.enumerated(exports.AuthenticationStatus.SUCESS, exports.AuthenticationStatus.FAIL);
12
+ exports.AuthenticationActivityPayloadSchema = base_js_1.BasePayloadSchema.and({
13
+ type: (0, arktype_1.type)("'authentication'"),
14
+ status: exports.AuthenticationStatusSchema,
15
+ identity: user_js_1.UserIdSchema,
16
+ });
@@ -0,0 +1,29 @@
1
+ export declare const AuthorizationStatus: {
2
+ readonly SUCESS: "success";
3
+ readonly FAIL: "fail";
4
+ };
5
+ export type AnyAuthorizationStatus = (typeof AuthorizationStatus)[keyof typeof AuthorizationStatus];
6
+ export declare const AuthorizationActivityPayloadSchema: import("arktype/out/methods/object.js").ObjectType<{
7
+ id: string;
8
+ performedBy: {
9
+ type: "system" | "guest" | "identity" | "automation" | "integration";
10
+ identifier: string;
11
+ };
12
+ source: string;
13
+ isMutateable: boolean;
14
+ createdAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
15
+ updatedAt: (In: string | Date) => import("arktype/out/attributes.js").Out<string>;
16
+ deletedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
17
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype/out/attributes.js").Out<string | undefined>) | undefined;
18
+ metadata?: ((In: {
19
+ [x: string]: string | number | boolean;
20
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype/out/attributes.js").Out<{
21
+ [x: string]: string | number | boolean;
22
+ } | undefined>) | undefined;
23
+ type: "authorization";
24
+ status: "success" | "fail";
25
+ message: string;
26
+ identity?: string | undefined;
27
+ }, {}>;
28
+ export type AuthorizationActivityPayload = typeof AuthorizationActivityPayloadSchema.inferOut;
29
+ //# sourceMappingURL=authorization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../../../../src/activity/schema/types/authorization.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC;AAEX,MAAM,MAAM,sBAAsB,GAChC,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,OAAO,mBAAmB,CAAC,CAAC;AAOjE,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;MAK7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GACtC,OAAO,kCAAkC,CAAC,QAAQ,CAAC"}