better-supabase 0.43.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 (547) hide show
  1. package/dist/{access-sql-Dao1C0fz.js → access-sql-8In-gFRf.js} +16 -2
  2. package/dist/{adapter-ddQ9Hzka.js → adapter-t7V4k_rU.js} +158 -6
  3. package/dist/{agents-BAiLeoR-.d.ts → agents-D81UAnah.d.ts} +4 -4
  4. package/dist/{ai-cache-B94R1da7.d.ts → ai-cache-OkvpE7L-.d.ts} +4 -4
  5. package/dist/{ai-chat-rQ7Ftq9W.d.ts → ai-chat-BBJvSano.d.ts} +5 -5
  6. package/dist/{ai-schedules-DIiPmFgn.d.ts → ai-schedules-D9mYwQdO.d.ts} +9 -6
  7. package/dist/ai-sdk/agents/index.d.ts +6 -6
  8. package/dist/ai-sdk/batches/index.d.ts +3 -3
  9. package/dist/ai-sdk/cache/index.d.ts +1 -1
  10. package/dist/ai-sdk/chat/index.d.ts +2 -2
  11. package/dist/ai-sdk/embeddings/index.d.ts +2 -2
  12. package/dist/ai-sdk/files/index.d.ts +1 -1
  13. package/dist/ai-sdk/index.d.ts +5 -5
  14. package/dist/ai-sdk/mcp/index.d.ts +3 -3
  15. package/dist/ai-sdk/memory/index.d.ts +3 -3
  16. package/dist/ai-sdk/memory/index.js +1 -1
  17. package/dist/ai-sdk/workflow/index.d.ts +3 -3
  18. package/dist/{api-CbY2qdzT.d.ts → api-Bxhw2FD2.d.ts} +6 -6
  19. package/dist/{api-wwix_K5c.js → api-DzqXnR6X.js} +1 -1
  20. package/dist/{api-keys-U3JQ8IlM.d.ts → api-keys-ClEIzcc3.d.ts} +4 -4
  21. package/dist/{app-tables-CVMn4c4b.d.ts → app-tables-HqT8E90s.d.ts} +1 -1
  22. package/dist/{approvals-CYbTzQ7v.d.ts → approvals-lmHzZSgF.d.ts} +6 -6
  23. package/dist/{assistant-B1p5mYaM.d.ts → assistant-ewdCgSQn.d.ts} +2 -2
  24. package/dist/astro/index.d.ts +7 -7
  25. package/dist/astro/index.js +4 -5
  26. package/dist/{authorization-hGBtxrnQ.d.ts → authorization-CFs44tM2.d.ts} +225 -39
  27. package/dist/{authorization-hooks-CR8TVvqo.d.ts → authorization-hooks-yUgoV4Q7.d.ts} +2 -2
  28. package/dist/authz-refresh-C_zK-BdX.js +115 -0
  29. package/dist/authz-refresh-DIqPTJZe.d.ts +79 -0
  30. package/dist/{auth-link-BmJsQG4a.js → authz-refresh-DQ0Q_1_V.js} +87 -1
  31. package/dist/authz-refresh-Nc-38Xeh.d.ts +38 -0
  32. package/dist/authz-topic-C7n3kIm_.d.ts +21 -0
  33. package/dist/{automations-K0O3En6E.js → automations-Bk-_P7Zp.js} +2 -1
  34. package/dist/better-result/index.d.ts +3 -3
  35. package/dist/{bind-DWAIKYvJ.d.ts → bind-CUxWEh27.d.ts} +7 -7
  36. package/dist/{block-env-C6OEu9Xk.d.ts → block-env-DddTzDut.d.ts} +4 -4
  37. package/dist/{block-helpers-Sj-efEhC.d.ts → block-helpers-DzIR3Ob8.d.ts} +1 -1
  38. package/dist/{block-hooks-VW4knarE.d.ts → block-hooks-D9NKzUqW.d.ts} +2 -2
  39. package/dist/{block-subjects-Bkieh2Xk.d.ts → block-subjects-hcIVjfyD.d.ts} +1 -1
  40. package/dist/{block-subjects-B1zfhFWC.js → block-subjects-y1RNnlLz.js} +1 -1
  41. package/dist/{block-tables-BIExrL2J.d.ts → block-tables-BNwRNU_D.d.ts} +1 -1
  42. package/dist/{block-transport-CDmOUuLZ.d.ts → block-transport-Do7J4MsA.d.ts} +2 -2
  43. package/dist/blocks/access-requests/index.d.ts +5 -5
  44. package/dist/blocks/activities/index.d.ts +10 -10
  45. package/dist/blocks/activities/index.js +1 -1
  46. package/dist/blocks/agents/index.d.ts +4 -4
  47. package/dist/blocks/ai-cache/index.d.ts +3 -3
  48. package/dist/blocks/ai-chat/index.d.ts +8 -8
  49. package/dist/blocks/ai-files/index.d.ts +3 -3
  50. package/dist/blocks/ai-keys/index.d.ts +4 -4
  51. package/dist/blocks/ai-schedules/index.d.ts +3 -3
  52. package/dist/blocks/announcements/index.d.ts +8 -8
  53. package/dist/blocks/api-keys/index.d.ts +3 -3
  54. package/dist/blocks/approvals/index.d.ts +4 -4
  55. package/dist/blocks/assets/index.d.ts +6 -6
  56. package/dist/blocks/assignment/index.d.ts +7 -7
  57. package/dist/blocks/attachments/index.d.ts +47 -5
  58. package/dist/blocks/attachments/index.js +55 -3
  59. package/dist/blocks/audit/index.d.ts +13 -13
  60. package/dist/blocks/audit/index.js +1 -1
  61. package/dist/blocks/automations/index.d.ts +25 -23
  62. package/dist/blocks/billable-time/index.d.ts +6 -6
  63. package/dist/blocks/billing/index.d.ts +9 -9
  64. package/dist/blocks/bookings/index.d.ts +4 -4
  65. package/dist/blocks/bulk/index.d.ts +4 -4
  66. package/dist/blocks/calendar/index.d.ts +5 -5
  67. package/dist/blocks/catalog/index.d.ts +6 -6
  68. package/dist/blocks/channels/index.d.ts +7 -7
  69. package/dist/blocks/collections/index.d.ts +6 -6
  70. package/dist/blocks/comments/index.d.ts +10 -10
  71. package/dist/blocks/compliance/index.d.ts +35 -19
  72. package/dist/blocks/compliance/index.js +38 -4
  73. package/dist/blocks/connectors/index.d.ts +4 -4
  74. package/dist/blocks/contacts/index.d.ts +53 -10
  75. package/dist/blocks/contacts/index.js +48 -5
  76. package/dist/blocks/content/index.d.ts +5 -5
  77. package/dist/blocks/contracts/index.d.ts +6 -6
  78. package/dist/blocks/courses/index.d.ts +22 -7
  79. package/dist/blocks/courses/index.js +11 -0
  80. package/dist/blocks/created-by/index.d.ts +2 -2
  81. package/dist/blocks/custom-fields/index.d.ts +7 -7
  82. package/dist/blocks/custom-fields/index.js +1 -1
  83. package/dist/blocks/data-lifecycle/index.d.ts +29 -12
  84. package/dist/blocks/data-lifecycle/index.js +16 -2
  85. package/dist/blocks/deals/index.d.ts +6 -6
  86. package/dist/blocks/dispatch/index.d.ts +6 -6
  87. package/dist/blocks/documents/index.d.ts +4 -4
  88. package/dist/blocks/domains/index.d.ts +6 -6
  89. package/dist/blocks/donations/index.d.ts +6 -6
  90. package/dist/blocks/drive/index.d.ts +224 -11
  91. package/dist/blocks/drive/index.js +269 -19
  92. package/dist/blocks/employees/index.d.ts +8 -8
  93. package/dist/blocks/enrichment/index.d.ts +6 -6
  94. package/dist/blocks/enrollments/index.d.ts +6 -6
  95. package/dist/blocks/entitlements/index.d.ts +6 -6
  96. package/dist/blocks/expenses/index.d.ts +5 -5
  97. package/dist/blocks/field-history/index.d.ts +6 -6
  98. package/dist/blocks/flags/index.d.ts +5 -5
  99. package/dist/blocks/forecasts/index.d.ts +6 -6
  100. package/dist/blocks/forms/index.d.ts +6 -6
  101. package/dist/blocks/goals/index.d.ts +5 -5
  102. package/dist/blocks/goals/index.js +1 -1
  103. package/dist/blocks/guests/index.d.ts +6 -6
  104. package/dist/blocks/guests/index.js +2 -2
  105. package/dist/blocks/hiring/index.d.ts +6 -6
  106. package/dist/blocks/identities/index.d.ts +5 -5
  107. package/dist/blocks/imports/index.d.ts +5 -5
  108. package/dist/blocks/inbox/index.d.ts +10 -10
  109. package/dist/blocks/incidents/index.d.ts +5 -5
  110. package/dist/blocks/index.d.ts +160 -10
  111. package/dist/blocks/index.js +19 -1
  112. package/dist/blocks/inventory/index.d.ts +6 -6
  113. package/dist/blocks/invoices/index.d.ts +14 -8
  114. package/dist/blocks/invoices/index.js +5 -3
  115. package/dist/blocks/knowledge/index.d.ts +4 -4
  116. package/dist/blocks/knowledge/index.js +1 -1
  117. package/dist/blocks/lead-scoring/index.d.ts +7 -7
  118. package/dist/blocks/leases/index.d.ts +6 -6
  119. package/dist/blocks/leave/index.d.ts +5 -5
  120. package/dist/blocks/ledger/index.d.ts +6 -6
  121. package/dist/blocks/mail-sync/index.d.ts +5 -5
  122. package/dist/blocks/memberships/index.d.ts +2 -2
  123. package/dist/blocks/memory/index.d.ts +4 -4
  124. package/dist/blocks/memory/index.js +1 -1
  125. package/dist/blocks/messaging/index.d.ts +11 -11
  126. package/dist/blocks/metrics/index.d.ts +6 -6
  127. package/dist/blocks/mfa/index.d.ts +2 -2
  128. package/dist/blocks/moderation/index.d.ts +6 -6
  129. package/dist/blocks/notifications/index.d.ts +17 -13
  130. package/dist/blocks/notifications/index.js +2 -0
  131. package/dist/blocks/numbering/index.d.ts +4 -4
  132. package/dist/blocks/oauth-server/index.d.ts +64 -38
  133. package/dist/blocks/oauth-server/index.js +6 -3
  134. package/dist/blocks/onboarding/index.d.ts +5 -5
  135. package/dist/blocks/orders/index.d.ts +7 -7
  136. package/dist/blocks/organizations/index.d.ts +8 -8
  137. package/dist/blocks/outbox/index.d.ts +4 -4
  138. package/dist/blocks/passes/index.d.ts +8 -8
  139. package/dist/blocks/permissions/index.d.ts +9 -8
  140. package/dist/blocks/permissions/index.js +3 -2
  141. package/dist/blocks/pipelines/index.d.ts +6 -6
  142. package/dist/blocks/posts/index.d.ts +5 -5
  143. package/dist/blocks/profiles/index.d.ts +4 -4
  144. package/dist/blocks/promotions/index.d.ts +5 -5
  145. package/dist/blocks/push/index.d.ts +8 -8
  146. package/dist/blocks/qualifications/index.d.ts +256 -0
  147. package/dist/blocks/qualifications/index.js +303 -0
  148. package/dist/blocks/queue/index.d.ts +14 -109
  149. package/dist/blocks/queue/index.js +13 -7
  150. package/dist/blocks/quotes/index.d.ts +20 -13
  151. package/dist/blocks/quotes/index.js +3 -2
  152. package/dist/blocks/rank/index.d.ts +4 -4
  153. package/dist/blocks/reactions/index.d.ts +9 -9
  154. package/dist/blocks/relations/index.d.ts +7 -7
  155. package/dist/blocks/reminders/index.d.ts +8 -8
  156. package/dist/blocks/reviews/index.d.ts +5 -5
  157. package/dist/blocks/risks/index.d.ts +303 -0
  158. package/dist/blocks/risks/index.js +376 -0
  159. package/dist/blocks/saved-views/index.d.ts +8 -8
  160. package/dist/blocks/scores/index.d.ts +5 -5
  161. package/dist/blocks/search/index.d.ts +7 -7
  162. package/dist/blocks/security-events/index.d.ts +7 -7
  163. package/dist/blocks/segments/index.d.ts +7 -7
  164. package/dist/blocks/sequences/index.d.ts +6 -6
  165. package/dist/blocks/service-accounts/index.d.ts +6 -6
  166. package/dist/blocks/service-accounts/index.js +1 -1
  167. package/dist/blocks/sessions/index.d.ts +2 -2
  168. package/dist/blocks/settings/index.d.ts +6 -6
  169. package/dist/blocks/share-links/index.d.ts +32 -7
  170. package/dist/blocks/share-links/index.js +37 -4
  171. package/dist/blocks/shifts/index.d.ts +334 -0
  172. package/dist/blocks/shifts/index.js +451 -0
  173. package/dist/blocks/shipments/index.d.ts +7 -7
  174. package/dist/blocks/signatures/index.d.ts +14 -6
  175. package/dist/blocks/signatures/index.js +3 -1
  176. package/dist/blocks/signing-keys/index.d.ts +4 -4
  177. package/dist/blocks/sla/index.d.ts +7 -7
  178. package/dist/blocks/sso/index.d.ts +6 -6
  179. package/dist/blocks/state-machine/index.d.ts +5 -5
  180. package/dist/blocks/subjects/index.d.ts +16 -8
  181. package/dist/blocks/subjects/index.js +114 -5
  182. package/dist/blocks/tags/index.d.ts +6 -6
  183. package/dist/blocks/tasks/index.d.ts +9 -9
  184. package/dist/blocks/teams/index.d.ts +4 -4
  185. package/dist/blocks/templates/index.d.ts +9 -9
  186. package/dist/blocks/time-tracking/index.d.ts +7 -7
  187. package/dist/blocks/timeline/index.d.ts +11 -11
  188. package/dist/blocks/timeline/index.js +2 -2
  189. package/dist/blocks/trash/index.d.ts +6 -6
  190. package/dist/blocks/undo/index.d.ts +4 -4
  191. package/dist/blocks/updated-at/index.d.ts +2 -2
  192. package/dist/blocks/usage/index.d.ts +4 -4
  193. package/dist/blocks/vercel-marketplace/index.d.ts +5 -5
  194. package/dist/blocks/versions/index.d.ts +6 -6
  195. package/dist/blocks/waitlist/index.d.ts +5 -5
  196. package/dist/blocks/webhooks/index.d.ts +13 -13
  197. package/dist/blocks/webhooks/index.js +2 -1
  198. package/dist/blocks/workflow-editor/index.d.ts +9 -9
  199. package/dist/blocks/workflow-editor/index.js +1 -1
  200. package/dist/blocks/workflows/index.d.ts +7 -7
  201. package/dist/{bookings-CHUzFwOI.d.ts → bookings-Du1lvUg1.d.ts} +3 -3
  202. package/dist/{bucket-CrsJNHzi.d.ts → bucket-CjIhrluq.d.ts} +1 -1
  203. package/dist/cache-tags-C5Oivuxo.js +27 -0
  204. package/dist/{sign-in-D5Bg7R47.d.ts → cache-tags-DDWP8yDs.d.ts} +16 -2
  205. package/dist/{channel-B_kufDZy.d.ts → channel-DW9iIWgu.d.ts} +3 -1
  206. package/dist/chat-sdk/index.d.ts +6 -6
  207. package/dist/claims/index.d.ts +6 -6
  208. package/dist/claims/index.js +2 -2
  209. package/dist/cli/{add-uwUI80aZ.js → add-B6TTIKos.js} +23 -5
  210. package/dist/cli/{add-fdZAY8C_.js → add-CYH9OE6d.js} +13 -13
  211. package/dist/cli/add-DsgNHrEH.js +1 -0
  212. package/dist/cli/{app-table-files-BR_7lT4u.js → app-table-files-Br1VQgjE.js} +14 -6
  213. package/dist/cli/{app-tables-DoxrhJb1.js → app-tables-FRO1l5rT.js} +2 -2
  214. package/dist/cli/{backfill-BTMgDL6X.js → backfill-BgGBBidH.js} +4 -4
  215. package/dist/cli/bin.js +1 -1
  216. package/dist/cli/{blocks-BgPbXNhB.js → blocks-CX_172Ja.js} +1 -1
  217. package/dist/cli/{blocks-Bj0LS3rF.js → blocks-DZrlz-13.js} +2 -2
  218. package/dist/cli/{cache-CEGpAmXJ.js → cache-BgiLj67N.js} +1 -1
  219. package/dist/cli/{codemod-CaXGpQ10.js → codemod-C86T5p1T.js} +97 -13
  220. package/dist/cli/{command-67WobzTC.js → command-DtQ7P9XP.js} +6 -0
  221. package/dist/cli/{completion-C3nMZgUZ.js → completion-9tK4vX1l.js} +2 -2
  222. package/dist/cli/{completion-Dm0S3ub0.js → completion-DUnYq3GC.js} +2 -2
  223. package/dist/cli/{completion-DSrus7H1.js → completion-djG61QR0.js} +1 -1
  224. package/dist/cli/{config-CrwCec-B.js → config-05wlBDsJ.js} +1 -1
  225. package/dist/cli/{config-DrrkMihk.js → config-Cb4swJ2X.js} +66 -15
  226. package/dist/cli/{config-cbK-wiNs.js → config-CwcsseeT.js} +1 -1
  227. package/dist/cli/{content-mapper-BJRfCnFX.js → content-mapper-DIO-tycM.js} +2 -2
  228. package/dist/cli/{db-bK5eCLaE.js → db-BND9MSu1.js} +3 -3
  229. package/dist/cli/{doctor-CHQDLcwL.js → doctor-BqS2dAI-.js} +354 -234
  230. package/dist/cli/{env-CCT-dMFm.js → env-2zOK0skq.js} +1 -1
  231. package/dist/cli/env-NHlaYmXG.js +1 -0
  232. package/dist/cli/{gen-DSK152A3.js → gen-CygGjwk4.js} +16 -16
  233. package/dist/cli/index.d.ts +1 -1
  234. package/dist/cli/index.js +8 -8
  235. package/dist/cli/{init-CPC1ceqC.js → init-BMDuL671.js} +10 -10
  236. package/dist/cli/{keys-Dj5sJNj7.js → keys-BUl10CEQ.js} +1 -1
  237. package/dist/cli/{live-BFXisTDf.js → live-BRhu6mk8.js} +2 -2
  238. package/dist/cli/{mcp-CrulrTBs.js → mcp-DzfSUgqc.js} +3 -3
  239. package/dist/cli/{metadata-yePOltZY.js → metadata-Ao_uwhbL.js} +3 -3
  240. package/dist/cli/{migrate-kjYx7du-.js → migrate-BySeyvYY.js} +2 -2
  241. package/dist/cli/{migration-safety-DnvCYRsw.js → migration-safety-CtSYqXjZ.js} +2 -2
  242. package/dist/cli/{migrations-ZYHA0gks.js → migrations-Cnf7TlYZ.js} +2 -2
  243. package/dist/cli/{module-migration-Du7UHsO9.js → module-migration-CKKOcrG0.js} +2 -2
  244. package/dist/cli/{moved-CY0yDtAr.js → moved-QZ-btdFz.js} +1 -1
  245. package/dist/cli/{parse-yAC-NFMq.js → parse-Bd_CRjbn.js} +1 -1
  246. package/dist/cli/{powersync-BOxy1_xW.js → powersync-BeeW0i26.js} +184 -67
  247. package/dist/cli/powersync-miOelRmt.js +1 -0
  248. package/dist/cli/{print-B4OqfSML.js → print-Sdb6L0v4.js} +2 -2
  249. package/dist/cli/{providers-KYOKi_jp.js → providers-BlkYmOf-.js} +1 -1
  250. package/dist/cli/{prune-workflows-7JISyAI7.js → prune-workflows-iRTaOxbs.js} +4 -4
  251. package/dist/cli/{remove-DvncDSRp.js → remove-DvzSG08w.js} +6 -6
  252. package/dist/cli/{render-C6dQ0C0Y.js → render-svtBPq7R.js} +118 -18
  253. package/dist/cli/{run-DWDRg4vp.js → run-BHhVGtd_.js} +46 -45
  254. package/dist/cli/{run-BYiApqFR.js → run-CnafzCVh.js} +14 -14
  255. package/dist/cli/{run-DX4X7xqV.js → run-WD6LyrAZ.js} +2 -2
  256. package/dist/cli/{seed-DSC6f0oh.js → seed-Bc_q0nFf.js} +12 -4
  257. package/dist/cli/seed-DT_k-CGR.js +1 -0
  258. package/dist/cli/{shared-DC86fQYk.js → shared-By7_hqFX.js} +1 -1
  259. package/dist/cli/{skills-B5p6bDwe.js → skills-CvEA4xdj.js} +1 -1
  260. package/dist/cli/{snapshot-CwCG_YX2.js → snapshot-T8fVRXqA.js} +3 -3
  261. package/dist/cli/{source-args-Bz5QQne2.js → source-args-BiySywDB.js} +1 -1
  262. package/dist/cli/{source-DDxRHVzk.js → source-xL7qYX0r.js} +1 -1
  263. package/dist/cli/{spec-CvKJ6GpI.js → spec-BH7BDCnA.js} +1 -1
  264. package/dist/cli/{spec-Cnxqc7kC.js → spec-CU_OO1Gq.js} +3 -3
  265. package/dist/cli/{sql-layout-BwbfVSR8.js → sql-layout-C_-LNpAw.js} +32 -13
  266. package/dist/cli/{stack-CQXLe5j0.js → stack-DM3keIfh.js} +1 -1
  267. package/dist/cli/{sync-lpbLqJly.js → sync-Bl4Kf4_T.js} +4 -4
  268. package/dist/cli/{table-BIQA9Hdt.js → table-DocogEpr.js} +2 -2
  269. package/dist/cli/{upgrade-Cq4EFBH7.js → upgrade-BLi83wT-.js} +5 -5
  270. package/dist/cli/{upgrade-34ZODJZj.js → upgrade-kce809Am.js} +3 -3
  271. package/dist/cli/{version-BGN5319Z.js → version-D8HDt2fH.js} +1 -1
  272. package/dist/client/index.d.ts +8 -7
  273. package/dist/client/index.js +2 -1
  274. package/dist/client/native/index.d.ts +8 -31
  275. package/dist/client/native/index.js +3 -2
  276. package/dist/{cloud-event-BjgxkfJJ.d.ts → cloud-event-Dxy5EZVG.d.ts} +1 -1
  277. package/dist/commerce/index.d.ts +1 -1
  278. package/dist/{compiler-BOW4yPcW.d.ts → compiler-CJorTlU7.d.ts} +2 -2
  279. package/dist/{composite-DPN4SFud.d.ts → composite-DNDFvcQc.d.ts} +7 -7
  280. package/dist/{composite-BidYZWZY.js → composite-c7POXFs3.js} +2 -2
  281. package/dist/config/index.d.ts +6 -6
  282. package/dist/config/index.js +5 -5
  283. package/dist/{config-BN17nVp1.js → config--zZjnkYA.js} +1 -1
  284. package/dist/{config-C-eXOuhp.js → config-CAbv8kRz.js} +21 -8
  285. package/dist/{connectors-OMJkoAP6.d.ts → connectors-BQtx-Llh.d.ts} +4 -4
  286. package/dist/{context-Dga2sgyx.d.ts → context-Lhw7PgdA.d.ts} +88 -10
  287. package/dist/contract/index.d.ts +11 -10
  288. package/dist/{controller-BFOCK5AG.d.ts → controller-CouRuczb.d.ts} +1 -1
  289. package/dist/{controller-y1kSMuCU.js → controller-DxzV9X72.js} +1 -1
  290. package/dist/{conversion-BShzA-u-.d.ts → conversion-G2ODS617.d.ts} +1 -1
  291. package/dist/create/index.d.ts +3 -3
  292. package/dist/create/index.js +18 -3
  293. package/dist/create/lite/index.d.ts +4 -4
  294. package/dist/create/lite/index.js +3 -3
  295. package/dist/credentials/index.d.ts +4 -4
  296. package/dist/{data-engine-CX1oYDZl.d.ts → data-engine-ZcGeVz1i.d.ts} +7 -1
  297. package/dist/{data-hooks-BToeAcQ_.js → data-hooks-DDEPFoWv.js} +44 -3
  298. package/dist/{define-C_He1bQO.d.ts → db-blocks-Dgu-HpFb.d.ts} +299 -299
  299. package/dist/{define-block-DBD7yhQg.d.ts → define-block-eiBbZ3mM.d.ts} +363 -363
  300. package/dist/{delegation-C2rLpkHO.js → delegation-C0EQp3ss.js} +1 -1
  301. package/dist/{documents-CNVPrE_0.d.ts → documents-Ciijx56T.d.ts} +3 -3
  302. package/dist/edge/index.d.ts +9 -9
  303. package/dist/edge/index.js +6 -7
  304. package/dist/elysia/index.d.ts +1 -1
  305. package/dist/elysia/index.js +1 -1
  306. package/dist/{email-BRm6wMWQ.d.ts → email-_X1-FD9h.d.ts} +1 -1
  307. package/dist/{embeddings-C2PBJ2Lx.d.ts → embeddings-DJs1UeQt.d.ts} +1 -1
  308. package/dist/{ended-BwpmNC5k.d.ts → ended-XY1q20JM.d.ts} +2 -2
  309. package/dist/{entitlements-C5k_9hHt.d.ts → entitlements-D_vas3Yl.d.ts} +2 -2
  310. package/dist/{envelope-CapD-JtH.js → envelope-CSb4c7xn.js} +1 -1
  311. package/dist/eve/index.d.ts +9 -9
  312. package/dist/eve/index.js +2 -2
  313. package/dist/{eve-CtQd4iaO.d.ts → eve-Ck586Yfh.d.ts} +2 -2
  314. package/dist/events/index.d.ts +3 -3
  315. package/dist/{events-DddDlibJ.d.ts → events-sK2YdMhE.d.ts} +40 -3
  316. package/dist/{executor-CxMHiDp_.d.ts → executor-DAQLygMX.d.ts} +4 -4
  317. package/dist/{executor-DL7cZ-3T.d.ts → executor-h4VT8TNz.d.ts} +1 -1
  318. package/dist/{executor-DoSNec_H.d.ts → executor-rs231gO_.d.ts} +1 -1
  319. package/dist/expo/index.d.ts +51 -8
  320. package/dist/expo/index.js +89 -4
  321. package/dist/{field-errors-LVBXokQN.d.ts → field-errors-BFLehpue.d.ts} +25 -13
  322. package/dist/{field-formats-DVukMbRa.d.ts → field-formats-BJeg-rv8.d.ts} +13 -3
  323. package/dist/{field-formats-Cap-V7UP.js → field-formats-sLYMh1ZK.js} +52 -4
  324. package/dist/{fields-CP46SPNE.d.ts → fields-OVgN0HOy.d.ts} +1 -1
  325. package/dist/{filter-evaluate-Bkbb0nuQ.d.ts → filter-evaluate-BzyMp2LO.d.ts} +1 -1
  326. package/dist/{filter-query-Xj40B5KT.d.ts → filter-query-BcheQ5zK.d.ts} +1 -1
  327. package/dist/{flags-BrXfCmGB.d.ts → flags-D71LTDHR.d.ts} +2 -2
  328. package/dist/flags-sdk/index.d.ts +2 -2
  329. package/dist/{framework-z3KTPRjk.js → framework-DvtET86P.js} +1 -1
  330. package/dist/{framework-B6JAPr1i.d.ts → framework-v4jPUZJ-.d.ts} +8 -8
  331. package/dist/{gateway-DJX-XUWl.d.ts → gateway-BEDpSlLD.d.ts} +3 -3
  332. package/dist/guest-actions-Du1ph4dE.js +11 -0
  333. package/dist/h3/index.d.ts +1 -1
  334. package/dist/h3/index.js +1 -1
  335. package/dist/h3/v1/index.d.ts +1 -1
  336. package/dist/h3/v1/index.js +1 -1
  337. package/dist/hono/index.d.ts +11 -11
  338. package/dist/hono/index.js +6 -7
  339. package/dist/{inbox-DiQ8KhG8.d.ts → inbox-nk8pqL8V.d.ts} +5 -5
  340. package/dist/{index-1uV69AZq.d.ts → index-BKDvrKDl.d.ts} +1 -1
  341. package/dist/{index-1_-lg9Gc.d.ts → index-BRFHDjCG.d.ts} +21 -7
  342. package/dist/{index-D-SIdOiL.d.ts → index-BoVZxiin.d.ts} +15 -15
  343. package/dist/{index-DjJUamhw.d.ts → index-CJfDiWQf.d.ts} +7 -4
  344. package/dist/{index-CjN6kzvL.d.ts → index-Cc2q2eaq.d.ts} +20 -7
  345. package/dist/{index-BA8sPQ49.d.ts → index-D2gezcOV.d.ts} +5 -5
  346. package/dist/{index-CvLTqmdq.d.ts → index-D430cWV7.d.ts} +1 -1
  347. package/dist/{index-DBbdaYAH.d.ts → index-DYSGzEkY.d.ts} +1 -1
  348. package/dist/{index-DwP65vFk.d.ts → index-eZ8oW-DV.d.ts} +5 -5
  349. package/dist/{index-DUmsXPdh.d.ts → index-nfYh7R5C.d.ts} +5 -5
  350. package/dist/{index-BhmjjkMu.d.ts → index-wRn2y3XS.d.ts} +6 -6
  351. package/dist/index.d.ts +9 -8
  352. package/dist/index.js +3 -2
  353. package/dist/{instances-Bx94JGSW.js → instances-BUhbreNT.js} +1606 -181
  354. package/dist/{kit-D5rRAKWJ.js → kit-C-uC7_aG.js} +106 -4
  355. package/dist/{kit-lHFpu2_1.d.ts → kit-CmO46iau.d.ts} +4 -4
  356. package/dist/{knowledge-DtECa_QW.d.ts → knowledge-BnKrvPT6.d.ts} +27 -9
  357. package/dist/{knowledge-CJnZOaix.js → knowledge-BxFkHBTc.js} +14 -3
  358. package/dist/lint/index.d.ts +1 -1
  359. package/dist/list/index.d.ts +3 -3
  360. package/dist/{list-query-BkbLV-Yc.d.ts → list-query-CnD6uNzs.d.ts} +3 -3
  361. package/dist/mapper/bin.js +8 -7
  362. package/dist/mcp/index.d.ts +3 -3
  363. package/dist/mcp/index.js +4 -5
  364. package/dist/mcp/sdk/index.d.ts +19 -8
  365. package/dist/mcp/sdk/index.js +21 -12
  366. package/dist/{messaging-CpQIhkFi.d.ts → messaging-2-SIPAp-.d.ts} +4 -4
  367. package/dist/nestjs/index.d.ts +2 -2
  368. package/dist/nestjs/index.js +1 -1
  369. package/dist/next/client/index.d.ts +1 -1
  370. package/dist/next/index.d.ts +29 -76
  371. package/dist/next/index.js +31 -119
  372. package/dist/node/index.d.ts +2 -2
  373. package/dist/node/index.js +1 -1
  374. package/dist/{operations-J0PkKTaF.d.ts → operations-kNq7cGI7.d.ts} +1 -1
  375. package/dist/{options-CJR59q8s.js → options-B1efbeOv.js} +5 -1
  376. package/dist/options-B3dQnXgp.js +6 -0
  377. package/dist/{options-ByxOMSXu.js → options-BEv5xfPg.js} +3 -1
  378. package/dist/options-BZ5TzeFN.js +12 -0
  379. package/dist/options-CKMLVUel.js +8 -0
  380. package/dist/options-Cdr6Ac4-.d.ts +12 -0
  381. package/dist/options-CgIKw9s6.js +9 -0
  382. package/dist/{options-DUNUGuhM.js → options-CpSqyI8k.js} +4 -1
  383. package/dist/options-D1-2o7kO.d.ts +43 -0
  384. package/dist/{options-CjocPkX1.js → options-EdzV163Y.js} +3 -0
  385. package/dist/orpc/index.d.ts +27 -16
  386. package/dist/orpc/index.js +29 -10
  387. package/dist/otel/index.d.ts +3 -3
  388. package/dist/otel/index.js +5 -5
  389. package/dist/{outbox-Cpxpzcue.d.ts → outbox-CcISFwgE.d.ts} +4 -4
  390. package/dist/{permissions-Cp2qvVJo.d.ts → permissions-XrrAYkXm.d.ts} +1 -1
  391. package/dist/{permissions-controller-B4uI5IPH.js → permissions-controller-DYm6sF8k.js} +6 -2
  392. package/dist/{pool-BJAjQcrJ.d.ts → pool-CQuNr7Nq.d.ts} +3 -3
  393. package/dist/{ports-C61eesjD.d.ts → ports-CvOsUmuD.d.ts} +1 -1
  394. package/dist/postgres/index.d.ts +4 -4
  395. package/dist/{postgrest-Bjain6nf.d.ts → postgrest-CF0ekbC-.d.ts} +1 -1
  396. package/dist/powersync/index.d.ts +95 -19
  397. package/dist/powersync/index.js +136 -15
  398. package/dist/preset/index.d.ts +3 -3
  399. package/dist/preset/index.js +3 -3
  400. package/dist/{preset-yRJgGbn9.js → preset-DFZn_TLi.js} +3 -3
  401. package/dist/{project-ps9mOsLx.js → project-BwmNYaZt.js} +13 -7
  402. package/dist/{provider-CVlXXbda.d.ts → provider-CgYoyX_d.d.ts} +1 -1
  403. package/dist/{push-token-2LRdwl_8.d.ts → push-token-taE-3JNT.d.ts} +1 -1
  404. package/dist/query/index.d.ts +2 -2
  405. package/dist/query/index.js +30 -2
  406. package/dist/rate-limit/index.d.ts +2 -0
  407. package/dist/rate-limit/index.js +1 -0
  408. package/dist/rate-limit-BJyp7iAx.d.ts +109 -0
  409. package/dist/rate-limit-DLZWqcIS.js +94 -0
  410. package/dist/rate-limit-DyQbVEBE.js +123 -0
  411. package/dist/rate-limit-lGysIP9Z.d.ts +79 -0
  412. package/dist/react/index.d.ts +10 -11
  413. package/dist/react/index.js +4 -4
  414. package/dist/react/native/index.d.ts +39 -2
  415. package/dist/react/native/index.js +48 -3
  416. package/dist/react/server.d.ts +9 -10
  417. package/dist/react/server.js +3 -3
  418. package/dist/react/session.d.ts +64 -2
  419. package/dist/react/session.js +1 -1
  420. package/dist/{react-DZ7AW2yf.js → react-AC0iYStn.js} +15 -8
  421. package/dist/react-router/index.d.ts +6 -6
  422. package/dist/react-router/index.js +4 -5
  423. package/dist/realtime/index.d.ts +6 -6
  424. package/dist/realtime/index.js +1 -1
  425. package/dist/{record-form-C-1TPtMG.d.ts → record-form-BAIG-cdw.d.ts} +1 -1
  426. package/dist/{record-type-oQxekQTX.js → record-type-BID6K9Vk.js} +1 -1
  427. package/dist/{recordings-BVuri85k.d.ts → recordings-fWDldPuP.d.ts} +1 -1
  428. package/dist/records/index.d.ts +9 -9
  429. package/dist/records/index.js +5 -5
  430. package/dist/{refusal-CjUUBfhY.d.ts → refusal-D19i-uE3.d.ts} +3 -3
  431. package/dist/{refusal-rnbr6RZD.js → refusal-lgW07wlX.js} +1 -2
  432. package/dist/renames-BPU-FSIn.d.ts +36 -0
  433. package/dist/renames-BoN2IHI7.js +161 -0
  434. package/dist/representatives-DRNDAf0i.js +22 -0
  435. package/dist/{resolve-XlMQRUeG.d.ts → resolve-C_VNGFjz.d.ts} +8 -1
  436. package/dist/{resolve-CZV31iCm.js → resolve-nj0eZ44A.js} +38 -1
  437. package/dist/{resource-COaS9_i8.js → resource--iTRgH4N.js} +1 -1
  438. package/dist/{resource-CaYpB07K.d.ts → resource-C_rLLwNU.d.ts} +1 -1
  439. package/dist/{resource-execute-B7-QaS6R.d.ts → resource-execute-CoadG2g7.d.ts} +2 -2
  440. package/dist/{resource-types-CF3Uc6OW.d.ts → resource-types-e7vzPJ7t.d.ts} +4 -4
  441. package/dist/{resources-DnHSmJIM.d.ts → resources-DSqe-GbC.d.ts} +2 -2
  442. package/dist/{resources-DhiK3yLO.js → resources-DqEg3HBk.js} +1 -1
  443. package/dist/{respond-D7kUatjc.d.ts → respond-C8rBdIBZ.d.ts} +1 -1
  444. package/dist/{sales-lines-wQHuL-pa.d.ts → sales-lines-DFQ9oIO-.d.ts} +1 -1
  445. package/dist/{sandboxes-DKgJZYUZ.d.ts → sandboxes-Xh_uNXU4.d.ts} +1 -1
  446. package/dist/{scores-BXuSVczw.d.ts → scores-DaGD79BY.d.ts} +5 -5
  447. package/dist/server/index.d.ts +29 -38
  448. package/dist/server/index.js +11 -11
  449. package/dist/{server-types-DpI82uNq.d.ts → server-types-Djx3Eb2G.d.ts} +91 -17
  450. package/dist/{session-s-mUZ8RQ.d.ts → session-BgxLbDYu.d.ts} +6 -6
  451. package/dist/{session-BjPYE4dT.js → session-CaoAgv8e.js} +58 -51
  452. package/dist/{session-status-CJjTuFtA.d.ts → session-status-C4g0QoB_.d.ts} +2 -2
  453. package/dist/{sign-in-k2lXELeC.js → sign-in-Cl7vhgRn.js} +1 -1
  454. package/dist/{sign-in-djgvab1X.js → sign-in-Dhd16x_j.js} +1 -1
  455. package/dist/{signers-UANxMfH-.d.ts → signers-CtrTcr3i.d.ts} +4 -4
  456. package/dist/{signing-keys-DhBSWFy_.d.ts → signing-keys-BAyNlJE4.d.ts} +2 -2
  457. package/dist/solid/index.d.ts +12 -12
  458. package/dist/solid/index.js +3 -3
  459. package/dist/solid-start/index.d.ts +6 -6
  460. package/dist/solid-start/index.js +4 -5
  461. package/dist/spec/index.d.ts +3 -3
  462. package/dist/spec/index.js +2 -2
  463. package/dist/{spec-pins-FKUzgF6K.js → spec-pins-C-1kGh8u.js} +2 -1
  464. package/dist/{spec-pins-CuQ2anBw.d.ts → spec-pins-DGbByPMT.d.ts} +6 -1
  465. package/dist/sql/index.d.ts +6 -6
  466. package/dist/sql/index.js +5 -5
  467. package/dist/{sql-CWzlxS6f.js → sql-TpANPmq7.js} +9994 -2373
  468. package/dist/sqlite/index.d.ts +3 -3
  469. package/dist/{sso-Frh3sbJ1.d.ts → sso-BVYSNVmk.d.ts} +3 -3
  470. package/dist/ssr/index.d.ts +4 -4
  471. package/dist/ssr/index.js +1 -1
  472. package/dist/storage/index.d.ts +3 -3
  473. package/dist/storage/index.js +1 -1
  474. package/dist/streams/index.d.ts +1 -1
  475. package/dist/{subject-readers-D1Km_Q42.d.ts → subject-readers-yxQ3r1qw.d.ts} +2 -2
  476. package/dist/{subjects-BGwLJ3IB.d.ts → subjects-BpUQpZhk.d.ts} +30 -2
  477. package/dist/subjects-D3BE9Q8J.d.ts +173 -0
  478. package/dist/{support-Dj5V2WTs.d.ts → support-B1n33r32.d.ts} +4 -4
  479. package/dist/{support-view-DKZkZeM5.d.ts → support-view-CkN2Wr1r.d.ts} +1 -1
  480. package/dist/svelte/index.d.ts +11 -11
  481. package/dist/svelte/index.js +3 -3
  482. package/dist/sveltekit/index.d.ts +7 -7
  483. package/dist/sveltekit/index.js +4 -5
  484. package/dist/{tags-BihwKkTT.d.ts → tags-BCjWVMKO.d.ts} +1 -1
  485. package/dist/tanstack-db/index.d.ts +3 -3
  486. package/dist/tanstack-start/index.d.ts +6 -6
  487. package/dist/tanstack-start/index.js +4 -5
  488. package/dist/{tenant-P7mo0ulH.d.ts → tenant-CBWFqFy0.d.ts} +1 -1
  489. package/dist/testing/index.d.ts +72 -42
  490. package/dist/testing/index.js +61 -9
  491. package/dist/{timeline-Bs-FGMIJ.js → timeline-B3pBRGv9.js} +1 -1
  492. package/dist/{timeline-BB9fKT_r.d.ts → timeline-Cy7XP2pq.d.ts} +5 -5
  493. package/dist/{topic-k17VvXRj.js → topic-BC3p90lS.js} +1 -1
  494. package/dist/{topic-CjKlzHD-.d.ts → topic-BWJAJkF3.d.ts} +5 -5
  495. package/dist/{types-D--4dv5K.d.ts → types-B5qUEVWI.d.ts} +26 -20
  496. package/dist/{types-z31g0-5T.d.ts → types-B_2C7bqG.d.ts} +5 -5
  497. package/dist/{types-DU_nNO7U.d.ts → types-BgvKQUuy.d.ts} +3 -3
  498. package/dist/{types-LLCyr-xs.d.ts → types-ByApBdXv.d.ts} +5 -5
  499. package/dist/{types-BzIYSSWK.d.ts → types-CF5j7kOm.d.ts} +4 -2
  500. package/dist/{types-kq8S5HVE.d.ts → types-CeV22tnf.d.ts} +1 -1
  501. package/dist/{types-VwM7DBvC.d.ts → types-Dlir1n-q.d.ts} +2 -2
  502. package/dist/{types-DCzgSAlU.d.ts → types-sBLcw65Z.d.ts} +5 -5
  503. package/dist/{undo-BCQMqIQN.d.ts → undo-CbLZkEny.d.ts} +2 -2
  504. package/dist/{usage-CJDj5j15.d.ts → usage-BcD0X7qJ.d.ts} +4 -4
  505. package/dist/{vault-CbhvnoVC.d.ts → vault-BVLUu_Ph.d.ts} +2 -2
  506. package/dist/vercel-connect/index.d.ts +1 -1
  507. package/dist/vercel-sandbox/index.d.ts +2 -2
  508. package/dist/{verify-Cpc1upDA.d.ts → verify-DlKjgAEj.d.ts} +2 -2
  509. package/dist/{view-eHgOOyRS.d.ts → view-GSwP0y5o.d.ts} +27 -3
  510. package/dist/vue/index.d.ts +12 -12
  511. package/dist/vue/index.js +3 -3
  512. package/dist/{watch-topic-jqBMNMs3.d.ts → watch-topic-BfaaK5SW.d.ts} +1 -1
  513. package/dist/{rate-limit-BJ4EMdAy.js → webhook-inbox-C94C_zIV.js} +3 -119
  514. package/dist/workflow-sdk/builder/index.d.ts +3 -3
  515. package/dist/workflow-sdk/builder/index.js +1 -1
  516. package/dist/workflow-sdk/index.d.ts +1 -1
  517. package/dist/workflow-sdk/index.js +1 -1
  518. package/dist/workflow-sdk/world/index.d.ts +1 -1
  519. package/dist/workflow-sdk/world/index.js +1 -1
  520. package/dist/{workflow-sdk-q2jnEaAJ.js → workflow-sdk-CZa83j_U.js} +1 -1
  521. package/dist/{workflow-sdk-DzKQo265.d.ts → workflow-sdk-DiDsEArJ.d.ts} +3 -3
  522. package/dist/{workflow-sdk-Bps7tpOv.js → workflow-sdk-DmHaJHUL.js} +170 -115
  523. package/dist/{workflows-D7HvWeNu.d.ts → workflows-D1Ax0qSC.d.ts} +7 -7
  524. package/dist/yjs/index.d.ts +2 -2
  525. package/dist/yjs/index.js +1 -1
  526. package/package.json +17 -1
  527. package/schemas/config-v1.json +225 -3
  528. package/schemas/design-v1.json +7 -1
  529. package/schemas/doctor-report-v1.json +3 -0
  530. package/skills/better-supabase/SKILL.md +3 -1
  531. package/skills/better-supabase/references/ui-recipes.md +1189 -144
  532. package/skills/better-supabase-api/SKILL.md +1 -1
  533. package/skills/better-supabase-auth/SKILL.md +26 -2
  534. package/skills/better-supabase-auth/references/native.md +115 -0
  535. package/dist/cli/add-CjSPssgL.js +0 -1
  536. package/dist/cli/env-AFfMXxWw.js +0 -1
  537. package/dist/cli/powersync-BurpZLJB.js +0 -1
  538. package/dist/cli/seed-CLlvrV8I.js +0 -1
  539. package/dist/guest-actions-CEwttioE.js +0 -8
  540. package/dist/impersonation-BOCJcsmS.d.ts +0 -26
  541. package/dist/options-B7Pl708M.js +0 -8
  542. package/dist/options-B9w_Y08G.d.ts +0 -6
  543. package/dist/rate-limit-C89Yzwd9.d.ts +0 -48
  544. package/dist/rate-limit-DXJbLVg0.js +0 -48
  545. package/dist/respond-8A3EOo61.js +0 -106
  546. package/dist/session-JV1z0kxa.d.ts +0 -77
  547. package/dist/subjects-DNFE2rMl.d.ts +0 -86
