better-supabase 0.45.0 → 0.46.0

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 (471) hide show
  1. package/dist/{access-sql-BHat-brX.js → access-sql-8In-gFRf.js} +15 -2
  2. package/dist/{adapter-C0C4jIwI.js → adapter-t7V4k_rU.js} +10 -7
  3. package/dist/{agents-DxhGxwDS.d.ts → agents-D81UAnah.d.ts} +1 -1
  4. package/dist/{ai-chat-LHWztFya.d.ts → ai-chat-BBJvSano.d.ts} +1 -1
  5. package/dist/{ai-schedules-BP0PBKhY.d.ts → ai-schedules-D9mYwQdO.d.ts} +5 -2
  6. package/dist/ai-sdk/agents/index.d.ts +6 -6
  7. package/dist/ai-sdk/batches/index.d.ts +1 -1
  8. package/dist/ai-sdk/chat/index.d.ts +2 -2
  9. package/dist/ai-sdk/embeddings/index.d.ts +2 -2
  10. package/dist/ai-sdk/index.d.ts +2 -2
  11. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  12. package/dist/ai-sdk/memory/index.d.ts +2 -2
  13. package/dist/ai-sdk/memory/index.js +1 -1
  14. package/dist/ai-sdk/workflow/index.d.ts +3 -3
  15. package/dist/{api-CgO8Gin7.d.ts → api-Bxhw2FD2.d.ts} +4 -4
  16. package/dist/{api-DXCaMM2S.js → api-DzqXnR6X.js} +1 -1
  17. package/dist/{api-keys-DINjcAaY.d.ts → api-keys-ClEIzcc3.d.ts} +1 -1
  18. package/dist/{app-tables-Dg9lERHb.d.ts → app-tables-HqT8E90s.d.ts} +1 -1
  19. package/dist/{approvals-CoBe9E2b.d.ts → approvals-lmHzZSgF.d.ts} +1 -1
  20. package/dist/{assistant-DMaZZFps.d.ts → assistant-ewdCgSQn.d.ts} +2 -2
  21. package/dist/astro/index.d.ts +5 -5
  22. package/dist/astro/index.js +4 -4
  23. package/dist/{authorization-CcWVJSsN.d.ts → authorization-CFs44tM2.d.ts} +145 -19
  24. package/dist/{authorization-hooks-u2Z18CAM.d.ts → authorization-hooks-yUgoV4Q7.d.ts} +1 -1
  25. package/dist/better-result/index.d.ts +2 -2
  26. package/dist/{bind-BieIoT6r.d.ts → bind-CUxWEh27.d.ts} +4 -4
  27. package/dist/{block-env-YzSHv579.d.ts → block-env-DddTzDut.d.ts} +4 -4
  28. package/dist/{block-subjects-CTIsFATg.js → block-subjects-y1RNnlLz.js} +1 -1
  29. package/dist/{block-tables-D-UjSTXa.d.ts → block-tables-BNwRNU_D.d.ts} +1 -1
  30. package/dist/blocks/access-requests/index.d.ts +2 -2
  31. package/dist/blocks/activities/index.d.ts +3 -3
  32. package/dist/blocks/agents/index.d.ts +3 -3
  33. package/dist/blocks/ai-cache/index.d.ts +1 -1
  34. package/dist/blocks/ai-chat/index.d.ts +6 -6
  35. package/dist/blocks/ai-files/index.d.ts +1 -1
  36. package/dist/blocks/ai-keys/index.d.ts +3 -3
  37. package/dist/blocks/ai-schedules/index.d.ts +2 -2
  38. package/dist/blocks/announcements/index.d.ts +5 -5
  39. package/dist/blocks/api-keys/index.d.ts +2 -2
  40. package/dist/blocks/approvals/index.d.ts +3 -3
  41. package/dist/blocks/assets/index.d.ts +2 -2
  42. package/dist/blocks/assignment/index.d.ts +3 -3
  43. package/dist/blocks/attachments/index.d.ts +46 -4
  44. package/dist/blocks/attachments/index.js +55 -3
  45. package/dist/blocks/audit/index.d.ts +7 -7
  46. package/dist/blocks/audit/index.js +1 -1
  47. package/dist/blocks/automations/index.d.ts +18 -16
  48. package/dist/blocks/billable-time/index.d.ts +2 -2
  49. package/dist/blocks/billing/index.d.ts +5 -5
  50. package/dist/blocks/bookings/index.d.ts +3 -3
  51. package/dist/blocks/bulk/index.d.ts +2 -2
  52. package/dist/blocks/calendar/index.d.ts +3 -3
  53. package/dist/blocks/catalog/index.d.ts +2 -2
  54. package/dist/blocks/channels/index.d.ts +3 -3
  55. package/dist/blocks/collections/index.d.ts +3 -3
  56. package/dist/blocks/comments/index.d.ts +5 -5
  57. package/dist/blocks/compliance/index.d.ts +11 -11
  58. package/dist/blocks/connectors/index.d.ts +3 -3
  59. package/dist/blocks/contacts/index.d.ts +4 -4
  60. package/dist/blocks/content/index.d.ts +2 -2
  61. package/dist/blocks/contracts/index.d.ts +2 -2
  62. package/dist/blocks/courses/index.d.ts +2 -2
  63. package/dist/blocks/created-by/index.d.ts +1 -1
  64. package/dist/blocks/custom-fields/index.d.ts +2 -2
  65. package/dist/blocks/data-lifecycle/index.d.ts +25 -8
  66. package/dist/blocks/data-lifecycle/index.js +16 -2
  67. package/dist/blocks/deals/index.d.ts +3 -3
  68. package/dist/blocks/dispatch/index.d.ts +2 -2
  69. package/dist/blocks/documents/index.d.ts +2 -2
  70. package/dist/blocks/domains/index.d.ts +2 -2
  71. package/dist/blocks/donations/index.d.ts +2 -2
  72. package/dist/blocks/drive/index.d.ts +221 -8
  73. package/dist/blocks/drive/index.js +269 -19
  74. package/dist/blocks/employees/index.d.ts +4 -4
  75. package/dist/blocks/enrichment/index.d.ts +3 -3
  76. package/dist/blocks/enrollments/index.d.ts +2 -2
  77. package/dist/blocks/entitlements/index.d.ts +3 -3
  78. package/dist/blocks/expenses/index.d.ts +2 -2
  79. package/dist/blocks/field-history/index.d.ts +3 -3
  80. package/dist/blocks/flags/index.d.ts +2 -2
  81. package/dist/blocks/forecasts/index.d.ts +3 -3
  82. package/dist/blocks/forms/index.d.ts +3 -3
  83. package/dist/blocks/goals/index.d.ts +1 -1
  84. package/dist/blocks/guests/index.d.ts +2 -2
  85. package/dist/blocks/hiring/index.d.ts +3 -3
  86. package/dist/blocks/identities/index.d.ts +2 -2
  87. package/dist/blocks/imports/index.d.ts +2 -2
  88. package/dist/blocks/inbox/index.d.ts +6 -6
  89. package/dist/blocks/incidents/index.d.ts +2 -2
  90. package/dist/blocks/index.d.ts +155 -5
  91. package/dist/blocks/index.js +19 -1
  92. package/dist/blocks/inventory/index.d.ts +2 -2
  93. package/dist/blocks/invoices/index.d.ts +4 -3
  94. package/dist/blocks/invoices/index.js +3 -2
  95. package/dist/blocks/knowledge/index.d.ts +3 -3
  96. package/dist/blocks/knowledge/index.js +1 -1
  97. package/dist/blocks/lead-scoring/index.d.ts +1 -1
  98. package/dist/blocks/leases/index.d.ts +2 -2
  99. package/dist/blocks/leave/index.d.ts +2 -2
  100. package/dist/blocks/ledger/index.d.ts +2 -2
  101. package/dist/blocks/mail-sync/index.d.ts +3 -3
  102. package/dist/blocks/memberships/index.d.ts +1 -1
  103. package/dist/blocks/memory/index.d.ts +3 -3
  104. package/dist/blocks/memory/index.js +1 -1
  105. package/dist/blocks/messaging/index.d.ts +7 -7
  106. package/dist/blocks/metrics/index.d.ts +2 -2
  107. package/dist/blocks/mfa/index.d.ts +2 -2
  108. package/dist/blocks/moderation/index.d.ts +2 -2
  109. package/dist/blocks/notifications/index.d.ts +13 -9
  110. package/dist/blocks/notifications/index.js +2 -0
  111. package/dist/blocks/numbering/index.d.ts +2 -2
  112. package/dist/blocks/oauth-server/index.d.ts +2 -2
  113. package/dist/blocks/onboarding/index.d.ts +2 -2
  114. package/dist/blocks/orders/index.d.ts +3 -3
  115. package/dist/blocks/organizations/index.d.ts +4 -4
  116. package/dist/blocks/outbox/index.d.ts +2 -2
  117. package/dist/blocks/passes/index.d.ts +2 -2
  118. package/dist/blocks/permissions/index.d.ts +5 -4
  119. package/dist/blocks/permissions/index.js +3 -2
  120. package/dist/blocks/pipelines/index.d.ts +3 -3
  121. package/dist/blocks/posts/index.d.ts +2 -2
  122. package/dist/blocks/profiles/index.d.ts +1 -1
  123. package/dist/blocks/promotions/index.d.ts +2 -2
  124. package/dist/blocks/push/index.d.ts +4 -4
  125. package/dist/blocks/qualifications/index.d.ts +256 -0
  126. package/dist/blocks/qualifications/index.js +303 -0
  127. package/dist/blocks/queue/index.d.ts +8 -103
  128. package/dist/blocks/queue/index.js +9 -3
  129. package/dist/blocks/quotes/index.d.ts +3 -3
  130. package/dist/blocks/rank/index.d.ts +1 -1
  131. package/dist/blocks/reactions/index.d.ts +5 -5
  132. package/dist/blocks/relations/index.d.ts +2 -2
  133. package/dist/blocks/reminders/index.d.ts +3 -3
  134. package/dist/blocks/reviews/index.d.ts +2 -2
  135. package/dist/blocks/risks/index.d.ts +303 -0
  136. package/dist/blocks/risks/index.js +376 -0
  137. package/dist/blocks/saved-views/index.d.ts +6 -6
  138. package/dist/blocks/scores/index.d.ts +2 -2
  139. package/dist/blocks/search/index.d.ts +4 -4
  140. package/dist/blocks/security-events/index.d.ts +3 -3
  141. package/dist/blocks/segments/index.d.ts +4 -4
  142. package/dist/blocks/sequences/index.d.ts +2 -2
  143. package/dist/blocks/service-accounts/index.d.ts +3 -3
  144. package/dist/blocks/sessions/index.d.ts +2 -2
  145. package/dist/blocks/settings/index.d.ts +3 -3
  146. package/dist/blocks/share-links/index.d.ts +29 -4
  147. package/dist/blocks/share-links/index.js +37 -4
  148. package/dist/blocks/shifts/index.d.ts +334 -0
  149. package/dist/blocks/shifts/index.js +451 -0
  150. package/dist/blocks/shipments/index.d.ts +3 -3
  151. package/dist/blocks/signatures/index.d.ts +2 -2
  152. package/dist/blocks/signing-keys/index.d.ts +2 -2
  153. package/dist/blocks/sla/index.d.ts +3 -3
  154. package/dist/blocks/sso/index.d.ts +3 -3
  155. package/dist/blocks/state-machine/index.d.ts +2 -2
  156. package/dist/blocks/subjects/index.d.ts +13 -5
  157. package/dist/blocks/subjects/index.js +114 -5
  158. package/dist/blocks/tags/index.d.ts +3 -3
  159. package/dist/blocks/tasks/index.d.ts +5 -5
  160. package/dist/blocks/teams/index.d.ts +2 -2
  161. package/dist/blocks/templates/index.d.ts +5 -5
  162. package/dist/blocks/time-tracking/index.d.ts +3 -3
  163. package/dist/blocks/timeline/index.d.ts +6 -6
  164. package/dist/blocks/timeline/index.js +1 -1
  165. package/dist/blocks/trash/index.d.ts +2 -2
  166. package/dist/blocks/undo/index.d.ts +2 -2
  167. package/dist/blocks/updated-at/index.d.ts +1 -1
  168. package/dist/blocks/usage/index.d.ts +2 -2
  169. package/dist/blocks/vercel-marketplace/index.d.ts +2 -2
  170. package/dist/blocks/versions/index.d.ts +2 -2
  171. package/dist/blocks/waitlist/index.d.ts +2 -2
  172. package/dist/blocks/webhooks/index.d.ts +6 -6
  173. package/dist/blocks/webhooks/index.js +2 -1
  174. package/dist/blocks/workflow-editor/index.d.ts +8 -8
  175. package/dist/blocks/workflow-editor/index.js +1 -1
  176. package/dist/blocks/workflows/index.d.ts +6 -6
  177. package/dist/{cache-tags-DrywUP3I.d.ts → cache-tags-DDWP8yDs.d.ts} +2 -2
  178. package/dist/{channel-B_kufDZy.d.ts → channel-DW9iIWgu.d.ts} +3 -1
  179. package/dist/chat-sdk/index.d.ts +2 -2
  180. package/dist/claims/index.d.ts +5 -5
  181. package/dist/claims/index.js +1 -1
  182. package/dist/cli/{add-DcLNy2oN.js → add-B6TTIKos.js} +23 -5
  183. package/dist/cli/{add-B5Gq34wX.js → add-CYH9OE6d.js} +13 -13
  184. package/dist/cli/add-DsgNHrEH.js +1 -0
  185. package/dist/cli/{app-table-files-CcGWy0qX.js → app-table-files-Br1VQgjE.js} +3 -3
  186. package/dist/cli/{app-tables-RbPMD2M3.js → app-tables-FRO1l5rT.js} +2 -2
  187. package/dist/cli/{backfill-BJterqcQ.js → backfill-BgGBBidH.js} +4 -4
  188. package/dist/cli/bin.js +1 -1
  189. package/dist/cli/{blocks-DsAwI_4v.js → blocks-CX_172Ja.js} +1 -1
  190. package/dist/cli/{blocks-BBALfFv-.js → blocks-DZrlz-13.js} +2 -2
  191. package/dist/cli/{cache-DRb1xVPh.js → cache-BgiLj67N.js} +1 -1
  192. package/dist/cli/{codemod-Cpd4DnrL.js → codemod-C86T5p1T.js} +97 -13
  193. package/dist/cli/{command-67WobzTC.js → command-DtQ7P9XP.js} +6 -0
  194. package/dist/cli/{completion-C3nMZgUZ.js → completion-9tK4vX1l.js} +2 -2
  195. package/dist/cli/{completion-Dm0S3ub0.js → completion-DUnYq3GC.js} +2 -2
  196. package/dist/cli/{completion-DSrus7H1.js → completion-djG61QR0.js} +1 -1
  197. package/dist/cli/{config-CGVmcEZa.js → config-05wlBDsJ.js} +1 -1
  198. package/dist/cli/{config-Dy-BAGel.js → config-Cb4swJ2X.js} +32 -10
  199. package/dist/cli/{config-cbK-wiNs.js → config-CwcsseeT.js} +1 -1
  200. package/dist/cli/{content-mapper-D0riSMnP.js → content-mapper-DIO-tycM.js} +2 -2
  201. package/dist/cli/{db-BCVXzXDA.js → db-BND9MSu1.js} +3 -3
  202. package/dist/cli/{doctor-CHmX2gau.js → doctor-BqS2dAI-.js} +98 -21
  203. package/dist/cli/{env-CCT-dMFm.js → env-2zOK0skq.js} +1 -1
  204. package/dist/cli/env-NHlaYmXG.js +1 -0
  205. package/dist/cli/{gen-DB0svRc8.js → gen-CygGjwk4.js} +16 -16
  206. package/dist/cli/index.d.ts +1 -1
  207. package/dist/cli/index.js +8 -8
  208. package/dist/cli/{init-B4fQNe4C.js → init-BMDuL671.js} +10 -10
  209. package/dist/cli/{keys-Dj5sJNj7.js → keys-BUl10CEQ.js} +1 -1
  210. package/dist/cli/{live-Bft5EE70.js → live-BRhu6mk8.js} +2 -2
  211. package/dist/cli/{mcp-BKcS-LZw.js → mcp-DzfSUgqc.js} +3 -3
  212. package/dist/cli/{metadata-CgKNmMsc.js → metadata-Ao_uwhbL.js} +3 -3
  213. package/dist/cli/{migrate-ehxT23Gg.js → migrate-BySeyvYY.js} +2 -2
  214. package/dist/cli/{migration-safety-D2gG-dDs.js → migration-safety-CtSYqXjZ.js} +2 -2
  215. package/dist/cli/{migrations-CQ1Sgz_X.js → migrations-Cnf7TlYZ.js} +2 -2
  216. package/dist/cli/{module-migration-BOPJUkIX.js → module-migration-CKKOcrG0.js} +2 -2
  217. package/dist/cli/{moved-CY0yDtAr.js → moved-QZ-btdFz.js} +1 -1
  218. package/dist/cli/{parse-yAC-NFMq.js → parse-Bd_CRjbn.js} +1 -1
  219. package/dist/cli/{powersync-BTari5WF.js → powersync-BeeW0i26.js} +168 -67
  220. package/dist/cli/powersync-miOelRmt.js +1 -0
  221. package/dist/cli/{print-BMJnlJ8k.js → print-Sdb6L0v4.js} +2 -2
  222. package/dist/cli/{providers-BNZ-OqMI.js → providers-BlkYmOf-.js} +1 -1
  223. package/dist/cli/{prune-workflows-BG55npqs.js → prune-workflows-iRTaOxbs.js} +4 -4
  224. package/dist/cli/{remove-BIqGDE0A.js → remove-DvzSG08w.js} +6 -6
  225. package/dist/cli/{render-BIC4Wctz.js → render-svtBPq7R.js} +118 -18
  226. package/dist/cli/{run-C_slJx8m.js → run-BHhVGtd_.js} +46 -45
  227. package/dist/cli/{run-BJ4_rmHy.js → run-CnafzCVh.js} +14 -14
  228. package/dist/cli/{run-DX4X7xqV.js → run-WD6LyrAZ.js} +2 -2
  229. package/dist/cli/{seed-0r_0aD8_.js → seed-Bc_q0nFf.js} +12 -4
  230. package/dist/cli/seed-DT_k-CGR.js +1 -0
  231. package/dist/cli/{shared-DhpBDjRa.js → shared-By7_hqFX.js} +1 -1
  232. package/dist/cli/{skills-B5p6bDwe.js → skills-CvEA4xdj.js} +1 -1
  233. package/dist/cli/{snapshot-CMJksw-t.js → snapshot-T8fVRXqA.js} +3 -3
  234. package/dist/cli/{source-args-CgCX8KUJ.js → source-args-BiySywDB.js} +1 -1
  235. package/dist/cli/{source-CJilfcq-.js → source-xL7qYX0r.js} +1 -1
  236. package/dist/cli/{spec-CnjHA0br.js → spec-BH7BDCnA.js} +1 -1
  237. package/dist/cli/{spec-Br9cWMbU.js → spec-CU_OO1Gq.js} +3 -3
  238. package/dist/cli/{sql-layout-BCiEl_G5.js → sql-layout-C_-LNpAw.js} +2 -2
  239. package/dist/cli/{stack-CQXLe5j0.js → stack-DM3keIfh.js} +1 -1
  240. package/dist/cli/{sync-Bulv1zyy.js → sync-Bl4Kf4_T.js} +4 -4
  241. package/dist/cli/{table-BAR0cLmU.js → table-DocogEpr.js} +1 -1
  242. package/dist/cli/{upgrade-DTBvTAAV.js → upgrade-BLi83wT-.js} +5 -5
  243. package/dist/cli/{upgrade-C8fiTE3r.js → upgrade-kce809Am.js} +3 -3
  244. package/dist/cli/{version-hhuwVLKj.js → version-D8HDt2fH.js} +1 -1
  245. package/dist/client/index.d.ts +7 -6
  246. package/dist/client/index.js +2 -1
  247. package/dist/client/native/index.d.ts +6 -5
  248. package/dist/client/native/index.js +2 -1
  249. package/dist/{cloud-event-LTUGgt6D.d.ts → cloud-event-Dxy5EZVG.d.ts} +1 -1
  250. package/dist/commerce/index.d.ts +1 -1
  251. package/dist/{composite-BCUNxZCd.d.ts → composite-DNDFvcQc.d.ts} +6 -6
  252. package/dist/{composite-C3lLpMys.js → composite-c7POXFs3.js} +2 -2
  253. package/dist/config/index.d.ts +4 -4
  254. package/dist/config/index.js +4 -4
  255. package/dist/{config-HOXkrND2.js → config--zZjnkYA.js} +1 -1
  256. package/dist/{config-DA_R9O_y.js → config-CAbv8kRz.js} +21 -8
  257. package/dist/{connectors-DTxDzUzD.d.ts → connectors-BQtx-Llh.d.ts} +1 -1
  258. package/dist/{context-BJK9_ppk.d.ts → context-Lhw7PgdA.d.ts} +52 -8
  259. package/dist/contract/index.d.ts +8 -8
  260. package/dist/{controller-TplPQG5m.d.ts → controller-CouRuczb.d.ts} +1 -1
  261. package/dist/{controller-y1kSMuCU.js → controller-DxzV9X72.js} +1 -1
  262. package/dist/{conversion-DwDBNeWT.d.ts → conversion-G2ODS617.d.ts} +1 -1
  263. package/dist/create/index.d.ts +3 -3
  264. package/dist/create/index.js +3 -3
  265. package/dist/create/lite/index.d.ts +3 -3
  266. package/dist/create/lite/index.js +3 -3
  267. package/dist/credentials/index.d.ts +3 -3
  268. package/dist/{data-hooks-BToeAcQ_.js → data-hooks-DDEPFoWv.js} +44 -3
  269. package/dist/{define-DXQHQ2Qy.d.ts → db-blocks-Dgu-HpFb.d.ts} +296 -296
  270. package/dist/{define-block-tFQZ8936.d.ts → define-block-eiBbZ3mM.d.ts} +357 -357
  271. package/dist/{delegation-C2rLpkHO.js → delegation-C0EQp3ss.js} +1 -1
  272. package/dist/edge/index.d.ts +8 -8
  273. package/dist/edge/index.js +6 -6
  274. package/dist/elysia/index.d.ts +1 -1
  275. package/dist/elysia/index.js +1 -1
  276. package/dist/{email-BRm6wMWQ.d.ts → email-_X1-FD9h.d.ts} +1 -1
  277. package/dist/{embeddings-LhxY3bUD.d.ts → embeddings-DJs1UeQt.d.ts} +1 -1
  278. package/dist/{ended-CpyW7_0h.d.ts → ended-XY1q20JM.d.ts} +1 -1
  279. package/dist/{entitlements-SqfT4gk_.d.ts → entitlements-D_vas3Yl.d.ts} +2 -2
  280. package/dist/{envelope-CapD-JtH.js → envelope-CSb4c7xn.js} +1 -1
  281. package/dist/eve/index.d.ts +5 -5
  282. package/dist/eve/index.js +1 -1
  283. package/dist/{eve-DmbLji3M.d.ts → eve-Ck586Yfh.d.ts} +2 -2
  284. package/dist/events/index.d.ts +3 -3
  285. package/dist/{events-BrgD2StJ.d.ts → events-sK2YdMhE.d.ts} +37 -2
  286. package/dist/{executor-DlAtlYxY.d.ts → executor-DAQLygMX.d.ts} +2 -2
  287. package/dist/{executor-kfUaLlQr.d.ts → executor-h4VT8TNz.d.ts} +1 -1
  288. package/dist/expo/index.d.ts +5 -5
  289. package/dist/expo/index.js +3 -3
  290. package/dist/{field-errors-DyWpuH1q.d.ts → field-errors-BFLehpue.d.ts} +22 -10
  291. package/dist/flags-sdk/index.d.ts +1 -1
  292. package/dist/{framework-DydnLrMk.js → framework-DvtET86P.js} +1 -1
  293. package/dist/{framework-C8HFM1bX.d.ts → framework-v4jPUZJ-.d.ts} +7 -7
  294. package/dist/{gateway-DQirTFOg.d.ts → gateway-BEDpSlLD.d.ts} +1 -1
  295. package/dist/h3/index.d.ts +1 -1
  296. package/dist/h3/index.js +1 -1
  297. package/dist/h3/v1/index.d.ts +1 -1
  298. package/dist/h3/v1/index.js +1 -1
  299. package/dist/hono/index.d.ts +10 -10
  300. package/dist/hono/index.js +6 -6
  301. package/dist/{index-0erPlzHd.d.ts → index-BRFHDjCG.d.ts} +19 -5
  302. package/dist/{index-vGZZjCW7.d.ts → index-BoVZxiin.d.ts} +12 -12
  303. package/dist/{index-Brzh6XAW.d.ts → index-CJfDiWQf.d.ts} +4 -2
  304. package/dist/{index-BjN_IQQd.d.ts → index-Cc2q2eaq.d.ts} +18 -5
  305. package/dist/{index-DCyNdhEC.d.ts → index-D2gezcOV.d.ts} +3 -3
  306. package/dist/{index-CwDdMCdH.d.ts → index-D430cWV7.d.ts} +1 -1
  307. package/dist/{index-DcmDWojr.d.ts → index-DYSGzEkY.d.ts} +1 -1
  308. package/dist/{index-DkmorC1b.d.ts → index-eZ8oW-DV.d.ts} +4 -4
  309. package/dist/{index-Ddjcn6i7.d.ts → index-nfYh7R5C.d.ts} +5 -5
  310. package/dist/{index-x2YRPbXr.d.ts → index-wRn2y3XS.d.ts} +5 -5
  311. package/dist/index.d.ts +5 -4
  312. package/dist/index.js +3 -2
  313. package/dist/{instances-DGtu3S0m.js → instances-BUhbreNT.js} +1554 -225
  314. package/dist/{kit-C1GVbhtg.d.ts → kit-CmO46iau.d.ts} +3 -3
  315. package/dist/{knowledge-CCOSNGJp.d.ts → knowledge-BnKrvPT6.d.ts} +22 -4
  316. package/dist/{knowledge-CJnZOaix.js → knowledge-BxFkHBTc.js} +14 -3
  317. package/dist/list/index.d.ts +1 -1
  318. package/dist/{list-query-CF-5EUVX.d.ts → list-query-CnD6uNzs.d.ts} +1 -1
  319. package/dist/mapper/bin.js +7 -7
  320. package/dist/mcp/index.d.ts +3 -3
  321. package/dist/mcp/index.js +4 -4
  322. package/dist/mcp/sdk/index.d.ts +18 -7
  323. package/dist/mcp/sdk/index.js +21 -12
  324. package/dist/nestjs/index.d.ts +2 -2
  325. package/dist/nestjs/index.js +1 -1
  326. package/dist/next/client/index.d.ts +1 -1
  327. package/dist/next/index.d.ts +22 -22
  328. package/dist/next/index.js +7 -7
  329. package/dist/node/index.d.ts +2 -2
  330. package/dist/node/index.js +1 -1
  331. package/dist/{operations-CkgwsViz.d.ts → operations-kNq7cGI7.d.ts} +1 -1
  332. package/dist/{options-CJR59q8s.js → options-B1efbeOv.js} +5 -1
  333. package/dist/options-B3dQnXgp.js +6 -0
  334. package/dist/{options-ByxOMSXu.js → options-BEv5xfPg.js} +3 -1
  335. package/dist/options-BZ5TzeFN.js +12 -0
  336. package/dist/options-CKMLVUel.js +8 -0
  337. package/dist/options-CgIKw9s6.js +9 -0
  338. package/dist/options-D1-2o7kO.d.ts +43 -0
  339. package/dist/{options-CjocPkX1.js → options-EdzV163Y.js} +3 -0
  340. package/dist/orpc/index.d.ts +26 -15
  341. package/dist/orpc/index.js +29 -9
  342. package/dist/otel/index.d.ts +2 -2
  343. package/dist/otel/index.js +5 -5
  344. package/dist/{outbox-DL2737I0.d.ts → outbox-CcISFwgE.d.ts} +2 -2
  345. package/dist/{permissions-vbtGrV26.d.ts → permissions-XrrAYkXm.d.ts} +1 -1
  346. package/dist/{permissions-controller-B4uI5IPH.js → permissions-controller-DYm6sF8k.js} +6 -2
  347. package/dist/{pool-DfDolmmm.d.ts → pool-CQuNr7Nq.d.ts} +1 -1
  348. package/dist/{ports-ClyPs0q6.d.ts → ports-CvOsUmuD.d.ts} +1 -1
  349. package/dist/postgres/index.d.ts +1 -1
  350. package/dist/powersync/index.d.ts +55 -13
  351. package/dist/powersync/index.js +85 -11
  352. package/dist/preset/index.d.ts +3 -3
  353. package/dist/preset/index.js +3 -3
  354. package/dist/{preset-His18bto.js → preset-DFZn_TLi.js} +2 -2
  355. package/dist/{project-D81NwLP6.js → project-BwmNYaZt.js} +5 -5
  356. package/dist/{provider-DxJWo8yD.d.ts → provider-CgYoyX_d.d.ts} +1 -1
  357. package/dist/{push-token-DMOeO8cU.d.ts → push-token-taE-3JNT.d.ts} +1 -1
  358. package/dist/query/index.d.ts +2 -2
  359. package/dist/query/index.js +30 -2
  360. package/dist/rate-limit/index.d.ts +2 -0
  361. package/dist/rate-limit/index.js +1 -0
  362. package/dist/rate-limit-BJyp7iAx.d.ts +109 -0
  363. package/dist/rate-limit-DLZWqcIS.js +94 -0
  364. package/dist/rate-limit-DyQbVEBE.js +123 -0
  365. package/dist/rate-limit-lGysIP9Z.d.ts +79 -0
  366. package/dist/react/index.d.ts +8 -8
  367. package/dist/react/index.js +2 -2
  368. package/dist/react/native/index.d.ts +3 -3
  369. package/dist/react/native/index.js +2 -1
  370. package/dist/react/server.d.ts +8 -8
  371. package/dist/react/server.js +2 -2
  372. package/dist/react/session.d.ts +2 -2
  373. package/dist/{react-DkGGh9FE.js → react-AC0iYStn.js} +13 -6
  374. package/dist/react-router/index.d.ts +5 -5
  375. package/dist/react-router/index.js +4 -4
  376. package/dist/realtime/index.d.ts +4 -4
  377. package/dist/realtime/index.js +1 -1
  378. package/dist/{record-form-BRtDkhLZ.d.ts → record-form-BAIG-cdw.d.ts} +1 -1
  379. package/dist/{record-type-oQxekQTX.js → record-type-BID6K9Vk.js} +1 -1
  380. package/dist/records/index.d.ts +8 -8
  381. package/dist/records/index.js +4 -4
  382. package/dist/{refusal-DjCQCcCj.d.ts → refusal-D19i-uE3.d.ts} +2 -2
  383. package/dist/{refusal-B9w5Bapa.js → refusal-lgW07wlX.js} +1 -1
  384. package/dist/renames-BPU-FSIn.d.ts +36 -0
  385. package/dist/renames-BoN2IHI7.js +161 -0
  386. package/dist/{resolve-CKJMUYRc.d.ts → resolve-C_VNGFjz.d.ts} +1 -1
  387. package/dist/{resource-CrmhNagD.js → resource--iTRgH4N.js} +1 -1
  388. package/dist/{resource-execute-DZeWkyIU.d.ts → resource-execute-CoadG2g7.d.ts} +1 -1
  389. package/dist/{resource-types-D3gmBOeY.d.ts → resource-types-e7vzPJ7t.d.ts} +2 -2
  390. package/dist/{resources-CSjwmcFs.d.ts → resources-DSqe-GbC.d.ts} +1 -1
  391. package/dist/{resources-B2i_nIgJ.js → resources-DqEg3HBk.js} +1 -1
  392. package/dist/{respond-DxS_8bzC.d.ts → respond-C8rBdIBZ.d.ts} +1 -1
  393. package/dist/server/index.d.ts +22 -22
  394. package/dist/server/index.js +7 -7
  395. package/dist/{server-types-DCC-dWKF.d.ts → server-types-Djx3Eb2G.d.ts} +9 -9
  396. package/dist/{session-Ca4clB30.d.ts → session-BgxLbDYu.d.ts} +5 -5
  397. package/dist/{session-status-CYtwZBi5.d.ts → session-status-C4g0QoB_.d.ts} +2 -2
  398. package/dist/{sign-in-BUiy6unD.js → sign-in-Cl7vhgRn.js} +1 -1
  399. package/dist/solid/index.d.ts +11 -11
  400. package/dist/solid/index.js +3 -3
  401. package/dist/solid-start/index.d.ts +5 -5
  402. package/dist/solid-start/index.js +4 -4
  403. package/dist/spec/index.d.ts +2 -2
  404. package/dist/spec/index.js +2 -2
  405. package/dist/{spec-pins-Dd1Qj3Sj.js → spec-pins-C-1kGh8u.js} +1 -1
  406. package/dist/{spec-pins-CRJEZYBW.d.ts → spec-pins-DGbByPMT.d.ts} +1 -1
  407. package/dist/sql/index.d.ts +6 -6
  408. package/dist/sql/index.js +5 -5
  409. package/dist/{sql-D3ihagTr.js → sql-TpANPmq7.js} +8961 -2083
  410. package/dist/sqlite/index.d.ts +1 -1
  411. package/dist/ssr/index.d.ts +4 -4
  412. package/dist/storage/index.js +1 -1
  413. package/dist/{subject-readers-nnYmRpv8.d.ts → subject-readers-yxQ3r1qw.d.ts} +1 -1
  414. package/dist/{subjects-BGwLJ3IB.d.ts → subjects-BpUQpZhk.d.ts} +30 -2
  415. package/dist/subjects-D3BE9Q8J.d.ts +173 -0
  416. package/dist/{support-BzXcdRLG.d.ts → support-B1n33r32.d.ts} +4 -4
  417. package/dist/{support-view-DNZh8-wA.d.ts → support-view-CkN2Wr1r.d.ts} +1 -1
  418. package/dist/svelte/index.d.ts +10 -10
  419. package/dist/svelte/index.js +3 -3
  420. package/dist/sveltekit/index.d.ts +6 -6
  421. package/dist/sveltekit/index.js +4 -4
  422. package/dist/{tags-CpFIpRw8.d.ts → tags-BCjWVMKO.d.ts} +1 -1
  423. package/dist/tanstack-db/index.d.ts +1 -1
  424. package/dist/tanstack-start/index.d.ts +5 -5
  425. package/dist/tanstack-start/index.js +4 -4
  426. package/dist/{tenant-DyZZDYmm.d.ts → tenant-CBWFqFy0.d.ts} +1 -1
  427. package/dist/testing/index.d.ts +35 -31
  428. package/dist/testing/index.js +5 -4
  429. package/dist/{timeline-Bs-FGMIJ.js → timeline-B3pBRGv9.js} +1 -1
  430. package/dist/{timeline-Df8GMPkZ.d.ts → timeline-Cy7XP2pq.d.ts} +3 -3
  431. package/dist/{topic-BtoL1fKf.js → topic-BC3p90lS.js} +1 -1
  432. package/dist/{topic-B4fSui6P.d.ts → topic-BWJAJkF3.d.ts} +3 -3
  433. package/dist/{types-mYxPduXR.d.ts → types-B5qUEVWI.d.ts} +22 -16
  434. package/dist/{types-DJfGy-40.d.ts → types-B_2C7bqG.d.ts} +1 -1
  435. package/dist/{types-BeXhugiI.d.ts → types-Dlir1n-q.d.ts} +2 -2
  436. package/dist/{types-D6GlpLD9.d.ts → types-sBLcw65Z.d.ts} +2 -2
  437. package/dist/{vault-nYFV6WUD.d.ts → vault-BVLUu_Ph.d.ts} +1 -1
  438. package/dist/vercel-connect/index.d.ts +1 -1
  439. package/dist/vercel-sandbox/index.d.ts +1 -1
  440. package/dist/{verify-DxTccsBh.d.ts → verify-DlKjgAEj.d.ts} +1 -1
  441. package/dist/{view-DwXy8N6Y.d.ts → view-GSwP0y5o.d.ts} +1 -1
  442. package/dist/vue/index.d.ts +11 -11
  443. package/dist/vue/index.js +3 -3
  444. package/dist/{watch-topic-DShzD8ul.d.ts → watch-topic-BfaaK5SW.d.ts} +1 -1
  445. package/dist/{rate-limit-BJ4EMdAy.js → webhook-inbox-C94C_zIV.js} +3 -119
  446. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  447. package/dist/workflow-sdk/builder/index.js +1 -1
  448. package/dist/workflow-sdk/index.d.ts +1 -1
  449. package/dist/workflow-sdk/index.js +1 -1
  450. package/dist/workflow-sdk/world/index.d.ts +1 -1
  451. package/dist/workflow-sdk/world/index.js +1 -1
  452. package/dist/{workflow-sdk-q2jnEaAJ.js → workflow-sdk-CZa83j_U.js} +1 -1
  453. package/dist/{workflow-sdk-ClwzLwNe.d.ts → workflow-sdk-DiDsEArJ.d.ts} +2 -2
  454. package/dist/{workflow-sdk-Bps7tpOv.js → workflow-sdk-DmHaJHUL.js} +170 -115
  455. package/dist/{workflows-ZGDa9twb.d.ts → workflows-D1Ax0qSC.d.ts} +4 -4
  456. package/dist/yjs/index.d.ts +1 -1
  457. package/dist/yjs/index.js +1 -1
  458. package/package.json +17 -1
  459. package/schemas/config-v1.json +201 -2
  460. package/schemas/doctor-report-v1.json +2 -0
  461. package/skills/better-supabase/SKILL.md +2 -1
  462. package/skills/better-supabase/references/ui-recipes.md +1062 -15
  463. package/skills/better-supabase-api/SKILL.md +1 -1
  464. package/dist/cli/add-D_JV6V6k.js +0 -1
  465. package/dist/cli/env-AFfMXxWw.js +0 -1
  466. package/dist/cli/powersync-B8GWjT_L.js +0 -1
  467. package/dist/cli/seed-DX1NTTOK.js +0 -1
  468. package/dist/rate-limit-C89Yzwd9.d.ts +0 -48
  469. package/dist/rate-limit-DXJbLVg0.js +0 -48
  470. package/dist/subjects-DgP5x73R.d.ts +0 -86
  471. package/dist/{kit-CB3AfM9W.js → kit-C-uC7_aG.js} +1 -1
