better-supabase 0.30.0 → 0.32.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 (1688) hide show
  1. package/dist/access-sql-Dao1C0fz.js +383 -0
  2. package/dist/actor-B5b0i1Fs.js +149 -0
  3. package/dist/actor-DseNR02I.d.ts +104 -0
  4. package/dist/adapter-CPPN80mx.js +2231 -0
  5. package/dist/agents-BEiBtYmh.d.ts +115 -0
  6. package/dist/ai-cache-D9D36eh4.js +86 -0
  7. package/dist/ai-cache-FMYzw7lW.d.ts +80 -0
  8. package/dist/ai-chat-B_P--Ie2.d.ts +532 -0
  9. package/dist/ai-files-DCMVGSds.js +337 -0
  10. package/dist/ai-message-cnroprVB.js +13 -0
  11. package/dist/ai-schedules-D_q1iclL.d.ts +164 -0
  12. package/dist/ai-sdk/agents/index.d.ts +8 -12
  13. package/dist/ai-sdk/agents/index.js +10 -12
  14. package/dist/ai-sdk/batches/index.d.ts +12 -7
  15. package/dist/ai-sdk/batches/index.js +16 -9
  16. package/dist/ai-sdk/cache/index.d.ts +2 -4
  17. package/dist/ai-sdk/cache/index.js +3 -4
  18. package/dist/ai-sdk/chat/index.d.ts +77 -2
  19. package/dist/ai-sdk/chat/index.js +179 -28
  20. package/dist/ai-sdk/embeddings/index.d.ts +2 -2
  21. package/dist/ai-sdk/embeddings/index.js +1 -1
  22. package/dist/ai-sdk/files/index.d.ts +3 -5
  23. package/dist/ai-sdk/files/index.js +5 -6
  24. package/dist/ai-sdk/index.d.ts +75 -21
  25. package/dist/ai-sdk/index.js +112 -66
  26. package/dist/ai-sdk/mcp/index.d.ts +28 -13
  27. package/dist/ai-sdk/mcp/index.js +56 -17
  28. package/dist/ai-sdk/memory/index.d.ts +3 -5
  29. package/dist/ai-sdk/memory/index.js +3 -4
  30. package/dist/ai-sdk/react/index.d.ts +2 -2
  31. package/dist/ai-sdk/react/index.js +3 -1
  32. package/dist/ai-sdk/react/server.d.ts +7 -4
  33. package/dist/ai-sdk/react/server.js +10 -3
  34. package/dist/ai-sdk/workflow/index.d.ts +12 -13
  35. package/dist/ai-sdk/workflow/index.js +17 -17
  36. package/dist/ai-sdk/workflow/react/index.d.ts +1 -3
  37. package/dist/ai-sdk/workflow/react/index.js +3 -3
  38. package/dist/ai-sdk/workflow/react/server.d.ts +1 -3
  39. package/dist/ai-sdk/workflow/react/server.js +1 -2
  40. package/dist/anchors-sCLvYj-8.d.ts +36 -0
  41. package/dist/api-CwzVbbw4.d.ts +483 -0
  42. package/dist/api-keys-u2sXB-CZ.d.ts +211 -0
  43. package/dist/api-wwix_K5c.js +691 -0
  44. package/dist/app-tables-DomvYx5b.d.ts +26 -0
  45. package/dist/approvals-Da4uAANx.js +166 -0
  46. package/dist/approvals-idpuhILk.d.ts +127 -0
  47. package/dist/assistant-CMKsaeJd.d.ts +209 -0
  48. package/dist/astro/index.d.ts +8 -10
  49. package/dist/astro/index.js +8 -9
  50. package/dist/attachments-BWtUQgsL.js +375 -0
  51. package/dist/attributes-BZNkR2z2.js +51 -0
  52. package/dist/auth-link-BmJsQG4a.js +117 -0
  53. package/dist/auth-link-DRjtI1Ky.d.ts +102 -0
  54. package/dist/auth-module-CVo86UKh.js +50 -0
  55. package/dist/auth-reply-BMPJQssh.d.ts +9 -0
  56. package/dist/auth-reply-Cnwn3I_q.js +30 -0
  57. package/dist/auth-wFlGgwTZ.js +19 -0
  58. package/dist/authorization-CYu_UKX4.d.ts +3723 -0
  59. package/dist/authorization-hooks-CldgvzBZ.d.ts +219 -0
  60. package/dist/authorizer-AswD5q6g.d.ts +116 -0
  61. package/dist/authorizer-D6po_XZA.js +171 -0
  62. package/dist/automation-acq3iK9y.js +74 -0
  63. package/dist/automations-BfH8GJqv.js +27 -0
  64. package/dist/automations-Bw5cX7oj.js +29 -0
  65. package/dist/automations-CCc5RUw-.js +31 -0
  66. package/dist/automations-Dou1t3lt.js +313 -0
  67. package/dist/availability-CebEOfMN.d.ts +236 -0
  68. package/dist/base64-CVyKHBBw.js +41 -0
  69. package/dist/batch-limit-DqQ3d6op.js +4 -0
  70. package/dist/before-route-Ra3OhI2x.js +29 -0
  71. package/dist/better-result/index.d.ts +4 -6
  72. package/dist/better-result/index.js +2 -3
  73. package/dist/bind-8LYVJE5W.d.ts +102 -0
  74. package/dist/block-authors-C5z3tGVu.d.ts +10 -0
  75. package/dist/block-authors-DCQ4zl8e.js +13 -0
  76. package/dist/block-env-BsLgZL2l.d.ts +30 -0
  77. package/dist/block-event-listener-DCi7c89M.js +15 -0
  78. package/dist/block-events-Bp6GPIBN.js +82 -0
  79. package/dist/block-fields-Bjcv6_zc.js +139 -0
  80. package/dist/block-fields-Puv5m5D3.d.ts +56 -0
  81. package/dist/block-helpers-I7UzjNEf.js +435 -0
  82. package/dist/block-helpers-JxiD1iw4.d.ts +56 -0
  83. package/dist/block-hooks-CJP5kGEa.d.ts +115 -0
  84. package/dist/block-hooks-CadxQ9-_.js +129 -0
  85. package/dist/block-method-DIbWG4Mj.js +20 -0
  86. package/dist/block-method-QSaPsL2P.d.ts +12 -0
  87. package/dist/block-subjects-SyJwfgrX.d.ts +4 -0
  88. package/dist/block-subjects-cRlVtKDO.js +54 -0
  89. package/dist/block-tenant-Bun03JuO.js +13 -0
  90. package/dist/block-transport-Bbf1ZZre.d.ts +67 -0
  91. package/dist/blocks/access-requests/index.d.ts +9 -15
  92. package/dist/blocks/access-requests/index.js +11 -14
  93. package/dist/blocks/activities/index.d.ts +13 -21
  94. package/dist/blocks/activities/index.js +16 -21
  95. package/dist/blocks/agents/index.d.ts +4 -8
  96. package/dist/blocks/agents/index.js +11 -14
  97. package/dist/blocks/ai-cache/index.d.ts +3 -5
  98. package/dist/blocks/ai-cache/index.js +5 -6
  99. package/dist/blocks/ai-chat/index.d.ts +10 -19
  100. package/dist/blocks/ai-chat/index.js +20 -28
  101. package/dist/blocks/ai-files/index.d.ts +5 -9
  102. package/dist/blocks/ai-files/index.js +5 -6
  103. package/dist/blocks/ai-keys/index.d.ts +4 -10
  104. package/dist/blocks/ai-keys/index.js +14 -18
  105. package/dist/blocks/ai-schedules/index.d.ts +3 -5
  106. package/dist/blocks/ai-schedules/index.js +14 -16
  107. package/dist/blocks/announcements/index.d.ts +12 -20
  108. package/dist/blocks/announcements/index.js +12 -16
  109. package/dist/blocks/api-keys/index.d.ts +8 -16
  110. package/dist/blocks/api-keys/index.js +17 -22
  111. package/dist/blocks/approvals/index.d.ts +4 -8
  112. package/dist/blocks/approvals/index.js +7 -173
  113. package/dist/blocks/assets/index.d.ts +9 -17
  114. package/dist/blocks/assets/index.js +13 -17
  115. package/dist/blocks/assignment/index.d.ts +9 -17
  116. package/dist/blocks/assignment/index.js +10 -14
  117. package/dist/blocks/attachments/index.d.ts +6 -18
  118. package/dist/blocks/attachments/index.js +19 -24
  119. package/dist/blocks/audit/index.d.ts +15 -31
  120. package/dist/blocks/audit/index.js +27 -35
  121. package/dist/blocks/automations/index.d.ts +14 -26
  122. package/dist/blocks/automations/index.js +18 -23
  123. package/dist/blocks/billable-time/index.d.ts +9 -19
  124. package/dist/blocks/billable-time/index.js +15 -20
  125. package/dist/blocks/billing/index.d.ts +12 -22
  126. package/dist/blocks/billing/index.js +19 -24
  127. package/dist/blocks/bookings/index.d.ts +8 -18
  128. package/dist/blocks/bookings/index.js +17 -23
  129. package/dist/blocks/bulk/index.d.ts +6 -12
  130. package/dist/blocks/bulk/index.js +10 -13
  131. package/dist/blocks/calendar/index.d.ts +18 -24
  132. package/dist/blocks/calendar/index.js +39 -32
  133. package/dist/blocks/catalog/index.d.ts +12 -20
  134. package/dist/blocks/catalog/index.js +17 -21
  135. package/dist/blocks/channels/index.d.ts +9 -17
  136. package/dist/blocks/channels/index.js +11 -15
  137. package/dist/blocks/collections/index.d.ts +11 -17
  138. package/dist/blocks/collections/index.js +13 -16
  139. package/dist/blocks/comments/index.d.ts +16 -26
  140. package/dist/blocks/comments/index.js +21 -26
  141. package/dist/blocks/compliance/index.d.ts +9 -17
  142. package/dist/blocks/compliance/index.js +13 -17
  143. package/dist/blocks/connectors/index.d.ts +4 -8
  144. package/dist/blocks/connectors/index.js +13 -16
  145. package/dist/blocks/contacts/index.d.ts +10 -18
  146. package/dist/blocks/contacts/index.js +12 -16
  147. package/dist/blocks/content/index.d.ts +8 -16
  148. package/dist/blocks/content/index.js +13 -17
  149. package/dist/blocks/contracts/index.d.ts +11 -21
  150. package/dist/blocks/contracts/index.js +17 -22
  151. package/dist/blocks/courses/index.d.ts +11 -21
  152. package/dist/blocks/courses/index.js +17 -22
  153. package/dist/blocks/created-by/index.d.ts +3 -7
  154. package/dist/blocks/created-by/index.js +4 -5
  155. package/dist/blocks/custom-fields/index.d.ts +10 -16
  156. package/dist/blocks/custom-fields/index.js +13 -16
  157. package/dist/blocks/data-lifecycle/index.d.ts +10 -26
  158. package/dist/blocks/data-lifecycle/index.js +17 -23
  159. package/dist/blocks/deals/index.d.ts +12 -20
  160. package/dist/blocks/deals/index.js +18 -22
  161. package/dist/blocks/dispatch/index.d.ts +11 -23
  162. package/dist/blocks/dispatch/index.js +19 -24
  163. package/dist/blocks/documents/index.d.ts +4 -8
  164. package/dist/blocks/documents/index.js +9 -12
  165. package/dist/blocks/domains/index.d.ts +8 -14
  166. package/dist/blocks/domains/index.js +12 -15
  167. package/dist/blocks/donations/index.d.ts +13 -23
  168. package/dist/blocks/donations/index.js +21 -26
  169. package/dist/blocks/drive/index.d.ts +116 -20
  170. package/dist/blocks/drive/index.js +138 -26
  171. package/dist/blocks/employees/index.d.ts +13 -23
  172. package/dist/blocks/employees/index.js +19 -27
  173. package/dist/blocks/enrichment/index.d.ts +8 -16
  174. package/dist/blocks/enrichment/index.js +11 -15
  175. package/dist/blocks/enrollments/index.d.ts +9 -17
  176. package/dist/blocks/enrollments/index.js +13 -17
  177. package/dist/blocks/entitlements/index.d.ts +8 -14
  178. package/dist/blocks/entitlements/index.js +8 -11
  179. package/dist/blocks/expenses/index.d.ts +22 -19
  180. package/dist/blocks/expenses/index.js +25 -23
  181. package/dist/blocks/field-history/index.d.ts +6 -10
  182. package/dist/blocks/field-history/index.js +5 -7
  183. package/dist/blocks/flags/index.d.ts +49 -20
  184. package/dist/blocks/flags/index.js +65 -19
  185. package/dist/blocks/forecasts/index.d.ts +10 -16
  186. package/dist/blocks/forecasts/index.js +11 -14
  187. package/dist/blocks/forms/index.d.ts +11 -25
  188. package/dist/blocks/forms/index.js +17 -24
  189. package/dist/blocks/goals/index.d.ts +8 -12
  190. package/dist/blocks/goals/index.js +9 -11
  191. package/dist/blocks/guests/index.d.ts +9 -19
  192. package/dist/blocks/guests/index.js +14 -19
  193. package/dist/blocks/hiring/index.d.ts +10 -18
  194. package/dist/blocks/hiring/index.js +12 -15
  195. package/dist/blocks/identities/index.d.ts +7 -11
  196. package/dist/blocks/identities/index.js +7 -9
  197. package/dist/blocks/imports/index.d.ts +8 -18
  198. package/dist/blocks/imports/index.js +11 -16
  199. package/dist/blocks/inbox/index.d.ts +11 -21
  200. package/dist/blocks/inbox/index.js +26 -23
  201. package/dist/blocks/incidents/index.d.ts +9 -17
  202. package/dist/blocks/incidents/index.js +14 -18
  203. package/dist/blocks/index.d.ts +14 -20
  204. package/dist/blocks/index.js +17 -20
  205. package/dist/blocks/inventory/index.d.ts +11 -17
  206. package/dist/blocks/inventory/index.js +12 -15
  207. package/dist/blocks/invoices/index.d.ts +34 -21
  208. package/dist/blocks/invoices/index.js +31 -18
  209. package/dist/blocks/knowledge/index.d.ts +3 -5
  210. package/dist/blocks/knowledge/index.js +5 -6
  211. package/dist/blocks/lead-scoring/index.d.ts +10 -14
  212. package/dist/blocks/lead-scoring/index.js +11 -13
  213. package/dist/blocks/leases/index.d.ts +11 -21
  214. package/dist/blocks/leases/index.js +20 -25
  215. package/dist/blocks/leave/index.d.ts +50 -17
  216. package/dist/blocks/leave/index.js +35 -14
  217. package/dist/blocks/ledger/index.d.ts +9 -17
  218. package/dist/blocks/ledger/index.js +13 -17
  219. package/dist/blocks/mail-sync/index.d.ts +6 -12
  220. package/dist/blocks/mail-sync/index.js +26 -25
  221. package/dist/blocks/memberships/index.d.ts +5 -9
  222. package/dist/blocks/memberships/index.js +4 -5
  223. package/dist/blocks/memory/index.d.ts +4 -8
  224. package/dist/blocks/memory/index.js +12 -15
  225. package/dist/blocks/messaging/index.d.ts +14 -24
  226. package/dist/blocks/messaging/index.js +19 -24
  227. package/dist/blocks/metrics/index.d.ts +9 -17
  228. package/dist/blocks/metrics/index.js +14 -18
  229. package/dist/blocks/mfa/index.d.ts +5 -9
  230. package/dist/blocks/mfa/index.js +7 -9
  231. package/dist/blocks/moderation/index.d.ts +9 -17
  232. package/dist/blocks/moderation/index.js +13 -17
  233. package/dist/blocks/notifications/index.d.ts +18 -34
  234. package/dist/blocks/notifications/index.js +36 -84
  235. package/dist/blocks/numbering/index.d.ts +6 -12
  236. package/dist/blocks/numbering/index.js +8 -11
  237. package/dist/blocks/oauth-server/index.d.ts +7 -13
  238. package/dist/blocks/oauth-server/index.js +12 -15
  239. package/dist/blocks/onboarding/index.d.ts +7 -13
  240. package/dist/blocks/onboarding/index.js +8 -11
  241. package/dist/blocks/orders/index.d.ts +17 -29
  242. package/dist/blocks/orders/index.js +22 -28
  243. package/dist/blocks/organizations/index.d.ts +43 -40
  244. package/dist/blocks/organizations/index.js +21 -20
  245. package/dist/blocks/outbox/index.d.ts +4 -6
  246. package/dist/blocks/outbox/index.js +11 -13
  247. package/dist/blocks/passes/index.d.ts +12 -22
  248. package/dist/blocks/passes/index.js +20 -25
  249. package/dist/blocks/permissions/index.d.ts +74 -15
  250. package/dist/blocks/permissions/index.js +119 -18
  251. package/dist/blocks/pipelines/index.d.ts +12 -18
  252. package/dist/blocks/pipelines/index.js +12 -15
  253. package/dist/blocks/posts/index.d.ts +10 -18
  254. package/dist/blocks/posts/index.js +15 -19
  255. package/dist/blocks/profiles/index.d.ts +8 -12
  256. package/dist/blocks/profiles/index.js +9 -11
  257. package/dist/blocks/promotions/index.d.ts +11 -17
  258. package/dist/blocks/promotions/index.js +13 -16
  259. package/dist/blocks/push/index.d.ts +19 -17
  260. package/dist/blocks/push/index.js +33 -20
  261. package/dist/blocks/queue/index.d.ts +187 -39
  262. package/dist/blocks/queue/index.js +226 -60
  263. package/dist/blocks/quotes/index.d.ts +13 -21
  264. package/dist/blocks/quotes/index.js +14 -17
  265. package/dist/blocks/rank/index.d.ts +7 -13
  266. package/dist/blocks/rank/index.js +8 -10
  267. package/dist/blocks/reactions/index.d.ts +11 -19
  268. package/dist/blocks/reactions/index.js +13 -17
  269. package/dist/blocks/relations/index.d.ts +11 -21
  270. package/dist/blocks/relations/index.js +18 -23
  271. package/dist/blocks/reminders/index.d.ts +12 -22
  272. package/dist/blocks/reminders/index.js +21 -25
  273. package/dist/blocks/reviews/index.d.ts +9 -15
  274. package/dist/blocks/reviews/index.js +11 -14
  275. package/dist/blocks/saved-views/index.d.ts +11 -21
  276. package/dist/blocks/saved-views/index.js +16 -21
  277. package/dist/blocks/scores/index.d.ts +6 -12
  278. package/dist/blocks/scores/index.js +10 -13
  279. package/dist/blocks/search/index.d.ts +9 -19
  280. package/dist/blocks/search/index.js +15 -19
  281. package/dist/blocks/security-events/index.d.ts +10 -24
  282. package/dist/blocks/security-events/index.js +17 -23
  283. package/dist/blocks/segments/index.d.ts +10 -18
  284. package/dist/blocks/segments/index.js +11 -15
  285. package/dist/blocks/sequences/index.d.ts +9 -17
  286. package/dist/blocks/sequences/index.js +15 -19
  287. package/dist/blocks/service-accounts/index.d.ts +9 -15
  288. package/dist/blocks/service-accounts/index.js +11 -14
  289. package/dist/blocks/sessions/index.d.ts +4 -8
  290. package/dist/blocks/sessions/index.js +9 -11
  291. package/dist/blocks/settings/index.d.ts +8 -16
  292. package/dist/blocks/settings/index.js +14 -18
  293. package/dist/blocks/share-links/index.d.ts +9 -17
  294. package/dist/blocks/share-links/index.js +16 -20
  295. package/dist/blocks/shipments/index.d.ts +14 -24
  296. package/dist/blocks/shipments/index.js +25 -31
  297. package/dist/blocks/signatures/index.d.ts +10 -16
  298. package/dist/blocks/signatures/index.js +10 -13
  299. package/dist/blocks/signing-keys/index.d.ts +5 -9
  300. package/dist/blocks/signing-keys/index.js +8 -10
  301. package/dist/blocks/sla/index.d.ts +11 -19
  302. package/dist/blocks/sla/index.js +17 -21
  303. package/dist/blocks/sso/index.d.ts +7 -19
  304. package/dist/blocks/sso/index.js +14 -21
  305. package/dist/blocks/state-machine/index.d.ts +7 -13
  306. package/dist/blocks/state-machine/index.js +9 -12
  307. package/dist/blocks/subjects/index.d.ts +7 -11
  308. package/dist/blocks/subjects/index.js +12 -14
  309. package/dist/blocks/tags/index.d.ts +11 -21
  310. package/dist/blocks/tags/index.js +20 -25
  311. package/dist/blocks/tasks/index.d.ts +13 -27
  312. package/dist/blocks/tasks/index.js +22 -29
  313. package/dist/blocks/teams/index.d.ts +15 -15
  314. package/dist/blocks/teams/index.js +17 -19
  315. package/dist/blocks/templates/index.d.ts +12 -22
  316. package/dist/blocks/templates/index.js +16 -21
  317. package/dist/blocks/time-tracking/index.d.ts +31 -25
  318. package/dist/blocks/time-tracking/index.js +29 -29
  319. package/dist/blocks/timeline/index.d.ts +10 -14
  320. package/dist/blocks/timeline/index.js +11 -13
  321. package/dist/blocks/trash/index.d.ts +10 -18
  322. package/dist/blocks/trash/index.js +11 -14
  323. package/dist/blocks/undo/index.d.ts +4 -8
  324. package/dist/blocks/undo/index.js +6 -8
  325. package/dist/blocks/updated-at/index.d.ts +3 -7
  326. package/dist/blocks/updated-at/index.js +4 -5
  327. package/dist/blocks/usage/index.d.ts +6 -10
  328. package/dist/blocks/usage/index.js +10 -13
  329. package/dist/blocks/vercel-marketplace/index.d.ts +9 -17
  330. package/dist/blocks/vercel-marketplace/index.js +17 -21
  331. package/dist/blocks/versions/index.d.ts +10 -20
  332. package/dist/blocks/versions/index.js +17 -22
  333. package/dist/blocks/waitlist/index.d.ts +10 -16
  334. package/dist/blocks/waitlist/index.js +11 -14
  335. package/dist/blocks/webhooks/index.d.ts +16 -34
  336. package/dist/blocks/webhooks/index.js +33 -44
  337. package/dist/blocks/workflow-editor/index.d.ts +13 -21
  338. package/dist/blocks/workflow-editor/index.js +21 -27
  339. package/dist/blocks/workflows/index.d.ts +8 -14
  340. package/dist/blocks/workflows/index.js +14 -18
  341. package/dist/bookings-DG443336.d.ts +285 -0
  342. package/dist/bucket-Clq5xINQ.d.ts +693 -0
  343. package/dist/build-Ckxct2EX.js +2065 -0
  344. package/dist/build-D1-V9dd8.js +732 -0
  345. package/dist/carrier-D2b_028L.d.ts +165 -0
  346. package/dist/casing-DQzG9ANZ.js +15 -0
  347. package/dist/channel-B_kufDZy.d.ts +101 -0
  348. package/dist/channels-BxeTTtCY.js +113 -0
  349. package/dist/chat-sdk/index.d.ts +174 -41
  350. package/dist/chat-sdk/index.js +425 -83
  351. package/dist/claims-DRmafYVK.js +90 -0
  352. package/dist/claims-DouHL7ZL.js +62 -0
  353. package/dist/cli/_format-Ba0DoWjl.js +99 -0
  354. package/dist/cli/add-ChoHyBhz.js +1222 -0
  355. package/dist/cli/add-DlYL-1mF.js +1 -0
  356. package/dist/cli/add-fzRPyIED.js +98 -0
  357. package/dist/cli/agent-59XWXsRi.js +184 -0
  358. package/dist/cli/app-table-files-C0OtdUVu.js +343 -0
  359. package/dist/cli/arazzo-1.0-D3OaSeZw.js +531 -0
  360. package/dist/cli/arazzo-1.1-DaT2KAkP.js +704 -0
  361. package/dist/cli/args-_ZVgRBkx.js +26 -0
  362. package/dist/cli/asyncapi-3.0.0-Ca-UwtUW.js +5592 -0
  363. package/dist/cli/asyncapi-3.1.0-DUxf5zNu.js +5832 -0
  364. package/dist/cli/backfill-Dq2XMXf9.js +292 -0
  365. package/dist/cli/bin.js +5 -5
  366. package/dist/cli/blocks-CCzp0eAH.js +155 -0
  367. package/dist/cli/blocks-DVhJOzFj.js +1 -0
  368. package/dist/cli/cache-CoC-1i1O.js +643 -0
  369. package/dist/cli/codemod-block-renames-Dt3X1Wvg.js +238 -0
  370. package/dist/cli/codemod-pyf6HmS9.js +2883 -0
  371. package/dist/cli/command-BpZ4AuhR.js +1021 -0
  372. package/dist/cli/compare-yl4sSwVn.js +8 -0
  373. package/dist/cli/completion-B08Q0xB3.js +29 -0
  374. package/dist/cli/completion-CwL7e93t.js +210 -0
  375. package/dist/cli/completion-DHTT6rjI.js +1 -0
  376. package/dist/cli/config-D-Upz3jV.js +46 -0
  377. package/dist/cli/config-D0m2rQqk.js +1 -0
  378. package/dist/cli/config-Dyl3iX3u.js +2029 -0
  379. package/dist/cli/config-edit-C6sQ1MqT.js +619 -0
  380. package/dist/cli/config-group-D4JWh4kG.js +388 -0
  381. package/dist/cli/content-mapper-ChSVT9Tq.js +181 -0
  382. package/dist/cli/db-B8zfxjl2.js +77 -0
  383. package/dist/cli/db-dFzhcozO.js +246 -0
  384. package/dist/cli/detect-BcUDaO8I.js +83 -0
  385. package/dist/cli/dist-CYnD1kyT.js +128 -0
  386. package/dist/cli/dist-MKwjiW2w.js +1114 -0
  387. package/dist/cli/doctor-BKZsztFV.js +4647 -0
  388. package/dist/cli/env-BAJn6wCA.js +142 -0
  389. package/dist/cli/env-BCuUsWOh.js +1109 -0
  390. package/dist/cli/env-D70ihdbB.js +1 -0
  391. package/dist/cli/env-UN6PJFX6.js +1 -0
  392. package/dist/cli/errors-DcJ_PayO.js +97 -0
  393. package/dist/cli/exec-CXBufciC.js +461 -0
  394. package/dist/cli/fastest-levenshtein-B_QF6At5.js +119 -0
  395. package/dist/cli/files-DQayErI8.js +999 -0
  396. package/dist/cli/fresh-import-CdO2oQaQ.js +39 -0
  397. package/dist/cli/gen-BN_eh6rE.js +390 -0
  398. package/dist/cli/guards-DxwRG0Uv.js +7 -0
  399. package/dist/cli/in-stack-diff-huI7fGMX.js +185 -0
  400. package/dist/cli/index.d.ts +1 -53
  401. package/dist/cli/index.js +10 -11
  402. package/dist/cli/init-CaDDt8F6.js +556 -0
  403. package/dist/cli/io-CQzy8PEZ.js +36 -0
  404. package/dist/cli/json5-DhsZB2va.js +784 -0
  405. package/dist/cli/jsonc-DU9Clnrz.js +1 -0
  406. package/dist/cli/jsonc-u_UiXFxs.js +43 -0
  407. package/dist/cli/keys-CxajkV_7.js +105 -0
  408. package/dist/cli/legacy-prefix-D8Jfku6I.js +153 -0
  409. package/dist/cli/live-KU41LMGE.js +339 -0
  410. package/dist/cli/mcp-C_m-TpLJ.js +240 -0
  411. package/dist/cli/metadata-Bq4ra7zo.js +149 -0
  412. package/dist/cli/migrate-DHG2Qz_K.js +45 -0
  413. package/dist/cli/migration-safety-STVbiKhz.js +925 -0
  414. package/dist/cli/migrations-O1QZoMiH.js +116 -0
  415. package/dist/cli/module-migration-DB9ntWM-.js +118 -0
  416. package/dist/cli/moved-BAFPdJz_.js +253 -0
  417. package/dist/cli/ohash-imLR_J5Y.js +276 -0
  418. package/dist/cli/openapi-3.0-BJiTNq_x.js +927 -0
  419. package/dist/cli/openapi-3.1-BcWCoii2.js +869 -0
  420. package/dist/cli/openapi-3.2-MXPkeoTk.js +1030 -0
  421. package/dist/cli/orphans-CPcR85QN.js +27 -0
  422. package/dist/cli/parse-BueItuNJ.js +181 -0
  423. package/dist/cli/powersync-CN3QPF2K.js +375 -0
  424. package/dist/cli/powersync-DfeGl5N1.js +1 -0
  425. package/dist/cli/preset-BQnjDCSR.js +100 -0
  426. package/dist/cli/print-DG7TRCi8.js +66 -0
  427. package/dist/cli/prompts-D9b6uf21.js +1133 -0
  428. package/dist/cli/providers-DpfoF3VC.js +298 -0
  429. package/dist/cli/prune-workflows-DcNJUS1m.js +153 -0
  430. package/dist/cli/redact--zOGdWzo.js +37 -0
  431. package/dist/cli/remove-BpfYqP45.js +237 -0
  432. package/dist/cli/render-Q7jnLn_C.js +2213 -0
  433. package/dist/cli/rolldown-runtime-DegdyBIC.js +25 -0
  434. package/dist/cli/run-9NfabanB.js +703 -0
  435. package/dist/cli/run-D6K-qQIX.js +1450 -0
  436. package/dist/cli/run-dY9uOC3W.js +62 -0
  437. package/dist/cli/seed-B4H0Lco9.js +187 -0
  438. package/dist/cli/seed-BIB6-WPa.js +1 -0
  439. package/dist/cli/shared-PrvYREVy.js +150 -0
  440. package/dist/cli/shell-C1U618XA.js +9 -0
  441. package/dist/cli/skills-jZThjL3B.js +120 -0
  442. package/dist/cli/snapshot-UfJsqfys.js +728 -0
  443. package/dist/cli/source-F3YTVvFo.js +317 -0
  444. package/dist/cli/source-args-DJMrW_jW.js +58 -0
  445. package/dist/cli/spec-DsLQuJKp.js +7449 -0
  446. package/dist/cli/spec-HQOBVbEO.js +1 -0
  447. package/dist/cli/sql-layout-CZ66pY8j.js +260 -0
  448. package/dist/cli/stack-147NqctC.js +134 -0
  449. package/dist/cli/stack-env-BQhbUFa7.js +92 -0
  450. package/dist/cli/stack-status-Mxgqb3I4.js +45 -0
  451. package/dist/cli/stacks-C5YL6Un9.js +230 -0
  452. package/dist/cli/style-B5-nByxb.js +34 -0
  453. package/dist/cli/supabase-toml-B6-eEV5p.js +1155 -0
  454. package/dist/cli/sync-B12wbtFd.js +318 -0
  455. package/dist/cli/table-D9FbJS8h.js +88 -0
  456. package/dist/cli/toml-VX0BsvYq.js +422 -0
  457. package/dist/cli/topics-Cdg0V7Tt.js +29 -0
  458. package/dist/cli/trace-D3TNqWBg.js +6 -0
  459. package/dist/cli/upgrade-AgUXFDo6.js +270 -0
  460. package/dist/cli/upgrade-C20z49De.js +40 -0
  461. package/dist/cli/validate-C_WTnX1U.js +7426 -0
  462. package/dist/cli/version-DEUWW8cv.js +3 -0
  463. package/dist/cli/yaml-JsusTbcC.js +2250 -0
  464. package/dist/client/index.d.ts +7 -7
  465. package/dist/client/index.js +9 -12
  466. package/dist/client/native/index.d.ts +7 -23
  467. package/dist/client/native/index.js +15 -22
  468. package/dist/client-BLor58Je.js +290 -0
  469. package/dist/clone-H_gCsL29.js +32 -0
  470. package/dist/cloud-event-CLvsaPqH.js +62 -0
  471. package/dist/cloud-event-bcaMqEbN.d.ts +62 -0
  472. package/dist/codecs-B1VO2BGL.d.ts +220 -0
  473. package/dist/codecs-B9v5Y5HH.js +357 -0
  474. package/dist/commerce/index.d.ts +5 -13
  475. package/dist/commerce/index.js +13 -16
  476. package/dist/compiler-CWishtY2.d.ts +12 -0
  477. package/dist/compose-BRBlPSEY.js +52 -0
  478. package/dist/composite-BZMkWNOQ.js +125 -0
  479. package/dist/composite-ClLWZIwX.d.ts +79 -0
  480. package/dist/config/index.d.ts +6 -6
  481. package/dist/config/index.js +7 -7
  482. package/dist/config-BhExAhNK.js +1102 -0
  483. package/dist/config-MDRA2sre.js +1672 -0
  484. package/dist/connectors-BImAu75R.d.ts +145 -0
  485. package/dist/context-DSevnLrT.js +40 -0
  486. package/dist/context-DcxfrCml.d.ts +4267 -0
  487. package/dist/controller-BJmh7gFm.js +78 -0
  488. package/dist/controller-D_UJBaEU.d.ts +50 -0
  489. package/dist/controller-y1kSMuCU.js +72 -0
  490. package/dist/conversion-7U1WeLxK.d.ts +84 -0
  491. package/dist/conversion-Bj9j3KnG.js +76 -0
  492. package/dist/cookie-DDkqvqe4.d.ts +3 -0
  493. package/dist/cookie-DJI6xXJ9.js +4 -0
  494. package/dist/cors-9SDsndtb.d.ts +13 -0
  495. package/dist/cors-DrDFLMNn.js +23 -0
  496. package/dist/create/index.d.ts +4 -28
  497. package/dist/create/index.js +9 -15
  498. package/dist/create/lite/index.d.ts +5 -25
  499. package/dist/create/lite/index.js +14 -24
  500. package/dist/create/oauth/index.d.ts +1 -1
  501. package/dist/create/oauth/index.js +1 -2
  502. package/dist/create/supabase/index.d.ts +2 -4
  503. package/dist/create/supabase/index.js +3 -6
  504. package/dist/create-blocks-D7q1boXV.js +367 -0
  505. package/dist/credentials/index.d.ts +6 -10
  506. package/dist/credentials/index.js +11 -12
  507. package/dist/cron-BD8VrQQl.js +147 -0
  508. package/dist/cron-route-DSITg1yC.js +23 -0
  509. package/dist/csv-Bwn9insJ.js +88 -0
  510. package/dist/csv-Dd1iKsk-.d.ts +26 -0
  511. package/dist/data-engine-B-D6bdyx.d.ts +269 -0
  512. package/dist/data-engine-BbqQwso_.js +174 -0
  513. package/dist/data-hooks-BToeAcQ_.js +277 -0
  514. package/dist/db-exception-Dv18UZ-I.js +30 -0
  515. package/dist/deal-forecast-CN_BEy9s.d.ts +21 -0
  516. package/dist/deal-forecast-DsVFoMkJ.js +38 -0
  517. package/dist/define-3RbqoF1S.d.ts +1242 -0
  518. package/dist/define-B6D55cO0.js +2073 -0
  519. package/dist/define-block-22Jv4U_-.js +63 -0
  520. package/dist/define-block-B_i9VPcc.d.ts +1669 -0
  521. package/dist/delegation-BRHHXERz.js +152 -0
  522. package/dist/delivery-CWcbh87x.d.ts +69 -0
  523. package/dist/delivery-SmPHu2_H.js +28 -0
  524. package/dist/delivery-events-0mAEuscm.js +52 -0
  525. package/dist/documents-6ov2gWh3.d.ts +150 -0
  526. package/dist/edge/index.d.ts +17 -23
  527. package/dist/edge/index.js +18 -22
  528. package/dist/elysia/index.d.ts +2 -6
  529. package/dist/elysia/index.js +4 -6
  530. package/dist/email-BRm6wMWQ.d.ts +40 -0
  531. package/dist/embeddings--v4BJdUL.js +127 -0
  532. package/dist/embeddings-K0lH--nt.d.ts +76 -0
  533. package/dist/ended-CCoE7XXY.d.ts +22 -0
  534. package/dist/entitlements-XwpuBbKN.d.ts +52 -0
  535. package/dist/entitlements-sLoj3M6Y.js +44 -0
  536. package/dist/entity-naming-BES3pkQI.js +130 -0
  537. package/dist/entity-schema-DEIz0I8i.js +38 -0
  538. package/dist/env/index.d.ts +1 -1
  539. package/dist/env/index.js +1 -2
  540. package/dist/envelope-DAtaFJue.js +89 -0
  541. package/dist/errors-B7tCfCvX.js +327 -0
  542. package/dist/errors-BdjHv5SV.js +43 -0
  543. package/dist/errors-D3-4c-XF.js +102 -0
  544. package/dist/escape-like-CK6L7gkj.d.ts +26 -0
  545. package/dist/escape-like-gxNXs145.js +6 -0
  546. package/dist/eve/index.d.ts +247 -16
  547. package/dist/eve/index.js +334 -26
  548. package/dist/eve-Cf-QRGij.d.ts +213 -0
  549. package/dist/event-calendar-DUtFyRrv.d.ts +63 -0
  550. package/dist/event-map-DxfsFgQT.js +18 -0
  551. package/dist/events/index.d.ts +3 -3
  552. package/dist/events/index.js +7 -8
  553. package/dist/events-BRKIxVQD.js +25 -0
  554. package/dist/events-CfDdOwqg.d.ts +850 -0
  555. package/dist/events-Da482tiF.js +81 -0
  556. package/dist/executor-BDMqPbVU.js +482 -0
  557. package/dist/executor-C0_TT717.js +840 -0
  558. package/dist/executor-CAhykadW.d.ts +168 -0
  559. package/dist/executor-CbDX34I9.d.ts +99 -0
  560. package/dist/executor-Dc4Pl44u.js +207 -0
  561. package/dist/executor-ynEwaUZy.d.ts +35 -0
  562. package/dist/expo/index.d.ts +5 -9
  563. package/dist/expo/index.js +10 -11
  564. package/dist/extension-DQ9-oOVC.js +58 -0
  565. package/dist/extension-LgaDPMJs.js +120 -0
  566. package/dist/extension-WdHd5uqI.js +102 -0
  567. package/dist/extension-rdpYvpyN.js +52 -0
  568. package/dist/extension-shared-DJb_PfD4.js +59 -0
  569. package/dist/extra-Dz9n5y1s.js +9 -0
  570. package/dist/field-errors-tQr-anYL.d.ts +208 -0
  571. package/dist/field-formats-Cap-V7UP.js +101 -0
  572. package/dist/field-formats-DVukMbRa.d.ts +36 -0
  573. package/dist/fields-AKKMirg_.d.ts +76 -0
  574. package/dist/fields-BBcdKD-S.js +107 -0
  575. package/dist/filter-evaluate-Bhq99aEN.d.ts +35 -0
  576. package/dist/filter-evaluate-D_LLfdtE.js +216 -0
  577. package/dist/filter-query-B7A4l2xn.d.ts +131 -0
  578. package/dist/filter-query-Ds7Z6lgZ.js +565 -0
  579. package/dist/flags-B5B4mkZV.d.ts +315 -0
  580. package/dist/flags-D0npSE-5.js +361 -0
  581. package/dist/flags-sdk/index.d.ts +217 -28
  582. package/dist/flags-sdk/index.js +255 -35
  583. package/dist/form-definition-8cCCt5zj.js +362 -0
  584. package/dist/form-definition-BN8shngm.d.ts +117 -0
  585. package/dist/format-BT0Z3V54.d.ts +77 -0
  586. package/dist/framework-B1h-uquj.js +57 -0
  587. package/dist/framework-CyDn_SXR.d.ts +45 -0
  588. package/dist/function-contract-Bf6llTkE.js +7 -0
  589. package/dist/function-contract-DgDBYbXu.d.ts +25 -0
  590. package/dist/gateway-Cg_MgGen.d.ts +120 -0
  591. package/dist/gateway-options-DQGQzdkD.js +26 -0
  592. package/dist/gateway-options-Mut8jih_.d.ts +27 -0
  593. package/dist/guards-CsRa6v57.js +11 -0
  594. package/dist/guest-actions-CEwttioE.js +8 -0
  595. package/dist/guest-actions-DfHHp98H.d.ts +3 -0
  596. package/dist/h3/index.d.ts +2 -6
  597. package/dist/h3/index.js +4 -6
  598. package/dist/h3/v1/index.d.ts +3 -5
  599. package/dist/h3/v1/index.js +4 -5
  600. package/dist/history-6KiVNWdH.js +269 -0
  601. package/dist/hmac-DNcfpmI9.js +22 -0
  602. package/dist/hono/index.d.ts +14 -19
  603. package/dist/hono/index.js +14 -16
  604. package/dist/http-BDC1IvBX.js +27 -0
  605. package/dist/http-BRUI3qim.js +140 -0
  606. package/dist/http-D4lH1xqY.js +39 -0
  607. package/dist/image-url-bsGeybeg.js +83 -0
  608. package/dist/impersonation-BOCJcsmS.d.ts +26 -0
  609. package/dist/impersonation-D-quM36V.js +61 -0
  610. package/dist/inbox-BmSA9K01.d.ts +326 -0
  611. package/dist/index-8w4OB5En.d.ts +102 -0
  612. package/dist/index-B2871MHr.d.ts +234 -0
  613. package/dist/index-B5_J-MaK.d.ts +152 -0
  614. package/dist/index-BWR29Vvw.d.ts +76 -0
  615. package/dist/index-CRrBZtKm.d.ts +326 -0
  616. package/dist/index-CTpEQvIv.d.ts +291 -0
  617. package/dist/index-D2BGCjIz.d.ts +570 -0
  618. package/dist/index-D66_dYVi.d.ts +667 -0
  619. package/dist/index-Dj4VKpYZ.d.ts +49 -0
  620. package/dist/index-DzBFdI9I.d.ts +145 -0
  621. package/dist/index-lazpPVr0.d.ts +402 -0
  622. package/dist/index-xCpjvDVm.d.ts +637 -0
  623. package/dist/index.d.ts +13 -41
  624. package/dist/index.js +29 -34
  625. package/dist/instance-property-BlH7QSDl.js +6 -0
  626. package/dist/instances-D31jrmKh.js +16636 -0
  627. package/dist/invalidate-DAB9CaPm.d.ts +19 -0
  628. package/dist/iso4217-oKsif_hW.js +175 -0
  629. package/dist/json-O5vFw243.js +21 -0
  630. package/dist/json-schema-D9eVL_xi.js +884 -0
  631. package/dist/jwks-cache-IZaiICAV.js +48 -0
  632. package/dist/jws-B8p0ppgh.js +204 -0
  633. package/dist/jws-CxgTsbgG.d.ts +64 -0
  634. package/dist/kit-CJKo0soh.d.ts +92 -0
  635. package/dist/kit-CVZDd1X9.js +132 -0
  636. package/dist/knowledge-BUwbpS8I.d.ts +215 -0
  637. package/dist/knowledge-DdZzUTQ-.js +299 -0
  638. package/dist/lint/index.d.ts +1 -5
  639. package/dist/lint/index.js +8 -10
  640. package/dist/list/index.d.ts +3 -3
  641. package/dist/list/index.js +3 -3
  642. package/dist/list-query-CZ-K5aHX.d.ts +220 -0
  643. package/dist/list-query-D-tgs1eY.js +558 -0
  644. package/dist/live-BVi3q4bX.js +277 -0
  645. package/dist/logger-0LfhvwE4.d.ts +16 -0
  646. package/dist/logger-BkF8ukXV.js +20 -0
  647. package/dist/lookup-upE-e1zw.js +17 -0
  648. package/dist/management-DtX4ic1F.d.ts +55 -0
  649. package/dist/mapper/bin.js +13 -17
  650. package/dist/mcp/index.d.ts +8 -18
  651. package/dist/mcp/index.js +24 -29
  652. package/dist/mcp/sdk/index.d.ts +7 -11
  653. package/dist/mcp/sdk/index.js +12 -14
  654. package/dist/message-Cc4bkdNw.d.ts +97 -0
  655. package/dist/messages-CRk1g6oe.js +512 -0
  656. package/dist/messaging-DMhtGxVv.d.ts +295 -0
  657. package/dist/methods-BjfDv4Gy.js +9 -0
  658. package/dist/metric-definition-2KQYeUZ1.d.ts +67 -0
  659. package/dist/metric-definition-D4H6IQT7.js +116 -0
  660. package/dist/mfa-CM5r904M.d.ts +34 -0
  661. package/dist/model-Lxa_mOzB.d.ts +338 -0
  662. package/dist/model-messages-BcrkjsPE.js +205 -0
  663. package/dist/model-messages-CGSUU450.d.ts +32 -0
  664. package/dist/money-BgpAd7d3.d.ts +89 -0
  665. package/dist/money-DH--bbYr.js +196 -0
  666. package/dist/money-codec-SKPm8FPw.js +40 -0
  667. package/dist/my-work-kinds-DNPq3ccL.js +10 -0
  668. package/dist/nestjs/index.d.ts +3 -5
  669. package/dist/nestjs/index.js +5 -6
  670. package/dist/next/client/index.d.ts +1 -5
  671. package/dist/next/client/index.js +2 -4
  672. package/dist/next/image/index.d.ts +1 -3
  673. package/dist/next/image/index.js +2 -3
  674. package/dist/next/index.d.ts +149 -92
  675. package/dist/next/index.js +167 -114
  676. package/dist/node/index.d.ts +3 -3
  677. package/dist/node/index.js +6 -7
  678. package/dist/node-headers-C3FExlg9.js +54 -0
  679. package/dist/node-headers-TnS4T7V_.d.ts +25 -0
  680. package/dist/nuxt/index.d.ts +0 -2
  681. package/dist/nuxt/index.js +1 -2
  682. package/dist/operations-BNFbWv1t.js +28 -0
  683. package/dist/operations-D51ONRvR.d.ts +4 -0
  684. package/dist/optional-peer-5SOYr3lL.js +31 -0
  685. package/dist/options--rohtkkC.js +4 -0
  686. package/dist/options-1iHDmlZ5.js +8 -0
  687. package/dist/options-2QJXZPPS.js +4 -0
  688. package/dist/options-B-JqrC61.d.ts +8 -0
  689. package/dist/options-B3xH2JvJ.js +8 -0
  690. package/dist/options-B4sTqDrt.js +4 -0
  691. package/dist/options-B56njigZ.js +19 -0
  692. package/dist/options-B5A3UmKY.d.ts +17 -0
  693. package/dist/options-B6m9gYRH.d.ts +11 -0
  694. package/dist/options-B7Pl708M.js +8 -0
  695. package/dist/options-B7YrdiUc.js +11 -0
  696. package/dist/options-B8c2_hIB.js +9 -0
  697. package/dist/options-B9w_Y08G.d.ts +6 -0
  698. package/dist/options-BDF60ouf.js +4 -0
  699. package/dist/options-BDMPjyrI.js +4 -0
  700. package/dist/options-BHdHuY5r.js +14 -0
  701. package/dist/options-BLMeCbtT.js +31 -0
  702. package/dist/options-BLQePOPy.d.ts +8 -0
  703. package/dist/options-BLn1PFyu.js +4 -0
  704. package/dist/options-BMO-FnOT.js +7 -0
  705. package/dist/options-BNRvoEkj.js +4 -0
  706. package/dist/options-BPQOiVx2.js +7 -0
  707. package/dist/options-BSTJmfX4.js +10 -0
  708. package/dist/options-BTRH26MJ.js +9 -0
  709. package/dist/options-BTaQszYn.js +9 -0
  710. package/dist/options-BYo7hMHK.js +10 -0
  711. package/dist/options-B_bxCZYM.js +7 -0
  712. package/dist/options-BaBaVWS-.js +10 -0
  713. package/dist/options-BamaRO-q.d.ts +12 -0
  714. package/dist/options-BcBdiPSZ.js +7 -0
  715. package/dist/options-BfY4pyQE.js +23 -0
  716. package/dist/options-BgCS5ODi.js +9 -0
  717. package/dist/options-Bi96Lzuf.js +9 -0
  718. package/dist/options-BjEsSoFp.js +17 -0
  719. package/dist/options-Bkx8vwip.js +4 -0
  720. package/dist/options-BmFSI07A.js +4 -0
  721. package/dist/options-BmwDdKwE.js +7 -0
  722. package/dist/options-Bn3NjXfn.js +7 -0
  723. package/dist/options-BqK4xV67.js +13 -0
  724. package/dist/options-Bs2dC-at.js +11 -0
  725. package/dist/options-BvttpM1M.js +4 -0
  726. package/dist/options-Bwrwb8do.d.ts +10 -0
  727. package/dist/options-BxdqA2Ex.js +19 -0
  728. package/dist/options-BzxR82Tu.js +9 -0
  729. package/dist/options-C-NFS6e3.js +13 -0
  730. package/dist/options-C13-dVMH.js +7 -0
  731. package/dist/options-C1RIyAe1.js +7 -0
  732. package/dist/options-C1kZ3qLd.js +8 -0
  733. package/dist/options-C2RjdunU.js +27 -0
  734. package/dist/options-C4kpi6HE.js +8 -0
  735. package/dist/options-C5MfwOAO.js +8 -0
  736. package/dist/options-C5fKQ3EJ.d.ts +10 -0
  737. package/dist/options-CJR59q8s.js +17 -0
  738. package/dist/options-CJVYQue3.d.ts +10 -0
  739. package/dist/options-CLy7CcMn.js +8 -0
  740. package/dist/options-COfEYic3.js +8 -0
  741. package/dist/options-CRwTY_q2.d.ts +58 -0
  742. package/dist/options-CcW7h8mv.js +9 -0
  743. package/dist/options-Ceu2j1vv.js +7 -0
  744. package/dist/options-CgBKgmI8.js +7 -0
  745. package/dist/options-CgMiQGOF.js +9 -0
  746. package/dist/options-CptvcSmF.js +11 -0
  747. package/dist/options-CsLUAt04.js +8 -0
  748. package/dist/options-CtyjhSGk.js +15 -0
  749. package/dist/options-CuPWezcV.js +7 -0
  750. package/dist/options-CyDOOWlk.js +7 -0
  751. package/dist/options-CyYZvdSy.js +10 -0
  752. package/dist/options-CzIPn0fF.js +4 -0
  753. package/dist/options-CzWjw2HY.js +10 -0
  754. package/dist/options-CztbWdz9.js +4 -0
  755. package/dist/options-D4LuPM8a.js +4 -0
  756. package/dist/options-D4dxMGHF.js +7 -0
  757. package/dist/options-D5a9CHgP.js +7 -0
  758. package/dist/options-D6tpMRvp.d.ts +13 -0
  759. package/dist/options-D848Os4l.js +10 -0
  760. package/dist/options-DCZPW5gR.d.ts +15 -0
  761. package/dist/options-DFSHZFLN.js +4 -0
  762. package/dist/options-DFemc2im.js +9 -0
  763. package/dist/options-DFgHHwzD.js +12 -0
  764. package/dist/options-DNZ9r_Vo.d.ts +8 -0
  765. package/dist/options-DP7NwQPZ.js +4 -0
  766. package/dist/options-DPQaafyc.js +7 -0
  767. package/dist/options-DQkhhBLy.js +4 -0
  768. package/dist/options-DTTz33na.js +9 -0
  769. package/dist/options-DToWdVqW.js +4 -0
  770. package/dist/options-DUNUGuhM.js +4 -0
  771. package/dist/options-DWgpi5ns.js +7 -0
  772. package/dist/options-DeamnVOY.d.ts +12 -0
  773. package/dist/options-Dg7eK-_J.d.ts +8 -0
  774. package/dist/options-DiIlMZpc.js +8 -0
  775. package/dist/options-DjFbIRgV.js +16 -0
  776. package/dist/options-DjtCYRWb.js +4 -0
  777. package/dist/options-Dk6D88Zx.d.ts +6 -0
  778. package/dist/options-DpwRG4tO.js +8 -0
  779. package/dist/options-DvgKdZ2K.js +9 -0
  780. package/dist/options-DwIoRvic.js +4 -0
  781. package/dist/options-GwwLsKf5.js +8 -0
  782. package/dist/options-I1ZHfDP0.d.ts +58 -0
  783. package/dist/options-Itq7QYoW.js +20 -0
  784. package/dist/options-JnPEVbBJ.js +17 -0
  785. package/dist/options-Jwux4JDX.js +7 -0
  786. package/dist/options-Lg76d-cV.js +7 -0
  787. package/dist/options-Lh6uxepF.d.ts +24 -0
  788. package/dist/options-Oki2W_c3.js +4 -0
  789. package/dist/options-PM7IaIFP.js +10 -0
  790. package/dist/options-PTLBl6QT.js +7 -0
  791. package/dist/options-PheFo4JY.js +10 -0
  792. package/dist/options-SlC_jZ7y.js +4 -0
  793. package/dist/options-Sq4bYbf5.js +13 -0
  794. package/dist/options-XiD_Y3oK.js +14 -0
  795. package/dist/options-Z-bd_H1E.js +88 -0
  796. package/dist/options-ax_ssX_m.js +4 -0
  797. package/dist/options-bNB8_nlW.js +23 -0
  798. package/dist/options-eIEk0vqV.js +4 -0
  799. package/dist/options-eLIedotm.js +7 -0
  800. package/dist/options-jg0FMHA5.js +4 -0
  801. package/dist/options-mypVYaqR.js +9 -0
  802. package/dist/options-ompJjxkV.js +4 -0
  803. package/dist/options-pbc4H8_A.js +7 -0
  804. package/dist/options-uUGi0Phf.d.ts +14 -0
  805. package/dist/options-yRwYr4up.js +4 -0
  806. package/dist/options-z2Zhi97E.js +9 -0
  807. package/dist/options-zYV6M0vr.js +8 -0
  808. package/dist/orpc/index.d.ts +13 -19
  809. package/dist/orpc/index.js +20 -22
  810. package/dist/otel/index.d.ts +4 -6
  811. package/dist/otel/index.js +8 -10
  812. package/dist/outbox-C44Aa94K.d.ts +197 -0
  813. package/dist/payments-B4JchZuJ.js +15 -0
  814. package/dist/payments-BBGSGRQ7.d.ts +112 -0
  815. package/dist/permissions-B9aZZ9LR.js +43 -0
  816. package/dist/permissions-controller-B4uI5IPH.js +33 -0
  817. package/dist/pg-error-D92B6jlF.js +25 -0
  818. package/dist/plugin-Ca2qBiFZ.js +47 -0
  819. package/dist/pool-Bji4lnQM.d.ts +121 -0
  820. package/dist/pool-errors-JrZie6u3.js +26 -0
  821. package/dist/ports-C-hdygkZ.js +150 -0
  822. package/dist/ports-zFqRNXVJ.d.ts +87 -0
  823. package/dist/postgres/index.d.ts +5 -11
  824. package/dist/postgres/index.js +7 -9
  825. package/dist/postgrest-2WjRrtmX.d.ts +51 -0
  826. package/dist/postgrest-executor-lf8Mt4J0.js +1064 -0
  827. package/dist/powersync/index.d.ts +203 -21
  828. package/dist/powersync/index.js +369 -22
  829. package/dist/preset/index.d.ts +3 -3
  830. package/dist/preset/index.js +3 -3
  831. package/dist/preset-om2rbdYw.js +1038 -0
  832. package/dist/problem-C0SVHhd3.js +161 -0
  833. package/dist/problem-NGBjN-TO.d.ts +77 -0
  834. package/dist/project-oNHntJ6T.js +1749 -0
  835. package/dist/provider-B6qpleR9.js +56 -0
  836. package/dist/provider-CH8McX3b.d.ts +142 -0
  837. package/dist/providers-C9sBIBYE.js +62 -0
  838. package/dist/push-token-CO28k46S.js +15 -0
  839. package/dist/push-token-a3Ev1U3L.d.ts +22 -0
  840. package/dist/queries-BLrxg_GL.js +238 -0
  841. package/dist/query/index.d.ts +3 -3
  842. package/dist/query/index.js +11 -15
  843. package/dist/range-BN3kpJAE.d.ts +6 -0
  844. package/dist/range-Nrh_qtb_.js +6 -0
  845. package/dist/rank-keys-CEBzd9Xa.js +59 -0
  846. package/dist/rank-result-B_xLQCBV.d.ts +12 -0
  847. package/dist/rank-result-DzaTKKhH.js +17 -0
  848. package/dist/rate-limit-C89Yzwd9.d.ts +48 -0
  849. package/dist/rate-limit-CRhlLFhP.js +380 -0
  850. package/dist/rate-limit-DXJbLVg0.js +48 -0
  851. package/dist/ratelimit-headers-CpB-cDD6.js +61 -0
  852. package/dist/react/index.d.ts +11 -11
  853. package/dist/react/index.js +6 -6
  854. package/dist/react/native/index.d.ts +3 -5
  855. package/dist/react/native/index.js +5 -5
  856. package/dist/react/server.d.ts +13 -15
  857. package/dist/react/server.js +9 -10
  858. package/dist/react/session.d.ts +4 -6
  859. package/dist/react/session.js +2 -3
  860. package/dist/react-C40oomj7.js +1006 -0
  861. package/dist/react-CqOVutZj.js +80 -0
  862. package/dist/react-router/index.d.ts +8 -12
  863. package/dist/react-router/index.js +9 -11
  864. package/dist/read-set-DEDoIHMM.js +198 -0
  865. package/dist/realtime/index.d.ts +7 -7
  866. package/dist/realtime/index.js +6 -7
  867. package/dist/realtime-status-CocmAOPv.js +10 -0
  868. package/dist/realtime-status-D3oUx3o4.d.ts +6 -0
  869. package/dist/record-bindings-jTZw-GVe.js +25 -0
  870. package/dist/record-form-DCIui2Ol.d.ts +80 -0
  871. package/dist/record-type-oQxekQTX.js +219 -0
  872. package/dist/recordings-Dlpq8jUG.d.ts +117 -0
  873. package/dist/records/index.d.ts +10 -14
  874. package/dist/records/index.js +13 -16
  875. package/dist/refresh-B8t_KE3s.js +142 -0
  876. package/dist/refresh-BK9epzeC.d.ts +52 -0
  877. package/dist/refusal-DEuFVi4s.d.ts +30 -0
  878. package/dist/refusal-DhX7Xpfp.js +63 -0
  879. package/dist/relay-CllqA-lV.js +248 -0
  880. package/dist/resolve-DVOtYTAc.d.ts +287 -0
  881. package/dist/resolve-FW8oeXvh.js +927 -0
  882. package/dist/resolved-names-DYYyh35i.js +130 -0
  883. package/dist/resource-BfsTJnxZ.d.ts +119 -0
  884. package/dist/resource-Cn6Bn-_o.js +517 -0
  885. package/dist/resource-DQ4kIBpa.js +104 -0
  886. package/dist/resource-execute-DQRS7PFt.d.ts +13 -0
  887. package/dist/resource-schemas-Bq0g2RCQ.js +81 -0
  888. package/dist/resource-types-DF6KDAZM.d.ts +155 -0
  889. package/dist/resources-B0Vy7_wv.js +63 -0
  890. package/dist/resources-CeY53FiJ.d.ts +5 -0
  891. package/dist/respond-C2qvP1wv.js +106 -0
  892. package/dist/respond-CkwkvFdZ.d.ts +108 -0
  893. package/dist/result-8xza7w5W.js +145 -0
  894. package/dist/result-DTOQRyGY.d.ts +347 -0
  895. package/dist/rows-Ce8dsmfM.js +79 -0
  896. package/dist/rows-D-RqIsRz.js +38 -0
  897. package/dist/rrule-BLpe2449.js +289 -0
  898. package/dist/run-keys-BnzqxtYc.d.ts +59 -0
  899. package/dist/run-state-D0Tbl-nM.d.ts +11 -0
  900. package/dist/run-state-DGiyDQxH.js +12 -0
  901. package/dist/run-watch-DJk4Q603.js +52 -0
  902. package/dist/runtime-qslVrC9l.js +43 -0
  903. package/dist/sales-lines-Bde9cV5F.d.ts +36 -0
  904. package/dist/sales-lines-axwWhnLk.js +44 -0
  905. package/dist/sales-shared-CY3s_wBx.js +21 -0
  906. package/dist/sandboxes-DDWuD9fh.d.ts +85 -0
  907. package/dist/schemas-CpoEiAeT.js +213 -0
  908. package/dist/scope-dD_OAgRU.js +89 -0
  909. package/dist/scores-Bql-ABl0.d.ts +172 -0
  910. package/dist/scores-Bvk_JgXL.js +176 -0
  911. package/dist/search-DtbkD0h0.js +8 -0
  912. package/dist/server/index.d.ts +35 -69
  913. package/dist/server/index.js +51 -59
  914. package/dist/server-types-C3p3jUqr.d.ts +583 -0
  915. package/dist/session-BOch2y2z.d.ts +96 -0
  916. package/dist/session-status-DRBRnZHx.d.ts +80 -0
  917. package/dist/shared-Bmcnxwie.js +16 -0
  918. package/dist/shared-Ci1g9nl4.js +90 -0
  919. package/dist/shared-DsBcvj6q.d.ts +9 -0
  920. package/dist/sign-in-BmigClRh.js +730 -0
  921. package/dist/sign-in-C9pZE1kM.d.ts +53 -0
  922. package/dist/sign-in-CXOg2Dwb.js +399 -0
  923. package/dist/sign-in-Dxyi4aKu.d.ts +83 -0
  924. package/dist/signatures-CBn7w4VR.js +144 -0
  925. package/dist/signatures-jPr9JXyw.d.ts +41 -0
  926. package/dist/signers-Cz5ZhTHH.d.ts +380 -0
  927. package/dist/signing-keys-BC5_hJN5.js +163 -0
  928. package/dist/signing-keys-DS-rIVzz.d.ts +117 -0
  929. package/dist/simplify-BzThKn5b.js +82 -0
  930. package/dist/solid/index.d.ts +12 -22
  931. package/dist/solid/index.js +10 -16
  932. package/dist/solid-start/index.d.ts +7 -9
  933. package/dist/solid-start/index.js +8 -9
  934. package/dist/spec/index.d.ts +6 -48
  935. package/dist/spec/index.js +23 -39
  936. package/dist/spec-6Vr7sc0Z.js +123 -0
  937. package/dist/spec-pins-CuQ2anBw.d.ts +125 -0
  938. package/dist/spec-pins-FKUzgF6K.js +61 -0
  939. package/dist/sql/index.d.ts +4 -4
  940. package/dist/sql/index.js +4 -4
  941. package/dist/sql-BPV51R3A.js +140626 -0
  942. package/dist/sql-C1K5JALb.js +420 -0
  943. package/dist/sql-type-XWMeZRAl.js +33 -0
  944. package/dist/sqlite/index.d.ts +3 -9
  945. package/dist/sqlite/index.js +5 -8
  946. package/dist/sso-BEvNf1oW.d.ts +159 -0
  947. package/dist/sso-CRnaFJh0.js +216 -0
  948. package/dist/ssr/index.d.ts +5 -5
  949. package/dist/ssr/index.js +3 -3
  950. package/dist/standard-BD2aOUsf.js +24 -0
  951. package/dist/standard-DRX6Ch1j.d.ts +5 -0
  952. package/dist/stats-BTJgRMEp.js +82 -0
  953. package/dist/statuses-BTrQ5H4S.js +27 -0
  954. package/dist/statuses-Bv-0XoYC.js +27 -0
  955. package/dist/storage/index.d.ts +3 -3
  956. package/dist/storage/index.js +27 -40
  957. package/dist/storage-api-COQr77e8.js +9 -0
  958. package/dist/store-CKKzmsWB.js +68 -0
  959. package/dist/store-c7QxUHX-.d.ts +81 -0
  960. package/dist/streams/index.d.ts +3 -7
  961. package/dist/streams/index.js +5 -6
  962. package/dist/streams/redis/index.d.ts +1 -3
  963. package/dist/streams/redis/index.js +6 -7
  964. package/dist/stripe/index.d.ts +1 -3
  965. package/dist/stripe/index.js +3 -4
  966. package/dist/stripe-Bl-sjnl6.d.ts +154 -0
  967. package/dist/stripe-DKRwRWew.js +31 -0
  968. package/dist/subject-readers-BARV5rNp.js +48 -0
  969. package/dist/subject-readers-DWkVSbFr.d.ts +19 -0
  970. package/dist/subject-type-BarjdHZV.js +7 -0
  971. package/dist/subjects-BGwLJ3IB.d.ts +148 -0
  972. package/dist/subjects-vci6Wufh.d.ts +86 -0
  973. package/dist/subscribers-C57054Pc.js +32 -0
  974. package/dist/summaries-CUemsYwV.d.ts +67 -0
  975. package/dist/supabase-mcp-DY32eoax.d.ts +44 -0
  976. package/dist/supabase-mcp-QvebHckf.js +27 -0
  977. package/dist/support-rZbdU35s.d.ts +351 -0
  978. package/dist/support-view-CvDEgyGY.js +17 -0
  979. package/dist/support-view-WY4Y-A40.d.ts +15 -0
  980. package/dist/svelte/index.d.ts +11 -21
  981. package/dist/svelte/index.js +9 -15
  982. package/dist/sveltekit/index.d.ts +10 -14
  983. package/dist/sveltekit/index.js +12 -14
  984. package/dist/table-schema-CwXg7oBz.d.ts +77 -0
  985. package/dist/table-schema-D-ss9ozY.js +291 -0
  986. package/dist/tables-BSiVuKKx.js +72 -0
  987. package/dist/tags-BVLELhOf.d.ts +28 -0
  988. package/dist/tags-CW-KvjdL.js +38 -0
  989. package/dist/tanstack-db/index.d.ts +4 -8
  990. package/dist/tanstack-db/index.js +4 -6
  991. package/dist/tanstack-start/index.d.ts +8 -12
  992. package/dist/tanstack-start/index.js +8 -10
  993. package/dist/tax-BD9dN1rx.d.ts +168 -0
  994. package/dist/tax-BwckP5dv.js +139 -0
  995. package/dist/tee-CVOMhEX-.js +100 -0
  996. package/dist/template-CNq9xcfx.js +125 -0
  997. package/dist/temporal-DKTdGK9i.js +94 -0
  998. package/dist/temporal-required-w_2u4EDp.js +19 -0
  999. package/dist/tenant-BR7fvPj7.js +26 -0
  1000. package/dist/tenant-RKvGBB-U.d.ts +15 -0
  1001. package/dist/tenant-source-46lMuMEn.js +7 -0
  1002. package/dist/testing/index.d.ts +87 -124
  1003. package/dist/testing/index.js +158 -128
  1004. package/dist/timeline-Bs-FGMIJ.js +49 -0
  1005. package/dist/timeline-Ck8OFuAN.d.ts +147 -0
  1006. package/dist/timing-B6yHayKA.js +94 -0
  1007. package/dist/topic-BBBCVLyS.js +640 -0
  1008. package/dist/topic-Dr8VYE4D.d.ts +411 -0
  1009. package/dist/transport-CS4cVH4S.js +30 -0
  1010. package/dist/ttl-cache-C5S0L2wx.js +31 -0
  1011. package/dist/types-BiedVwz_.d.ts +192 -0
  1012. package/dist/types-CCmW3MqI.d.ts +449 -0
  1013. package/dist/types-CL-z0A4K.d.ts +660 -0
  1014. package/dist/types-CvlJNzX4.d.ts +215 -0
  1015. package/dist/types-D9FY9qSJ.d.ts +247 -0
  1016. package/dist/types-DWZubmwk.d.ts +648 -0
  1017. package/dist/types-DnrJ_crV.js +28 -0
  1018. package/dist/types-Pv5WPfIC.d.ts +175 -0
  1019. package/dist/types-WZUVlTXs.d.ts +907 -0
  1020. package/dist/undo-BdoEJ6Ot.d.ts +44 -0
  1021. package/dist/undo-Dki6Ujak.js +43 -0
  1022. package/dist/upload-claim-Bo2mpBz4.js +32 -0
  1023. package/dist/usage-D27Uw426.d.ts +230 -0
  1024. package/dist/user-change-Ngy8z1fZ.js +133 -0
  1025. package/dist/variants-BaMleC56.js +51 -0
  1026. package/dist/vault-Dx0LaNMX.d.ts +60 -0
  1027. package/dist/vercel-connect/index.d.ts +194 -20
  1028. package/dist/vercel-connect/index.js +265 -33
  1029. package/dist/vercel-sandbox/index.d.ts +166 -0
  1030. package/dist/vercel-sandbox/index.js +171 -0
  1031. package/dist/verify-DY_j4GPZ.js +129 -0
  1032. package/dist/verify-DnL0Fgu0.d.ts +144 -0
  1033. package/dist/view-DmEZA1fL.d.ts +95 -0
  1034. package/dist/view-YnesSUEa.js +244 -0
  1035. package/dist/vue/index.d.ts +12 -22
  1036. package/dist/vue/index.js +10 -16
  1037. package/dist/watch-topic-BB7T05sc.d.ts +29 -0
  1038. package/dist/watch-topic-C2KxpeaB.js +56 -0
  1039. package/dist/wire-DIoLA8VL.js +90 -0
  1040. package/dist/wiring-DJBSLdyF.js +12 -0
  1041. package/dist/workflow-sdk/builder/index.d.ts +12 -14
  1042. package/dist/workflow-sdk/builder/index.js +12 -11
  1043. package/dist/workflow-sdk/index.d.ts +62 -6
  1044. package/dist/workflow-sdk/index.js +75 -10
  1045. package/dist/workflow-sdk/world/index.d.ts +13 -20
  1046. package/dist/workflow-sdk/world/index.js +115 -26
  1047. package/dist/workflow-sdk-BL3wzkdp.js +2749 -0
  1048. package/dist/workflow-sdk-D5zRSwxh.js +302 -0
  1049. package/dist/workflow-sdk-DMpVSMB7.d.ts +171 -0
  1050. package/dist/workflows-DKTw2PZo.d.ts +256 -0
  1051. package/dist/yjs/index.d.ts +3 -5
  1052. package/dist/yjs/index.js +6 -7
  1053. package/package.json +45 -31
  1054. package/schemas/config-v1.json +66 -4
  1055. package/schemas/doctor-report-v1.json +1 -0
  1056. package/schemas/snapshot-v2.json +7 -0
  1057. package/skills/better-supabase/SKILL.md +4 -4
  1058. package/skills/better-supabase/references/block-extensions.md +2 -2
  1059. package/skills/better-supabase/references/troubleshooting.md +1 -1
  1060. package/skills/better-supabase/references/ui-recipes.md +591 -325
  1061. package/skills/better-supabase-api/SKILL.md +1 -1
  1062. package/skills/better-supabase-api/references/adapters.md +3 -3
  1063. package/skills/better-supabase-api/references/ai.md +8 -0
  1064. package/skills/better-supabase-api/references/powersync.md +16 -0
  1065. package/skills/better-supabase-auth/SKILL.md +22 -19
  1066. package/skills/better-supabase-auth/references/authorization-providers.md +1 -1
  1067. package/dist/access-sql-CTDNuxRv.js +0 -385
  1068. package/dist/actor-CoveJgya.d.ts +0 -106
  1069. package/dist/actor-go7p9-CJ.js +0 -150
  1070. package/dist/adapter-D4aNBxhm.js +0 -2301
  1071. package/dist/agents-CM_cCtcr.d.ts +0 -117
  1072. package/dist/ai-cache-BFRKxgZ4.js +0 -87
  1073. package/dist/ai-cache-BTGqckta.d.ts +0 -82
  1074. package/dist/ai-chat-B7_vQvxU.d.ts +0 -619
  1075. package/dist/ai-files-m_2z3rH1.js +0 -339
  1076. package/dist/ai-message-DfaP8sis.js +0 -14
  1077. package/dist/ai-schedules-CZEfo-_M.d.ts +0 -166
  1078. package/dist/anchors-7F34QyHa.d.ts +0 -40
  1079. package/dist/api-3C0AWFeP.js +0 -696
  1080. package/dist/api-59rv5hL6.d.ts +0 -495
  1081. package/dist/api-keys-JE-aykZE.d.ts +0 -213
  1082. package/dist/app-tables-yyVncXEt.d.ts +0 -28
  1083. package/dist/approvals-BfEafAzt.d.ts +0 -129
  1084. package/dist/assistant-B49qATbj.d.ts +0 -157
  1085. package/dist/attachments-BXbLnNxm.js +0 -376
  1086. package/dist/attributes-Bzf51_nc.js +0 -47
  1087. package/dist/auth-DyF_LRxd.js +0 -20
  1088. package/dist/auth-link-B4NL84XU.d.ts +0 -104
  1089. package/dist/auth-link-D3-bU6yz.js +0 -118
  1090. package/dist/auth-module-BbmX-N4L.js +0 -52
  1091. package/dist/auth-reply-Dj124sbX.d.ts +0 -11
  1092. package/dist/auth-reply-tlXB2FQ9.js +0 -31
  1093. package/dist/authorization-CDU9tYA_.d.ts +0 -3860
  1094. package/dist/authorization-hooks-BWhkMZfH.d.ts +0 -221
  1095. package/dist/authorizer-B6X09otb.d.ts +0 -118
  1096. package/dist/authorizer-BGhXaDmo.js +0 -172
  1097. package/dist/automation-D41DXyvT.js +0 -75
  1098. package/dist/automations-8L3NEuoq.js +0 -29
  1099. package/dist/automations-BKjJpktQ.js +0 -33
  1100. package/dist/automations-BMuqwZZn.js +0 -314
  1101. package/dist/automations-EzXteupo.js +0 -31
  1102. package/dist/availability-BdeKCHpl.d.ts +0 -236
  1103. package/dist/base64-B9Wlsdj7.js +0 -42
  1104. package/dist/batch-limit-DKVQDz4o.js +0 -5
  1105. package/dist/before-route-B23K2zYU.js +0 -30
  1106. package/dist/bind-p7asfI6H.d.ts +0 -104
  1107. package/dist/block-authors-Bw3zdzgl.js +0 -14
  1108. package/dist/block-authors-DzXLUiIq.d.ts +0 -12
  1109. package/dist/block-env-B8wG3xeh.d.ts +0 -32
  1110. package/dist/block-event-listener-Bu6G0TFH.js +0 -16
  1111. package/dist/block-events-IWAyafO3.js +0 -83
  1112. package/dist/block-fields-BE7pInWZ.d.ts +0 -58
  1113. package/dist/block-fields-BjXgX_5c.js +0 -140
  1114. package/dist/block-helpers-B0f0ZVb5.js +0 -437
  1115. package/dist/block-helpers-D5emQ2O6.d.ts +0 -62
  1116. package/dist/block-hooks-B8itxzEE.d.ts +0 -117
  1117. package/dist/block-hooks-DKtz0HRh.js +0 -130
  1118. package/dist/block-method-C9hWdHom.js +0 -21
  1119. package/dist/block-method-CiVa2G-J.d.ts +0 -14
  1120. package/dist/block-subjects-C1_9DkSA.d.ts +0 -6
  1121. package/dist/block-subjects-DFSuFY1a.js +0 -55
  1122. package/dist/block-tenant-DHp7subc.js +0 -14
  1123. package/dist/block-transport-9EUA3q_I.d.ts +0 -69
  1124. package/dist/bookings-xsmM2TA_.d.ts +0 -289
  1125. package/dist/bucket-SvRQwYS4.d.ts +0 -705
  1126. package/dist/build-CH2N3Yf0.js +0 -2073
  1127. package/dist/build-DbIRFcHQ.js +0 -735
  1128. package/dist/carrier-KzeYXVrW.d.ts +0 -169
  1129. package/dist/casing-DdFWEtqr.js +0 -16
  1130. package/dist/channel-JcMd5lNP.d.ts +0 -105
  1131. package/dist/channels-CfcFPuo_.js +0 -114
  1132. package/dist/claims-Bp9My7XP.js +0 -88
  1133. package/dist/claims-DTy6R6my.js +0 -63
  1134. package/dist/cli/_format-Cax5EsM9.js +0 -101
  1135. package/dist/cli/add-BdhGOwkB.js +0 -1
  1136. package/dist/cli/add-D4w-Axib.js +0 -1231
  1137. package/dist/cli/add-Dggyehsy.js +0 -99
  1138. package/dist/cli/agent-CbuPvI2x.js +0 -185
  1139. package/dist/cli/app-table-files-CiGuwLkO.js +0 -346
  1140. package/dist/cli/arazzo-1.0-BalU61-_.js +0 -532
  1141. package/dist/cli/arazzo-1.1-Bnfasbun.js +0 -705
  1142. package/dist/cli/args-UEwg0l-N.js +0 -27
  1143. package/dist/cli/asyncapi-3.0.0-C78dBjR6.js +0 -5593
  1144. package/dist/cli/asyncapi-3.1.0-g-7aIfV1.js +0 -5833
  1145. package/dist/cli/backfill-DjVjXW_P.js +0 -293
  1146. package/dist/cli/blocks-Bbmb6W_F.js +0 -1
  1147. package/dist/cli/blocks-jRL9K1R8.js +0 -156
  1148. package/dist/cli/cache-BuoIFlUJ.js +0 -607
  1149. package/dist/cli/codemod-DRavXBCb.js +0 -2435
  1150. package/dist/cli/codemod-block-renames-BuSaTE_G.js +0 -239
  1151. package/dist/cli/command-DIPmo0wh.js +0 -997
  1152. package/dist/cli/compare-BmIWVEui.js +0 -9
  1153. package/dist/cli/completion-DxPxMtyP.js +0 -211
  1154. package/dist/cli/completion-DyLMSjOD.js +0 -1
  1155. package/dist/cli/completion-FUgqm2-N.js +0 -30
  1156. package/dist/cli/config-BfapErxs.js +0 -47
  1157. package/dist/cli/config-Cskysxp-.js +0 -2000
  1158. package/dist/cli/config-Df5cXWNN.js +0 -1
  1159. package/dist/cli/config-edit-CrWfk8s3.js +0 -621
  1160. package/dist/cli/config-group-CP-B9uRt.js +0 -390
  1161. package/dist/cli/content-mapper-BCtyfKXl.js +0 -182
  1162. package/dist/cli/db-CQCLx7cx.js +0 -78
  1163. package/dist/cli/db-CWvH1_46.js +0 -247
  1164. package/dist/cli/detect-D9JaAX20.js +0 -84
  1165. package/dist/cli/dist-D_VbPAMR.js +0 -129
  1166. package/dist/cli/dist-DuiMMRbJ.js +0 -1112
  1167. package/dist/cli/doctor-Di2ZekfN.js +0 -4659
  1168. package/dist/cli/env-B2CbnbzD.js +0 -143
  1169. package/dist/cli/env-BK0xKMeU.js +0 -1113
  1170. package/dist/cli/env-Bat6ogep.js +0 -1
  1171. package/dist/cli/env-CynGCICL.js +0 -1
  1172. package/dist/cli/errors-BTe6A15O.js +0 -98
  1173. package/dist/cli/exec-Ca5s-ygi.js +0 -463
  1174. package/dist/cli/fastest-levenshtein-dhRRvrM2.js +0 -120
  1175. package/dist/cli/files-CX71yBm8.js +0 -1010
  1176. package/dist/cli/fresh-import-DzgsGHkX.js +0 -40
  1177. package/dist/cli/gen-STKC9vkK.js +0 -394
  1178. package/dist/cli/guards-CUlDNYZs.js +0 -8
  1179. package/dist/cli/in-stack-diff-Cp-tVPj2.js +0 -186
  1180. package/dist/cli/init-DW6_nIwj.js +0 -559
  1181. package/dist/cli/io-DH1kcmmP.js +0 -37
  1182. package/dist/cli/json5-ChRycquj.js +0 -787
  1183. package/dist/cli/jsonc-C8M0EhHB.js +0 -1
  1184. package/dist/cli/jsonc-D5Fu67jw.js +0 -45
  1185. package/dist/cli/keys-V-HcO-21.js +0 -106
  1186. package/dist/cli/legacy-prefix-R7UChFFl.js +0 -154
  1187. package/dist/cli/live-0G4Plw3K.js +0 -341
  1188. package/dist/cli/mcp-flKS8iU5.js +0 -241
  1189. package/dist/cli/metadata-VARUbXEe.js +0 -150
  1190. package/dist/cli/migrate-Bkq07XcT.js +0 -46
  1191. package/dist/cli/migration-safety-BfVeza5j.js +0 -928
  1192. package/dist/cli/migrations-BCq7Zs2E.js +0 -117
  1193. package/dist/cli/module-migration-lbeUrsYv.js +0 -119
  1194. package/dist/cli/moved-DNOtp9LA.js +0 -254
  1195. package/dist/cli/ohash-BjQY1cBb.js +0 -277
  1196. package/dist/cli/openapi-3.0-t7xwkuRH.js +0 -928
  1197. package/dist/cli/openapi-3.1-CVze7tBS.js +0 -870
  1198. package/dist/cli/openapi-3.2-CFoMYM01.js +0 -1031
  1199. package/dist/cli/orphans-BAboqyVM.js +0 -28
  1200. package/dist/cli/parse-BPf3kGnc.js +0 -182
  1201. package/dist/cli/powersync-B15CfH5Y.js +0 -284
  1202. package/dist/cli/powersync-DnBsDchT.js +0 -1
  1203. package/dist/cli/preset-BwmIfFnh.js +0 -101
  1204. package/dist/cli/print-DjxpBRnv.js +0 -68
  1205. package/dist/cli/prompts-jqnr94b9.js +0 -1140
  1206. package/dist/cli/providers-dyxcHQY3.js +0 -301
  1207. package/dist/cli/redact-KGAk2Ul9.js +0 -38
  1208. package/dist/cli/remove-BLq5gbal.js +0 -239
  1209. package/dist/cli/render-CizUf3RW.js +0 -2225
  1210. package/dist/cli/rolldown-runtime-kJ_i4yPo.js +0 -26
  1211. package/dist/cli/run-ChEjR7yw.js +0 -63
  1212. package/dist/cli/run-ChOY6s4o.js +0 -1459
  1213. package/dist/cli/run-MwM__teL.js +0 -705
  1214. package/dist/cli/seed-BOun22-k.js +0 -1
  1215. package/dist/cli/seed-CDnL4Tnc.js +0 -188
  1216. package/dist/cli/shared-DV5wIv-7.js +0 -151
  1217. package/dist/cli/shell-Btv_4Yhe.js +0 -10
  1218. package/dist/cli/skills-DM3oeIxY.js +0 -121
  1219. package/dist/cli/snapshot-B5LXkVMC.js +0 -729
  1220. package/dist/cli/source-BoLNG_2A.js +0 -320
  1221. package/dist/cli/source-args-v8ljFDfc.js +0 -59
  1222. package/dist/cli/spec-D6QeE2Zx.js +0 -1
  1223. package/dist/cli/spec-Dz-PGCaM.js +0 -7530
  1224. package/dist/cli/sql-layout-zo02f3Dm.js +0 -261
  1225. package/dist/cli/stack-ClESAZYf.js +0 -135
  1226. package/dist/cli/stack-env-3ziggrU3.js +0 -93
  1227. package/dist/cli/stack-status-BkkYRlXG.js +0 -46
  1228. package/dist/cli/stacks-CiDBH1dB.js +0 -232
  1229. package/dist/cli/style-Bm2X5JrN.js +0 -35
  1230. package/dist/cli/supabase-toml-CncmQbO0.js +0 -1164
  1231. package/dist/cli/sync-m-oZ_SyI.js +0 -322
  1232. package/dist/cli/table-dyKddjwo.js +0 -89
  1233. package/dist/cli/toml-DB-MNnFs.js +0 -424
  1234. package/dist/cli/topics-BpdnYmWb.js +0 -30
  1235. package/dist/cli/trace-VbdO6bcN.js +0 -7
  1236. package/dist/cli/upgrade-C9sgVZ5z.js +0 -272
  1237. package/dist/cli/upgrade-WwEJaX3i.js +0 -41
  1238. package/dist/cli/validate-B3lF3-jB.js +0 -7522
  1239. package/dist/cli/version-D2BQuqta.js +0 -4
  1240. package/dist/cli/yaml-CYCbJ6et.js +0 -2252
  1241. package/dist/client-C_mlji5R.js +0 -288
  1242. package/dist/clone-CkG0-hlI.js +0 -33
  1243. package/dist/cloud-event-0pQ9vFNS.d.ts +0 -64
  1244. package/dist/cloud-event-XsM53POL.js +0 -63
  1245. package/dist/codecs-CMWlhHZ0.d.ts +0 -222
  1246. package/dist/codecs-CSUFGrdP.js +0 -358
  1247. package/dist/compiler-BEeVWXPS.d.ts +0 -14
  1248. package/dist/compose-DKW0Tr3e.js +0 -53
  1249. package/dist/composite-BJ9s-IJJ.d.ts +0 -83
  1250. package/dist/composite-CBRbvn5j.js +0 -130
  1251. package/dist/config-bqKaPjst.js +0 -1679
  1252. package/dist/config-r7njjNgh.js +0 -1111
  1253. package/dist/connectors-uC5baoFV.d.ts +0 -147
  1254. package/dist/context-DBicfUNz.js +0 -41
  1255. package/dist/context-nbYYjv7U.d.ts +0 -4344
  1256. package/dist/controller-BEliOBOv.js +0 -79
  1257. package/dist/controller-TRocodqG.d.ts +0 -52
  1258. package/dist/controller-qG-B1eDn.js +0 -73
  1259. package/dist/conversion-Dq1S7xzE.js +0 -77
  1260. package/dist/conversion-g8HzH9My.d.ts +0 -86
  1261. package/dist/cors-h_v7TPxl.js +0 -24
  1262. package/dist/cors-kLq6VM06.d.ts +0 -15
  1263. package/dist/create-blocks-BfrDUSM6.js +0 -370
  1264. package/dist/cron-DdT4ti8a.js +0 -148
  1265. package/dist/cron-route-FjKgRvTY.js +0 -24
  1266. package/dist/csv-2rXGPNtP.js +0 -89
  1267. package/dist/csv-DhHQS2x_.d.ts +0 -28
  1268. package/dist/data-engine-D1BkmBoR.js +0 -173
  1269. package/dist/data-engine-rvbR2C4F.d.ts +0 -273
  1270. package/dist/data-hooks-CdcZfVS1.js +0 -280
  1271. package/dist/db-exception-Lngc1W49.js +0 -31
  1272. package/dist/deal-forecast-CKBnRodz.js +0 -39
  1273. package/dist/deal-forecast-LwO-Z4_C.d.ts +0 -23
  1274. package/dist/define-D-dLADd5.js +0 -2084
  1275. package/dist/define-D8_9X5fZ.d.ts +0 -1263
  1276. package/dist/define-block-BGqOO8B3.js +0 -64
  1277. package/dist/define-block-DWVZSZv1.d.ts +0 -1687
  1278. package/dist/delegation-C7eWP2r8.d.ts +0 -14
  1279. package/dist/delegation-DGOIiT8k.js +0 -153
  1280. package/dist/delivery-Bm0jxmzI.js +0 -29
  1281. package/dist/delivery-n6lZGuGx.d.ts +0 -71
  1282. package/dist/documents-BbwYyynk.d.ts +0 -152
  1283. package/dist/email-B3YxEzwC.d.ts +0 -42
  1284. package/dist/embeddings-I3s5sTDt.d.ts +0 -78
  1285. package/dist/embeddings-vVzseUw0.js +0 -128
  1286. package/dist/ended-EZzN9QTM.d.ts +0 -26
  1287. package/dist/entitlements-B1i1-wfe.d.ts +0 -54
  1288. package/dist/entitlements-tGL6-69B.js +0 -45
  1289. package/dist/entity-naming-Dtyq5sKE.js +0 -131
  1290. package/dist/entity-schema-B1YmMtP8.js +0 -39
  1291. package/dist/envelope-DEI2iX-d.js +0 -90
  1292. package/dist/errors-BVFgt8BZ.js +0 -328
  1293. package/dist/errors-CyxMxzlu.js +0 -44
  1294. package/dist/escape-like-DHfx6jRr.js +0 -7
  1295. package/dist/escape-like-PReMbEEU.d.ts +0 -30
  1296. package/dist/eve-BfhVFV33.d.ts +0 -157
  1297. package/dist/event-calendar-DVLs2wUO.d.ts +0 -65
  1298. package/dist/event-map-CtPFhcOp.js +0 -19
  1299. package/dist/events-B2qbZps6.d.ts +0 -854
  1300. package/dist/events-D6IZ5CE8.js +0 -82
  1301. package/dist/events-DuLhzjP6.js +0 -26
  1302. package/dist/executor-BfirBzOr.d.ts +0 -174
  1303. package/dist/executor-BlS0kCrN.d.ts +0 -104
  1304. package/dist/executor-C2Ne-Scm.js +0 -208
  1305. package/dist/executor-DXQIx4sW.d.ts +0 -37
  1306. package/dist/executor-DqIci3Jb.js +0 -486
  1307. package/dist/executor-WolvKszH.js +0 -843
  1308. package/dist/extension-DTaHjwdc.js +0 -59
  1309. package/dist/extension-DeAd_MqI.js +0 -121
  1310. package/dist/extension-DzCc0IOd.js +0 -103
  1311. package/dist/extension-mGylYROs.js +0 -53
  1312. package/dist/extension-shared-Djm8mGHD.js +0 -60
  1313. package/dist/extra-CGQ2_q3S.js +0 -10
  1314. package/dist/field-errors-tJvehEFc.d.ts +0 -216
  1315. package/dist/field-formats-C6QKA3UR.js +0 -102
  1316. package/dist/field-formats-CAFNkKSN.d.ts +0 -38
  1317. package/dist/fields-BBm49w-E.js +0 -108
  1318. package/dist/fields-snbaZ14h.d.ts +0 -78
  1319. package/dist/filter-evaluate-BRpNiNPG.d.ts +0 -37
  1320. package/dist/filter-evaluate-lCToXzZI.js +0 -217
  1321. package/dist/filter-query-CQ6d5GnQ.js +0 -566
  1322. package/dist/filter-query-DBt7OKuH.d.ts +0 -133
  1323. package/dist/flags-DDKTThrO.d.ts +0 -246
  1324. package/dist/flags-DF_SCqp5.js +0 -279
  1325. package/dist/form-definition-BTpM_tz1.js +0 -363
  1326. package/dist/form-definition-BjEtH8BT.d.ts +0 -119
  1327. package/dist/format-u-65igKI.d.ts +0 -79
  1328. package/dist/framework-DVYTtQXA.d.ts +0 -47
  1329. package/dist/framework-DYEUraqt.js +0 -58
  1330. package/dist/function-contract-DxFNOmsm.d.ts +0 -27
  1331. package/dist/function-contract-pEmsaUIf.js +0 -8
  1332. package/dist/gateway-Ve7cByEr.d.ts +0 -115
  1333. package/dist/gateway-options-BlVCqgb8.d.ts +0 -29
  1334. package/dist/gateway-options-Cl74B7k6.js +0 -27
  1335. package/dist/guards-6F2bCtQR.js +0 -12
  1336. package/dist/guest-actions-1T1DeS5Y.d.ts +0 -5
  1337. package/dist/guest-actions-B7zdhfnh.js +0 -9
  1338. package/dist/history-GH1HJWQV.js +0 -271
  1339. package/dist/hmac-B3CTTlfv.js +0 -23
  1340. package/dist/http-7-UvHjQe.js +0 -28
  1341. package/dist/http-BjjojWg3.js +0 -40
  1342. package/dist/http-DzbloBR-.js +0 -141
  1343. package/dist/image-url-_d7xYsXK.js +0 -84
  1344. package/dist/impersonation-DM3oWNoD.js +0 -62
  1345. package/dist/impersonation-YTa9dZUv.d.ts +0 -28
  1346. package/dist/inbox-c8B86Trp.d.ts +0 -321
  1347. package/dist/index-8US7qlvW.d.ts +0 -158
  1348. package/dist/index-B4wttiLh.d.ts +0 -407
  1349. package/dist/index-BKrxynq9.d.ts +0 -240
  1350. package/dist/index-BM6NmKSc.d.ts +0 -588
  1351. package/dist/index-BkzXwuIN.d.ts +0 -338
  1352. package/dist/index-CWAQRWY8.d.ts +0 -729
  1353. package/dist/index-Cxsnd-OL.d.ts +0 -305
  1354. package/dist/index-DbyDZZlc.d.ts +0 -53
  1355. package/dist/index-NRMMhhEi.d.ts +0 -104
  1356. package/dist/index-X2fkPUwb.d.ts +0 -51
  1357. package/dist/index-pZn6S_iq.d.ts +0 -149
  1358. package/dist/index-zsgNmE8m.d.ts +0 -665
  1359. package/dist/instance-property-hRh88y_s.js +0 -7
  1360. package/dist/instances-C7qUTjhJ.js +0 -16603
  1361. package/dist/invalidate-DMp4eqfF.d.ts +0 -21
  1362. package/dist/iso4217-B-durg_y.js +0 -176
  1363. package/dist/json-DaByVJpw.js +0 -22
  1364. package/dist/json-schema-DHJxiizN.js +0 -888
  1365. package/dist/jwks-cache-DEsKI0hJ.js +0 -49
  1366. package/dist/jws-D0toeQlA.d.ts +0 -66
  1367. package/dist/jws-DOgHJKHb.js +0 -205
  1368. package/dist/kit-B8yWCRN7.d.ts +0 -94
  1369. package/dist/kit-Bcd9wYCV.js +0 -133
  1370. package/dist/knowledge-CsLPACGJ.d.ts +0 -217
  1371. package/dist/knowledge-tCrrU99q.js +0 -300
  1372. package/dist/list-query-BcU8NnNL.d.ts +0 -222
  1373. package/dist/list-query-BnpA2BDg.js +0 -559
  1374. package/dist/live-C21DgbsD.js +0 -275
  1375. package/dist/logger-DWVYUmwi.d.ts +0 -18
  1376. package/dist/logger-glM28NVN.js +0 -21
  1377. package/dist/lookup-BaP5bI27.js +0 -18
  1378. package/dist/management-wtecfrNf.d.ts +0 -57
  1379. package/dist/message-Bg4TKA12.d.ts +0 -99
  1380. package/dist/messages-ecPW_nOv.js +0 -492
  1381. package/dist/messaging-DQP09JsY.d.ts +0 -297
  1382. package/dist/methods-Cund9ZBe.js +0 -11
  1383. package/dist/metric-definition-BjxVn4R5.js +0 -117
  1384. package/dist/metric-definition-EAYI1r2n.d.ts +0 -69
  1385. package/dist/mfa-oIOYTpvc.d.ts +0 -36
  1386. package/dist/model-hwpvole9.d.ts +0 -340
  1387. package/dist/model-messages-CkZSDDHP.js +0 -206
  1388. package/dist/model-messages-DrR4lZ_c.d.ts +0 -34
  1389. package/dist/money-BNRdJQzA.d.ts +0 -91
  1390. package/dist/money-BZl985O-.js +0 -197
  1391. package/dist/money-codec-BJuS2zEW.js +0 -41
  1392. package/dist/my-work-kinds-BU3SlA-6.js +0 -11
  1393. package/dist/node-headers-BPtMP4_V.d.ts +0 -27
  1394. package/dist/node-headers-C71zNQHe.js +0 -55
  1395. package/dist/operations-CB9atU2e.d.ts +0 -6
  1396. package/dist/operations-DVHRHvv6.js +0 -29
  1397. package/dist/optional-peer-C1NbBRJm.js +0 -32
  1398. package/dist/options-3OYOU56e.js +0 -11
  1399. package/dist/options-56zYYXxc.js +0 -10
  1400. package/dist/options-5WvWOkAm.d.ts +0 -26
  1401. package/dist/options-62woPFn3.js +0 -12
  1402. package/dist/options-7ixoOoap.js +0 -10
  1403. package/dist/options-9dSU5RML.js +0 -5
  1404. package/dist/options-B0YZtAkb.d.ts +0 -15
  1405. package/dist/options-B2Kz_tCx.js +0 -10
  1406. package/dist/options-B5E2MGIz.js +0 -15
  1407. package/dist/options-B685YSzQ.js +0 -5
  1408. package/dist/options-B692WoK6.js +0 -9
  1409. package/dist/options-BHU1wc74.js +0 -5
  1410. package/dist/options-BHy0Z5Zd.js +0 -5
  1411. package/dist/options-BJtdsK7b.js +0 -8
  1412. package/dist/options-BKBy5wM_.js +0 -16
  1413. package/dist/options-BKDxrPvE.js +0 -5
  1414. package/dist/options-BLfymS4s.js +0 -5
  1415. package/dist/options-BOCRbzh3.js +0 -5
  1416. package/dist/options-BOqfYsM1.js +0 -13
  1417. package/dist/options-BQWJqwHO.js +0 -9
  1418. package/dist/options-BQunK6_Y.js +0 -8
  1419. package/dist/options-BQyrZjwM.js +0 -28
  1420. package/dist/options-BR9xTHZW.js +0 -5
  1421. package/dist/options-BRUdd5jY.js +0 -8
  1422. package/dist/options-BSsYXjhC.js +0 -9
  1423. package/dist/options-BTmaRzx2.d.ts +0 -60
  1424. package/dist/options-BUCQYAeJ.d.ts +0 -10
  1425. package/dist/options-B_NrjVDt.d.ts +0 -12
  1426. package/dist/options-BawzwlmC.js +0 -11
  1427. package/dist/options-BbLDAp7G.d.ts +0 -10
  1428. package/dist/options-BfPsL7E2.js +0 -9
  1429. package/dist/options-Bfmwwc78.js +0 -8
  1430. package/dist/options-BhsdveDk.js +0 -21
  1431. package/dist/options-BomoTH-8.js +0 -5
  1432. package/dist/options-BtjkzIVh.js +0 -8
  1433. package/dist/options-Bvi9bl4H.js +0 -5
  1434. package/dist/options-BwKNmaJo.js +0 -5
  1435. package/dist/options-BxpLtyk-.js +0 -18
  1436. package/dist/options-BzB2QxL3.js +0 -5
  1437. package/dist/options-C078wBP0.js +0 -5
  1438. package/dist/options-C3AdsFJ6.js +0 -9
  1439. package/dist/options-C7C5OhmL.d.ts +0 -8
  1440. package/dist/options-C87u6eSa.js +0 -10
  1441. package/dist/options-CBAEGxwS.js +0 -8
  1442. package/dist/options-CDSCkYxu.d.ts +0 -14
  1443. package/dist/options-CDUr8zzX.js +0 -8
  1444. package/dist/options-CFjGxfa8.js +0 -5
  1445. package/dist/options-CI6P0xhV.js +0 -10
  1446. package/dist/options-CJFMK9A_.js +0 -8
  1447. package/dist/options-CLpgx7en.js +0 -10
  1448. package/dist/options-COo7_3MX.js +0 -10
  1449. package/dist/options-CSCXNYJO.d.ts +0 -8
  1450. package/dist/options-CTXHj9zr.js +0 -16
  1451. package/dist/options-CTl8T88w.js +0 -11
  1452. package/dist/options-CUIOOv4z.js +0 -15
  1453. package/dist/options-CZDmtsbV.js +0 -8
  1454. package/dist/options-CZTscdPB.js +0 -5
  1455. package/dist/options-CZdKndeo.js +0 -9
  1456. package/dist/options-C_7g9TTq.d.ts +0 -12
  1457. package/dist/options-Cb2FOFj5.js +0 -5
  1458. package/dist/options-CbOstLa7.js +0 -5
  1459. package/dist/options-CcXgWlvm.js +0 -24
  1460. package/dist/options-CfVPctAw.js +0 -89
  1461. package/dist/options-Cjgaf8ub.js +0 -8
  1462. package/dist/options-CoSPgWKy.js +0 -9
  1463. package/dist/options-CpZ2HlSU.js +0 -32
  1464. package/dist/options-CsSe8Nba.js +0 -8
  1465. package/dist/options-CsvJR-r2.js +0 -9
  1466. package/dist/options-Cucv6sWP.js +0 -12
  1467. package/dist/options-CyjL9lTf.js +0 -5
  1468. package/dist/options-D-OOO9V2.d.ts +0 -10
  1469. package/dist/options-D0Y6ZMe8.js +0 -5
  1470. package/dist/options-D0bzZx9a.d.ts +0 -10
  1471. package/dist/options-D0sj5abR.js +0 -9
  1472. package/dist/options-D1hSuf50.d.ts +0 -12
  1473. package/dist/options-D610Fa6T.js +0 -5
  1474. package/dist/options-D96dScev.js +0 -24
  1475. package/dist/options-DFpyP1bg.js +0 -5
  1476. package/dist/options-DJEcS4DX.js +0 -5
  1477. package/dist/options-DJbN3bi9.js +0 -11
  1478. package/dist/options-DKoQoRCy.js +0 -13
  1479. package/dist/options-DM1qaMMQ.js +0 -9
  1480. package/dist/options-DNgSwhsm.js +0 -11
  1481. package/dist/options-DOIwzRXL.js +0 -16
  1482. package/dist/options-DRIgHh4O.d.ts +0 -16
  1483. package/dist/options-DRrZmJyI.js +0 -8
  1484. package/dist/options-DUMUsvml.js +0 -5
  1485. package/dist/options-DWwL5Kaz.js +0 -9
  1486. package/dist/options-DZHZYlpD.js +0 -10
  1487. package/dist/options-DZLkeqWn.js +0 -9
  1488. package/dist/options-DZRpXKQE.js +0 -5
  1489. package/dist/options-DZen3UiC.js +0 -14
  1490. package/dist/options-D_9Vxx7f.js +0 -8
  1491. package/dist/options-DcHl59RC.js +0 -11
  1492. package/dist/options-Dcaql09y.js +0 -11
  1493. package/dist/options-DcnBNYmV.js +0 -8
  1494. package/dist/options-DdpM-fiP.js +0 -9
  1495. package/dist/options-DhoLMknl.js +0 -10
  1496. package/dist/options-DlohRAYd.d.ts +0 -13
  1497. package/dist/options-Dpy-Ruo-.js +0 -14
  1498. package/dist/options-DsVuVRH3.d.ts +0 -17
  1499. package/dist/options-DtAJxfHS.js +0 -8
  1500. package/dist/options-Dz9Yo52Z.js +0 -8
  1501. package/dist/options-HnfETSHr.d.ts +0 -19
  1502. package/dist/options-LqUXTpML.js +0 -8
  1503. package/dist/options-MsloEAIB.js +0 -5
  1504. package/dist/options-P2FxqYpd.js +0 -17
  1505. package/dist/options-_1gAIMq7.d.ts +0 -60
  1506. package/dist/options-aT89JqlB.js +0 -5
  1507. package/dist/options-cVKZu9b0.js +0 -9
  1508. package/dist/options-eTepQ1rZ.js +0 -15
  1509. package/dist/options-fkShrmGQ.js +0 -8
  1510. package/dist/options-gUvfr3no.js +0 -11
  1511. package/dist/options-hynwKWuf.js +0 -20
  1512. package/dist/options-jsOCvLUz.js +0 -10
  1513. package/dist/options-o5wCw8H7.d.ts +0 -14
  1514. package/dist/options-p49DFg3H.js +0 -8
  1515. package/dist/options-pYNpXKcg.js +0 -8
  1516. package/dist/options-qtETCHzW.js +0 -10
  1517. package/dist/options-rnKlqYEr.js +0 -5
  1518. package/dist/options-sU_zGkiV.js +0 -10
  1519. package/dist/options-xq4MXG1M.js +0 -5
  1520. package/dist/options-zzlznRA7.js +0 -10
  1521. package/dist/outbox-BZ712Z3X.d.ts +0 -199
  1522. package/dist/payments-BXvabJOw.js +0 -16
  1523. package/dist/payments-BYcN34Fp.d.ts +0 -114
  1524. package/dist/permissions-controller-BMsqIE5T.js +0 -34
  1525. package/dist/pg-error-B5QLDcbG.js +0 -26
  1526. package/dist/plugin-AKwwe2gF.js +0 -48
  1527. package/dist/pool-DDR1ndk7.d.ts +0 -123
  1528. package/dist/pool-errors-JUBcGrre.js +0 -27
  1529. package/dist/ports-DvpNseap.js +0 -152
  1530. package/dist/ports-hpbyMySO.d.ts +0 -89
  1531. package/dist/postgrest-AJc8hnJU.d.ts +0 -53
  1532. package/dist/postgrest-executor-B_Uezhrm.js +0 -1068
  1533. package/dist/preset-DCdEnJj9.js +0 -1042
  1534. package/dist/problem-Bf0cJ7tk.js +0 -162
  1535. package/dist/problem-DNwN8iGz.d.ts +0 -79
  1536. package/dist/project-B32wb5J6.js +0 -1760
  1537. package/dist/provider-B6g7rBZX.js +0 -57
  1538. package/dist/provider-CWjzAIX9.d.ts +0 -112
  1539. package/dist/push-token-D6REHMMw.js +0 -16
  1540. package/dist/push-token-DQ1ycFPU.d.ts +0 -24
  1541. package/dist/queries-BWYYS9um.js +0 -239
  1542. package/dist/range-DwpWe8e7.js +0 -7
  1543. package/dist/range-p5V4rBhZ.d.ts +0 -8
  1544. package/dist/rank-keys-DcPMt_Jk.js +0 -60
  1545. package/dist/rank-result-BBJIK-k_.js +0 -18
  1546. package/dist/rank-result-Bwe7igy-.d.ts +0 -14
  1547. package/dist/rate-limit-BWKGlhTM.js +0 -49
  1548. package/dist/rate-limit-Bztf32cl.d.ts +0 -50
  1549. package/dist/rate-limit-fZ_d8gSE.js +0 -380
  1550. package/dist/ratelimit-headers-kEcXyO3H.js +0 -62
  1551. package/dist/react-BKCnIuZs.js +0 -79
  1552. package/dist/react-CcrQQl0_.js +0 -1016
  1553. package/dist/read-set-B1sDib5O.js +0 -199
  1554. package/dist/realtime-status-BhNkb-Ow.d.ts +0 -8
  1555. package/dist/realtime-status-asHvhiOh.js +0 -11
  1556. package/dist/record-bindings-Z51mGfhB.js +0 -26
  1557. package/dist/record-form-CubgBrtI.d.ts +0 -82
  1558. package/dist/record-type-DRbnlj5q.js +0 -221
  1559. package/dist/recordings-DeZYx-Kv.d.ts +0 -119
  1560. package/dist/refresh-D02Pbf5B.d.ts +0 -54
  1561. package/dist/refusal-B0VmlAxF.d.ts +0 -32
  1562. package/dist/refusal-DDlInPff.js +0 -64
  1563. package/dist/relay-CIKcAVjf.js +0 -248
  1564. package/dist/replicas-Dyoh3CEg.js +0 -94
  1565. package/dist/resolve-B0mW2m7f.js +0 -932
  1566. package/dist/resolve-CtX6T0c0.d.ts +0 -288
  1567. package/dist/resolved-names-iLBOUaib.js +0 -133
  1568. package/dist/resource-BUJcZKiW.js +0 -520
  1569. package/dist/resource-DvgXqZB_.js +0 -105
  1570. package/dist/resource-WxN0IsvB.d.ts +0 -123
  1571. package/dist/resource-execute-BzqR8DdD.d.ts +0 -15
  1572. package/dist/resource-schemas-up6bKOUi.js +0 -82
  1573. package/dist/resource-types-BVbHgTPg.d.ts +0 -157
  1574. package/dist/resources-BSbRa0Ab.d.ts +0 -7
  1575. package/dist/resources-jb3R6rEa.js +0 -64
  1576. package/dist/respond-CZMWbUs3.js +0 -107
  1577. package/dist/respond-Dzu_-EPH.d.ts +0 -112
  1578. package/dist/result-DZeA5KS6.d.ts +0 -351
  1579. package/dist/result-ntFBW2p2.js +0 -146
  1580. package/dist/rows-BdqXmiB-.js +0 -80
  1581. package/dist/rows-jijHLVE_.js +0 -39
  1582. package/dist/rrule-C9Ot6ax8.js +0 -290
  1583. package/dist/run-state-BMCD_1Lt.d.ts +0 -13
  1584. package/dist/run-state-CgBKzYMW.js +0 -13
  1585. package/dist/run-watch-B-LoK5m1.js +0 -53
  1586. package/dist/runtime-CoKxZibd.js +0 -45
  1587. package/dist/sales-lines-BsmrNHe9.d.ts +0 -38
  1588. package/dist/sales-lines-DO7oRu1o.js +0 -45
  1589. package/dist/sales-shared-BuTA8JK7.js +0 -22
  1590. package/dist/schemas-CLOTvdsC.js +0 -216
  1591. package/dist/scope-DgWjuXUw.js +0 -90
  1592. package/dist/scores-Y8TvyJi1.d.ts +0 -174
  1593. package/dist/scores-bY2Is0kx.js +0 -177
  1594. package/dist/search-Cn_DGluL.js +0 -9
  1595. package/dist/server-types-BkTIxW_H.d.ts +0 -597
  1596. package/dist/session-BOzx2qHC.d.ts +0 -100
  1597. package/dist/session-status-BP8eYVnA.d.ts +0 -82
  1598. package/dist/shared-BeHTi8Fu.js +0 -17
  1599. package/dist/shared-Bf-I13Ht.js +0 -91
  1600. package/dist/shared-CRRfQAKG.d.ts +0 -11
  1601. package/dist/sign-in-BzihC_8k.d.ts +0 -50
  1602. package/dist/sign-in-CmPK1AgM.js +0 -402
  1603. package/dist/sign-in-Cyj3ZlFX.js +0 -703
  1604. package/dist/sign-in-D54FLMQy.d.ts +0 -55
  1605. package/dist/signatures-CX1b4WHa.js +0 -145
  1606. package/dist/signatures-Dkx9OE8j.d.ts +0 -43
  1607. package/dist/signers-ZmxO1I05.d.ts +0 -390
  1608. package/dist/signing-keys-CWtpMask.js +0 -164
  1609. package/dist/signing-keys-udgP7Aod.d.ts +0 -119
  1610. package/dist/simplify-DDO0j0LI.js +0 -83
  1611. package/dist/spec-BMvCCNnd.js +0 -124
  1612. package/dist/spec-pins-BZkKfwY8.d.ts +0 -127
  1613. package/dist/spec-pins-D3zDek-u.js +0 -62
  1614. package/dist/sql-CYt7EhH0.js +0 -421
  1615. package/dist/sql-CyeDg3Yh.js +0 -138146
  1616. package/dist/sql-type-iUSZpaUu.js +0 -34
  1617. package/dist/sso-CkU_4mtK.d.ts +0 -161
  1618. package/dist/sso-DdDpJQzw.js +0 -217
  1619. package/dist/standard-BA3mLh6w.js +0 -25
  1620. package/dist/standard-DBV730sF.d.ts +0 -7
  1621. package/dist/stats-BHl1-zj9.js +0 -83
  1622. package/dist/statuses-Alll5Ip6.js +0 -29
  1623. package/dist/statuses-zRcc2TeZ.js +0 -28
  1624. package/dist/storage-api-Dg78Wqsg.js +0 -10
  1625. package/dist/store-CpheI-lN.d.ts +0 -83
  1626. package/dist/store-McN-2esd.js +0 -69
  1627. package/dist/stripe-BJUfp5jM.js +0 -32
  1628. package/dist/stripe-X22LjuH-.d.ts +0 -156
  1629. package/dist/subject-readers-CB5Te02u.d.ts +0 -21
  1630. package/dist/subject-readers-VHcrWhmq.js +0 -49
  1631. package/dist/subject-type-BRnK7Av3.js +0 -8
  1632. package/dist/subjects-BYCL-6hA.d.ts +0 -145
  1633. package/dist/subjects-CiBNKy2y.d.ts +0 -90
  1634. package/dist/subscribers-BvZxcd63.js +0 -33
  1635. package/dist/summaries-8jQTELIX.d.ts +0 -69
  1636. package/dist/supabase-mcp-Dz9DgrKP.js +0 -28
  1637. package/dist/supabase-mcp-Z4vtsuoO.d.ts +0 -46
  1638. package/dist/support-BxyPOFk4.d.ts +0 -357
  1639. package/dist/support-view-g4YLBeqX.js +0 -18
  1640. package/dist/support-view-nqUWKHEs.d.ts +0 -17
  1641. package/dist/table-schema-BlF6k62Q.d.ts +0 -81
  1642. package/dist/table-schema-C80xItaV.js +0 -293
  1643. package/dist/tables-Cb-3_VWc.js +0 -73
  1644. package/dist/tags-CIZTqtlY.js +0 -39
  1645. package/dist/tags-Cm48BsOa.d.ts +0 -30
  1646. package/dist/tax-BkCNWWMc.js +0 -140
  1647. package/dist/tax-DPShHual.d.ts +0 -170
  1648. package/dist/tee-V97_v1ZS.js +0 -101
  1649. package/dist/template-Drgg3v2J.js +0 -126
  1650. package/dist/temporal-Dbo0fLzc.js +0 -95
  1651. package/dist/temporal-required-DcLhnDhQ.js +0 -20
  1652. package/dist/tenant-BgIiMQpo.js +0 -27
  1653. package/dist/tenant-C9YE_kqK.d.ts +0 -17
  1654. package/dist/tenant-source-bqWpSr86.js +0 -8
  1655. package/dist/timeline--VU3A1e4.js +0 -50
  1656. package/dist/timeline-DvXtXq5q.d.ts +0 -151
  1657. package/dist/timing-dypS0nxW.js +0 -95
  1658. package/dist/topic-DnsNG4Kj.js +0 -643
  1659. package/dist/topic-breZqx_4.d.ts +0 -415
  1660. package/dist/ttl-cache-Bhr9swjT.js +0 -32
  1661. package/dist/types-B-D6fYx2.d.ts +0 -194
  1662. package/dist/types-C3I7S51U.d.ts +0 -461
  1663. package/dist/types-CK2X2wCB.d.ts +0 -618
  1664. package/dist/types-CPl9uJ0G.d.ts +0 -912
  1665. package/dist/types-CwQgFo8c.d.ts +0 -177
  1666. package/dist/types-DMihLukJ.d.ts +0 -251
  1667. package/dist/types-R6syp1el.js +0 -29
  1668. package/dist/types-iCyZ3lMx.d.ts +0 -217
  1669. package/dist/types-nspa5I-a.d.ts +0 -664
  1670. package/dist/undo-0HkWXASn.d.ts +0 -46
  1671. package/dist/undo-BbftL9-4.js +0 -44
  1672. package/dist/upload-claim-B1ZU8ydB.js +0 -33
  1673. package/dist/usage-BkWAPkg2.d.ts +0 -232
  1674. package/dist/user-change-DgWC6RRC.js +0 -135
  1675. package/dist/variants-Cy--Ub-a.js +0 -53
  1676. package/dist/vault-BkdPmL7f.d.ts +0 -62
  1677. package/dist/verify-41mZmspj.d.ts +0 -146
  1678. package/dist/verify-7EucfCnv.js +0 -130
  1679. package/dist/view-C8Ve14ja.js +0 -247
  1680. package/dist/view-C8_xvD-j.d.ts +0 -97
  1681. package/dist/watch-topic-CuaWfCuv.js +0 -57
  1682. package/dist/watch-topic-ItO3dz8m.d.ts +0 -31
  1683. package/dist/wire-ChYn1g21.js +0 -91
  1684. package/dist/wiring-CDNuQoJJ.js +0 -13
  1685. package/dist/workflow-sdk-BWPsdzVK.js +0 -2534
  1686. package/dist/workflow-sdk-Cf0LAOFF.js +0 -242
  1687. package/dist/workflow-sdk-rg3IbCZC.d.ts +0 -163
  1688. package/dist/workflows-xL6t0TXx.d.ts +0 -258
@@ -1,3860 +0,0 @@
1
- import { n as ExtraColumns, t as BlockOptionsSchema } from "./options-BTmaRzx2.js";
2
- import { t as AssetsSqlOptions } from "./options-D1hSuf50.js";
3
- import { t as ContentSqlOptions } from "./options-5WvWOkAm.js";
4
- import { t as CoursesSqlOptions } from "./options-BUCQYAeJ.js";
5
- import { t as CreatedBySqlOptions } from "./options-CDSCkYxu.js";
6
- import { t as DispatchSqlOptions } from "./options-o5wCw8H7.js";
7
- import { t as EnrollmentsSqlOptions } from "./options-CSCXNYJO.js";
8
- import { t as LeadScoringSqlOptions } from "./options-DsVuVRH3.js";
9
- import { t as MailSyncSqlOptions } from "./options-C_7g9TTq.js";
10
- import { t as MembershipsSqlOptions } from "./options-_1gAIMq7.js";
11
- import { t as ModerationSqlOptions } from "./options-DlohRAYd.js";
12
- import { t as PassesSqlOptions } from "./options-HnfETSHr.js";
13
- import { t as PostsSqlOptions } from "./options-DRIgHh4O.js";
14
- import { t as ScoresSqlOptions } from "./options-D0bzZx9a.js";
15
- import { t as SegmentsSqlOptions } from "./options-D-OOO9V2.js";
16
- import { t as SequencesSqlOptions } from "./options-B0YZtAkb.js";
17
- import { t as ShipmentsSqlOptions } from "./options-BbLDAp7G.js";
18
- import { t as SignaturesSqlOptions } from "./options-C7C5OhmL.js";
19
- import { t as UpdatedAtSqlOptions } from "./options-B_NrjVDt.js";
20
- //#region src/blocks/name-registry.generated.d.ts
21
- /** The names each module's `blocks.<name>` config keys accept. */
22
- interface BlockNameRegistry {
23
- readonly "access-requests": {
24
- readonly tables: {
25
- readonly "requests": "id" | "tenant" | "user" | "role" | "previousRole" | "reason" | "duration" | "approval" | "grantedAt" | "expiresAt" | "endedAt" | "createdAt";
26
- };
27
- readonly functions: "end_access" | "expire_access_grants" | "get_access_request" | "grant_access_request" | "list_access_requests" | "request_access";
28
- readonly actions: "read" | "create" | "manage";
29
- readonly hooks: "before_access_request" | "after_access_request" | "before_access_grant" | "after_access_grant";
30
- readonly entities: {
31
- readonly "request": "id" | "tenant_id" | "user_id" | "role" | "previous_role" | "reason" | "duration" | "approval_id" | "granted_at" | "expires_at" | "ended_at" | "created_at";
32
- };
33
- readonly primary: "request";
34
- };
35
- readonly "activities": {
36
- readonly tables: {
37
- readonly "engagements": "id" | "tenant" | "type" | "title" | "body" | "outcome" | "owner" | "dueAt" | "doneAt" | "durationSeconds" | "externalRef" | "createdBy" | "createdAt" | "updatedAt";
38
- readonly "links": "tenant" | "engagement" | "subjectType" | "subjectId" | "position";
39
- readonly "recordings": "id" | "tenant" | "engagement" | "file" | "filename" | "mediaType" | "status" | "language" | "durationSeconds" | "error" | "model" | "createdBy" | "createdAt" | "transcribedAt";
40
- readonly "segments": "recording" | "tenant" | "position" | "speaker" | "speakerUser" | "startsMs" | "endsMs" | "text" | "confidence";
41
- readonly "notes": "engagement" | "tenant" | "summary" | "actionItems" | "model" | "source" | "createdBy" | "createdAt" | "updatedAt";
42
- };
43
- readonly functions: "complete_engagement" | "delete_engagement" | "engagements_of" | "log_engagement" | "next_engagement" | "open_engagements" | "update_engagement";
44
- readonly actions: "read" | "write" | "manage";
45
- readonly hooks: "before_engagement_log" | "after_engagement_log";
46
- readonly entities: {
47
- readonly "engagement": "id" | "tenant_id" | "type" | "title" | "body" | "outcome" | "owner_user_id" | "due_at" | "done_at" | "duration_seconds" | "external_ref" | "created_by" | "created_at" | "updated_at";
48
- };
49
- readonly primary: "engagement";
50
- };
51
- readonly "agents": {
52
- readonly tables: {
53
- readonly "agents": "id" | "tenant" | "owner" | "slug" | "name" | "description" | "instructions" | "model" | "tools" | "connectors" | "knowledgeScope" | "starters" | "visibility" | "publishedAt" | "installCount" | "ratingCount" | "ratingSum" | "createdAt" | "updatedAt";
54
- readonly "installs": "agent" | "user" | "tenant" | "installedAt";
55
- readonly "ratings": "agent" | "user" | "rating" | "comment" | "createdAt";
56
- readonly "skills": "id" | "agent" | "provider" | "reference" | "createdAt";
57
- };
58
- readonly functions: "delete_agent" | "get_agent" | "install_agent" | "list_agents" | "publish_agent" | "rate_agent" | "save_agent" | "set_agent_skills";
59
- readonly actions: "read" | "create" | "publish" | "moderate";
60
- readonly hooks: never;
61
- readonly entities: {
62
- readonly "agent": "id" | "organization_id" | "owner_id" | "slug" | "name" | "description" | "instructions" | "model" | "tools" | "connector_ids" | "knowledge_scope" | "starters" | "visibility" | "published_at" | "install_count" | "rating_count" | "rating_sum" | "created_at" | "updated_at";
63
- };
64
- readonly primary: "agent";
65
- };
66
- readonly "ai-cache": {
67
- readonly tables: {
68
- readonly "entries": "key" | "tenant" | "kind" | "model" | "value" | "hits" | "createdAt" | "lastHitAt" | "expiresAt";
69
- };
70
- readonly functions: "ai_cache_delete" | "ai_cache_get" | "ai_cache_set" | "purge_ai_cache";
71
- readonly actions: never;
72
- readonly hooks: never;
73
- readonly entities: {};
74
- readonly primary: never;
75
- };
76
- readonly "ai-chat": {
77
- readonly tables: {
78
- readonly "projects": "id" | "tenant" | "owner" | "name" | "instructions" | "model" | "pinned" | "archivedAt" | "createdAt" | "updatedAt";
79
- readonly "chats": "id" | "tenant" | "owner" | "project" | "agent" | "title" | "model" | "visibility" | "pinned" | "archivedAt" | "temporary" | "expiresAt" | "leaf" | "activeStream" | "activeRun" | "lastMessageAt" | "createdAt" | "updatedAt" | "search";
80
- readonly "messages": "chat" | "id" | "parent" | "owner" | "role" | "parts" | "format" | "native" | "metadata" | "model" | "status" | "seq" | "createdAt" | "search";
81
- readonly "runs": "id" | "chat" | "owner" | "message" | "stream" | "engine" | "externalRun" | "model" | "status" | "generation" | "usage" | "cost" | "error" | "startedAt" | "endedAt";
82
- readonly "approvals": "id" | "chat" | "owner" | "run" | "message" | "tool" | "toolCall" | "input" | "decision" | "reason" | "signature" | "decidedBy" | "decidedAt" | "createdAt";
83
- readonly "policies": "tenant" | "tool" | "policy" | "updatedAt";
84
- readonly "inputs": "id" | "chat" | "owner" | "run" | "toolCall" | "question" | "schema" | "answer" | "answeredAt" | "createdAt";
85
- readonly "sources": "chat" | "message" | "source" | "kind" | "url" | "title" | "metadata";
86
- readonly "feedback": "chat" | "message" | "user" | "rating" | "reason" | "comment" | "createdAt" | "updatedAt";
87
- readonly "shares": "id" | "chat" | "tokenHash" | "leaf" | "createdBy" | "createdAt" | "revokedAt";
88
- readonly "models": "id" | "provider" | "name" | "pricing" | "capabilities" | "plans" | "enabled" | "refreshedAt";
89
- readonly "moderation": "id" | "tenant" | "chat" | "message" | "user" | "stage" | "category" | "score" | "action" | "createdAt";
90
- readonly "steps": "id" | "run" | "chat" | "owner" | "key" | "label" | "status" | "detail" | "startedAt" | "endedAt";
91
- readonly "sandboxes": "id" | "tenant" | "user" | "chat" | "harness" | "provider" | "sandbox" | "container" | "status" | "metadata" | "idleSeconds" | "error" | "lastUsedAt" | "expiresAt" | "stoppedAt" | "createdAt" | "updatedAt";
92
- readonly "harness": "chat" | "harness" | "owner" | "resume" | "continue" | "status" | "holder" | "lockedUntil" | "lastActiveAt" | "createdAt" | "updatedAt";
93
- };
94
- readonly functions: "ai_chat_can_read" | "ai_chat_notify" | "ai_message_path" | "ai_message_path_of" | "ai_message_siblings" | "ai_sandbox_for" | "ai_tool_approval_approvable" | "ai_tool_policies_for" | "allowed_ai_models" | "answer_ai_pending_input" | "append_ai_user_message" | "apply_ai_tool_approval" | "attach_ai_run" | "claim_ai_chat_stream" | "create_ai_chat" | "decide_ai_tool_approval" | "delete_ai_chat" | "delete_ai_project" | "finish_ai_sandbox_stop" | "get_ai_chat" | "get_ai_run" | "get_ai_tool_approvals" | "get_shared_ai_chat" | "idle_ai_sandboxes" | "list_ai_chat_shares" | "list_ai_chats" | "list_ai_moderation_events" | "list_ai_projects" | "list_ai_run_steps" | "list_ai_runs" | "list_ai_sandboxes" | "list_pending_ai_tool_approvals" | "load_ai_harness_session" | "lock_ai_harness_session" | "open_ai_pending_input" | "purge_ai_chats" | "rate_ai_message" | "record_ai_moderation_event" | "record_ai_run_step" | "record_ai_tool_approval" | "register_ai_sandbox" | "release_ai_chat_stream" | "request_ai_chat_stop" | "revoke_ai_chat_share" | "save_ai_assistant_message" | "save_ai_harness_session" | "save_ai_project" | "set_ai_run_cost" | "set_ai_tool_policy" | "share_ai_chat" | "switch_ai_branch" | "touch_ai_sandbox" | "unlock_ai_harness_session" | "update_ai_chat" | "upsert_ai_models";
95
- readonly actions: "read" | "create" | "share" | "moderate" | "admin";
96
- readonly hooks: never;
97
- readonly entities: {
98
- readonly "chat": "id" | "organization_id" | "owner_id" | "project_id" | "agent_id" | "title" | "model" | "visibility" | "pinned" | "archived_at" | "is_temporary" | "expires_at" | "current_leaf_id" | "active_stream_id" | "active_run_id" | "last_message_at" | "created_at" | "updated_at" | "search_tsv";
99
- readonly "project": "id" | "organization_id" | "owner_id" | "name" | "instructions" | "default_model" | "pinned" | "archived_at" | "created_at" | "updated_at";
100
- };
101
- readonly primary: "chat";
102
- };
103
- readonly "ai-files": {
104
- readonly tables: {
105
- readonly "files": "id" | "tenant" | "owner" | "chat" | "project" | "bucket" | "path" | "mediaType" | "filename" | "size" | "sha256" | "status" | "source" | "createdAt" | "uploadedAt" | "expiresAt";
106
- readonly "providerFiles": "file" | "provider" | "reference" | "expiresAt" | "createdAt";
107
- readonly "documents": "id" | "tenant" | "owner" | "chat" | "kind" | "title" | "version" | "createdAt" | "updatedAt";
108
- readonly "versions": "document" | "version" | "content" | "storagePath" | "message" | "createdBy" | "createdAt";
109
- readonly "suggestions": "id" | "document" | "version" | "original" | "suggested" | "description" | "createdBy" | "createdAt" | "resolvedAt" | "accepted";
110
- };
111
- readonly functions: "ai_file_object_allowed" | "confirm_ai_file" | "create_ai_document" | "delete_ai_document" | "delete_ai_file" | "expiring_ai_provider_files" | "get_ai_document" | "get_ai_file" | "get_ai_file_by_path" | "get_ai_provider_file" | "list_ai_document_versions" | "list_ai_files" | "list_ai_suggestions" | "purge_ai_files" | "reserve_ai_file" | "resolve_ai_suggestion" | "rollback_ai_document" | "set_ai_provider_file" | "store_ai_file" | "suggest_ai_document_edit" | "update_ai_document";
112
- readonly actions: "upload" | "manage";
113
- readonly hooks: never;
114
- readonly entities: {
115
- readonly "document": "id" | "organization_id" | "owner_id" | "chat_id" | "kind" | "title" | "current_version" | "created_at" | "updated_at";
116
- };
117
- readonly primary: "document";
118
- };
119
- readonly "ai-keys": {
120
- readonly tables: {
121
- readonly "keys": "id" | "tenant" | "provider" | "name" | "credentialRef" | "settings" | "enabled" | "createdBy" | "createdAt" | "updatedAt";
122
- readonly "batches": "id" | "tenant" | "user" | "provider" | "reference" | "status" | "rawStatus" | "itemCount" | "counts" | "error" | "metadata" | "resultsSaved" | "polls" | "nextPollAt" | "expiresAt" | "completedAt" | "createdAt" | "updatedAt";
123
- readonly "items": "batch" | "request" | "tenant" | "status" | "output" | "usage" | "error" | "createdAt";
124
- };
125
- readonly functions: "ai_provider_keys_for" | "delete_ai_provider_key" | "delete_ai_provider_keys" | "due_ai_batches" | "get_ai_batch" | "list_ai_batch_items" | "list_ai_batches" | "list_ai_provider_keys" | "record_ai_batch" | "save_ai_batch_items" | "save_ai_provider_key" | "update_ai_batch";
126
- readonly actions: "use" | "manage";
127
- readonly hooks: never;
128
- readonly entities: {};
129
- readonly primary: never;
130
- };
131
- readonly "ai-schedules": {
132
- readonly tables: {
133
- readonly "tasks": "id" | "tenant" | "user" | "chat" | "agent" | "title" | "prompt" | "cron" | "timezone" | "enabled" | "nextRunAt" | "lastRunAt" | "createdAt" | "updatedAt";
134
- readonly "runs": "id" | "task" | "tenant" | "user" | "status" | "scheduledFor" | "chat" | "error" | "startedAt" | "finishedAt" | "createdAt";
135
- };
136
- readonly functions: "claim_due_ai_tasks" | "delete_ai_task" | "finish_ai_task_run" | "list_ai_task_runs" | "list_ai_tasks" | "save_ai_task" | "schedule_ai_tasks" | "start_ai_task_run";
137
- readonly actions: "create" | "manage";
138
- readonly hooks: never;
139
- readonly entities: {
140
- readonly "task": "id" | "organization_id" | "user_id" | "chat_id" | "agent_id" | "title" | "prompt" | "cron" | "timezone" | "enabled" | "next_run_at" | "last_run_at" | "created_at" | "updated_at";
141
- };
142
- readonly primary: "task";
143
- };
144
- readonly "announcements": {
145
- readonly tables: {
146
- readonly "announcements": "id" | "title" | "body" | "severity" | "href" | "audience" | "targets" | "startsAt" | "endsAt" | "dismissible" | "createdBy" | "createdAt" | "updatedAt";
147
- readonly "dismissals": "announcement" | "user" | "dismissedAt";
148
- };
149
- readonly functions: "active_announcements" | "broadcast_announcement" | "delete_announcement" | "dismiss_announcement" | "list_announcements" | "save_announcement";
150
- readonly actions: "manage";
151
- readonly hooks: never;
152
- readonly entities: {
153
- readonly "announcement": "id" | "title" | "body" | "severity" | "href" | "audience" | "targets" | "starts_at" | "ends_at" | "dismissible" | "created_by" | "created_at" | "updated_at";
154
- };
155
- readonly primary: "announcement";
156
- };
157
- readonly "api-keys": {
158
- readonly tables: {
159
- readonly "keys": "id" | "tenant" | "user" | "name" | "prefix" | "publicId" | "secretHash" | "scopes" | "kind" | "rateLimit" | "windowStart" | "windowHits" | "expiresAt" | "lastUsedAt" | "revokedAt" | "rotatedFrom" | "createdBy" | "createdAt";
160
- };
161
- readonly functions: "api_key_tenant" | "create_api_key" | "has_scope" | "list_api_keys" | "revoke_api_key" | "rotate_api_key" | "verify_api_key";
162
- readonly actions: "manage" | "own";
163
- readonly hooks: never;
164
- readonly entities: {
165
- readonly "key": "id" | "organization_id" | "user_id" | "name" | "prefix" | "public_id" | "secret_hash" | "scopes" | "kind" | "rate_limit" | "window_start" | "window_hits" | "expires_at" | "last_used_at" | "revoked_at" | "rotated_from" | "created_by" | "created_at";
166
- };
167
- readonly primary: "key";
168
- };
169
- readonly "approvals": {
170
- readonly tables: {
171
- readonly "requests": "id" | "tenant" | "subjectType" | "subjectId" | "action" | "policy" | "step" | "status" | "requestedBy" | "reason" | "payload" | "expiresAt" | "remindedAt" | "decidedAt" | "createdAt";
172
- readonly "decisions": "id" | "request" | "tenant" | "step" | "approver" | "decision" | "delegateTo" | "comment" | "createdAt";
173
- };
174
- readonly functions: "approval_eligible" | "approval_finalize" | "approval_notify" | "approval_policy" | "cancel_approval" | "decide_approval" | "delegate_approval" | "expire_approvals" | "get_approval" | "is_approved" | "list_approvals" | "open_approval" | "remind_approvals" | "request_approval";
175
- readonly actions: "read" | "request" | "manage";
176
- readonly hooks: "before_approval_request" | "after_approval_request" | "before_approval_decide" | "after_approval_decide";
177
- readonly entities: {
178
- readonly "approval": "id" | "tenant_id" | "subject_type" | "subject_id" | "action" | "policy" | "step" | "status" | "requested_by" | "reason" | "payload" | "expires_at" | "reminded_at" | "decided_at" | "created_at";
179
- };
180
- readonly primary: "approval";
181
- };
182
- readonly "assets": {
183
- readonly tables: {
184
- readonly "locations": "id" | "tenant" | "parent" | "kind" | "name" | "code" | "address" | "latitude" | "longitude" | "metadata" | "archivedAt" | "createdAt" | "updatedAt";
185
- readonly "assets": "id" | "tenant" | "location" | "kind" | "name" | "tag" | "serial" | "status" | "assigneeType" | "assigneeId" | "latitude" | "longitude" | "metadata" | "retiredAt" | "createdBy" | "createdAt" | "updatedAt";
186
- readonly "assignments": "id" | "tenant" | "asset" | "assigneeType" | "assigneeId" | "note" | "assignedBy" | "assignedAt" | "releasedAt";
187
- };
188
- readonly functions: "archive_asset_location" | "asset_assignment_history" | "asset_location_check_parent" | "asset_locations_at" | "assets_near" | "assign_asset" | "create_asset" | "create_asset_location" | "get_asset" | "get_asset_location" | "list_asset_locations" | "list_assets" | "release_asset" | "set_asset_link" | "update_asset" | "update_asset_location";
189
- readonly actions: "read" | "manage" | "assign";
190
- readonly hooks: "before_asset_assign" | "after_asset_assign";
191
- readonly entities: {
192
- readonly "asset": "id" | "tenant_id" | "location_id" | "kind" | "name" | "tag" | "serial_number" | "status" | "assignee_type" | "assignee_id" | "latitude" | "longitude" | "metadata" | "retired_at" | "created_by" | "created_at" | "updated_at";
193
- readonly "asset_location": "id" | "tenant_id" | "parent_id" | "kind" | "name" | "code" | "address" | "latitude" | "longitude" | "metadata" | "archived_at" | "created_at" | "updated_at";
194
- };
195
- readonly primary: "asset";
196
- };
197
- readonly "assignment": {
198
- readonly tables: {
199
- readonly "queues": "id" | "tenant" | "name" | "subjectType" | "strategy" | "conditions" | "rank" | "enabled" | "createdAt" | "updatedAt";
200
- readonly "members": "queue" | "tenant" | "user" | "weight" | "active" | "credit" | "assignedCount" | "lastAssignedAt";
201
- readonly "log": "id" | "tenant" | "queue" | "subjectType" | "subjectId" | "user" | "assignedAt";
202
- };
203
- readonly functions: "assign_subject" | "assignment_history" | "list_assignment_queues" | "remove_assignment_queue" | "save_assignment_queue" | "set_assignment_members";
204
- readonly actions: "read" | "manage" | "assign";
205
- readonly hooks: never;
206
- readonly entities: {
207
- readonly "assignment_queue": "id" | "tenant_id" | "name" | "subject_type" | "strategy" | "conditions" | "rank" | "enabled" | "created_at" | "updated_at";
208
- };
209
- readonly primary: "assignment_queue";
210
- };
211
- readonly "attachments": {
212
- readonly tables: {
213
- readonly "attachments": "id" | "tenant" | "subjectType" | "subjectId" | "bucket" | "path" | "name" | "mimeType" | "size" | "status" | "detail" | "uploadedBy" | "createdAt" | "uploadedAt" | "scannedAt" | "metadata" | "version" | "width" | "height" | "pages";
214
- readonly "versions": "id" | "tenant" | "attachment" | "version" | "bucket" | "path" | "name" | "mimeType" | "size" | "width" | "height" | "pages" | "status" | "detail" | "uploadedBy" | "uploadedAt" | "scannedAt" | "archivedAt";
215
- readonly "scans": "bucket" | "path" | "status" | "detail" | "createdAt" | "scannedAt";
216
- readonly "cleanup": "bucket" | "path" | "queuedBy" | "queuedAt" | "attempts";
217
- };
218
- readonly functions: "attachment_object_allowed" | "attachment_object_visible" | "attachment_subject_readable" | "confirm_attachment" | "create_attachment" | "delete_attachment" | "get_attachment" | "list_attachment_versions" | "list_attachments" | "object_clean" | "object_scan" | "replace_attachment" | "restore_attachment_version" | "set_attachment_status" | "set_object_scan";
219
- readonly actions: "read" | "upload" | "manage";
220
- readonly hooks: never;
221
- readonly entities: {
222
- readonly "attachment": "id" | "organization_id" | "subject_type" | "subject_id" | "bucket" | "object_path" | "name" | "mime_type" | "size" | "status" | "scan_detail" | "uploaded_by" | "created_at" | "uploaded_at" | "scanned_at" | "metadata" | "version" | "width" | "height" | "pages";
223
- };
224
- readonly primary: "attachment";
225
- };
226
- readonly "audit": {
227
- readonly tables: {
228
- readonly "log": "id" | "table" | "record" | "op" | "old" | "new" | "changed" | "actor" | "actorRole" | "tenant" | "occurredAt" | "impersonatedBy" | "impersonationReason" | "supportSession" | "eventType" | "category" | "outcome" | "source" | "targetType" | "metadata" | "idempotencyKey" | "actorKind" | "actorLabel" | "tenantLabel" | "targetLabel" | "summary" | "requestId" | "correlationId" | "scope";
229
- readonly "restricted": "entry" | "old" | "new" | "ip" | "userAgent" | "metadata" | "sessionId" | "changedValues";
230
- readonly "registry": "target" | "ignore" | "keyColumns" | "redact" | "category" | "eventPrefix" | "targetType" | "tenantColumn" | "labelColumn";
231
- };
232
- readonly functions: "audit" | "audit_event" | "audit_event_many" | "audit_read_tenants" | "audit_reads_all" | "count_audit_events" | "list_audit_events" | "purge_audit_log";
233
- readonly actions: "view" | "viewAll" | "revert" | "reveal";
234
- readonly hooks: "audit_retention";
235
- readonly entities: {};
236
- readonly primary: never;
237
- };
238
- readonly "automations": {
239
- readonly tables: {
240
- readonly "rules": "id" | "tenant" | "subjectType" | "trigger" | "name" | "description" | "conditions" | "actions" | "enabled" | "stopProcessing" | "rank" | "version" | "createdBy" | "updatedBy" | "createdAt" | "updatedAt" | "defaultKey";
241
- readonly "defaults": "key" | "block" | "subjectType" | "trigger" | "name" | "description" | "conditions" | "actions" | "enabled" | "updatedAt";
242
- readonly "versions": "rule" | "version" | "tenant" | "name" | "conditions" | "actions" | "savedBy" | "savedAt";
243
- readonly "evaluations": "id" | "tenant" | "rule" | "version" | "subjectType" | "subjectId" | "trigger" | "matched" | "results" | "mode" | "evaluatedBy" | "evaluatedAt";
244
- readonly "fields": "subjectType" | "id" | "label" | "description" | "type" | "path" | "columnType" | "nullable" | "options" | "operators" | "position" | "updatedAt";
245
- };
246
- readonly functions: "install_default_rules" | "matching_rules" | "rank_rule" | "record_rule_evaluation" | "remove_rule" | "reset_default_rule" | "rule_boolean" | "rule_bounds" | "rule_check" | "rule_date" | "rule_equal" | "rule_evaluate" | "rule_evaluations_list" | "rule_field_map" | "rule_fields_list" | "rule_get" | "rule_list" | "rule_matches" | "rule_moment" | "rule_node" | "rule_numeric" | "rule_positive" | "rule_text" | "rule_versions_list" | "rules_list" | "run_rules" | "save_rule" | "set_rule_enabled" | "sync_rule_fields";
247
- readonly actions: "read" | "edit" | "publish" | "admin";
248
- readonly hooks: never;
249
- readonly entities: {
250
- readonly "rule": "id" | "organization_id" | "subject_type" | "trigger" | "name" | "description" | "conditions" | "actions" | "enabled" | "stop_processing" | "rank" | "version" | "created_by" | "updated_by" | "created_at" | "updated_at" | "default_key";
251
- };
252
- readonly primary: "rule";
253
- };
254
- readonly "billable-time": {
255
- readonly tables: {
256
- readonly "rates": "id" | "tenant" | "user" | "subjectType" | "subjectId" | "rate" | "currency" | "effectiveFrom" | "createdBy" | "createdAt";
257
- readonly "billed": "entry" | "tenant" | "invoice" | "rate" | "currency" | "seconds" | "createdAt";
258
- };
259
- readonly functions: "billable_time_guard" | "billable_time_release" | "delete_time_rate" | "invoice_from_time" | "list_invoiced_time" | "list_time_rates" | "set_time_rate" | "time_rate" | "unbilled_time";
260
- readonly actions: "read" | "manage" | "invoice";
261
- readonly hooks: never;
262
- readonly entities: {
263
- readonly "time_rate": "id" | "tenant_id" | "user_id" | "subject_type" | "subject_id" | "rate" | "currency" | "effective_from" | "created_by" | "created_at";
264
- };
265
- readonly primary: "time_rate";
266
- };
267
- readonly "billing": {
268
- readonly tables: {
269
- readonly "customers": "tenant" | "customer" | "account" | "createdAt";
270
- readonly "subscriptions": "tenant" | "subscription" | "status" | "price" | "plan" | "periodEnd" | "cancelAt" | "eventAt" | "updatedAt";
271
- };
272
- readonly functions: "billing_account" | "billing_all_customers" | "billing_all_invoices" | "billing_all_subscriptions" | "billing_customer" | "billing_customer_details" | "billing_customer_tenant" | "billing_invoices" | "billing_payment_methods" | "billing_plan_price" | "billing_platform_customers" | "billing_platform_invoices" | "billing_platform_subscriptions" | "billing_seat_count" | "billing_status" | "billing_stripe_rows" | "billing_subscription" | "billing_subscription_item" | "billing_tax_ids" | "billing_tenant_subscription" | "link_billing_account" | "link_billing_customer";
273
- readonly actions: "read" | "manage" | "viewAll";
274
- readonly hooks: never;
275
- readonly entities: {};
276
- readonly primary: never;
277
- };
278
- readonly "bookings": {
279
- readonly tables: {
280
- readonly "resources": "id" | "tenant" | "name" | "kind" | "capacity" | "tz" | "calendar" | "host" | "checkBusy" | "active" | "createdAt";
281
- readonly "availability": "id" | "tenant" | "resource" | "weekday" | "startsAt" | "endsAt";
282
- readonly "exceptions": "id" | "tenant" | "resource" | "during" | "available" | "reason";
283
- readonly "services": "id" | "tenant" | "name" | "duration" | "bufferBefore" | "bufferAfter" | "resourceKinds" | "step" | "minNotice" | "holdFor" | "reminderOffsets" | "active" | "createdAt";
284
- readonly "bookings": "id" | "tenant" | "resource" | "service" | "seat" | "during" | "blocked" | "status" | "holdExpiresAt" | "customerName" | "customerEmail" | "customerUser" | "notes" | "accessHash" | "calendarEvent" | "createdBy" | "createdAt" | "updatedAt" | "cancelledAt" | "cancelReason" | "series";
285
- readonly "series": "id" | "tenant" | "service" | "resource" | "rule" | "startsAt" | "tz" | "customerName" | "customerEmail" | "customerUser" | "status" | "endsAt" | "createdBy" | "createdAt" | "updatedAt";
286
- };
287
- readonly functions: "add_booking_exception" | "available_slots" | "booking_slots" | "cancel_booking" | "change_booking" | "confirm_booking" | "delete_booking_exception" | "expire_booking_holds" | "expire_booking_holds_in" | "hold_booking" | "list_bookings" | "place_booking" | "save_booking_resource" | "save_booking_service" | "set_booking_availability";
288
- readonly actions: "manage" | "create" | "read";
289
- readonly hooks: "before_booking_reserve" | "after_booking_reserve" | "after_booking_confirm" | "after_booking_cancel";
290
- readonly entities: {
291
- readonly "booking": "id" | "tenant_id" | "resource_id" | "service_id" | "seat" | "during" | "blocked" | "status" | "hold_expires_at" | "customer_name" | "customer_email" | "customer_user_id" | "notes" | "access_hash" | "calendar_event_id" | "created_by" | "created_at" | "updated_at" | "cancelled_at" | "cancel_reason" | "series_id";
292
- };
293
- readonly primary: "booking";
294
- };
295
- readonly "bulk": {
296
- readonly tables: {
297
- readonly "runs": "id" | "tenant" | "subjectType" | "action" | "args" | "ids" | "position" | "succeeded" | "failed" | "results" | "status" | "createdBy" | "createdAt" | "finishedAt";
298
- };
299
- readonly functions: "bulk_apply" | "bulk_row" | "bulk_run" | "bulk_step" | "start_bulk";
300
- readonly actions: "run";
301
- readonly hooks: never;
302
- readonly entities: {};
303
- readonly primary: never;
304
- };
305
- readonly "calendar": {
306
- readonly tables: {
307
- readonly "calendars": "id" | "tenant" | "name" | "tz" | "color" | "ownerType" | "ownerId" | "createdAt" | "visibility" | "description" | "rank" | "isDefault";
308
- readonly "events": "id" | "tenant" | "calendar" | "uid" | "title" | "description" | "location" | "startsAt" | "endsAt" | "allDay" | "tz" | "status" | "rrule" | "exdates" | "recurrence" | "originalStart" | "subjectType" | "subjectId" | "color" | "kind" | "transparency" | "autoDecline" | "createdBy" | "createdAt" | "updatedAt" | "visibility" | "owner" | "rdates";
309
- readonly "attendees": "id" | "tenant" | "event" | "email" | "name" | "user" | "role" | "response" | "subjectType" | "subjectId" | "organizer" | "optional";
310
- readonly "workingHours": "id" | "tenant" | "user" | "weekday" | "startsAt" | "endsAt" | "tz";
311
- readonly "grants": "id" | "tenant" | "calendar" | "user" | "role" | "createdAt";
312
- readonly "rules": "id" | "tenant" | "event" | "rrule" | "freq" | "interval" | "count" | "until" | "byDay" | "byMonthDay" | "byMonth" | "bySetPos";
313
- readonly "recurrenceDates": "id" | "tenant" | "event" | "kind" | "at";
314
- };
315
- readonly functions: "calendar_attendee_auto_decline" | "calendar_block_auto_decline" | "calendar_busy_blocks" | "calendar_free_busy" | "calendar_rule_starts" | "cancel_calendar_occurrence" | "create_calendar" | "delete_calendar" | "delete_calendar_event" | "import_calendar_events" | "list_calendar_events" | "list_calendar_working_hours" | "list_calendars" | "remove_calendar_attendee" | "respond_calendar_event" | "save_calendar_event" | "set_calendar_attendee" | "set_calendar_working_hours" | "split_calendar_event";
316
- readonly actions: "manage" | "write" | "read";
317
- readonly hooks: "before_calendar_event_save" | "after_calendar_event_save";
318
- readonly entities: {
319
- readonly "calendar_event": "id" | "tenant_id" | "calendar_id" | "uid" | "title" | "description" | "location" | "starts_at" | "ends_at" | "all_day" | "tz" | "status" | "rrule" | "exdates" | "recurrence_id" | "original_start" | "subject_type" | "subject_id" | "color" | "kind" | "transparency" | "auto_decline" | "created_by" | "created_at" | "updated_at" | "visibility" | "owner_id" | "rdates";
320
- readonly "calendar": "id" | "tenant_id" | "name" | "tz" | "color" | "owner_type" | "owner_id" | "created_at" | "visibility" | "description" | "rank" | "is_default";
321
- };
322
- readonly primary: "calendar_event";
323
- };
324
- readonly "catalog": {
325
- readonly tables: {
326
- readonly "products": "id" | "tenant" | "slug" | "title" | "description" | "kind" | "status" | "createdAt" | "updatedAt";
327
- readonly "options": "id" | "tenant" | "product" | "name" | "rank";
328
- readonly "optionValues": "id" | "tenant" | "option" | "value" | "rank";
329
- readonly "variants": "id" | "tenant" | "product" | "sku" | "title" | "barcode" | "weight" | "trackInventory" | "allowBackorder" | "rank" | "createdAt" | "updatedAt";
330
- readonly "variantValues": "tenant" | "variant" | "value";
331
- readonly "priceLists": "id" | "tenant" | "name" | "customerGroup" | "createdAt";
332
- readonly "prices": "id" | "tenant" | "variant" | "priceList" | "currency" | "amount" | "compareAt" | "validFrom" | "validUntil" | "createdAt" | "updatedAt";
333
- readonly "categories": "id" | "tenant" | "parent" | "name" | "slug" | "description" | "rank" | "createdAt" | "updatedAt";
334
- readonly "productCategories": "tenant" | "product" | "category";
335
- readonly "collections": "id" | "tenant" | "title" | "slug" | "kind" | "rule" | "createdAt" | "updatedAt";
336
- readonly "collectionProducts": "tenant" | "collection" | "product" | "rank";
337
- readonly "storefronts": "tenant" | "publishedAt";
338
- readonly "channels": "id" | "tenant" | "key" | "name" | "currency" | "priceList" | "active" | "createdAt" | "updatedAt";
339
- readonly "channelProducts": "tenant" | "channel" | "product" | "listedAt";
340
- readonly "productTranslations": "tenant" | "product" | "locale" | "title" | "description" | "updatedAt";
341
- readonly "variantTranslations": "tenant" | "variant" | "locale" | "title" | "updatedAt";
342
- readonly "media": "id" | "tenant" | "product" | "variant" | "attachment" | "position" | "alt" | "createdAt";
343
- };
344
- readonly functions: "add_to_collection" | "channel_price" | "channel_products" | "currency_minor_units" | "delete_catalog_channel" | "delete_category" | "delete_collection" | "delete_price" | "delete_price_list" | "delete_product" | "delete_product_option" | "delete_variant" | "move_category" | "product_text" | "publish_storefront" | "rank_variant" | "remove_from_collection" | "save_catalog_channel" | "save_category" | "save_collection" | "save_price_list" | "save_product" | "save_product_option" | "save_variant" | "set_channel_listing" | "set_price" | "set_product_categories" | "set_product_status" | "set_product_translation" | "set_variant_translation" | "storefront_products" | "storefront_tenants" | "variant_price";
345
- readonly actions: "manage" | "read";
346
- readonly hooks: "before_product_save" | "after_product_save" | "before_variant_save" | "after_variant_save" | "before_price_set" | "after_price_set";
347
- readonly entities: {
348
- readonly "product": "id" | "tenant_id" | "slug" | "title" | "description" | "kind" | "status" | "created_at" | "updated_at";
349
- readonly "product_variant": "id" | "tenant_id" | "product_id" | "sku" | "title" | "barcode" | "weight_grams" | "track_inventory" | "allow_backorder" | "rank" | "created_at" | "updated_at";
350
- };
351
- readonly primary: "product";
352
- };
353
- readonly "channels": {
354
- readonly tables: {
355
- readonly "channels": "id" | "tenant" | "name" | "visibility" | "topic" | "purpose" | "subjectType" | "subjectId" | "createdBy" | "createdAt" | "updatedAt";
356
- };
357
- readonly functions: "archive_channel" | "channels_for_record" | "create_channel" | "find_channel" | "get_channel" | "invite_to_channel" | "join_channel" | "leave_channel" | "list_channels" | "update_channel";
358
- readonly actions: "read" | "create" | "manage";
359
- readonly hooks: never;
360
- readonly entities: {
361
- readonly "channel": "id" | "tenant_id" | "name" | "visibility" | "topic" | "purpose" | "subject_type" | "subject_id" | "created_by" | "created_at" | "updated_at";
362
- };
363
- readonly primary: "channel";
364
- };
365
- readonly "chat-sdk-state": {
366
- readonly tables: {
367
- readonly "subscriptions": "prefix" | "thread" | "createdAt";
368
- readonly "locks": "prefix" | "thread" | "token" | "expiresAt" | "updatedAt";
369
- readonly "cache": "prefix" | "key" | "value" | "expiresAt" | "updatedAt";
370
- readonly "lists": "id" | "prefix" | "key" | "value" | "expiresAt";
371
- readonly "queues": "id" | "prefix" | "thread" | "value" | "expiresAt";
372
- readonly "installations": "id" | "tenant" | "adapter" | "externalId" | "credentialRef" | "metadata" | "installedBy" | "installedAt" | "uninstalledAt";
373
- };
374
- readonly functions: "chat_install" | "chat_installation" | "chat_state_acquire_lock" | "chat_state_append_to_list" | "chat_state_delete" | "chat_state_dequeue" | "chat_state_enqueue" | "chat_state_extend_lock" | "chat_state_force_release_lock" | "chat_state_get" | "chat_state_get_list" | "chat_state_is_subscribed" | "chat_state_queue_depth" | "chat_state_release_lock" | "chat_state_set" | "chat_state_set_if_not_exists" | "chat_state_subscribe" | "chat_state_unsubscribe" | "chat_uninstall" | "list_chat_installations" | "purge_chat_state";
375
- readonly actions: never;
376
- readonly hooks: never;
377
- readonly entities: {};
378
- readonly primary: never;
379
- };
380
- readonly "collections": {
381
- readonly tables: {
382
- readonly "collections": "id" | "tenant" | "subjectType" | "scope" | "owner" | "team" | "name" | "description" | "archivedAt" | "createdBy" | "createdAt" | "updatedAt";
383
- readonly "entries": "collection" | "tenant" | "subjectType" | "subjectId" | "rank" | "addedBy" | "addedAt";
384
- readonly "favorites": "user" | "tenant" | "subjectType" | "subjectId" | "rank" | "createdAt";
385
- readonly "savedItems": "id" | "user" | "tenant" | "subjectType" | "subjectId" | "note" | "remindAt" | "remindedAt" | "completedAt" | "createdAt";
386
- };
387
- readonly functions: "add_collection_entries" | "archive_collection" | "collection_entries" | "collection_subject_ids" | "collections_of" | "complete_saved_item" | "create_collection" | "list_collections" | "list_saved_items" | "rank_collection_entry" | "rank_star" | "remind_due_saved_items" | "remove_collection_entries" | "remove_saved_item" | "rename_collection" | "save_for_later" | "star_subject" | "starred_subjects" | "subject_collection_entries" | "unstar_subject";
388
- readonly actions: "read" | "write" | "share";
389
- readonly hooks: "before_collection_create" | "after_collection_create" | "before_collection_add" | "after_collection_add";
390
- readonly entities: {
391
- readonly "collection": "id" | "tenant_id" | "subject_type" | "scope" | "owner_id" | "team_id" | "name" | "description" | "archived_at" | "created_by" | "created_at" | "updated_at";
392
- };
393
- readonly primary: "collection";
394
- };
395
- readonly "comments": {
396
- readonly tables: {
397
- readonly "tasks": "message" | "tenant" | "task" | "createdBy" | "createdAt";
398
- };
399
- readonly functions: "comment_conversation" | "comment_counts" | "comment_message_readable" | "comments_json" | "copy_comments" | "create_comment" | "get_comment" | "list_comments" | "list_file_comments";
400
- readonly actions: "read" | "create" | "moderate";
401
- readonly hooks: never;
402
- readonly entities: {};
403
- readonly primary: never;
404
- };
405
- readonly "compliance": {
406
- readonly tables: {
407
- readonly "frameworks": "id" | "tenant" | "key" | "name" | "version" | "description" | "createdAt" | "updatedAt";
408
- readonly "controls": "id" | "tenant" | "framework" | "code" | "title" | "description" | "owner" | "applicable" | "createdAt" | "updatedAt";
409
- readonly "evidence": "id" | "tenant" | "control" | "task" | "attachment" | "note" | "collectedBy" | "collectedAt" | "validUntil";
410
- readonly "tasks": "id" | "tenant" | "control" | "title" | "assignee" | "intervalDays" | "dueOn" | "lastCollectedAt" | "notifiedFor" | "active" | "createdAt" | "updatedAt";
411
- readonly "policies": "id" | "tenant" | "key" | "title" | "owner" | "requiresAck" | "currentVersion" | "versionNumber" | "publishedAt" | "archivedAt" | "createdAt" | "updatedAt";
412
- readonly "acknowledgements": "id" | "tenant" | "policy" | "version" | "user" | "acknowledgedAt";
413
- };
414
- readonly functions: "acknowledge_policy" | "add_control_evidence" | "archive_policy" | "control_posture" | "get_control" | "list_control_frameworks" | "list_controls" | "list_evidence_tasks" | "list_policies" | "notify_overdue_evidence_tasks" | "policy_acknowledgements" | "publish_policy" | "remove_control_evidence" | "save_control" | "save_control_framework" | "save_evidence_task" | "save_policy";
415
- readonly actions: "read" | "manage" | "collect" | "acknowledge";
416
- readonly hooks: never;
417
- readonly entities: {
418
- readonly "control": "id" | "tenant_id" | "framework_id" | "code" | "title" | "description" | "owner_id" | "applicable" | "created_at" | "updated_at";
419
- readonly "control_framework": "id" | "tenant_id" | "key" | "name" | "version" | "description" | "created_at" | "updated_at";
420
- readonly "evidence_task": "id" | "tenant_id" | "control_id" | "title" | "assignee_id" | "interval_days" | "due_on" | "last_collected_at" | "notified_for" | "active" | "created_at" | "updated_at";
421
- readonly "policy": "id" | "tenant_id" | "key" | "title" | "owner_id" | "requires_acknowledgement" | "current_version_id" | "version_number" | "published_at" | "archived_at" | "created_at" | "updated_at";
422
- };
423
- readonly primary: "control";
424
- };
425
- readonly "connectors": {
426
- readonly tables: {
427
- readonly "servers": "id" | "tenant" | "name" | "url" | "transport" | "authType" | "credentialRef" | "scopes" | "clientMetadata" | "enabled" | "createdBy" | "createdAt" | "updatedAt";
428
- readonly "grants": "id" | "user" | "server" | "tenant" | "credentialRef" | "scopes" | "expiresAt" | "grantedAt" | "revokedAt";
429
- readonly "sessions": "server" | "user" | "chat" | "session" | "initializeResult" | "lastUsedAt" | "expiresAt";
430
- readonly "fingerprints": "server" | "fingerprint" | "tools" | "status" | "approvedBy" | "approvedAt" | "createdAt";
431
- };
432
- readonly functions: "check_connector_fingerprint" | "decide_connector_fingerprint" | "delete_connector_server" | "expiring_connector_grants" | "get_connector" | "get_connector_session" | "list_connector_servers" | "purge_connector_sessions" | "record_connector_grant" | "renew_connector_grant" | "revoke_connector_grant" | "save_connector_server" | "save_connector_session";
433
- readonly actions: "read" | "use" | "manage";
434
- readonly hooks: never;
435
- readonly entities: {
436
- readonly "server": "id" | "organization_id" | "name" | "url" | "transport" | "auth_type" | "credential_ref" | "scopes" | "client_metadata" | "enabled" | "created_by" | "created_at" | "updated_at";
437
- };
438
- readonly primary: "server";
439
- };
440
- readonly "contacts": {
441
- readonly tables: {
442
- readonly "companies": "id" | "tenant" | "name" | "domain" | "website" | "vatId" | "lifecycle" | "owner" | "address" | "mergedInto" | "archivedAt" | "createdBy" | "createdAt" | "updatedAt";
443
- readonly "people": "id" | "tenant" | "name" | "email" | "phone" | "title" | "lifecycle" | "owner" | "user" | "mergedInto" | "archivedAt" | "createdBy" | "createdAt" | "updatedAt";
444
- readonly "links": "tenant" | "company" | "person" | "role" | "isPrimary" | "createdAt";
445
- readonly "personContacts": "tenant" | "person" | "contact" | "createdAt";
446
- };
447
- readonly functions: "archive_company" | "archive_person" | "company_people_of" | "list_companies" | "list_people" | "merge_companies" | "merge_people" | "remove_company_person" | "save_company" | "save_person" | "set_company_person";
448
- readonly actions: "read" | "write" | "manage";
449
- readonly hooks: "before_company_save" | "after_company_save" | "before_person_save" | "after_person_save";
450
- readonly entities: {
451
- readonly "company": "id" | "tenant_id" | "name" | "domain" | "website" | "vat_id" | "lifecycle" | "owner_user_id" | "address" | "merged_into" | "archived_at" | "created_by" | "created_at" | "updated_at";
452
- readonly "person": "id" | "tenant_id" | "name" | "email" | "phone" | "title" | "lifecycle" | "owner_user_id" | "user_id" | "merged_into" | "archived_at" | "created_by" | "created_at" | "updated_at";
453
- };
454
- readonly primary: never;
455
- };
456
- readonly "content": {
457
- readonly tables: {
458
- readonly "entries": "id" | "tenant" | "type" | "locale" | "slug" | "title" | "summary" | "body" | "status" | "publishAt" | "publishedAt" | "author" | "translationGroup" | "cover" | "approval" | "createdBy" | "createdAt" | "updatedAt";
459
- };
460
- readonly functions: "archive_content_entry" | "content_entry_approved" | "content_entry_go_live" | "create_content_entry" | "get_content_entry" | "list_content_entries" | "public_content_entries" | "public_content_entry" | "publish_content_entry" | "publish_due_content_entries" | "schedule_content_entry" | "update_content_entry";
461
- readonly actions: "read" | "write" | "publish";
462
- readonly hooks: "before_content_entry_publish" | "after_content_entry_publish";
463
- readonly entities: {
464
- readonly "content_entry": "id" | "tenant_id" | "type" | "locale" | "slug" | "title" | "summary" | "body" | "status" | "publish_at" | "published_at" | "author_id" | "translation_group_id" | "cover_attachment_id" | "approval_id" | "created_by" | "created_at" | "updated_at";
465
- };
466
- readonly primary: "content_entry";
467
- };
468
- readonly "contracts": {
469
- readonly tables: {
470
- readonly "contracts": "id" | "tenant" | "title" | "description" | "counterpartyType" | "counterpartyId" | "owner" | "status" | "value" | "currency" | "startsOn" | "endsOn" | "autoRenew" | "renewalMonths" | "noticeDays" | "renewedCount" | "signatureRequest" | "signedAt" | "terminatedAt" | "terminationReason" | "createdBy" | "createdAt" | "updatedAt";
471
- readonly "obligations": "id" | "tenant" | "contract" | "title" | "description" | "dueOn" | "owner" | "status" | "completedAt" | "completedBy" | "createdAt" | "updatedAt";
472
- };
473
- readonly functions: "contract_apply_status" | "contract_schedule_renewal" | "contract_signature_settled" | "create_contract" | "delete_obligation" | "get_contract" | "list_contracts" | "list_obligations" | "run_contract_renewals" | "save_obligation" | "send_contract_for_signature" | "set_obligation_status" | "transition_contract" | "update_contract";
474
- readonly actions: "read" | "write" | "manage";
475
- readonly hooks: never;
476
- readonly entities: {
477
- readonly "contract": "id" | "tenant_id" | "title" | "description" | "counterparty_type" | "counterparty_id" | "owner_id" | "status" | "value" | "currency" | "starts_on" | "ends_on" | "auto_renew" | "renewal_months" | "notice_days" | "renewed_count" | "signature_request_id" | "signed_at" | "terminated_at" | "termination_reason" | "created_by" | "created_at" | "updated_at";
478
- readonly "obligation": "id" | "tenant_id" | "contract_id" | "title" | "description" | "due_on" | "owner_id" | "status" | "completed_at" | "completed_by" | "created_at" | "updated_at";
479
- };
480
- readonly primary: "contract";
481
- };
482
- readonly "courses": {
483
- readonly tables: {
484
- readonly "courses": "id" | "tenant" | "key" | "title" | "summary" | "status" | "certificate" | "createdBy" | "createdAt" | "updatedAt";
485
- readonly "modules": "id" | "tenant" | "course" | "title" | "rank" | "createdAt" | "updatedAt";
486
- readonly "lessons": "id" | "tenant" | "course" | "module" | "title" | "kind" | "body" | "mediaUrl" | "form" | "required" | "minutes" | "rank" | "createdAt" | "updatedAt";
487
- readonly "progress": "enrollment" | "lesson" | "tenant" | "course" | "user" | "startedAt" | "completedAt" | "attempts" | "submission" | "score" | "maxScore" | "passed" | "updatedAt";
488
- readonly "certificates": "id" | "tenant" | "course" | "enrollment" | "user" | "code" | "issuedAt" | "revokedAt";
489
- };
490
- readonly functions: "complete_course_lesson" | "course_finish" | "course_json" | "course_learner_json" | "course_lesson" | "course_lesson_done" | "course_outline" | "course_progress" | "course_steps" | "course_sync" | "delete_course" | "delete_course_lesson" | "delete_course_module" | "enroll_in_course" | "enrollment_ensure" | "enrollment_mark" | "list_course_learners" | "list_courses" | "revoke_course_certificate" | "save_course" | "save_course_lesson" | "save_course_module" | "start_course_lesson" | "unenroll_from_course" | "verify_course_certificate";
491
- readonly actions: "read" | "enroll" | "manage";
492
- readonly hooks: never;
493
- readonly entities: {
494
- readonly "course": "id" | "tenant_id" | "key" | "title" | "summary" | "status" | "issues_certificate" | "created_by" | "created_at" | "updated_at";
495
- readonly "course_module": "id" | "tenant_id" | "course_id" | "title" | "rank" | "created_at" | "updated_at";
496
- readonly "course_lesson": "id" | "tenant_id" | "course_id" | "module_id" | "title" | "kind" | "body" | "media_url" | "form_id" | "required" | "duration_minutes" | "rank" | "created_at" | "updated_at";
497
- readonly "course_certificate": "id" | "tenant_id" | "course_id" | "enrollment_id" | "user_id" | "code" | "issued_at" | "revoked_at";
498
- };
499
- readonly primary: "course";
500
- };
501
- readonly "created-by": {
502
- readonly tables: {};
503
- readonly functions: never;
504
- readonly actions: never;
505
- readonly hooks: never;
506
- readonly entities: {};
507
- readonly primary: never;
508
- };
509
- readonly "credentials": {
510
- readonly tables: {
511
- readonly "secrets": "provider" | "name" | "tenant" | "scope" | "vaultId" | "secret" | "updatedAt";
512
- };
513
- readonly functions: "credential_delete" | "credential_get" | "credential_set";
514
- readonly actions: never;
515
- readonly hooks: never;
516
- readonly entities: {};
517
- readonly primary: never;
518
- };
519
- readonly "custom-fields": {
520
- readonly tables: {
521
- readonly "definitions": "id" | "tenant" | "entity" | "key" | "label" | "type" | "required" | "sensitive" | "permission" | "rank" | "encrypted";
522
- readonly "options": "id" | "definition" | "value" | "label" | "rank";
523
- readonly "values": "id" | "tenant" | "definition" | "subjectType" | "subjectId" | "valueText" | "valueNumber" | "valueDate" | "valueBool" | "optionId" | "valueJson" | "valueUrl" | "valueEmail" | "key" | "label" | "type" | "rank" | "createdAt" | "updatedAt";
524
- };
525
- readonly functions: "delete_field_definition" | "list_field_definitions" | "rank_field_definition" | "read_field_values" | "save_field_definition" | "set_field_value";
526
- readonly actions: "manage" | "read" | "sensitive";
527
- readonly hooks: never;
528
- readonly entities: {
529
- readonly "field": "id" | "tenant_id" | "entity" | "key" | "label" | "type" | "required" | "sensitive" | "permission" | "rank" | "encrypted";
530
- };
531
- readonly primary: "field";
532
- };
533
- readonly "data-lifecycle": {
534
- readonly tables: {
535
- readonly "exports": "id" | "subject" | "user" | "tenant" | "status" | "bucket" | "files" | "error" | "requestedBy" | "requestedAt" | "completedAt" | "expiresAt";
536
- readonly "deletions": "tenant" | "requestedBy" | "requestedAt" | "purgeAfter" | "cancelledAt" | "purgedAt" | "previouslyDisabled";
537
- readonly "policies": "id" | "tenant" | "plan" | "kind" | "keep" | "updatedAt";
538
- readonly "holds": "id" | "tenant" | "kind" | "reason" | "placedBy" | "placedAt" | "releasedBy" | "releasedAt";
539
- };
540
- readonly functions: "anonymize_due" | "cancel_organization_deletion" | "claim_data_export" | "complete_data_export" | "data_export_object_allowed" | "data_export_rows" | "data_lifecycle_credentials" | "data_lifecycle_tables" | "due_organization_deletions" | "expired_data_exports" | "fail_data_export" | "forget_data_exports" | "get_data_export" | "is_held" | "list_data_exports" | "list_legal_holds" | "list_retention_policies" | "organization_credential_refs" | "organization_deletion" | "place_legal_hold" | "purge_organization" | "release_legal_hold" | "remove_retention_policy" | "request_data_export" | "request_organization_deletion" | "retention_cutoff" | "retention_floor" | "retention_for" | "set_retention_policy";
541
- readonly actions: "export" | "delete" | "cancelDelete" | "deletePlatform";
542
- readonly hooks: "on_organization_purge";
543
- readonly entities: {};
544
- readonly primary: never;
545
- };
546
- readonly "deals": {
547
- readonly tables: {
548
- readonly "deals": "id" | "tenant" | "number" | "identifier" | "name" | "companyType" | "companyId" | "motion" | "priority" | "owner" | "product" | "seats" | "amount" | "existingAmount" | "currency" | "valuePeriod" | "amountSource" | "pipeline" | "stage" | "stageEnteredAt" | "outcome" | "probability" | "forecast" | "openedOn" | "closeOn" | "slippedFrom" | "pushCount" | "closedAt" | "nextStep" | "nextAt" | "nextKind" | "flags" | "source" | "note" | "lostReason" | "locked" | "rank" | "archivedAt" | "createdBy" | "createdAt" | "updatedAt" | "listTotal" | "discountTotal" | "subtotal" | "taxTotal" | "total";
549
- readonly "contacts": "tenant" | "deal" | "contactType" | "contactId" | "role" | "isPrimary";
550
- readonly "members": "tenant" | "deal" | "user" | "role";
551
- readonly "lines": "id" | "tenant" | "parent" | "productType" | "productId" | "description" | "quantity" | "unitAmount" | "discountBps" | "taxRateBps" | "taxCode" | "position" | "createdAt";
552
- };
553
- readonly functions: "archive_deal" | "close_deal" | "create_deal" | "deal_forecast" | "deal_health" | "delete_deal" | "reopen_deal" | "set_deal_contacts" | "set_deal_lines" | "set_deal_lines_recount" | "set_deal_members" | "update_deals";
554
- readonly actions: "read" | "write" | "manage";
555
- readonly hooks: "before_deal_create" | "after_deal_create" | "before_deal_update" | "after_deal_update";
556
- readonly entities: {
557
- readonly "deal": "id" | "tenant_id" | "number" | "identifier" | "name" | "company_type" | "company_id" | "motion" | "priority" | "owner_user_id" | "product" | "seats" | "amount" | "existing_amount" | "currency" | "value_period" | "amount_source" | "pipeline_id" | "stage_id" | "stage_entered_at" | "outcome" | "probability" | "forecast_category" | "opened_on" | "expected_close_on" | "slipped_from" | "push_count" | "closed_at" | "next_step" | "next_at" | "next_kind" | "flags" | "source" | "note" | "lost_reason" | "locked" | "rank" | "archived_at" | "created_by" | "created_at" | "updated_at" | "list_total" | "discount_total" | "subtotal" | "tax_total" | "total";
558
- };
559
- readonly primary: "deal";
560
- };
561
- readonly "dispatch": {
562
- readonly tables: {
563
- readonly "workOrders": "id" | "tenant" | "title" | "description" | "priority" | "status" | "technician" | "startsAt" | "endsAt" | "location" | "asset" | "booking" | "subjectType" | "subjectId" | "address" | "enRouteAt" | "arrivedAt" | "completedAt" | "cancelledAt" | "cancelReason" | "completionNote" | "createdBy" | "createdAt" | "updatedAt";
564
- readonly "routes": "id" | "tenant" | "technician" | "routeDate" | "plannedBy" | "createdAt" | "updatedAt";
565
- readonly "stops": "id" | "tenant" | "route" | "workOrder" | "position";
566
- readonly "parts": "id" | "tenant" | "workOrder" | "name" | "quantity" | "unit" | "asset" | "variant" | "location" | "recordedBy" | "createdAt";
567
- };
568
- readonly functions: "create_work_order" | "dispatch_board" | "get_work_order" | "list_work_order_parts" | "list_work_orders" | "plan_dispatch_route" | "record_work_order_part" | "remove_work_order_part" | "schedule_work_order" | "set_work_order_status" | "technician_day" | "unschedule_work_order" | "update_work_order";
569
- readonly actions: "read" | "manage" | "work";
570
- readonly hooks: never;
571
- readonly entities: {
572
- readonly "work_order": "id" | "tenant_id" | "title" | "description" | "priority" | "status" | "technician_id" | "starts_at" | "ends_at" | "location_id" | "asset_id" | "booking_id" | "subject_type" | "subject_id" | "address" | "en_route_at" | "arrived_at" | "completed_at" | "cancelled_at" | "cancel_reason" | "completion_note" | "created_by" | "created_at" | "updated_at";
573
- readonly "dispatch_route": "id" | "tenant_id" | "technician_id" | "route_date" | "planned_by" | "created_at" | "updated_at";
574
- readonly "work_order_part": "id" | "tenant_id" | "work_order_id" | "name" | "quantity" | "unit" | "asset_id" | "variant_id" | "location_id" | "recorded_by" | "created_at";
575
- };
576
- readonly primary: "work_order";
577
- };
578
- readonly "documents": {
579
- readonly tables: {
580
- readonly "documents": "id" | "tenant" | "subjectType" | "subjectId" | "name" | "createdBy" | "createdAt" | "updatedAt";
581
- readonly "updates": "seq" | "document" | "tenant" | "update" | "actor" | "createdAt";
582
- readonly "snapshots": "document" | "tenant" | "state" | "seq" | "createdAt";
583
- readonly "suggestions": "id" | "document" | "tenant" | "update" | "summary" | "status" | "createdBy" | "createdAt" | "decidedBy" | "decidedAt" | "note";
584
- };
585
- readonly functions: "compact_document" | "decide_document_suggestion" | "document_access" | "document_topic_access" | "document_updates_after" | "documents_to_compact" | "list_document_suggestions" | "open_document" | "pull_document_updates" | "push_document_update" | "suggest_document_change";
586
- readonly actions: "read" | "write" | "suggest" | "manage";
587
- readonly hooks: "before_document_create" | "after_document_create";
588
- readonly entities: {
589
- readonly "document": "id" | "tenant_id" | "subject_type" | "subject_id" | "name" | "created_by" | "created_at" | "updated_at";
590
- readonly "document_suggestion": "id" | "document_id" | "tenant_id" | "payload" | "summary" | "status" | "created_by" | "created_at" | "decided_by" | "decided_at" | "note";
591
- };
592
- readonly primary: "document";
593
- };
594
- readonly "domains": {
595
- readonly tables: {
596
- readonly "hostnames": "id" | "tenant" | "hostname" | "kind" | "token" | "verifiedAt" | "primary" | "createdBy" | "createdAt";
597
- };
598
- readonly functions: "add_hostname" | "hostname_by_id" | "list_hostnames" | "remove_hostname" | "resolve_hostname" | "set_primary_hostname" | "verify_hostname";
599
- readonly actions: "read" | "manage";
600
- readonly hooks: never;
601
- readonly entities: {};
602
- readonly primary: never;
603
- };
604
- readonly "donations": {
605
- readonly tables: {
606
- readonly "funds": "id" | "tenant" | "key" | "name" | "kind" | "goal" | "currency" | "startsOn" | "endsOn" | "archivedAt" | "createdAt" | "updatedAt";
607
- readonly "pledges": "id" | "tenant" | "donorType" | "donorId" | "fund" | "amount" | "currency" | "frequency" | "startsOn" | "endsOn" | "status" | "provider" | "providerCustomer" | "note" | "createdBy" | "createdAt" | "updatedAt";
608
- readonly "receipts": "id" | "tenant" | "donorType" | "donorId" | "sequence" | "number" | "kind" | "year" | "amount" | "currency" | "issuedAt" | "voidedAt" | "voidReason";
609
- readonly "donations": "id" | "tenant" | "donorType" | "donorId" | "fund" | "pledge" | "periodStart" | "amount" | "currency" | "receivedOn" | "method" | "status" | "provider" | "paymentReference" | "transaction" | "refundTransaction" | "receipt" | "note" | "createdBy" | "createdAt" | "updatedAt";
610
- };
611
- readonly functions: "archive_donation_fund" | "create_pledge" | "donation_settle" | "due_pledge_installments" | "get_gift" | "issue_gift_receipt" | "issue_yearly_receipt" | "list_donation_funds" | "list_donation_receipts" | "list_gifts" | "list_pledges" | "open_gift" | "record_gift" | "record_gift_payment" | "save_donation_fund" | "update_pledge" | "void_donation_receipt" | "yearly_giving_summary";
612
- readonly actions: "read" | "manage";
613
- readonly hooks: never;
614
- readonly entities: {
615
- readonly "donation": "id" | "tenant_id" | "donor_type" | "donor_id" | "fund_id" | "pledge_id" | "period_start" | "amount" | "currency" | "received_on" | "method" | "status" | "provider" | "payment_reference" | "transaction_id" | "refund_transaction_id" | "receipt_id" | "note" | "created_by" | "created_at" | "updated_at";
616
- readonly "pledge": "id" | "tenant_id" | "donor_type" | "donor_id" | "fund_id" | "amount" | "currency" | "frequency" | "starts_on" | "ends_on" | "status" | "provider" | "provider_customer" | "note" | "created_by" | "created_at" | "updated_at";
617
- readonly "donation_fund": "id" | "tenant_id" | "key" | "name" | "kind" | "goal" | "currency" | "starts_on" | "ends_on" | "archived_at" | "created_at" | "updated_at";
618
- readonly "donation_receipt": "id" | "tenant_id" | "donor_type" | "donor_id" | "sequence" | "number" | "kind" | "year" | "amount" | "currency" | "issued_at" | "voided_at" | "void_reason";
619
- };
620
- readonly primary: "donation";
621
- };
622
- readonly "drive": {
623
- readonly tables: {
624
- readonly "nodes": "id" | "tenant" | "parent" | "kind" | "name" | "attachment" | "path" | "rank" | "deletedAt" | "createdBy" | "createdAt" | "updatedAt";
625
- readonly "grants": "id" | "tenant" | "node" | "principalType" | "principalId" | "user" | "team" | "role" | "expiresAt" | "createdBy" | "createdAt";
626
- };
627
- readonly functions: "drive_ancestors" | "drive_can" | "drive_check_parent" | "drive_clean_name" | "drive_conflict" | "drive_create_folder" | "drive_delete" | "drive_free_name" | "drive_get" | "drive_grants" | "drive_insert_node" | "drive_list" | "drive_lock_siblings" | "drive_move" | "drive_node_json" | "drive_node_moved" | "drive_node_path" | "drive_path" | "drive_readable_ids" | "drive_rename" | "drive_role" | "drive_share" | "drive_shared" | "drive_subtree" | "drive_unshare";
628
- readonly actions: "read" | "create" | "manage";
629
- readonly hooks: "before_drive_node_create" | "after_drive_node_create" | "before_drive_node_move" | "after_drive_node_move" | "before_drive_node_rename" | "after_drive_node_rename" | "before_drive_node_share" | "after_drive_node_share";
630
- readonly entities: {
631
- readonly "node": "id" | "tenant_id" | "parent_id" | "kind" | "name" | "attachment_id" | "path" | "rank" | "deleted_at" | "created_by" | "created_at" | "updated_at";
632
- };
633
- readonly primary: "node";
634
- };
635
- readonly "drive-files": {
636
- readonly tables: {};
637
- readonly functions: never;
638
- readonly actions: never;
639
- readonly hooks: never;
640
- readonly entities: {};
641
- readonly primary: never;
642
- };
643
- readonly "employees": {
644
- readonly tables: {
645
- readonly "employees": "id" | "tenant" | "user" | "name" | "email" | "jobTitle" | "team" | "manager" | "employmentType" | "status" | "startDate" | "endDate" | "offboardReason" | "originType" | "originId" | "createdBy" | "createdAt" | "updatedAt" | "firstName" | "lastName";
646
- readonly "privateDetails": "employee" | "tenant" | "user" | "nationalId" | "iban" | "birthDate" | "personalEmail" | "phone" | "address" | "emergencyContacts" | "offboardedAt" | "anonymizedAt" | "updatedAt" | "updatedBy" | "addressLine1" | "addressLine2" | "postalCode" | "city" | "region" | "country" | "emergencyName" | "emergencyPhone" | "emergencyRelation";
647
- readonly "contracts": "id" | "tenant" | "employee" | "startsOn" | "endsOn" | "hoursPerWeek" | "salary" | "currency" | "salaryPeriod" | "note" | "createdBy" | "createdAt";
648
- };
649
- readonly functions: "add_employee_contract" | "create_employee" | "employee_contracts" | "employee_private_details" | "offboard_employee" | "org_chart" | "reports_of" | "save_employee_private_details" | "update_employees";
650
- readonly actions: "read" | "write" | "viewSensitive" | "create" | "contractsRead" | "contractsWrite" | "privateDetailsWrite";
651
- readonly hooks: "before_employee_create" | "after_employee_create" | "before_employee_update" | "after_employee_update" | "before_employee_offboard" | "after_employee_offboard";
652
- readonly entities: {
653
- readonly "employee": "id" | "tenant_id" | "user_id" | "name" | "email" | "job_title" | "team_id" | "manager_id" | "employment_type" | "status" | "start_date" | "end_date" | "offboard_reason" | "origin_type" | "origin_id" | "created_by" | "created_at" | "updated_at" | "first_name" | "last_name";
654
- };
655
- readonly primary: "employee";
656
- };
657
- readonly "enrichment": {
658
- readonly tables: {
659
- readonly "enrichments": "id" | "tenant" | "company" | "person" | "provider" | "status" | "data" | "filled" | "fetchedAt" | "requestedBy";
660
- };
661
- readonly functions: "enrichment_due" | "enrichment_target" | "enrichments_of" | "record_enrichment";
662
- readonly actions: "read" | "run";
663
- readonly hooks: never;
664
- readonly entities: {
665
- readonly "enrichment": "id" | "tenant_id" | "company_id" | "person_id" | "provider" | "status" | "data" | "filled" | "fetched_at" | "requested_by";
666
- };
667
- readonly primary: "enrichment";
668
- };
669
- readonly "enrollments": {
670
- readonly tables: {
671
- readonly "programs": "id" | "tenant" | "key" | "name" | "description" | "subjectTypes" | "steps" | "enabled" | "version" | "createdBy" | "createdAt" | "updatedAt";
672
- readonly "enrollments": "id" | "tenant" | "program" | "programVersion" | "subjectType" | "subjectId" | "user" | "steps" | "completedSteps" | "status" | "enrolledBy" | "enrolledAt" | "completedAt" | "cancelledAt" | "updatedAt";
673
- readonly "steps": "enrollment" | "tenant" | "step" | "completedBy" | "completedAt";
674
- };
675
- readonly functions: "cancel_enrollment" | "complete_enrollment_step" | "delete_enrollment_program" | "enroll" | "enrollment" | "enrollment_ensure" | "enrollment_json" | "enrollment_mark" | "enrollment_programs" | "enrollment_step" | "list_enrollments" | "reset_enrollment_step" | "save_enrollment_program";
676
- readonly actions: "read" | "enroll" | "manage";
677
- readonly hooks: never;
678
- readonly entities: {
679
- readonly "enrollment_program": "id" | "tenant_id" | "key" | "name" | "description" | "subject_types" | "steps" | "enabled" | "version" | "created_by" | "created_at" | "updated_at";
680
- readonly "enrollment": "id" | "tenant_id" | "program" | "program_version" | "subject_type" | "subject_id" | "user_id" | "steps" | "completed_steps" | "status" | "enrolled_by" | "enrolled_at" | "completed_at" | "cancelled_at" | "updated_at";
681
- };
682
- readonly primary: "enrollment_program";
683
- };
684
- readonly "entitlements": {
685
- readonly tables: {};
686
- readonly functions: never;
687
- readonly actions: never;
688
- readonly hooks: never;
689
- readonly entities: {};
690
- readonly primary: never;
691
- };
692
- readonly "expenses": {
693
- readonly tables: {
694
- readonly "categories": "id" | "tenant" | "key" | "name" | "currency" | "limitAmount" | "receiptOver" | "archivedAt" | "createdAt" | "updatedAt";
695
- readonly "reports": "id" | "tenant" | "user" | "title" | "currency" | "note" | "approval" | "submittedAt" | "approvedAt" | "approvalTransaction" | "reimbursedAt" | "reimbursement" | "cancelledAt" | "createdAt" | "updatedAt";
696
- readonly "lines": "id" | "tenant" | "report" | "category" | "spentOn" | "description" | "merchant" | "amount" | "createdAt" | "updatedAt";
697
- };
698
- readonly functions: "add_expense_line" | "approve_expense_report" | "archive_expense_category" | "cancel_expense_report" | "check_expense_report" | "create_expense_report" | "expense_report_violations" | "get_expense_report" | "list_expense_categories" | "list_expense_reports" | "reimburse_expense_report" | "remove_expense_line" | "save_expense_category" | "submit_expense_report" | "update_expense_line";
699
- readonly actions: "read" | "submit" | "approve" | "manage";
700
- readonly hooks: never;
701
- readonly entities: {
702
- readonly "expense_report": "id" | "tenant_id" | "user_id" | "title" | "currency" | "note" | "approval_id" | "submitted_at" | "approved_at" | "approval_transaction_id" | "reimbursed_at" | "reimbursement_transaction_id" | "cancelled_at" | "created_at" | "updated_at";
703
- readonly "expense_line": "id" | "tenant_id" | "report_id" | "category_id" | "spent_on" | "description" | "merchant" | "amount" | "created_at" | "updated_at";
704
- readonly "expense_category": "id" | "tenant_id" | "key" | "name" | "currency" | "limit_amount" | "receipt_over" | "archived_at" | "created_at" | "updated_at";
705
- };
706
- readonly primary: "expense_report";
707
- };
708
- readonly "field-encryption": {
709
- readonly tables: {};
710
- readonly functions: "drop_field_key" | "field_decrypt" | "field_encrypt" | "field_key" | "field_open" | "field_seal";
711
- readonly actions: never;
712
- readonly hooks: never;
713
- readonly entities: {};
714
- readonly primary: never;
715
- };
716
- readonly "field-history": {
717
- readonly tables: {
718
- readonly "changes": "id" | "tenant" | "subjectType" | "subjectId" | "field" | "before" | "after" | "changedBy" | "changedAt";
719
- };
720
- readonly functions: "field_history";
721
- readonly actions: "read";
722
- readonly hooks: never;
723
- readonly entities: {};
724
- readonly primary: never;
725
- };
726
- readonly "flags": {
727
- readonly tables: {
728
- readonly "flags": "key" | "type" | "description" | "variants" | "defaultVariant" | "enabled" | "archived" | "rules" | "rolloutPercentage" | "rolloutVariant" | "updatedAt";
729
- readonly "overrides": "id" | "flag" | "tenant" | "user" | "context" | "contextKey" | "variant" | "createdAt";
730
- };
731
- readonly functions: "delete_flag" | "flag_bucket" | "flag_definitions" | "flag_enabled" | "flag_evaluation" | "list_flags" | "save_flag" | "set_flag_override" | "tenant_ids_with_flag";
732
- readonly actions: "manage";
733
- readonly hooks: never;
734
- readonly entities: {
735
- readonly "flag": "key" | "type" | "description" | "variants" | "default_variant" | "enabled" | "archived" | "rules" | "rollout_percentage" | "rollout_variant" | "updated_at";
736
- };
737
- readonly primary: "flag";
738
- };
739
- readonly "forecasts": {
740
- readonly tables: {
741
- readonly "snapshots": "id" | "tenant" | "pipeline" | "since" | "until" | "currency" | "target" | "totals" | "dealCount" | "takenBy" | "takenAt";
742
- readonly "deals": "snapshot" | "tenant" | "deal" | "name" | "owner" | "stage" | "forecast" | "outcome" | "amount" | "closeOn" | "closedAt";
743
- };
744
- readonly functions: "forecast_changes" | "forecast_snapshot" | "forecast_snapshots" | "take_forecast_snapshot";
745
- readonly actions: "read" | "snapshot";
746
- readonly hooks: never;
747
- readonly entities: {
748
- readonly "snapshot": "id" | "tenant_id" | "pipeline_id" | "period_start" | "period_end" | "currency" | "target" | "totals" | "deal_count" | "taken_by" | "taken_at";
749
- };
750
- readonly primary: "snapshot";
751
- };
752
- readonly "forms": {
753
- readonly tables: {
754
- readonly "forms": "id" | "tenant" | "key" | "title" | "description" | "status" | "currentVersion" | "createdBy" | "createdAt" | "updatedAt";
755
- readonly "versions": "id" | "tenant" | "form" | "number" | "definition" | "schema" | "createdBy" | "createdAt";
756
- readonly "submissions": "id" | "tenant" | "form" | "version" | "subjectType" | "subjectId" | "respondent" | "answers" | "status" | "source" | "reviewedBy" | "reviewedAt" | "createdAt" | "submittedAt" | "updatedAt" | "score" | "maxScore" | "passed";
757
- readonly "answerKeys": "version" | "tenant" | "answers" | "createdAt";
758
- };
759
- readonly functions: "create_form" | "delete_form_submission" | "form_answer_matches" | "form_answer_merge" | "form_answer_split" | "form_condition_holds" | "form_condition_schema" | "form_correct_fits" | "form_field_schema" | "form_nps" | "form_resolve" | "form_schema" | "form_score" | "form_submission_save" | "get_form" | "get_form_submission" | "get_form_version" | "list_form_submissions" | "list_forms" | "publish_form_version" | "review_form_submission" | "submit_form" | "update_form";
760
- readonly actions: "read" | "manage" | "submit" | "review";
761
- readonly hooks: "before_form_publish" | "after_form_publish" | "before_form_submission" | "after_form_submission" | "before_public_form_submission";
762
- readonly entities: {
763
- readonly "form": "id" | "tenant_id" | "key" | "title" | "description" | "status" | "current_version_id" | "created_by" | "created_at" | "updated_at";
764
- };
765
- readonly primary: "form";
766
- };
767
- readonly "goals": {
768
- readonly tables: {
769
- readonly "targets": "id" | "tenant" | "name" | "metric" | "owner" | "team" | "periodStart" | "periodEnd" | "currency" | "goal" | "actual" | "archivedAt" | "createdAt" | "updatedAt";
770
- };
771
- readonly functions: "save_target" | "target_progress";
772
- readonly actions: "read" | "manage";
773
- readonly hooks: never;
774
- readonly entities: {
775
- readonly "target": "id" | "tenant_id" | "name" | "metric" | "owner_user_id" | "team_id" | "period_start" | "period_end" | "currency" | "goal" | "actual" | "archived_at" | "created_at" | "updated_at";
776
- };
777
- readonly primary: "target";
778
- };
779
- readonly "grants": {
780
- readonly tables: {};
781
- readonly functions: never;
782
- readonly actions: never;
783
- readonly hooks: never;
784
- readonly entities: {};
785
- readonly primary: never;
786
- };
787
- readonly "guests": {
788
- readonly tables: {
789
- readonly "guests": "id" | "tenant" | "email" | "name" | "user" | "partyType" | "partyId" | "status" | "tokenHash" | "invitedBy" | "expiresAt" | "acceptedAt" | "revokedAt" | "createdAt" | "updatedAt";
790
- readonly "grants": "id" | "tenant" | "guest" | "subjectType" | "subjectId" | "actions" | "grantedBy" | "expiresAt" | "createdAt" | "updatedAt";
791
- };
792
- readonly functions: "accept_guest_invite" | "grant_guest_access" | "guest_can" | "invite_guest" | "list_guest_grants" | "list_guests" | "my_guest_access" | "revoke_guest" | "revoke_guest_access";
793
- readonly actions: "read" | "manage";
794
- readonly hooks: never;
795
- readonly entities: {
796
- readonly "guest": "id" | "tenant_id" | "email" | "name" | "user_id" | "party_type" | "party_id" | "status" | "token_hash" | "invited_by" | "expires_at" | "accepted_at" | "revoked_at" | "created_at" | "updated_at";
797
- readonly "guest_grant": "id" | "tenant_id" | "guest_id" | "subject_type" | "subject_id" | "actions" | "granted_by" | "expires_at" | "created_at" | "updated_at";
798
- };
799
- readonly primary: "guest";
800
- };
801
- readonly "hiring": {
802
- readonly tables: {
803
- readonly "jobs": "id" | "tenant" | "title" | "team" | "location" | "employmentType" | "description" | "hiringManager" | "status" | "openedAt" | "closedAt" | "createdAt" | "updatedAt";
804
- readonly "applications": "id" | "tenant" | "job" | "candidateType" | "candidateId" | "source" | "owner" | "pipeline" | "stage" | "stageEnteredAt" | "state" | "rejectionReason" | "hiredAt" | "rank" | "createdAt" | "updatedAt";
805
- readonly "scorecards": "id" | "tenant" | "application" | "stage" | "reviewer" | "rating" | "recommendation" | "notes" | "submittedAt";
806
- readonly "interviews": "id" | "tenant" | "application" | "kind" | "startsAt" | "endsAt" | "location" | "interviewers" | "createdBy" | "createdAt";
807
- readonly "interviewers": "tenant" | "interview" | "user";
808
- readonly "scorecardScores": "tenant" | "scorecard" | "criterion" | "score" | "notes";
809
- };
810
- readonly functions: "application_detail" | "apply_to_job" | "close_application" | "save_job" | "schedule_interview" | "submit_scorecard";
811
- readonly actions: "read" | "write" | "manage" | "create" | "jobsCreate" | "jobsUpdate" | "score";
812
- readonly hooks: "before_application_hire" | "after_application_hire";
813
- readonly entities: {
814
- readonly "job": "id" | "tenant_id" | "title" | "team_id" | "location" | "employment_type" | "description" | "hiring_manager_user_id" | "status" | "opened_at" | "closed_at" | "created_at" | "updated_at";
815
- readonly "application": "id" | "tenant_id" | "job_id" | "candidate_type" | "candidate_id" | "source" | "owner_user_id" | "pipeline_id" | "stage_id" | "stage_entered_at" | "state" | "rejection_reason" | "hired_at" | "rank" | "created_at" | "updated_at";
816
- readonly "interview": "id" | "tenant_id" | "application_id" | "kind" | "starts_at" | "ends_at" | "location" | "interviewer_user_ids" | "created_by" | "created_at";
817
- };
818
- readonly primary: "job";
819
- };
820
- readonly "idempotency": {
821
- readonly tables: {
822
- readonly "keys": "scope" | "key" | "requestHash" | "status" | "statusCode" | "response" | "lockedUntil" | "createdAt" | "expiresAt" | "holder";
823
- readonly "leases": "scope" | "key" | "holder" | "expiresAt";
824
- };
825
- readonly functions: never;
826
- readonly actions: never;
827
- readonly hooks: never;
828
- readonly entities: {};
829
- readonly primary: never;
830
- };
831
- readonly "identities": {
832
- readonly tables: {
833
- readonly "links": "id" | "kind" | "provider" | "value" | "workspace" | "user" | "contact" | "source" | "createdAt";
834
- readonly "codes": "id" | "user" | "kind" | "provider" | "codeHash" | "expiresAt" | "usedAt" | "createdAt";
835
- };
836
- readonly functions: "backfill_verified_emails" | "begin_identity_link" | "link_verified_email" | "my_identities" | "on_auth_user_email" | "principal_by_identity" | "redeem_identity_link" | "unlink_identity";
837
- readonly actions: never;
838
- readonly hooks: never;
839
- readonly entities: {};
840
- readonly primary: never;
841
- };
842
- readonly "impersonation": {
843
- readonly tables: {
844
- readonly "sessions": "id" | "admin" | "target" | "reason" | "tenant" | "readOnly" | "startedAt" | "expiresAt" | "endedAt" | "endedBy" | "metadata";
845
- readonly "requests": "id" | "admin" | "target" | "reason" | "tenant" | "readOnly" | "metadata" | "requestedAt" | "expiresAt" | "approvedBy" | "approvedAt" | "session";
846
- };
847
- readonly functions: "active_support_session" | "apply_support_approval" | "approve_support_request" | "approved_support_request" | "end_support_session" | "expire_support_sessions" | "list_support_sessions" | "request_support_session" | "start_support_session" | "support_request" | "support_target_claims";
848
- readonly actions: "start" | "view" | "revoke";
849
- readonly hooks: "before_support_start" | "after_support_start" | "after_support_end";
850
- readonly entities: {};
851
- readonly primary: never;
852
- };
853
- readonly "imports": {
854
- readonly tables: {
855
- readonly "runs": "id" | "tenant" | "kind" | "status" | "mapping" | "counts" | "errors" | "createdBy" | "createdAt";
856
- };
857
- readonly functions: "finish_import" | "mark_import_running" | "start_import";
858
- readonly actions: "manage";
859
- readonly hooks: never;
860
- readonly entities: {};
861
- readonly primary: never;
862
- };
863
- readonly "inbox": {
864
- readonly tables: {
865
- readonly "inboxes": "id" | "tenant" | "name" | "channel" | "address" | "installation" | "botMode" | "settings" | "createdAt" | "updatedAt" | "archivedAt";
866
- readonly "members": "inbox" | "user" | "role" | "createdAt";
867
- readonly "teams": "id" | "tenant" | "name" | "createdAt";
868
- readonly "teamMembers": "team" | "user" | "createdAt";
869
- readonly "contacts": "id" | "tenant" | "user" | "name" | "email" | "phone" | "avatarUrl" | "metadata" | "createdAt" | "updatedAt";
870
- readonly "identities": "id" | "tenant" | "contact" | "channel" | "externalId" | "createdAt";
871
- readonly "conversations": "id" | "tenant" | "inbox" | "contact" | "subject" | "status" | "priority" | "assignee" | "team" | "botMode" | "thread" | "snoozedUntil" | "lastMessageAt" | "preview" | "firstResponseAt" | "resolvedAt" | "metadata" | "createdAt" | "updatedAt";
872
- readonly "events": "id" | "tenant" | "conversation" | "type" | "actor" | "data" | "createdAt";
873
- readonly "details": "message" | "tenant" | "conversation" | "direction" | "authorType" | "format" | "externalId" | "replyTo" | "metadata";
874
- readonly "deliveries": "id" | "tenant" | "message" | "channel" | "status" | "externalId" | "error" | "attempts" | "createdAt" | "updatedAt";
875
- readonly "inbound": "id" | "tenant" | "adapter" | "externalId" | "inbox" | "headers" | "body" | "status" | "error" | "attempts" | "receivedAt" | "processedAt";
876
- readonly "templates": "id" | "tenant" | "inbox" | "name" | "channel" | "language" | "body" | "variables" | "externalId" | "createdAt" | "updatedAt";
877
- readonly "scheduled": "id" | "tenant" | "conversation" | "author" | "input" | "scheduledFor" | "createdAt" | "updatedAt";
878
- };
879
- readonly functions: "assign_conversation" | "cancel_inbox_message" | "create_inbox" | "create_inbox_attachment" | "create_inbox_team" | "delete_message_template" | "edit_inbox_message" | "get_conversation" | "get_inbox_message" | "inbox_add_message" | "inbox_can_conversation" | "inbox_contact_ids" | "inbox_contact_read_at" | "inbox_conversation_allowed" | "inbox_conversation_broadcast" | "inbox_conversation_json" | "inbox_counts" | "inbox_delivery_broadcast" | "inbox_file_allowed" | "inbox_file_failed" | "inbox_message_broadcast" | "inbox_messages_json" | "inbox_note_readable" | "inbox_resolve_contact" | "list_conversation_events" | "list_inbox_conversations" | "list_inbox_messages" | "list_scheduled_inbox_messages" | "mark_conversation_read" | "pending_inbound_events" | "pending_inbox_files" | "publish_due_inbox_messages" | "purge_contact" | "purge_inbound_events" | "react_to_inbox_message" | "record_delivery" | "record_inbound" | "reschedule_inbox_message" | "schedule_inbox_message" | "send_inbox_message" | "set_bot_mode" | "set_conversation_status" | "set_delivery_status" | "set_inbound_event_status" | "set_inbox_member" | "set_inbox_team_member" | "start_conversation" | "store_inbound_event" | "update_inbox" | "upsert_contact" | "upsert_message_template" | "wake_snoozed_conversations";
880
- readonly actions: "read" | "reply" | "assign" | "manage";
881
- readonly hooks: never;
882
- readonly entities: {
883
- readonly "inbox": "id" | "tenant_id" | "name" | "channel" | "channel_address" | "installation_id" | "bot_mode" | "settings" | "created_at" | "updated_at" | "archived_at";
884
- };
885
- readonly primary: "inbox";
886
- };
887
- readonly "incidents": {
888
- readonly tables: {
889
- readonly "components": "id" | "tenant" | "name" | "description" | "group" | "public" | "status" | "position" | "createdAt" | "updatedAt";
890
- readonly "history": "id" | "tenant" | "component" | "status" | "startedAt" | "endedAt";
891
- readonly "incidents": "id" | "tenant" | "title" | "description" | "severity" | "status" | "public" | "commander" | "startedAt" | "resolvedAt" | "createdBy" | "createdAt" | "updatedAt";
892
- readonly "updates": "id" | "tenant" | "incident" | "status" | "body" | "public" | "author" | "createdAt";
893
- readonly "impacts": "tenant" | "incident" | "component" | "impact";
894
- readonly "postmortems": "id" | "tenant" | "incident" | "summary" | "impact" | "rootCause" | "resolution" | "actionItems" | "status" | "publishedAt" | "author" | "createdAt" | "updatedAt";
895
- readonly "pages": "id" | "tenant" | "slug" | "title" | "description" | "published" | "createdAt" | "updatedAt";
896
- };
897
- readonly functions: "delete_status_component" | "get_incident" | "get_status_page" | "incident_apply_impacts" | "incident_refresh_components" | "list_incidents" | "list_status_components" | "open_incident" | "post_incident_update" | "public_status_page" | "publish_postmortem" | "save_postmortem" | "save_status_component" | "save_status_page" | "set_incident_impacts" | "update_incident";
898
- readonly actions: "read" | "write" | "manage";
899
- readonly hooks: never;
900
- readonly entities: {
901
- readonly "incident": "id" | "tenant_id" | "title" | "description" | "severity" | "status" | "public" | "commander_id" | "started_at" | "resolved_at" | "created_by" | "created_at" | "updated_at";
902
- readonly "status_component": "id" | "tenant_id" | "name" | "description" | "group_name" | "public" | "status" | "position" | "created_at" | "updated_at";
903
- readonly "postmortem": "id" | "tenant_id" | "incident_id" | "summary" | "impact" | "root_cause" | "resolution" | "action_items" | "status" | "published_at" | "author_id" | "created_at" | "updated_at";
904
- readonly "status_page": "id" | "tenant_id" | "slug" | "title" | "description" | "published" | "created_at" | "updated_at";
905
- };
906
- readonly primary: "incident";
907
- };
908
- readonly "inventory": {
909
- readonly tables: {
910
- readonly "locations": "id" | "tenant" | "code" | "name" | "kind" | "active" | "createdAt" | "updatedAt";
911
- readonly "levels": "tenant" | "variant" | "location" | "onHand" | "reserved" | "incoming" | "available" | "reorderPoint" | "updatedAt";
912
- readonly "reservations": "id" | "tenant" | "variant" | "location" | "quantity" | "status" | "referenceType" | "referenceId" | "expiresAt" | "createdAt" | "updatedAt";
913
- readonly "transfers": "id" | "tenant" | "from" | "to" | "status" | "note" | "createdAt" | "shippedAt" | "receivedAt";
914
- readonly "transferLines": "tenant" | "transfer" | "variant" | "quantity";
915
- readonly "purchaseOrders": "id" | "tenant" | "location" | "supplierType" | "supplierId" | "status" | "currency" | "expectedAt" | "note" | "createdAt" | "updatedAt" | "placedAt";
916
- readonly "purchaseOrderLines": "id" | "tenant" | "order" | "variant" | "quantity" | "received" | "unitCost";
917
- };
918
- readonly functions: "adjust_stock" | "cancel_purchase_order" | "cancel_transfer" | "commit_reservation" | "count_stock" | "create_transfer" | "delete_location" | "expire_reservations" | "move_stock" | "place_purchase_order" | "receive_purchase_order" | "receive_transfer" | "release_reservation" | "reserve_stock" | "save_location" | "save_purchase_order" | "set_location_active" | "set_reorder_point" | "ship_transfer";
919
- readonly actions: "manage" | "read" | "reserve" | "purchase";
920
- readonly hooks: "before_stock_adjust" | "after_stock_adjust" | "before_stock_reserve" | "after_stock_reserve";
921
- readonly entities: {
922
- readonly "location": "id" | "tenant_id" | "code" | "name" | "kind" | "active" | "created_at" | "updated_at";
923
- readonly "purchase_order": "id" | "tenant_id" | "location_id" | "supplier_type" | "supplier_id" | "status" | "currency" | "expected_at" | "note" | "created_at" | "updated_at" | "placed_at";
924
- };
925
- readonly primary: "location";
926
- };
927
- readonly "invitations": {
928
- readonly tables: {
929
- readonly "invitations": "id" | "email" | "role" | "tokenHash" | "invitedBy" | "createdAt" | "updatedAt" | "expiresAt" | "acceptedAt" | "acceptedBy" | "declinedAt" | "revokedAt" | "tenant" | "prefill";
930
- readonly "platformInvitations": "id" | "email" | "role" | "tokenHash" | "invitedBy" | "createdAt" | "updatedAt" | "expiresAt" | "acceptedAt" | "acceptedBy" | "declinedAt" | "revokedAt";
931
- };
932
- readonly functions: "accept_invitation" | "accept_invitation_by_id" | "create_invitation" | "decline_invitation" | "decline_invitation_by_id" | "invitation_extra" | "invitation_preview" | "invitation_tenant_ids" | "invite_member" | "my_invitations" | "resend_invitation" | "revoke_invitation" | "update_invitation";
933
- readonly actions: "invite" | "revoke" | "view" | "invitePlatform";
934
- readonly hooks: "before_invitation_create" | "after_invitation_accept" | "invitation_preview_extra";
935
- readonly entities: {};
936
- readonly primary: never;
937
- };
938
- readonly "invoices": {
939
- readonly tables: {
940
- readonly "invoices": "id" | "tenant" | "kind" | "number" | "identifier" | "original" | "title" | "companyType" | "companyId" | "contactType" | "contactId" | "currency" | "status" | "termsDays" | "issuedOn" | "dueOn" | "paidTotal" | "creditedTotal" | "paidAt" | "voidedAt" | "voidReason" | "note" | "originType" | "originId" | "depositBps" | "createdBy" | "createdAt" | "updatedAt" | "listTotal" | "discountTotal" | "subtotal" | "taxTotal" | "total";
941
- readonly "lines": "id" | "tenant" | "parent" | "productType" | "productId" | "description" | "quantity" | "unitAmount" | "discountBps" | "taxRateBps" | "taxCode" | "position" | "createdAt";
942
- };
943
- readonly functions: "create_invoice" | "credit_invoice" | "invoice_aging" | "issue_invoice" | "record_invoice_payment" | "set_invoice_lines" | "set_invoice_lines_recount" | "void_invoice" | "write_off_invoice";
944
- readonly actions: "read" | "write" | "manage";
945
- readonly hooks: "before_invoice_issue" | "after_invoice_issue" | "before_invoice_payment" | "after_invoice_payment";
946
- readonly entities: {
947
- readonly "invoice": "id" | "tenant_id" | "kind" | "number" | "identifier" | "original_id" | "title" | "company_type" | "company_id" | "contact_type" | "contact_id" | "currency" | "status" | "terms_days" | "issued_on" | "due_on" | "paid_total" | "credited_total" | "paid_at" | "voided_at" | "void_reason" | "note" | "origin_type" | "origin_id" | "deposit_bps" | "created_by" | "created_at" | "updated_at" | "list_total" | "discount_total" | "subtotal" | "tax_total" | "total";
948
- };
949
- readonly primary: "invoice";
950
- };
951
- readonly "jsonb-schemas": {
952
- readonly tables: {};
953
- readonly functions: never;
954
- readonly actions: never;
955
- readonly hooks: never;
956
- readonly entities: {};
957
- readonly primary: never;
958
- };
959
- readonly "knowledge": {
960
- readonly tables: {
961
- readonly "documents": "id" | "tenant" | "owner" | "scope" | "scopeId" | "file" | "title" | "source" | "metadata" | "status" | "error" | "chunkCount" | "model" | "createdAt" | "updatedAt";
962
- readonly "chunks": "document" | "index" | "content" | "tokens" | "embedding" | "hash" | "metadata" | "tsv";
963
- };
964
- readonly functions: "create_knowledge_document" | "delete_knowledge_document" | "fail_knowledge_document" | "get_knowledge_document" | "knowledge_search" | "list_knowledge_documents" | "pending_knowledge_chunks" | "pending_knowledge_documents" | "reembed_knowledge" | "set_knowledge_embeddings" | "write_knowledge_chunks";
965
- readonly actions: "read" | "write" | "manage";
966
- readonly hooks: never;
967
- readonly entities: {
968
- readonly "document": "id" | "organization_id" | "owner_id" | "scope" | "scope_id" | "file_id" | "title" | "source" | "metadata" | "status" | "error" | "chunk_count" | "embedding_model" | "created_at" | "updated_at";
969
- };
970
- readonly primary: "document";
971
- };
972
- readonly "lead-scoring": {
973
- readonly tables: {
974
- readonly "checks": "tenant" | "subjectType" | "subjectId" | "stale" | "checkedAt";
975
- };
976
- readonly functions: "lead_fields" | "lead_person_changed" | "score_lead" | "score_leads_due";
977
- readonly actions: never;
978
- readonly hooks: never;
979
- readonly entities: {};
980
- readonly primary: never;
981
- };
982
- readonly "leases": {
983
- readonly tables: {
984
- readonly "leases": "id" | "tenant" | "unit" | "partyType" | "partyId" | "title" | "status" | "startsOn" | "endsOn" | "rent" | "currency" | "frequency" | "deposit" | "depositHold" | "renewedAt" | "terminatedOn" | "terminationReason" | "metadata" | "createdBy" | "createdAt" | "updatedAt";
985
- readonly "charges": "id" | "tenant" | "lease" | "periodStart" | "periodEnd" | "amount" | "currency" | "transaction" | "createdAt";
986
- };
987
- readonly functions: "activate_lease" | "create_lease" | "get_lease" | "list_lease_charges" | "list_leases" | "post_due_rent" | "record_rent_payment" | "renew_lease" | "terminate_lease";
988
- readonly actions: "read" | "manage" | "maintain";
989
- readonly hooks: never;
990
- readonly entities: {
991
- readonly "lease": "id" | "tenant_id" | "unit_id" | "party_type" | "party_id" | "title" | "status" | "starts_on" | "ends_on" | "rent" | "currency" | "frequency" | "deposit" | "deposit_hold_id" | "renewed_at" | "terminated_on" | "termination_reason" | "metadata" | "created_by" | "created_at" | "updated_at";
992
- };
993
- readonly primary: "lease";
994
- };
995
- readonly "leave": {
996
- readonly tables: {
997
- readonly "types": "id" | "tenant" | "key" | "name" | "unit" | "paid" | "tracked" | "allowance" | "carryoverMax" | "color" | "archivedAt" | "createdAt" | "updatedAt";
998
- readonly "requests": "id" | "tenant" | "user" | "type" | "startsOn" | "endsOn" | "partial" | "amount" | "note" | "approval" | "approvedAt" | "cancelledAt" | "cancelledBy" | "createdAt" | "updatedAt";
999
- };
1000
- readonly functions: "accrue_leave" | "adjust_leave_balance" | "approve_leave_request" | "archive_leave_type" | "cancel_leave_request" | "close_leave_year" | "leave_available" | "leave_balances" | "leave_ledger_entries" | "leave_post" | "leave_posted" | "leave_working_days" | "list_leave_requests" | "list_leave_types" | "request_leave" | "save_leave_type";
1001
- readonly actions: "request" | "read" | "approve" | "manage";
1002
- readonly hooks: "before_leave_request" | "after_leave_request";
1003
- readonly entities: {
1004
- readonly "request": "id" | "tenant_id" | "user_id" | "type_id" | "starts_on" | "ends_on" | "partial" | "amount" | "note" | "approval_id" | "approved_at" | "cancelled_at" | "cancelled_by" | "created_at" | "updated_at";
1005
- readonly "type": "id" | "tenant_id" | "key" | "name" | "unit" | "paid" | "tracked" | "allowance" | "carryover_max" | "color" | "archived_at" | "created_at" | "updated_at";
1006
- };
1007
- readonly primary: "request";
1008
- };
1009
- readonly "ledger": {
1010
- readonly tables: {
1011
- readonly "accounts": "id" | "tenant" | "kind" | "code" | "name" | "unit" | "scale" | "holderType" | "holderId" | "owner" | "allowNegative" | "readPermission" | "managedBy" | "metadata" | "closedAt" | "createdAt" | "updatedAt";
1012
- readonly "transactions": "id" | "tenant" | "kind" | "referenceType" | "referenceId" | "memo" | "key" | "reverses" | "metadata" | "effectiveAt" | "actor" | "createdAt";
1013
- readonly "entries": "id" | "tenant" | "transaction" | "account" | "amount" | "unit" | "createdAt";
1014
- readonly "balances": "account" | "tenant" | "balance" | "held" | "available" | "updatedAt";
1015
- readonly "holds": "id" | "tenant" | "account" | "amount" | "status" | "referenceType" | "referenceId" | "expiresAt" | "transaction" | "createdBy" | "createdAt" | "updatedAt";
1016
- };
1017
- readonly functions: "capture_ledger_hold" | "close_ledger_account" | "expire_ledger_holds" | "get_ledger_transaction" | "ledger_account_entries" | "ledger_account_for" | "ledger_append_only" | "ledger_apply_entry" | "ledger_capture" | "ledger_check_balanced" | "ledger_hold" | "ledger_post" | "ledger_read_grants" | "ledger_release" | "ledger_unhold" | "list_ledger_accounts" | "open_ledger_account" | "place_ledger_hold" | "post_ledger_transaction" | "release_ledger_hold" | "reverse_ledger_transaction";
1018
- readonly actions: "read" | "manage" | "post";
1019
- readonly hooks: "before_ledger_transaction_post" | "after_ledger_transaction_post";
1020
- readonly entities: {
1021
- readonly "ledger_account": "id" | "tenant_id" | "kind" | "code" | "name" | "unit" | "scale" | "holder_type" | "holder_id" | "owner_id" | "allow_negative" | "read_permission" | "managed_by" | "metadata" | "closed_at" | "created_at" | "updated_at";
1022
- readonly "ledger_transaction": "id" | "tenant_id" | "kind" | "reference_type" | "reference_id" | "memo" | "idempotency_key" | "reverses" | "metadata" | "effective_at" | "actor_id" | "created_at";
1023
- readonly "ledger_hold": "id" | "tenant_id" | "account_id" | "amount" | "status" | "reference_type" | "reference_id" | "expires_at" | "transaction_id" | "created_by" | "created_at" | "updated_at";
1024
- };
1025
- readonly primary: "ledger_account";
1026
- };
1027
- readonly "mail-sync": {
1028
- readonly tables: {
1029
- readonly "accounts": "id" | "tenant" | "user" | "provider" | "address" | "credentialRef" | "share" | "status" | "cursor" | "lastSyncedAt" | "lastError" | "createdAt" | "updatedAt";
1030
- readonly "threads": "id" | "tenant" | "account" | "externalId" | "subject" | "snippet" | "lastMessageAt" | "messageCount" | "engagement" | "createdAt" | "updatedAt";
1031
- readonly "messages": "id" | "tenant" | "account" | "thread" | "externalId" | "rfcId" | "direction" | "fromAddress" | "fromName" | "to" | "cc" | "subject" | "snippet" | "bodyText" | "bodyHtml" | "sentAt" | "templateVersion" | "trackingHash" | "openedAt" | "openCount" | "clickedAt" | "clickCount" | "createdAt";
1032
- readonly "trackedLinks": "tenant" | "message" | "position" | "url" | "clickCount" | "createdAt";
1033
- readonly "tracking": "id" | "tenant" | "message" | "kind" | "position" | "userAgent" | "occurredAt";
1034
- readonly "links": "tenant" | "thread" | "subjectType" | "subjectId" | "source" | "createdAt";
1035
- };
1036
- readonly functions: "connect_mail_account" | "disconnect_mail_account" | "due_mail_accounts" | "get_mail_account" | "get_mail_thread" | "ingest_mail" | "link_mail_thread" | "list_mail_threads" | "mail_accounts_of" | "mail_template_stats" | "mail_thread_visible" | "mail_threads_of" | "record_sent_mail" | "set_mail_account_status" | "store_mail_message" | "track_mail" | "unlink_mail_thread" | "update_mail_account";
1037
- readonly actions: "read" | "connect" | "send" | "manage";
1038
- readonly hooks: never;
1039
- readonly entities: {
1040
- readonly "mail_thread": "id" | "tenant_id" | "account_id" | "external_id" | "subject" | "snippet" | "last_message_at" | "message_count" | "engagement_id" | "created_at" | "updated_at";
1041
- readonly "mail_account": "id" | "tenant_id" | "user_id" | "provider" | "address" | "credential_ref" | "share" | "status" | "sync_cursor" | "last_synced_at" | "last_error" | "created_at" | "updated_at";
1042
- readonly "mail_message": "id" | "tenant_id" | "account_id" | "thread_id" | "external_id" | "rfc_message_id" | "direction" | "from_address" | "from_name" | "to_addresses" | "cc_addresses" | "subject" | "snippet" | "body_text" | "body_html" | "sent_at" | "template_version_id" | "tracking_hash" | "opened_at" | "open_count" | "clicked_at" | "click_count" | "created_at";
1043
- };
1044
- readonly primary: "mail_thread";
1045
- };
1046
- readonly "memberships": {
1047
- readonly tables: {
1048
- readonly "memberships": "tenant" | "user" | "role" | "createdAt" | "updatedAt" | "lastUsedAt" | "disabledAt";
1049
- };
1050
- readonly functions: "current_tenant_id" | "has_organization_role" | "member_organization_ids" | "membership_claims" | "membership_role_from_roles" | "membership_roles_from_role" | "organization_member_role" | "organization_member_roles";
1051
- readonly actions: never;
1052
- readonly hooks: never;
1053
- readonly entities: {
1054
- readonly "organization": never;
1055
- };
1056
- readonly primary: never;
1057
- };
1058
- readonly "memory": {
1059
- readonly tables: {
1060
- readonly "memories": "id" | "tenant" | "owner" | "scope" | "agent" | "chat" | "project" | "kind" | "path" | "content" | "version" | "embedding" | "model" | "sourceMessage" | "supersededBy" | "tsv" | "createdAt" | "updatedAt";
1061
- readonly "messageEmbeddings": "chat" | "message" | "user" | "tenant" | "embedding" | "model" | "createdAt";
1062
- readonly "documents": "scopeKey" | "path" | "content" | "version" | "expiresAt" | "createdAt" | "updatedAt";
1063
- };
1064
- readonly functions: "memory_create" | "memory_delete" | "memory_document_read" | "memory_document_write" | "memory_forget" | "memory_insert" | "memory_list" | "memory_rename" | "memory_save" | "memory_search" | "memory_str_replace" | "memory_view" | "pending_memory_embeddings" | "purge_memory_documents" | "recall_ai_messages" | "set_ai_message_embedding" | "set_memory_embedding" | "set_memory_embeddings";
1065
- readonly actions: "read" | "manage";
1066
- readonly hooks: never;
1067
- readonly entities: {
1068
- readonly "memory": "id" | "organization_id" | "owner_id" | "scope" | "agent_id" | "chat_id" | "project_id" | "kind" | "path" | "content" | "version" | "embedding" | "embedding_model" | "source_message_id" | "superseded_by" | "tsv" | "created_at" | "updated_at";
1069
- };
1070
- readonly primary: "memory";
1071
- };
1072
- readonly "messaging": {
1073
- readonly tables: {
1074
- readonly "conversations": "id" | "tenant" | "kind" | "access" | "subjectType" | "subjectId" | "title" | "memberKey" | "createdBy" | "lastMessageAt" | "archivedAt" | "createdAt" | "updatedAt";
1075
- readonly "members": "conversation" | "tenant" | "user" | "role" | "notify" | "lastReadAt" | "joinedAt";
1076
- readonly "messages": "id" | "tenant" | "conversation" | "parent" | "thread" | "author" | "kind" | "body" | "document" | "anchor" | "mentions" | "mentionScope" | "broadcast" | "replyCount" | "lastReplyAt" | "replyUsers" | "pinnedAt" | "pinnedBy" | "resolvedAt" | "resolvedBy" | "scheduledFor" | "sentAt" | "editedAt" | "deletedAt" | "createdAt";
1077
- readonly "edits": "id" | "tenant" | "message" | "body" | "document" | "editor" | "editedAt";
1078
- readonly "reads": "tenant" | "user" | "conversation" | "thread" | "lastReadAt";
1079
- readonly "recordMentions": "tenant" | "message" | "conversation" | "subjectType" | "subjectId" | "createdAt";
1080
- readonly "summaries": "id" | "tenant" | "conversation" | "thread" | "summary" | "model" | "messageCount" | "throughAt" | "createdAt" | "updatedAt";
1081
- };
1082
- readonly functions: "add_conversation_members" | "archive_conversation" | "can_conversation" | "conversation_read_at" | "conversation_topic_allowed" | "delete_message" | "edit_message" | "get_message" | "index_record_mentions" | "is_conversation_member" | "list_conversations" | "list_file_anchors" | "list_message_edits" | "list_messages" | "list_pinned_messages" | "list_record_mentions" | "list_replies" | "mark_read" | "messaging_file_anchor_valid" | "messaging_message_broadcast" | "messaging_message_sent" | "messaging_message_written" | "messaging_messages_json" | "open_conversation" | "parse_mentions" | "pin_message" | "publish_due_messages" | "remove_conversation_member" | "resolve_message" | "save_thread_summary" | "send_message" | "set_conversation_notify" | "set_typing" | "thread_summary" | "unread_counts";
1083
- readonly actions: "read" | "send" | "moderate";
1084
- readonly hooks: "before_message_send" | "after_message_send" | "before_message_edit" | "after_message_edit";
1085
- readonly entities: {
1086
- readonly "message": "id" | "tenant_id" | "conversation_id" | "parent_id" | "thread_id" | "author_id" | "kind" | "body" | "document" | "anchor" | "mentions" | "mention_scope" | "broadcast" | "reply_count" | "last_reply_at" | "reply_user_ids" | "pinned_at" | "pinned_by" | "resolved_at" | "resolved_by" | "scheduled_for" | "sent_at" | "edited_at" | "deleted_at" | "created_at";
1087
- readonly "conversation": "id" | "tenant_id" | "kind" | "access" | "subject_type" | "subject_id" | "title" | "member_key" | "created_by" | "last_message_at" | "archived_at" | "created_at" | "updated_at";
1088
- };
1089
- readonly primary: "message";
1090
- };
1091
- readonly "metrics": {
1092
- readonly tables: {
1093
- readonly "points": "tenant" | "metric" | "grain" | "bucketStart" | "dims" | "value" | "count" | "updatedAt";
1094
- };
1095
- readonly functions: "metric_definitions" | "metric_series" | "metric_value" | "metrics_rollup";
1096
- readonly actions: "read" | "manage";
1097
- readonly hooks: "before_metric_rollup" | "after_metric_rollup";
1098
- readonly entities: {};
1099
- readonly primary: never;
1100
- };
1101
- readonly "mfa": {
1102
- readonly tables: {};
1103
- readonly functions: never;
1104
- readonly actions: never;
1105
- readonly hooks: never;
1106
- readonly entities: {};
1107
- readonly primary: never;
1108
- };
1109
- readonly "moderation": {
1110
- readonly tables: {
1111
- readonly "items": "id" | "tenant" | "subjectType" | "subjectId" | "author" | "status" | "openReports" | "reason" | "decidedBy" | "decidedAt" | "createdAt" | "updatedAt";
1112
- readonly "reports": "id" | "tenant" | "item" | "reporter" | "reason" | "note" | "status" | "resolvedBy" | "resolvedAt" | "createdAt";
1113
- readonly "actions": "id" | "tenant" | "item" | "action" | "fromStatus" | "toStatus" | "reason" | "actor" | "createdAt";
1114
- readonly "bans": "id" | "tenant" | "user" | "reason" | "bannedBy" | "expiresAt" | "liftedBy" | "liftedAt" | "createdAt";
1115
- };
1116
- readonly functions: "ban_user" | "list_bans" | "moderate" | "moderation_apply" | "moderation_banned" | "moderation_item" | "moderation_queue" | "moderation_statuses" | "moderation_track" | "report_content" | "unban_user";
1117
- readonly actions: "read" | "report" | "manage" | "ban";
1118
- readonly hooks: never;
1119
- readonly entities: {
1120
- readonly "moderation_item": "id" | "tenant_id" | "subject_type" | "subject_id" | "author_id" | "status" | "open_reports" | "reason" | "decided_by" | "decided_at" | "created_at" | "updated_at";
1121
- };
1122
- readonly primary: "moderation_item";
1123
- };
1124
- readonly "notifications": {
1125
- readonly tables: {
1126
- readonly "events": "id" | "tenant" | "type" | "actor" | "subjectType" | "subjectId" | "subjectLabel" | "summary" | "actionPath" | "actions" | "priority" | "data" | "key" | "createdBy" | "createdAt";
1127
- readonly "recipients": "id" | "event" | "tenant" | "user" | "readAt" | "dismissedAt" | "resolvedAt" | "resolution" | "deliveredAt" | "createdAt";
1128
- readonly "deliveries": "id" | "recipient" | "tenant" | "channel" | "status" | "provider" | "providerMessageId" | "error" | "attempts" | "attemptedAt" | "nextAttemptAt" | "deliveredAt" | "providerStatus" | "providerStatusAt" | "templateKey" | "createdAt";
1129
- readonly "deliveryEvents": "id" | "delivery" | "tenant" | "kind" | "provider" | "providerEventId" | "occurredAt" | "detail" | "createdAt";
1130
- readonly "subscriptions": "id" | "tenant" | "user" | "subjectType" | "subjectId" | "level" | "createdAt" | "updatedAt";
1131
- readonly "preferences": "id" | "user" | "tenant" | "type" | "channel" | "enabled" | "createdAt" | "updatedAt";
1132
- readonly "suppressions": "id" | "channel" | "address" | "user" | "reason" | "provider" | "providerEventId" | "detail" | "createdAt";
1133
- };
1134
- readonly functions: "broadcast_notification" | "claim_notification_deliveries" | "complete_notification_delivery" | "dismiss_notifications" | "get_notification" | "list_notification_preferences" | "list_notification_subscriptions" | "list_notification_suppressions" | "list_notifications" | "list_subject_deliveries" | "mark_notifications_read" | "mark_notifications_unread" | "notification_counts" | "notification_enabled" | "notification_page" | "notify" | "purge_notifications" | "record_delivery_event" | "resolve_notifications" | "send_notification" | "send_notifications" | "set_notification_preference" | "set_notification_subscription" | "suppress_notification_address" | "unsuppress_notification_address";
1135
- readonly actions: "send" | "read";
1136
- readonly hooks: "notification_audience" | "before_notification_send" | "after_notify";
1137
- readonly entities: {};
1138
- readonly primary: never;
1139
- };
1140
- readonly "numbering": {
1141
- readonly tables: {
1142
- readonly "sequences": "tenant" | "entity" | "period" | "lastNumber" | "createdAt" | "updatedAt";
1143
- };
1144
- readonly functions: "next_number" | "number_format" | "number_period" | "preview_number" | "sync_number_sequences";
1145
- readonly actions: "assign";
1146
- readonly hooks: "before_number_assign" | "after_number_assign";
1147
- readonly entities: {};
1148
- readonly primary: never;
1149
- };
1150
- readonly "oauth-server": {
1151
- readonly tables: {
1152
- readonly "clients": "id" | "clientId" | "secretHash" | "registrationTokenHash" | "name" | "redirectUris" | "grantTypes" | "authMethod" | "scope" | "metadata" | "createdBy" | "createdAt" | "updatedAt";
1153
- readonly "grants": "id" | "userId" | "clientId" | "scopes" | "resource" | "createdAt" | "updatedAt" | "revokedAt";
1154
- readonly "codes": "codeHash" | "clientId" | "userId" | "grantId" | "redirectUri" | "scope" | "resource" | "codeChallenge" | "nonce" | "expiresAt" | "consumedAt" | "createdAt";
1155
- readonly "devices": "deviceCodeHash" | "userCode" | "clientId" | "scope" | "resource" | "status" | "userId" | "grantId" | "pollInterval" | "lastPolledAt" | "expiresAt" | "consumedAt" | "createdAt";
1156
- readonly "revocations": "jti" | "grantId" | "expiresAt" | "createdAt";
1157
- };
1158
- readonly functions: "create_oauth_authorization_code" | "create_oauth_device_code" | "decide_oauth_device_code" | "delete_oauth_client" | "is_oauth_token_revoked" | "list_oauth_grants" | "my_oauth_grants" | "oauth_client" | "oauth_device_request" | "oauth_grant_for" | "poll_oauth_device_code" | "purge_oauth_server" | "redeem_oauth_authorization_code" | "register_oauth_client" | "revoke_my_oauth_grant" | "revoke_oauth_grant" | "revoke_oauth_token" | "rotate_oauth_client_secret" | "update_oauth_client" | "verify_oauth_client" | "verify_oauth_registration_token";
1159
- readonly actions: never;
1160
- readonly hooks: never;
1161
- readonly entities: {};
1162
- readonly primary: never;
1163
- };
1164
- readonly "onboarding": {
1165
- readonly tables: {};
1166
- readonly functions: "complete_onboarding_step" | "onboarding_progress" | "reset_onboarding_step";
1167
- readonly actions: "read" | "complete";
1168
- readonly hooks: never;
1169
- readonly entities: {};
1170
- readonly primary: never;
1171
- };
1172
- readonly "orders": {
1173
- readonly tables: {
1174
- readonly "carts": "id" | "tenant" | "user" | "currency" | "priceList" | "status" | "email" | "shippingAddress" | "billingAddress" | "shippingRate" | "createdAt" | "updatedAt" | "convertedAt";
1175
- readonly "cartLines": "id" | "tenant" | "cart" | "variant" | "quantity" | "unitAmount" | "createdAt" | "updatedAt";
1176
- readonly "shippingRates": "id" | "tenant" | "name" | "countries" | "currency" | "kind" | "amount" | "perKg" | "freeOver" | "active" | "createdAt" | "updatedAt";
1177
- readonly "orders": "id" | "tenant" | "number" | "sequence" | "cart" | "customer" | "email" | "status" | "currency" | "subtotal" | "discountTotal" | "shippingTotal" | "taxTotal" | "total" | "paidTotal" | "refundedTotal" | "taxInclusive" | "shippingAddress" | "billingAddress" | "shipping" | "promotions" | "tax" | "taxTransaction" | "invoiceNumber" | "invoiceSequence" | "invoicedAt" | "placedAt" | "paidAt" | "fulfilledAt" | "completedAt" | "cancelledAt" | "cancelReason" | "updatedAt";
1178
- readonly "orderLines": "id" | "tenant" | "order" | "position" | "variant" | "product" | "sku" | "title" | "quantity" | "unitAmount" | "subtotal" | "discount" | "tax" | "total" | "requiresShipping" | "location" | "reservation" | "fulfilled" | "returned" | "backordered";
1179
- readonly "payments": "id" | "tenant" | "order" | "provider" | "reference" | "status" | "currency" | "amount" | "captured" | "refunded" | "createdAt" | "updatedAt";
1180
- readonly "fulfillments": "id" | "tenant" | "order" | "location" | "status" | "carrier" | "trackingNumber" | "trackingUrl" | "createdAt" | "shippedAt" | "deliveredAt";
1181
- readonly "fulfillmentLines": "tenant" | "fulfillment" | "line" | "quantity";
1182
- readonly "returns": "id" | "tenant" | "order" | "status" | "reason" | "requestedBy" | "createdAt" | "receivedAt";
1183
- readonly "returnLines": "tenant" | "return" | "line" | "quantity";
1184
- readonly "refunds": "id" | "tenant" | "order" | "payment" | "return" | "amount" | "currency" | "status" | "reason" | "providerReference" | "createdAt" | "completedAt";
1185
- readonly "kitchenStations": "id" | "tenant" | "key" | "name" | "position" | "isDefault" | "active" | "createdAt" | "updatedAt";
1186
- readonly "kitchenRoutes": "product" | "tenant" | "station";
1187
- readonly "preparations": "line" | "tenant" | "order" | "station" | "state" | "note" | "queuedAt" | "startedAt" | "readyAt" | "servedAt" | "updatedAt" | "updatedBy";
1188
- };
1189
- readonly functions: "add_to_cart" | "cancel_fulfillment" | "cancel_order" | "cart_totals" | "complete_refund" | "create_cart" | "create_fulfillment" | "create_refund" | "delete_shipping_rate" | "deliver_fulfillment" | "expire_orders" | "get_order" | "merge_carts" | "order_cancel" | "order_json" | "order_transition" | "place_order" | "price_cart" | "receive_return" | "record_payment" | "reject_return" | "request_return" | "save_shipping_rate" | "set_cart_details" | "set_cart_line" | "set_cart_shipping_rate" | "set_order_tax_transaction" | "ship_fulfillment" | "shipping_options";
1190
- readonly actions: "manage" | "read" | "prepare";
1191
- readonly hooks: "before_order_place" | "after_order_place" | "before_fulfillment_create" | "after_fulfillment_create" | "before_refund_create" | "after_refund_create";
1192
- readonly entities: {
1193
- readonly "order": "id" | "tenant_id" | "number" | "sequence" | "cart_id" | "customer_id" | "email" | "status" | "currency" | "subtotal" | "discount_total" | "shipping_total" | "tax_total" | "total" | "paid_total" | "refunded_total" | "tax_inclusive" | "shipping_address" | "billing_address" | "shipping" | "promotions" | "tax" | "tax_transaction" | "invoice_number" | "invoice_sequence" | "invoiced_at" | "placed_at" | "paid_at" | "fulfilled_at" | "completed_at" | "cancelled_at" | "cancel_reason" | "updated_at";
1194
- readonly "cart": "id" | "tenant_id" | "user_id" | "currency" | "price_list_id" | "status" | "email" | "shipping_address" | "billing_address" | "shipping_rate_id" | "created_at" | "updated_at" | "converted_at";
1195
- };
1196
- readonly primary: "order";
1197
- };
1198
- readonly "organizations": {
1199
- readonly tables: {
1200
- readonly "organizations": "id" | "name" | "slug" | "createdBy" | "createdAt" | "updatedAt" | "disabledAt" | "deletedAt";
1201
- };
1202
- readonly functions: "add_member_role" | "create_organization" | "delete_organization" | "ensure_organization_owner" | "guard_membership" | "guard_membership_role" | "leave_organization" | "list_members" | "list_my_organizations" | "mark_used" | "organization_slug_problem" | "remove_member" | "remove_member_role" | "resume_member" | "suspend_member" | "switch_organization" | "transfer_ownership" | "update_member_role" | "update_organization";
1203
- readonly actions: "update" | "delete" | "listMembers" | "removeMember" | "suspendMember" | "updateRole" | "transferOwnership" | "create" | "updatePlatform" | "deletePlatform" | "updateRolePlatform" | "removeMemberPlatform";
1204
- readonly hooks: "before_organization_create" | "after_organization_create" | "before_organization_update" | "after_organization_update" | "after_member_change";
1205
- readonly entities: {};
1206
- readonly primary: never;
1207
- };
1208
- readonly "outbox": {
1209
- readonly tables: {
1210
- readonly "events": "id" | "position" | "type" | "source" | "subject" | "tenant" | "key" | "payload" | "actor" | "createdAt" | "xid";
1211
- readonly "consumers": "name" | "cursorXid" | "cursor" | "types" | "leaseOwner" | "leaseUntil" | "attempts" | "lastError" | "retryAt" | "updatedAt";
1212
- readonly "deadLetters": "consumer" | "position" | "eventId" | "type" | "event" | "attempts" | "error" | "deadAt";
1213
- };
1214
- readonly functions: "emit_event" | "outbox_ack" | "outbox_claim" | "outbox_dead_letters" | "outbox_fail" | "outbox_history" | "outbox_register" | "outbox_row_event" | "outbox_unregister" | "purge_outbox" | "track_events";
1215
- readonly actions: never;
1216
- readonly hooks: never;
1217
- readonly entities: {};
1218
- readonly primary: never;
1219
- };
1220
- readonly "passes": {
1221
- readonly tables: {
1222
- readonly "passes": "id" | "tenant" | "kind" | "holderUser" | "holderName" | "holderEmail" | "subjectType" | "subjectId" | "booking" | "resource" | "usesAllowed" | "uses" | "validFrom" | "validUntil" | "status" | "nonce" | "issuedBy" | "createdAt" | "updatedAt" | "revokedAt";
1223
- readonly "checkIns": "id" | "tenant" | "pass" | "resource" | "booking" | "gate" | "method" | "admitted" | "reason" | "checkedInBy" | "createdAt";
1224
- };
1225
- readonly functions: "check_in_pass" | "get_pass" | "issue_pass" | "list_pass_check_ins" | "list_passes" | "my_passes" | "revoke_pass";
1226
- readonly actions: "read" | "manage" | "checkIn";
1227
- readonly hooks: never;
1228
- readonly entities: {
1229
- readonly "pass": "id" | "tenant_id" | "kind" | "holder_user_id" | "holder_name" | "holder_email" | "subject_type" | "subject_id" | "booking_id" | "resource_id" | "uses_allowed" | "uses" | "valid_from" | "valid_until" | "status" | "nonce" | "issued_by" | "created_at" | "updated_at" | "revoked_at";
1230
- readonly "pass_check_in": "id" | "tenant_id" | "pass_id" | "resource_id" | "booking_id" | "gate" | "method" | "admitted" | "reason" | "checked_in_by" | "created_at";
1231
- };
1232
- readonly primary: "pass";
1233
- };
1234
- readonly "permissions": {
1235
- readonly tables: {
1236
- readonly "roles": "id" | "key" | "scope" | "tenant";
1237
- readonly "permissions": "id" | "key";
1238
- readonly "rolePermissions": "role" | "permission";
1239
- readonly "overrides": "tenant" | "role" | "permission" | "granted";
1240
- readonly "platformAssignments": "user" | "role";
1241
- };
1242
- readonly functions: "can" | "can_assign" | "can_assign_as" | "can_user" | "is_platform" | "member_can" | "permission_claims" | "tenant_ids_with";
1243
- readonly actions: never;
1244
- readonly hooks: never;
1245
- readonly entities: {};
1246
- readonly primary: never;
1247
- };
1248
- readonly "pgtap": {
1249
- readonly tables: {};
1250
- readonly functions: never;
1251
- readonly actions: never;
1252
- readonly hooks: never;
1253
- readonly entities: {};
1254
- readonly primary: never;
1255
- };
1256
- readonly "pipelines": {
1257
- readonly tables: {
1258
- readonly "pipelines": "id" | "tenant" | "subjectType" | "scope" | "key" | "name" | "rank" | "isDefault" | "archivedAt" | "createdAt" | "updatedAt";
1259
- readonly "stages": "id" | "tenant" | "pipeline" | "key" | "systemKey" | "name" | "color" | "rank" | "category" | "outcome" | "probability" | "rottingAfterDays" | "wipLimit" | "archivedAt" | "createdAt" | "updatedAt";
1260
- readonly "transitions": "tenant" | "pipeline" | "from" | "to";
1261
- readonly "history": "id" | "tenant" | "subjectType" | "subjectId" | "pipeline" | "fromStage" | "toStage" | "stageName" | "category" | "outcome" | "amount" | "currency" | "actor" | "enteredAt" | "exitedAt";
1262
- };
1263
- readonly functions: "archive_pipeline" | "archive_pipeline_stage" | "default_pipeline" | "list_pipelines" | "pipeline_board" | "pipeline_health" | "pipeline_stats" | "rank_pipeline_stage" | "save_pipeline" | "save_pipeline_stage" | "set_pipeline_transitions";
1264
- readonly actions: "read" | "manage";
1265
- readonly hooks: "before_pipeline_save" | "after_pipeline_save" | "before_pipeline_stage_save" | "after_pipeline_stage_save" | "before_pipeline_stage_change" | "after_pipeline_stage_change";
1266
- readonly entities: {
1267
- readonly "pipeline": "id" | "tenant_id" | "subject_type" | "scope_id" | "key" | "name" | "rank" | "is_default" | "archived_at" | "created_at" | "updated_at";
1268
- };
1269
- readonly primary: "pipeline";
1270
- };
1271
- readonly "posts": {
1272
- readonly tables: {
1273
- readonly "boards": "id" | "tenant" | "key" | "name" | "description" | "kind" | "archivedAt" | "createdBy" | "createdAt" | "updatedAt";
1274
- readonly "posts": "id" | "tenant" | "board" | "author" | "title" | "body" | "status" | "moderation" | "pinnedAt" | "lockedAt" | "mergedInto" | "replyCount" | "lastActivityAt" | "createdAt" | "updatedAt";
1275
- };
1276
- readonly functions: "create_post" | "delete_post" | "get_post" | "list_post_boards" | "list_posts" | "merge_posts" | "posts_moderated" | "posts_removed" | "posts_replied" | "posts_reply_guard" | "save_post_board" | "set_post_state" | "update_post" | "vote_on_post";
1277
- readonly actions: "read" | "write" | "moderate" | "manage";
1278
- readonly hooks: never;
1279
- readonly entities: {
1280
- readonly "post_board": "id" | "tenant_id" | "key" | "name" | "description" | "kind" | "archived_at" | "created_by" | "created_at" | "updated_at";
1281
- readonly "post": "id" | "tenant_id" | "board_id" | "author_id" | "title" | "body" | "status" | "moderation_status" | "pinned_at" | "locked_at" | "merged_into_id" | "reply_count" | "last_activity_at" | "created_at" | "updated_at";
1282
- };
1283
- readonly primary: "post";
1284
- };
1285
- readonly "profiles": {
1286
- readonly tables: {
1287
- readonly "profiles": "key" | "email" | "username" | "fullName" | "firstName" | "lastName" | "avatar" | "avatarPath" | "locale" | "activeTenant" | "activeTeam" | "onboarding" | "disabledAt" | "createdAt" | "updatedAt";
1288
- };
1289
- readonly functions: "allocate_username" | "backfill_profiles" | "guard_profile" | "mirror_profile_email" | "my_profile" | "on_auth_user_created" | "sync_profile" | "update_my_profile";
1290
- readonly actions: never;
1291
- readonly hooks: "after_profile_sync" | "before_profile_update" | "after_profile_update";
1292
- readonly entities: {};
1293
- readonly primary: never;
1294
- };
1295
- readonly "promotions": {
1296
- readonly tables: {
1297
- readonly "promotions": "id" | "tenant" | "name" | "description" | "kind" | "percent" | "currency" | "amount" | "minSubtotal" | "scope" | "targets" | "startsAt" | "endsAt" | "usageLimit" | "perCustomerLimit" | "redemptions" | "stackable" | "priority" | "automatic" | "active" | "createdAt" | "updatedAt";
1298
- readonly "codes": "id" | "tenant" | "promotion" | "code" | "usageLimit" | "redemptions" | "createdAt";
1299
- readonly "cartCodes": "tenant" | "cart" | "code" | "createdAt";
1300
- readonly "redemptions": "id" | "tenant" | "promotion" | "code" | "order" | "customer" | "email" | "currency" | "amount" | "status" | "createdAt" | "releasedAt";
1301
- };
1302
- readonly functions: "apply_promotion_code" | "cart_discounts" | "create_promotion_codes" | "delete_promotion" | "delete_promotion_code" | "move_cart_codes" | "redeem_promotions" | "release_promotions" | "remove_promotion_code" | "round_half_even" | "save_promotion" | "set_promotion_active";
1303
- readonly actions: "manage" | "read";
1304
- readonly hooks: "before_promotion_save" | "after_promotion_save" | "before_promotion_activate";
1305
- readonly entities: {
1306
- readonly "promotion": "id" | "tenant_id" | "name" | "description" | "kind" | "percent" | "currency" | "amount" | "min_subtotal" | "scope" | "target_ids" | "starts_at" | "ends_at" | "usage_limit" | "per_customer_limit" | "redemptions" | "stackable" | "priority" | "automatic" | "active" | "created_at" | "updated_at";
1307
- };
1308
- readonly primary: "promotion";
1309
- };
1310
- readonly "push": {
1311
- readonly tables: {
1312
- readonly "devices": "id" | "user" | "token" | "platform" | "provider" | "deviceName" | "appVersion" | "createdAt" | "lastSeenAt";
1313
- readonly "tickets": "id" | "delivery" | "token" | "ticket" | "status" | "error" | "createdAt" | "checkedAt";
1314
- };
1315
- readonly functions: "prune_push_tokens" | "push_tokens_for" | "register_push_device" | "unregister_push_device";
1316
- readonly actions: never;
1317
- readonly hooks: never;
1318
- readonly entities: {};
1319
- readonly primary: never;
1320
- };
1321
- readonly "queue": {
1322
- readonly tables: {
1323
- readonly "messages": "id" | "queue" | "message" | "attempts" | "enqueuedAt" | "visibleAt" | "archivedAt" | "dead" | "dedupeKey" | "maxAttempts";
1324
- readonly "schedules": "jobName" | "schedule" | "timezone" | "queue" | "payload" | "nextRun" | "lastRun" | "lockedUntil" | "createdAt" | "tenant" | "firstAfter";
1325
- };
1326
- readonly functions: never;
1327
- readonly actions: never;
1328
- readonly hooks: never;
1329
- readonly entities: {};
1330
- readonly primary: never;
1331
- };
1332
- readonly "quotes": {
1333
- readonly tables: {
1334
- readonly "quotes": "id" | "tenant" | "number" | "identifier" | "revision" | "supersedes" | "title" | "companyType" | "companyId" | "contactType" | "contactId" | "owner" | "currency" | "status" | "validUntil" | "terms" | "note" | "originType" | "originId" | "tokenHash" | "sentAt" | "viewedAt" | "decidedAt" | "decidedBy" | "decisionNote" | "createdBy" | "createdAt" | "updatedAt" | "listTotal" | "discountTotal" | "subtotal" | "taxTotal" | "total";
1335
- readonly "lines": "id" | "tenant" | "parent" | "productType" | "productId" | "description" | "quantity" | "unitAmount" | "discountBps" | "taxRateBps" | "taxCode" | "position" | "createdAt";
1336
- };
1337
- readonly functions: "create_quote" | "decide_quote" | "expire_quotes" | "public_quote" | "respond_to_quote" | "revise_quote" | "send_quote" | "set_quote_lines" | "set_quote_lines_recount" | "update_quote";
1338
- readonly actions: "read" | "write" | "manage";
1339
- readonly hooks: "before_quote_send" | "after_quote_send" | "before_quote_accept" | "after_quote_accept";
1340
- readonly entities: {
1341
- readonly "quote": "id" | "tenant_id" | "number" | "identifier" | "revision" | "supersedes_id" | "title" | "company_type" | "company_id" | "contact_type" | "contact_id" | "owner_user_id" | "currency" | "status" | "valid_until" | "terms" | "note" | "origin_type" | "origin_id" | "token_hash" | "sent_at" | "viewed_at" | "decided_at" | "decided_by" | "decision_note" | "created_by" | "created_at" | "updated_at" | "list_total" | "discount_total" | "subtotal" | "tax_total" | "total";
1342
- };
1343
- readonly primary: "quote";
1344
- };
1345
- readonly "rank": {
1346
- readonly tables: {};
1347
- readonly functions: "can_subject" | "move" | "rank_between" | "rank_key" | "rebalance_ranks";
1348
- readonly actions: never;
1349
- readonly hooks: never;
1350
- readonly entities: {};
1351
- readonly primary: never;
1352
- };
1353
- readonly "rate-limit": {
1354
- readonly tables: {
1355
- readonly "rules": "scope" | "maxRequests" | "period" | "keyClaim";
1356
- readonly "counters": "scope" | "key" | "windowStart" | "hits" | "period";
1357
- };
1358
- readonly functions: never;
1359
- readonly actions: never;
1360
- readonly hooks: never;
1361
- readonly entities: {};
1362
- readonly primary: never;
1363
- };
1364
- readonly "reactions": {
1365
- readonly tables: {
1366
- readonly "reactions": "id" | "tenant" | "subjectType" | "subjectId" | "actor" | "user" | "kind" | "emoji" | "value" | "createdAt";
1367
- readonly "scores": "tenant" | "subjectType" | "subjectId" | "score" | "up" | "down" | "updatedAt";
1368
- readonly "emoji": "id" | "tenant" | "shortcode" | "attachment" | "url" | "createdBy" | "createdAt";
1369
- };
1370
- readonly functions: "delete_custom_emoji" | "list_custom_emoji" | "react" | "reaction_list" | "reaction_subject_visible" | "reaction_summary" | "reactions_changed" | "reactions_check" | "reactions_tally" | "save_custom_emoji" | "vote" | "vote_summary" | "vote_tally";
1371
- readonly actions: "read" | "create" | "manage";
1372
- readonly hooks: "before_react" | "after_react";
1373
- readonly entities: {
1374
- readonly "reaction": "id" | "tenant_id" | "subject_type" | "subject_id" | "actor" | "user_id" | "kind" | "emoji" | "value" | "created_at";
1375
- };
1376
- readonly primary: "reaction";
1377
- };
1378
- readonly "read-sets": {
1379
- readonly tables: {};
1380
- readonly functions: never;
1381
- readonly actions: never;
1382
- readonly hooks: never;
1383
- readonly entities: {};
1384
- readonly primary: never;
1385
- };
1386
- readonly "realtime-tables": {
1387
- readonly tables: {};
1388
- readonly functions: never;
1389
- readonly actions: never;
1390
- readonly hooks: never;
1391
- readonly entities: {};
1392
- readonly primary: never;
1393
- };
1394
- readonly "relations": {
1395
- readonly tables: {
1396
- readonly "relations": "id" | "tenant" | "kind" | "sourceType" | "sourceId" | "targetType" | "targetId" | "data" | "createdBy" | "createdAt";
1397
- };
1398
- readonly functions: "ancestors" | "converted_into" | "descendants" | "link" | "relation_rollup" | "relation_walk" | "relations_by_kind" | "relations_of" | "unlink";
1399
- readonly actions: "read" | "manage";
1400
- readonly hooks: "before_relation_link" | "after_relation_link";
1401
- readonly entities: {
1402
- readonly "relation": "id" | "tenant_id" | "kind" | "source_type" | "source_id" | "target_type" | "target_id" | "data" | "created_by" | "created_at";
1403
- };
1404
- readonly primary: "relation";
1405
- };
1406
- readonly "reminders": {
1407
- readonly tables: {
1408
- readonly "rules": "id" | "tenant" | "subjectType" | "subjectId" | "dtstart" | "tzid" | "rrule" | "frequency" | "intervalCount" | "weekDays" | "monthDay" | "monthWeekday" | "monthOrdinal";
1409
- readonly "reminders": "id" | "tenant" | "subjectType" | "subjectId" | "user" | "method" | "offsetMinutes";
1410
- readonly "deliveries": "id" | "reminder" | "occurrenceAt" | "sentAt";
1411
- };
1412
- readonly functions: "delete_reminder" | "list_my_reminders" | "list_reminder_schedule" | "mark_reminder_sent" | "save_reminder";
1413
- readonly actions: "manage" | "read";
1414
- readonly hooks: never;
1415
- readonly entities: {
1416
- readonly "reminder": "id" | "tenant_id" | "subject_type" | "subject_id" | "user_id" | "method" | "offset_minutes";
1417
- };
1418
- readonly primary: "reminder";
1419
- };
1420
- readonly "reserved-slugs": {
1421
- readonly tables: {
1422
- readonly "slugs": "slug" | "reason";
1423
- };
1424
- readonly functions: never;
1425
- readonly actions: never;
1426
- readonly hooks: never;
1427
- readonly entities: {};
1428
- readonly primary: never;
1429
- };
1430
- readonly "reviews": {
1431
- readonly tables: {
1432
- readonly "reviews": "id" | "tenant" | "subjectType" | "subjectId" | "author" | "authorName" | "rating" | "title" | "body" | "status" | "verified" | "rejectionReason" | "reply" | "repliedBy" | "repliedAt" | "publishedAt" | "createdAt" | "updatedAt";
1433
- readonly "stats": "tenant" | "subjectType" | "subjectId" | "count" | "total" | "histogram" | "updatedAt";
1434
- };
1435
- readonly functions: "delete_review" | "list_reviews" | "my_review" | "publish_review" | "reject_review" | "reply_to_review" | "review_moderation_item" | "review_queue" | "review_stats_refresh" | "review_subject_readable" | "review_summary" | "reviews_changed" | "reviews_moderated" | "submit_review";
1436
- readonly actions: "manage";
1437
- readonly hooks: "before_review_submit" | "after_review_submit";
1438
- readonly entities: {
1439
- readonly "review": "id" | "tenant_id" | "subject_type" | "subject_id" | "author_id" | "author_name" | "rating" | "title" | "body" | "status" | "verified" | "rejection_reason" | "reply" | "replied_by" | "replied_at" | "published_at" | "created_at" | "updated_at";
1440
- };
1441
- readonly primary: "review";
1442
- };
1443
- readonly "rls-guard": {
1444
- readonly tables: {};
1445
- readonly functions: never;
1446
- readonly actions: never;
1447
- readonly hooks: never;
1448
- readonly entities: {};
1449
- readonly primary: never;
1450
- };
1451
- readonly "saved-views": {
1452
- readonly tables: {
1453
- readonly "views": "id" | "tenant" | "list" | "scope" | "owner" | "team" | "name" | "kind" | "state" | "rank" | "isDefault" | "createdAt" | "updatedAt";
1454
- readonly "preferences": "view" | "user" | "tenant" | "isDefault" | "hidden" | "pinned" | "updatedAt";
1455
- };
1456
- readonly functions: "delete_view" | "duplicate_view" | "list_views" | "rank_view" | "save_view" | "set_default_view" | "set_view_preference";
1457
- readonly actions: "read" | "share";
1458
- readonly hooks: "before_view_save" | "after_view_save";
1459
- readonly entities: {
1460
- readonly "view": "id" | "tenant_id" | "list" | "scope" | "owner_id" | "team_id" | "name" | "kind" | "state" | "rank" | "is_default" | "created_at" | "updated_at";
1461
- };
1462
- readonly primary: "view";
1463
- };
1464
- readonly "scores": {
1465
- readonly tables: {
1466
- readonly "models": "id" | "tenant" | "key" | "name" | "description" | "subjectType" | "rules" | "metrics" | "bands" | "enabled" | "version" | "createdBy" | "createdAt" | "updatedAt";
1467
- readonly "versions": "model" | "version" | "tenant" | "rules" | "metrics" | "bands" | "savedBy" | "savedAt";
1468
- readonly "scores": "id" | "tenant" | "model" | "modelVersion" | "subjectType" | "subjectId" | "score" | "band" | "breakdown" | "current" | "computedAt";
1469
- };
1470
- readonly functions: "compute_score" | "delete_score_model" | "get_score_model" | "list_score_models" | "save_score_model" | "score_history" | "subject_scores" | "top_scores";
1471
- readonly actions: "read" | "manage" | "compute";
1472
- readonly hooks: never;
1473
- readonly entities: {
1474
- readonly "score_model": "id" | "tenant_id" | "key" | "name" | "description" | "subject_type" | "rules" | "metrics" | "bands" | "enabled" | "version" | "created_by" | "created_at" | "updated_at";
1475
- };
1476
- readonly primary: "score_model";
1477
- };
1478
- readonly "search": {
1479
- readonly tables: {
1480
- readonly "documents": "tenant" | "subjectType" | "subjectId" | "title" | "titleSearch" | "body" | "url" | "tsv" | "contentHash" | "embedding" | "updatedAt" | "description";
1481
- };
1482
- readonly functions: "search" | "search_favorites" | "search_index_row" | "search_normalize" | "search_recents" | "search_refresh" | "search_reindex" | "search_remove" | "search_star" | "search_touch" | "search_user_state";
1483
- readonly actions: "read";
1484
- readonly hooks: "before_search_document_index" | "after_search_document_index";
1485
- readonly entities: {};
1486
- readonly primary: never;
1487
- };
1488
- readonly "security-events": {
1489
- readonly tables: {
1490
- readonly "streams": "id" | "tenant" | "receiver" | "audience" | "description" | "eventsRequested" | "eventsDelivered" | "method" | "endpoint" | "status" | "reason" | "verifiedAt" | "createdAt" | "updatedAt";
1491
- readonly "events": "stream" | "jti" | "token" | "createdAt";
1492
- readonly "received": "issuer" | "jti" | "receivedAt";
1493
- };
1494
- readonly functions: "create_ssf_stream" | "delete_ssf_stream" | "forget_ssf_received" | "note_ssf_verification" | "poll_ssf_events" | "purge_shared_signals" | "queue_ssf_set" | "record_ssf_received" | "set_ssf_stream_status" | "ssf_stream" | "ssf_streams" | "ssf_streams_for_event" | "update_ssf_stream";
1495
- readonly actions: never;
1496
- readonly hooks: never;
1497
- readonly entities: {};
1498
- readonly primary: never;
1499
- };
1500
- readonly "segments": {
1501
- readonly tables: {
1502
- readonly "segments": "id" | "tenant" | "name" | "description" | "subjectType" | "conditions" | "memberCount" | "refreshedAt" | "createdBy" | "createdAt" | "updatedAt";
1503
- readonly "members": "segment" | "tenant" | "subjectId" | "enteredAt";
1504
- };
1505
- readonly functions: "evaluate_segment" | "list_segment_members" | "refresh_due_segments" | "refresh_segment" | "remove_segment" | "save_segment" | "segment_get" | "segments_list" | "segments_of";
1506
- readonly actions: "read" | "edit";
1507
- readonly hooks: never;
1508
- readonly entities: {
1509
- readonly "segment": "id" | "tenant_id" | "name" | "description" | "subject_type" | "conditions" | "member_count" | "refreshed_at" | "created_by" | "created_at" | "updated_at";
1510
- };
1511
- readonly primary: "segment";
1512
- };
1513
- readonly "sequences": {
1514
- readonly tables: {
1515
- readonly "sequences": "id" | "tenant" | "key" | "name" | "description" | "status" | "exitOnReply" | "account" | "steps" | "version" | "createdBy" | "createdAt" | "updatedAt";
1516
- readonly "members": "enrollment" | "tenant" | "sequence" | "subjectType" | "subjectId" | "address" | "name" | "account" | "thread" | "step" | "nextRunAt" | "status" | "exitReason" | "attempts" | "lastError" | "variables" | "enrolledBy" | "createdAt" | "updatedAt";
1517
- };
1518
- readonly functions: "change_sequence_enrollment" | "delete_sequence" | "enroll_in_sequence" | "enrollment_ensure" | "enrollment_mark" | "get_sequence" | "list_sequence_enrollments" | "list_sequences" | "run_due_sequences" | "save_sequence" | "sequence_exit" | "sequence_member_json" | "sequence_place" | "sequence_resync" | "sequence_step_done" | "sequence_step_failed" | "sequence_step_sent" | "sequence_steps_check";
1519
- readonly actions: "read" | "enroll" | "manage";
1520
- readonly hooks: never;
1521
- readonly entities: {
1522
- readonly "sequence": "id" | "tenant_id" | "key" | "name" | "description" | "status" | "exit_on_reply" | "mail_account_id" | "steps" | "version" | "created_by" | "created_at" | "updated_at";
1523
- readonly "sequence_enrollment": "enrollment_id" | "tenant_id" | "sequence_id" | "subject_type" | "subject_id" | "address" | "name" | "mail_account_id" | "mail_thread_id" | "step" | "next_run_at" | "status" | "exit_reason" | "attempts" | "last_error" | "variables" | "enrolled_by" | "created_at" | "updated_at";
1524
- };
1525
- readonly primary: "sequence";
1526
- };
1527
- readonly "service-accounts": {
1528
- readonly tables: {
1529
- readonly "principals": "id" | "tenant" | "name" | "role" | "isDefault" | "createdBy" | "createdAt" | "disabledAt";
1530
- };
1531
- readonly functions: "default_service_principal" | "disable_service_principal" | "register_service_principal" | "service_principals_list" | "set_service_principal_role";
1532
- readonly actions: "read" | "manage";
1533
- readonly hooks: never;
1534
- readonly entities: {};
1535
- readonly primary: never;
1536
- };
1537
- readonly "sessions": {
1538
- readonly tables: {};
1539
- readonly functions: never;
1540
- readonly actions: never;
1541
- readonly hooks: never;
1542
- readonly entities: {};
1543
- readonly primary: never;
1544
- };
1545
- readonly "settings": {
1546
- readonly tables: {
1547
- readonly "user": "user" | "key" | "value" | "updatedBy" | "updatedAt";
1548
- readonly "organization": "tenant" | "key" | "value" | "updatedBy" | "updatedAt";
1549
- readonly "platform": "key" | "value" | "updatedBy" | "updatedAt";
1550
- };
1551
- readonly functions: "get_organization_settings" | "get_platform_settings" | "get_user_settings" | "record_organization_setting" | "record_platform_setting" | "reset_organization_setting" | "reset_platform_setting" | "reset_user_setting" | "set_organization_setting" | "set_platform_setting" | "set_user_setting";
1552
- readonly actions: "read" | "update" | "platform";
1553
- readonly hooks: never;
1554
- readonly entities: {};
1555
- readonly primary: never;
1556
- };
1557
- readonly "share-links": {
1558
- readonly tables: {
1559
- readonly "links": "id" | "tenant" | "subjectType" | "subjectId" | "tokenHash" | "role" | "version" | "expiresAt" | "revokedAt" | "maxUses" | "useCount" | "createdBy" | "leaf" | "versionId" | "createdAt";
1560
- readonly "views": "id" | "tenant" | "subjectType" | "subjectId" | "version" | "viewerKind" | "viewer" | "firstViewedAt" | "lastViewedAt" | "viewCount";
1561
- readonly "state": "subjectType" | "subjectId" | "user" | "starredAt" | "lastOpenedAt";
1562
- };
1563
- readonly functions: "create_share_link" | "list_share_links" | "record_view" | "resolve_share_link" | "revoke_share_link" | "set_user_state";
1564
- readonly actions: "create" | "read";
1565
- readonly hooks: never;
1566
- readonly entities: {
1567
- readonly "link": "id" | "tenant_id" | "subject_type" | "subject_id" | "token_hash" | "role" | "version" | "expires_at" | "revoked_at" | "max_uses" | "use_count" | "created_by" | "leaf_id" | "version_id" | "created_at";
1568
- };
1569
- readonly primary: "link";
1570
- };
1571
- readonly "shipments": {
1572
- readonly tables: {
1573
- readonly "shipments": "id" | "tenant" | "reference" | "status" | "fromAddress" | "toAddress" | "fromLocation" | "subjectType" | "subjectId" | "carrier" | "service" | "trackingNumber" | "trackingUrl" | "labelId" | "labelUrl" | "labelFormat" | "labelCost" | "currency" | "labeledAt" | "deliveredAt" | "cancelledAt" | "createdBy" | "createdAt" | "updatedAt";
1574
- readonly "packages": "id" | "tenant" | "shipment" | "position" | "weight" | "length" | "width" | "height" | "reference";
1575
- readonly "trackingEvents": "id" | "tenant" | "shipment" | "externalId" | "status" | "occurredAt" | "description" | "location" | "source" | "createdAt";
1576
- };
1577
- readonly functions: "cancel_shipment" | "create_shipment" | "get_shipment" | "ingest_tracking_events" | "list_shipments" | "list_tracking_events" | "record_tracking_events" | "set_shipment_label";
1578
- readonly actions: "read" | "manage";
1579
- readonly hooks: never;
1580
- readonly entities: {
1581
- readonly "shipment": "id" | "tenant_id" | "reference" | "status" | "from_address" | "to_address" | "from_location_id" | "subject_type" | "subject_id" | "carrier" | "service" | "tracking_number" | "tracking_url" | "label_id" | "label_url" | "label_format" | "label_cost" | "currency" | "labeled_at" | "delivered_at" | "cancelled_at" | "created_by" | "created_at" | "updated_at";
1582
- readonly "shipment_package": "id" | "tenant_id" | "shipment_id" | "position" | "weight_grams" | "length_mm" | "width_mm" | "height_mm" | "reference";
1583
- readonly "shipment_tracking_event": "id" | "tenant_id" | "shipment_id" | "external_id" | "status" | "occurred_at" | "description" | "location" | "source" | "created_at";
1584
- };
1585
- readonly primary: "shipment";
1586
- };
1587
- readonly "signatures": {
1588
- readonly tables: {
1589
- readonly "requests": "id" | "tenant" | "subjectType" | "subjectId" | "version" | "contentHash" | "signers" | "order" | "status" | "approval" | "message" | "requestedBy" | "createdAt" | "completedAt";
1590
- readonly "signatures": "id" | "request" | "tenant" | "signer" | "method" | "typedName" | "image" | "signedHash" | "ip" | "userAgent" | "signedAt";
1591
- };
1592
- readonly functions: "cancel_signature_request" | "create_signature_request" | "decline_signature_request" | "get_signature_request" | "list_signature_requests" | "sign_signature" | "signature_verification";
1593
- readonly actions: "read" | "request" | "manage";
1594
- readonly hooks: "before_signature_request" | "after_signature_request" | "before_signature_sign" | "after_signature_sign";
1595
- readonly entities: {
1596
- readonly "request": "id" | "tenant_id" | "subject_type" | "subject_id" | "version_id" | "content_hash" | "signers" | "sign_order" | "status" | "approval_request_id" | "message" | "requested_by" | "created_at" | "completed_at";
1597
- };
1598
- readonly primary: "request";
1599
- };
1600
- readonly "signing-keys": {
1601
- readonly tables: {
1602
- readonly "keys": "id" | "ownerType" | "ownerId" | "kid" | "alg" | "publicJwk" | "vaultId" | "state" | "publishUntil" | "createdAt" | "retiredAt";
1603
- };
1604
- readonly functions: "add_signing_key" | "delete_signing_keys" | "drop_signing_key_vault_secret" | "note_signing_key_exp" | "purge_signing_keys" | "retire_signing_key" | "signing_jwks" | "signing_key";
1605
- readonly actions: never;
1606
- readonly hooks: never;
1607
- readonly entities: {};
1608
- readonly primary: never;
1609
- };
1610
- readonly "sla": {
1611
- readonly tables: {
1612
- readonly "policies": "id" | "tenant" | "subjectType" | "name" | "priority" | "firstResponse" | "nextResponse" | "resolution" | "warnPercent" | "businessHours" | "archivedAt" | "createdAt" | "updatedAt";
1613
- readonly "clocks": "id" | "tenant" | "subjectType" | "subjectId" | "policy" | "metric" | "startedAt" | "dueAt" | "pausedAt" | "pausedSeconds" | "warnedAt" | "breachedAt" | "metAt" | "createdAt";
1614
- };
1615
- readonly functions: "check_sla_clocks" | "record_sla_event" | "save_sla_policy" | "sla_clocks_of" | "sla_due_at" | "start_sla_clocks";
1616
- readonly actions: "read" | "manage";
1617
- readonly hooks: never;
1618
- readonly entities: {
1619
- readonly "policy": "id" | "tenant_id" | "subject_type" | "name" | "priority" | "first_response_minutes" | "next_response_minutes" | "resolution_minutes" | "warn_at_percent" | "business_hours" | "archived_at" | "created_at" | "updated_at";
1620
- };
1621
- readonly primary: "policy";
1622
- };
1623
- readonly "sso": {
1624
- readonly tables: {
1625
- readonly "domains": "id" | "tenant" | "domain" | "token" | "verifiedAt" | "autoJoinRole" | "enforceSso" | "createdBy" | "createdAt";
1626
- readonly "providers": "id" | "tenant" | "type" | "metadataUrl" | "domains" | "createdAt";
1627
- readonly "scimUsers": "id" | "tenant" | "user" | "externalId" | "userName" | "displayName" | "givenName" | "familyName" | "email" | "emails" | "active" | "version" | "createdAt" | "updatedAt";
1628
- readonly "scimGroups": "id" | "tenant" | "displayName" | "externalId" | "role" | "version" | "createdAt" | "updatedAt";
1629
- readonly "scimMembers": "group" | "member";
1630
- readonly "syncLog": "id" | "tenant" | "operation" | "resourceType" | "resourceId" | "status" | "error" | "requestId" | "createdAt";
1631
- };
1632
- readonly functions: "add_organization_domain" | "check_sso_provider" | "list_organization_domains" | "list_sso_providers" | "organization_domain" | "register_sso_provider" | "remove_organization_domain" | "scim_delete_group" | "scim_delete_user" | "scim_get_group" | "scim_get_user" | "scim_group_role" | "scim_list_groups" | "scim_list_users" | "scim_save_group" | "scim_save_user" | "scim_sync_member" | "sso_access_token_check" | "sso_domain_for" | "sso_on_auth_user" | "sso_provider" | "unregister_sso_provider" | "update_organization_domain" | "verify_organization_domain";
1633
- readonly actions: "manage";
1634
- readonly hooks: never;
1635
- readonly entities: {};
1636
- readonly primary: never;
1637
- };
1638
- readonly "state-machine": {
1639
- readonly tables: {
1640
- readonly "history": "id" | "tenant" | "subjectType" | "subjectId" | "fromStatus" | "toStatus" | "actor" | "reason" | "createdAt";
1641
- readonly "stages": "id" | "tenant" | "subjectType" | "subjectId" | "label" | "outcome" | "display" | "clearedAt" | "createdAt";
1642
- readonly "lifecycles": "id" | "tenant" | "subjectType" | "subjectId" | "version" | "flags" | "pausedAt" | "pausedUntil" | "pauseReason" | "pausedBy" | "createdAt" | "updatedAt";
1643
- };
1644
- readonly functions: "list_status_history" | "list_status_stages" | "pause_lifecycle" | "resume_lifecycle" | "set_lifecycle_flag" | "status_state" | "transition";
1645
- readonly actions: never;
1646
- readonly hooks: "before_status_transition" | "after_status_transition";
1647
- readonly entities: {};
1648
- readonly primary: never;
1649
- };
1650
- readonly "streams": {
1651
- readonly tables: {
1652
- readonly "streams": "id" | "tenant" | "owner" | "kind" | "wake" | "createdAt" | "closedAt" | "cancelRequestedAt" | "expiresAt";
1653
- readonly "chunks": "stream" | "idx" | "data";
1654
- };
1655
- readonly functions: "purge_streams" | "stream_append" | "stream_cancel" | "stream_close" | "stream_open" | "stream_read" | "stream_status";
1656
- readonly actions: never;
1657
- readonly hooks: never;
1658
- readonly entities: {};
1659
- readonly primary: never;
1660
- };
1661
- readonly "subjects": {
1662
- readonly tables: {};
1663
- readonly functions: "can_subject" | "can_subject_for" | "my_work" | "record_summary" | "subject_presence_allowed" | "subject_title" | "subject_titles" | "subject_types" | "subject_url";
1664
- readonly actions: never;
1665
- readonly hooks: never;
1666
- readonly entities: {};
1667
- readonly primary: never;
1668
- };
1669
- readonly "tags": {
1670
- readonly tables: {
1671
- readonly "tags": "id" | "tenant" | "kind" | "name" | "slug" | "color" | "description" | "rank" | "createdAt" | "updatedAt";
1672
- readonly "taggings": "tenant" | "tag" | "subjectType" | "subjectId" | "createdAt";
1673
- };
1674
- readonly functions: "create_tag" | "delete_tag" | "list_tags" | "rank_tag" | "subject_tags" | "tag" | "untag" | "update_tag";
1675
- readonly actions: "manage" | "read" | "apply" | "create" | "update" | "delete";
1676
- readonly hooks: "before_tag_apply" | "after_tag_apply";
1677
- readonly entities: {
1678
- readonly "tag": "id" | "tenant_id" | "kind" | "name" | "slug" | "color" | "description" | "rank" | "created_at" | "updated_at";
1679
- };
1680
- readonly primary: "tag";
1681
- };
1682
- readonly "tasks": {
1683
- readonly tables: {
1684
- readonly "items": "id" | "tenant" | "number" | "identifier" | "title" | "body" | "parent" | "team" | "project" | "iteration" | "priority" | "estimate" | "progress" | "startAt" | "endAt" | "dueAt" | "pipeline" | "stage" | "stageEnteredAt" | "state" | "closeReason" | "closedAt" | "locked" | "rank" | "archivedAt" | "recursFrom" | "createdBy" | "createdAt" | "updatedAt";
1685
- readonly "checklist": "id" | "tenant" | "item" | "title" | "done" | "doneAt" | "doneBy" | "rank" | "createdBy" | "createdAt";
1686
- readonly "assignees": "tenant" | "item" | "user" | "createdAt";
1687
- readonly "projects": "id" | "tenant" | "key" | "name" | "owner" | "status" | "startOn" | "targetOn" | "archivedAt" | "createdAt" | "updatedAt";
1688
- readonly "iterations": "id" | "tenant" | "team" | "name" | "startsOn" | "endsOn" | "createdAt";
1689
- };
1690
- readonly functions: "archive_work_item" | "create_work_item" | "delete_work_item" | "delete_work_item_checklist_item" | "get_work_item" | "list_work_item_checklist" | "list_work_items" | "save_iteration" | "save_project" | "save_work_item_checklist_item" | "set_work_item_assignees" | "update_work_items" | "work_item_tree";
1691
- readonly actions: "read" | "write" | "manage" | "create" | "delete";
1692
- readonly hooks: "before_work_item_create" | "after_work_item_create" | "before_work_item_update" | "after_work_item_update";
1693
- readonly entities: {
1694
- readonly "work_item": "id" | "tenant_id" | "number" | "identifier" | "title" | "body" | "parent_id" | "team_id" | "project_id" | "iteration_id" | "priority" | "estimate" | "progress" | "start_at" | "end_at" | "due_at" | "pipeline_id" | "stage_id" | "stage_entered_at" | "state" | "close_reason" | "closed_at" | "locked" | "rank" | "archived_at" | "recurs_from" | "created_by" | "created_at" | "updated_at";
1695
- readonly "project": "id" | "tenant_id" | "key" | "name" | "owner_user_id" | "status" | "start_on" | "target_on" | "archived_at" | "created_at" | "updated_at";
1696
- readonly "iteration": "id" | "tenant_id" | "team_id" | "name" | "starts_on" | "ends_on" | "created_at";
1697
- readonly "checklist_item": "id" | "tenant_id" | "work_item_id" | "title" | "done" | "done_at" | "done_by" | "rank" | "created_by" | "created_at";
1698
- };
1699
- readonly primary: "work_item";
1700
- };
1701
- readonly "teams": {
1702
- readonly tables: {
1703
- readonly "teams": "id" | "tenant" | "name" | "slug" | "description" | "status" | "createdBy" | "createdAt" | "updatedAt";
1704
- readonly "members": "team" | "user" | "tenant" | "createdAt";
1705
- };
1706
- readonly functions: "add_team_member" | "archive_team" | "create_team" | "delete_team" | "list_teams" | "remove_team_member" | "team_ids_of" | "update_team";
1707
- readonly actions: "manage" | "read" | "create" | "update" | "delete" | "members";
1708
- readonly hooks: "before_team_create" | "after_team_create";
1709
- readonly entities: {
1710
- readonly "team": "id" | "tenant_id" | "name" | "slug" | "description" | "status" | "created_by" | "created_at" | "updated_at";
1711
- };
1712
- readonly primary: "team";
1713
- };
1714
- readonly "templates": {
1715
- readonly tables: {
1716
- readonly "templates": "id" | "tenant" | "scope" | "key" | "type" | "name" | "language" | "isDefault" | "settings" | "forkedFrom" | "forkedFromVersion" | "createdBy" | "createdAt" | "updatedAt";
1717
- readonly "versions": "id" | "template" | "version" | "body" | "hash" | "publishedAt" | "createdBy" | "createdAt";
1718
- readonly "applications": "id" | "template" | "version" | "tenant" | "subjectType" | "subjectId" | "appliedBy" | "appliedAt";
1719
- readonly "workflows": "id" | "template" | "definition" | "inputs" | "enabled" | "createdBy" | "createdAt";
1720
- };
1721
- readonly functions: "fork_template" | "publish_template_version" | "record_template_application" | "remove_template" | "save_template" | "save_template_draft" | "set_default_template" | "sync_templates" | "template_applications_list" | "template_apply_target" | "template_get" | "template_versions_list" | "templates_list";
1722
- readonly actions: "read" | "apply" | "manage";
1723
- readonly hooks: "before_template_save" | "after_template_save" | "before_template_apply" | "after_template_apply";
1724
- readonly entities: {
1725
- readonly "template": "id" | "tenant_id" | "scope" | "key" | "type" | "name" | "language" | "is_default" | "settings" | "forked_from" | "forked_from_version" | "created_by" | "created_at" | "updated_at";
1726
- };
1727
- readonly primary: "template";
1728
- };
1729
- readonly "time-tracking": {
1730
- readonly tables: {
1731
- readonly "entries": "id" | "tenant" | "user" | "subjectType" | "subjectId" | "startedAt" | "endedAt" | "billable" | "rate" | "rateCurrency" | "note" | "createdAt" | "updatedAt" | "seconds" | "runningSince" | "employee";
1732
- readonly "timesheets": "id" | "tenant" | "user" | "week" | "approval" | "note" | "submittedAt" | "approvedAt" | "createdAt" | "status" | "decidedBy" | "decidedAt" | "decisionNote" | "employee";
1733
- };
1734
- readonly functions: "approve_timesheet" | "delete_time_entry" | "get_timesheet" | "list_time_entries" | "list_timesheets" | "log_time" | "reopen_timesheet" | "running_timer" | "start_timer" | "stop_timer" | "submit_timesheet" | "time_entry_guard" | "time_week" | "time_week_locked" | "update_time_entry";
1735
- readonly actions: "read" | "track" | "approve" | "manage";
1736
- readonly hooks: "before_time_entry_save" | "after_time_entry_save" | "before_timesheet_submit" | "after_timesheet_submit";
1737
- readonly entities: {
1738
- readonly "entry": "id" | "tenant_id" | "user_id" | "subject_type" | "subject_id" | "started_at" | "ended_at" | "billable" | "rate" | "rate_currency" | "note" | "created_at" | "updated_at" | "seconds" | "running_since" | "employee_id";
1739
- readonly "timesheet": "id" | "tenant_id" | "user_id" | "week" | "approval_id" | "note" | "submitted_at" | "approved_at" | "created_at" | "status" | "decided_by" | "decided_at" | "decision_note" | "employee_id";
1740
- };
1741
- readonly primary: "entry";
1742
- };
1743
- readonly "timeline": {
1744
- readonly tables: {
1745
- readonly "activity": "id" | "tenant" | "event" | "type" | "actor" | "subjectType" | "subjectId" | "summary" | "data" | "occurredAt";
1746
- };
1747
- readonly functions: "activity_subject_deliveries" | "activity_subject_readable" | "list_activity" | "record_activity";
1748
- readonly actions: "read";
1749
- readonly hooks: never;
1750
- readonly entities: {
1751
- readonly "entry": "id" | "organization_id" | "event_id" | "type" | "actor_id" | "subject_type" | "subject_id" | "summary" | "data" | "occurred_at";
1752
- };
1753
- readonly primary: "entry";
1754
- };
1755
- readonly "trash": {
1756
- readonly tables: {
1757
- readonly "items": "id" | "tenant" | "subjectType" | "subjectId" | "title" | "batch" | "depth" | "trashedBy" | "trashedAt" | "purgeAfter";
1758
- };
1759
- readonly functions: "is_trashed" | "list_trash" | "purge_expired_trash" | "purge_trash" | "restore_trash" | "trash" | "trash_cascade" | "trash_purge_batch" | "trash_restore_batch";
1760
- readonly actions: "read" | "create" | "restore" | "manage";
1761
- readonly hooks: "before_trash" | "after_trash" | "before_untrash" | "after_untrash";
1762
- readonly entities: {};
1763
- readonly primary: never;
1764
- };
1765
- readonly "updated-at": {
1766
- readonly tables: {};
1767
- readonly functions: never;
1768
- readonly actions: never;
1769
- readonly hooks: never;
1770
- readonly entities: {};
1771
- readonly primary: never;
1772
- };
1773
- readonly "usage": {
1774
- readonly tables: {
1775
- readonly "counters": "tenant" | "meter" | "day" | "value" | "reported" | "updatedAt";
1776
- readonly "events": "tenant" | "meter" | "key" | "quantity" | "recordedAt";
1777
- readonly "history": "id" | "tenant" | "meter" | "quantity" | "actor" | "source" | "metadata" | "recordedAt";
1778
- readonly "distinct": "tenant" | "meter" | "periodStart" | "subject" | "firstSeen";
1779
- readonly "quotas": "id" | "tenant" | "plan" | "meter" | "limit" | "period" | "createdAt";
1780
- };
1781
- readonly functions: "consume_quota" | "mark_usage_reported" | "purge_usage_events" | "purge_usage_history" | "record_usage" | "record_usage_batch" | "unreported_usage" | "usage_breakdown" | "usage_history" | "usage_meters" | "usage_overview" | "usage_quota" | "usage_status" | "usage_used" | "usage_window" | "usage_window_start" | "within_quota";
1782
- readonly actions: "read" | "record";
1783
- readonly hooks: "usage_billing_period";
1784
- readonly entities: {};
1785
- readonly primary: never;
1786
- };
1787
- readonly "vector-search": {
1788
- readonly tables: {};
1789
- readonly functions: never;
1790
- readonly actions: never;
1791
- readonly hooks: never;
1792
- readonly entities: {};
1793
- readonly primary: never;
1794
- };
1795
- readonly "vercel-marketplace": {
1796
- readonly tables: {
1797
- readonly "installations": "id" | "configurationId" | "teamId" | "userId" | "tenant" | "tenantCreated" | "accessTokenSecret" | "status" | "metadata" | "removedAt" | "createdAt" | "updatedAt";
1798
- readonly "resources": "id" | "installation" | "externalId" | "name" | "plan" | "status" | "metadata" | "tenant" | "tenantCreated" | "secretRefs" | "createdAt" | "updatedAt";
1799
- readonly "plans": "id" | "name" | "kind" | "details" | "createdAt" | "updatedAt";
1800
- readonly "invoices": "id" | "installation" | "externalId" | "state" | "periodStart" | "periodEnd" | "total" | "currency" | "items" | "eventAt" | "createdAt" | "updatedAt";
1801
- readonly "meterReports": "id" | "installation" | "resourceExternalId" | "meterId" | "periodStart" | "periodEnd" | "quantity" | "reportedQuantity" | "reportedAt" | "createdAt";
1802
- };
1803
- readonly functions: "delete_marketplace_resource" | "link_marketplace_tenant" | "mark_marketplace_meter_reported" | "mark_marketplace_meter_sent" | "marketplace_access_token" | "marketplace_installation" | "marketplace_resource" | "marketplace_resources" | "record_marketplace_invoice" | "record_marketplace_meter_report" | "remove_marketplace_installation" | "seal_marketplace_access_token" | "set_marketplace_resource_state" | "unreported_marketplace_meter_reports" | "upsert_marketplace_installation" | "upsert_marketplace_plan" | "upsert_marketplace_resource";
1804
- readonly actions: never;
1805
- readonly hooks: never;
1806
- readonly entities: {};
1807
- readonly primary: never;
1808
- };
1809
- readonly "versions": {
1810
- readonly tables: {
1811
- readonly "versions": "id" | "tenant" | "subjectType" | "subjectId" | "number" | "label" | "content" | "storagePath" | "contentHash" | "source" | "frozen" | "createdBy" | "createdAt";
1812
- };
1813
- readonly functions: "delete_version" | "get_version" | "label_version" | "list_versions" | "restore_version" | "snapshot_version" | "version_insert" | "versions_capture";
1814
- readonly actions: "read" | "create" | "restore" | "manage";
1815
- readonly hooks: "before_version_snapshot" | "after_version_snapshot" | "before_version_restore" | "after_version_restore";
1816
- readonly entities: {
1817
- readonly "version": "id" | "tenant_id" | "subject_type" | "subject_id" | "number" | "label" | "content" | "storage_path" | "content_hash" | "source" | "frozen" | "created_by" | "created_at";
1818
- };
1819
- readonly primary: "version";
1820
- };
1821
- readonly "waitlist": {
1822
- readonly tables: {
1823
- readonly "entries": "id" | "email" | "status" | "position" | "referrer" | "metadata" | "user" | "decidedBy" | "decidedAt" | "createdAt";
1824
- readonly "codes": "id" | "hash" | "prefix" | "maxUses" | "uses" | "expiresAt" | "tenant" | "role" | "createdBy" | "createdAt" | "revokedAt";
1825
- readonly "redemptions": "code" | "user" | "redeemedAt";
1826
- };
1827
- readonly functions: "create_invite_code" | "decide_waitlist_entry" | "join_waitlist" | "list_invite_codes" | "list_waitlist" | "redeem_for" | "redeem_invite_code" | "revoke_invite_code" | "waitlist_admit" | "waitlist_on_auth_user";
1828
- readonly actions: "manage" | "invite";
1829
- readonly hooks: never;
1830
- readonly entities: {
1831
- readonly "entry": "id" | "email" | "status" | "position" | "referrer" | "metadata" | "user_id" | "decided_by" | "decided_at" | "created_at";
1832
- };
1833
- readonly primary: "entry";
1834
- };
1835
- readonly "webhook-inbox": {
1836
- readonly tables: {
1837
- readonly "messages": "id" | "source" | "messageId" | "eventType" | "payload" | "headers" | "status" | "attempts" | "maxAttempts" | "availableAt" | "lockedBy" | "lockedUntil" | "lastError" | "receivedAt" | "processedAt" | "tenant" | "checkpoint";
1838
- };
1839
- readonly functions: never;
1840
- readonly actions: never;
1841
- readonly hooks: never;
1842
- readonly entities: {};
1843
- readonly primary: never;
1844
- };
1845
- readonly "webhooks-in": {
1846
- readonly tables: {
1847
- readonly "endpoints": "id" | "tenant" | "name" | "tokenHash" | "verify" | "secret" | "secretId" | "previousSecret" | "previousSecretId" | "previousSecretExpiresAt" | "signatureHeader" | "enabled" | "maxBodyBytes" | "receiveCount" | "lastReceivedAt" | "lastStatus" | "metadata" | "subjectType" | "subjectId" | "createdBy" | "createdAt" | "updatedAt";
1848
- };
1849
- readonly functions: "create_incoming_webhook" | "delete_incoming_webhook" | "drop_incoming_webhook_secret" | "incoming_webhook_by_token" | "incoming_webhook_subject_readable" | "incoming_webhook_tenant_ids" | "list_incoming_webhooks" | "record_incoming_webhook" | "rotate_incoming_webhook" | "rotate_incoming_webhook_secret" | "set_incoming_webhook_enabled" | "update_incoming_webhook";
1850
- readonly actions: "create" | "update" | "delete" | "view";
1851
- readonly hooks: never;
1852
- readonly entities: {};
1853
- readonly primary: never;
1854
- };
1855
- readonly "webhooks-out": {
1856
- readonly tables: {
1857
- readonly "endpoints": "id" | "tenant" | "name" | "url" | "enabled" | "eventTypes" | "permissions" | "batch" | "signing" | "format" | "credentialRef" | "failingSince" | "disabledAt" | "disabledReason" | "createdBy" | "createdAt" | "updatedAt";
1858
- readonly "secrets": "id" | "endpoint" | "tenant" | "secret" | "vaultId" | "expiresAt" | "createdAt";
1859
- readonly "deliveries": "id" | "tenant" | "endpoint" | "event" | "run" | "type" | "subject" | "payload" | "status" | "attempt" | "availableAt" | "leasedUntil" | "responseStatus" | "responseBody" | "durationMs" | "lastError" | "processedAt" | "createdAt" | "updatedAt";
1860
- };
1861
- readonly functions: "claim_webhook_deliveries" | "complete_webhook_delivery" | "dispatch_webhook" | "drop_webhook_vault_secret" | "publish_webhook_event" | "publish_webhook_events" | "purge_webhook_deliveries" | "redeliver_webhook" | "reset_webhook_endpoint" | "rotate_webhook_secret" | "webhook_secrets";
1862
- readonly actions: "manage" | "view";
1863
- readonly hooks: "after_webhook_delivery";
1864
- readonly entities: {
1865
- readonly "endpoint": "id" | "organization_id" | "name" | "url" | "enabled" | "event_types" | "permissions" | "batch" | "signing" | "format" | "credential_ref" | "failing_since" | "disabled_at" | "disabled_reason" | "created_by" | "created_at" | "updated_at";
1866
- };
1867
- readonly primary: "endpoint";
1868
- };
1869
- readonly "workflow-editor": {
1870
- readonly tables: {
1871
- readonly "definitions": "id" | "tenant" | "slug" | "name" | "description" | "subjectTypes" | "scope" | "forkedFrom" | "forkedFromVersion" | "restricted" | "createdBy" | "createdAt" | "updatedAt";
1872
- readonly "optOuts": "tenant" | "definition" | "createdBy" | "createdAt";
1873
- readonly "grants": "id" | "definition" | "principalKind" | "principalId" | "action" | "createdBy" | "createdAt";
1874
- readonly "versions": "id" | "definition" | "version" | "graph" | "compiled" | "status" | "createdBy" | "createdAt" | "publishedAt" | "publishedBy" | "owner" | "permissions" | "inputSchema";
1875
- readonly "triggers": "id" | "definition" | "kind" | "config" | "enabled" | "createdAt" | "updatedAt";
1876
- readonly "webhookTokens": "tokenHash" | "trigger" | "createdAt";
1877
- readonly "credentials": "id" | "tenant" | "kind" | "name" | "ref" | "scopes" | "createdBy" | "createdAt";
1878
- readonly "steps": "name" | "title" | "description" | "inputSchema" | "outputSchema" | "credentialKind" | "operation" | "updatedAt";
1879
- readonly "nodeRuns": "run" | "node" | "status" | "attempts" | "output" | "error" | "startedAt" | "endedAt";
1880
- readonly "alerts": "id" | "definition" | "onEvent" | "threshold" | "channel" | "createdBy" | "createdAt";
1881
- readonly "alertFires": "alert" | "run" | "firedAt";
1882
- };
1883
- readonly functions: "check_workflow_alerts" | "fork_workflow_definition" | "publish_workflow_version" | "record_workflow_node_run" | "remove_workflow_alert" | "remove_workflow_credential" | "remove_workflow_definition" | "remove_workflow_trigger" | "rotate_workflow_webhook_token" | "save_workflow_alert" | "save_workflow_credential" | "save_workflow_definition" | "save_workflow_draft" | "save_workflow_trigger" | "set_workflow_definition_grant" | "set_workflow_opt_out" | "start_test_run" | "sync_workflow_steps" | "validate_workflow_graph" | "workflow_alerts_list" | "workflow_credential_get" | "workflow_credentials_list" | "workflow_definition_get" | "workflow_definition_grants_list" | "workflow_definitions_list" | "workflow_graph_permissions" | "workflow_node_runs_list" | "workflow_run_principal" | "workflow_runs_alert" | "workflow_start_target" | "workflow_steps_list" | "workflow_subject_start_target" | "workflow_triggers_list" | "workflow_version_get" | "workflow_versions_list" | "workflow_webhook_target";
1884
- readonly actions: "read" | "run" | "edit" | "publish" | "admin";
1885
- readonly hooks: never;
1886
- readonly entities: {
1887
- readonly "definition": "id" | "tenant_id" | "slug" | "name" | "description" | "subject_types" | "scope" | "forked_from" | "forked_from_version" | "restricted" | "created_by" | "created_at" | "updated_at";
1888
- };
1889
- readonly primary: "definition";
1890
- };
1891
- readonly "workflow-sdk": {
1892
- readonly tables: {};
1893
- readonly functions: "dispatch_workflow_deliveries" | "workflow_sdk_mirror_run";
1894
- readonly actions: never;
1895
- readonly hooks: never;
1896
- readonly entities: {};
1897
- readonly primary: never;
1898
- };
1899
- readonly "workflows": {
1900
- readonly tables: {
1901
- readonly "runs": "id" | "engine" | "externalId" | "definition" | "tenant" | "actor" | "status" | "attributes" | "error" | "createdAt" | "updatedAt" | "startedAt" | "completedAt" | "cancelRequestedAt" | "subjectType" | "subjectId" | "principalKind" | "principalId" | "mode" | "triggerNode";
1902
- readonly "schedules": "id" | "tenant" | "name" | "workflow" | "input" | "cron" | "timezone" | "nextRunAt" | "lastRunAt" | "lockedUntil" | "paused" | "createdBy" | "createdAt";
1903
- readonly "semaphores": "key" | "holder" | "acquiredAt" | "expiresAt";
1904
- readonly "startRequests": "id" | "key" | "workflow" | "input" | "tenant" | "actor" | "concurrency" | "status" | "notBefore" | "claimedUntil" | "runId" | "createdAt" | "startedAt" | "subjectType" | "subjectId";
1905
- };
1906
- readonly functions: "acquire_workflow_semaphore" | "advance_workflow_schedule" | "claim_due_workflow_schedules" | "claim_workflow_start_requests" | "create_workflow_schedule" | "mark_workflow_start_request" | "pause_workflow_schedule" | "purge_workflow_runs" | "record_workflow_run" | "release_workflow_semaphore" | "remove_workflow_schedule" | "request_workflow_cancel" | "request_workflow_start" | "workflow_admission_active" | "workflow_run_get" | "workflow_runs_changed" | "workflow_runs_list" | "workflow_schedules_list";
1907
- readonly actions: "read" | "run" | "admin";
1908
- readonly hooks: never;
1909
- readonly entities: {};
1910
- readonly primary: never;
1911
- };
1912
- }
1913
- //#endregion
1914
- //#region src/blocks/name-registry.d.ts
1915
- /** The names one module's config keys accept. */
1916
- interface BlockSqlNameSet {
1917
- /** Logical table to its logical columns. */
1918
- readonly tables: {
1919
- readonly [table: string]: string;
1920
- };
1921
- readonly functions: string;
1922
- readonly actions: string;
1923
- readonly hooks: string;
1924
- /** Entity to the default column names of its table. */
1925
- readonly entities: {
1926
- readonly [entity: string]: string;
1927
- };
1928
- readonly primary: string;
1929
- }
1930
- /** The names of a module the registry doesn't know: every name is a string. */
1931
- type AnyModuleNames = BlockSqlNameSet;
1932
- type NamesOf<M extends string> = M extends keyof BlockNameRegistry ? BlockNameRegistry[M] : AnyModuleNames;
1933
- type TablesOf<M extends string> = keyof NamesOf<M>["tables"] & string;
1934
- //#endregion
1935
- //#region src/blocks/access-requests/options.d.ts
1936
- /** `blocks.access-requests.options`. */
1937
- type AccessRequestsSqlOptions = {
1938
- readonly roles?: unknown;
1939
- readonly policy?: unknown;
1940
- readonly maxDuration?: unknown;
1941
- readonly join?: boolean;
1942
- readonly extraColumns?: ExtraColumns;
1943
- };
1944
- //#endregion
1945
- //#region src/blocks/activities/options.d.ts
1946
- /** `blocks.activities.options`. */
1947
- type ActivitiesSqlOptions = {
1948
- readonly types?: readonly string[];
1949
- readonly extraColumns?: ExtraColumns;
1950
- /**
1951
- * Recordings of calls and meetings as ai-files files, their transcripts and
1952
- * notes on each engagement. Needs the ai-files block. Default `false`.
1953
- */
1954
- readonly recordings?: boolean;
1955
- /**
1956
- * Log a `meeting` engagement for each confirmed booking, on the person with
1957
- * the booker's email and their company. Needs the bookings block. Default:
1958
- * false.
1959
- */
1960
- readonly bookings?: boolean;
1961
- };
1962
- //#endregion
1963
- //#region src/blocks/agents/options.d.ts
1964
- /** `blocks.agents.options`. */
1965
- type AgentsSqlOptions = {
1966
- readonly maxInstructions?: number;
1967
- readonly extraColumns?: ExtraColumns;
1968
- };
1969
- //#endregion
1970
- //#region src/blocks/ai-cache/options.d.ts
1971
- /** `blocks.ai-cache.options`. */
1972
- type AiCacheSqlOptions = {
1973
- readonly maxTtl?: number;
1974
- readonly maxBytes?: number;
1975
- };
1976
- //#endregion
1977
- //#region src/blocks/ai-chat/options.d.ts
1978
- /** `blocks.ai-chat.options`. */
1979
- type AiChatSqlOptions = {
1980
- readonly topic?: string;
1981
- readonly listTopic?: string;
1982
- readonly temporaryTtl?: unknown;
1983
- readonly staleAfter?: unknown;
1984
- readonly sandboxIdleAfter?: number;
1985
- readonly meterUsage?: boolean;
1986
- readonly inputMeter?: string;
1987
- readonly outputMeter?: string;
1988
- readonly extraColumns?: ExtraColumns;
1989
- };
1990
- //#endregion
1991
- //#region src/blocks/ai-files/options.d.ts
1992
- /** `blocks.ai-files.options`. */
1993
- type AiFilesSqlOptions = {
1994
- readonly bucket?: string;
1995
- readonly maxSize?: number;
1996
- readonly allowedMimeTypes?: readonly string[];
1997
- readonly pendingTtl?: string;
1998
- readonly extraColumns?: ExtraColumns;
1999
- };
2000
- //#endregion
2001
- //#region src/blocks/ai-keys/options.d.ts
2002
- /** `blocks["ai-keys"].options`. */
2003
- type AiKeysSqlOptions = {
2004
- readonly pollEvery?: number;
2005
- };
2006
- //#endregion
2007
- //#region src/blocks/ai-schedules/options.d.ts
2008
- /** `blocks["ai-schedules"].options`. */
2009
- type AiSchedulesSqlOptions = {
2010
- readonly queue?: string;
2011
- readonly staleAfter?: string;
2012
- readonly maxPrompt?: number;
2013
- readonly extraColumns?: ExtraColumns;
2014
- };
2015
- //#endregion
2016
- //#region src/blocks/announcements/options.d.ts
2017
- /** `blocks.announcements.options`. */
2018
- type AnnouncementsSqlOptions = {
2019
- readonly topic?: string;
2020
- readonly event?: string;
2021
- readonly extraColumns?: ExtraColumns;
2022
- };
2023
- //#endregion
2024
- //#region src/blocks/api-keys/options.d.ts
2025
- /** `blocks.api-keys.options`. */
2026
- type ApiKeysSqlOptions = {
2027
- readonly scopes?: "catalog" | readonly string[];
2028
- readonly kinds?: readonly string[];
2029
- readonly touchInterval?: number;
2030
- readonly prefix?: string;
2031
- readonly extraColumns?: ExtraColumns;
2032
- };
2033
- //#endregion
2034
- //#region src/blocks/approvals/options.d.ts
2035
- /** `blocks.approvals.options`. */
2036
- type ApprovalsSqlOptions = {
2037
- readonly policies?: unknown;
2038
- readonly extraColumns?: ExtraColumns;
2039
- };
2040
- //#endregion
2041
- //#region src/blocks/attachments/options.d.ts
2042
- /** `blocks.attachments.options`. */
2043
- type AttachmentsSqlOptions = {
2044
- readonly bucket?: string;
2045
- readonly requireScan?: boolean;
2046
- readonly maxSize?: number;
2047
- readonly allowedMimeTypes?: readonly string[];
2048
- readonly path?: string;
2049
- readonly scanBuckets?: readonly string[];
2050
- readonly publicBuckets?: readonly string[];
2051
- readonly offline?: boolean;
2052
- readonly extraColumns?: ExtraColumns;
2053
- };
2054
- //#endregion
2055
- //#region src/blocks/audit/options.d.ts
2056
- /** `blocks.audit.options.ipHeader`. */
2057
- interface AuditIpHeader {
2058
- /** The request header that carries the client address. */
2059
- readonly name: string;
2060
- /** Which hop of a comma-separated list to take. Defaults to `"last"`. */
2061
- readonly hop?: "first" | "last";
2062
- }
2063
- /** One entry of `blocks.audit.options.subjectColumns`. */
2064
- interface AuditSubjectColumn {
2065
- readonly type: "text" | "uuid" | "bigint";
2066
- /**
2067
- * The key in the row (or the event metadata) to read. Defaults to the column
2068
- * name.
2069
- */
2070
- readonly from?: string;
2071
- }
2072
- /** `blocks.audit.options`. */
2073
- type AuditSqlOptions = {
2074
- readonly appendOnly?: boolean;
2075
- readonly chain?: boolean;
2076
- readonly correlationIdHeader?: string;
2077
- readonly eventCategory?: string;
2078
- readonly eventRoles?: readonly string[];
2079
- readonly trustedRoles?: readonly string[];
2080
- readonly eventSource?: string;
2081
- readonly exempt?: unknown;
2082
- readonly impersonators?: string;
2083
- /**
2084
- * The header `request_ip()` reads; defaults to the last `x-forwarded-for`
2085
- * hop.
2086
- */
2087
- readonly ipHeader?: string | AuditIpHeader;
2088
- readonly keepMappedMetadata?: boolean;
2089
- readonly metadataColumns?: unknown;
2090
- readonly partitioned?: boolean;
2091
- readonly readPolicy?: boolean;
2092
- readonly requestIdHeader?: string;
2093
- readonly restricted?: boolean;
2094
- /** A dotted JWT claim path; a caller that carries it is recorded as `staff`. */
2095
- readonly staffClaim?: string;
2096
- /** Indexed columns generated from a key of the row or event metadata. */
2097
- readonly subjectColumns?: Readonly<Record<string, AuditSubjectColumn>>;
2098
- readonly tenantColumn?: string;
2099
- readonly tenantLabel?: unknown;
2100
- readonly tenantLabelKey?: string;
2101
- readonly values?: unknown;
2102
- };
2103
- //#endregion
2104
- //#region src/blocks/automations/options.d.ts
2105
- /** `blocks.automations.options`. */
2106
- type AutomationsSqlOptions = {
2107
- /** The most conditions one rule may hold. */
2108
- readonly maxConditions?: number;
2109
- /** How deep groups may nest, the root group counting as 1. */
2110
- readonly maxDepth?: number;
2111
- /** The most actions one rule may run. */
2112
- readonly maxActions?: number;
2113
- /**
2114
- * Keys of default automations the blocks ship turned off, such as
2115
- * `quotes.quote_to_order`, to ship turned on.
2116
- */
2117
- readonly enable?: readonly string[];
2118
- /** Keys of default automations to ship turned off. */
2119
- readonly disable?: readonly string[];
2120
- };
2121
- //#endregion
2122
- //#region src/blocks/billing/options.d.ts
2123
- /** `blocks.billing.options`. */
2124
- type BillingSqlOptions = {
2125
- readonly seatRoles?: readonly string[];
2126
- readonly plans?: unknown;
2127
- readonly tenantKey?: unknown;
2128
- /** Where subscriptions are read from. Default `sync-engine`. */
2129
- readonly subscriptions?: string;
2130
- };
2131
- //#endregion
2132
- //#region src/blocks/bookings/options.d.ts
2133
- /** `blocks.bookings.options`. */
2134
- type BookingsSqlOptions = {
2135
- readonly extraColumns?: ExtraColumns;
2136
- /** Adds booking series: a recurrence rule that books every occurrence. */
2137
- readonly recurring?: boolean;
2138
- };
2139
- //#endregion
2140
- //#region src/blocks/bulk/options.d.ts
2141
- /** `blocks['bulk'].options`. */
2142
- type BulkSqlOptions = {
2143
- readonly limit?: number;
2144
- readonly actions?: unknown;
2145
- };
2146
- //#endregion
2147
- //#region src/blocks/calendar/options.d.ts
2148
- /**
2149
- * How structured rule columns store BYDAY and BYMONTHDAY: weekday codes in
2150
- * lower case, one month day per rule, and an ordinal weekday (`2TU`) in two
2151
- * columns of the app's rules table.
2152
- */
2153
- type CalendarRuleDialect = {
2154
- readonly weekdays?: "upper" | "lower";
2155
- readonly monthDay?: "list" | "scalar";
2156
- readonly ordinal?: {
2157
- readonly weekday: string;
2158
- readonly position: string;
2159
- };
2160
- };
2161
- type CalendarAccessFunctions = {
2162
- readonly read?: string;
2163
- readonly write?: string;
2164
- };
2165
- /** `blocks.calendar.options`. */
2166
- type CalendarSqlOptions = {
2167
- readonly extraColumns?: ExtraColumns;
2168
- /**
2169
- * Columns of the app's own on the calendars table, which `create_calendar`
2170
- * takes as `fields` and `list_calendars` returns under `fields`.
2171
- */
2172
- readonly calendarExtraColumns?: ExtraColumns;
2173
- readonly access?: boolean;
2174
- readonly accessFunctions?: CalendarAccessFunctions;
2175
- readonly userFeed?: boolean;
2176
- readonly recurrence?: "inline" | "table";
2177
- readonly rdates?: boolean;
2178
- readonly attendeeKey?: "email" | "any";
2179
- readonly calendarDetails?: boolean;
2180
- readonly ruleDialect?: CalendarRuleDialect;
2181
- };
2182
- //#endregion
2183
- //#region src/blocks/catalog/options.d.ts
2184
- /** `blocks.catalog.options`. */
2185
- type CatalogSqlOptions = {
2186
- readonly storefront?: string;
2187
- readonly extraColumns?: ExtraColumns;
2188
- /** Language tags the catalog translates into; the first is the default. */
2189
- readonly locales?: readonly string[];
2190
- };
2191
- //#endregion
2192
- //#region src/blocks/collections/options.d.ts
2193
- /** `blocks.collections.options`. */
2194
- type CollectionsSqlOptions = {
2195
- readonly extraColumns?: ExtraColumns;
2196
- };
2197
- //#endregion
2198
- //#region src/blocks/comments/options.d.ts
2199
- /**
2200
- * `blocks.comments.options`. The body limit, documents and extra columns are
2201
- * the messaging block's options, and the records come from `config.subjects`.
2202
- */
2203
- type CommentsSqlOptions = {
2204
- readonly follow?: boolean;
2205
- readonly mentionGroups?: unknown;
2206
- /** `false` sends no `comment.posted` notification to the record's followers. */
2207
- readonly notify?: boolean;
2208
- };
2209
- //#endregion
2210
- //#region src/blocks/compliance/options.d.ts
2211
- /** `blocks.compliance.options`. */
2212
- type ComplianceSqlOptions = {
2213
- readonly extraColumns?: ExtraColumns;
2214
- };
2215
- //#endregion
2216
- //#region src/blocks/connectors/options.d.ts
2217
- /** `blocks.connectors.options`. */
2218
- type ConnectorsSqlOptions = {
2219
- readonly allowHttp?: boolean;
2220
- readonly trustFirstUse?: boolean;
2221
- readonly sessionTtl?: string;
2222
- readonly extraColumns?: ExtraColumns;
2223
- };
2224
- //#endregion
2225
- //#region src/blocks/contacts/options.d.ts
2226
- /** `blocks.contacts.options`. */
2227
- type ContactsSqlOptions = {
2228
- readonly companyLifecycles?: unknown;
2229
- readonly personLifecycles?: unknown;
2230
- readonly extraColumns?: ExtraColumns;
2231
- };
2232
- //#endregion
2233
- //#region src/blocks/contracts/options.d.ts
2234
- /** `blocks.contracts.options`. */
2235
- type ContractsSqlOptions = {
2236
- /** Days before the notice deadline the owner's renewal reminder fires. */
2237
- readonly reminderDays?: number;
2238
- readonly extraColumns?: ExtraColumns;
2239
- };
2240
- //#endregion
2241
- //#region src/blocks/credentials/options.d.ts
2242
- /** `blocks.credentials.options`. */
2243
- type CredentialsSqlOptions = {
2244
- readonly secretStorage?: string;
2245
- };
2246
- //#endregion
2247
- //#region src/blocks/custom-fields/options.d.ts
2248
- /** `blocks.custom-fields.options`. */
2249
- type CustomFieldsSqlOptions = {
2250
- readonly layout?: string;
2251
- /**
2252
- * Writes one `read` audit entry per `read_field_values` call that returns an
2253
- * encrypted or sensitive value. Needs the audit block.
2254
- */
2255
- readonly auditReads?: boolean;
2256
- /**
2257
- * Keyed layout: the type of the `rank` column. `text` (the default) holds
2258
- * fractional keys in `collate "C"` order; `integer` holds whole numbers, cast
2259
- * to the type of the app's own rank column.
2260
- */
2261
- readonly rankType?: "text" | "integer";
2262
- /**
2263
- * Keyed layout: what `read_field_values` checks. `tenant` (the default) needs
2264
- * `permissions.read` in the tenant; `record` needs only that the caller can
2265
- * read the record, through `can_subject(type, id, 'read')`.
2266
- */
2267
- readonly readAccess?: "tenant" | "record";
2268
- };
2269
- //#endregion
2270
- //#region src/blocks/data-lifecycle/options.d.ts
2271
- /** `blocks.data-lifecycle.options`. */
2272
- type DataLifecycleSqlOptions = {
2273
- readonly bucket?: string;
2274
- readonly grace?: string;
2275
- readonly exportTtl?: string;
2276
- readonly tables?: unknown;
2277
- readonly autoTables?: unknown;
2278
- readonly tenantRow?: unknown;
2279
- readonly anonymize?: unknown;
2280
- readonly omitPattern?: unknown;
2281
- };
2282
- //#endregion
2283
- //#region src/blocks/deals/options.d.ts
2284
- /** `blocks.deals.options`. */
2285
- type DealsSqlOptions = {
2286
- readonly company?: string;
2287
- readonly contact?: string;
2288
- readonly motions?: unknown;
2289
- readonly priorities?: unknown;
2290
- readonly prefix?: string;
2291
- readonly readAll?: boolean;
2292
- readonly extraColumns?: ExtraColumns;
2293
- readonly lineExtraColumns?: ExtraColumns;
2294
- };
2295
- //#endregion
2296
- //#region src/blocks/documents/options.d.ts
2297
- /** `blocks.documents.options`. */
2298
- type DocumentsSqlOptions = {
2299
- readonly topic?: string;
2300
- readonly maxUpdateBytes?: number;
2301
- readonly compactAfter?: number;
2302
- };
2303
- //#endregion
2304
- //#region src/blocks/domains/options.d.ts
2305
- /** `blocks.domains.options`. */
2306
- type DomainsSqlOptions = {
2307
- /**
2308
- * The app's own domain: one label below it is a subdomain verified when
2309
- * added.
2310
- */
2311
- readonly platformDomain?: string;
2312
- /** The TXT record name's first label: `<txtPrefix>.<hostname>`. */
2313
- readonly txtPrefix?: string;
2314
- };
2315
- //#endregion
2316
- //#region src/blocks/donations/options.d.ts
2317
- /** `blocks.donations.options`. */
2318
- type DonationsSqlOptions = {
2319
- readonly extraColumns?: ExtraColumns;
2320
- };
2321
- //#endregion
2322
- //#region src/blocks/drive/options.d.ts
2323
- /** `blocks.drive.options`. */
2324
- type DriveSqlOptions = {
2325
- readonly roles?: readonly string[];
2326
- readonly writeRole?: unknown;
2327
- readonly shareRole?: unknown;
2328
- readonly memberRole?: unknown;
2329
- readonly subjectType?: string;
2330
- readonly conflict?: string;
2331
- readonly extraColumns?: ExtraColumns;
2332
- };
2333
- //#endregion
2334
- //#region src/blocks/employees/options.d.ts
2335
- /** `blocks.employees.options`. */
2336
- type EmployeesSqlOptions = {
2337
- readonly employmentTypes?: readonly string[];
2338
- readonly extraColumns?: ExtraColumns;
2339
- /**
2340
- * Columns of the app's own on the private details table, which
2341
- * `savePrivateDetails` takes under `fields`.
2342
- */
2343
- readonly privateDetailsExtraColumns?: ExtraColumns;
2344
- /** Columns of the app's own on the contracts table, set from `fields`. */
2345
- readonly contractExtraColumns?: ExtraColumns;
2346
- readonly name?: "single" | "split";
2347
- readonly privateDetails?: "json" | "flat";
2348
- readonly contracts?: "append" | "editable";
2349
- /** Whether the app's salary column holds minor or major units. */
2350
- readonly salaryUnits?: "minor" | "major";
2351
- /**
2352
- * With editable contracts, `allow` adds a contract without the overlap check
2353
- * and leaves the previous one as it is.
2354
- */
2355
- readonly contractOverlap?: "end" | "allow";
2356
- };
2357
- //#endregion
2358
- //#region src/blocks/expenses/options.d.ts
2359
- /** `blocks.expenses.options`. */
2360
- type ExpensesSqlOptions = {
2361
- readonly extraColumns?: ExtraColumns;
2362
- };
2363
- //#endregion
2364
- //#region src/blocks/flags/options.d.ts
2365
- /**
2366
- * A custom context's source: the table and column that hold a tenant's value,
2367
- * and the column with the tenant id (`id` by default).
2368
- */
2369
- interface FlagContextColumn {
2370
- readonly table: string;
2371
- readonly column: string;
2372
- readonly tenant?: string;
2373
- }
2374
- /** `blocks['flags'].options`. */
2375
- type FlagsSqlOptions = {
2376
- /**
2377
- * Custom contexts by name, e.g. `{ brand: { table: "public.organizations",
2378
- * column: "brand_id" } }`.
2379
- */
2380
- readonly contexts?: Readonly<Record<string, FlagContextColumn>>;
2381
- readonly extraColumns?: ExtraColumns;
2382
- };
2383
- //#endregion
2384
- //#region src/blocks/forms/options.d.ts
2385
- /** `blocks.forms.options`. */
2386
- type FormsSqlOptions = {
2387
- readonly handlers?: unknown;
2388
- readonly publicLimit?: unknown;
2389
- readonly extraColumns?: ExtraColumns;
2390
- };
2391
- //#endregion
2392
- //#region src/blocks/goals/options.d.ts
2393
- /** `blocks.goals.options`. */
2394
- type GoalsSqlOptions = {
2395
- readonly extraColumns?: ExtraColumns;
2396
- };
2397
- //#endregion
2398
- //#region src/blocks/grants/options.d.ts
2399
- /** `blocks['grants'].options`. */
2400
- type GrantsSqlOptions = {
2401
- readonly fromPolicies?: unknown;
2402
- };
2403
- //#endregion
2404
- //#region src/blocks/hiring/options.d.ts
2405
- type HiringStageMarker = string | {
2406
- readonly column: string;
2407
- readonly value: string;
2408
- };
2409
- type HiringJobStages = {
2410
- readonly table: string;
2411
- readonly id?: string;
2412
- readonly job: string;
2413
- readonly rank: string;
2414
- readonly archivedAt?: string;
2415
- readonly hired?: HiringStageMarker;
2416
- readonly rejected?: HiringStageMarker;
2417
- readonly withdrawn?: HiringStageMarker;
2418
- };
2419
- /** `blocks.hiring.options`. */
2420
- type HiringSqlOptions = {
2421
- readonly candidate?: string;
2422
- readonly extraColumns?: ExtraColumns;
2423
- readonly stages?: "pipelines" | HiringJobStages;
2424
- readonly scorecardKey?: "stage" | "application";
2425
- readonly hiringManager?: "user" | "employee";
2426
- };
2427
- //#endregion
2428
- //#region src/blocks/identities/options.d.ts
2429
- /** `blocks['identities'].options`. */
2430
- type IdentitiesSqlOptions = {
2431
- readonly codeMinutes?: number;
2432
- readonly verifiedEmails?: boolean;
2433
- };
2434
- //#endregion
2435
- //#region src/blocks/impersonation/options.d.ts
2436
- /** `blocks.impersonation.options`. */
2437
- type ImpersonationSqlOptions = {
2438
- readonly allowPlatformTargets?: unknown;
2439
- readonly allowWrites?: unknown;
2440
- readonly approval?: unknown;
2441
- readonly approvalTtl?: unknown;
2442
- readonly auditCategory?: unknown;
2443
- readonly claimsHook?: unknown;
2444
- readonly maxTtl?: unknown;
2445
- readonly requireReason?: unknown;
2446
- };
2447
- //#endregion
2448
- //#region src/blocks/inbox/options.d.ts
2449
- /** `blocks.inbox.options`. */
2450
- type InboxSqlOptions = {
2451
- readonly topic?: string;
2452
- readonly bucket?: string;
2453
- readonly maxBodyLength?: number;
2454
- readonly botQueue?: unknown;
2455
- readonly outboundQueue?: unknown;
2456
- readonly scheduleQueue?: unknown;
2457
- readonly notify?: boolean;
2458
- };
2459
- //#endregion
2460
- //#region src/blocks/incidents/options.d.ts
2461
- /** `blocks.incidents.options`. */
2462
- type IncidentsSqlOptions = {
2463
- readonly extraColumns?: ExtraColumns;
2464
- };
2465
- //#endregion
2466
- //#region src/blocks/inventory/options.d.ts
2467
- /** `blocks.inventory.options`. */
2468
- type InventorySqlOptions = {
2469
- readonly extraColumns?: ExtraColumns;
2470
- };
2471
- //#endregion
2472
- //#region src/blocks/invoices/options.d.ts
2473
- /** `blocks.invoices.options`. */
2474
- type InvoicesSqlOptions = {
2475
- readonly company?: string;
2476
- readonly contact?: string;
2477
- readonly prefix?: string;
2478
- readonly creditPrefix?: string;
2479
- readonly termsDays?: number;
2480
- readonly extraColumns?: ExtraColumns;
2481
- readonly lineExtraColumns?: ExtraColumns;
2482
- };
2483
- //#endregion
2484
- //#region src/blocks/knowledge/options.d.ts
2485
- /** `blocks.knowledge.options`. */
2486
- type KnowledgeSqlOptions = {
2487
- readonly dimensions?: number;
2488
- readonly type?: string;
2489
- readonly textSearch?: string;
2490
- readonly embedQueue?: string;
2491
- readonly ingestQueue?: string;
2492
- };
2493
- //#endregion
2494
- //#region src/blocks/leases/options.d.ts
2495
- /** `blocks.leases.options`. */
2496
- type LeasesSqlOptions = {
2497
- readonly extraColumns?: ExtraColumns;
2498
- };
2499
- //#endregion
2500
- //#region src/blocks/leave/options.d.ts
2501
- /** `blocks.leave.options`. */
2502
- type LeaveSqlOptions = {
2503
- readonly policy?: unknown;
2504
- readonly workingDays?: readonly string[];
2505
- readonly allowNegative?: boolean;
2506
- readonly extraColumns?: ExtraColumns;
2507
- };
2508
- //#endregion
2509
- //#region src/blocks/memory/options.d.ts
2510
- /** `blocks.memory.options`. */
2511
- type MemorySqlOptions = {
2512
- readonly dimensions?: unknown;
2513
- readonly type?: unknown;
2514
- readonly textSearch?: unknown;
2515
- readonly maxContent?: number;
2516
- };
2517
- //#endregion
2518
- //#region src/blocks/messaging/options.d.ts
2519
- /** `blocks.messaging.options`. */
2520
- type MessagingSqlOptions = {
2521
- /** The Realtime topic prefix: pings go to `<topic>:<conversation id>`. */
2522
- readonly topic?: string;
2523
- /** `1` keeps threads one level deep; `unlimited` nests replies. */
2524
- readonly threadDepth?: 1 | "unlimited";
2525
- readonly maxBodyLength?: number;
2526
- /** Seconds an author may edit a message; `0` for always. */
2527
- readonly editWindow?: number;
2528
- /** The jobs queue that sends scheduled messages. */
2529
- readonly scheduleQueue?: string;
2530
- readonly extraColumns?: ExtraColumns;
2531
- /**
2532
- * `false` sends no `message.mentioned`, `message.direct` or `message.replied`
2533
- * notification.
2534
- */
2535
- readonly notify?: boolean;
2536
- };
2537
- //#endregion
2538
- //#region src/blocks/metrics/options.d.ts
2539
- /** `blocks.metrics.options`. */
2540
- type MetricsSqlOptions = {
2541
- readonly metrics?: unknown;
2542
- readonly window?: string;
2543
- };
2544
- //#endregion
2545
- //#region src/blocks/notifications/options.d.ts
2546
- /** `blocks.notifications.options`. */
2547
- type NotificationsSqlOptions = {
2548
- readonly channelDefaults?: unknown;
2549
- readonly channels?: readonly string[];
2550
- readonly createdEvent?: string;
2551
- readonly maxRecipients?: number;
2552
- readonly partitioned?: boolean;
2553
- readonly priorities?: readonly string[];
2554
- readonly realtime?: string;
2555
- readonly topic?: string;
2556
- readonly updatedEvent?: string;
2557
- readonly extraColumns?: ExtraColumns;
2558
- };
2559
- //#endregion
2560
- //#region src/blocks/numbering/options.d.ts
2561
- /** One numbered entity of `blocks.numbering.options.entities`. */
2562
- type NumberSequenceEntityOptions = {
2563
- readonly period: "none" | "year" | "month" | "format" | {
2564
- readonly fiscalYearStartMonth: number;
2565
- };
2566
- readonly format: string;
2567
- /**
2568
- * A tenant's own format: `column` is `schema.table.column`, `key` holds the
2569
- * tenant id (default `id`).
2570
- */
2571
- readonly formatFrom?: {
2572
- readonly column: string;
2573
- readonly key?: string;
2574
- };
2575
- readonly periodFrom?: {
2576
- readonly column: string;
2577
- readonly key?: string;
2578
- };
2579
- readonly table?: string;
2580
- readonly column?: string;
2581
- readonly sequenceColumn?: string;
2582
- readonly tenantColumn?: string;
2583
- readonly periodColumn?: string;
2584
- readonly assignOn?: string;
2585
- readonly permission?: string;
2586
- };
2587
- /** `blocks.numbering.options`. */
2588
- type NumberingSqlOptions = {
2589
- readonly entities?: Readonly<Record<string, NumberSequenceEntityOptions>>;
2590
- };
2591
- //#endregion
2592
- //#region src/blocks/oauth-server/options.d.ts
2593
- /** `blocks.oauth-server.options`. */
2594
- type OAuthServerSqlOptions = {
2595
- /**
2596
- * The pattern a client id must match: a regular expression, or `"slug"` for
2597
- * lower-case slugs such as `acme-cli`. The default accepts the 22-character
2598
- * ids `registerClient` generates and any `[A-Za-z0-9._~-]{8,128}` id.
2599
- */
2600
- readonly clientIdPattern?: string;
2601
- };
2602
- //#endregion
2603
- //#region src/blocks/onboarding/options.d.ts
2604
- /** `blocks.onboarding.options`. */
2605
- type OnboardingSqlOptions = {
2606
- readonly checklists?: unknown;
2607
- };
2608
- //#endregion
2609
- //#region src/blocks/orders/options.d.ts
2610
- /** `blocks.orders.options`. */
2611
- type OrdersSqlOptions = {
2612
- readonly paymentWindowMinutes?: number;
2613
- readonly extraColumns?: ExtraColumns;
2614
- /** Per-line preparation states and kitchen stations. Off by default. */
2615
- readonly kitchen?: boolean;
2616
- };
2617
- //#endregion
2618
- //#region src/blocks/organizations/options.d.ts
2619
- /** `blocks.organizations.options`. */
2620
- type OrganizationsSqlOptions = {
2621
- readonly assignmentGuard?: string;
2622
- readonly attributes?: readonly string[];
2623
- readonly auditCategory?: unknown;
2624
- readonly deleteMode?: string;
2625
- readonly extraColumns?: ExtraColumns;
2626
- readonly formerOwnerRole?: string;
2627
- readonly ownerInvariant?: boolean;
2628
- readonly ownerRole?: string;
2629
- readonly reservedSlugs?: readonly string[];
2630
- readonly slugCitext?: boolean;
2631
- readonly slugMaxLength?: number;
2632
- readonly slugMinLength?: number;
2633
- readonly slugPattern?: string;
2634
- };
2635
- /**
2636
- * `platformRoles`: the platform roles a provider keeps outside the tenant,
2637
- * which an invitation can grant.
2638
- */
2639
- interface PlatformRolesOption {
2640
- /** `schema.table` of the platform role grants. */
2641
- readonly table: string;
2642
- /** The user column. */
2643
- readonly user: string;
2644
- /** The role column. */
2645
- readonly role: string;
2646
- /** Where the role name lives when `role` holds an id. */
2647
- readonly through?: {
2648
- readonly table: string;
2649
- readonly id: string;
2650
- readonly column: string;
2651
- /** A condition on the roles row `{row}`. */
2652
- readonly where?: string;
2653
- };
2654
- /** A SQL template that holds when the caller may grant `{role}`. */
2655
- readonly canAssign?: string;
2656
- /** The same check for another user, `{user}`. */
2657
- readonly canAssignFor?: string;
2658
- }
2659
- /** `blocks.invitations.options`. */
2660
- type InvitationsSqlOptions = {
2661
- readonly maxValidFor?: string;
2662
- readonly platformRoles?: PlatformRolesOption;
2663
- readonly prefill?: boolean;
2664
- readonly previewColumns?: readonly string[];
2665
- readonly requireConfirmedEmail?: boolean;
2666
- readonly tokenBytes?: number;
2667
- readonly tokenStorage?: string;
2668
- readonly validFor?: string;
2669
- readonly extraColumns?: ExtraColumns;
2670
- /** The role `create_invitation` and `invite_member` use when none is named. */
2671
- readonly defaultRole?: string;
2672
- /** Extra roles and teams an invitation grants on accept. */
2673
- readonly onAccept?: {
2674
- readonly roles?: boolean;
2675
- readonly teams?: boolean;
2676
- };
2677
- };
2678
- //#endregion
2679
- //#region src/blocks/outbox/options.d.ts
2680
- /** `blocks.outbox.options`. */
2681
- type OutboxSqlOptions = {
2682
- readonly defaultSource?: string;
2683
- readonly emitRoles?: readonly string[];
2684
- readonly blockSource?: unknown;
2685
- readonly partitioned?: boolean;
2686
- readonly retention?: string;
2687
- readonly settle?: string;
2688
- };
2689
- //#endregion
2690
- //#region src/blocks/permissions/options.d.ts
2691
- /** `blocks.permissions.options`. */
2692
- type PermissionsSqlOptions = {
2693
- readonly platformRoleScope?: string;
2694
- readonly scope?: string;
2695
- readonly tenantRoleScope?: string;
2696
- };
2697
- //#endregion
2698
- //#region src/blocks/pipelines/options.d.ts
2699
- /** `blocks.pipelines.options`. */
2700
- type PipelinesSqlOptions = {
2701
- readonly extraColumns?: ExtraColumns;
2702
- };
2703
- //#endregion
2704
- //#region src/blocks/profiles/options.d.ts
2705
- /** `blocks.profiles.options`. */
2706
- type ProfilesSqlOptions = {
2707
- readonly columnGrants?: boolean;
2708
- readonly extraColumns?: ExtraColumns;
2709
- readonly metadata?: unknown;
2710
- readonly mirrorEmail?: boolean;
2711
- readonly readPolicy?: unknown;
2712
- readonly reservedUsernames?: readonly string[];
2713
- readonly serviceColumns?: readonly string[];
2714
- readonly splitName?: boolean;
2715
- readonly syncTrigger?: boolean;
2716
- readonly updatable?: readonly string[];
2717
- readonly username?: boolean;
2718
- readonly usernameFrom?: unknown;
2719
- readonly usernameMaxLength?: number;
2720
- readonly usernameMinLength?: number;
2721
- };
2722
- //#endregion
2723
- //#region src/blocks/promotions/options.d.ts
2724
- /** `blocks.promotions.options`. */
2725
- type PromotionsSqlOptions = {
2726
- readonly extraColumns?: ExtraColumns;
2727
- };
2728
- //#endregion
2729
- //#region src/blocks/push/options.d.ts
2730
- /** `blocks.push.options`. */
2731
- type PushSqlOptions = {
2732
- readonly extraColumns?: ExtraColumns;
2733
- };
2734
- //#endregion
2735
- //#region src/blocks/queue/options.d.ts
2736
- /** `blocks.queue.options`. */
2737
- type QueueSqlOptions = {
2738
- readonly backend?: string;
2739
- readonly scheduler?: string;
2740
- };
2741
- /** `blocks.rate-limit.options`. */
2742
- type RateLimitSqlOptions = {
2743
- readonly preRequest?: boolean;
2744
- };
2745
- /** `blocks.webhook-inbox.options`. */
2746
- type WebhookInboxSqlOptions = {
2747
- readonly extraColumns?: ExtraColumns;
2748
- };
2749
- //#endregion
2750
- //#region src/blocks/quotes/options.d.ts
2751
- /** `blocks.quotes.options`. */
2752
- type QuotesSqlOptions = {
2753
- readonly company?: string;
2754
- readonly contact?: string;
2755
- readonly prefix?: string;
2756
- readonly validDays?: number;
2757
- readonly extraColumns?: ExtraColumns;
2758
- readonly lineExtraColumns?: ExtraColumns;
2759
- };
2760
- //#endregion
2761
- //#region src/blocks/reactions/options.d.ts
2762
- /** `blocks.reactions.options`. */
2763
- type ReactionsSqlOptions = {
2764
- readonly topic?: string;
2765
- };
2766
- //#endregion
2767
- //#region src/blocks/relations/options.d.ts
2768
- /** `blocks.relations.options`. */
2769
- type RelationsSqlOptions = {
2770
- readonly kinds?: unknown;
2771
- readonly extraColumns?: ExtraColumns;
2772
- };
2773
- //#endregion
2774
- //#region src/blocks/reminders/options.d.ts
2775
- /** `blocks.reminders.options`. */
2776
- type RemindersSqlOptions = {
2777
- readonly ruleFormat?: string;
2778
- readonly extraColumns?: ExtraColumns;
2779
- };
2780
- //#endregion
2781
- //#region src/blocks/reserved-slugs/options.d.ts
2782
- /** `blocks.reserved-slugs.options`. */
2783
- type ReservedSlugsSqlOptions = {
2784
- readonly maxLength?: number;
2785
- readonly minLength?: number;
2786
- readonly slugs?: readonly string[];
2787
- };
2788
- //#endregion
2789
- //#region src/blocks/reviews/options.d.ts
2790
- /** `blocks.reviews.options`. */
2791
- type ReviewsSqlOptions = {
2792
- readonly scale?: number;
2793
- readonly maxBodyLength?: number;
2794
- readonly moderation?: string;
2795
- readonly requirePurchase?: boolean;
2796
- readonly extraColumns?: ExtraColumns;
2797
- };
2798
- //#endregion
2799
- //#region src/blocks/saved-views/options.d.ts
2800
- /** `blocks.saved-views.options`. */
2801
- type SavedViewsSqlOptions = {
2802
- readonly extraColumns?: ExtraColumns;
2803
- };
2804
- //#endregion
2805
- //#region src/blocks/search/options.d.ts
2806
- /** `blocks.search.options`. */
2807
- type SearchSqlOptions = {
2808
- readonly config?: string;
2809
- readonly dimensions?: number;
2810
- };
2811
- //#endregion
2812
- //#region src/blocks/security-events/options.d.ts
2813
- /** `blocks["security-events"].options`. */
2814
- type SecurityEventsSqlOptions = {
2815
- readonly retention?: string;
2816
- };
2817
- //#endregion
2818
- //#region src/blocks/service-accounts/options.d.ts
2819
- /** `blocks["service-accounts"].options`. */
2820
- type ServiceAccountsSqlOptions = {
2821
- readonly extraColumns?: ExtraColumns;
2822
- };
2823
- //#endregion
2824
- //#region src/blocks/sessions/options.d.ts
2825
- /** `blocks['sessions'].options`. */
2826
- type SessionsSqlOptions = {
2827
- readonly exclude?: readonly string[];
2828
- readonly policies?: boolean;
2829
- };
2830
- //#endregion
2831
- //#region src/blocks/settings/options.d.ts
2832
- /** `blocks.settings.options`. */
2833
- type SettingsSqlOptions = {
2834
- readonly schemas?: unknown;
2835
- readonly platform?: unknown;
2836
- };
2837
- //#endregion
2838
- //#region src/blocks/share-links/options.d.ts
2839
- /** `blocks.share-links.options`. */
2840
- type ShareLinksSqlOptions = {
2841
- readonly extraColumns?: ExtraColumns;
2842
- /**
2843
- * `create_share_link` takes a `token_hash` the caller made (sha256 hex), and
2844
- * `find_share_link(token_hash)` looks a live link up by it without counting a
2845
- * use.
2846
- */
2847
- readonly tokenHash?: boolean;
2848
- /**
2849
- * `list_share_links` returns each link's tenant, subject, creator and
2850
- * creation time, and takes `include_revoked`.
2851
- */
2852
- readonly fullRows?: boolean;
2853
- };
2854
- //#endregion
2855
- //#region src/blocks/signing-keys/options.d.ts
2856
- /** `blocks.signing-keys.options`. */
2857
- type SigningKeysSqlOptions = {
2858
- readonly jwksGrace?: string;
2859
- };
2860
- //#endregion
2861
- //#region src/blocks/sla/options.d.ts
2862
- /** `blocks.sla.options`. */
2863
- type SlaSqlOptions = {
2864
- readonly businessHours?: unknown;
2865
- readonly extraColumns?: ExtraColumns;
2866
- };
2867
- //#endregion
2868
- //#region src/blocks/sso/options.d.ts
2869
- /** `blocks.sso.options`. */
2870
- type SsoSqlOptions = {
2871
- readonly txtPrefix?: string;
2872
- readonly defaultRole?: string;
2873
- readonly roleOrder?: readonly string[];
2874
- readonly groupRoles?: unknown;
2875
- /** Adds `scim_sync_log` and its functions, for `sqlScimSyncLog`. */
2876
- readonly syncLog?: boolean;
2877
- };
2878
- //#endregion
2879
- //#region src/blocks/state-machine/options.d.ts
2880
- /** `blocks.state-machine.options`. */
2881
- type StateMachineSqlOptions = {
2882
- readonly machines?: unknown;
2883
- };
2884
- //#endregion
2885
- //#region src/blocks/streams/options.d.ts
2886
- /** `blocks.streams.options`. */
2887
- type StreamsSqlOptions = {
2888
- readonly topic?: string;
2889
- };
2890
- //#endregion
2891
- //#region src/blocks/tags/options.d.ts
2892
- /** `blocks.tags.options`. */
2893
- type TagsSqlOptions = {
2894
- readonly extraColumns?: ExtraColumns;
2895
- /**
2896
- * `create_tag` takes the caller's `slug`, and `update_tag` a `patch` that
2897
- * sets `name`, `slug`, `color`, `description` and `kind` and can clear the
2898
- * nullable ones.
2899
- */
2900
- readonly patch?: boolean;
2901
- };
2902
- //#endregion
2903
- //#region src/blocks/tasks/options.d.ts
2904
- /** `blocks.tasks.options`. */
2905
- type TasksSqlOptions = {
2906
- readonly prefix?: string;
2907
- readonly maxAssignees?: number;
2908
- readonly extraColumns?: ExtraColumns;
2909
- /** Whether an item's author can delete it without the delete key. */
2910
- readonly authorCanDelete?: boolean;
2911
- };
2912
- //#endregion
2913
- //#region src/blocks/teams/options.d.ts
2914
- /** `blocks.teams.options`. */
2915
- type TeamsSqlOptions = {
2916
- /** The key type of teams. Default `uuid`; `inbox` needs `uuid`. */
2917
- readonly teamIdType?: "uuid" | "bigint";
2918
- readonly extraColumns?: ExtraColumns;
2919
- /**
2920
- * `create_team` takes the caller's `slug`, and `update_team` a `patch` that
2921
- * sets `name`, `slug` and `description` and can clear the description.
2922
- */
2923
- readonly patch?: boolean;
2924
- /** Writes `restore_team`, which makes an archived team active again. */
2925
- readonly restore?: boolean;
2926
- };
2927
- //#endregion
2928
- //#region src/blocks/templates/options.d.ts
2929
- /** `blocks.templates.options`. */
2930
- type TemplatesSqlOptions = {
2931
- readonly extraColumns?: ExtraColumns;
2932
- };
2933
- //#endregion
2934
- //#region src/blocks/time-tracking/options.d.ts
2935
- /** `blocks.time-tracking.options`. */
2936
- type TimeTrackingSqlOptions = {
2937
- readonly policy?: unknown;
2938
- readonly timeZone?: string;
2939
- readonly extraColumns?: ExtraColumns;
2940
- /**
2941
- * `false` keeps timesheets without the approvals block: a status column holds
2942
- * open, submitted, approved or rejected, and members with
2943
- * `time_tracking.approve` decide through `approve_timesheet` and
2944
- * `reject_timesheet`. Default `true`.
2945
- */
2946
- readonly approvals?: boolean;
2947
- /**
2948
- * The column that holds each user's IANA time zone, as `{ column:
2949
- * "schema.table.column", key? }` (`key` defaults to `id`). Weeks then start
2950
- * in the user's own zone, and in `timeZone` for a user without one.
2951
- */
2952
- readonly userTimeZone?: {
2953
- readonly column: string;
2954
- readonly key?: string;
2955
- };
2956
- readonly owner?: "user" | "employee";
2957
- };
2958
- //#endregion
2959
- //#region src/blocks/trash/options.d.ts
2960
- /** `blocks.trash.options`. */
2961
- type TrashSqlOptions = {
2962
- readonly retentionDays?: number;
2963
- readonly extraColumns?: ExtraColumns;
2964
- /**
2965
- * The column that marks a trashed row on tables outside `on`;
2966
- * `trashExtension` filters on it and sets it on delete.
2967
- */
2968
- readonly deletedAt?: string;
2969
- };
2970
- //#endregion
2971
- //#region src/blocks/usage/options.d.ts
2972
- /** `blocks.usage.options`. */
2973
- type UsageSqlOptions = {
2974
- readonly meters?: unknown;
2975
- readonly history?: boolean;
2976
- readonly partitioned?: boolean;
2977
- };
2978
- //#endregion
2979
- //#region src/blocks/vector-search/options.d.ts
2980
- /** `blocks.vector-search.options`. */
2981
- type VectorSearchSqlOptions = {
2982
- readonly schema?: unknown;
2983
- };
2984
- //#endregion
2985
- //#region src/blocks/vercel-marketplace/options.d.ts
2986
- /** `blocks.vercel-marketplace.options`. */
2987
- type VercelMarketplaceSqlOptions = {
2988
- /**
2989
- * The currency an invoice takes when the webhook names none (ISO 4217,
2990
- * lowercase).
2991
- */
2992
- readonly currency?: string;
2993
- };
2994
- //#endregion
2995
- //#region src/blocks/versions/options.d.ts
2996
- /** `blocks.versions.options`. */
2997
- type VersionsSqlOptions = {
2998
- readonly keep?: number;
2999
- readonly debounce?: number;
3000
- readonly extraColumns?: ExtraColumns;
3001
- };
3002
- //#endregion
3003
- //#region src/blocks/waitlist/options.d.ts
3004
- /** `blocks.waitlist.options`. */
3005
- type WaitlistSqlOptions = {
3006
- readonly defaultRole?: string;
3007
- readonly codeField?: string;
3008
- readonly roles?: readonly string[];
3009
- readonly extraColumns?: ExtraColumns;
3010
- };
3011
- //#endregion
3012
- //#region src/blocks/webhooks/options.d.ts
3013
- /** `blocks.webhooks-out.options`. */
3014
- type WebhooksOutSqlOptions = {
3015
- readonly allowHttp?: boolean;
3016
- readonly defaultFormat?: string;
3017
- readonly disableAfter?: string;
3018
- readonly eventIdType?: unknown;
3019
- readonly partitioned?: boolean;
3020
- readonly runIdType?: unknown;
3021
- readonly secretStorage?: string;
3022
- readonly statuses?: unknown;
3023
- };
3024
- /** `blocks.webhooks-in.options`. */
3025
- type WebhooksInSqlOptions = {
3026
- readonly maxBodyBytes?: number;
3027
- readonly secretStorage?: string;
3028
- };
3029
- //#endregion
3030
- //#region src/blocks/workflow-editor/options.d.ts
3031
- /** `blocks["workflow-editor"].options`. */
3032
- type WorkflowEditorSqlOptions = {
3033
- readonly extraColumns?: ExtraColumns;
3034
- };
3035
- //#endregion
3036
- //#region src/blocks/workflow-sdk/options.d.ts
3037
- /** `blocks["workflow-sdk"].options`. */
3038
- type WorkflowSdkSqlOptions = {
3039
- readonly delivery?: string;
3040
- readonly queue?: string;
3041
- readonly batch?: number;
3042
- readonly timeout?: number;
3043
- readonly schedule?: string;
3044
- };
3045
- //#endregion
3046
- //#region src/blocks/options-registry.d.ts
3047
- type None = Record<never, never>;
3048
- /**
3049
- * The options of every SQL module, keyed by module name. `BlocksConfig` types
3050
- * `blocks.<module>.options` from it, and `schemas/config-v1.json` is generated
3051
- * from `BLOCK_OPTION_SCHEMAS`.
3052
- */
3053
- interface BlockOptionsRegistry {
3054
- readonly "access-requests": AccessRequestsSqlOptions;
3055
- readonly activities: ActivitiesSqlOptions;
3056
- readonly agents: AgentsSqlOptions;
3057
- readonly "ai-cache": AiCacheSqlOptions;
3058
- readonly "ai-chat": AiChatSqlOptions;
3059
- readonly "ai-files": AiFilesSqlOptions;
3060
- readonly "ai-keys": AiKeysSqlOptions;
3061
- readonly "ai-schedules": AiSchedulesSqlOptions;
3062
- readonly announcements: AnnouncementsSqlOptions;
3063
- readonly "api-keys": ApiKeysSqlOptions;
3064
- readonly approvals: ApprovalsSqlOptions;
3065
- readonly assets: AssetsSqlOptions;
3066
- readonly assignment: None;
3067
- readonly attachments: AttachmentsSqlOptions;
3068
- readonly audit: AuditSqlOptions;
3069
- readonly automations: AutomationsSqlOptions;
3070
- readonly "billable-time": None;
3071
- readonly billing: BillingSqlOptions;
3072
- readonly bookings: BookingsSqlOptions;
3073
- readonly bulk: BulkSqlOptions;
3074
- readonly calendar: CalendarSqlOptions;
3075
- readonly catalog: CatalogSqlOptions;
3076
- readonly channels: None;
3077
- readonly "chat-sdk-state": None;
3078
- readonly collections: CollectionsSqlOptions;
3079
- readonly comments: CommentsSqlOptions;
3080
- readonly compliance: ComplianceSqlOptions;
3081
- readonly connectors: ConnectorsSqlOptions;
3082
- readonly contacts: ContactsSqlOptions;
3083
- readonly contracts: ContractsSqlOptions;
3084
- readonly courses: CoursesSqlOptions;
3085
- readonly "created-by": CreatedBySqlOptions;
3086
- readonly credentials: CredentialsSqlOptions;
3087
- readonly "custom-fields": CustomFieldsSqlOptions;
3088
- readonly flags: FlagsSqlOptions;
3089
- readonly "data-lifecycle": DataLifecycleSqlOptions;
3090
- readonly deals: DealsSqlOptions;
3091
- readonly dispatch: DispatchSqlOptions;
3092
- readonly documents: DocumentsSqlOptions;
3093
- readonly domains: DomainsSqlOptions;
3094
- readonly donations: DonationsSqlOptions;
3095
- readonly drive: DriveSqlOptions;
3096
- readonly "drive-files": None;
3097
- readonly employees: EmployeesSqlOptions;
3098
- readonly enrichment: None;
3099
- readonly enrollments: EnrollmentsSqlOptions;
3100
- readonly entitlements: None;
3101
- readonly expenses: ExpensesSqlOptions;
3102
- readonly "field-encryption": None;
3103
- readonly "field-history": None;
3104
- readonly forecasts: None;
3105
- readonly forms: FormsSqlOptions;
3106
- readonly goals: GoalsSqlOptions;
3107
- readonly grants: GrantsSqlOptions;
3108
- readonly guests: None;
3109
- readonly hiring: HiringSqlOptions;
3110
- readonly idempotency: None;
3111
- readonly identities: IdentitiesSqlOptions;
3112
- readonly impersonation: ImpersonationSqlOptions;
3113
- readonly imports: None;
3114
- readonly inbox: InboxSqlOptions;
3115
- readonly incidents: IncidentsSqlOptions;
3116
- readonly inventory: InventorySqlOptions;
3117
- readonly invitations: InvitationsSqlOptions;
3118
- readonly invoices: InvoicesSqlOptions;
3119
- readonly "jsonb-schemas": None;
3120
- readonly knowledge: KnowledgeSqlOptions;
3121
- readonly "lead-scoring": LeadScoringSqlOptions;
3122
- readonly leases: LeasesSqlOptions;
3123
- readonly leave: LeaveSqlOptions;
3124
- readonly ledger: None;
3125
- readonly "mail-sync": MailSyncSqlOptions;
3126
- readonly memberships: MembershipsSqlOptions;
3127
- readonly memory: MemorySqlOptions;
3128
- readonly messaging: MessagingSqlOptions;
3129
- readonly metrics: MetricsSqlOptions;
3130
- readonly mfa: None;
3131
- readonly moderation: ModerationSqlOptions;
3132
- readonly notifications: NotificationsSqlOptions;
3133
- readonly numbering: NumberingSqlOptions;
3134
- readonly "oauth-server": OAuthServerSqlOptions;
3135
- readonly onboarding: OnboardingSqlOptions;
3136
- readonly orders: OrdersSqlOptions;
3137
- readonly organizations: OrganizationsSqlOptions;
3138
- readonly outbox: OutboxSqlOptions;
3139
- readonly passes: PassesSqlOptions;
3140
- readonly permissions: PermissionsSqlOptions;
3141
- readonly pgtap: None;
3142
- readonly pipelines: PipelinesSqlOptions;
3143
- readonly posts: PostsSqlOptions;
3144
- readonly content: ContentSqlOptions;
3145
- readonly profiles: ProfilesSqlOptions;
3146
- readonly promotions: PromotionsSqlOptions;
3147
- readonly push: PushSqlOptions;
3148
- readonly queue: QueueSqlOptions;
3149
- readonly quotes: QuotesSqlOptions;
3150
- readonly rank: None;
3151
- readonly "rate-limit": RateLimitSqlOptions;
3152
- readonly reactions: ReactionsSqlOptions;
3153
- readonly "read-sets": None;
3154
- readonly "realtime-tables": None;
3155
- readonly relations: RelationsSqlOptions;
3156
- readonly reminders: RemindersSqlOptions;
3157
- readonly "reserved-slugs": ReservedSlugsSqlOptions;
3158
- readonly reviews: ReviewsSqlOptions;
3159
- readonly "rls-guard": None;
3160
- readonly "saved-views": SavedViewsSqlOptions;
3161
- readonly scores: ScoresSqlOptions;
3162
- readonly search: SearchSqlOptions;
3163
- readonly "security-events": SecurityEventsSqlOptions;
3164
- readonly segments: SegmentsSqlOptions;
3165
- readonly sequences: SequencesSqlOptions;
3166
- readonly "service-accounts": ServiceAccountsSqlOptions;
3167
- readonly sessions: SessionsSqlOptions;
3168
- readonly settings: SettingsSqlOptions;
3169
- readonly "share-links": ShareLinksSqlOptions;
3170
- readonly shipments: ShipmentsSqlOptions;
3171
- readonly signatures: SignaturesSqlOptions;
3172
- readonly "signing-keys": SigningKeysSqlOptions;
3173
- readonly sla: SlaSqlOptions;
3174
- readonly sso: SsoSqlOptions;
3175
- readonly "state-machine": StateMachineSqlOptions;
3176
- readonly streams: StreamsSqlOptions;
3177
- readonly subjects: None;
3178
- readonly tags: TagsSqlOptions;
3179
- readonly tasks: TasksSqlOptions;
3180
- readonly teams: TeamsSqlOptions;
3181
- readonly templates: TemplatesSqlOptions;
3182
- readonly "time-tracking": TimeTrackingSqlOptions;
3183
- readonly timeline: None;
3184
- readonly trash: TrashSqlOptions;
3185
- readonly "updated-at": UpdatedAtSqlOptions;
3186
- readonly usage: UsageSqlOptions;
3187
- readonly "vector-search": VectorSearchSqlOptions;
3188
- readonly "vercel-marketplace": VercelMarketplaceSqlOptions;
3189
- readonly versions: VersionsSqlOptions;
3190
- readonly waitlist: WaitlistSqlOptions;
3191
- readonly "webhook-inbox": WebhookInboxSqlOptions;
3192
- readonly "webhooks-in": WebhooksInSqlOptions;
3193
- readonly "webhooks-out": WebhooksOutSqlOptions;
3194
- readonly "workflow-editor": WorkflowEditorSqlOptions;
3195
- readonly "workflow-sdk": WorkflowSdkSqlOptions;
3196
- readonly workflows: None;
3197
- }
3198
- /** The options schema of every SQL module, keyed by module name. */
3199
- declare const BLOCK_OPTION_SCHEMAS: { readonly [M in keyof BlockOptionsRegistry]: BlockOptionsSchema<BlockOptionsRegistry[M]>; };
3200
- //#endregion
3201
- //#region src/config/blocks.d.ts
3202
- /**
3203
- * `blocks` in `better-supabase.config.ts`: how each SQL module maps onto the
3204
- * app's database. A module's contract (the functions other modules and the
3205
- * TypeScript side call) stays the same in every mode; only the tables behind it
3206
- * change.
3207
- */
3208
- /**
3209
- * `managed`: the module writes its tables, functions and views, and leaves
3210
- * alone every table the app's schema already has (`ownTables`), writing its
3211
- * functions over that table instead. `custom`: the app implements the contract
3212
- * functions itself; the module writes nothing and doctor checks the signatures
3213
- * (BS307).
3214
- */
3215
- type BlockMode = "managed" | "custom";
3216
- /**
3217
- * Who a block's rows belong to. `tenant`: a tenant, checked through the access
3218
- * contract (`can`, `tenant_ids_with`). `user`: the signed-in user, whose id the
3219
- * scope column holds. `none`: one shared space every signed-in user reads and
3220
- * writes. Blocks that need tenants run only in `tenant`.
3221
- */
3222
- type BlockScope = "tenant" | "user" | "none";
3223
- /**
3224
- * Whose policies govern the app's tables a block runs over. `block`: the block
3225
- * adds its `bsb_` policies where none of the app's covers them. `app`: it adds
3226
- * none, permissive or restrictive, and still writes its functions, triggers,
3227
- * indexes and grants.
3228
- */
3229
- type OwnTablePolicies = "block" | "app";
3230
- /**
3231
- * A new name for one of a block's entities: its singular `name`, an irregular
3232
- * plural and, for an entity the block registers as a subject, the URL of one
3233
- * row with `{column}` placeholders.
3234
- */
3235
- interface EntityConfig<Columns extends string = string> {
3236
- /** Defaults to the entity's own name. */
3237
- readonly name?: string;
3238
- /** Defaults to the English plural of `name`. */
3239
- readonly plural?: string;
3240
- /**
3241
- * The page `subject_url` returns, with `{column}` placeholders from the
3242
- * entity's logical columns: `/tasks/{id}`. A list page needs none.
3243
- */
3244
- readonly url?: `${string}{${Columns}}${string}` | (string & {});
3245
- /** `false` keeps the entity out of `config.subjects`. */
3246
- readonly subject?: false;
3247
- }
3248
- /**
3249
- * `blocks.<name>.names`: entity to its new name, e.g. `{ work_item: "task" }`,
3250
- * or the new name of the block's primary entity alone (`"task"`). The module's
3251
- * tables, columns, functions, events, permission keys, hooks and TypeScript
3252
- * names follow.
3253
- */
3254
- type EntitiesConfig<Names extends BlockSqlNameSet = AnyModuleNames> = ([Names["primary"]] extends [never] ? never : string) | ([keyof Names["entities"]] extends [never] ? never : { readonly [E in keyof Names["entities"]]?: string | EntityConfig<Names["entities"][E]>; });
3255
- /**
3256
- * `blocks.<instance>.on`: the record types an attachable block attaches to, as
3257
- * a list of type names or keyed by type name with settings for each.
3258
- */
3259
- type InstanceOn = readonly string[] | Readonly<Record<string, Readonly<Record<string, unknown>>>>;
3260
- /**
3261
- * What makes a `blocks` entry an instance: the block it installs, the record
3262
- * types it attaches to and the instances its dependencies resolve to.
3263
- */
3264
- interface InstanceKeys {
3265
- /**
3266
- * The block this entry installs. Defaults to the key, so `tags: {}` is the
3267
- * `tags` block; `labels: { block: "tags" }` installs it a second time.
3268
- */
3269
- readonly block?: string;
3270
- /** The record types it attaches to. Defaults to every record type. */
3271
- readonly on?: InstanceOn;
3272
- /**
3273
- * Dependency block to the instance it uses, e.g. `{ pipelines:
3274
- * "maintenanceStages" }`. Needed only when the dependency is installed more
3275
- * than once.
3276
- */
3277
- readonly uses?: Readonly<Record<string, string>>;
3278
- }
3279
- /**
3280
- * Options every module takes; `Options` types `options`
3281
- * (`blocks.<module>.options`) and `Names` the names the other keys accept.
3282
- */
3283
- interface BlockConfig<Options extends object = Readonly<Record<string, unknown>>, Names extends BlockSqlNameSet = AnyModuleNames> extends InstanceKeys {
3284
- readonly mode?: BlockMode;
3285
- /**
3286
- * Schema of the module's functions and managed tables. Defaults to
3287
- * `sql.schema`, then `better_supabase`.
3288
- */
3289
- readonly schema?: string;
3290
- /**
3291
- * Logical table to `table` or `schema.table`, e.g. `{ memberships:
3292
- * 'public.organization_users' }`. An unqualified name is in `schema`. `null`
3293
- * marks an optional table the app doesn't have.
3294
- */
3295
- readonly tables?: { readonly [T in keyof Names["tables"]]?: string | null; };
3296
- /**
3297
- * Logical table to logical column to column name, e.g. `{ memberships: {
3298
- * tenant: 'organization_id', role: 'role_id' } }`. `null` marks an optional
3299
- * column the adopted table doesn't have.
3300
- */
3301
- readonly columns?: { readonly [T in keyof Names["tables"]]?: { readonly [C in Names["tables"][T]]?: string | null; }; };
3302
- /**
3303
- * Logical table to logical column to the values the app's column stores for
3304
- * each label the block writes or compares, e.g. `{ events: { status: {
3305
- * cancelled: 'canceled' } } }`. A list maps one label to several app values
3306
- * (the first is written, each reads as the label); `null` marks a label the
3307
- * app does not support, so a write of it fails with `VALUE_UNSUPPORTED`. Only
3308
- * columns a block lists as typed take values; its docs page names them.
3309
- */
3310
- readonly values?: { readonly [T in keyof Names["tables"]]?: { readonly [C in Names["tables"][T]]?: Readonly<Record<string, string | readonly string[] | null>>; }; };
3311
- /** Type of tenant ids: `uuid` (default), `text`, `bigint` or `integer`. */
3312
- readonly idType?: string;
3313
- /** Who the block's rows belong to. Defaults to `sql.scope`, then `tenant`. */
3314
- readonly scope?: BlockScope;
3315
- /**
3316
- * Whose policies govern every table of the app's that the block runs over:
3317
- * `block` adds the block's `bsb_` policies where none of the app's covers
3318
- * them, `app` adds none, permissive or restrictive. Defaults to
3319
- * `sql.ownTablePolicies`, then `block`.
3320
- */
3321
- readonly ownTablePolicies?: OwnTablePolicies;
3322
- /**
3323
- * Function name to the name the module writes it under, e.g. `{
3324
- * create_organization: 'start_company' }`. Keys are the default names; an
3325
- * unknown function is an error. `blocks.permissions.functions` is the custom
3326
- * model's templates instead.
3327
- */
3328
- readonly functions?: { readonly [F in Names["functions"]]?: string; };
3329
- /**
3330
- * Module action to permission key, checked through the access contract, e.g.
3331
- * `{ invite: 'organization.members.invite' }`.
3332
- */
3333
- readonly permissions?: { readonly [A in Names["actions"]]?: string; };
3334
- /** New names for the block's entities. */
3335
- readonly entities?: EntitiesConfig<Names>;
3336
- /**
3337
- * Module-specific options, typed from the block manifest's options schema;
3338
- * each module's docs page lists them.
3339
- */
3340
- readonly options?: Options;
3341
- /**
3342
- * The app's optional `before_*` and `after_*` functions the module calls when
3343
- * they exist, e.g. `after_organization_create(organization, user)`. They are
3344
- * looked up in `schema` (default `public`); `functions` maps a hook name to
3345
- * another function, e.g. `{ after_organization_create:
3346
- * 'app.seed_organization' }`.
3347
- */
3348
- readonly hooks?: {
3349
- readonly schema?: string;
3350
- readonly functions?: { readonly [H in Names["hooks"]]?: string; };
3351
- };
3352
- /**
3353
- * Whether the module writes its events to the outbox (`emit_event`) when the
3354
- * `outbox` module is installed. Defaults to true.
3355
- */
3356
- readonly events?: boolean;
3357
- /**
3358
- * Whether the module writes its actions to the audit log (`audit_event`) when
3359
- * the `audit` module is installed. Defaults to true.
3360
- */
3361
- readonly audit?: boolean;
3362
- /**
3363
- * A schema for the Data API, such as `api`: the module writes a `security
3364
- * invoker` wrapper there for each of its functions that `anon` or
3365
- * `authenticated` may execute (or only those in `functions`, plus the ones
3366
- * the block's TypeScript client calls), so `rpcTransport(supabase, { schema:
3367
- * "api" })` reaches them without exposing the module schema (doctor BS312).
3368
- * Defaults to `sql.api`; `false` writes no wrappers even when `sql.api` is
3369
- * set.
3370
- */
3371
- readonly api?: string | false | {
3372
- readonly schema: string;
3373
- readonly functions?: readonly string[];
3374
- };
3375
- }
3376
- /**
3377
- * Where the active tenant of a request comes from. Every source counts only
3378
- * while the caller is a member, so a stale claim or setting grants nothing.
3379
- */
3380
- type ActiveTenantSource = "claim" | "resolver" | {
3381
- readonly profileColumn: string;
3382
- readonly key?: string;
3383
- };
3384
- /**
3385
- * URL tenancy: the tenant comes from the request (a slug), not a stored
3386
- * setting.
3387
- */
3388
- declare const DEFAULT_ACTIVE_TENANT: ActiveTenantSource;
3389
- /**
3390
- * The access contract every module checks permissions through: `can(scope, id,
3391
- * permission)`, `tenant_ids_with(permission)`, `is_platform(permission)` and
3392
- * `can_user(user, scope, id, permission)`.
3393
- */
3394
- /**
3395
- * A table whose row says whether a tenant or a user is active. Needs
3396
- * `disabledAt`, `status` with `active`, or both.
3397
- */
3398
- interface DisabledRow {
3399
- /** `schema.table`. */
3400
- readonly table: string;
3401
- /** The column holding the tenant id or the user id. */
3402
- readonly id: string;
3403
- /** A nullable timestamp column; a row with a value is disabled. */
3404
- readonly disabledAt?: string;
3405
- /** A status column; only a row whose value is in `active` is active. */
3406
- readonly status?: string;
3407
- readonly active?: readonly string[];
3408
- }
3409
- interface AccessBlockConfig<Options extends object = Readonly<Record<string, unknown>>, Names extends BlockSqlNameSet = AnyModuleNames> extends Omit<BlockConfig<Options, Names>, "functions"> {
3410
- /**
3411
- * `roles`: a fixed role list from `roles` (the default without
3412
- * `authorization`; with it, `provider` is the default). `catalog`: role,
3413
- * permission and override tables (`tables.roles`, `permissions`,
3414
- * `rolePermissions`, `overrides`, `platformAssignments`). `provider`: the
3415
- * functions of the config's `authorization` provider. `custom`: expression
3416
- * templates in `functions`.
3417
- */
3418
- readonly model?: "roles" | "catalog" | "provider" | "custom";
3419
- /**
3420
- * `roles` model: role name to permission keys. `*` grants everything and
3421
- * `prefix.*` a prefix. Defaults to owner, admin, member and viewer.
3422
- */
3423
- readonly roles?: Readonly<Record<string, readonly string[]>>;
3424
- /**
3425
- * `custom` model: SQL expressions with `{scope}`, `{id}`, `{permission}` and
3426
- * `{user}` placeholders, e.g. `{ can:
3427
- * 'public.authorize_scope({scope}::public.scope_type, {id}, {permission})'
3428
- * }`.
3429
- */
3430
- readonly functions?: {
3431
- readonly can?: string;
3432
- readonly tenantIdsWith?: string;
3433
- readonly isPlatform?: string;
3434
- readonly canUser?: string;
3435
- /**
3436
- * `{tenant}` and `{role}`: whether the caller may assign the role. Required
3437
- * by the `custom` model. The `provider` model defaults to the provider's
3438
- * `canAssign`; without either, only the service role assigns roles unless
3439
- * the `tenant` module is installed, and doctor BS411 warns.
3440
- */
3441
- readonly canAssign?: string;
3442
- /**
3443
- * `{user}`, `{tenant}` and `{role}`: whether that user may assign the role,
3444
- * for SQL that acts later for a stored user (an invitation accept checking
3445
- * the inviter again), as `can_assign_as`. The `provider` model defaults to
3446
- * the provider's `canAssignFor`.
3447
- */
3448
- readonly canAssignFor?: string;
3449
- /**
3450
- * `{permission}` and `{tenant}`: the user ids that hold the permission in
3451
- * the tenant, for the `custom` model's notification audiences.
3452
- */
3453
- readonly holdersOf?: string;
3454
- /** `{user}`: the permission claim for the access token hook. */
3455
- readonly permissionClaims?: string;
3456
- };
3457
- /**
3458
- * `roles` model: the JWT claim holding the caller's platform permission keys
3459
- * (an array). Defaults to `platform_permissions`.
3460
- */
3461
- readonly platformClaim?: string;
3462
- /**
3463
- * OAuth scope to the permission keys it grants a delegated token (a
3464
- * `client_id`, or an `act` chain that is not a support or impersonation
3465
- * level). The access functions refuse every key the token's scopes don't map
3466
- * to, whatever the user holds. A scope without an entry grants the key with
3467
- * its own name; map a scope to `["*"]` to grant everything. Merged over
3468
- * `authorization.delegation.scopes`.
3469
- */
3470
- readonly scopes?: Readonly<Record<string, readonly string[]>>;
3471
- /**
3472
- * What disables a tenant or a user. A string is a column that disables when
3473
- * set, as `schema.table.column`, keyed by the table's `id` (tenant) or the
3474
- * column named in `userKey` (user). An object is an active row: only a row
3475
- * whose `disabledAt` is null and whose `status` is in `active` is active, and
3476
- * a missing row counts as disabled. Disabled tenants and users get no
3477
- * permissions. Under the `provider` model both default to the provider's
3478
- * `suspension`.
3479
- */
3480
- readonly disabled?: {
3481
- readonly tenant?: string | DisabledRow;
3482
- readonly user?: string | DisabledRow;
3483
- readonly userKey?: string;
3484
- };
3485
- readonly activeTenant?: ActiveTenantSource;
3486
- }
3487
- /** A block name, a key of the block options registry. */
3488
- type BlockName = Extract<keyof BlockOptionsRegistry, string>;
3489
- /** One block's config, with `options` and names typed from the block. */
3490
- type BlockConfigOf<M extends BlockName> = M extends "permissions" ? AccessBlockConfig<BlockOptionsRegistry[M], NamesOf<M>> : BlockConfig<BlockOptionsRegistry[M], NamesOf<M>>;
3491
- /**
3492
- * An instance under its own key: the block it names in `block`, checked by
3493
- * `defineConfig` against that block's options and names.
3494
- */
3495
- interface NamedInstance extends InstanceKeys {
3496
- readonly block?: BlockName;
3497
- readonly [key: string]: unknown;
3498
- }
3499
- /**
3500
- * `blocks` in the config, keyed by instance. A key that is a block name
3501
- * installs that block, with `options` typed from its manifest's options schema;
3502
- * any other key names an instance and sets `block`.
3503
- */
3504
- type BlocksConfig = { readonly [M in BlockName]?: BlockConfigOf<M>; } & {
3505
- readonly [instance: string]: NamedInstance | undefined;
3506
- };
3507
- /**
3508
- * `blocks` keyed by any module name, as the resolved config and the SQL
3509
- * renderer read it.
3510
- */
3511
- interface AnyBlocksConfig {
3512
- readonly permissions?: AccessBlockConfig;
3513
- /**
3514
- * `AccessBlockConfig` is listed so a `permissions` entry fits the index
3515
- * signature.
3516
- */
3517
- readonly [module: string]: BlockConfig | AccessBlockConfig | undefined;
3518
- }
3519
- /**
3520
- * The tenant's new singular name (`blocks.memberships.names.organization`), or
3521
- * `undefined` while it is `organization`. `blocks` may be the config's list of
3522
- * block names, which renames nothing.
3523
- */
3524
- declare function tenantNameOf(blocks: AnyBlocksConfig | readonly string[] | undefined): string | undefined;
3525
- /** A module's config with defaults applied. */
3526
- interface ResolvedBlock {
3527
- readonly mode: BlockMode;
3528
- readonly schema: string;
3529
- readonly tables: Readonly<Record<string, string | null>>;
3530
- readonly columns: Readonly<Record<string, Readonly<Record<string, string | null>>>>;
3531
- /** `values`, unchecked; the module context checks it against its tables. */
3532
- readonly values?: Readonly<Record<string, unknown>>;
3533
- readonly idType?: string;
3534
- readonly scope?: BlockScope;
3535
- /** `ownTablePolicies`, with its default. */
3536
- readonly ownTablePolicies: OwnTablePolicies;
3537
- readonly functions: Readonly<Record<string, string>>;
3538
- readonly permissions: Readonly<Record<string, string>>;
3539
- readonly options: Readonly<Record<string, unknown>>;
3540
- readonly hooks: {
3541
- readonly schema: string;
3542
- readonly functions: Readonly<Record<string, string>>;
3543
- };
3544
- readonly events: boolean;
3545
- readonly audit: boolean;
3546
- readonly api?: {
3547
- readonly schema: string;
3548
- readonly functions?: readonly string[];
3549
- };
3550
- }
3551
- declare function resolveBlock(config?: BlockConfig): ResolvedBlock;
3552
- //#endregion
3553
- //#region src/config/authorization.d.ts
3554
- /**
3555
- * SQL expression templates the SQL modules and the access policies call.
3556
- * `{permission}` is a text expression (a literal or a parameter), `{user}` a
3557
- * uuid expression, `{tenant}` an expression of the tenant id type, `{role}` a
3558
- * text expression and `{roles}` a `text[]` of the roles being assigned
3559
- * (`array[{role}]` for one role, the whole set with
3560
- * `blocks.memberships.options.roles.many`). `{scope}` is the scope's name
3561
- * unquoted, so it can be part of a function name
3562
- * (`app.ids_{scope}({permission})`); write `'{scope}'` to pass it as text.
3563
- */
3564
- interface AuthorizationFunctions {
3565
- /**
3566
- * The ids of the `{scope}` instances where the caller holds `{permission}`,
3567
- * as a set: it is used as `select t.id::text from <template> as t(id)`.
3568
- */
3569
- readonly idsWith: string;
3570
- /** Whether the caller holds `{permission}` platform-wide. */
3571
- readonly isPlatform: string;
3572
- /** `idsWith` for `{user}`, so `can_user` answers for another user. */
3573
- readonly idsWithFor?: string;
3574
- /** `isPlatform` for `{user}`. */
3575
- readonly isPlatformFor?: string;
3576
- /** The ids of the `{scope}` instances the caller is a member of, as a set. */
3577
- readonly memberIds?: string;
3578
- /**
3579
- * `memberIds` for `{user}`, which the access token hook calls as
3580
- * `supabase_auth_admin`.
3581
- */
3582
- readonly memberIdsFor?: string;
3583
- /**
3584
- * The team ids `{user}` belongs to, as a set of the team id type: it is used
3585
- * as `select t.id from <template> as t(id)`. Under the provider model the
3586
- * teams module's `team_ids_of()`, and the team sharing in `saved-views` and
3587
- * `collections`, call it instead of reading `team_members`.
3588
- */
3589
- readonly teamIdsOf?: string;
3590
- /**
3591
- * Whether the caller may assign `{role}` (or every one of `{roles}`) in
3592
- * `{tenant}`.
3593
- */
3594
- readonly canAssign?: string;
3595
- /**
3596
- * Whether `{user}` may assign `{role}` (or every one of `{roles}`) in
3597
- * `{tenant}`.
3598
- */
3599
- readonly canAssignFor?: string;
3600
- /**
3601
- * The permission keys `{user}` holds in `{tenant}`, as a `text[]`. It fills
3602
- * `member_permissions` and the `permissions` claim; without it both are
3603
- * empty.
3604
- */
3605
- readonly permissionsFor?: string;
3606
- /**
3607
- * Whether the caller may decide the tool call `{tool}` (text) waits on in
3608
- * `{tenant}`. Without it only the chat's owner and the service role decide.
3609
- *
3610
- * @deprecated Use `isApprover`, which every module that waits for an
3611
- * approval reads. `canApprove` is read for tool calls only when
3612
- * `isApprover` is unset.
3613
- */
3614
- readonly canApprove?: string;
3615
- /**
3616
- * Whether the caller may approve the request `{subject}` (text) of kind
3617
- * `{kind}` (a text literal: `'ai-tool'` with the tool name as `{subject}`,
3618
- * `'support-session'` with the request id, or the app's own kind) in
3619
- * `{tenant}`. `{requester}` is the uuid of the user who asked (the approval's
3620
- * `requested_by`, the support admin, the chat's owner), or `null`; a provider
3621
- * that resolves out-of-office covers reads it to refuse a cover by the
3622
- * requester's own delegator. It replaces each module's own eligibility check;
3623
- * the requester is refused before it runs. Without it a module falls back to
3624
- * its default approver (the chat's owner, a platform permission).
3625
- */
3626
- readonly isApprover?: string;
3627
- /**
3628
- * The user ids that hold `{permission}` on `{tenant}`, as a set: it is used
3629
- * as `select u from <template> as t(u)`. A notification's `permission`
3630
- * audience calls it. Without it, naming `permission` is refused.
3631
- */
3632
- readonly holdersOf?: string;
3633
- /**
3634
- * Whether the caller's session may write. No placeholders. Write functions
3635
- * and write policies call it instead of the built-in act check.
3636
- */
3637
- readonly actorMayWrite?: string;
3638
- /**
3639
- * Whether the caller holds `{permission}` on the instance `{id}` (text) of
3640
- * `{resource}` in `{tenant}`, at `{scope}`. A realtime topic that declares a
3641
- * `permission` calls it for the instance in its topic name.
3642
- */
3643
- readonly permitted?: string;
3644
- /**
3645
- * The ids of the rows of `{resource}` the caller holds `{permission}` on, as
3646
- * a set of text: it is used as `select r.id from <template> as r(id)`.
3647
- * `{resource}` is a resource name as the provider spells it in SQL (such as
3648
- * `file_node`), unquoted, so it can be part of a function name; `{ids}` is a
3649
- * `text[]` of the candidate ids, which a provider may use to limit the work.
3650
- * `can_subject` calls it for a `config.subjects.<type>.permissions.<action>`
3651
- * entry with `rows`.
3652
- */
3653
- readonly rowsWith?: string;
3654
- /**
3655
- * `rowsWith` for `{user}`, so `can_subject_for` answers per-row grants for
3656
- * another user. Without it those grants count for the caller only.
3657
- */
3658
- readonly rowsWithFor?: string;
3659
- /**
3660
- * The records the caller may reach as a guest for `{action}` (`read`,
3661
- * `comment` or `upload`), as a set of `(tenant text, subject_type text,
3662
- * subject_id text)`: it is used as `select g.tenant, g.subject_type,
3663
- * g.subject_id from <template> as g(tenant, subject_type, subject_id)`.
3664
- * `ctx.scope.guest` calls it, so comments, attachments, invoices and bookings
3665
- * let a provider's external users in (ADR 0070). With the `guests` block
3666
- * installed its grants are added to these.
3667
- */
3668
- readonly portalSubjects?: string;
3669
- /**
3670
- * The parties the caller acts for as a guest, as a set of `(tenant text,
3671
- * party_type text, party_id text)`. No placeholders. `ctx.scope.guestParty`
3672
- * calls it for portal reads such as a customer's own invoices.
3673
- */
3674
- readonly portalParties?: string;
3675
- }
3676
- /** One scope the provider decides permissions in, such as `organization`. */
3677
- interface AuthorizationScope {
3678
- /** Lower case letters, digits and `_`, starting with a letter. */
3679
- readonly name: string;
3680
- /**
3681
- * The Postgres type of the scope's ids: `uuid`, `text`, `bigint` or
3682
- * `integer`.
3683
- */
3684
- readonly idType?: string;
3685
- /** The scope this one sits in; the root scope has none. */
3686
- readonly parent?: string;
3687
- }
3688
- /** A function the templates call, which must exist and be executable by `role`. */
3689
- interface AuthorizationRequirement {
3690
- /** `schema.name`. */
3691
- readonly function: string;
3692
- /** The argument types, such as `text` or `uuid, text`. */
3693
- readonly args?: string;
3694
- readonly role: string;
3695
- }
3696
- /** A permission key the provider defines. */
3697
- interface AuthorizationPermission {
3698
- readonly key: string;
3699
- /**
3700
- * `true` when the SQL functions answer for the key completely. A key with row
3701
- * conditions they don't check is `false`, and policies refuse it. Unset means
3702
- * unknown, which counts as `false`.
3703
- */
3704
- readonly sqlComplete?: boolean;
3705
- /** The scopes it can be granted at. */
3706
- readonly scopes?: readonly string[];
3707
- }
3708
- /**
3709
- * One named operation: what workflow builder nodes, MCP tools, AI tools and
3710
- * inbox commands with that name need. The provider supplies the table;
3711
- * `blocks.<module>.permissions` still renames a module's own keys.
3712
- */
3713
- interface AuthorizationOperation {
3714
- /** The permission key the operation needs. */
3715
- readonly permission: string;
3716
- readonly meta?: {
3717
- /** `low`, `medium` or `high`; a `high` operation can ask for approval. */
3718
- readonly risk?: "low" | "medium" | "high";
3719
- /** What it changes: `read`, `write`, `delete`, `external`. */
3720
- readonly effects?: readonly ("read" | "write" | "delete" | "external")[];
3721
- readonly title?: string;
3722
- };
3723
- }
3724
- /** A table of memberships the provider reads. */
3725
- interface AuthorizationMembership {
3726
- /** `schema.table`. */
3727
- readonly table: string;
3728
- readonly userColumn: string;
3729
- /** The scope column, or the scope every row is in. */
3730
- readonly scope: {
3731
- readonly column: string;
3732
- } | {
3733
- readonly value: string;
3734
- };
3735
- readonly idColumn: string;
3736
- /**
3737
- * `schema.table` of the membership's role set, one row per `(scope id, user,
3738
- * role)`, when a member can hold several roles. better-supabase's own is
3739
- * `better_supabase.membership_roles`
3740
- * (`blocks.memberships.options.roles.many`).
3741
- */
3742
- readonly rolesTable?: string;
3743
- }
3744
- /** A membership table whose role column points into a roles table. */
3745
- interface AuthorizationRoleSource {
3746
- /** `schema.table` of the memberships. */
3747
- readonly table: string;
3748
- readonly role: {
3749
- readonly column: string;
3750
- readonly through: {
3751
- /** `schema.table` of the roles. */
3752
- readonly table: string;
3753
- readonly id: string;
3754
- readonly column: string;
3755
- };
3756
- };
3757
- }
3758
- /** The access token hook the provider generates. */
3759
- interface AuthorizationTokenHook {
3760
- /** `schema.name`. */
3761
- readonly function: string;
3762
- /** The claim it writes the active tenant id to. */
3763
- readonly tenantClaim?: string;
3764
- /**
3765
- * Where it reads the active organization from: the `auth.organization.claim`
3766
- * key in `app_metadata` (`"claim"`), a profile column, or the request
3767
- * (`"resolver"`). Doctor BS409 warns when `switch_organization` writes it
3768
- * somewhere else (`blocks.permissions.activeTenant`).
3769
- */
3770
- readonly activeOrganizationFrom?: ActiveTenantSource;
3771
- /** Claims it writes itself, which a second writer would contradict. */
3772
- readonly ownedClaims: readonly string[];
3773
- /**
3774
- * Claims it fills from other functions, such as `features` from
3775
- * `better_supabase.feature_claims`.
3776
- */
3777
- readonly registeredClaims?: readonly {
3778
- readonly name: string;
3779
- /** `schema.name`. */
3780
- readonly function: string;
3781
- }[];
3782
- /** A byte budget over some claims, which doctor `--as` measures (BS405). */
3783
- readonly budget?: {
3784
- readonly claims: readonly string[];
3785
- readonly bytes: number;
3786
- /**
3787
- * A claim the hook sets to `true` when it dropped entries to stay within
3788
- * the budget.
3789
- */
3790
- readonly truncatedClaim?: string;
3791
- };
3792
- /**
3793
- * Comment lines the provider's generated files contain, so doctor recognises
3794
- * them.
3795
- */
3796
- readonly markers?: {
3797
- /** In the file that defines the hook. */
3798
- readonly hook?: string;
3799
- /** In the migration that grants the hook's functions. */
3800
- readonly grants?: string;
3801
- };
3802
- /** The command that writes the hook's grants, for BS404. */
3803
- readonly grantsCommand?: string;
3804
- }
3805
- /**
3806
- * An authorization system the SQL modules, the policies and doctor delegate to.
3807
- * It is plain data, usually built from the provider's own output files.
3808
- */
3809
- interface AuthorizationProvider {
3810
- readonly apiVersion: 1;
3811
- /** The provider's name, for messages. */
3812
- readonly name: string;
3813
- readonly scopes: readonly AuthorizationScope[];
3814
- /** The scope tenants are. */
3815
- readonly tenantScope: string;
3816
- readonly functions: AuthorizationFunctions;
3817
- readonly requires?: readonly AuthorizationRequirement[];
3818
- readonly permissions?: readonly AuthorizationPermission[];
3819
- /**
3820
- * Operations by name (`workflow.node.http`, `mcp.tool.search_posts`,
3821
- * `ai.tool.send_email`, `inbox.command.assign`). A module looks an operation
3822
- * up here first and uses its own default permission otherwise.
3823
- */
3824
- readonly operations?: Readonly<Record<string, AuthorizationOperation>>;
3825
- readonly memberships?: readonly AuthorizationMembership[];
3826
- /** Rows that say whether a user or a tenant is active. */
3827
- readonly suspension?: {
3828
- readonly user?: DisabledRow;
3829
- readonly tenant?: DisabledRow;
3830
- };
3831
- readonly roleSources?: readonly AuthorizationRoleSource[];
3832
- /** `schema.table.column` of every column that decides access (BS213). */
3833
- readonly decidingColumns?: readonly string[];
3834
- readonly tokenHook?: AuthorizationTokenHook;
3835
- /** What a delegated token (an OAuth client or agent) may use. */
3836
- readonly delegation?: {
3837
- /**
3838
- * OAuth scope to the permission keys it grants (RFC 9396 details stay with
3839
- * the app). `blocks.permissions.scopes` is merged over it.
3840
- */
3841
- readonly scopes?: Readonly<Record<string, readonly string[]>>;
3842
- };
3843
- /** How `canApprove` decisions are made. */
3844
- readonly approvals?: {
3845
- /** The user who asked for the tool call can't approve it. Default `false`. */
3846
- readonly distinctApprover?: boolean;
3847
- };
3848
- /** What the provider found wrong while building this, for doctor. */
3849
- readonly problems?: readonly string[];
3850
- }
3851
- /**
3852
- * The error for a provider built for another API version, or `undefined` for
3853
- * version 1.
3854
- */
3855
- declare function providerApiProblem(provider: {
3856
- readonly name?: unknown;
3857
- readonly apiVersion?: unknown;
3858
- }): string | undefined;
3859
- //#endregion
3860
- export { tenantNameOf as A, EntityConfig as C, OwnTablePolicies as D, NamedInstance as E, CommentsSqlOptions as F, TablesOf as I, BlockNameRegistry as L, BlockOptionsRegistry as M, PlatformRolesOption as N, ResolvedBlock as O, MessagingSqlOptions as P, EntitiesConfig as S, InstanceOn as T, BlockName as _, AuthorizationProvider as a, DEFAULT_ACTIVE_TENANT as b, AuthorizationScope as c, AccessBlockConfig as d, ActiveTenantSource as f, BlockMode as g, BlockConfigOf as h, AuthorizationPermission as i, BLOCK_OPTION_SCHEMAS as j, resolveBlock as k, AuthorizationTokenHook as l, BlockConfig as m, AuthorizationMembership as n, AuthorizationRequirement as o, AnyBlocksConfig as p, AuthorizationOperation as r, AuthorizationRoleSource as s, AuthorizationFunctions as t, providerApiProblem as u, BlockScope as v, InstanceKeys as w, DisabledRow as x, BlocksConfig as y };