@@ -1,4 +1,4 @@
1
- import { i as FIELD_FORMAT_NAMES, r as FIELD_FORMATS } from "./field-formats-Cap-V7UP.js";
1
+ import { a as FIELD_FORMAT_NAMES, i as FIELD_FORMATS } from "./field-formats-sLYMh1ZK.js";
2
2
  // src/config/blocks.ts
3
3
  const BLOCK_SCOPES = [
4
4
  "tenant",
@@ -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 ?? {},
@@ -148,7 +149,7 @@ const PRESET_CATALOG = {
148
149
  {
149
150
  "name": "idempotency",
150
151
  "title": "Idempotency keys",
151
- "category": "developer",
152
+ "category": "automation",
152
153
  "requires": [],
153
154
  "integrates": [],
154
155
  "manifest": "idempotency"
@@ -156,7 +157,7 @@ const PRESET_CATALOG = {
156
157
  {
157
158
  "name": "webhook-inbox",
158
159
  "title": "Webhook inbox",
159
- "category": "developer",
160
+ "category": "automation",
160
161
  "requires": [],
161
162
  "integrates": ["data-lifecycle"],
162
163
  "manifest": "webhook-inbox",
@@ -222,7 +223,7 @@ const PRESET_CATALOG = {
222
223
  {
223
224
  "name": "rate-limit",
224
225
  "title": "Write rate limits",
225
- "category": "developer",
226
+ "category": "automation",
226
227
  "requires": [],
227
228
  "integrates": [],
228
229
  "manifest": "rate-limit"
@@ -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"]
@@ -2491,6 +2505,7 @@ const PRESET_CATALOG = {
2491
2505
  "status": "status",
2492
2506
  "approval": "approval_request_id",
2493
2507
  "message": "message",
2508
+ "meaning": "meaning",
2494
2509
  "requestedBy": "requested_by",
2495
2510
  "createdAt": "created_at",
2496
2511
  "completedAt": "completed_at"
@@ -2705,7 +2720,8 @@ const PRESET_CATALOG = {
2705
2720
  "outbox",
2706
2721
  "audit",
2707
2722
  "notifications",
2708
- "inbox"
2723
+ "inbox",
2724
+ "relations"
2709
2725
  ],
2710
2726
  "manifest": "contacts",
2711
2727
  "scopes": ["tenant"],
@@ -2786,9 +2802,9 @@ const PRESET_CATALOG = {
2786
2802
  }
2787
2803
  },
2788
2804
  "keys": {
2789
- "read": "parties.read",
2790
- "write": "parties.write",
2791
- "manage": "parties.manage"
2805
+ "read": "contacts.read",
2806
+ "write": "contacts.write",
2807
+ "manage": "contacts.manage"
2792
2808
  }
2793
2809
  }
2794
2810
  },
@@ -2849,9 +2865,9 @@ const PRESET_CATALOG = {
2849
2865
  }
2850
2866
  } },
2851
2867
  "keys": {
2852
- "read": "engagements.read",
2853
- "write": "engagements.write",
2854
- "manage": "engagements.manage"
2868
+ "read": "activities.read",
2869
+ "write": "activities.write",
2870
+ "manage": "activities.manage"
2855
2871
  }
2856
2872
  }
2857
2873
  },
@@ -3094,9 +3110,9 @@ const PRESET_CATALOG = {
3094
3110
  }
3095
3111
  },