@@ -48,6 +48,7 @@ function resolveBlock(config = {}) {
48
48
  ...config.idType === void 0 ? {} : { idType: config.idType },
49
49
  ...config.scope === void 0 ? {} : { scope: config.scope },
50
50
  ownTablePolicies: config.ownTablePolicies ?? "block",
51
+ tenantScopeExempt: config.tenantScope?.exemptRoles ?? [],
51
52
  functions: defined(config.functions),
52
53
  permissions: defined(config.permissions),
53
54
  options: config.options ?? {},
@@ -616,7 +617,7 @@ const PRESET_CATALOG = {
616
617
  } },
617
618
  "keys": {
618
619
  "manage": "waitlist.manage",
619
- "invite": "members.invite"
620
+ "invite": "waitlist.invite"
620
621
  }
621
622
  }
622
623
  },
@@ -738,11 +739,11 @@ const PRESET_CATALOG = {
738
739
  }
739
740
  } },
740
741
  "keys": {
741
- "read": "workflow.read",
742
- "run": "workflow.run",
743
- "edit": "workflow.edit",
744
- "publish": "workflow.publish",
745
- "admin": "workflow.admin"
742
+ "read": "workflow_editor.read",
743
+ "run": "workflow_editor.run",
744
+ "edit": "workflow_editor.write",
745
+ "publish": "workflow_editor.publish",
746
+ "admin": "workflow_editor.manage"
746
747
  }
