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

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 (363) 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 +14 -0
  5. package/dist/cjs/action/schema/base.d.ts +5 -5
  6. package/dist/cjs/action/schema/operations/set-password.d.ts +11 -11
  7. package/dist/cjs/action/schema/operations/sign-up-verification.d.ts +5 -5
  8. package/dist/cjs/action/schema/operations/sign-up.d.ts +7 -7
  9. package/dist/cjs/action/schema/operations/user-attribute-verification.d.ts +5 -5
  10. package/dist/cjs/action/schema/schema.d.ts +26 -26
  11. package/dist/cjs/activity/index.d.ts +1 -0
  12. package/dist/cjs/activity/index.d.ts.map +1 -1
  13. package/dist/cjs/activity/index.js +1 -0
  14. package/dist/cjs/activity/resources.d.ts +13 -0
  15. package/dist/cjs/activity/resources.d.ts.map +1 -0
  16. package/dist/cjs/activity/resources.js +29 -0
  17. package/dist/cjs/activity/schema/base.d.ts +23 -7
  18. package/dist/cjs/activity/schema/base.d.ts.map +1 -1
  19. package/dist/cjs/activity/schema/base.js +12 -2
  20. package/dist/cjs/activity/schema/schema.d.ts +123 -29
  21. package/dist/cjs/activity/schema/schema.d.ts.map +1 -1
  22. package/dist/cjs/activity/schema/schema.js +5 -2
  23. package/dist/cjs/activity/schema/types/authentication.d.ts +28 -5
  24. package/dist/cjs/activity/schema/types/authentication.d.ts.map +1 -1
  25. package/dist/cjs/activity/schema/types/authentication.js +5 -2
  26. package/dist/cjs/activity/schema/types/authorization.d.ts +28 -5
  27. package/dist/cjs/activity/schema/types/authorization.d.ts.map +1 -1
  28. package/dist/cjs/activity/schema/types/authorization.js +6 -4
  29. package/dist/cjs/activity/schema/types/note.d.ts +27 -7
  30. package/dist/cjs/activity/schema/types/note.d.ts.map +1 -1
  31. package/dist/cjs/activity/schema/types/note.js +4 -2
  32. package/dist/cjs/activity/schema/types/operation.d.ts +27 -5
  33. package/dist/cjs/activity/schema/types/operation.d.ts.map +1 -1
  34. package/dist/cjs/activity/schema/types/operation.js +4 -2
  35. package/dist/cjs/activity/schema/types/unknown.d.ts +25 -5
  36. package/dist/cjs/activity/schema/types/unknown.d.ts.map +1 -1
  37. package/dist/cjs/activity/schema/types/unknown.js +4 -2
  38. package/dist/cjs/app/authorization/resources.d.ts +12 -0
  39. package/dist/cjs/app/authorization/resources.d.ts.map +1 -0
  40. package/dist/cjs/app/authorization/resources.js +35 -0
  41. package/dist/cjs/app/authorization/schema.d.ts +28 -11
  42. package/dist/cjs/app/authorization/schema.d.ts.map +1 -1
  43. package/dist/cjs/app/authorization/schema.js +30 -14
  44. package/dist/cjs/app/index.d.ts +6 -0
  45. package/dist/cjs/app/index.d.ts.map +1 -1
  46. package/dist/cjs/app/index.js +6 -0
  47. package/dist/cjs/app/oauth/resources.d.ts +12 -0
  48. package/dist/cjs/app/oauth/resources.d.ts.map +1 -0
  49. package/dist/cjs/app/oauth/resources.js +35 -0
  50. package/dist/cjs/app/oauth/schema.d.ts +17 -5
  51. package/dist/cjs/app/oauth/schema.d.ts.map +1 -1
  52. package/dist/cjs/app/oauth/schema.js +9 -2
  53. package/dist/cjs/app/oidc/resources.d.ts +16 -0
  54. package/dist/cjs/app/oidc/resources.d.ts.map +1 -0
  55. package/dist/cjs/app/oidc/resources.js +49 -0
  56. package/dist/cjs/app/oidc/schema.d.ts +18 -8
  57. package/dist/cjs/app/oidc/schema.d.ts.map +1 -1
  58. package/dist/cjs/app/oidc/schema.js +7 -2
  59. package/dist/cjs/app/registration/resources.d.ts +12 -0
  60. package/dist/cjs/app/registration/resources.d.ts.map +1 -0
  61. package/dist/cjs/app/registration/resources.js +35 -0
  62. package/dist/cjs/app/registration/schema.d.ts +15 -5
  63. package/dist/cjs/app/registration/schema.d.ts.map +1 -1
  64. package/dist/cjs/app/registration/schema.js +9 -2
  65. package/dist/cjs/app/resources.d.ts +21 -0
  66. package/dist/cjs/app/resources.d.ts.map +1 -0
  67. package/dist/cjs/app/resources.js +57 -0
  68. package/dist/cjs/app/saml/resources.d.ts +16 -0
  69. package/dist/cjs/app/saml/resources.d.ts.map +1 -0
  70. package/dist/cjs/app/saml/resources.js +49 -0
  71. package/dist/cjs/app/saml/schema.d.ts +18 -8
  72. package/dist/cjs/app/saml/schema.d.ts.map +1 -1
  73. package/dist/cjs/app/saml/schema.js +7 -2
  74. package/dist/cjs/app/schema.d.ts +24 -9
  75. package/dist/cjs/app/schema.d.ts.map +1 -1
  76. package/dist/cjs/app/schema.js +11 -3
  77. package/dist/cjs/association/index.d.ts +1 -0
  78. package/dist/cjs/association/index.d.ts.map +1 -1
  79. package/dist/cjs/association/index.js +1 -0
  80. package/dist/cjs/association/resources.d.ts +23 -0
  81. package/dist/cjs/association/resources.d.ts.map +1 -0
  82. package/dist/cjs/association/resources.js +51 -0
  83. package/dist/cjs/association/schema.d.ts +138 -19
  84. package/dist/cjs/association/schema.d.ts.map +1 -1
  85. package/dist/cjs/association/schema.js +30 -3
  86. package/dist/cjs/authentication/factors/schema.d.ts +11 -2
  87. package/dist/cjs/authentication/factors/schema.d.ts.map +1 -1
  88. package/dist/cjs/authentication/factors/schema.js +5 -1
  89. package/dist/cjs/authentication/index.d.ts +3 -0
  90. package/dist/cjs/authentication/index.d.ts.map +1 -1
  91. package/dist/cjs/authentication/index.js +3 -0
  92. package/dist/cjs/authentication/providers/schema.d.ts +4 -4
  93. package/dist/cjs/authentication/resources.d.ts +2 -0
  94. package/dist/cjs/authentication/resources.d.ts.map +1 -0
  95. package/dist/cjs/authentication/resources.js +4 -0
  96. package/dist/cjs/authentication/sessions/resources.d.ts +21 -0
  97. package/dist/cjs/authentication/sessions/resources.d.ts.map +1 -0
  98. package/dist/cjs/authentication/sessions/resources.js +43 -0
  99. package/dist/cjs/authentication/sessions/schema.d.ts +35 -13
  100. package/dist/cjs/authentication/sessions/schema.d.ts.map +1 -1
  101. package/dist/cjs/authentication/sessions/schema.js +15 -6
  102. package/dist/cjs/authentication/settings/resources.d.ts +12 -0
  103. package/dist/cjs/authentication/settings/resources.d.ts.map +1 -0
  104. package/dist/cjs/authentication/settings/resources.js +32 -0
  105. package/dist/cjs/authentication/settings/schema.d.ts +30 -7
  106. package/dist/cjs/authentication/settings/schema.d.ts.map +1 -1
  107. package/dist/cjs/authentication/settings/schema.js +8 -1
  108. package/dist/cjs/authentication/strategies/resources.d.ts +20 -0
  109. package/dist/cjs/authentication/strategies/resources.d.ts.map +1 -0
  110. package/dist/cjs/authentication/strategies/resources.js +58 -0
  111. package/dist/cjs/authentication/strategies/schema/base.d.ts +17 -7
  112. package/dist/cjs/authentication/strategies/schema/base.d.ts.map +1 -1
  113. package/dist/cjs/authentication/strategies/schema/base.js +10 -2
  114. package/dist/cjs/authentication/strategies/schema/schema.d.ts +102 -53
  115. package/dist/cjs/authentication/strategies/schema/schema.d.ts.map +1 -1
  116. package/dist/cjs/authentication/strategies/schema/schema.js +2 -1
  117. package/dist/cjs/authentication/strategies/schema/types/email.d.ts +27 -9
  118. package/dist/cjs/authentication/strategies/schema/types/email.d.ts.map +1 -1
  119. package/dist/cjs/authentication/strategies/schema/types/email.js +4 -3
  120. package/dist/cjs/authentication/strategies/schema/types/password.d.ts +76 -43
  121. package/dist/cjs/authentication/strategies/schema/types/password.d.ts.map +1 -1
  122. package/dist/cjs/authentication/strategies/schema/types/password.js +26 -9
  123. package/dist/cjs/authentication/strategies/schema/types/totp.d.ts +33 -13
  124. package/dist/cjs/authentication/strategies/schema/types/totp.d.ts.map +1 -1
  125. package/dist/cjs/authentication/strategies/schema/types/totp.js +12 -3
  126. package/dist/cjs/authorization/permissions/resources.d.ts +2 -2
  127. package/dist/cjs/authorization/permissions/resources.d.ts.map +1 -1
  128. package/dist/cjs/authorization/permissions/resources.js +1 -1
  129. package/dist/cjs/authorization/permissions/schema.d.ts +9 -9
  130. package/dist/cjs/authorization/permissions/schema.d.ts.map +1 -1
  131. package/dist/cjs/authorization/permissions/schema.js +3 -1
  132. package/dist/cjs/authorization/roles/resources.d.ts +2 -2
  133. package/dist/cjs/authorization/roles/resources.d.ts.map +1 -1
  134. package/dist/cjs/authorization/roles/resources.js +1 -1
  135. package/dist/cjs/authorization/roles/schema.d.ts +9 -9
  136. package/dist/cjs/authorization/roles/schema.d.ts.map +1 -1
  137. package/dist/cjs/authorization/roles/schema.js +3 -1
  138. package/dist/cjs/common/index.d.ts +1 -0
  139. package/dist/cjs/common/index.d.ts.map +1 -1
  140. package/dist/cjs/common/index.js +6 -0
  141. package/dist/cjs/common/schema/dates.d.ts +7 -7
  142. package/dist/cjs/common/schema/dates.d.ts.map +1 -1
  143. package/dist/cjs/common/schema/metadata.d.ts +8 -6
  144. package/dist/cjs/common/schema/metadata.d.ts.map +1 -1
  145. package/dist/cjs/common/schema/schema.d.ts +2 -1
  146. package/dist/cjs/common/schema/schema.d.ts.map +1 -1
  147. package/dist/cjs/common/schema/schema.js +2 -1
  148. package/dist/cjs/common/schema/schema.test.d.ts +2 -0
  149. package/dist/cjs/common/schema/schema.test.d.ts.map +1 -0
  150. package/dist/cjs/common/schema/schema.test.js +35 -0
  151. package/dist/cjs/common/schema/sets.d.ts +2 -2
  152. package/dist/cjs/common/schema/sets.d.ts.map +1 -1
  153. package/dist/cjs/common/schema/url.d.ts +2 -0
  154. package/dist/cjs/common/schema/url.d.ts.map +1 -0
  155. package/dist/cjs/common/schema/url.js +12 -0
  156. package/dist/cjs/customer/index.d.ts +1 -0
  157. package/dist/cjs/customer/index.d.ts.map +1 -1
  158. package/dist/cjs/customer/index.js +1 -0
  159. package/dist/cjs/customer/schema/organization.d.ts +7 -7
  160. package/dist/cjs/customer/users/resources.d.ts +2 -2
  161. package/dist/cjs/customer/users/resources.d.ts.map +1 -1
  162. package/dist/cjs/customer/users/resources.js +2 -2
  163. package/dist/cjs/customer/users/schema.d.ts +11 -12
  164. package/dist/cjs/customer/users/schema.d.ts.map +1 -1
  165. package/dist/cjs/customer/users/schema.js +2 -4
  166. package/dist/cjs/customer/users/schema.test.js +2 -0
  167. package/dist/cjs/customer/users/utils.d.ts +10 -0
  168. package/dist/cjs/customer/users/utils.d.ts.map +1 -0
  169. package/dist/cjs/customer/users/utils.js +33 -0
  170. package/dist/cjs/oauth/common/schema.d.ts +6 -0
  171. package/dist/cjs/oauth/common/schema.d.ts.map +1 -1
  172. package/dist/cjs/oauth/common/schema.js +7 -1
  173. package/dist/cjs/oauth/index.d.ts +1 -1
  174. package/dist/cjs/oauth/index.d.ts.map +1 -1
  175. package/dist/cjs/oauth/index.js +2 -1
  176. package/dist/cjs/workspace/authorization/schema.d.ts +5 -5
  177. package/dist/cjs/workspace/branding/schema.d.ts +5 -5
  178. package/dist/cjs/workspace/membership/schema.d.ts +5 -5
  179. package/dist/cjs/workspace/registration/schema.d.ts +5 -5
  180. package/dist/cjs/workspace/settings/schema.d.ts +5 -5
  181. package/dist/cjs/workspace/tenant/schema.d.ts +10 -10
  182. package/dist/cjs/workspace/user/notifications/schema.d.ts +7 -7
  183. package/dist/cjs/workspace/user/preferences/schema.d.ts +5 -5
  184. package/dist/esm/action/schema/base.d.ts +5 -5
  185. package/dist/esm/action/schema/operations/set-password.d.ts +11 -11
  186. package/dist/esm/action/schema/operations/sign-up-verification.d.ts +5 -5
  187. package/dist/esm/action/schema/operations/sign-up.d.ts +7 -7
  188. package/dist/esm/action/schema/operations/user-attribute-verification.d.ts +5 -5
  189. package/dist/esm/action/schema/schema.d.ts +26 -26
  190. package/dist/esm/activity/index.d.ts +1 -0
  191. package/dist/esm/activity/index.d.ts.map +1 -1
  192. package/dist/esm/activity/index.js +1 -0
  193. package/dist/esm/activity/resources.d.ts +13 -0
  194. package/dist/esm/activity/resources.d.ts.map +1 -0
  195. package/dist/esm/activity/resources.js +24 -0
  196. package/dist/esm/activity/schema/base.d.ts +23 -7
  197. package/dist/esm/activity/schema/base.d.ts.map +1 -1
  198. package/dist/esm/activity/schema/base.js +13 -3
  199. package/dist/esm/activity/schema/schema.d.ts +123 -29
  200. package/dist/esm/activity/schema/schema.d.ts.map +1 -1
  201. package/dist/esm/activity/schema/schema.js +9 -6
  202. package/dist/esm/activity/schema/types/authentication.d.ts +28 -5
  203. package/dist/esm/activity/schema/types/authentication.d.ts.map +1 -1
  204. package/dist/esm/activity/schema/types/authentication.js +5 -2
  205. package/dist/esm/activity/schema/types/authorization.d.ts +28 -5
  206. package/dist/esm/activity/schema/types/authorization.d.ts.map +1 -1
  207. package/dist/esm/activity/schema/types/authorization.js +6 -4
  208. package/dist/esm/activity/schema/types/note.d.ts +27 -7
  209. package/dist/esm/activity/schema/types/note.d.ts.map +1 -1
  210. package/dist/esm/activity/schema/types/note.js +4 -2
  211. package/dist/esm/activity/schema/types/operation.d.ts +27 -5
  212. package/dist/esm/activity/schema/types/operation.d.ts.map +1 -1
  213. package/dist/esm/activity/schema/types/operation.js +4 -2
  214. package/dist/esm/activity/schema/types/unknown.d.ts +25 -5
  215. package/dist/esm/activity/schema/types/unknown.d.ts.map +1 -1
  216. package/dist/esm/activity/schema/types/unknown.js +4 -2
  217. package/dist/esm/app/authorization/resources.d.ts +12 -0
  218. package/dist/esm/app/authorization/resources.d.ts.map +1 -0
  219. package/dist/esm/app/authorization/resources.js +29 -0
  220. package/dist/esm/app/authorization/schema.d.ts +28 -11
  221. package/dist/esm/app/authorization/schema.d.ts.map +1 -1
  222. package/dist/esm/app/authorization/schema.js +31 -15
  223. package/dist/esm/app/index.d.ts +6 -0
  224. package/dist/esm/app/index.d.ts.map +1 -1
  225. package/dist/esm/app/index.js +6 -0
  226. package/dist/esm/app/oauth/resources.d.ts +12 -0
  227. package/dist/esm/app/oauth/resources.d.ts.map +1 -0
  228. package/dist/esm/app/oauth/resources.js +29 -0
  229. package/dist/esm/app/oauth/schema.d.ts +17 -5
  230. package/dist/esm/app/oauth/schema.d.ts.map +1 -1
  231. package/dist/esm/app/oauth/schema.js +10 -3
  232. package/dist/esm/app/oidc/resources.d.ts +16 -0
  233. package/dist/esm/app/oidc/resources.d.ts.map +1 -0
  234. package/dist/esm/app/oidc/resources.js +41 -0
  235. package/dist/esm/app/oidc/schema.d.ts +18 -8
  236. package/dist/esm/app/oidc/schema.d.ts.map +1 -1
  237. package/dist/esm/app/oidc/schema.js +8 -3
  238. package/dist/esm/app/registration/resources.d.ts +12 -0
  239. package/dist/esm/app/registration/resources.d.ts.map +1 -0
  240. package/dist/esm/app/registration/resources.js +29 -0
  241. package/dist/esm/app/registration/schema.d.ts +15 -5
  242. package/dist/esm/app/registration/schema.d.ts.map +1 -1
  243. package/dist/esm/app/registration/schema.js +10 -3
  244. package/dist/esm/app/resources.d.ts +21 -0
  245. package/dist/esm/app/resources.d.ts.map +1 -0
  246. package/dist/esm/app/resources.js +48 -0
  247. package/dist/esm/app/saml/resources.d.ts +16 -0
  248. package/dist/esm/app/saml/resources.d.ts.map +1 -0
  249. package/dist/esm/app/saml/resources.js +41 -0
  250. package/dist/esm/app/saml/schema.d.ts +18 -8
  251. package/dist/esm/app/saml/schema.d.ts.map +1 -1
  252. package/dist/esm/app/saml/schema.js +8 -3
  253. package/dist/esm/app/schema.d.ts +24 -9
  254. package/dist/esm/app/schema.d.ts.map +1 -1
  255. package/dist/esm/app/schema.js +12 -4
  256. package/dist/esm/association/index.d.ts +1 -0
  257. package/dist/esm/association/index.d.ts.map +1 -1
  258. package/dist/esm/association/index.js +1 -0
  259. package/dist/esm/association/resources.d.ts +23 -0
  260. package/dist/esm/association/resources.d.ts.map +1 -0
  261. package/dist/esm/association/resources.js +44 -0
  262. package/dist/esm/association/schema.d.ts +138 -19
  263. package/dist/esm/association/schema.d.ts.map +1 -1
  264. package/dist/esm/association/schema.js +30 -3
  265. package/dist/esm/authentication/factors/schema.d.ts +11 -2
  266. package/dist/esm/authentication/factors/schema.d.ts.map +1 -1
  267. package/dist/esm/authentication/factors/schema.js +4 -0
  268. package/dist/esm/authentication/index.d.ts +3 -0
  269. package/dist/esm/authentication/index.d.ts.map +1 -1
  270. package/dist/esm/authentication/index.js +3 -0
  271. package/dist/esm/authentication/providers/schema.d.ts +4 -4
  272. package/dist/esm/authentication/resources.d.ts +2 -0
  273. package/dist/esm/authentication/resources.d.ts.map +1 -0
  274. package/dist/esm/authentication/resources.js +1 -0
  275. package/dist/esm/authentication/sessions/resources.d.ts +21 -0
  276. package/dist/esm/authentication/sessions/resources.d.ts.map +1 -0
  277. package/dist/esm/authentication/sessions/resources.js +37 -0
  278. package/dist/esm/authentication/sessions/schema.d.ts +35 -13
  279. package/dist/esm/authentication/sessions/schema.d.ts.map +1 -1
  280. package/dist/esm/authentication/sessions/schema.js +16 -7
  281. package/dist/esm/authentication/settings/resources.d.ts +12 -0
  282. package/dist/esm/authentication/settings/resources.d.ts.map +1 -0
  283. package/dist/esm/authentication/settings/resources.js +26 -0
  284. package/dist/esm/authentication/settings/schema.d.ts +30 -7
  285. package/dist/esm/authentication/settings/schema.d.ts.map +1 -1
  286. package/dist/esm/authentication/settings/schema.js +9 -2
  287. package/dist/esm/authentication/strategies/resources.d.ts +20 -0
  288. package/dist/esm/authentication/strategies/resources.d.ts.map +1 -0
  289. package/dist/esm/authentication/strategies/resources.js +49 -0
  290. package/dist/esm/authentication/strategies/schema/base.d.ts +17 -7
  291. package/dist/esm/authentication/strategies/schema/base.d.ts.map +1 -1
  292. package/dist/esm/authentication/strategies/schema/base.js +11 -3
  293. package/dist/esm/authentication/strategies/schema/schema.d.ts +102 -53
  294. package/dist/esm/authentication/strategies/schema/schema.d.ts.map +1 -1
  295. package/dist/esm/authentication/strategies/schema/schema.js +4 -3
  296. package/dist/esm/authentication/strategies/schema/types/email.d.ts +27 -9
  297. package/dist/esm/authentication/strategies/schema/types/email.d.ts.map +1 -1
  298. package/dist/esm/authentication/strategies/schema/types/email.js +4 -3
  299. package/dist/esm/authentication/strategies/schema/types/password.d.ts +76 -43
  300. package/dist/esm/authentication/strategies/schema/types/password.d.ts.map +1 -1
  301. package/dist/esm/authentication/strategies/schema/types/password.js +26 -9
  302. package/dist/esm/authentication/strategies/schema/types/totp.d.ts +33 -13
  303. package/dist/esm/authentication/strategies/schema/types/totp.d.ts.map +1 -1
  304. package/dist/esm/authentication/strategies/schema/types/totp.js +12 -3
  305. package/dist/esm/authorization/permissions/resources.d.ts +2 -2
  306. package/dist/esm/authorization/permissions/resources.d.ts.map +1 -1
  307. package/dist/esm/authorization/permissions/resources.js +1 -1
  308. package/dist/esm/authorization/permissions/schema.d.ts +9 -9
  309. package/dist/esm/authorization/permissions/schema.d.ts.map +1 -1
  310. package/dist/esm/authorization/permissions/schema.js +3 -1
  311. package/dist/esm/authorization/roles/resources.d.ts +2 -2
  312. package/dist/esm/authorization/roles/resources.d.ts.map +1 -1
  313. package/dist/esm/authorization/roles/resources.js +1 -1
  314. package/dist/esm/authorization/roles/schema.d.ts +9 -9
  315. package/dist/esm/authorization/roles/schema.d.ts.map +1 -1
  316. package/dist/esm/authorization/roles/schema.js +3 -1
  317. package/dist/esm/common/index.d.ts +1 -0
  318. package/dist/esm/common/index.d.ts.map +1 -1
  319. package/dist/esm/common/index.js +1 -0
  320. package/dist/esm/common/schema/dates.d.ts +7 -7
  321. package/dist/esm/common/schema/dates.d.ts.map +1 -1
  322. package/dist/esm/common/schema/metadata.d.ts +8 -6
  323. package/dist/esm/common/schema/metadata.d.ts.map +1 -1
  324. package/dist/esm/common/schema/schema.d.ts +2 -1
  325. package/dist/esm/common/schema/schema.d.ts.map +1 -1
  326. package/dist/esm/common/schema/schema.js +2 -1
  327. package/dist/esm/common/schema/schema.test.d.ts +2 -0
  328. package/dist/esm/common/schema/schema.test.d.ts.map +1 -0
  329. package/dist/esm/common/schema/schema.test.js +33 -0
  330. package/dist/esm/common/schema/sets.d.ts +2 -2
  331. package/dist/esm/common/schema/sets.d.ts.map +1 -1
  332. package/dist/esm/common/schema/url.d.ts +2 -0
  333. package/dist/esm/common/schema/url.d.ts.map +1 -0
  334. package/dist/esm/common/schema/url.js +9 -0
  335. package/dist/esm/customer/index.d.ts +1 -0
  336. package/dist/esm/customer/index.d.ts.map +1 -1
  337. package/dist/esm/customer/index.js +1 -0
  338. package/dist/esm/customer/schema/organization.d.ts +7 -7
  339. package/dist/esm/customer/users/resources.d.ts +2 -2
  340. package/dist/esm/customer/users/resources.d.ts.map +1 -1
  341. package/dist/esm/customer/users/resources.js +3 -3
  342. package/dist/esm/customer/users/schema.d.ts +11 -12
  343. package/dist/esm/customer/users/schema.d.ts.map +1 -1
  344. package/dist/esm/customer/users/schema.js +2 -4
  345. package/dist/esm/customer/users/schema.test.js +2 -0
  346. package/dist/esm/customer/users/utils.d.ts +10 -0
  347. package/dist/esm/customer/users/utils.d.ts.map +1 -0
  348. package/dist/esm/customer/users/utils.js +27 -0
  349. package/dist/esm/oauth/common/schema.d.ts +6 -0
  350. package/dist/esm/oauth/common/schema.d.ts.map +1 -1
  351. package/dist/esm/oauth/common/schema.js +6 -0
  352. package/dist/esm/oauth/index.d.ts +1 -1
  353. package/dist/esm/oauth/index.d.ts.map +1 -1
  354. package/dist/esm/oauth/index.js +1 -1
  355. package/dist/esm/workspace/authorization/schema.d.ts +5 -5
  356. package/dist/esm/workspace/branding/schema.d.ts +5 -5
  357. package/dist/esm/workspace/membership/schema.d.ts +5 -5
  358. package/dist/esm/workspace/registration/schema.d.ts +5 -5
  359. package/dist/esm/workspace/settings/schema.d.ts +5 -5
  360. package/dist/esm/workspace/tenant/schema.d.ts +10 -10
  361. package/dist/esm/workspace/user/notifications/schema.d.ts +7 -7
  362. package/dist/esm/workspace/user/preferences/schema.d.ts +5 -5
  363. package/package.json +6 -6