3096
3112
  "keys": {
3097
- "read": "work_items.read",
3098
- "write": "work_items.write",
3099
- "manage": "work_items.manage"
3113
+ "read": "tasks.read",
3114
+ "write": "tasks.write",
3115
+ "manage": "tasks.manage"
3100
3116
  }
3101
3117
  }
3102
3118
  },
@@ -3257,6 +3273,7 @@ const PRESET_CATALOG = {
3257
3273
  "discountBps": "discount_bps",
3258
3274
  "discountAmount": "discount_amount",
3259
3275
  "pricesIncludeTax": "prices_include_tax",
3276
+ "archivedAt": "archived_at",
3260
3277
  "createdBy": "created_by",
3261
3278
  "createdAt": "created_at",
3262
3279
  "updatedAt": "updated_at",
@@ -3363,8 +3380,8 @@ const PRESET_CATALOG = {
3363
3380
  }
3364
3381
  } },
3365
3382
  "keys": {
3366
- "read": "targets.read",
3367
- "manage": "targets.manage"
3383
+ "read": "goals.read",
3384
+ "manage": "goals.manage"
3368
3385
  }
3369
3386
  }
3370
3387
  },
@@ -3528,7 +3545,7 @@ const PRESET_CATALOG = {
3528
3545
  "keys": {
3529
3546
  "read": "employees.read",
3530
3547
  "write": "employees.write",
3531
- "viewSensitive": "employees.view_sensitive"
3548
+ "viewSensitive": "employees.read_sensitive"
3532
3549
  }
3533
3550
  }