747
748
  }
748
749
  },
@@ -886,7 +887,7 @@ const PRESET_CATALOG = {
886
887
  "create": "ai_chat.create",
887
888
  "share": "ai_chat.share",
888
889
  "moderate": "ai_chat.moderate",
889
- "admin": "ai_chat.admin"
890
+ "admin": "ai_chat.manage"
890
891
  }
891
892
  }
892
893
  },
@@ -920,8 +921,8 @@ const PRESET_CATALOG = {
920
921
  }
921
922
  } },
922
923
  "keys": {
923
- "upload": "ai.create",
924
- "manage": "ai.admin"
924
+ "upload": "ai_files.upload",
925
+ "manage": "ai_files.manage"
925
926
  }
926
927
  }
927
928
  },
@@ -938,6 +939,7 @@ const PRESET_CATALOG = {
938
939
  "ai-chat",
939
940
  "ai-files",
940
941
  "queue",
942
+ "subjects",
941
943
  "teams"
942
944
  ],
943
945
  "manifest": "knowledge",
@@ -966,14 +968,16 @@ const PRESET_CATALOG = {
966
968
  "chunkCount": "chunk_count",
967
969
  "model": "embedding_model",
968
970
  "collection": "collection_id",
971
+ "subjectType": "subject_type",
972
+ "subjectId": "subject_id",
969
973
  "createdAt": "created_at",
970
974
  "updatedAt": "updated_at"
971
975
  }