@@ -0,0 +1,24 @@
1
+ import { getItemWithAuthorization } from '../common/resources/operations.js';
2
+ import { addPaginationToURL, parseEgressSchema, } from '../common/resources/utils.js';
3
+ import { PaginationCollectionSchema, } from '../common/schema/collection.js';
4
+ import { ActivitySchema } from './schema/schema.js';
5
+ export const PATH = '/v1/activities';
6
+ export class ActivityResources {
7
+ instance;
8
+ constructor(instance) {
9
+ this.instance = instance;
10
+ }
11
+ static buildPath(source) {
12
+ if (source.startsWith(PATH)) {
13
+ return source;
14
+ }
15
+ return [PATH, source].filter(Boolean).join('/');
16
+ }
17
+ listItems(source, pagination) {
18
+ return listActivities(this.instance, source, pagination);
19
+ }
20
+ }
21
+ export async function listActivities(instance, source, pagination) {
22
+ const url = addPaginationToURL(new URL(ActivityResources.buildPath(source), instance.config.host), pagination);
23
+ return parseEgressSchema(PaginationCollectionSchema(ActivitySchema)(await getItemWithAuthorization(url, instance.authorizer)));
24
+ }
@@ -26,6 +26,21 @@ export declare const PerformedBySchema: import("arktype/internal/methods/object.
26
26
  identifier: string;
27
27
  }, {}>;