3534
3551
  },
@@ -3838,10 +3855,10 @@ const PRESET_CATALOG = {
3838
3855
  }
3839
3856
  } },
3840
3857
  "keys": {
3841
- "read": "rules.read",
3842
- "edit": "rules.edit",
3843
- "publish": "rules.publish",
3844
- "admin": "rules.admin"
3858
+ "read": "automations.read",
3859
+ "edit": "automations.write",
3860
+ "publish": "automations.publish",
3861
+ "admin": "automations.manage"
3845
3862
  }
3846
3863
  }
3847
3864
  },
@@ -4168,7 +4185,8 @@ const PRESET_CATALOG = {
4168
4185
  "audit",
4169
4186
  "invoices",
4170
4187
  "bookings",
4171
- "contacts"
4188
+ "contacts",
4189
+ "relations"
4172
4190
  ],
4173
4191
  "manifest": "guests",
4174
4192
  "scopes": ["tenant"],
@@ -5045,6 +5063,8 @@ const PRESET_CATALOG = {
5045
5063
  "description": "description",
5046
5064
  "owner": "owner_id",
5047
5065
  "applicable": "applicable",
5066
+ "source": "source",
5067
+ "jurisdiction": "jurisdiction",
5048
5068
  "createdAt": "created_at",
5049
5069
  "updatedAt": "updated_at"
5050
5070
  }