972
976
  } },
973
977
  "keys": {
974
- "read": "ai.read",
975
- "write": "ai.create",
976
- "manage": "ai.admin"
978
+ "read": "knowledge.read",
979
+ "write": "knowledge.write",
980
+ "manage": "knowledge.manage"
977
981
  }
978
982
  }
979
983
  },
@@ -1028,8 +1032,8 @@ const PRESET_CATALOG = {
1028
1032
  }
1029
1033
  } },
1030
1034
  "keys": {
1031
- "read": "ai.read",
1032
- "manage": "ai.admin"
1035
+ "read": "memory.read",
1036
+ "manage": "memory.manage"
1033
1037
  }
1034
1038
  }
1035
1039
  },
@@ -1073,10 +1077,10 @@ const PRESET_CATALOG = {
1073
1077
  }
1074
1078
  } },
1075
1079
  "keys": {
1076
- "read": "ai.read",
1077
- "create": "ai.create",
1078
- "publish": "ai.share",
1079
- "moderate": "ai.moderate"
1080
+ "read": "agents.read",
1081
+ "create": "agents.write",
1082
+ "publish": "agents.publish",
1083
+ "moderate": "agents.moderate"
1080
1084
  }
1081
1085
  }
1082
1086
  },
@@ -1114,9 +1118,9 @@ const PRESET_CATALOG = {
1114
1118
  }
1115
1119
  } },
1116
1120
  "keys": {
1117
- "read": "ai.read",
1118
- "use": "ai.create",
1119
- "manage": "ai.admin"
1121
+ "read": "connectors.read",
1122
+ "use": "connectors.use",
1123
+ "manage": "connectors.manage"
1120
1124
  }
1121
1125
  }
1122
1126
  },
@@ -1159,8 +1163,8 @@ const PRESET_CATALOG = {
1159
1163
  }
1160
1164
  } },
1161
1165
  "keys": {
1162
- "create": "ai.create",
1163
- "manage": "ai.admin"
1166
+ "create": "ai_schedules.write",
1167
+ "manage": "ai_schedules.manage"
1164
1168
  }
1165
1169
  }
1166
1170
  },
@@ -1338,7 +1342,7 @@ const PRESET_CATALOG = {
1338
1342
  "keys": {
1339
1343
  "manage": "custom_fields.manage",
1340
1344
  "read": "custom_fields.read",
1341
- "sensitive": "custom_fields.sensitive.read"
1345
+ "sensitive": "custom_fields.read_sensitive"
1342
1346
  }
1343
1347
  }
1344
1348
  },
@@ -1350,7 +1354,8 @@ const PRESET_CATALOG = {
1350
1354
  "integrates": [
1351
1355
  "outbox",
1352
1356
  "versions",
1353
- "subjects"
1357
+ "subjects",
1358
+ "rate-limit"
1354
1359
  ],
1355
1360
  "manifest": "share-links",
1356
1361
  "scopes": ["tenant"],
@@ -1379,7 +1384,9 @@ const PRESET_CATALOG = {
1379
1384
  "leaf": "leaf_id",
1380
1385
  "versionId": "version_id",
1381
1386
  "createdAt": "created_at",
1382
- "lastUsedAt": "last_used_at"
1387
+ "lastUsedAt": "last_used_at",
1388
+ "passwordHash": "password_hash",
1389
+ "downloadAllowed": "download_allowed"
1383
1390
  }
1384
1391
  } },
1385
1392
  "keys": {
@@ -1448,9 +1455,10 @@ const PRESET_CATALOG = {
1448
1455
  "title": "Subjects",
1449
1456
  "category": "identity",
1450
1457
  "requires": ["permissions"],
1451
- "integrates": [],
1458
+ "integrates": ["teams", "memberships"],
1452
1459
  "manifest": "subjects",
1453
- "scopes": ["tenant"]
1460
+ "scopes": ["tenant"],
1461
+ "tenantNameClashes": ["team"]
1454
1462
  },
1455
1463
  {
1456
1464
  "name": "rank",
@@ -1500,8 +1508,8 @@ const PRESET_CATALOG = {
1500
1508
  }
1501
1509
  } },
1502
1510
  "keys": {
1503
- "read": "views.read",
1504
- "share": "views.share"
1511
+ "read": "saved_views.read",
1512
+ "share": "saved_views.share"
1505
1513
  }
1506
1514
  }
1507
1515
  },
@@ -2206,6 +2214,11 @@ const PRESET_CATALOG = {
2206
2214
  "externalId": "external_id",
2207
2215
  "externalMetadata": "external_metadata",
2208
2216
  "legalHoldUntil": "legal_hold_until",
2217
+ "lockedBy": "locked_by",
2218
+ "lockedUntil": "locked_until",
2219
+ "lockNote": "lock_note",
2220
+ "downloadBlocked": "download_blocked",
2221
+ "previewPages": "preview_pages",
2209
2222
  "createdBy": "created_by",
2210
2223
  "createdAt": "created_at",
2211
2224
  "updatedAt": "updated_at"
@@ -2233,7 +2246,8 @@ const PRESET_CATALOG = {
2233
2246
  "teams",
2234
2247
  "share-links",
2235
2248
  "tags",
2236
- "approvals"
2249
+ "approvals",
2250
+ "rate-limit"
2237
2251
  ],
2238
2252
  "manifest": "drive",
2239
2253
  "scopes": ["tenant"]
@@ -2788,9 +2802,9 @@ const PRESET_CATALOG = {
2788
2802
  }
2789
2803
  },
2790
2804
  "keys": {
2791
- "read": "parties.read",
2792
- "write": "parties.write",
2793
- "manage": "parties.manage"
2805
+ "read": "contacts.read",
2806
+ "write": "contacts.write",
2807
+ "manage": "contacts.manage"
2794
2808
  }
2795
2809
  }
2796
2810
  },
@@ -2851,9 +2865,9 @@ const PRESET_CATALOG = {
2851
2865
  }
2852
2866
  } },
2853
2867
  "keys": {
2854
- "read": "engagements.read",
2855
- "write": "engagements.write",
2856
- "manage": "engagements.manage"
2868
+ "read": "activities.read",
2869
+ "write": "activities.write",
2870
+ "manage": "activities.manage"
2857
2871
  }
2858
2872
  }
2859
2873
  },
@@ -3096,9 +3110,9 @@ const PRESET_CATALOG = {
3096
3110
  }
3097
3111
  },
3098
3112
  "keys": {
3099
- "read": "work_items.read",
3100
- "write": "work_items.write",
3101
- "manage": "work_items.manage"
3113
+ "read": "tasks.read",
3114
+ "write": "tasks.write",
3115
+ "manage": "tasks.manage"
3102
3116
  }
3103
3117
  }
3104
3118
  },
@@ -3259,6 +3273,7 @@ const PRESET_CATALOG = {
3259
3273
  "discountBps": "discount_bps",
3260
3274
  "discountAmount": "discount_amount",
3261
3275
  "pricesIncludeTax": "prices_include_tax",
3276
+ "archivedAt": "archived_at",
3262
3277
  "createdBy": "created_by",
3263
3278
  "createdAt": "created_at",
3264
3279
  "updatedAt": "updated_at",
@@ -3365,8 +3380,8 @@ const PRESET_CATALOG = {
3365
3380
  }
3366
3381
  } },
3367
3382
  "keys": {
3368
- "read": "targets.read",
3369
- "manage": "targets.manage"
3383
+ "read": "goals.read",
3384
+ "manage": "goals.manage"
3370
3385
  }
3371
3386
  }
3372
3387
  },
@@ -3530,7 +3545,7 @@ const PRESET_CATALOG = {
3530
3545
  "keys": {
3531
3546
  "read": "employees.read",
3532
3547
  "write": "employees.write",
3533
- "viewSensitive": "employees.view_sensitive"
3548
+ "viewSensitive": "employees.read_sensitive"
3534
3549
  }
3535
3550
  }
3536
3551
  },
@@ -3840,10 +3855,10 @@ const PRESET_CATALOG = {
3840
3855
  }
3841
3856
  } },
3842
3857
  "keys": {
3843
- "read": "rules.read",
3844
- "edit": "rules.edit",
3845
- "publish": "rules.publish",
3846
- "admin": "rules.admin"
3858
+ "read": "automations.read",
3859
+ "edit": "automations.write",
3860
+ "publish": "automations.publish",
3861
+ "admin": "automations.manage"
3847
3862
  }
3848
3863
  }
3849
3864
  },
@@ -5104,10 +5119,10 @@ const PRESET_CATALOG = {
5104
5119
  }
5105
5120
  },
5106
5121
  "keys": {
5107
- "read": "controls.read",
5108
- "manage": "controls.manage",
5109
- "collect": "controls.collect",
5110
- "acknowledge": "controls.acknowledge"
5122
+ "read": "compliance.read",
5123
+ "manage": "compliance.manage",
5124
+ "collect": "compliance.collect",
5125
+ "acknowledge": "compliance.acknowledge"
5111
5126
  }
5112
5127
  }
5113
5128
  },
@@ -5553,7 +5568,7 @@ const PRESET_CATALOG = {
5553
5568
  "occurredAt": "occurred_at"
5554
5569
  }
5555
5570
  } },
5556
- "keys": { "read": "activity.read" }
5571
+ "keys": { "read": "timeline.read" }
5557
5572
  }
5558
5573
  },
5559
5574
  {
@@ -5655,10 +5670,10 @@ const PRESET_CATALOG = {
5655
5670
  }
5656
5671
  },
5657
5672
  "keys": {
5658
- "read": "mail.read",
5659
- "connect": "mail.connect",
5660
- "send": "mail.send",
5661
- "manage": "mail.manage"
5673
+ "read": "mail_sync.read",
5674
+ "connect": "mail_sync.connect",
5675
+ "send": "mail_sync.send",
5676
+ "manage": "mail_sync.manage"
5662
5677
  }
5663
5678
  }
5664
5679
  },
@@ -5703,7 +5718,7 @@ const PRESET_CATALOG = {
5703
5718
  } },
5704
5719
  "keys": {
5705
5720
  "read": "segments.read",
5706
- "edit": "segments.edit"
5721
+ "edit": "segments.write"
5707
5722
  }
5708
5723
  }
5709
5724
  },
@@ -6096,6 +6111,394 @@ const PRESET_CATALOG = {
6096
6111
  }
6097
6112
  }
6098
6113
  },