28
28
  export type PerformedBy = typeof PerformedBySchema.inferOut;
29
+ export declare const BaseSchema: import("arktype/internal/methods/object.ts").ObjectType<{
30
+ id: string;
31
+ performedBy: {
32
+ type: "system" | "guest" | "identity" | "automation" | "integration";
33
+ identifier: string;
34
+ };
35
+ source: string;
36
+ isMutateable: boolean;
37
+ app?: string | undefined;
38
+ createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
39
+ updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
40
+ deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
41
+ deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
42
+ metadata: (In: import("arktype/internal/attributes.ts").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
43
+ }, {}>;
29
44
  export declare const BasePayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
30
45
  id: string;
31
46
  performedBy: {
@@ -34,13 +49,14 @@ export declare const BasePayloadSchema: import("arktype/internal/methods/object.
34
49
  };
35
50
  source: string;
36
51
  isMutateable: boolean;
37
- createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
38
- updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
39
- deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
40
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
52
+ app?: string | undefined;
53
+ createdAt: (In: string | Date) => import("arktype").Out<string>;
54
+ updatedAt: (In: string | Date) => import("arktype").Out<string>;
55
+ deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
56
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
41
57
  metadata?: ((In: {
42
58
  [x: string]: string | number | boolean;
43
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
59
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
44
60
  [x: string]: string | number | boolean;
45
61
  } | undefined>) | undefined;
46
62
  }, {}>;
@@ -52,7 +68,7 @@ export declare const BaseInsertPayloadSchema: import("arktype/internal/methods/o
52
68
  } | undefined;
53
69
  metadata?: ((In: {
54
70
  [x: string]: string | number | boolean;
55
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
71
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
56
72
  [x: string]: string | number | boolean;
57
73
  } | null>) | undefined;
58
74
  }, {}>;
@@ -63,7 +79,7 @@ export declare const BaseUpdatePayloadSchema: import("arktype/internal/methods/o
63
79
  } | undefined;
64
80
  metadata?: ((In: {
65
81
  [x: string]: string | number | boolean;
66
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
82
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
67
83
  [x: string]: string | number | boolean;
68
84
  } | null>) | undefined;
69
85
  }, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/base.ts"],"names":[],"mappings":"AAWA,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,gBAAgB,qEAAc,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,qEAAiB,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"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/base.ts"],"names":[],"mappings":"AAeA,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,gBAAgB,qEAAc,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,qEAAiB,CAAC;AAE3C,eAAO,MAAM,iBAAiB;;;MAS5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,iBAAiB,CAAC,QAAQ,CAAC;AAU5D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;MAKU,CAAC;AAElC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;MAKO,CAAC;AAEtC,eAAO,MAAM,uBAAuB;;;;;;;;;;;MAGO,CAAC;AAE5C,eAAO,MAAM,uBAAuB;;;;;;;;;;MAEO,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { type } from 'arktype';
2
- import { OptionalDatePayloadSchema, RequiredDatePayloadSchema, } from '../../common/index.js';
3
- import { MetadataPayloadPropertySchema, UpsertMetadataPayloadPropertySchema, } from '../../common/schema/metadata.js';
2
+ import { AppIdSchema } from 'src/app/schema.js';
3
+ import { OptionalDatePayloadSchema, OptionalDateSchema, RequiredDatePayloadSchema, RequiredDateSchema, } from '../../common/index.js';
4
+ import { MetadataMapPropertySchema, MetadataPayloadPropertySchema, UpsertMetadataPayloadPropertySchema, } from '../../common/schema/metadata.js';
4
5
  import { generateActivityId } from './utils.js';
5
6
  export const ActivityType = {
6
7
  UNKNOWN: 'unknown',
@@ -25,11 +26,20 @@ export const PerformedBySchema = type({
25
26
  type: type.enumerated(PerformerType.SYSTEM, PerformerType.GUEST, PerformerType.IDENTITY, PerformerType.AUTOMATION, PerformerType.INTEGRATION),
26
27
  identifier: type('string'),
27
28
  });
28
- export const BasePayloadSchema = type({
29
+ const CommonSchema = type({
29
30
  id: ActivityIdSchema,
30
31
  performedBy: PerformedBySchema,
31
32
  source: SourceSchema,
33
+ app: AppIdSchema.optional(),
32
34
  isMutateable: type('boolean'),
35
+ });
36
+ export const BaseSchema = CommonSchema.and({
37
+ createdAt: RequiredDateSchema,
38
+ updatedAt: RequiredDateSchema,
39
+ deletedAt: OptionalDateSchema.optional(),
40
+ deactivatedAt: OptionalDateSchema.optional(),
41
+ }).and(MetadataMapPropertySchema);
42
+ export const BasePayloadSchema = CommonSchema.and({
33
43
  createdAt: RequiredDatePayloadSchema,
34
44
  updatedAt: RequiredDatePayloadSchema,
35
45
  'deletedAt?': OptionalDatePayloadSchema,
@@ -1,4 +1,93 @@
1
- export { ActivityType, type AnyActivityType, PerformerType, type AnyPerformerType, } from './base.js';
1
+ export { ActivityType, PerformerType, type AnyActivityType, type AnyPerformerType, } from './base.js';
2
+ export declare const ActivitySchema: import("arktype/internal/methods/object.ts").ObjectType<{
3
+ id: string;
4
+ performedBy: {
5
+ type: "system" | "guest" | "identity" | "automation" | "integration";
6
+ identifier: string;
7
+ };
8
+ source: string;
9
+ isMutateable: boolean;
10
+ app?: string | undefined;
11
+ createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
12
+ updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
13
+ deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
14
+ deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
15
+ metadata: (In: import("arktype/internal/attributes.ts").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
16
+ type: "authentication";
17
+ status: "success" | "fail";
18
+ identity: string;
19
+ message: string;
20
+ } | {
21
+ id: string;
22
+ performedBy: {
23
+ type: "system" | "guest" | "identity" | "automation" | "integration";
24
+ identifier: string;
25
+ };
26
+ source: string;
27
+ isMutateable: boolean;
28
+ app?: string | undefined;
29
+ createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
30
+ updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
31
+ deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
32
+ deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
33
+ metadata: (In: import("arktype/internal/attributes.ts").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
34
+ type: "authorization";
35
+ status: "success" | "fail";
36
+ message: string;
37
+ identity?: string | undefined;
38
+ } | {
39
+ id: string;
40
+ performedBy: {
41
+ type: "system" | "guest" | "identity" | "automation" | "integration";
42
+ identifier: string;
43
+ };
44
+ source: string;
45
+ isMutateable: boolean;
46
+ app?: string | undefined;
47
+ createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
48
+ updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
49
+ deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
50
+ deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
51
+ metadata: (In: import("arktype/internal/attributes.ts").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
52
+ type: "note";
53
+ message: string;
54
+ } | {
55
+ id: string;
56
+ performedBy: {
57
+ type: "system" | "guest" | "identity" | "automation" | "integration";
58
+ identifier: string;
59
+ };
60
+ source: string;
61
+ isMutateable: boolean;
62
+ app?: string | undefined;
63
+ createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
64
+ updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
65
+ deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
66
+ deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
67
+ metadata: (In: import("arktype/internal/attributes.ts").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
68
+ type: "operation";
69
+ operation: "delete" | "automation" | "create" | "update";
70
+ message: string;
71
+ target: string;
72
+ } | {
73
+ id: string;
74
+ performedBy: {
75
+ type: "system" | "guest" | "identity" | "automation" | "integration";
76
+ identifier: string;
77
+ };
78
+ source: string;
79
+ isMutateable: boolean;
80
+ app?: string | undefined;
81
+ createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
82
+ updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
83
+ deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
84
+ deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
85
+ metadata: (In: import("arktype/internal/attributes.ts").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
86
+ type: "unknown";
87
+ message: string;
88
+ }, {}>;
89
+ export type ActivityProperties = typeof ActivitySchema.inferIn;
90
+ export type Activity = typeof ActivitySchema.inferOut;
2
91
  export declare const ActivityPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
3
92
  id: string;
4
93
  performedBy: {
@@ -7,18 +96,20 @@ export declare const ActivityPayloadSchema: import("arktype/internal/methods/obj
7
96
  };
8
97
  source: string;
9
98
  isMutateable: boolean;
10
- createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
11
- updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
12
- deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
13
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
99
+ app?: string | undefined;
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;
14
104
  metadata?: ((In: {
15
105
  [x: string]: string | number | boolean;
16
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
106
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
17
107
  [x: string]: string | number | boolean;
18
108
  } | undefined>) | undefined;
19
109
  type: "authentication";
20
110
  status: "success" | "fail";
21
111
  identity: string;
112
+ message: string;
22
113
  } | {
23
114
  id: string;
24
115
  performedBy: {
@@ -27,13 +118,14 @@ export declare const ActivityPayloadSchema: import("arktype/internal/methods/obj
27
118
  };
28
119
  source: string;
29
120
  isMutateable: boolean;
30
- createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
31
- updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
32
- deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
33
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
121
+ app?: string | undefined;
122
+ createdAt: (In: string | Date) => import("arktype").Out<string>;
123
+ updatedAt: (In: string | Date) => import("arktype").Out<string>;
124
+ deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
125
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
34
126
  metadata?: ((In: {
35
127
  [x: string]: string | number | boolean;
36
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
128
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
37
129
  [x: string]: string | number | boolean;
38
130
  } | undefined>) | undefined;
39
131
  type: "authorization";
@@ -48,13 +140,14 @@ export declare const ActivityPayloadSchema: import("arktype/internal/methods/obj
48
140
  };
49
141
  source: string;
50
142
  isMutateable: boolean;
51
- createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
52
- updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
53
- deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
54
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
143
+ app?: string | undefined;
144
+ createdAt: (In: string | Date) => import("arktype").Out<string>;
145
+ updatedAt: (In: string | Date) => import("arktype").Out<string>;
146
+ deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
147
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
55
148
  metadata?: ((In: {
56
149
  [x: string]: string | number | boolean;
57
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
150
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
58
151
  [x: string]: string | number | boolean;
59
152
  } | undefined>) | undefined;
60
153
  type: "note";
@@ -67,13 +160,14 @@ export declare const ActivityPayloadSchema: import("arktype/internal/methods/obj
67
160
  };
68
161
  source: string;
69
162
  isMutateable: boolean;
70
- createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
71
- updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
72
- deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
73
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
163
+ app?: string | undefined;
164
+ createdAt: (In: string | Date) => import("arktype").Out<string>;
165
+ updatedAt: (In: string | Date) => import("arktype").Out<string>;
166
+ deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
167
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
74
168
  metadata?: ((In: {
75
169
  [x: string]: string | number | boolean;
76
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
170
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
77
171
  [x: string]: string | number | boolean;
78
172
  } | undefined>) | undefined;
79
173
  type: "operation";
@@ -88,13 +182,14 @@ export declare const ActivityPayloadSchema: import("arktype/internal/methods/obj
88
182
  };
89
183
  source: string;
90
184
  isMutateable: boolean;
91
- createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
92
- updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
93
- deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
94
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
185
+ app?: string | undefined;
186
+ createdAt: (In: string | Date) => import("arktype").Out<string>;
187
+ updatedAt: (In: string | Date) => import("arktype").Out<string>;
188
+ deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
189
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
95
190
  metadata?: ((In: {
96
191
  [x: string]: string | number | boolean;
97
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
192
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
98
193
  [x: string]: string | number | boolean;
99
194
  } | undefined>) | undefined;
100
195
  type: "unknown";
@@ -109,7 +204,7 @@ export declare const InsertActivityPayloadSchema: import("arktype/internal/metho
109
204
  } | undefined;
110
205
  metadata?: ((In: {
111
206
  [x: string]: string | number | boolean;
112
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
207
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
113
208
  [x: string]: string | number | boolean;
114
209
  } | null>) | undefined;
115
210
  type: "note";
@@ -123,7 +218,7 @@ export declare const UpdateActivityPayloadSchema: import("arktype/internal/metho
123
218
  } | undefined;
124
219
  metadata?: ((In: {
125
220
  [x: string]: string | number | boolean;
126
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
221
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
127
222
  [x: string]: string | number | boolean;
128
223
  } | null>) | undefined;
129
224
  type: "note";
@@ -131,7 +226,6 @@ export declare const UpdateActivityPayloadSchema: import("arktype/internal/metho
131
226
  }, {}>;
132
227
  export type UpdateActivityPayload = typeof UpdateActivityPayloadSchema.inferOut;
133
228
  export { ActivityIdPropertySchema, ActivityIdSchema, PerformedBySchema, SourceSchema, type ActivityId, type ActivityIdProperty, type PerformedBy, } from './base.js';
134
- export * from './schema.js';
135
229
  export * from './types/authentication.js';
136
230
  export * from './types/authorization.js';
137
231
  export * from './types/note.js';
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/schema.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,YAAY,EACZ,KAAK,eAAe,EACpB,aAAa,EACb,KAAK,gBAAgB,GACtB,MAAM,WAAW,CAAC;AAEnB,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"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/activity/schema/schema.ts"],"names":[],"mappings":"AAuBA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKC,CAAC;AAC7B,MAAM,MAAM,kBAAkB,GAAG,OAAO,cAAc,CAAC,OAAO,CAAC;AAC/D,MAAM,MAAM,QAAQ,GAAG,OAAO,cAAc,CAAC,QAAQ,CAAC;AAEtD,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,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,YAAY,CAAC"}
@@ -1,9 +1,13 @@
1
- import { AuthenticationActivityPayloadSchema } from './types/authentication.js';
2
- import { AuthorizationActivityPayloadSchema } from './types/authorization.js';
3
- import { InsertNoteActivityPayloadSchema, NoteActivityPayloadSchema, UpdateNoteActivityPayloadSchema, } from './types/note.js';
4
- import { OperationActivityPayloadSchema } from './types/operation.js';
5
- import { UnknownActivityPayloadSchema } from './types/unknown.js';
1
+ import { AuthenticationActivityPayloadSchema, AuthenticationActivitySchema, } from './types/authentication.js';
2
+ import { AuthorizationActivityPayloadSchema, AuthorizationActivitySchema, } from './types/authorization.js';
3
+ import { InsertNoteActivityPayloadSchema, NoteActivityPayloadSchema, NoteActivitySchema, UpdateNoteActivityPayloadSchema, } from './types/note.js';
4
+ import { OperationActivityPayloadSchema, OperationActivitySchema, } from './types/operation.js';
5
+ import { UnknownActivityPayloadSchema, UnknownActivitySchema, } from './types/unknown.js';
6
6
  export { ActivityType, PerformerType, } from './base.js';
7
+ export const ActivitySchema = NoteActivitySchema.or(AuthenticationActivitySchema)
8
+ .or(AuthorizationActivitySchema)
9
+ .or(OperationActivitySchema)
10
+ .or(UnknownActivitySchema);
7
11
  export const ActivityPayloadSchema = NoteActivityPayloadSchema.or(AuthenticationActivityPayloadSchema)
8
12
  .or(AuthorizationActivityPayloadSchema)
9
13
  .or(OperationActivityPayloadSchema)
@@ -11,7 +15,6 @@ export const ActivityPayloadSchema = NoteActivityPayloadSchema.or(Authentication
11
15
  export const InsertActivityPayloadSchema = InsertNoteActivityPayloadSchema;
12
16
  export const UpdateActivityPayloadSchema = UpdateNoteActivityPayloadSchema;
13
17
  export { ActivityIdPropertySchema, ActivityIdSchema, PerformedBySchema, SourceSchema, } from './base.js';
14
- export * from './schema.js';
15
18
  export * from './types/authentication.js';
16
19
  export * from './types/authorization.js';
17
20
  export * from './types/note.js';
@@ -4,6 +4,27 @@ export declare const AuthenticationStatus: {
4
4
  };
5
5
  export type AnyAuthenticationStatus = (typeof AuthenticationStatus)[keyof typeof AuthenticationStatus];
6
6
  export declare const AuthenticationStatusSchema: import("arktype/internal/methods/string.ts").StringType<"success" | "fail", {}>;
7
+ export declare const AuthenticationActivitySchema: import("arktype/internal/methods/object.ts").ObjectType<{
8
+ id: string;
9
+ performedBy: {
10
+ type: "system" | "guest" | "identity" | "automation" | "integration";
11
+ identifier: string;
12
+ };
13
+ source: string;
14
+ isMutateable: boolean;
15
+ app?: string | undefined;
16
+ createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
17
+ updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
18
+ deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
19
+ deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
20
+ metadata: (In: import("arktype/internal/attributes.ts").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
21
+ type: "authentication";
22
+ status: "success" | "fail";
23
+ identity: string;
24
+ message: string;
25
+ }, {}>;
26
+ export type AuthenticationActivityProperties = typeof AuthenticationActivitySchema.inferIn;
27
+ export type AuthenticationActivity = typeof AuthenticationActivitySchema.inferOut;
7
28
  export declare const AuthenticationActivityPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
8
29
  id: string;
9
30
  performedBy: {
@@ -12,18 +33,20 @@ export declare const AuthenticationActivityPayloadSchema: import("arktype/intern
12
33
  };
13
34
  source: string;
14
35
  isMutateable: boolean;
15
- createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
16
- updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
17
- deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
18
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
36
+ app?: string | undefined;
37
+ createdAt: (In: string | Date) => import("arktype").Out<string>;
38
+ updatedAt: (In: string | Date) => import("arktype").Out<string>;
39
+ deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
40
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
19
41
  metadata?: ((In: {
20
42
  [x: string]: string | number | boolean;
21
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
43
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
22
44
  [x: string]: string | number | boolean;
23
45
  } | undefined>) | undefined;
24
46
  type: "authentication";
25
47
  status: "success" | "fail";
26
48
  identity: string;
49
+ message: string;
27
50
  }, {}>;
28
51
  export type AuthenticationActivityPayload = typeof AuthenticationActivityPayloadSchema.inferOut;
29
52
  //# sourceMappingURL=authentication.d.ts.map
@@ -1 +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,iFAGtC,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;MAI9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GACvC,OAAO,mCAAmC,CAAC,QAAQ,CAAC"}
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,iFAGtC,CAAC;AASF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;MAExC,CAAC;AACF,MAAM,MAAM,gCAAgC,GAC1C,OAAO,4BAA4B,CAAC,OAAO,CAAC;AAC9C,MAAM,MAAM,sBAAsB,GAChC,OAAO,4BAA4B,CAAC,QAAQ,CAAC;AAE/C,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;MAE/C,CAAC;AACF,MAAM,MAAM,6BAA6B,GACvC,OAAO,mCAAmC,CAAC,QAAQ,CAAC"}
@@ -1,13 +1,16 @@
1
1
  import { type } from 'arktype';
2
2
  import { UserIdSchema } from '../../../customer/users/schema.js';
3
- import { BasePayloadSchema } from '../base.js';
3
+ import { BasePayloadSchema, BaseSchema } from '../base.js';
4
4
  export const AuthenticationStatus = {
5
5
  SUCESS: 'success',
6
6
  FAIL: 'fail',
7
7
  };
8
8
  export const AuthenticationStatusSchema = type.enumerated(AuthenticationStatus.SUCESS, AuthenticationStatus.FAIL);
9
- export const AuthenticationActivityPayloadSchema = BasePayloadSchema.and({
9
+ const BaseAuthenticationSchema = type({
10
10
  type: type("'authentication'"),
11
11
  status: AuthenticationStatusSchema,
12
12
  identity: UserIdSchema,
13
+ message: type('string'),
13
14
  });
15
+ export const AuthenticationActivitySchema = BaseSchema.and(BaseAuthenticationSchema);
16
+ export const AuthenticationActivityPayloadSchema = BasePayloadSchema.and(BaseAuthenticationSchema);
@@ -3,6 +3,28 @@ export declare const AuthorizationStatus: {
3
3
  readonly FAIL: "fail";
4
4
  };
5
5
  export type AnyAuthorizationStatus = (typeof AuthorizationStatus)[keyof typeof AuthorizationStatus];
6
+ export declare const AuthorizationStatusSchema: import("arktype/internal/methods/string.ts").StringType<"success" | "fail", {}>;
7
+ export declare const AuthorizationActivitySchema: import("arktype/internal/methods/object.ts").ObjectType<{
8
+ id: string;
9
+ performedBy: {
10
+ type: "system" | "guest" | "identity" | "automation" | "integration";
11
+ identifier: string;
12
+ };
13
+ source: string;
14
+ isMutateable: boolean;
15
+ app?: string | undefined;
16
+ createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
17
+ updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
18
+ deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
19
+ deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
20
+ metadata: (In: import("arktype/internal/attributes.ts").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
21
+ type: "authorization";
22
+ status: "success" | "fail";
23
+ message: string;
24
+ identity?: string | undefined;
25
+ }, {}>;
26
+ export type AuthorizationActivityProperties = typeof AuthorizationActivitySchema.inferIn;
27
+ export type AuthorizationActivity = typeof AuthorizationActivitySchema.inferOut;
6
28
  export declare const AuthorizationActivityPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
7
29
  id: string;
8
30
  performedBy: {
@@ -11,13 +33,14 @@ export declare const AuthorizationActivityPayloadSchema: import("arktype/interna
11
33
  };
12
34
  source: string;
13
35
  isMutateable: boolean;
14
- createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
15
- updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
16
- deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
17
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
36
+ app?: string | undefined;
37
+ createdAt: (In: string | Date) => import("arktype").Out<string>;
38
+ updatedAt: (In: string | Date) => import("arktype").Out<string>;
39
+ deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
40
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
18
41
  metadata?: ((In: {
19
42
  [x: string]: string | number | boolean;
20
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
43
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
21
44
  [x: string]: string | number | boolean;
22
45
  } | undefined>) | undefined;
23
46
  type: "authorization";
@@ -1 +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"}
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;AAEjE,eAAO,MAAM,yBAAyB,iFAGrC,CAAC;AASF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;MAEvC,CAAC;AACF,MAAM,MAAM,+BAA+B,GACzC,OAAO,2BAA2B,CAAC,OAAO,CAAC;AAC7C,MAAM,MAAM,qBAAqB,GAAG,OAAO,2BAA2B,CAAC,QAAQ,CAAC;AAEhF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;MAE9C,CAAC;AACF,MAAM,MAAM,4BAA4B,GACtC,OAAO,kCAAkC,CAAC,QAAQ,CAAC"}
@@ -1,14 +1,16 @@
1
1
  import { type } from 'arktype';
2
2
  import { UserIdSchema } from '../../../customer/users/schema.js';
3
- import { BasePayloadSchema } from '../base.js';
3
+ import { BasePayloadSchema, BaseSchema } from '../base.js';
4
4
  export const AuthorizationStatus = {
5
5
  SUCESS: 'success',
6
6
  FAIL: 'fail',
7
7
  };
8
- const StatusSchema = type.enumerated(AuthorizationStatus.SUCESS, AuthorizationStatus.FAIL);
9
- export const AuthorizationActivityPayloadSchema = BasePayloadSchema.and({
8
+ export const AuthorizationStatusSchema = type.enumerated(AuthorizationStatus.SUCESS, AuthorizationStatus.FAIL);
9
+ const BaseAuthorizationSchema = type({
10
10
  type: type("'authorization'"),
11
- status: StatusSchema,
11
+ status: AuthorizationStatusSchema,
12
12
  identity: UserIdSchema.optional(),
13
13
  message: type('string'),
14
14
  });
15
+ export const AuthorizationActivitySchema = BaseSchema.and(BaseAuthorizationSchema);
16
+ export const AuthorizationActivityPayloadSchema = BasePayloadSchema.and(BaseAuthorizationSchema);
@@ -1,3 +1,22 @@
1
+ export declare const NoteActivitySchema: import("arktype/internal/methods/object.ts").ObjectType<{
2
+ id: string;
3
+ performedBy: {
4
+ type: "system" | "guest" | "identity" | "automation" | "integration";
5
+ identifier: string;
6
+ };
7
+ source: string;
8
+ isMutateable: boolean;
9
+ app?: string | undefined;
10
+ createdAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
11
+ updatedAt: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
12
+ deletedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
13
+ deactivatedAt?: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>) | undefined;
14
+ metadata: (In: import("arktype/internal/attributes.ts").Default<unknown, Map<string, string | number | boolean>>) => import("arktype").Out<Map<string, string | number | boolean> | Map<string, any>>;
15
+ type: "note";
16
+ message: string;
17
+ }, {}>;
18
+ export type NoteActivityProperties = typeof NoteActivitySchema.inferIn;
19
+ export type NoteActivity = typeof NoteActivitySchema.inferOut;
1
20
  export declare const NoteActivityPayloadSchema: import("arktype/internal/methods/object.ts").ObjectType<{
2
21
  id: string;
3
22
  performedBy: {
@@ -6,13 +25,14 @@ export declare const NoteActivityPayloadSchema: import("arktype/internal/methods
6
25
  };
7
26
  source: string;
8
27
  isMutateable: boolean;
9
- createdAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
10
- updatedAt: (In: string | Date) => import("arktype/internal/attributes.ts").Out<string>;
11
- deletedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
12
- deactivatedAt?: ((In: string | Date | undefined) => import("arktype/internal/attributes.ts").Out<string | undefined>) | undefined;
28
+ app?: string | undefined;
29
+ createdAt: (In: string | Date) => import("arktype").Out<string>;
30
+ updatedAt: (In: string | Date) => import("arktype").Out<string>;
31
+ deletedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
32
+ deactivatedAt?: ((In: string | Date | undefined) => import("arktype").Out<string | undefined>) | undefined;
13
33
  metadata?: ((In: {
14
34
  [x: string]: string | number | boolean;
15
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
35
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
16
36
  [x: string]: string | number | boolean;
17
37
  } | undefined>) | undefined;
18
38
  type: "note";
@@ -27,7 +47,7 @@ export declare const InsertNoteActivityPayloadSchema: import("arktype/internal/m
27
47
  } | undefined;
28
48
  metadata?: ((In: {
29
49
  [x: string]: string | number | boolean;
30
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
50
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
31
51
  [x: string]: string | number | boolean;
32
52
  } | null>) | undefined;
33
53
  type: "note";
@@ -41,7 +61,7 @@ export declare const UpdateNoteActivityPayloadSchema: import("arktype/internal/m
41
61
  } | undefined;
42
62
  metadata?: ((In: {
43
63
  [x: string]: string | number | boolean;
44
- } | Map<string, string | number | boolean> | null | undefined) => import("arktype/internal/attributes.ts").Out<{
64
+ } | Map<string, string | number | boolean> | null | undefined) => import("arktype").Out<{
45
65
  [x: string]: string | number | boolean;
46
66
  } | null>) | undefined;
47
67
  type: "note";
@@ -1 +1 @@
1
- {"version":3,"file":"note.d.ts","sourceRoot":"","sources":["../../../../../src/activity/schema/types/note.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;MAGpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,yBAAyB,CAAC,QAAQ,CAAC;AAE5E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;MAG1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GACnC,OAAO,+BAA+B,CAAC,QAAQ,CAAC;AAElD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;MAG1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GACnC,OAAO,+BAA+B,CAAC,QAAQ,CAAC"}
1
+ {"version":3,"file":"note.d.ts","sourceRoot":"","sources":["../../../../../src/activity/schema/types/note.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;MAAiC,CAAC;AACjE,MAAM,MAAM,sBAAsB,GAAG,OAAO,kBAAkB,CAAC,OAAO,CAAC;AACvE,MAAM,MAAM,YAAY,GAAG,OAAO,kBAAkB,CAAC,QAAQ,CAAC;AAE9D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;MAAwC,CAAC;AAC/E,MAAM,MAAM,mBAAmB,GAAG,OAAO,yBAAyB,CAAC,QAAQ,CAAC;AAE5E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;MAG1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GACnC,OAAO,+BAA+B,CAAC,QAAQ,CAAC;AAElD,eAAO,MAAM,+BAA+B;;;;;;;;;;;;MAG1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GACnC,OAAO,+BAA+B,CAAC,QAAQ,CAAC"}