@@ -5056,6 +5076,7 @@ const PRESET_CATALOG = {
5056
5076
  "tenant": "tenant_id",
5057
5077
  "key": "key",
5058
5078
  "name": "name",
5079
+ "kind": "kind",
5059
5080
  "version": "version",
5060
5081
  "description": "description",
5061
5082
  "createdAt": "created_at",
@@ -5098,10 +5119,10 @@ const PRESET_CATALOG = {
5098
5119
  }
5099
5120
  },
5100
5121
  "keys": {
5101
- "read": "controls.read",
5102
- "manage": "controls.manage",
5103
- "collect": "controls.collect",
5104
- "acknowledge": "controls.acknowledge"
5122
+ "read": "compliance.read",
5123
+ "manage": "compliance.manage",
5124
+ "collect": "compliance.collect",
5125
+ "acknowledge": "compliance.acknowledge"
5105
5126
  }
5106
5127
  }
5107
5128
  },
@@ -5277,6 +5298,7 @@ const PRESET_CATALOG = {
5277
5298
  "summary": "summary",
5278
5299
  "status": "status",
5279
5300
  "certificate": "issues_certificate",
5301
+ "validForMonths": "valid_for_months",
5280
5302
  "createdBy": "created_by",
5281
5303
  "createdAt": "created_at",
5282
5304
  "updatedAt": "updated_at"
@@ -5323,6 +5345,7 @@ const PRESET_CATALOG = {
5323
5345
  "user": "user_id",
5324
5346
  "code": "code",
5325
5347
  "issuedAt": "issued_at",
5348
+ "expiresAt": "expires_at",
5326
5349
  "revokedAt": "revoked_at"
5327
5350
  }
5328
5351
  }