6114
+ {
6115
+ "name": "qualifications",
6116
+ "title": "Qualifications",
6117
+ "category": "people",
6118
+ "requires": [
6119
+ "memberships",
6120
+ "permissions",
6121
+ "subjects"
6122
+ ],
6123
+ "integrates": [
6124
+ "courses",
6125
+ "employees",
6126
+ "teams",
6127
+ "contacts",
6128
+ "assets",
6129
+ "segments",
6130
+ "attachments",
6131
+ "notifications",
6132
+ "outbox",
6133
+ "audit"
6134
+ ],
6135
+ "manifest": "qualifications",
6136
+ "scopes": ["tenant"],
6137
+ "extraColumns": "qualifications",
6138
+ "entities": {
6139
+ "specs": {
6140
+ "qualification": {
6141
+ "table": "qualifications",
6142
+ "singular": "qualification",
6143
+ "primary": true
6144
+ },
6145
+ "qualification_type": {
6146
+ "table": "types",
6147
+ "singular": "qualification_type",
6148
+ "subject": {
6149
+ "title": "name",
6150
+ "permissions": {
6151
+ "read": "read",
6152
+ "write": "manage"
6153
+ }
6154
+ }
6155
+ },
6156
+ "qualification_requirement": {
6157
+ "table": "requirements",
6158
+ "singular": "qualification_requirement"
6159
+ }
6160
+ },
6161
+ "tables": {
6162
+ "qualifications": {
6163
+ "name": "qualifications",
6164
+ "columns": {
6165
+ "id": "id",
6166
+ "tenant": "tenant_id",
6167
+ "type": "type_id",
6168
+ "holderType": "holder_type",
6169
+ "holderId": "holder_id",
6170
+ "grantedOn": "granted_on",
6171
+ "expiresOn": "expires_on",
6172
+ "revokedAt": "revoked_at",
6173
+ "revokeReason": "revoke_reason",
6174
+ "evidenceAttachment": "evidence_attachment_id",
6175
+ "evidenceNote": "evidence_note",
6176
+ "source": "source",
6177
+ "sourceId": "source_id",
6178
+ "grantedBy": "granted_by",
6179
+ "notifiedStatus": "notified_status",
6180
+ "createdAt": "created_at",
6181
+ "updatedAt": "updated_at"
6182
+ }
6183
+ },
6184
+ "types": {
6185
+ "name": "qualification_types",
6186
+ "columns": {
6187
+ "id": "id",
6188
+ "tenant": "tenant_id",
6189
+ "key": "key",
6190
+ "name": "name",
6191
+ "description": "description",
6192
+ "holderTypes": "holder_types",
6193
+ "validForMonths": "valid_for_months",
6194
+ "evidenceRequired": "evidence_required",
6195
+ "course": "course_id",
6196
+ "archivedAt": "archived_at",
6197
+ "createdAt": "created_at",
6198
+ "updatedAt": "updated_at"
6199
+ }
6200
+ },
6201
+ "requirements": {
6202
+ "name": "qualification_requirements",
6203
+ "columns": {
6204
+ "id": "id",
6205
+ "tenant": "tenant_id",
6206
+ "type": "type_id",
6207
+ "targetType": "target_type",
6208
+ "targetValue": "target_value",
6209
+ "createdAt": "created_at"
6210
+ }
6211
+ }
6212
+ },
6213
+ "keys": {
6214
+ "read": "qualifications.read",
6215
+ "grant": "qualifications.grant",
6216
+ "manage": "qualifications.manage"
6217
+ }
6218
+ }
6219
+ },
6220
+ {
6221
+ "name": "risks",
6222
+ "title": "Risks",
6223
+ "category": "work",
6224
+ "requires": [
6225
+ "memberships",
6226
+ "permissions",
6227
+ "subjects",
6228
+ "versions"
6229
+ ],
6230
+ "integrates": [
6231
+ "compliance",
6232
+ "relations",
6233
+ "numbering",
6234
+ "notifications",
6235
+ "outbox",
6236
+ "audit"
6237
+ ],
6238
+ "manifest": "risks",
6239
+ "scopes": ["tenant"],
6240
+ "extraColumns": "risks",
6241
+ "entities": {
6242
+ "specs": {
6243
+ "risk": {
6244
+ "table": "risks",
6245
+ "singular": "risk",
6246
+ "primary": true,
6247
+ "subject": {
6248
+ "title": "title",
6249
+ "deletedAt": "archivedAt",
6250
+ "permissions": {
6251
+ "read": "read",
6252
+ "write": "write"
6253
+ },
6254
+ "search": {
6255
+ "title": "title",
6256
+ "body": [
6257
+ "number",
6258
+ "description",
6259
+ "cause",
6260
+ "consequence"
6261
+ ]
6262
+ }
6263
+ }
6264
+ },
6265
+ "risk_matrix": {
6266
+ "table": "matrices",
6267
+ "singular": "risk_matrix",
6268
+ "plural": "risk_matrices"
6269
+ },
6270
+ "risk_assessment": {
6271
+ "table": "assessments",
6272
+ "singular": "risk_assessment"
6273
+ }
6274
+ },
6275
+ "tables": {
6276
+ "risks": {
6277
+ "name": "risks",
6278
+ "columns": {
6279
+ "id": "id",
6280
+ "tenant": "tenant_id",
6281
+ "number": "number",
6282
+ "sequence": "sequence",
6283
+ "matrix": "matrix_id",
6284
+ "title": "title",
6285
+ "description": "description",
6286
+ "category": "category",
6287
+ "cause": "cause",
6288
+ "consequence": "consequence",
6289
+ "owner": "owner_id",
6290
+ "status": "status",
6291
+ "treatment": "treatment",
6292
+ "reviewIntervalMonths": "review_interval_months",
6293
+ "nextReviewOn": "next_review_on",
6294
+ "reviewedAt": "reviewed_at",
6295
+ "reviewNotifiedFor": "review_notified_for",
6296
+ "inherentLikelihood": "inherent_likelihood",
6297
+ "inherentImpact": "inherent_impact",
6298
+ "inherentScore": "inherent_score",
6299
+ "inherentBand": "inherent_band",
6300
+ "residualLikelihood": "residual_likelihood",
6301
+ "residualImpact": "residual_impact",
6302
+ "residualScore": "residual_score",
6303
+ "residualBand": "residual_band",
6304
+ "currentAssessment": "current_assessment_id",
6305
+ "closedAt": "closed_at",
6306
+ "archivedAt": "archived_at",
6307
+ "createdBy": "created_by",
6308
+ "createdAt": "created_at",
6309
+ "updatedAt": "updated_at"
6310
+ }
6311
+ },
6312
+ "matrices": {
6313
+ "name": "risk_matrices",
6314
+ "columns": {
6315
+ "id": "id",
6316
+ "tenant": "tenant_id",
6317
+ "key": "key",
6318
+ "name": "name",
6319
+ "likelihoodLevels": "likelihood_levels",
6320
+ "impactLevels": "impact_levels",
6321
+ "bands": "bands",
6322
+ "scoring": "scoring",
6323
+ "isDefault": "is_default",
6324
+ "createdAt": "created_at",
6325
+ "updatedAt": "updated_at"
6326
+ }
6327
+ },
6328
+ "assessments": {
6329
+ "name": "risk_assessments",
6330
+ "columns": {
6331
+ "id": "id",
6332
+ "tenant": "tenant_id",
6333
+ "risk": "risk_id",
6334
+ "inherentLikelihood": "inherent_likelihood",
6335
+ "inherentImpact": "inherent_impact",
6336
+ "inherentScore": "inherent_score",
6337
+ "inherentBand": "inherent_band",
6338
+ "residualLikelihood": "residual_likelihood",
6339
+ "residualImpact": "residual_impact",
6340
+ "residualScore": "residual_score",
6341
+ "residualBand": "residual_band",
6342
+ "rationale": "rationale",
6343
+ "version": "version_id",
6344
+ "assessedBy": "assessed_by",
6345
+ "assessedAt": "assessed_at"
6346
+ }
6347
+ }
6348
+ },
6349
+ "keys": {
6350
+ "read": "risks.read",
6351
+ "write": "risks.write",
6352
+ "assess": "risks.assess",
6353
+ "manage": "risks.manage"
6354
+ }
6355
+ }
6356
+ },
6357
+ {
6358
+ "name": "shifts",
6359
+ "title": "Shifts",
6360
+ "category": "people",
6361
+ "requires": [
6362
+ "memberships",
6363
+ "permissions",
6364
+ "teams"
6365
+ ],
6366
+ "integrates": [
6367
+ "employees",
6368
+ "leave",
6369
+ "qualifications",
6370
+ "time-tracking",
6371
+ "assets",
6372
+ "approvals",
6373
+ "notifications",
6374
+ "outbox",
6375
+ "audit"
6376
+ ],
6377
+ "manifest": "shifts",
6378
+ "scopes": ["tenant"],
6379
+ "tenantNameClashes": ["team"],
6380
+ "extraColumns": "shifts",
6381
+ "entities": {
6382
+ "specs": {
6383
+ "shift": {
6384
+ "table": "shifts",
6385
+ "singular": "shift",
6386
+ "primary": true
6387
+ },
6388
+ "shift_template": {
6389
+ "table": "templates",
6390
+ "singular": "shift_template"
6391
+ },
6392
+ "shift_assignment": {
6393
+ "table": "assignments",
6394
+ "singular": "shift_assignment"
6395
+ },
6396
+ "shift_swap": {
6397
+ "table": "swaps",
6398
+ "singular": "shift_swap"
6399
+ },
6400
+ "shift_availability": {
6401
+ "table": "availability",
6402
+ "singular": "shift_availability",
6403
+ "plural": "shift_availability"
6404
+ }
6405
+ },
6406
+ "tables": {
6407
+ "shifts": {
6408
+ "name": "shifts",
6409
+ "columns": {
6410
+ "id": "id",
6411
+ "tenant": "tenant_id",
6412
+ "template": "template_id",
6413
+ "team": "team_id",
6414
+ "location": "location_id",
6415
+ "startsAt": "starts_at",
6416
+ "endsAt": "ends_at",
6417
+ "breakMinutes": "break_minutes",
6418
+ "headcount": "headcount",
6419
+ "requiredQualifications": "required_qualifications",
6420
+ "status": "status",
6421
+ "note": "note",
6422
+ "publishedAt": "published_at",
6423
+ "canceledAt": "canceled_at",
6424
+ "createdBy": "created_by",
6425
+ "createdAt": "created_at",
6426
+ "updatedAt": "updated_at"
6427
+ }
6428
+ },
6429
+ "templates": {
6430
+ "name": "shift_templates",
6431
+ "columns": {
6432
+ "id": "id",
6433
+ "tenant": "tenant_id",
6434
+ "name": "name",
6435
+ "team": "team_id",
6436
+ "location": "location_id",
6437
+ "startsTime": "starts_time",
6438
+ "endsTime": "ends_time",
6439
+ "breakMinutes": "break_minutes",
6440
+ "headcount": "headcount",
6441
+ "requiredQualifications": "required_qualifications",
6442
+ "weekdays": "weekdays",
6443
+ "archivedAt": "archived_at",
6444
+ "createdAt": "created_at",
6445
+ "updatedAt": "updated_at"
6446
+ }
6447
+ },
6448
+ "assignments": {
6449
+ "name": "shift_assignments",
6450
+ "columns": {
6451
+ "id": "id",
6452
+ "tenant": "tenant_id",
6453
+ "shift": "shift_id",
6454
+ "user": "user_id",
6455
+ "status": "status",
6456
+ "startsAt": "starts_at",
6457
+ "endsAt": "ends_at",
6458
+ "assignedBy": "assigned_by",
6459
+ "createdAt": "created_at",
6460
+ "updatedAt": "updated_at"
6461
+ }
6462
+ },
6463
+ "swaps": {
6464
+ "name": "shift_swaps",
6465
+ "columns": {
6466
+ "id": "id",
6467
+ "tenant": "tenant_id",
6468
+ "assignment": "assignment_id",
6469
+ "fromUser": "from_user_id",
6470
+ "toUser": "to_user_id",
6471
+ "status": "status",
6472
+ "approval": "approval_id",
6473
+ "note": "note",
6474
+ "decidedBy": "decided_by",
6475
+ "decidedAt": "decided_at",
6476
+ "createdAt": "created_at"
6477
+ }
6478
+ },
6479
+ "availability": {
6480
+ "name": "shift_availability",
6481
+ "columns": {
6482
+ "id": "id",
6483
+ "tenant": "tenant_id",
6484
+ "user": "user_id",
6485
+ "onDate": "on_date",
6486
+ "fromTime": "from_time",
6487
+ "untilTime": "until_time",
6488
+ "kind": "kind",
6489
+ "note": "note",
6490
+ "createdAt": "created_at"
6491
+ }
6492
+ }
6493
+ },
6494
+ "keys": {
6495
+ "read": "shifts.read",
6496
+ "write": "shifts.write",
6497
+ "request": "shifts.request",
6498
+ "manage": "shifts.manage"
6499
+ }
6500
+ }
6501
+ },
6099
6502
  {
6100
6503
  "name": "rls-guard",
6101
6504
  "title": "RLS on every new table",
@@ -6474,16 +6877,29 @@ const PRESET_CATALOG = {
6474
6877
  { "name": "AttachmentFileInput" },
6475
6878
  { "name": "AttachmentImages" },
6476
6879
  { "name": "AttachmentImageUrlOptions" },
6477
- { "name": "AttachmentReplacement" },
6880
+ { "name": "AttachmentListActions" },
6478
6881
  {
6479
- "name": "Attachments",
6882
+ "name": "AttachmentListController",
6480
6883
  "fields": true
6481
6884
  },
6482
- { "name": "AttachmentScanJob" },
6483
- { "name": "AttachmentScanner" },
6484
- { "name": "AttachmentScannerOptions" },
6485
- { "name": "AttachmentScanState" },
6486
- { "name": "AttachmentSend" },
6885
+ {
6886
+ "name": "AttachmentListControllerOptions",
6887
+ "fields": true
6888
+ },
6889
+ {
6890
+ "name": "AttachmentListSnapshot",
6891
+ "fields": true
6892
+ },
6893
+ { "name": "AttachmentReplacement" },
6894
+ {
6895
+ "name": "Attachments",
6896
+ "fields": true
6897
+ },
6898
+ { "name": "AttachmentScanJob" },
6899
+ { "name": "AttachmentScanner" },
6900
+ { "name": "AttachmentScannerOptions" },
6901
+ { "name": "AttachmentScanState" },
6902
+ { "name": "AttachmentSend" },
6487
6903
  { "name": "AttachmentsEvents" },
6488
6904
  { "name": "AttachmentsOptimisticAction" },
6489
6905
  { "name": "AttachmentsOptions" },
@@ -11618,244 +12034,1153 @@ const PRESET_CATALOG = {
11618
12034
  }]
11619
12035
  },