@@ -5545,7 +5568,7 @@ const PRESET_CATALOG = {
5545
5568
  "occurredAt": "occurred_at"
5546
5569
  }
5547
5570
  } },
5548
- "keys": { "read": "activity.read" }
5571
+ "keys": { "read": "timeline.read" }
5549
5572
  }
5550
5573
  },
5551
5574
  {
@@ -5647,10 +5670,10 @@ const PRESET_CATALOG = {
5647
5670
  }
5648
5671
  },
5649
5672
  "keys": {
5650
- "read": "mail.read",
5651
- "connect": "mail.connect",
5652
- "send": "mail.send",
5653
- "manage": "mail.manage"
5673
+ "read": "mail_sync.read",
5674
+ "connect": "mail_sync.connect",
5675
+ "send": "mail_sync.send",
5676
+ "manage": "mail_sync.manage"
5654
5677
  }
5655
5678
  }
5656
5679
  },
@@ -5695,7 +5718,7 @@ const PRESET_CATALOG = {
5695
5718
  } },
5696
5719
  "keys": {
5697
5720
  "read": "segments.read",
5698
- "edit": "segments.edit"
5721
+ "edit": "segments.write"
5699
5722
  }
5700
5723
  }
5701
5724
  },
@@ -6089,107 +6112,495 @@ const PRESET_CATALOG = {
6089
6112
  }
6090
6113
  },
6091
6114
  {
6092
- "name": "rls-guard",
6093
- "title": "RLS on every new table",
6094
- "category": "database",
6095
- "requires": [],
6096
- "integrates": [],
6097
- "manifest": "rls-guard"
6098
- }
6099
- ],
6100
- "manifests": [
6101
- {
6102
- "name": "permissions",
6103
- "sql": ["permissions"],
6104
- "category": "identity",
6105
- "client": {
6106
- "export": "permissionsBlock",
6107
- "subpath": "better-supabase/blocks/permissions"
6108
- },
6109
- "consumes": {},
6110
- "provides": []
6111
- },
6112
- {
6113
- "name": "access-requests",
6114
- "sql": ["access-requests"],
6115
- "category": "identity",
6116
- "client": {
6117
- "export": "accessRequestsBlock",
6118
- "subpath": "better-supabase/blocks/access-requests"
6119
- },
6120
- "consumes": {},
6121
- "provides": [],
6122
- "entityTypes": [
6123
- { "name": "AccessRequest" },
6124
- { "name": "AccessRequestInput" },
6125
- { "name": "AccessRequestListOptions" },
6126
- {
6127
- "name": "AccessRequests",
6128
- "fields": true
6129
- },
6130
- { "name": "AccessRequestsEvents" },
6131
- { "name": "AccessRequestsOptions" },
6132
- { "name": "AccessRequestStatus" }
6115
+ "name": "qualifications",
6116
+ "title": "Qualifications",
6117
+ "category": "people",
6118
+ "requires": [
6119
+ "memberships",
6120
+ "permissions",
6121
+ "subjects"
6133
6122
  ],
6134
- "events": {
6135
- "type": "AccessRequestsEvents",
6136
- "types": [
6137
- "access.requested",
6138
- "access.request_approved",
6139
- "access.ended"
6140
- ]
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
+ }
6141
6218
  }
6142
6219
  },
6143
6220
  {
6144
- "name": "created-by",
6145
- "sql": ["created-by"],
6146
- "category": "identity",
6147
- "client": null,
6148
- "consumes": {},
6149
- "provides": [],
6150
- "extension": "createdByExtension"
6151
- },
6152
- {
6153
- "name": "agents",
6154
- "sql": ["agents"],
6155
- "category": "ai",
6156
- "client": {
6157
- "export": "agentsBlock",
6158
- "subpath": "better-supabase/blocks/agents"
6159
- },
6160
- "consumes": {},
6161
- "provides": [],
6162
- "entityTypes": [
6163
- { "name": "Agent" },
6164
- { "name": "AgentFields" },
6165
- { "name": "AgentFilter" },
6166
- { "name": "AgentKnowledgeScope" },
6167
- {
6168
- "name": "Agents",
6169
- "fields": true
6170
- },
6171
- { "name": "AgentsEvents" },
6172
- { "name": "AgentSkill" },
6173
- { "name": "AgentsOptions" },
6174
- { "name": "AgentVisibility" },
6175
- { "name": "NewAgent" }
6221
+ "name": "risks",
6222
+ "title": "Risks",
6223
+ "category": "work",
6224
+ "requires": [
6225
+ "memberships",
6226
+ "permissions",
6227
+ "subjects",
6228
+ "versions"
6176
6229
  ],
6177
- "events": {
6178
- "type": "AgentsEvents",
6179
- "types": [
6180
- "agent.saved",
6181
- "agent.published",
6182
- "agent.deleted",
6183
- "agent.installed",
6184
- "agent.uninstalled"
6185
- ]
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
+ }
6186
6355
  }
6187
6356
  },
6188
6357
  {
6189
- "name": "ai-cache",
6190
- "sql": ["ai-cache"],
6191
- "category": "ai",
6192
- "client": {
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
+ },
6502
+ {
6503
+ "name": "rls-guard",
6504
+ "title": "RLS on every new table",
6505
+ "category": "database",
6506
+ "requires": [],
6507
+ "integrates": [],
6508
+ "manifest": "rls-guard"
6509
+ }
6510
+ ],
6511
+ "manifests": [
6512
+ {
6513
+ "name": "permissions",
6514
+ "sql": ["permissions"],
6515
+ "category": "identity",
6516
+ "client": {
6517
+ "export": "permissionsBlock",
6518
+ "subpath": "better-supabase/blocks/permissions"
6519
+ },
6520
+ "consumes": {},
6521
+ "provides": []
6522
+ },
6523
+ {
6524
+ "name": "access-requests",
6525
+ "sql": ["access-requests"],
6526
+ "category": "identity",
6527
+ "client": {
6528
+ "export": "accessRequestsBlock",
6529
+ "subpath": "better-supabase/blocks/access-requests"
6530
+ },
6531
+ "consumes": {},
6532
+ "provides": [],
6533
+ "entityTypes": [
6534
+ { "name": "AccessRequest" },
6535
+ { "name": "AccessRequestInput" },
6536
+ { "name": "AccessRequestListOptions" },
6537
+ {
6538
+ "name": "AccessRequests",
6539
+ "fields": true
6540
+ },
6541
+ { "name": "AccessRequestsEvents" },
6542
+ { "name": "AccessRequestsOptions" },
6543
+ { "name": "AccessRequestStatus" }
6544
+ ],
6545
+ "events": {
6546
+ "type": "AccessRequestsEvents",
6547
+ "types": [
6548
+ "access.requested",
6549
+ "access.request_approved",
6550
+ "access.ended"
6551
+ ]
6552
+ }
6553
+ },
6554
+ {
6555
+ "name": "created-by",
6556
+ "sql": ["created-by"],
6557
+ "category": "identity",
6558
+ "client": null,
6559
+ "consumes": {},
6560
+ "provides": [],
6561
+ "extension": "createdByExtension"
6562
+ },
6563
+ {
6564
+ "name": "agents",
6565
+ "sql": ["agents"],
6566
+ "category": "ai",
6567
+ "client": {
6568
+ "export": "agentsBlock",
6569
+ "subpath": "better-supabase/blocks/agents"
6570
+ },
6571
+ "consumes": {},
6572
+ "provides": [],
6573
+ "entityTypes": [
6574
+ { "name": "Agent" },
6575
+ { "name": "AgentFields" },
6576
+ { "name": "AgentFilter" },
6577
+ { "name": "AgentKnowledgeScope" },
6578
+ {
6579
+ "name": "Agents",
6580
+ "fields": true
6581
+ },
6582
+ { "name": "AgentsEvents" },
6583
+ { "name": "AgentSkill" },
6584
+ { "name": "AgentsOptions" },
6585
+ { "name": "AgentVisibility" },
6586
+ { "name": "NewAgent" }
6587
+ ],
6588
+ "events": {
6589
+ "type": "AgentsEvents",
6590
+ "types": [
6591
+ "agent.saved",
6592
+ "agent.published",
6593
+ "agent.deleted",
6594
+ "agent.installed",
6595
+ "agent.uninstalled"
6596
+ ]
6597
+ }
6598
+ },
6599
+ {
6600
+ "name": "ai-cache",
6601
+ "sql": ["ai-cache"],
6602
+ "category": "ai",
6603
+ "client": {
6193
6604
  "export": "aiCacheBlock",
6194
6605
  "subpath": "better-supabase/blocks/ai-cache"
6195
6606
  },
@@ -6466,6 +6877,19 @@ const PRESET_CATALOG = {
6466
6877
  { "name": "AttachmentFileInput" },
6467
6878
  { "name": "AttachmentImages" },
6468
6879
  { "name": "AttachmentImageUrlOptions" },
6880
+ { "name": "AttachmentListActions" },
6881
+ {
6882
+ "name": "AttachmentListController",
6883
+ "fields": true
6884
+ },
6885
+ {
6886
+ "name": "AttachmentListControllerOptions",
6887
+ "fields": true
6888
+ },
6889
+ {
6890
+ "name": "AttachmentListSnapshot",
6891
+ "fields": true
6892
+ },
6469
6893
  { "name": "AttachmentReplacement" },
6470
6894
  {
6471
6895
  "name": "Attachments",
@@ -10115,6 +10539,7 @@ const PRESET_CATALOG = {
10115
10539
  { "name": "ControlEvidenceInput" },
10116
10540
  { "name": "ControlFramework" },
10117
10541
  { "name": "ControlFrameworkInput" },
10542
+ { "name": "ControlFrameworkKind" },
10118
10543
  {
10119
10544
  "name": "ControlInput",
10120
10545
  "fields": true
@@ -10148,6 +10573,16 @@ const PRESET_CATALOG = {
10148
10573
  "minLength": 1,
10149
10574
  "maxLength": 200
10150
10575
  },
10576
+ "kind": {
10577
+ "kind": "enum",
10578
+ "optional": true,
10579
+ "values": [
10580
+ "standard",
10581
+ "legal",
10582
+ "internal",
10583
+ "contract"
10584
+ ]
10585
+ },
10151
10586
  "version": {
10152
10587
  "kind": "string",
10153
10588
  "optional": true,
@@ -10174,6 +10609,15 @@ const PRESET_CATALOG = {
10174
10609
  "minLength": 1,
10175
10610
  "maxLength": 200
10176
10611
  },
10612
+ "kind": {
10613
+ "type": "string",
10614
+ "enum": [
10615
+ "standard",
10616
+ "legal",
10617
+ "internal",
10618
+ "contract"
10619
+ ]
10620
+ },
10177
10621
  "version": {
10178
10622
  "type": "string",
10179
10623
  "maxLength": 64
@@ -10218,6 +10662,18 @@ const PRESET_CATALOG = {
10218
10662
  "kind": "uuid",
10219
10663
  "optional": true
10220
10664
  },
10665
+ "source": {
10666
+ "kind": "string",
10667
+ "optional": true,
10668
+ "minLength": 1,
10669
+ "maxLength": 200
10670
+ },
10671
+ "jurisdiction": {
10672
+ "kind": "string",
10673
+ "optional": true,
10674
+ "minLength": 1,
10675
+ "maxLength": 200
10676
+ },
10221
10677
  "fields": {
10222
10678
  "kind": "json",
10223
10679
  "optional": true,
@@ -10256,6 +10712,16 @@ const PRESET_CATALOG = {
10256
10712
  "type": "string",
10257
10713
  "format": "uuid"
10258
10714
  },
10715
+ "source": {
10716
+ "type": "string",
10717
+ "minLength": 1,
10718
+ "maxLength": 200
10719
+ },
10720
+ "jurisdiction": {
10721
+ "type": "string",
10722
+ "minLength": 1,
10723
+ "maxLength": 200
10724
+ },
10259
10725
  "fields": { "description": "The extra columns, keyed by database name." }
10260
10726
  },
10261
10727
  "required": [
@@ -10813,6 +11279,7 @@ const PRESET_CATALOG = {
10813
11279
  { "name": "CourseCertificate" },
10814
11280
  { "name": "CourseCertificateCheck" },
10815
11281
  { "name": "CourseCertificateEventData" },
11282
+ { "name": "CourseCertificateIssuedEventData" },
10816
11283
  { "name": "CourseEventData" },
10817
11284
  {
10818
11285
  "name": "CourseInput",
@@ -10887,6 +11354,13 @@ const PRESET_CATALOG = {
10887
11354
  "kind": "boolean",
10888
11355
  "optional": true
10889
11356
  },
11357
+ "validForMonths": {
11358
+ "kind": "integer",
11359
+ "optional": true,
11360
+ "nullable": true,
11361
+ "minimum": 1,
11362
+ "maximum": 240
11363
+ },
10890
11364
  "fields": {
10891
11365
  "kind": "json",
10892
11366
  "optional": true,
@@ -10925,6 +11399,11 @@ const PRESET_CATALOG = {
10925
11399
  ]
10926
11400
  },
10927
11401
  "certificate": { "type": "boolean" },
11402
+ "validForMonths": {
11403
+ "type": ["integer", "null"],
11404
+ "minimum": 1,
11405
+ "maximum": 240
11406
+ },
10928
11407
  "fields": { "description": "The extra columns to set, keyed by database name." }
10929
11408
  },
10930
11409
  "additionalProperties": false
@@ -11555,30 +12034,939 @@ const PRESET_CATALOG = {
11555
12034
  }]
11556
12035
  },
11557
12036
  {
11558
- "name": "drive",
11559
- "sql": ["drive", "drive-files"],
11560
- "category": "content",
12037
+ "name": "qualifications",
12038
+ "sql": ["qualifications"],
12039
+ "category": "people",
11561
12040
  "client": {
11562
- "export": "driveBlock",
11563
- "subpath": "better-supabase/blocks/drive"
12041
+ "export": "qualificationsBlock",
12042
+ "subpath": "better-supabase/blocks/qualifications"
11564
12043
  },
11565
- "consumes": { "attachments": "optional" },
12044
+ "consumes": {},
11566
12045
  "provides": [],
11567
- "entityTypes": [{
11568
- "name": "DriveNode",
11569
- "fields": true
11570
- }, { "name": "DriveNodeKind" }],
11571
- "events": {
11572
- "type": "DriveEvents",
11573
- "types": [
11574
- "drive.node_created",
11575
- "drive.node_renamed",
12046
+ "entityTypes": [
12047
+ {
12048
+ "name": "Qualification",
12049
+ "fields": true
12050
+ },
12051
+ { "name": "QualificationExpiryEventData" },
12052
+ { "name": "QualificationGap" },
12053
+ { "name": "QualificationGapOptions" },
12054
+ { "name": "QualificationGapStatus" },
12055
+ { "name": "QualificationGrantedEventData" },
12056
+ {
12057
+ "name": "QualificationGrantInput",
12058
+ "fields": true
12059
+ },
12060
+ { "name": "QualificationHolderType" },
12061
+ { "name": "QualificationRequirement" },
12062
+ { "name": "QualificationRevokedEventData" },
12063
+ {
12064
+ "name": "Qualifications",
12065
+ "fields": true
12066
+ },
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" }
12076
+ ],
12077
+ "entitySchemas": {
12078
+ "qualification_type": { "input": {
12079
+ "title": "QualificationTypeInput",
12080
+ "fields": {
12081
+ "key": {
12082
+ "kind": "string",
12083
+ "minLength": 1,
12084
+ "maxLength": 64
12085
+ },
12086
+ "name": {
12087
+ "kind": "string",
12088
+ "minLength": 1,
12089
+ "maxLength": 200
12090
+ },
12091
+ "holderTypes": {
12092
+ "kind": "enum",
12093
+ "values": [
12094
+ "member",
12095
+ "company",
12096
+ "asset"
12097
+ ],
12098
+ "array": true
12099
+ },
12100
+ "validForMonths": {
12101
+ "kind": "integer",
12102
+ "optional": true,
12103
+ "minimum": 1,
12104
+ "maximum": 240
12105
+ },
12106
+ "evidenceRequired": {
12107
+ "kind": "boolean",
12108
+ "optional": true
12109
+ },
12110
+ "courseId": {
12111
+ "kind": "uuid",
12112
+ "optional": true
12113
+ },
12114
+ "description": {
12115
+ "kind": "string",
12116
+ "optional": true,
12117
+ "maxLength": 1e4
12118
+ },
12119
+ "typeId": {
12120
+ "kind": "uuid",
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
+ }
12168
+ },
12169
+ "required": [
12170
+ "key",
12171
+ "name",
12172
+ "holderTypes"
12173
+ ],
12174
+ "additionalProperties": false
12175
+ }
12176
+ } },
12177
+ "qualification": { "input": {
12178
+ "title": "QualificationGrantInput",
12179
+ "fields": {
12180
+ "typeKey": {
12181
+ "kind": "string",
12182
+ "minLength": 1,
12183
+ "maxLength": 64
12184
+ },
12185
+ "holderType": {
12186
+ "kind": "enum",
12187
+ "values": [
12188
+ "member",
12189
+ "company",
12190
+ "asset"
12191
+ ]
12192
+ },
12193
+ "holderId": {
12194
+ "kind": "string",
12195
+ "minLength": 1,
12196
+ "maxLength": 200
12197
+ },
12198
+ "grantedOn": {
12199
+ "kind": "plainDate",
12200
+ "optional": true
12201
+ },
12202
+ "evidenceAttachmentId": {
12203
+ "kind": "uuid",
12204
+ "optional": true
12205
+ },
12206
+ "evidenceNote": {
12207
+ "kind": "string",
12208
+ "optional": true,
12209
+ "maxLength": 1e4
12210
+ },
12211
+ "fields": {
12212
+ "kind": "json",
12213
+ "optional": true,
12214
+ "description": "The extra columns, keyed by database name."
12215
+ }
12216
+ },
12217
+ "jsonSchema": {
12218
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
12219
+ "title": "QualificationGrantInput",
12220
+ "type": "object",
12221
+ "properties": {
12222
+ "typeKey": {
12223
+ "type": "string",
12224
+ "minLength": 1,
12225
+ "maxLength": 64
12226
+ },
12227
+ "holderType": {
12228
+ "type": "string",
12229
+ "enum": [
12230
+ "member",
12231
+ "company",
12232
+ "asset"
12233
+ ]
12234
+ },
12235
+ "holderId": {
12236
+ "type": "string",
12237
+ "minLength": 1,
12238
+ "maxLength": 200
12239
+ },
12240
+ "grantedOn": {
12241
+ "type": "string",
12242
+ "format": "date"
12243
+ },
12244
+ "evidenceAttachmentId": {
12245
+ "type": "string",
12246
+ "format": "uuid"
12247
+ },
12248
+ "evidenceNote": {
12249
+ "type": "string",
12250
+ "maxLength": 1e4
12251
+ },
12252
+ "fields": { "description": "The extra columns, keyed by database name." }
12253
+ },
12254
+ "required": [
12255
+ "typeKey",
12256
+ "holderType",
12257
+ "holderId"
12258
+ ],
12259
+ "additionalProperties": false
12260
+ }
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",
11576
12960
  "drive.node_moved",
11577
12961
  "drive.node_shared",
11578
12962
  "drive.node_unshared",
11579
12963
  "drive.node_purged",
11580
12964
  "drive.node_hold_placed",
11581
12965
  "drive.node_hold_released",
12966
+ "drive.node_locked",
12967
+ "drive.node_unlocked",
12968
+ "drive.node_download_blocked_changed",
12969
+ "drive.download_blocked_changed",
11582
12970
  "drive.created",
11583
12971
  "drive.renamed",
11584
12972
  "drive.deleted",
@@ -12430,7 +13818,7 @@ const PRESET_CATALOG = {
12430
13818
  {
12431
13819
  "name": "idempotency",
12432
13820
  "sql": ["idempotency"],
12433
- "category": "developer",
13821
+ "category": "automation",
12434
13822
  "client": {
12435
13823
  "export": "idempotencyBlock",
12436
13824
  "subpath": "better-supabase/blocks/queue"
@@ -12467,7 +13855,7 @@ const PRESET_CATALOG = {
12467
13855
  {
12468
13856
  "name": "rate-limit",
12469
13857
  "sql": ["rate-limit"],
12470
- "category": "developer",
13858
+ "category": "automation",
12471
13859
  "client": {
12472
13860
  "export": "rateLimitBlock",
12473
13861
  "subpath": "better-supabase/blocks/queue"
@@ -12478,7 +13866,7 @@ const PRESET_CATALOG = {
12478
13866
  {
12479
13867
  "name": "webhook-inbox",
12480
13868
  "sql": ["webhook-inbox"],
12481
- "category": "developer",
13869
+ "category": "automation",
12482
13870
  "client": {
12483
13871
  "export": "webhookInboxBlock",
12484
13872
  "subpath": "better-supabase/blocks/queue"
@@ -13336,7 +14724,16 @@ const PRESET_CATALOG = {
13336
14724
  "subpath": "better-supabase/blocks/oauth-server"
13337
14725
  },
13338
14726
  "consumes": {},
13339
- "provides": []
14727
+ "provides": [],
14728
+ "events": {
14729
+ "type": "OauthServerEvents",
14730
+ "types": [
14731
+ "oauth_client.registered",
14732
+ "oauth_client.deleted",
14733
+ "oauth_grant.created",
14734
+ "oauth_grant.revoked"
14735
+ ]
14736
+ }
13340
14737
  },
13341
14738
  {
13342
14739
  "name": "onboarding",
@@ -14477,7 +15874,11 @@ const PRESET_CATALOG = {
14477
15874
  "subpath": "better-supabase/blocks/subjects"
14478
15875
  },
14479
15876
  "consumes": {},
14480
- "provides": []
15877
+ "provides": [],
15878
+ "events": {
15879
+ "type": "SubjectsEvents",
15880
+ "types": ["subject_member.added", "subject_member.ended"]
15881
+ }
14481
15882
  },
14482
15883
  {
14483
15884
  "name": "impersonation",
@@ -16154,7 +17555,7 @@ function rollupOf(where, value, parent, tables) {
16154
17555
  column
16155
17556
  };
16156
17557
  }
16157
- function lookupOf(where, value, name, tables) {
17558
+ function lookupOf$1(where, value, name, tables) {
16158
17559
  if (!isObject$1(value)) throw new TypeError(`${where} must be an object`);
16159
17560
  checkKeys$1(where, value, LOOKUP_KEYS);
16160
17561
  const { via, column } = value;
@@ -16194,7 +17595,7 @@ function computedOf(where, value, name, tables, taken) {
16194
17595
  return at;
16195
17596
  };
16196
17597
  const resolvedRollups = rollups.map(([column, rollup]) => [column, rollupOf(named("rollups", column), rollup, name, tables)]);
16197
- const resolvedLookups = lookups.map(([column, lookup]) => [column, lookupOf(named("lookups", column), lookup, name, tables)]);
17598
+ const resolvedLookups = lookups.map(([column, lookup]) => [column, lookupOf$1(named("lookups", column), lookup, name, tables)]);
16198
17599
  return {
16199
17600
  ...value["rollups"] === void 0 ? {} : { rollups: Object.fromEntries(resolvedRollups) },
16200
17601
  ...value["lookups"] === void 0 ? {} : { lookups: Object.fromEntries(resolvedLookups) }
@@ -16272,6 +17673,26 @@ function encryptedOf(where, value, column) {
16272
17673
  if (refused !== void 0) throw new TypeError(`${where}.encrypted: ${refused} can't be encrypted, since the database only sees ciphertext; drop encrypted or the other key`);
16273
17674
  return encrypted;
16274
17675
  }
17676
+ /** The column that holds the lookup hash of encrypted column `column`. */
17677
+ function lookupColumn(column) {
17678
+ return `${column}_lookup`;
17679
+ }
17680
+ /**
17681
+ * `tables.<t>.columns.<c>.lookup` checked: the hash is of the plaintext, which
17682
+ * only the seal trigger of an encrypted column sees.
17683
+ */
17684
+ function lookupOf(where, value, encrypted) {
17685
+ const lookup = booleanOf(`${where}.lookup`, value);
17686
+ if (lookup === true && encrypted !== true) throw new TypeError(`${where}.lookup: a lookup hashes an encrypted column; set encrypted too, or search the column as it is`);
17687
+ return lookup;
17688
+ }
17689
+ /** Throws when the lookup column of an encrypted column is a column already. */
17690
+ function checkLookupColumns(where, columns) {
17691
+ for (const [name, column] of Object.entries(columns)) {
17692
+ const hash = lookupColumn(name);
17693
+ if (column.lookup === true && columns[hash] !== void 0) throw new TypeError(`${where}.columns.${name}.lookup: the lookup hash goes in ${hash}, which is a column already; rename one`);
17694
+ }
17695
+ }
16275
17696
  /**
16276
17697
  * `tables.<t>.auditReads` checked: reads are audited where they are decrypted,
16277
17698
  * so the table needs an encrypted column.
@@ -16339,7 +17760,8 @@ const COLUMN_KEYS = /* @__PURE__ */ new Set([
16339
17760
  "comment",
16340
17761
  "identity",
16341
17762
  "access",
16342
- "encrypted"
17763
+ "encrypted",
17764
+ "lookup"
16343
17765
  ]);
16344
17766
  const NUMBER_TYPES = /* @__PURE__ */ new Set([
16345
17767
  "integer",
@@ -16547,6 +17969,7 @@ function columnOf(where, value, tables) {
16547
17969
  references,
16548
17970
  identity
16549
17971
  });
17972
+ const lookup = lookupOf(where, value["lookup"], encrypted);
16550
17973
  if (min !== void 0 && max !== void 0 && min > max) throw new TypeError(`${where}: min ${String(min)} is above max ${String(max)}`);
16551
17974
  const outside = typeof fallback === "string" ? appDefaultError({
16552
17975
  type,
@@ -16569,7 +17992,8 @@ function columnOf(where, value, tables) {
16569
17992
  ...comment === void 0 ? {} : { comment },
16570
17993
  ...identity === void 0 ? {} : { identity },
16571
17994
  ...access === void 0 ? {} : { access },
16572
- ...encrypted === void 0 ? {} : { encrypted }
17995
+ ...encrypted === void 0 ? {} : { encrypted },
17996
+ ...lookup === void 0 ? {} : { lookup }
16573
17997
  };
16574
17998
  }
16575
17999
  function namedColumn(where, value, columns) {
@@ -16731,6 +18155,7 @@ function tableOf(where, value, tables, reserved) {
16731
18155
  unique,
16732
18156
  indexes
16733
18157
  });
18158
+ checkLookupColumns(where, own);
16734
18159
  const auditReads = auditReadsOf(where, value["auditReads"], own);
16735
18160
  return {
16736
18161
  ...columns === void 0 ? {} : { columns: Object.fromEntries(resolved) },
@@ -16962,4 +18387,4 @@ function withoutBlockKey(entry) {
16962
18387
  const { block: _, ...rest } = entry;
16963
18388
  return rest;
16964
18389
  }
16965
- export { APP_ROLLUP_AGGREGATES as A, encryptedColumns as C, APP_COLUMN_FORMATS as D, APP_COLUMN_ACCESS as E, asBlocksConfig as F, resolveBlock as I, tenantNameOf as L, PRESET_CATALOG as M, BLOCK_SCOPES as N, APP_COLUMN_TYPES as O, DEFAULT_ACTIVE_TENANT as P, columnsWithAccess as S, hiddenColumns as T, appTablesOf as _, isRenamedInstance as a, isAppDefault as b, APP_NAME_MAX as c, appIdentifierError as d, appNameLengthError as f, appTableVersions as g, appTableEventTypes as h, instancePrefix as i, APP_TABLE_EVENT_KINDS as j, APP_ON_DELETE_ACTIONS as k, APP_RANK_COLUMN as l, appTableEventKinds as m, INSTANCE_NAME as n, resolveInstances as o, appReservedColumns as p, blocksByName as r, APP_DELETED_AT_COLUMN as s, CORE_BLOCKS as t, AUTH_USERS as u, withAppTableSubjects as v, hasColumnAccess as w, hasComputed as x, appDefaultError as y };
18390
+ export { APP_ON_DELETE_ACTIONS as A, columnsWithAccess as C, APP_COLUMN_ACCESS as D, hiddenColumns as E, DEFAULT_ACTIVE_TENANT as F, asBlocksConfig as I, resolveBlock as L, APP_TABLE_EVENT_KINDS as M, PRESET_CATALOG as N, APP_COLUMN_FORMATS as O, BLOCK_SCOPES as P, tenantNameOf as R, hasComputed as S, hasColumnAccess as T, appTablesOf as _, isRenamedInstance as a, appDefaultError as b, APP_NAME_MAX as c, appIdentifierError as d, appNameLengthError as f, appTableVersions as g, appTableEventTypes as h, instancePrefix as i, APP_ROLLUP_AGGREGATES as j, APP_COLUMN_TYPES as k, APP_RANK_COLUMN as l, appTableEventKinds as m, INSTANCE_NAME as n, resolveInstances as o, appReservedColumns as p, blocksByName as r, APP_DELETED_AT_COLUMN as s, CORE_BLOCKS as t, AUTH_USERS as u, withAppTableSubjects as v, encryptedColumns as w, isAppDefault as x, lookupColumn as y };