11620
12036
  {
11621
- "name": "drive",
11622
- "sql": ["drive", "drive-files"],
11623
- "category": "content",
11624
- "client": {
11625
- "export": "driveBlock",
11626
- "subpath": "better-supabase/blocks/drive"
11627
- },
11628
- "consumes": { "attachments": "optional" },
11629
- "provides": [],
11630
- "entityTypes": [{
11631
- "name": "DriveNode",
11632
- "fields": true
11633
- }, { "name": "DriveNodeKind" }],
11634
- "events": {
11635
- "type": "DriveEvents",
11636
- "types": [
11637
- "drive.node_created",
11638
- "drive.node_renamed",
11639
- "drive.node_moved",
11640
- "drive.node_shared",
11641
- "drive.node_unshared",
11642
- "drive.node_purged",
11643
- "drive.node_hold_placed",
11644
- "drive.node_hold_released",
11645
- "drive.created",
11646
- "drive.renamed",
11647
- "drive.deleted",
11648
- "drive.shared",
11649
- "drive.unshared",
11650
- "drive.connection_created",
11651
- "drive.connection_removed"
11652
- ]
11653
- }
11654
- },
11655
- {
11656
- "name": "employees",
11657
- "sql": ["employees"],
12037
+ "name": "qualifications",
12038
+ "sql": ["qualifications"],
11658
12039
  "category": "people",
11659
12040
  "client": {
11660
- "export": "employeesBlock",
11661
- "subpath": "better-supabase/blocks/employees"
12041
+ "export": "qualificationsBlock",
12042
+ "subpath": "better-supabase/blocks/qualifications"
11662
12043
  },
11663
12044
  "consumes": {},
11664
12045
  "provides": [],
11665
12046
  "entityTypes": [
11666
12047
  {
11667
- "name": "Employee",
12048
+ "name": "Qualification",
11668
12049
  "fields": true
11669
12050
  },
11670
- { "name": "EmployeeChange" },
11671
- { "name": "EmployeeChangeResult" },
11672
- { "name": "EmployeeField" },
11673
- { "name": "EmployeeFromApplicationClients" },
11674
- { "name": "EmployeeFromApplicationOptions" },
12051
+ { "name": "QualificationExpiryEventData" },
12052
+ { "name": "QualificationGap" },
12053
+ { "name": "QualificationGapOptions" },
12054
+ { "name": "QualificationGapStatus" },
12055
+ { "name": "QualificationGrantedEventData" },
11675
12056
  {
11676
- "name": "EmployeeInput",
12057
+ "name": "QualificationGrantInput",
11677
12058
  "fields": true
11678
12059
  },
12060
+ { "name": "QualificationHolderType" },
12061
+ { "name": "QualificationRequirement" },
12062
+ { "name": "QualificationRevokedEventData" },
11679
12063
  {
11680
- "name": "Employees",
12064
+ "name": "Qualifications",
11681
12065
  "fields": true
11682
12066
  },
11683
- { "name": "EmployeesEvents" },
11684
- { "name": "EmployeesOptions" },
11685
- { "name": "EmployeeStatus" }
12067
+ { "name": "QualificationsEvents" },
12068
+ { "name": "QualificationsOptions" },
12069
+ { "name": "QualificationSource" },
12070
+ { "name": "QualificationStatus" },
12071
+ { "name": "QualificationTargetType" },
12072
+ { "name": "QualificationType" },
12073
+ { "name": "QualificationTypeArchivedEventData" },
12074
+ { "name": "QualificationTypeInput" },
12075
+ { "name": "QualificationTypeSavedEventData" }
11686
12076
  ],
11687
- "entitySchemas": { "employee": {
11688
- "input": {
11689
- "title": "EmployeeInput",
12077
+ "entitySchemas": {
12078
+ "qualification_type": { "input": {
12079
+ "title": "QualificationTypeInput",
11690
12080
  "fields": {
11691
- "name": {
12081
+ "key": {
11692
12082
  "kind": "string",
11693
12083
  "minLength": 1,
11694
- "maxLength": 200
12084
+ "maxLength": 64
11695
12085
  },
11696
- "firstName": {
12086
+ "name": {
11697
12087
  "kind": "string",
11698
- "optional": true,
12088
+ "minLength": 1,
11699
12089
  "maxLength": 200
11700
12090
  },
11701
- "lastName": {
11702
- "kind": "string",
11703
- "optional": true,
11704
- "maxLength": 200
12091
+ "holderTypes": {
12092
+ "kind": "enum",
12093
+ "values": [
12094
+ "member",
12095
+ "company",
12096
+ "asset"
12097
+ ],
12098
+ "array": true
11705
12099
  },
11706
- "email": {
11707
- "kind": "string",
12100
+ "validForMonths": {
12101
+ "kind": "integer",
11708
12102
  "optional": true,
11709
- "maxLength": 320
12103
+ "minimum": 1,
12104
+ "maximum": 240
11710
12105
  },
11711
- "userId": {
12106
+ "evidenceRequired": {
12107
+ "kind": "boolean",
12108
+ "optional": true
12109
+ },
12110
+ "courseId": {
11712
12111
  "kind": "uuid",
11713
12112
  "optional": true
11714
12113
  },
11715
- "jobTitle": {
12114
+ "description": {
11716
12115
  "kind": "string",
11717
12116
  "optional": true,
11718
- "maxLength": 200
11719
- },
11720
- "teamId": {
11721
- "kind": "uuid",
11722
- "optional": true
12117
+ "maxLength": 1e4
11723
12118
  },
11724
- "managerId": {
12119
+ "typeId": {
11725
12120
  "kind": "uuid",
11726
12121
  "optional": true
12122
+ }
12123
+ },
12124
+ "jsonSchema": {
12125
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
12126
+ "title": "QualificationTypeInput",
12127
+ "type": "object",
12128
+ "properties": {
12129
+ "key": {
12130
+ "type": "string",
12131
+ "minLength": 1,
12132
+ "maxLength": 64
12133
+ },
12134
+ "name": {
12135
+ "type": "string",
12136
+ "minLength": 1,
12137
+ "maxLength": 200
12138
+ },
12139
+ "holderTypes": {
12140
+ "type": "array",
12141
+ "items": {
12142
+ "type": "string",
12143
+ "enum": [
12144
+ "member",
12145
+ "company",
12146
+ "asset"
12147
+ ]
12148
+ }
12149
+ },
12150
+ "validForMonths": {
12151
+ "type": "integer",
12152
+ "minimum": 1,
12153
+ "maximum": 240
12154
+ },
12155
+ "evidenceRequired": { "type": "boolean" },
12156
+ "courseId": {
12157
+ "type": "string",
12158
+ "format": "uuid"
12159
+ },
12160
+ "description": {
12161
+ "type": "string",
12162
+ "maxLength": 1e4
12163
+ },
12164
+ "typeId": {
12165
+ "type": "string",
12166
+ "format": "uuid"
12167
+ }
11727
12168
  },
11728
- "employmentType": {
12169
+ "required": [
12170
+ "key",
12171
+ "name",
12172
+ "holderTypes"
12173
+ ],
12174
+ "additionalProperties": false
12175
+ }
12176
+ } },
12177
+ "qualification": { "input": {
12178
+ "title": "QualificationGrantInput",
12179
+ "fields": {
12180
+ "typeKey": {
11729
12181
  "kind": "string",
11730
- "optional": true
12182
+ "minLength": 1,
12183
+ "maxLength": 64
11731
12184
  },
11732
- "status": {
12185
+ "holderType": {
11733
12186
  "kind": "enum",
11734
12187
  "values": [
11735
- "preboarding",
11736
- "active",
11737
- "on_leave"
11738
- ],
11739
- "optional": true
12188
+ "member",
12189
+ "company",
12190
+ "asset"
12191
+ ]
11740
12192
  },
11741
- "startDate": {
12193
+ "holderId": {
12194
+ "kind": "string",
12195
+ "minLength": 1,
12196
+ "maxLength": 200
12197
+ },
12198
+ "grantedOn": {
11742
12199
  "kind": "plainDate",
11743
12200
  "optional": true
11744
12201
  },
11745
- "endDate": {
11746
- "kind": "plainDate",
12202
+ "evidenceAttachmentId": {
12203
+ "kind": "uuid",
11747
12204
  "optional": true
11748
12205
  },
11749
- "origin": {
11750
- "kind": "json",
12206
+ "evidenceNote": {
12207
+ "kind": "string",
11751
12208
  "optional": true,
11752
- "description": "A `{ type, id }` reference."
12209
+ "maxLength": 1e4
11753
12210
  },
11754
12211
  "fields": {
11755
12212
  "kind": "json",
11756
12213
  "optional": true,
11757
- "description": "The extra columns to set."
12214
+ "description": "The extra columns, keyed by database name."
11758
12215
  }
11759
12216
  },
11760
12217
  "jsonSchema": {
11761
12218
  "$schema": "https://json-schema.org/draft/2020-12/schema",
11762
- "title": "EmployeeInput",
12219
+ "title": "QualificationGrantInput",
11763
12220
  "type": "object",
11764
12221
  "properties": {
11765
- "name": {
12222
+ "typeKey": {
11766
12223
  "type": "string",
11767
12224
  "minLength": 1,
11768
- "maxLength": 200
11769
- },
11770
- "firstName": {
11771
- "type": "string",
11772
- "maxLength": 200
11773
- },
11774
- "lastName": {
11775
- "type": "string",
11776
- "maxLength": 200
11777
- },
11778
- "email": {
11779
- "type": "string",
11780
- "maxLength": 320
11781
- },
11782
- "userId": {
11783
- "type": "string",
11784
- "format": "uuid"
11785
- },
11786
- "jobTitle": {
11787
- "type": "string",
11788
- "maxLength": 200
11789
- },
11790
- "teamId": {
11791
- "type": "string",
11792
- "format": "uuid"
11793
- },
11794
- "managerId": {
11795
- "type": "string",
11796
- "format": "uuid"
12225
+ "maxLength": 64
11797
12226
  },
11798
- "employmentType": { "type": "string" },
11799
- "status": {
12227
+ "holderType": {
11800
12228
  "type": "string",
11801
12229
  "enum": [
11802
- "preboarding",
11803
- "active",
11804
- "on_leave"
12230
+ "member",
12231
+ "company",
12232
+ "asset"
11805
12233
  ]
11806
12234
  },
11807
- "startDate": {
12235
+ "holderId": {
11808
12236
  "type": "string",
11809
- "format": "date"
12237
+ "minLength": 1,
12238
+ "maxLength": 200
11810
12239
  },
11811
- "endDate": {
12240
+ "grantedOn": {
11812
12241
  "type": "string",
11813
12242
  "format": "date"
11814
12243
  },
11815
- "origin": { "description": "A `{ type, id }` reference." },
11816
- "fields": { "description": "The extra columns to set." }
11817
- },
11818
- "required": ["name"],
11819
- "additionalProperties": false
11820
- }
11821
- },
11822
- "change": {
11823
- "title": "EmployeeChange",
11824
- "fields": {
11825
- "employeeId": { "kind": "uuid" },
11826
- "field": {
11827
- "kind": "string",
11828
- "minLength": 1
11829
- },
11830
- "value": {
11831
- "kind": "unknown",
11832
- "description": "`null` clears the field."
11833
- }
11834
- },
11835
- "jsonSchema": {
11836
- "$schema": "https://json-schema.org/draft/2020-12/schema",
11837
- "title": "EmployeeChange",
11838
- "type": "object",
11839
- "properties": {
11840
- "employeeId": {
12244
+ "evidenceAttachmentId": {
11841
12245
  "type": "string",
11842
12246
  "format": "uuid"
11843
12247
  },
11844
- "field": {
12248
+ "evidenceNote": {
11845
12249
  "type": "string",
11846
- "minLength": 1
12250
+ "maxLength": 1e4
11847
12251
  },
11848
- "value": { "description": "`null` clears the field." }
12252
+ "fields": { "description": "The extra columns, keyed by database name." }
11849
12253
  },
11850
12254
  "required": [
11851
- "employeeId",
11852
- "field",
11853
- "value"
12255
+ "typeKey",
12256
+ "holderType",
12257
+ "holderId"
11854
12258
  ],
11855
12259
  "additionalProperties": false
11856
12260
  }
11857
- }
11858
- } },
12261
+ } }
12262
+ },
12263
+ "events": {
12264
+ "type": "QualificationsEvents",
12265
+ "types": [
12266
+ "qualification_type.created",
12267
+ "qualification_type.updated",
12268
+ "qualification_type.archived",
12269
+ "qualification.granted",
12270
+ "qualification.revoked",
12271
+ "qualification.expiry_warned",
12272
+ "qualification.expired"
12273
+ ]
12274
+ }
12275
+ },
12276
+ {
12277
+ "name": "risks",
12278
+ "sql": ["risks"],
12279
+ "category": "work",
12280
+ "client": {
12281
+ "export": "risksBlock",
12282
+ "subpath": "better-supabase/blocks/risks"
12283
+ },
12284
+ "consumes": {},
12285
+ "provides": [],
12286
+ "entityTypes": [
12287
+ {
12288
+ "name": "Risk",
12289
+ "fields": true
12290
+ },
12291
+ { "name": "RiskAssessedEventData" },
12292
+ { "name": "RiskAssessment" },
12293
+ { "name": "RiskAssessmentInput" },
12294
+ {
12295
+ "name": "RiskChange",
12296
+ "fields": true
12297
+ },
12298
+ { "name": "RiskClosedEventData" },
12299
+ {
12300
+ "name": "RiskDetail",
12301
+ "fields": true
12302
+ },
12303
+ { "name": "RiskEventData" },
12304
+ { "name": "RiskHeatmap" },
12305
+ { "name": "RiskHeatmapCell" },
12306
+ {
12307
+ "name": "RiskInput",
12308
+ "fields": true
12309
+ },
12310
+ { "name": "RiskLink" },
12311
+ { "name": "RiskListOptions" },
12312
+ { "name": "RiskMatrix" },
12313
+ { "name": "RiskMatrixBand" },
12314
+ { "name": "RiskMatrixEventData" },
12315
+ { "name": "RiskMatrixInput" },
12316
+ { "name": "RiskMatrixLevel" },
12317
+ { "name": "RiskRating" },
12318
+ { "name": "RiskReviewDateReachedEventData" },
12319
+ { "name": "RiskReviewedEventData" },
12320
+ {
12321
+ "name": "Risks",
12322
+ "fields": true
12323
+ },
12324
+ { "name": "RiskScoring" },
12325
+ { "name": "RisksEvents" },
12326
+ { "name": "RisksOptions" },
12327
+ { "name": "RisksSqlOptions" },
12328
+ { "name": "RiskStatus" },
12329
+ { "name": "RiskTreatment" },
12330
+ { "name": "RiskTreatmentChangedEventData" }
12331
+ ],
12332
+ "entitySchemas": {
12333
+ "risk": { "input": {
12334
+ "title": "RiskInput",
12335
+ "fields": {
12336
+ "title": {
12337
+ "kind": "string",
12338
+ "minLength": 1,
12339
+ "maxLength": 300
12340
+ },
12341
+ "category": {
12342
+ "kind": "string",
12343
+ "minLength": 1,
12344
+ "maxLength": 64,
12345
+ "description": "One of `options.categories`."
12346
+ },
12347
+ "description": {
12348
+ "kind": "string",
12349
+ "optional": true,
12350
+ "nullable": true,
12351
+ "maxLength": 1e4
12352
+ },
12353
+ "cause": {
12354
+ "kind": "string",
12355
+ "optional": true,
12356
+ "nullable": true,
12357
+ "maxLength": 1e4
12358
+ },
12359
+ "consequence": {
12360
+ "kind": "string",
12361
+ "optional": true,
12362
+ "nullable": true,
12363
+ "maxLength": 1e4
12364
+ },
12365
+ "ownerId": {
12366
+ "kind": "uuid",
12367
+ "optional": true,
12368
+ "nullable": true
12369
+ },
12370
+ "matrixId": {
12371
+ "kind": "uuid",
12372
+ "optional": true
12373
+ },
12374
+ "reviewIntervalMonths": {
12375
+ "kind": "integer",
12376
+ "optional": true,
12377
+ "nullable": true,
12378
+ "minimum": 1,
12379
+ "maximum": 120
12380
+ },
12381
+ "fields": {
12382
+ "kind": "json",
12383
+ "optional": true,
12384
+ "description": "The extra columns, keyed by database name."
12385
+ }
12386
+ },
12387
+ "jsonSchema": {
12388
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
12389
+ "title": "RiskInput",
12390
+ "type": "object",
12391
+ "properties": {
12392
+ "title": {
12393
+ "type": "string",
12394
+ "minLength": 1,
12395
+ "maxLength": 300
12396
+ },
12397
+ "category": {
12398
+ "type": "string",
12399
+ "minLength": 1,
12400
+ "maxLength": 64,
12401
+ "description": "One of `options.categories`."
12402
+ },
12403
+ "description": {
12404
+ "type": ["string", "null"],
12405
+ "maxLength": 1e4
12406
+ },
12407
+ "cause": {
12408
+ "type": ["string", "null"],
12409
+ "maxLength": 1e4
12410
+ },
12411
+ "consequence": {
12412
+ "type": ["string", "null"],
12413
+ "maxLength": 1e4
12414
+ },
12415
+ "ownerId": {
12416
+ "type": ["string", "null"],
12417
+ "format": "uuid"
12418
+ },
12419
+ "matrixId": {
12420
+ "type": "string",
12421
+ "format": "uuid"
12422
+ },
12423
+ "reviewIntervalMonths": {
12424
+ "type": ["integer", "null"],
12425
+ "minimum": 1,
12426
+ "maximum": 120
12427
+ },
12428
+ "fields": { "description": "The extra columns, keyed by database name." }
12429
+ },
12430
+ "required": ["title", "category"],
12431
+ "additionalProperties": false
12432
+ }
12433
+ } },
12434
+ "risk_matrix": { "input": {
12435
+ "title": "RiskMatrixInput",
12436
+ "fields": {
12437
+ "key": {
12438
+ "kind": "string",
12439
+ "minLength": 1,
12440
+ "maxLength": 64
12441
+ },
12442
+ "name": {
12443
+ "kind": "string",
12444
+ "minLength": 1,
12445
+ "maxLength": 200
12446
+ },
12447
+ "likelihoodLevels": {
12448
+ "kind": "json",
12449
+ "array": true,
12450
+ "description": "2 to 10 levels `{ value, label }`, values 1 to n."
12451
+ },
12452
+ "impactLevels": {
12453
+ "kind": "json",
12454
+ "array": true,
12455
+ "description": "2 to 10 levels `{ value, label }`, values 1 to n."
12456
+ },
12457
+ "bands": {
12458
+ "kind": "json",
12459
+ "array": true,
12460
+ "description": "Bands `{ key, label, min, max }` that cover every score without gaps."
12461
+ },
12462
+ "scoring": {
12463
+ "kind": "enum",
12464
+ "optional": true,
12465
+ "values": ["product", "sum"]
12466
+ },
12467
+ "isDefault": {
12468
+ "kind": "boolean",
12469
+ "optional": true
12470
+ },
12471
+ "matrixId": {
12472
+ "kind": "uuid",
12473
+ "optional": true
12474
+ }
12475
+ },
12476
+ "jsonSchema": {
12477
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
12478
+ "title": "RiskMatrixInput",
12479
+ "type": "object",
12480
+ "properties": {
12481
+ "key": {
12482
+ "type": "string",
12483
+ "minLength": 1,
12484
+ "maxLength": 64
12485
+ },
12486
+ "name": {
12487
+ "type": "string",
12488
+ "minLength": 1,
12489
+ "maxLength": 200
12490
+ },
12491
+ "likelihoodLevels": {
12492
+ "type": "array",
12493
+ "items": {},
12494
+ "description": "2 to 10 levels `{ value, label }`, values 1 to n."
12495
+ },
12496
+ "impactLevels": {
12497
+ "type": "array",
12498
+ "items": {},
12499
+ "description": "2 to 10 levels `{ value, label }`, values 1 to n."
12500
+ },
12501
+ "bands": {
12502
+ "type": "array",
12503
+ "items": {},
12504
+ "description": "Bands `{ key, label, min, max }` that cover every score without gaps."
12505
+ },
12506
+ "scoring": {
12507
+ "type": "string",
12508
+ "enum": ["product", "sum"]
12509
+ },
12510
+ "isDefault": { "type": "boolean" },
12511
+ "matrixId": {
12512
+ "type": "string",
12513
+ "format": "uuid"
12514
+ }
12515
+ },
12516
+ "required": [
12517
+ "key",
12518
+ "name",
12519
+ "likelihoodLevels",
12520
+ "impactLevels",
12521
+ "bands"
12522
+ ],
12523
+ "additionalProperties": false
12524
+ }
12525
+ } },
12526
+ "risk_assessment": { "input": {
12527
+ "title": "RiskAssessmentInput",
12528
+ "fields": {
12529
+ "inherent": {
12530
+ "kind": "json",
12531
+ "description": "`{ likelihood, impact }` before controls."
12532
+ },
12533
+ "residual": {
12534
+ "kind": "json",
12535
+ "description": "`{ likelihood, impact }` after controls."
12536
+ },
12537
+ "rationale": {
12538
+ "kind": "string",
12539
+ "optional": true,
12540
+ "maxLength": 1e4
12541
+ }
12542
+ },
12543
+ "jsonSchema": {
12544
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
12545
+ "title": "RiskAssessmentInput",
12546
+ "type": "object",
12547
+ "properties": {
12548
+ "inherent": { "description": "`{ likelihood, impact }` before controls." },
12549
+ "residual": { "description": "`{ likelihood, impact }` after controls." },
12550
+ "rationale": {
12551
+ "type": "string",
12552
+ "maxLength": 1e4
12553
+ }
12554
+ },
12555
+ "required": ["inherent", "residual"],
12556
+ "additionalProperties": false
12557
+ }
12558
+ } }
12559
+ },
12560
+ "events": {
12561
+ "type": "RisksEvents",
12562
+ "types": [
12563
+ "risk_matrix.created",
12564
+ "risk_matrix.updated",
12565
+ "risk.created",
12566
+ "risk.updated",
12567
+ "risk.assessed",
12568
+ "risk.treatment_changed",
12569
+ "risk.reviewed",
12570
+ "risk.closed",
12571
+ "risk.review_date_reached"
12572
+ ]
12573
+ },
12574
+ "schedules": [{
12575
+ "name": "review-due",
12576
+ "cron": "0 6 * * *",
12577
+ "runs": "notifyDueReviews()",
12578
+ "description": "Reports the risks whose review date has come."
12579
+ }]
12580
+ },
12581
+ {
12582
+ "name": "shifts",
12583
+ "sql": ["shifts"],
12584
+ "category": "people",
12585
+ "client": {
12586
+ "export": "shiftsBlock",
12587
+ "subpath": "better-supabase/blocks/shifts"
12588
+ },
12589
+ "consumes": {},
12590
+ "provides": [],
12591
+ "entityTypes": [
12592
+ {
12593
+ "name": "MyShift",
12594
+ "fields": true
12595
+ },
12596
+ {
12597
+ "name": "RosterShift",
12598
+ "fields": true
12599
+ },
12600
+ {
12601
+ "name": "Shift",
12602
+ "fields": true
12603
+ },
12604
+ { "name": "ShiftAssignment" },
12605
+ { "name": "ShiftAssignmentCreatedEventData" },
12606
+ { "name": "ShiftAssignmentReleasedEventData" },
12607
+ { "name": "ShiftAssignmentStatus" },
12608
+ { "name": "ShiftAssignmentWarning" },
12609
+ { "name": "ShiftAvailability" },
12610
+ { "name": "ShiftAvailabilityInput" },
12611
+ { "name": "ShiftAvailabilityKind" },
12612
+ { "name": "ShiftCanceledEventData" },
12613
+ { "name": "ShiftCreatedEventData" },
12614
+ { "name": "ShiftHours" },
12615
+ {
12616
+ "name": "ShiftInput",
12617
+ "fields": true
12618
+ },
12619
+ { "name": "ShiftPublishedEventData" },
12620
+ {
12621
+ "name": "Shifts",
12622
+ "fields": true
12623
+ },
12624
+ { "name": "ShiftsEvents" },
12625
+ { "name": "ShiftsOptions" },
12626
+ { "name": "ShiftStatus" },
12627
+ { "name": "ShiftSwap" },
12628
+ { "name": "ShiftSwapDecidedEventData" },
12629
+ { "name": "ShiftSwapRequestedEventData" },
12630
+ { "name": "ShiftSwapStatus" },
12631
+ { "name": "ShiftTemplate" },
12632
+ { "name": "ShiftTemplateInput" }
12633
+ ],
12634
+ "entitySchemas": {
12635
+ "shift": { "input": {
12636
+ "title": "ShiftInput",
12637
+ "fields": {
12638
+ "startsAt": { "kind": "instant" },
12639
+ "endsAt": { "kind": "instant" },
12640
+ "teamId": {
12641
+ "kind": "string",
12642
+ "optional": true,
12643
+ "maxLength": 64
12644
+ },
12645
+ "locationId": {
12646
+ "kind": "uuid",
12647
+ "optional": true
12648
+ },
12649
+ "breakMinutes": {
12650
+ "kind": "integer",
12651
+ "optional": true,
12652
+ "minimum": 0
12653
+ },
12654
+ "headcount": {
12655
+ "kind": "integer",
12656
+ "optional": true,
12657
+ "minimum": 1,
12658
+ "maximum": 1e3
12659
+ },
12660
+ "requiredQualifications": {
12661
+ "kind": "string",
12662
+ "optional": true,
12663
+ "array": true
12664
+ },
12665
+ "note": {
12666
+ "kind": "string",
12667
+ "optional": true,
12668
+ "maxLength": 1e4
12669
+ },
12670
+ "shiftId": {
12671
+ "kind": "uuid",
12672
+ "optional": true
12673
+ },
12674
+ "fields": {
12675
+ "kind": "json",
12676
+ "optional": true,
12677
+ "description": "The extra columns, keyed by database name."
12678
+ }
12679
+ },
12680
+ "jsonSchema": {
12681
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
12682
+ "title": "ShiftInput",
12683
+ "type": "object",
12684
+ "properties": {
12685
+ "startsAt": {
12686
+ "type": "string",
12687
+ "format": "date-time"
12688
+ },
12689
+ "endsAt": {
12690
+ "type": "string",
12691
+ "format": "date-time"
12692
+ },
12693
+ "teamId": {
12694
+ "type": "string",
12695
+ "maxLength": 64
12696
+ },
12697
+ "locationId": {
12698
+ "type": "string",
12699
+ "format": "uuid"
12700
+ },
12701
+ "breakMinutes": {
12702
+ "type": "integer",
12703
+ "minimum": 0
12704
+ },
12705
+ "headcount": {
12706
+ "type": "integer",
12707
+ "minimum": 1,
12708
+ "maximum": 1e3
12709
+ },
12710
+ "requiredQualifications": {
12711
+ "type": "array",
12712
+ "items": { "type": "string" }
12713
+ },
12714
+ "note": {
12715
+ "type": "string",
12716
+ "maxLength": 1e4
12717
+ },
12718
+ "shiftId": {
12719
+ "type": "string",
12720
+ "format": "uuid"
12721
+ },
12722
+ "fields": { "description": "The extra columns, keyed by database name." }
12723
+ },
12724
+ "required": ["startsAt", "endsAt"],
12725
+ "additionalProperties": false
12726
+ }
12727
+ } },
12728
+ "shift_template": { "input": {
12729
+ "title": "ShiftTemplateInput",
12730
+ "fields": {
12731
+ "name": {
12732
+ "kind": "string",
12733
+ "minLength": 1,
12734
+ "maxLength": 200
12735
+ },
12736
+ "startsTime": {
12737
+ "kind": "string",
12738
+ "minLength": 5,
12739
+ "maxLength": 8,
12740
+ "description": "A time of day, HH:MM."
12741
+ },
12742
+ "endsTime": {
12743
+ "kind": "string",
12744
+ "minLength": 5,
12745
+ "maxLength": 8,
12746
+ "description": "A time of day, HH:MM."
12747
+ },
12748
+ "weekdays": {
12749
+ "kind": "integer",
12750
+ "optional": true,
12751
+ "array": true,
12752
+ "minimum": 1,
12753
+ "maximum": 7
12754
+ },
12755
+ "teamId": {
12756
+ "kind": "string",
12757
+ "optional": true,
12758
+ "maxLength": 64
12759
+ },
12760
+ "locationId": {
12761
+ "kind": "uuid",
12762
+ "optional": true
12763
+ },
12764
+ "breakMinutes": {
12765
+ "kind": "integer",
12766
+ "optional": true,
12767
+ "minimum": 0
12768
+ },
12769
+ "headcount": {
12770
+ "kind": "integer",
12771
+ "optional": true,
12772
+ "minimum": 1,
12773
+ "maximum": 1e3
12774
+ },
12775
+ "requiredQualifications": {
12776
+ "kind": "string",
12777
+ "optional": true,
12778
+ "array": true
12779
+ },
12780
+ "templateId": {
12781
+ "kind": "uuid",
12782
+ "optional": true
12783
+ }
12784
+ },
12785
+ "jsonSchema": {
12786
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
12787
+ "title": "ShiftTemplateInput",
12788
+ "type": "object",
12789
+ "properties": {
12790
+ "name": {
12791
+ "type": "string",
12792
+ "minLength": 1,
12793
+ "maxLength": 200
12794
+ },
12795
+ "startsTime": {
12796
+ "type": "string",
12797
+ "minLength": 5,
12798
+ "maxLength": 8,
12799
+ "description": "A time of day, HH:MM."
12800
+ },
12801
+ "endsTime": {
12802
+ "type": "string",
12803
+ "minLength": 5,
12804
+ "maxLength": 8,
12805
+ "description": "A time of day, HH:MM."
12806
+ },
12807
+ "weekdays": {
12808
+ "type": "array",
12809
+ "items": {
12810
+ "type": "integer",
12811
+ "minimum": 1,
12812
+ "maximum": 7
12813
+ }
12814
+ },
12815
+ "teamId": {
12816
+ "type": "string",
12817
+ "maxLength": 64
12818
+ },
12819
+ "locationId": {
12820
+ "type": "string",
12821
+ "format": "uuid"
12822
+ },
12823
+ "breakMinutes": {
12824
+ "type": "integer",
12825
+ "minimum": 0
12826
+ },
12827
+ "headcount": {
12828
+ "type": "integer",
12829
+ "minimum": 1,
12830
+ "maximum": 1e3
12831
+ },
12832
+ "requiredQualifications": {
12833
+ "type": "array",
12834
+ "items": { "type": "string" }
12835
+ },
12836
+ "templateId": {
12837
+ "type": "string",
12838
+ "format": "uuid"
12839
+ }
12840
+ },
12841
+ "required": [
12842
+ "name",
12843
+ "startsTime",
12844
+ "endsTime"
12845
+ ],
12846
+ "additionalProperties": false
12847
+ }
12848
+ } },
12849
+ "shift_availability": { "input": {
12850
+ "title": "ShiftAvailabilityInput",
12851
+ "fields": {
12852
+ "onDate": { "kind": "plainDate" },
12853
+ "kind": {
12854
+ "kind": "enum",
12855
+ "values": [
12856
+ "available",
12857
+ "unavailable",
12858
+ "preferred"
12859
+ ]
12860
+ },
12861
+ "fromTime": {
12862
+ "kind": "string",
12863
+ "optional": true,
12864
+ "minLength": 5,
12865
+ "maxLength": 8,
12866
+ "description": "A time of day, HH:MM."
12867
+ },
12868
+ "untilTime": {
12869
+ "kind": "string",
12870
+ "optional": true,
12871
+ "minLength": 5,
12872
+ "maxLength": 8,
12873
+ "description": "A time of day, HH:MM."
12874
+ },
12875
+ "note": {
12876
+ "kind": "string",
12877
+ "optional": true,
12878
+ "maxLength": 1e4
12879
+ },
12880
+ "userId": {
12881
+ "kind": "uuid",
12882
+ "optional": true
12883
+ }
12884
+ },
12885
+ "jsonSchema": {
12886
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
12887
+ "title": "ShiftAvailabilityInput",
12888
+ "type": "object",
12889
+ "properties": {
12890
+ "onDate": {
12891
+ "type": "string",
12892
+ "format": "date"
12893
+ },
12894
+ "kind": {
12895
+ "type": "string",
12896
+ "enum": [
12897
+ "available",
12898
+ "unavailable",
12899
+ "preferred"
12900
+ ]
12901
+ },
12902
+ "fromTime": {
12903
+ "type": "string",
12904
+ "minLength": 5,
12905
+ "maxLength": 8,
12906
+ "description": "A time of day, HH:MM."
12907
+ },
12908
+ "untilTime": {
12909
+ "type": "string",
12910
+ "minLength": 5,
12911
+ "maxLength": 8,
12912
+ "description": "A time of day, HH:MM."
12913
+ },
12914
+ "note": {
12915
+ "type": "string",
12916
+ "maxLength": 1e4
12917
+ },
12918
+ "userId": {
12919
+ "type": "string",
12920
+ "format": "uuid"
12921
+ }
12922
+ },
12923
+ "required": ["onDate", "kind"],
12924
+ "additionalProperties": false
12925
+ }
12926
+ } }
12927
+ },
12928
+ "events": {
12929
+ "type": "ShiftsEvents",
12930
+ "types": [
12931
+ "shift.created",
12932
+ "shift.published",
12933
+ "shift.cancelled",
12934
+ "shift_assignment.created",
12935
+ "shift_assignment.released",
12936
+ "shift_swap.requested",
12937
+ "shift_swap.decided"
12938
+ ]
12939
+ }
12940
+ },
12941
+ {
12942
+ "name": "drive",
12943
+ "sql": ["drive", "drive-files"],
12944
+ "category": "content",
12945
+ "client": {
12946
+ "export": "driveBlock",
12947
+ "subpath": "better-supabase/blocks/drive"
12948
+ },
12949
+ "consumes": { "attachments": "optional" },
12950
+ "provides": [],
12951
+ "entityTypes": [{
12952
+ "name": "DriveNode",
12953
+ "fields": true
12954
+ }, { "name": "DriveNodeKind" }],
12955
+ "events": {
12956
+ "type": "DriveEvents",
12957
+ "types": [
12958
+ "drive.node_created",
12959
+ "drive.node_renamed",
12960
+ "drive.node_moved",
12961
+ "drive.node_shared",
12962
+ "drive.node_unshared",
12963
+ "drive.node_purged",
12964
+ "drive.node_hold_placed",
12965
+ "drive.node_hold_released",
12966
+ "drive.node_locked",
12967
+ "drive.node_unlocked",
12968
+ "drive.node_download_blocked_changed",
12969
+ "drive.download_blocked_changed",
12970
+ "drive.created",
12971
+ "drive.renamed",
12972
+ "drive.deleted",
12973
+ "drive.shared",
12974
+ "drive.unshared",
12975
+ "drive.connection_created",
12976
+ "drive.connection_removed"
12977
+ ]
12978
+ }
12979
+ },
12980
+ {
12981
+ "name": "employees",
12982
+ "sql": ["employees"],
12983
+ "category": "people",
12984
+ "client": {
12985
+ "export": "employeesBlock",
12986
+ "subpath": "better-supabase/blocks/employees"
12987
+ },
12988
+ "consumes": {},
12989
+ "provides": [],
12990
+ "entityTypes": [
12991
+ {
12992
+ "name": "Employee",
12993
+ "fields": true
12994
+ },
12995
+ { "name": "EmployeeChange" },
12996
+ { "name": "EmployeeChangeResult" },
12997
+ { "name": "EmployeeField" },
12998
+ { "name": "EmployeeFromApplicationClients" },
12999
+ { "name": "EmployeeFromApplicationOptions" },
13000
+ {
13001
+ "name": "EmployeeInput",
13002
+ "fields": true
13003
+ },
13004
+ {
13005
+ "name": "Employees",
13006
+ "fields": true
13007
+ },
13008
+ { "name": "EmployeesEvents" },
13009
+ { "name": "EmployeesOptions" },
13010
+ { "name": "EmployeeStatus" }
13011
+ ],
13012
+ "entitySchemas": { "employee": {
13013
+ "input": {
13014
+ "title": "EmployeeInput",
13015
+ "fields": {
13016
+ "name": {
13017
+ "kind": "string",
13018
+ "minLength": 1,
13019
+ "maxLength": 200
13020
+ },
13021
+ "firstName": {
13022
+ "kind": "string",
13023
+ "optional": true,
13024
+ "maxLength": 200
13025
+ },
13026
+ "lastName": {
13027
+ "kind": "string",
13028
+ "optional": true,
13029
+ "maxLength": 200
13030
+ },
13031
+ "email": {
13032
+ "kind": "string",
13033
+ "optional": true,
13034
+ "maxLength": 320
13035
+ },
13036
+ "userId": {
13037
+ "kind": "uuid",
13038
+ "optional": true
13039
+ },
13040
+ "jobTitle": {
13041
+ "kind": "string",
13042
+ "optional": true,
13043
+ "maxLength": 200
13044
+ },
13045
+ "teamId": {
13046
+ "kind": "uuid",
13047
+ "optional": true
13048
+ },
13049
+ "managerId": {
13050
+ "kind": "uuid",
13051
+ "optional": true
13052
+ },
13053
+ "employmentType": {
13054
+ "kind": "string",
13055
+ "optional": true
13056
+ },
13057
+ "status": {
13058
+ "kind": "enum",
13059
+ "values": [
13060
+ "preboarding",
13061
+ "active",
13062
+ "on_leave"
13063
+ ],
13064
+ "optional": true
13065
+ },
13066
+ "startDate": {
13067
+ "kind": "plainDate",
13068
+ "optional": true
13069
+ },
13070
+ "endDate": {
13071
+ "kind": "plainDate",
13072
+ "optional": true
13073
+ },
13074
+ "origin": {
13075
+ "kind": "json",
13076
+ "optional": true,
13077
+ "description": "A `{ type, id }` reference."
13078
+ },
13079
+ "fields": {
13080
+ "kind": "json",
13081
+ "optional": true,
13082
+ "description": "The extra columns to set."
13083
+ }
13084
+ },
13085
+ "jsonSchema": {
13086
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
13087
+ "title": "EmployeeInput",
13088
+ "type": "object",
13089
+ "properties": {
13090
+ "name": {
13091
+ "type": "string",
13092
+ "minLength": 1,
13093
+ "maxLength": 200
13094
+ },
13095
+ "firstName": {
13096
+ "type": "string",
13097
+ "maxLength": 200
13098
+ },
13099
+ "lastName": {
13100
+ "type": "string",
13101
+ "maxLength": 200
13102
+ },
13103
+ "email": {
13104
+ "type": "string",
13105
+ "maxLength": 320
13106
+ },
13107
+ "userId": {
13108
+ "type": "string",
13109
+ "format": "uuid"
13110
+ },
13111
+ "jobTitle": {
13112
+ "type": "string",
13113
+ "maxLength": 200
13114
+ },
13115
+ "teamId": {
13116
+ "type": "string",
13117
+ "format": "uuid"
13118
+ },
13119
+ "managerId": {
13120
+ "type": "string",
13121
+ "format": "uuid"
13122
+ },
13123
+ "employmentType": { "type": "string" },
13124
+ "status": {
13125
+ "type": "string",
13126
+ "enum": [
13127
+ "preboarding",
13128
+ "active",
13129
+ "on_leave"
13130
+ ]
13131
+ },
13132
+ "startDate": {
13133
+ "type": "string",
13134
+ "format": "date"
13135
+ },
13136
+ "endDate": {
13137
+ "type": "string",
13138
+ "format": "date"
13139
+ },
13140
+ "origin": { "description": "A `{ type, id }` reference." },
13141
+ "fields": { "description": "The extra columns to set." }
13142
+ },
13143
+ "required": ["name"],
13144
+ "additionalProperties": false
13145
+ }
13146
+ },
13147
+ "change": {
13148
+ "title": "EmployeeChange",
13149
+ "fields": {
13150
+ "employeeId": { "kind": "uuid" },
13151
+ "field": {
13152
+ "kind": "string",
13153
+ "minLength": 1
13154
+ },
13155
+ "value": {
13156
+ "kind": "unknown",
13157
+ "description": "`null` clears the field."
13158
+ }
13159
+ },
13160
+ "jsonSchema": {
13161
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
13162
+ "title": "EmployeeChange",
13163
+ "type": "object",
13164
+ "properties": {
13165
+ "employeeId": {
13166
+ "type": "string",
13167
+ "format": "uuid"
13168
+ },
13169
+ "field": {
13170
+ "type": "string",
13171
+ "minLength": 1
13172
+ },
13173
+ "value": { "description": "`null` clears the field." }
13174
+ },
13175
+ "required": [
13176
+ "employeeId",
13177
+ "field",
13178
+ "value"
13179
+ ],
13180
+ "additionalProperties": false
13181
+ }
13182
+ }
13183
+ } },
11859
13184
  "events": {
11860
13185
  "type": "EmployeesEvents",
11861
13186
  "types": [
@@ -14549,7 +15874,11 @@ const PRESET_CATALOG = {
14549
15874
  "subpath": "better-supabase/blocks/subjects"
14550
15875
  },
14551
15876
  "consumes": {},
14552
- "provides": []
15877
+ "provides": [],
15878
+ "events": {
15879
+ "type": "SubjectsEvents",
15880
+ "types": ["subject_member.added", "subject_member.ended"]
15881
+ }
14553
15882
  },
14554
15883
  {
14555
15884
  "name": "impersonation",