better-supabase 0.31.0 → 0.33.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 (1703) hide show
  1. package/README.md +11 -10
  2. package/codemods/0.32.json +31 -0
  3. package/dist/access-sql-Dao1C0fz.js +383 -0
  4. package/dist/actor-B5b0i1Fs.js +149 -0
  5. package/dist/actor-DseNR02I.d.ts +104 -0
  6. package/dist/adapter-CWzyKepA.js +2260 -0
  7. package/dist/agents-DXiOPB3V.d.ts +115 -0
  8. package/dist/ai-cache-CLiAXCPH.d.ts +80 -0
  9. package/dist/ai-cache-D9D36eh4.js +86 -0
  10. package/dist/ai-chat-DlcBdOhJ.d.ts +532 -0
  11. package/dist/ai-files-DCMVGSds.js +337 -0
  12. package/dist/ai-message-cnroprVB.js +13 -0
  13. package/dist/ai-schedules-Drx2KRTn.d.ts +164 -0
  14. package/dist/ai-sdk/agents/index.d.ts +8 -12
  15. package/dist/ai-sdk/agents/index.js +10 -12
  16. package/dist/ai-sdk/batches/index.d.ts +12 -7
  17. package/dist/ai-sdk/batches/index.js +16 -9
  18. package/dist/ai-sdk/cache/index.d.ts +2 -4
  19. package/dist/ai-sdk/cache/index.js +3 -4
  20. package/dist/ai-sdk/chat/index.d.ts +77 -2
  21. package/dist/ai-sdk/chat/index.js +179 -28
  22. package/dist/ai-sdk/embeddings/index.d.ts +2 -2
  23. package/dist/ai-sdk/embeddings/index.js +1 -1
  24. package/dist/ai-sdk/files/index.d.ts +3 -5
  25. package/dist/ai-sdk/files/index.js +5 -6
  26. package/dist/ai-sdk/index.d.ts +75 -21
  27. package/dist/ai-sdk/index.js +112 -66
  28. package/dist/ai-sdk/mcp/index.d.ts +28 -13
  29. package/dist/ai-sdk/mcp/index.js +56 -17
  30. package/dist/ai-sdk/memory/index.d.ts +3 -5
  31. package/dist/ai-sdk/memory/index.js +3 -4
  32. package/dist/ai-sdk/react/index.d.ts +2 -2
  33. package/dist/ai-sdk/react/index.js +3 -1
  34. package/dist/ai-sdk/react/server.d.ts +7 -4
  35. package/dist/ai-sdk/react/server.js +10 -3
  36. package/dist/ai-sdk/workflow/index.d.ts +12 -13
  37. package/dist/ai-sdk/workflow/index.js +17 -17
  38. package/dist/ai-sdk/workflow/react/index.d.ts +1 -3
  39. package/dist/ai-sdk/workflow/react/index.js +3 -3
  40. package/dist/ai-sdk/workflow/react/server.d.ts +1 -3
  41. package/dist/ai-sdk/workflow/react/server.js +1 -2
  42. package/dist/anchors-sCLvYj-8.d.ts +36 -0
  43. package/dist/api-keys-DbIbkGxx.d.ts +211 -0
  44. package/dist/api-myq2e9t5.d.ts +482 -0
  45. package/dist/api-wwix_K5c.js +691 -0
  46. package/dist/app-tables-IrglDJCs.d.ts +26 -0
  47. package/dist/approvals-DZoGtNFv.d.ts +127 -0
  48. package/dist/approvals-Da4uAANx.js +166 -0
  49. package/dist/assistant-BEbRPjhn.d.ts +209 -0
  50. package/dist/astro/index.d.ts +7 -10
  51. package/dist/astro/index.js +8 -9
  52. package/dist/attachments-BWtUQgsL.js +375 -0
  53. package/dist/attributes-BZNkR2z2.js +51 -0
  54. package/dist/auth-link-BmJsQG4a.js +117 -0
  55. package/dist/auth-link-DRjtI1Ky.d.ts +102 -0
  56. package/dist/auth-module-CqXdm8qD.js +50 -0
  57. package/dist/auth-reply-BMPJQssh.d.ts +9 -0
  58. package/dist/auth-reply-Cnwn3I_q.js +30 -0
  59. package/dist/auth-wFlGgwTZ.js +19 -0
  60. package/dist/authorization-BlmDNI2b.d.ts +3734 -0
  61. package/dist/authorization-hooks-CxwsRnfV.d.ts +219 -0
  62. package/dist/authorizer-BtIPDO-c.js +194 -0
  63. package/dist/automation-acq3iK9y.js +74 -0
  64. package/dist/automations-BfH8GJqv.js +27 -0
  65. package/dist/automations-Bw5cX7oj.js +29 -0
  66. package/dist/automations-CCc5RUw-.js +31 -0
  67. package/dist/automations-Dou1t3lt.js +313 -0
  68. package/dist/availability-CebEOfMN.d.ts +236 -0
  69. package/dist/base64-CVyKHBBw.js +41 -0
  70. package/dist/batch-limit-DqQ3d6op.js +4 -0
  71. package/dist/before-route-Ra3OhI2x.js +29 -0
  72. package/dist/better-result/index.d.ts +4 -6
  73. package/dist/better-result/index.js +2 -3
  74. package/dist/bind-DP-KLgYI.d.ts +102 -0
  75. package/dist/block-authors-C5z3tGVu.d.ts +10 -0
  76. package/dist/block-authors-DCQ4zl8e.js +13 -0
  77. package/dist/block-env-CJ38ZSTP.d.ts +30 -0
  78. package/dist/block-event-listener-DCi7c89M.js +15 -0
  79. package/dist/block-events-Bp6GPIBN.js +82 -0
  80. package/dist/block-fields-Bjcv6_zc.js +139 -0
  81. package/dist/block-fields-Puv5m5D3.d.ts +56 -0
  82. package/dist/block-helpers-I7UzjNEf.js +435 -0
  83. package/dist/block-helpers-disoUWCp.d.ts +56 -0
  84. package/dist/block-hooks-CadxQ9-_.js +129 -0
  85. package/dist/block-hooks-DrA_d1dJ.d.ts +115 -0
  86. package/dist/block-method-DIbWG4Mj.js +20 -0
  87. package/dist/block-method-QSaPsL2P.d.ts +12 -0
  88. package/dist/block-subjects-Br2MQNFn.d.ts +4 -0
  89. package/dist/block-subjects-cRlVtKDO.js +54 -0
  90. package/dist/block-tables-CQTU71zn.d.ts +34 -0
  91. package/dist/block-tenant-Bun03JuO.js +13 -0
  92. package/dist/block-transport-BEtC_Kis.d.ts +67 -0
  93. package/dist/blocks/access-requests/index.d.ts +9 -15
  94. package/dist/blocks/access-requests/index.js +11 -14
  95. package/dist/blocks/activities/index.d.ts +13 -21
  96. package/dist/blocks/activities/index.js +16 -21
  97. package/dist/blocks/agents/index.d.ts +4 -8
  98. package/dist/blocks/agents/index.js +11 -14
  99. package/dist/blocks/ai-cache/index.d.ts +3 -5
  100. package/dist/blocks/ai-cache/index.js +5 -6
  101. package/dist/blocks/ai-chat/index.d.ts +10 -19
  102. package/dist/blocks/ai-chat/index.js +20 -28
  103. package/dist/blocks/ai-files/index.d.ts +5 -9
  104. package/dist/blocks/ai-files/index.js +5 -6
  105. package/dist/blocks/ai-keys/index.d.ts +4 -10
  106. package/dist/blocks/ai-keys/index.js +14 -18
  107. package/dist/blocks/ai-schedules/index.d.ts +3 -5
  108. package/dist/blocks/ai-schedules/index.js +14 -16
  109. package/dist/blocks/announcements/index.d.ts +12 -20
  110. package/dist/blocks/announcements/index.js +12 -16
  111. package/dist/blocks/api-keys/index.d.ts +4 -116
  112. package/dist/blocks/api-keys/index.js +17 -22
  113. package/dist/blocks/approvals/index.d.ts +4 -8
  114. package/dist/blocks/approvals/index.js +7 -173
  115. package/dist/blocks/assets/index.d.ts +9 -17
  116. package/dist/blocks/assets/index.js +13 -17
  117. package/dist/blocks/assignment/index.d.ts +9 -17
  118. package/dist/blocks/assignment/index.js +10 -14
  119. package/dist/blocks/attachments/index.d.ts +6 -18
  120. package/dist/blocks/attachments/index.js +19 -24
  121. package/dist/blocks/audit/index.d.ts +15 -31
  122. package/dist/blocks/audit/index.js +27 -35
  123. package/dist/blocks/automations/index.d.ts +14 -26
  124. package/dist/blocks/automations/index.js +18 -23
  125. package/dist/blocks/billable-time/index.d.ts +9 -19
  126. package/dist/blocks/billable-time/index.js +15 -20
  127. package/dist/blocks/billing/index.d.ts +12 -22
  128. package/dist/blocks/billing/index.js +19 -24
  129. package/dist/blocks/bookings/index.d.ts +8 -18
  130. package/dist/blocks/bookings/index.js +17 -23
  131. package/dist/blocks/bulk/index.d.ts +6 -12
  132. package/dist/blocks/bulk/index.js +10 -13
  133. package/dist/blocks/calendar/index.d.ts +13 -23
  134. package/dist/blocks/calendar/index.js +35 -32
  135. package/dist/blocks/catalog/index.d.ts +12 -20
  136. package/dist/blocks/catalog/index.js +17 -21
  137. package/dist/blocks/channels/index.d.ts +9 -17
  138. package/dist/blocks/channels/index.js +11 -15
  139. package/dist/blocks/collections/index.d.ts +11 -17
  140. package/dist/blocks/collections/index.js +13 -16
  141. package/dist/blocks/comments/index.d.ts +16 -26
  142. package/dist/blocks/comments/index.js +21 -26
  143. package/dist/blocks/compliance/index.d.ts +9 -17
  144. package/dist/blocks/compliance/index.js +13 -17
  145. package/dist/blocks/connectors/index.d.ts +4 -8
  146. package/dist/blocks/connectors/index.js +13 -16
  147. package/dist/blocks/contacts/index.d.ts +10 -18
  148. package/dist/blocks/contacts/index.js +12 -16
  149. package/dist/blocks/content/index.d.ts +8 -16
  150. package/dist/blocks/content/index.js +13 -17
  151. package/dist/blocks/contracts/index.d.ts +11 -21
  152. package/dist/blocks/contracts/index.js +17 -22
  153. package/dist/blocks/courses/index.d.ts +11 -21
  154. package/dist/blocks/courses/index.js +17 -22
  155. package/dist/blocks/created-by/index.d.ts +3 -7
  156. package/dist/blocks/created-by/index.js +4 -5
  157. package/dist/blocks/custom-fields/index.d.ts +10 -16
  158. package/dist/blocks/custom-fields/index.js +13 -16
  159. package/dist/blocks/data-lifecycle/index.d.ts +10 -26
  160. package/dist/blocks/data-lifecycle/index.js +17 -23
  161. package/dist/blocks/deals/index.d.ts +12 -20
  162. package/dist/blocks/deals/index.js +18 -22
  163. package/dist/blocks/dispatch/index.d.ts +11 -23
  164. package/dist/blocks/dispatch/index.js +19 -24
  165. package/dist/blocks/documents/index.d.ts +4 -8
  166. package/dist/blocks/documents/index.js +9 -12
  167. package/dist/blocks/domains/index.d.ts +8 -14
  168. package/dist/blocks/domains/index.js +12 -15
  169. package/dist/blocks/donations/index.d.ts +13 -23
  170. package/dist/blocks/donations/index.js +21 -26
  171. package/dist/blocks/drive/index.d.ts +116 -20
  172. package/dist/blocks/drive/index.js +138 -26
  173. package/dist/blocks/employees/index.d.ts +13 -23
  174. package/dist/blocks/employees/index.js +18 -23
  175. package/dist/blocks/enrichment/index.d.ts +8 -16
  176. package/dist/blocks/enrichment/index.js +11 -15
  177. package/dist/blocks/enrollments/index.d.ts +9 -17
  178. package/dist/blocks/enrollments/index.js +13 -17
  179. package/dist/blocks/entitlements/index.d.ts +8 -14
  180. package/dist/blocks/entitlements/index.js +8 -32
  181. package/dist/blocks/expenses/index.d.ts +22 -19
  182. package/dist/blocks/expenses/index.js +25 -23
  183. package/dist/blocks/field-history/index.d.ts +6 -10
  184. package/dist/blocks/field-history/index.js +5 -7
  185. package/dist/blocks/flags/index.d.ts +49 -20
  186. package/dist/blocks/flags/index.js +65 -19
  187. package/dist/blocks/forecasts/index.d.ts +10 -16
  188. package/dist/blocks/forecasts/index.js +11 -14
  189. package/dist/blocks/forms/index.d.ts +11 -25
  190. package/dist/blocks/forms/index.js +17 -24
  191. package/dist/blocks/goals/index.d.ts +8 -12
  192. package/dist/blocks/goals/index.js +9 -11
  193. package/dist/blocks/guests/index.d.ts +9 -19
  194. package/dist/blocks/guests/index.js +14 -19
  195. package/dist/blocks/hiring/index.d.ts +10 -18
  196. package/dist/blocks/hiring/index.js +12 -15
  197. package/dist/blocks/identities/index.d.ts +7 -11
  198. package/dist/blocks/identities/index.js +7 -9
  199. package/dist/blocks/imports/index.d.ts +8 -18
  200. package/dist/blocks/imports/index.js +11 -16
  201. package/dist/blocks/inbox/index.d.ts +11 -21
  202. package/dist/blocks/inbox/index.js +26 -23
  203. package/dist/blocks/incidents/index.d.ts +9 -17
  204. package/dist/blocks/incidents/index.js +14 -18
  205. package/dist/blocks/index.d.ts +14 -20
  206. package/dist/blocks/index.js +17 -20
  207. package/dist/blocks/inventory/index.d.ts +11 -17
  208. package/dist/blocks/inventory/index.js +12 -15
  209. package/dist/blocks/invoices/index.d.ts +34 -21
  210. package/dist/blocks/invoices/index.js +31 -18
  211. package/dist/blocks/knowledge/index.d.ts +3 -5
  212. package/dist/blocks/knowledge/index.js +5 -6
  213. package/dist/blocks/lead-scoring/index.d.ts +10 -14
  214. package/dist/blocks/lead-scoring/index.js +11 -13
  215. package/dist/blocks/leases/index.d.ts +11 -21
  216. package/dist/blocks/leases/index.js +20 -25
  217. package/dist/blocks/leave/index.d.ts +50 -17
  218. package/dist/blocks/leave/index.js +35 -14
  219. package/dist/blocks/ledger/index.d.ts +9 -17
  220. package/dist/blocks/ledger/index.js +13 -17
  221. package/dist/blocks/mail-sync/index.d.ts +6 -12
  222. package/dist/blocks/mail-sync/index.js +26 -25
  223. package/dist/blocks/memberships/index.d.ts +5 -9
  224. package/dist/blocks/memberships/index.js +4 -5
  225. package/dist/blocks/memory/index.d.ts +4 -8
  226. package/dist/blocks/memory/index.js +12 -15
  227. package/dist/blocks/messaging/index.d.ts +14 -24
  228. package/dist/blocks/messaging/index.js +19 -24
  229. package/dist/blocks/metrics/index.d.ts +9 -17
  230. package/dist/blocks/metrics/index.js +14 -18
  231. package/dist/blocks/mfa/index.d.ts +5 -9
  232. package/dist/blocks/mfa/index.js +7 -9
  233. package/dist/blocks/moderation/index.d.ts +9 -17
  234. package/dist/blocks/moderation/index.js +13 -17
  235. package/dist/blocks/notifications/index.d.ts +18 -34
  236. package/dist/blocks/notifications/index.js +32 -42
  237. package/dist/blocks/numbering/index.d.ts +6 -12
  238. package/dist/blocks/numbering/index.js +8 -11
  239. package/dist/blocks/oauth-server/index.d.ts +7 -13
  240. package/dist/blocks/oauth-server/index.js +12 -15
  241. package/dist/blocks/onboarding/index.d.ts +7 -13
  242. package/dist/blocks/onboarding/index.js +8 -11
  243. package/dist/blocks/orders/index.d.ts +17 -29
  244. package/dist/blocks/orders/index.js +22 -28
  245. package/dist/blocks/organizations/index.d.ts +11 -21
  246. package/dist/blocks/organizations/index.js +16 -19
  247. package/dist/blocks/outbox/index.d.ts +4 -6
  248. package/dist/blocks/outbox/index.js +11 -13
  249. package/dist/blocks/passes/index.d.ts +12 -22
  250. package/dist/blocks/passes/index.js +20 -25
  251. package/dist/blocks/permissions/index.d.ts +50 -15
  252. package/dist/blocks/permissions/index.js +99 -19
  253. package/dist/blocks/pipelines/index.d.ts +12 -18
  254. package/dist/blocks/pipelines/index.js +12 -15
  255. package/dist/blocks/posts/index.d.ts +10 -18
  256. package/dist/blocks/posts/index.js +15 -19
  257. package/dist/blocks/profiles/index.d.ts +8 -12
  258. package/dist/blocks/profiles/index.js +9 -11
  259. package/dist/blocks/promotions/index.d.ts +11 -17
  260. package/dist/blocks/promotions/index.js +13 -16
  261. package/dist/blocks/push/index.d.ts +12 -18
  262. package/dist/blocks/push/index.js +13 -16
  263. package/dist/blocks/queue/index.d.ts +187 -39
  264. package/dist/blocks/queue/index.js +226 -60
  265. package/dist/blocks/quotes/index.d.ts +13 -21
  266. package/dist/blocks/quotes/index.js +14 -17
  267. package/dist/blocks/rank/index.d.ts +7 -13
  268. package/dist/blocks/rank/index.js +8 -10
  269. package/dist/blocks/reactions/index.d.ts +11 -19
  270. package/dist/blocks/reactions/index.js +13 -17
  271. package/dist/blocks/relations/index.d.ts +11 -21
  272. package/dist/blocks/relations/index.js +18 -23
  273. package/dist/blocks/reminders/index.d.ts +12 -22
  274. package/dist/blocks/reminders/index.js +21 -25
  275. package/dist/blocks/reviews/index.d.ts +9 -15
  276. package/dist/blocks/reviews/index.js +11 -14
  277. package/dist/blocks/saved-views/index.d.ts +11 -21
  278. package/dist/blocks/saved-views/index.js +16 -21
  279. package/dist/blocks/scores/index.d.ts +6 -12
  280. package/dist/blocks/scores/index.js +10 -13
  281. package/dist/blocks/search/index.d.ts +9 -19
  282. package/dist/blocks/search/index.js +15 -19
  283. package/dist/blocks/security-events/index.d.ts +10 -24
  284. package/dist/blocks/security-events/index.js +17 -23
  285. package/dist/blocks/segments/index.d.ts +10 -18
  286. package/dist/blocks/segments/index.js +11 -15
  287. package/dist/blocks/sequences/index.d.ts +9 -17
  288. package/dist/blocks/sequences/index.js +15 -19
  289. package/dist/blocks/service-accounts/index.d.ts +9 -15
  290. package/dist/blocks/service-accounts/index.js +11 -14
  291. package/dist/blocks/sessions/index.d.ts +4 -8
  292. package/dist/blocks/sessions/index.js +9 -11
  293. package/dist/blocks/settings/index.d.ts +8 -16
  294. package/dist/blocks/settings/index.js +14 -18
  295. package/dist/blocks/share-links/index.d.ts +9 -17
  296. package/dist/blocks/share-links/index.js +16 -20
  297. package/dist/blocks/shipments/index.d.ts +14 -24
  298. package/dist/blocks/shipments/index.js +25 -31
  299. package/dist/blocks/signatures/index.d.ts +10 -16
  300. package/dist/blocks/signatures/index.js +10 -13
  301. package/dist/blocks/signing-keys/index.d.ts +5 -9
  302. package/dist/blocks/signing-keys/index.js +8 -10
  303. package/dist/blocks/sla/index.d.ts +11 -19
  304. package/dist/blocks/sla/index.js +17 -21
  305. package/dist/blocks/sso/index.d.ts +7 -19
  306. package/dist/blocks/sso/index.js +14 -21
  307. package/dist/blocks/state-machine/index.d.ts +7 -13
  308. package/dist/blocks/state-machine/index.js +9 -12
  309. package/dist/blocks/subjects/index.d.ts +7 -11
  310. package/dist/blocks/subjects/index.js +12 -14
  311. package/dist/blocks/tags/index.d.ts +11 -21
  312. package/dist/blocks/tags/index.js +20 -25
  313. package/dist/blocks/tasks/index.d.ts +13 -27
  314. package/dist/blocks/tasks/index.js +22 -29
  315. package/dist/blocks/teams/index.d.ts +8 -14
  316. package/dist/blocks/teams/index.js +10 -13
  317. package/dist/blocks/templates/index.d.ts +12 -22
  318. package/dist/blocks/templates/index.js +16 -21
  319. package/dist/blocks/time-tracking/index.d.ts +31 -25
  320. package/dist/blocks/time-tracking/index.js +29 -29
  321. package/dist/blocks/timeline/index.d.ts +10 -14
  322. package/dist/blocks/timeline/index.js +11 -13
  323. package/dist/blocks/trash/index.d.ts +10 -18
  324. package/dist/blocks/trash/index.js +11 -14
  325. package/dist/blocks/undo/index.d.ts +4 -8
  326. package/dist/blocks/undo/index.js +6 -8
  327. package/dist/blocks/updated-at/index.d.ts +3 -7
  328. package/dist/blocks/updated-at/index.js +4 -5
  329. package/dist/blocks/usage/index.d.ts +6 -10
  330. package/dist/blocks/usage/index.js +10 -13
  331. package/dist/blocks/vercel-marketplace/index.d.ts +9 -17
  332. package/dist/blocks/vercel-marketplace/index.js +17 -21
  333. package/dist/blocks/versions/index.d.ts +10 -20
  334. package/dist/blocks/versions/index.js +17 -22
  335. package/dist/blocks/waitlist/index.d.ts +10 -16
  336. package/dist/blocks/waitlist/index.js +11 -14
  337. package/dist/blocks/webhooks/index.d.ts +16 -34
  338. package/dist/blocks/webhooks/index.js +33 -44
  339. package/dist/blocks/workflow-editor/index.d.ts +13 -21
  340. package/dist/blocks/workflow-editor/index.js +22 -27
  341. package/dist/blocks/workflows/index.d.ts +8 -14
  342. package/dist/blocks/workflows/index.js +14 -18
  343. package/dist/bookings-Br0VXzaf.d.ts +285 -0
  344. package/dist/bucket-DvG66r5G.d.ts +693 -0
  345. package/dist/build-Ckxct2EX.js +2065 -0
  346. package/dist/build-D1-V9dd8.js +732 -0
  347. package/dist/carrier-D2b_028L.d.ts +165 -0
  348. package/dist/casing-DQzG9ANZ.js +15 -0
  349. package/dist/channel-B_kufDZy.d.ts +101 -0
  350. package/dist/channels-BxeTTtCY.js +113 -0
  351. package/dist/chat-sdk/index.d.ts +174 -41
  352. package/dist/chat-sdk/index.js +425 -83
  353. package/dist/claim-names-BKig1LOk.js +24 -0
  354. package/dist/claims/index.d.ts +8 -0
  355. package/dist/claims/index.js +8 -0
  356. package/dist/claims-CqTr_N1n.js +98 -0
  357. package/dist/claims-DouHL7ZL.js +62 -0
  358. package/dist/cli/_format-Ba0DoWjl.js +99 -0
  359. package/dist/cli/add-BDLLVLI8.js +99 -0
  360. package/dist/cli/add-BaOCKKt6.js +1 -0
  361. package/dist/cli/add-D2pKTbPw.js +1222 -0
  362. package/dist/cli/agent-59XWXsRi.js +184 -0
  363. package/dist/cli/app-table-files-CimWi_eh.js +343 -0
  364. package/dist/cli/arazzo-1.0-D3OaSeZw.js +531 -0
  365. package/dist/cli/arazzo-1.1-DaT2KAkP.js +704 -0
  366. package/dist/cli/args-_ZVgRBkx.js +26 -0
  367. package/dist/cli/asyncapi-3.0.0-Ca-UwtUW.js +5592 -0
  368. package/dist/cli/asyncapi-3.1.0-DUxf5zNu.js +5832 -0
  369. package/dist/cli/authorization-DJkkOjjG.js +230 -0
  370. package/dist/cli/backfill-B1xAsdL4.js +292 -0
  371. package/dist/cli/bin.js +5 -5
  372. package/dist/cli/blocks-DtZtn-R4.js +1 -0
  373. package/dist/cli/blocks-rBeis04I.js +155 -0
  374. package/dist/cli/cache-CvBRwv02.js +643 -0
  375. package/dist/cli/codemod-DYbVbJ-e.js +2884 -0
  376. package/dist/cli/codemod-block-renames-Dt3X1Wvg.js +238 -0
  377. package/dist/cli/command-BpZ4AuhR.js +1021 -0
  378. package/dist/cli/compare-yl4sSwVn.js +8 -0
  379. package/dist/cli/completion-B08Q0xB3.js +29 -0
  380. package/dist/cli/completion-CwL7e93t.js +210 -0
  381. package/dist/cli/completion-DHTT6rjI.js +1 -0
  382. package/dist/cli/config-CrwCec-B.js +1 -0
  383. package/dist/cli/config-D-Upz3jV.js +46 -0
  384. package/dist/cli/config-DrrkMihk.js +2030 -0
  385. package/dist/cli/config-edit-C6sQ1MqT.js +619 -0
  386. package/dist/cli/config-group-D4JWh4kG.js +388 -0
  387. package/dist/cli/content-mapper-DrhtDsAm.js +181 -0
  388. package/dist/cli/db-B8zfxjl2.js +77 -0
  389. package/dist/cli/db-Diy1OebO.js +246 -0
  390. package/dist/cli/detect-BcUDaO8I.js +83 -0
  391. package/dist/cli/dist-CYnD1kyT.js +128 -0
  392. package/dist/cli/dist-MKwjiW2w.js +1114 -0
  393. package/dist/cli/doctor-Dn4TzGmw.js +4687 -0
  394. package/dist/cli/env-BAJn6wCA.js +142 -0
  395. package/dist/cli/env-BCuUsWOh.js +1109 -0
  396. package/dist/cli/env-D70ihdbB.js +1 -0
  397. package/dist/cli/env-UN6PJFX6.js +1 -0
  398. package/dist/cli/errors-DcJ_PayO.js +97 -0
  399. package/dist/cli/exec-CXBufciC.js +461 -0
  400. package/dist/cli/fastest-levenshtein-B_QF6At5.js +119 -0
  401. package/dist/cli/files-DQayErI8.js +999 -0
  402. package/dist/cli/fresh-import-CdO2oQaQ.js +39 -0
  403. package/dist/cli/gen-BbeS0KgF.js +390 -0
  404. package/dist/cli/guards-DxwRG0Uv.js +7 -0
  405. package/dist/cli/in-stack-diff-huI7fGMX.js +185 -0
  406. package/dist/cli/index.d.ts +1 -53
  407. package/dist/cli/index.js +10 -11
  408. package/dist/cli/init-C30xdMSs.js +556 -0
  409. package/dist/cli/io-CQzy8PEZ.js +36 -0
  410. package/dist/cli/json5-DhsZB2va.js +784 -0
  411. package/dist/cli/jsonc-DU9Clnrz.js +1 -0
  412. package/dist/cli/jsonc-u_UiXFxs.js +43 -0
  413. package/dist/cli/keys-CxajkV_7.js +105 -0
  414. package/dist/cli/legacy-prefix-D8Jfku6I.js +153 -0
  415. package/dist/cli/live-Ctc8Qh9Y.js +339 -0
  416. package/dist/cli/mcp-5J0kUOtD.js +240 -0
  417. package/dist/cli/metadata-DxhUNctA.js +149 -0
  418. package/dist/cli/migrate-ockrh3UX.js +45 -0
  419. package/dist/cli/migration-safety-CLrqC0D-.js +925 -0
  420. package/dist/cli/migrations-CZTg2UJM.js +116 -0
  421. package/dist/cli/module-migration-BptQzmj2.js +118 -0
  422. package/dist/cli/moved-BAFPdJz_.js +253 -0
  423. package/dist/cli/ohash-imLR_J5Y.js +276 -0
  424. package/dist/cli/openapi-3.0-BJiTNq_x.js +927 -0
  425. package/dist/cli/openapi-3.1-BcWCoii2.js +869 -0
  426. package/dist/cli/openapi-3.2-MXPkeoTk.js +1030 -0
  427. package/dist/cli/orphans-CPcR85QN.js +27 -0
  428. package/dist/cli/parse-BueItuNJ.js +181 -0
  429. package/dist/cli/powersync-CmsXOuui.js +1 -0
  430. package/dist/cli/powersync-DIvsipKr.js +375 -0
  431. package/dist/cli/preset-BQnjDCSR.js +100 -0
  432. package/dist/cli/print-DdHt8xCc.js +66 -0
  433. package/dist/cli/prompts-D9b6uf21.js +1133 -0
  434. package/dist/cli/providers-k-1cEna6.js +99 -0
  435. package/dist/cli/prune-workflows-Ddv-GfkO.js +153 -0
  436. package/dist/cli/redact--zOGdWzo.js +37 -0
  437. package/dist/cli/remove-DEEQDoc7.js +237 -0
  438. package/dist/cli/render-SjSVz8yK.js +2216 -0
  439. package/dist/cli/rolldown-runtime-DegdyBIC.js +25 -0
  440. package/dist/cli/run-DdhIK7-K.js +1451 -0
  441. package/dist/cli/run-Ixt9mEb6.js +703 -0
  442. package/dist/cli/run-dY9uOC3W.js +62 -0
  443. package/dist/cli/seed-BpaqqyO8.js +187 -0
  444. package/dist/cli/seed-ByLneY1H.js +1 -0
  445. package/dist/cli/shared-p6sxli_5.js +150 -0
  446. package/dist/cli/shell-C1U618XA.js +9 -0
  447. package/dist/cli/skills-jZThjL3B.js +120 -0
  448. package/dist/cli/snapshot-Dd_8B9g-.js +728 -0
  449. package/dist/cli/source-BYvVe_Es.js +317 -0
  450. package/dist/cli/source-args-Bz5QQne2.js +58 -0
  451. package/dist/cli/spec-BxQgllJY.js +7449 -0
  452. package/dist/cli/spec-liRzcZTa.js +1 -0
  453. package/dist/cli/sql-layout-DHwiUOaD.js +260 -0
  454. package/dist/cli/stack-147NqctC.js +134 -0
  455. package/dist/cli/stack-env-BQhbUFa7.js +92 -0
  456. package/dist/cli/stack-status-Mxgqb3I4.js +45 -0
  457. package/dist/cli/stacks-C5YL6Un9.js +230 -0
  458. package/dist/cli/style-B5-nByxb.js +34 -0
  459. package/dist/cli/supabase-toml-B6-eEV5p.js +1155 -0
  460. package/dist/cli/sync-CreQWj53.js +318 -0
  461. package/dist/cli/table-D9FbJS8h.js +88 -0
  462. package/dist/cli/toml-VX0BsvYq.js +422 -0
  463. package/dist/cli/topics-Cdg0V7Tt.js +29 -0
  464. package/dist/cli/trace-D3TNqWBg.js +6 -0
  465. package/dist/cli/upgrade-3NQOUO1_.js +270 -0
  466. package/dist/cli/upgrade-U7IKj45h.js +40 -0
  467. package/dist/cli/validate-C_WTnX1U.js +7426 -0
  468. package/dist/cli/version-mBwP-aMG.js +3 -0
  469. package/dist/cli/yaml-JsusTbcC.js +2250 -0
  470. package/dist/client/index.d.ts +7 -7
  471. package/dist/client/index.js +9 -12
  472. package/dist/client/native/index.d.ts +7 -23
  473. package/dist/client/native/index.js +15 -22
  474. package/dist/client-Bky2z09B.js +290 -0
  475. package/dist/clone-H_gCsL29.js +32 -0
  476. package/dist/cloud-event-CLvsaPqH.js +62 -0
  477. package/dist/cloud-event-DXWmXrus.d.ts +62 -0
  478. package/dist/codecs-B1VO2BGL.d.ts +220 -0
  479. package/dist/codecs-B9v5Y5HH.js +357 -0
  480. package/dist/commerce/index.d.ts +5 -13
  481. package/dist/commerce/index.js +13 -16
  482. package/dist/compiler-qlXlokKn.d.ts +12 -0
  483. package/dist/compose-BRBlPSEY.js +52 -0
  484. package/dist/composite-CIxjVcL1.d.ts +79 -0
  485. package/dist/composite-D2JnIiHt.js +125 -0
  486. package/dist/config/index.d.ts +6 -6
  487. package/dist/config/index.js +7 -7
  488. package/dist/config-Bu6pwqcO.js +1102 -0
  489. package/dist/config-MDRA2sre.js +1672 -0
  490. package/dist/connectors-Cf2LeAuZ.d.ts +145 -0
  491. package/dist/context-D7jICqdN.d.ts +4279 -0
  492. package/dist/context-DSevnLrT.js +40 -0
  493. package/dist/contract/index.d.ts +16 -0
  494. package/dist/contract/index.js +0 -0
  495. package/dist/controller-BJmh7gFm.js +78 -0
  496. package/dist/controller-DxtxeYdf.d.ts +50 -0
  497. package/dist/controller-y1kSMuCU.js +72 -0
  498. package/dist/conversion-Bj9j3KnG.js +76 -0
  499. package/dist/conversion-C9rndpEI.d.ts +84 -0
  500. package/dist/cookie-DDkqvqe4.d.ts +3 -0
  501. package/dist/cookie-DJI6xXJ9.js +4 -0
  502. package/dist/cors-9SDsndtb.d.ts +13 -0
  503. package/dist/cors-DrDFLMNn.js +23 -0
  504. package/dist/create/index.d.ts +4 -28
  505. package/dist/create/index.js +9 -15
  506. package/dist/create/lite/index.d.ts +5 -25
  507. package/dist/create/lite/index.js +14 -24
  508. package/dist/create/oauth/index.d.ts +1 -1
  509. package/dist/create/oauth/index.js +1 -2
  510. package/dist/create/supabase/index.d.ts +2 -4
  511. package/dist/create/supabase/index.js +3 -6
  512. package/dist/create-blocks-D7q1boXV.js +367 -0
  513. package/dist/credentials/index.d.ts +6 -10
  514. package/dist/credentials/index.js +11 -12
  515. package/dist/cron-BD8VrQQl.js +147 -0
  516. package/dist/cron-route-DSITg1yC.js +23 -0
  517. package/dist/csv-Bwn9insJ.js +88 -0
  518. package/dist/csv-Dd1iKsk-.d.ts +26 -0
  519. package/dist/data-engine-BbqQwso_.js +174 -0
  520. package/dist/data-engine-CMENsp3d.d.ts +269 -0
  521. package/dist/data-hooks-BToeAcQ_.js +277 -0
  522. package/dist/db-exception-Dv18UZ-I.js +30 -0
  523. package/dist/deal-forecast-CN_BEy9s.d.ts +21 -0
  524. package/dist/deal-forecast-DsVFoMkJ.js +38 -0
  525. package/dist/define-B6D55cO0.js +2073 -0
  526. package/dist/define-ITQA71fw.d.ts +1242 -0
  527. package/dist/define-block-22Jv4U_-.js +63 -0
  528. package/dist/define-block-COmMkx2x.d.ts +1669 -0
  529. package/dist/delegation-C2rLpkHO.js +147 -0
  530. package/dist/delivery-CWcbh87x.d.ts +69 -0
  531. package/dist/delivery-SmPHu2_H.js +28 -0
  532. package/dist/delivery-events-0mAEuscm.js +52 -0
  533. package/dist/documents-DeZw83ue.d.ts +150 -0
  534. package/dist/edge/index.d.ts +20 -26
  535. package/dist/edge/index.js +20 -24
  536. package/dist/elysia/index.d.ts +2 -6
  537. package/dist/elysia/index.js +4 -6
  538. package/dist/email-BRm6wMWQ.d.ts +40 -0
  539. package/dist/embeddings--v4BJdUL.js +127 -0
  540. package/dist/embeddings-rVR2AKVz.d.ts +76 -0
  541. package/dist/ended-NC_ZesY4.d.ts +22 -0
  542. package/dist/entitlements-Dydkg-TV.js +47 -0
  543. package/dist/entitlements-sLoj3M6Y.js +44 -0
  544. package/dist/entitlements-w04ivvAy.d.ts +70 -0
  545. package/dist/entity-naming-BES3pkQI.js +130 -0
  546. package/dist/entity-schema-DEIz0I8i.js +38 -0
  547. package/dist/env/index.d.ts +1 -1
  548. package/dist/env/index.js +1 -2
  549. package/dist/envelope-CapD-JtH.js +90 -0
  550. package/dist/errors-B7tCfCvX.js +327 -0
  551. package/dist/errors-BdjHv5SV.js +43 -0
  552. package/dist/errors-D3-4c-XF.js +102 -0
  553. package/dist/escape-like-CK6L7gkj.d.ts +26 -0
  554. package/dist/escape-like-gxNXs145.js +6 -0
  555. package/dist/eve/index.d.ts +247 -16
  556. package/dist/eve/index.js +334 -26
  557. package/dist/eve-DIKjuPp5.d.ts +213 -0
  558. package/dist/event-calendar-DUtFyRrv.d.ts +63 -0
  559. package/dist/event-map-DxfsFgQT.js +18 -0
  560. package/dist/events/index.d.ts +3 -3
  561. package/dist/events/index.js +7 -8
  562. package/dist/events-BRKIxVQD.js +25 -0
  563. package/dist/events-DVt3Z9hw.d.ts +850 -0
  564. package/dist/events-Da482tiF.js +81 -0
  565. package/dist/executor-BDMqPbVU.js +482 -0
  566. package/dist/executor-C0_TT717.js +840 -0
  567. package/dist/executor-CFmee_nV.d.ts +35 -0
  568. package/dist/executor-CHnoKOxk.d.ts +168 -0
  569. package/dist/executor-Dc4Pl44u.js +207 -0
  570. package/dist/executor-DqNRrFxx.d.ts +99 -0
  571. package/dist/expo/index.d.ts +5 -9
  572. package/dist/expo/index.js +10 -12
  573. package/dist/extension-DQ9-oOVC.js +58 -0
  574. package/dist/extension-WdHd5uqI.js +102 -0
  575. package/dist/extension-Z8Pe7fXA.js +120 -0
  576. package/dist/extension-rdpYvpyN.js +52 -0
  577. package/dist/extension-shared-DJb_PfD4.js +59 -0
  578. package/dist/extra-Dz9n5y1s.js +9 -0
  579. package/dist/field-errors-DKCaSlZw.d.ts +208 -0
  580. package/dist/field-formats-Cap-V7UP.js +101 -0
  581. package/dist/field-formats-DVukMbRa.d.ts +36 -0
  582. package/dist/fields-BBcdKD-S.js +107 -0
  583. package/dist/fields-CAVk9dxX.d.ts +76 -0
  584. package/dist/filter-evaluate-Bz3Fzhz2.d.ts +35 -0
  585. package/dist/filter-evaluate-D_LLfdtE.js +216 -0
  586. package/dist/filter-query-DV-x8fio.d.ts +131 -0
  587. package/dist/filter-query-Ds7Z6lgZ.js +565 -0
  588. package/dist/flags-0EXDD3Iz.js +361 -0
  589. package/dist/flags-6emyAXly.d.ts +315 -0
  590. package/dist/flags-sdk/index.d.ts +217 -28
  591. package/dist/flags-sdk/index.js +255 -35
  592. package/dist/form-definition-8cCCt5zj.js +362 -0
  593. package/dist/form-definition-BN8shngm.d.ts +117 -0
  594. package/dist/format-BT0Z3V54.d.ts +77 -0
  595. package/dist/framework-BFlaPuvv.d.ts +46 -0
  596. package/dist/framework-ChzJYkJW.js +58 -0
  597. package/dist/function-contract-Bf6llTkE.js +7 -0
  598. package/dist/function-contract-DgDBYbXu.d.ts +25 -0
  599. package/dist/gateway-DaekJ_Me.d.ts +120 -0
  600. package/dist/gateway-options-DQGQzdkD.js +26 -0
  601. package/dist/gateway-options-Mut8jih_.d.ts +27 -0
  602. package/dist/guards-CsRa6v57.js +11 -0
  603. package/dist/guest-actions-CEwttioE.js +8 -0
  604. package/dist/guest-actions-DfHHp98H.d.ts +3 -0
  605. package/dist/h3/index.d.ts +2 -6
  606. package/dist/h3/index.js +4 -6
  607. package/dist/h3/v1/index.d.ts +3 -5
  608. package/dist/h3/v1/index.js +4 -5
  609. package/dist/history-6KiVNWdH.js +269 -0
  610. package/dist/hmac-DNcfpmI9.js +22 -0
  611. package/dist/hono/index.d.ts +18 -22
  612. package/dist/hono/index.js +16 -17
  613. package/dist/http-BDC1IvBX.js +27 -0
  614. package/dist/http-BRUI3qim.js +140 -0
  615. package/dist/http-D4lH1xqY.js +39 -0
  616. package/dist/image-url-bsGeybeg.js +83 -0
  617. package/dist/impersonation-BOCJcsmS.d.ts +26 -0
  618. package/dist/impersonation-D-quM36V.js +61 -0
  619. package/dist/inbox-DavCzW7b.d.ts +326 -0
  620. package/dist/index-8w4OB5En.d.ts +102 -0
  621. package/dist/index-BIAtapnD.d.ts +570 -0
  622. package/dist/index-BWR29Vvw.d.ts +76 -0
  623. package/dist/index-BZCmy767.d.ts +234 -0
  624. package/dist/index-BdC2IqkU.d.ts +152 -0
  625. package/dist/index-BgkHbf9C.d.ts +637 -0
  626. package/dist/index-BvcMQYL-.d.ts +326 -0
  627. package/dist/index-CbUXFzQV.d.ts +107 -0
  628. package/dist/index-CiE37wKX.d.ts +289 -0
  629. package/dist/index-D18su_r5.d.ts +402 -0
  630. package/dist/index-DU0UwWvL.d.ts +667 -0
  631. package/dist/index-Dj4VKpYZ.d.ts +49 -0
  632. package/dist/index-Dvpu22CJ.d.ts +291 -0
  633. package/dist/index-IKfbX_39.d.ts +23 -0
  634. package/dist/index-M1izbwbN.d.ts +145 -0
  635. package/dist/index.d.ts +13 -41
  636. package/dist/index.js +29 -34
  637. package/dist/instance-property-BlH7QSDl.js +6 -0
  638. package/dist/instances-D31jrmKh.js +16636 -0
  639. package/dist/invalidate-DAB9CaPm.d.ts +19 -0
  640. package/dist/iso4217-oKsif_hW.js +175 -0
  641. package/dist/json-O5vFw243.js +21 -0
  642. package/dist/json-schema-D9eVL_xi.js +884 -0
  643. package/dist/jwks-cache-IZaiICAV.js +48 -0
  644. package/dist/jws-B8p0ppgh.js +204 -0
  645. package/dist/jws-CxgTsbgG.d.ts +64 -0
  646. package/dist/kit-9pZP5iLU.js +163 -0
  647. package/dist/kit-OgFOW9rX.d.ts +92 -0
  648. package/dist/knowledge-BBC2sfAY.d.ts +215 -0
  649. package/dist/knowledge-DdZzUTQ-.js +299 -0
  650. package/dist/lint/index.d.ts +1 -5
  651. package/dist/lint/index.js +8 -10
  652. package/dist/list/index.d.ts +3 -3
  653. package/dist/list/index.js +3 -3
  654. package/dist/list-query-C7V8kUaD.d.ts +220 -0
  655. package/dist/list-query-D-tgs1eY.js +558 -0
  656. package/dist/live-BVi3q4bX.js +277 -0
  657. package/dist/logger-0LfhvwE4.d.ts +16 -0
  658. package/dist/logger-BkF8ukXV.js +20 -0
  659. package/dist/lookup-upE-e1zw.js +17 -0
  660. package/dist/management-DtX4ic1F.d.ts +55 -0
  661. package/dist/mapper/bin.js +13 -17
  662. package/dist/mcp/index.d.ts +4 -299
  663. package/dist/mcp/index.js +71 -42
  664. package/dist/mcp/sdk/index.d.ts +7 -11
  665. package/dist/mcp/sdk/index.js +12 -14
  666. package/dist/message-Cc4bkdNw.d.ts +97 -0
  667. package/dist/messages-CRk1g6oe.js +512 -0
  668. package/dist/messaging-D5z2TR37.d.ts +295 -0
  669. package/dist/methods-BjfDv4Gy.js +9 -0
  670. package/dist/metric-definition-2KQYeUZ1.d.ts +67 -0
  671. package/dist/metric-definition-D4H6IQT7.js +116 -0
  672. package/dist/mfa-CM5r904M.d.ts +34 -0
  673. package/dist/model-Lxa_mOzB.d.ts +338 -0
  674. package/dist/model-messages-BcrkjsPE.js +205 -0
  675. package/dist/model-messages-CGSUU450.d.ts +32 -0
  676. package/dist/money-BgpAd7d3.d.ts +89 -0
  677. package/dist/money-DH--bbYr.js +196 -0
  678. package/dist/money-codec-SKPm8FPw.js +40 -0
  679. package/dist/my-work-kinds-DNPq3ccL.js +10 -0
  680. package/dist/nestjs/index.d.ts +3 -5
  681. package/dist/nestjs/index.js +5 -6
  682. package/dist/next/client/index.d.ts +1 -5
  683. package/dist/next/client/index.js +2 -4
  684. package/dist/next/image/index.d.ts +1 -3
  685. package/dist/next/image/index.js +2 -3
  686. package/dist/next/index.d.ts +98 -106
  687. package/dist/next/index.js +88 -87
  688. package/dist/node/index.d.ts +3 -3
  689. package/dist/node/index.js +6 -7
  690. package/dist/node-headers-C3FExlg9.js +54 -0
  691. package/dist/node-headers-TnS4T7V_.d.ts +25 -0
  692. package/dist/nuxt/index.d.ts +0 -2
  693. package/dist/nuxt/index.js +1 -2
  694. package/dist/operations-BNFbWv1t.js +28 -0
  695. package/dist/operations-CsCwruKT.d.ts +4 -0
  696. package/dist/optional-peer-5SOYr3lL.js +31 -0
  697. package/dist/options--rohtkkC.js +4 -0
  698. package/dist/options-1iHDmlZ5.js +8 -0
  699. package/dist/options-2QJXZPPS.js +4 -0
  700. package/dist/options-B-JqrC61.d.ts +8 -0
  701. package/dist/options-B3xH2JvJ.js +8 -0
  702. package/dist/options-B4sTqDrt.js +4 -0
  703. package/dist/options-B56njigZ.js +19 -0
  704. package/dist/options-B5A3UmKY.d.ts +17 -0
  705. package/dist/options-B6m9gYRH.d.ts +11 -0
  706. package/dist/options-B7Pl708M.js +8 -0
  707. package/dist/options-B7YrdiUc.js +11 -0
  708. package/dist/options-B8c2_hIB.js +9 -0
  709. package/dist/options-B9w_Y08G.d.ts +6 -0
  710. package/dist/options-BDF60ouf.js +4 -0
  711. package/dist/options-BDMPjyrI.js +4 -0
  712. package/dist/options-BHdHuY5r.js +14 -0
  713. package/dist/options-BLMeCbtT.js +31 -0
  714. package/dist/options-BLQePOPy.d.ts +8 -0
  715. package/dist/options-BLn1PFyu.js +4 -0
  716. package/dist/options-BMO-FnOT.js +7 -0
  717. package/dist/options-BNRvoEkj.js +4 -0
  718. package/dist/options-BPQOiVx2.js +7 -0
  719. package/dist/options-BSTJmfX4.js +10 -0
  720. package/dist/options-BTRH26MJ.js +9 -0
  721. package/dist/options-BTaQszYn.js +9 -0
  722. package/dist/options-BYo7hMHK.js +10 -0
  723. package/dist/options-B_bxCZYM.js +7 -0
  724. package/dist/options-BaBaVWS-.js +10 -0
  725. package/dist/options-BamaRO-q.d.ts +12 -0
  726. package/dist/options-BcBdiPSZ.js +7 -0
  727. package/dist/options-BfY4pyQE.js +23 -0
  728. package/dist/options-BgCS5ODi.js +9 -0
  729. package/dist/options-Bi96Lzuf.js +9 -0
  730. package/dist/options-BjEsSoFp.js +17 -0
  731. package/dist/options-Bkx8vwip.js +4 -0
  732. package/dist/options-BmFSI07A.js +4 -0
  733. package/dist/options-BmwDdKwE.js +7 -0
  734. package/dist/options-Bn3NjXfn.js +7 -0
  735. package/dist/options-BqK4xV67.js +13 -0
  736. package/dist/options-Bs2dC-at.js +11 -0
  737. package/dist/options-BvttpM1M.js +4 -0
  738. package/dist/options-Bwrwb8do.d.ts +10 -0
  739. package/dist/options-BxdqA2Ex.js +19 -0
  740. package/dist/options-BzxR82Tu.js +9 -0
  741. package/dist/options-C-NFS6e3.js +13 -0
  742. package/dist/options-C13-dVMH.js +7 -0
  743. package/dist/options-C1RIyAe1.js +7 -0
  744. package/dist/options-C1kZ3qLd.js +8 -0
  745. package/dist/options-C2RjdunU.js +27 -0
  746. package/dist/options-C4kpi6HE.js +8 -0
  747. package/dist/options-C5MfwOAO.js +8 -0
  748. package/dist/options-C5fKQ3EJ.d.ts +10 -0
  749. package/dist/options-CJR59q8s.js +17 -0
  750. package/dist/options-CJVYQue3.d.ts +10 -0
  751. package/dist/options-CLy7CcMn.js +8 -0
  752. package/dist/options-COfEYic3.js +8 -0
  753. package/dist/options-CRwTY_q2.d.ts +58 -0
  754. package/dist/options-CcW7h8mv.js +9 -0
  755. package/dist/options-Ceu2j1vv.js +7 -0
  756. package/dist/options-CgBKgmI8.js +7 -0
  757. package/dist/options-CgMiQGOF.js +9 -0
  758. package/dist/options-CptvcSmF.js +11 -0
  759. package/dist/options-CsLUAt04.js +8 -0
  760. package/dist/options-CtyjhSGk.js +15 -0
  761. package/dist/options-CuPWezcV.js +7 -0
  762. package/dist/options-CyDOOWlk.js +7 -0
  763. package/dist/options-CyYZvdSy.js +10 -0
  764. package/dist/options-CzIPn0fF.js +4 -0
  765. package/dist/options-CzWjw2HY.js +10 -0
  766. package/dist/options-CztbWdz9.js +4 -0
  767. package/dist/options-D4LuPM8a.js +4 -0
  768. package/dist/options-D4dxMGHF.js +7 -0
  769. package/dist/options-D5a9CHgP.js +7 -0
  770. package/dist/options-D6tpMRvp.d.ts +13 -0
  771. package/dist/options-D848Os4l.js +10 -0
  772. package/dist/options-DCZPW5gR.d.ts +15 -0
  773. package/dist/options-DFSHZFLN.js +4 -0
  774. package/dist/options-DFemc2im.js +9 -0
  775. package/dist/options-DFgHHwzD.js +12 -0
  776. package/dist/options-DNZ9r_Vo.d.ts +8 -0
  777. package/dist/options-DP7NwQPZ.js +4 -0
  778. package/dist/options-DPQaafyc.js +7 -0
  779. package/dist/options-DQkhhBLy.js +4 -0
  780. package/dist/options-DTTz33na.js +9 -0
  781. package/dist/options-DToWdVqW.js +4 -0
  782. package/dist/options-DUNUGuhM.js +4 -0
  783. package/dist/options-DWgpi5ns.js +7 -0
  784. package/dist/options-DeamnVOY.d.ts +12 -0
  785. package/dist/options-Dg7eK-_J.d.ts +8 -0
  786. package/dist/options-DiIlMZpc.js +8 -0
  787. package/dist/options-DjFbIRgV.js +16 -0
  788. package/dist/options-DjtCYRWb.js +4 -0
  789. package/dist/options-Dk6D88Zx.d.ts +6 -0
  790. package/dist/options-DpwRG4tO.js +8 -0
  791. package/dist/options-DvgKdZ2K.js +9 -0
  792. package/dist/options-DwIoRvic.js +4 -0
  793. package/dist/options-GwwLsKf5.js +8 -0
  794. package/dist/options-I1ZHfDP0.d.ts +58 -0
  795. package/dist/options-Itq7QYoW.js +20 -0
  796. package/dist/options-JnPEVbBJ.js +17 -0
  797. package/dist/options-Jwux4JDX.js +7 -0
  798. package/dist/options-Lg76d-cV.js +7 -0
  799. package/dist/options-Lh6uxepF.d.ts +24 -0
  800. package/dist/options-Oki2W_c3.js +4 -0
  801. package/dist/options-PM7IaIFP.js +10 -0
  802. package/dist/options-PTLBl6QT.js +7 -0
  803. package/dist/options-PheFo4JY.js +10 -0
  804. package/dist/options-SlC_jZ7y.js +4 -0
  805. package/dist/options-Sq4bYbf5.js +13 -0
  806. package/dist/options-XiD_Y3oK.js +14 -0
  807. package/dist/options-Z-bd_H1E.js +88 -0
  808. package/dist/options-ax_ssX_m.js +4 -0
  809. package/dist/options-bNB8_nlW.js +23 -0
  810. package/dist/options-eIEk0vqV.js +4 -0
  811. package/dist/options-eLIedotm.js +7 -0
  812. package/dist/options-jg0FMHA5.js +4 -0
  813. package/dist/options-mypVYaqR.js +9 -0
  814. package/dist/options-ompJjxkV.js +4 -0
  815. package/dist/options-pbc4H8_A.js +7 -0
  816. package/dist/options-uUGi0Phf.d.ts +14 -0
  817. package/dist/options-yRwYr4up.js +4 -0
  818. package/dist/options-z2Zhi97E.js +9 -0
  819. package/dist/options-zYV6M0vr.js +8 -0
  820. package/dist/orpc/index.d.ts +13 -19
  821. package/dist/orpc/index.js +20 -23
  822. package/dist/otel/index.d.ts +4 -6
  823. package/dist/otel/index.js +8 -10
  824. package/dist/outbox-7zgh-7nw.d.ts +197 -0
  825. package/dist/payments-B4JchZuJ.js +15 -0
  826. package/dist/payments-BBGSGRQ7.d.ts +112 -0
  827. package/dist/permissions-BDt27oYF.js +48 -0
  828. package/dist/permissions-BP593xxk.d.ts +44 -0
  829. package/dist/permissions-controller-B4uI5IPH.js +33 -0
  830. package/dist/pg-error-D92B6jlF.js +25 -0
  831. package/dist/plugin-Ca2qBiFZ.js +47 -0
  832. package/dist/pool-D-4HyhuW.d.ts +121 -0
  833. package/dist/pool-errors-JrZie6u3.js +26 -0
  834. package/dist/ports-BVLhLUvR.d.ts +87 -0
  835. package/dist/ports-CmEXVqhg.js +150 -0
  836. package/dist/postgres/index.d.ts +5 -11
  837. package/dist/postgres/index.js +7 -9
  838. package/dist/postgrest-DZtM2nIS.d.ts +51 -0
  839. package/dist/postgrest-executor-lf8Mt4J0.js +1064 -0
  840. package/dist/powersync/index.d.ts +7 -25
  841. package/dist/powersync/index.js +14 -24
  842. package/dist/preset/index.d.ts +3 -3
  843. package/dist/preset/index.js +3 -3
  844. package/dist/preset-om2rbdYw.js +1038 -0
  845. package/dist/problem-C0SVHhd3.js +161 -0
  846. package/dist/problem-NGBjN-TO.d.ts +77 -0
  847. package/dist/project-D4ArwcS5.js +1749 -0
  848. package/dist/provider-B6qpleR9.js +56 -0
  849. package/dist/provider-BI0KC4u5.d.ts +142 -0
  850. package/dist/providers-C9sBIBYE.js +62 -0
  851. package/dist/push-token-B0j171on.d.ts +22 -0
  852. package/dist/push-token-CO28k46S.js +15 -0
  853. package/dist/queries-BLrxg_GL.js +238 -0
  854. package/dist/query/index.d.ts +3 -3
  855. package/dist/query/index.js +11 -15
  856. package/dist/range-BN3kpJAE.d.ts +6 -0
  857. package/dist/range-Nrh_qtb_.js +6 -0
  858. package/dist/rank-keys-CEBzd9Xa.js +59 -0
  859. package/dist/rank-result-B_xLQCBV.d.ts +12 -0
  860. package/dist/rank-result-DzaTKKhH.js +17 -0
  861. package/dist/rate-limit-C89Yzwd9.d.ts +48 -0
  862. package/dist/rate-limit-CRhlLFhP.js +380 -0
  863. package/dist/rate-limit-DXJbLVg0.js +48 -0
  864. package/dist/ratelimit-headers-CpB-cDD6.js +61 -0
  865. package/dist/react/index.d.ts +11 -11
  866. package/dist/react/index.js +6 -6
  867. package/dist/react/native/index.d.ts +3 -5
  868. package/dist/react/native/index.js +5 -5
  869. package/dist/react/server.d.ts +13 -15
  870. package/dist/react/server.js +9 -10
  871. package/dist/react/session.d.ts +4 -6
  872. package/dist/react/session.js +2 -3
  873. package/dist/react-COIov1yC.js +1006 -0
  874. package/dist/react-CqOVutZj.js +80 -0
  875. package/dist/react-router/index.d.ts +7 -12
  876. package/dist/react-router/index.js +10 -12
  877. package/dist/read-set-DEDoIHMM.js +198 -0
  878. package/dist/realtime/index.d.ts +7 -7
  879. package/dist/realtime/index.js +6 -7
  880. package/dist/realtime-status-CocmAOPv.js +10 -0
  881. package/dist/realtime-status-D3oUx3o4.d.ts +6 -0
  882. package/dist/record-bindings-jTZw-GVe.js +25 -0
  883. package/dist/record-form-DU2EoVsv.d.ts +80 -0
  884. package/dist/record-type-oQxekQTX.js +219 -0
  885. package/dist/recordings-D69Va7gP.d.ts +117 -0
  886. package/dist/records/index.d.ts +10 -14
  887. package/dist/records/index.js +13 -16
  888. package/dist/refresh-B8t_KE3s.js +142 -0
  889. package/dist/refresh-BtbC2rZe.d.ts +52 -0
  890. package/dist/refusal-5c6UMpUP.js +63 -0
  891. package/dist/refusal-CGi-0Q18.d.ts +30 -0
  892. package/dist/relay-CllqA-lV.js +248 -0
  893. package/dist/resolve--LfVoOMg.d.ts +287 -0
  894. package/dist/resolve-FW8oeXvh.js +927 -0
  895. package/dist/resolved-names-DYYyh35i.js +130 -0
  896. package/dist/resource-BbWk4hoP.js +561 -0
  897. package/dist/resource-DQ4kIBpa.js +104 -0
  898. package/dist/resource-DWllVW8k.d.ts +124 -0
  899. package/dist/resource-execute-DUBYKTYU.d.ts +13 -0
  900. package/dist/resource-schemas-Bq0g2RCQ.js +81 -0
  901. package/dist/resource-types-RgaljPs0.d.ts +155 -0
  902. package/dist/resources-Bki1J4jy.d.ts +5 -0
  903. package/dist/resources-DYSx9NYM.js +63 -0
  904. package/dist/respond-BYOV7KZp.d.ts +108 -0
  905. package/dist/respond-DLH4tD2d.js +106 -0
  906. package/dist/result-8xza7w5W.js +145 -0
  907. package/dist/result-DTOQRyGY.d.ts +347 -0
  908. package/dist/rows-Ce8dsmfM.js +79 -0
  909. package/dist/rows-D-RqIsRz.js +38 -0
  910. package/dist/rrule-BLpe2449.js +289 -0
  911. package/dist/run-keys-BnzqxtYc.d.ts +59 -0
  912. package/dist/run-state-D0Tbl-nM.d.ts +11 -0
  913. package/dist/run-state-DGiyDQxH.js +12 -0
  914. package/dist/run-watch-DJk4Q603.js +52 -0
  915. package/dist/runtime-qslVrC9l.js +43 -0
  916. package/dist/sales-lines-DuNVoKHA.d.ts +36 -0
  917. package/dist/sales-lines-axwWhnLk.js +44 -0
  918. package/dist/sales-shared-CY3s_wBx.js +21 -0
  919. package/dist/sandboxes-B2hBoBvJ.d.ts +85 -0
  920. package/dist/schemas-CpoEiAeT.js +213 -0
  921. package/dist/scope-dD_OAgRU.js +89 -0
  922. package/dist/scores-Bvk_JgXL.js +176 -0
  923. package/dist/scores-FAORS4qU.d.ts +172 -0
  924. package/dist/search-DtbkD0h0.js +8 -0
  925. package/dist/server/index.d.ts +39 -70
  926. package/dist/server/index.js +55 -59
  927. package/dist/server-types-C2hlvhP4.d.ts +521 -0
  928. package/dist/session-B4VasaAA.d.ts +96 -0
  929. package/dist/session-status-D8CBxCqv.d.ts +80 -0
  930. package/dist/shared-Bmcnxwie.js +16 -0
  931. package/dist/shared-Ci1g9nl4.js +90 -0
  932. package/dist/shared-DsBcvj6q.d.ts +9 -0
  933. package/dist/sign-in-BMm1xhKq.js +730 -0
  934. package/dist/sign-in-C9pZE1kM.d.ts +53 -0
  935. package/dist/sign-in-CX1a5i2P.d.ts +52 -0
  936. package/dist/sign-in-CxdoTEp5.js +399 -0
  937. package/dist/signatures-CBn7w4VR.js +144 -0
  938. package/dist/signatures-jPr9JXyw.d.ts +41 -0
  939. package/dist/signers-6ih6i9aq.d.ts +380 -0
  940. package/dist/signing-keys-BC5_hJN5.js +163 -0
  941. package/dist/signing-keys-De09WNJ3.d.ts +117 -0
  942. package/dist/simplify-BzThKn5b.js +82 -0
  943. package/dist/snapshot-BGsJw9xn.d.ts +83 -0
  944. package/dist/snapshot-CVMSyTHH.js +138 -0
  945. package/dist/solid/index.d.ts +12 -22
  946. package/dist/solid/index.js +10 -16
  947. package/dist/solid-start/index.d.ts +6 -9
  948. package/dist/solid-start/index.js +8 -9
  949. package/dist/spec/index.d.ts +6 -48
  950. package/dist/spec/index.js +23 -39
  951. package/dist/spec-6Vr7sc0Z.js +123 -0
  952. package/dist/spec-pins-CuQ2anBw.d.ts +125 -0
  953. package/dist/spec-pins-FKUzgF6K.js +61 -0
  954. package/dist/sql/index.d.ts +6 -5
  955. package/dist/sql/index.js +5 -5
  956. package/dist/sql-C1K5JALb.js +420 -0
  957. package/dist/sql-DiUP7fKX.js +140711 -0
  958. package/dist/sql-type-XWMeZRAl.js +33 -0
  959. package/dist/sqlite/index.d.ts +3 -9
  960. package/dist/sqlite/index.js +5 -8
  961. package/dist/sso-CRnaFJh0.js +216 -0
  962. package/dist/sso-CuzAjsc8.d.ts +159 -0
  963. package/dist/ssr/index.d.ts +5 -5
  964. package/dist/ssr/index.js +3 -3
  965. package/dist/standard-BD2aOUsf.js +24 -0
  966. package/dist/standard-DRX6Ch1j.d.ts +5 -0
  967. package/dist/stats-BTJgRMEp.js +82 -0
  968. package/dist/statuses-BTrQ5H4S.js +27 -0
  969. package/dist/statuses-Bv-0XoYC.js +27 -0
  970. package/dist/storage/index.d.ts +3 -3
  971. package/dist/storage/index.js +27 -40
  972. package/dist/storage-api-COQr77e8.js +9 -0
  973. package/dist/store-CKKzmsWB.js +68 -0
  974. package/dist/store-c7QxUHX-.d.ts +81 -0
  975. package/dist/streams/index.d.ts +3 -7
  976. package/dist/streams/index.js +5 -6
  977. package/dist/streams/redis/index.d.ts +1 -3
  978. package/dist/streams/redis/index.js +6 -7
  979. package/dist/stripe/index.d.ts +1 -3
  980. package/dist/stripe/index.js +3 -4
  981. package/dist/stripe-Bl-sjnl6.d.ts +154 -0
  982. package/dist/stripe-DKRwRWew.js +31 -0
  983. package/dist/subject-readers-BARV5rNp.js +48 -0
  984. package/dist/subject-readers-BlD8tALG.d.ts +19 -0
  985. package/dist/subject-type-BarjdHZV.js +7 -0
  986. package/dist/subjects-BGwLJ3IB.d.ts +148 -0
  987. package/dist/subjects-Bv2dPflD.d.ts +86 -0
  988. package/dist/subscribers-C57054Pc.js +32 -0
  989. package/dist/summaries-CUemsYwV.d.ts +67 -0
  990. package/dist/supabase-mcp-DY32eoax.d.ts +44 -0
  991. package/dist/supabase-mcp-QvebHckf.js +27 -0
  992. package/dist/support-DxYI6sDM.d.ts +351 -0
  993. package/dist/support-view-CvDEgyGY.js +17 -0
  994. package/dist/support-view-DSmCett7.d.ts +15 -0
  995. package/dist/svelte/index.d.ts +11 -21
  996. package/dist/svelte/index.js +9 -15
  997. package/dist/sveltekit/index.d.ts +9 -14
  998. package/dist/sveltekit/index.js +12 -14
  999. package/dist/table-schema-CwXg7oBz.d.ts +77 -0
  1000. package/dist/table-schema-D-ss9ozY.js +291 -0
  1001. package/dist/tables-BSiVuKKx.js +72 -0
  1002. package/dist/tags--k2fbPfO.d.ts +28 -0
  1003. package/dist/tags-CW-KvjdL.js +38 -0
  1004. package/dist/tanstack-db/index.d.ts +4 -8
  1005. package/dist/tanstack-db/index.js +4 -6
  1006. package/dist/tanstack-start/index.d.ts +7 -12
  1007. package/dist/tanstack-start/index.js +8 -10
  1008. package/dist/tax-BD9dN1rx.d.ts +168 -0
  1009. package/dist/tax-BwckP5dv.js +139 -0
  1010. package/dist/tee-CVOMhEX-.js +100 -0
  1011. package/dist/template-CNq9xcfx.js +125 -0
  1012. package/dist/temporal-DKTdGK9i.js +94 -0
  1013. package/dist/temporal-required-w_2u4EDp.js +19 -0
  1014. package/dist/tenant-B3IIq8Eq.d.ts +14 -0
  1015. package/dist/tenant-Beqd7TTq.js +48 -0
  1016. package/dist/tenant-source-46lMuMEn.js +7 -0
  1017. package/dist/testing/index.d.ts +120 -127
  1018. package/dist/testing/index.js +277 -129
  1019. package/dist/timeline-Bq658xsi.d.ts +147 -0
  1020. package/dist/timeline-Bs-FGMIJ.js +49 -0
  1021. package/dist/timing-B6yHayKA.js +94 -0
  1022. package/dist/topic-D2MyBeaI.d.ts +411 -0
  1023. package/dist/topic-k17VvXRj.js +640 -0
  1024. package/dist/transport-CS4cVH4S.js +30 -0
  1025. package/dist/ttl-cache-C5S0L2wx.js +31 -0
  1026. package/dist/types-BBqP9H6w.d.ts +175 -0
  1027. package/dist/types-BFEKRmEK.d.ts +449 -0
  1028. package/dist/types-BkYEUWdz.d.ts +1095 -0
  1029. package/dist/types-C8UyJOPJ.d.ts +247 -0
  1030. package/dist/types-DCoqai8o.d.ts +215 -0
  1031. package/dist/types-Dh2OGEW5.d.ts +648 -0
  1032. package/dist/types-DnrJ_crV.js +28 -0
  1033. package/dist/types-TH3zlMiM.d.ts +192 -0
  1034. package/dist/types-d0JBRTAg.d.ts +660 -0
  1035. package/dist/undo-22ofP6Zp.d.ts +44 -0
  1036. package/dist/undo-Dki6Ujak.js +43 -0
  1037. package/dist/upload-claim-Bo2mpBz4.js +32 -0
  1038. package/dist/usage-CNCT6_3D.d.ts +230 -0
  1039. package/dist/user-change-Ngy8z1fZ.js +133 -0
  1040. package/dist/variants-BaMleC56.js +51 -0
  1041. package/dist/vault-yGQD5Rdl.d.ts +60 -0
  1042. package/dist/vercel-connect/index.d.ts +194 -20
  1043. package/dist/vercel-connect/index.js +265 -33
  1044. package/dist/vercel-sandbox/index.d.ts +166 -0
  1045. package/dist/vercel-sandbox/index.js +171 -0
  1046. package/dist/verify-BQu3eBNW.d.ts +144 -0
  1047. package/dist/verify-DY_j4GPZ.js +129 -0
  1048. package/dist/view-BfEqjZJ_.js +117 -0
  1049. package/dist/view-Cy2XxYp1.d.ts +107 -0
  1050. package/dist/vue/index.d.ts +12 -22
  1051. package/dist/vue/index.js +10 -16
  1052. package/dist/watch-topic-C2KxpeaB.js +56 -0
  1053. package/dist/watch-topic-q6krNw0T.d.ts +29 -0
  1054. package/dist/wire-DIoLA8VL.js +90 -0
  1055. package/dist/wiring-DJBSLdyF.js +12 -0
  1056. package/dist/workflow-sdk/builder/index.d.ts +12 -14
  1057. package/dist/workflow-sdk/builder/index.js +12 -11
  1058. package/dist/workflow-sdk/index.d.ts +62 -6
  1059. package/dist/workflow-sdk/index.js +75 -10
  1060. package/dist/workflow-sdk/world/index.d.ts +13 -20
  1061. package/dist/workflow-sdk/world/index.js +115 -26
  1062. package/dist/workflow-sdk-BL3wzkdp.js +2749 -0
  1063. package/dist/workflow-sdk-q2jnEaAJ.js +302 -0
  1064. package/dist/workflow-sdk-yIkECybp.d.ts +171 -0
  1065. package/dist/workflows-BljkWRxE.d.ts +256 -0
  1066. package/dist/yjs/index.d.ts +3 -5
  1067. package/dist/yjs/index.js +6 -7
  1068. package/package.json +56 -31
  1069. package/schemas/config-v1.json +60 -3
  1070. package/schemas/doctor-report-v1.json +1 -0
  1071. package/schemas/snapshot-v2.json +7 -0
  1072. package/skills/better-supabase/SKILL.md +4 -4
  1073. package/skills/better-supabase/references/block-extensions.md +2 -2
  1074. package/skills/better-supabase/references/troubleshooting.md +1 -1
  1075. package/skills/better-supabase/references/ui-recipes.md +73 -36
  1076. package/skills/better-supabase-api/SKILL.md +1 -1
  1077. package/skills/better-supabase-api/references/adapters.md +3 -3
  1078. package/skills/better-supabase-api/references/ai.md +8 -0
  1079. package/skills/better-supabase-auth/SKILL.md +19 -19
  1080. package/skills/better-supabase-auth/references/authorization-providers.md +1 -1
  1081. package/dist/access-sql-CTDNuxRv.js +0 -385
  1082. package/dist/actor-CoveJgya.d.ts +0 -106
  1083. package/dist/actor-go7p9-CJ.js +0 -150
  1084. package/dist/adapter-BTbj5N9C.js +0 -2251
  1085. package/dist/agents-CM_cCtcr.d.ts +0 -117
  1086. package/dist/ai-cache-BFRKxgZ4.js +0 -87
  1087. package/dist/ai-cache-BTGqckta.d.ts +0 -82
  1088. package/dist/ai-chat-B7_vQvxU.d.ts +0 -619
  1089. package/dist/ai-files-m_2z3rH1.js +0 -339
  1090. package/dist/ai-message-DfaP8sis.js +0 -14
  1091. package/dist/ai-schedules-CZEfo-_M.d.ts +0 -166
  1092. package/dist/anchors-7F34QyHa.d.ts +0 -40
  1093. package/dist/api-3C0AWFeP.js +0 -696
  1094. package/dist/api-59rv5hL6.d.ts +0 -495
  1095. package/dist/api-keys-JE-aykZE.d.ts +0 -213
  1096. package/dist/app-tables-B2mKMNRQ.d.ts +0 -28
  1097. package/dist/approvals-BfEafAzt.d.ts +0 -129
  1098. package/dist/assistant-B49qATbj.d.ts +0 -157
  1099. package/dist/attachments-BXbLnNxm.js +0 -376
  1100. package/dist/attributes-Bzf51_nc.js +0 -47
  1101. package/dist/auth-DyF_LRxd.js +0 -20
  1102. package/dist/auth-link-B4NL84XU.d.ts +0 -104
  1103. package/dist/auth-link-D3-bU6yz.js +0 -118
  1104. package/dist/auth-module-BbmX-N4L.js +0 -52
  1105. package/dist/auth-reply-Dj124sbX.d.ts +0 -11
  1106. package/dist/auth-reply-tlXB2FQ9.js +0 -31
  1107. package/dist/authorization-DfEkyFt_.d.ts +0 -3867
  1108. package/dist/authorization-hooks-BWhkMZfH.d.ts +0 -221
  1109. package/dist/authorizer-B6X09otb.d.ts +0 -118
  1110. package/dist/authorizer-BGhXaDmo.js +0 -172
  1111. package/dist/automation-D41DXyvT.js +0 -75
  1112. package/dist/automations-8L3NEuoq.js +0 -29
  1113. package/dist/automations-BKjJpktQ.js +0 -33
  1114. package/dist/automations-BMuqwZZn.js +0 -314
  1115. package/dist/automations-EzXteupo.js +0 -31
  1116. package/dist/availability-BdeKCHpl.d.ts +0 -236
  1117. package/dist/base64-B9Wlsdj7.js +0 -42
  1118. package/dist/batch-limit-DKVQDz4o.js +0 -5
  1119. package/dist/before-route-B23K2zYU.js +0 -30
  1120. package/dist/bind-DAx0bMSi.d.ts +0 -104
  1121. package/dist/block-authors-Bw3zdzgl.js +0 -14
  1122. package/dist/block-authors-DzXLUiIq.d.ts +0 -12
  1123. package/dist/block-env-Dz7Caxk0.d.ts +0 -32
  1124. package/dist/block-event-listener-Bu6G0TFH.js +0 -16
  1125. package/dist/block-events-IWAyafO3.js +0 -83
  1126. package/dist/block-fields-BE7pInWZ.d.ts +0 -58
  1127. package/dist/block-fields-BjXgX_5c.js +0 -140
  1128. package/dist/block-helpers-B0f0ZVb5.js +0 -437
  1129. package/dist/block-helpers-D5emQ2O6.d.ts +0 -62
  1130. package/dist/block-hooks-B8itxzEE.d.ts +0 -117
  1131. package/dist/block-hooks-DKtz0HRh.js +0 -130
  1132. package/dist/block-method-C9hWdHom.js +0 -21
  1133. package/dist/block-method-CiVa2G-J.d.ts +0 -14
  1134. package/dist/block-subjects-C1_9DkSA.d.ts +0 -6
  1135. package/dist/block-subjects-DFSuFY1a.js +0 -55
  1136. package/dist/block-tenant-DHp7subc.js +0 -14
  1137. package/dist/block-transport-9EUA3q_I.d.ts +0 -69
  1138. package/dist/bookings-xsmM2TA_.d.ts +0 -289
  1139. package/dist/bucket-SvRQwYS4.d.ts +0 -705
  1140. package/dist/build-CH2N3Yf0.js +0 -2073
  1141. package/dist/build-DbIRFcHQ.js +0 -735
  1142. package/dist/carrier-KzeYXVrW.d.ts +0 -169
  1143. package/dist/casing-DdFWEtqr.js +0 -16
  1144. package/dist/channel-JcMd5lNP.d.ts +0 -105
  1145. package/dist/channels-CfcFPuo_.js +0 -114
  1146. package/dist/claims-Bp9My7XP.js +0 -88
  1147. package/dist/claims-DTy6R6my.js +0 -63
  1148. package/dist/cli/_format-Cax5EsM9.js +0 -101
  1149. package/dist/cli/add-B9wP0YGU.js +0 -99
  1150. package/dist/cli/add-DjZXKd7X.js +0 -1231
  1151. package/dist/cli/add-ZcEOEK23.js +0 -1
  1152. package/dist/cli/agent-CbuPvI2x.js +0 -185
  1153. package/dist/cli/app-table-files-mtvjHa48.js +0 -346
  1154. package/dist/cli/arazzo-1.0-BalU61-_.js +0 -532
  1155. package/dist/cli/arazzo-1.1-Bnfasbun.js +0 -705
  1156. package/dist/cli/args-UEwg0l-N.js +0 -27
  1157. package/dist/cli/asyncapi-3.0.0-C78dBjR6.js +0 -5593
  1158. package/dist/cli/asyncapi-3.1.0-g-7aIfV1.js +0 -5833
  1159. package/dist/cli/backfill-Coshdvh_.js +0 -293
  1160. package/dist/cli/blocks-BWCuA0nq.js +0 -156
  1161. package/dist/cli/blocks-hiSazThw.js +0 -1
  1162. package/dist/cli/cache-x2wWAy0h.js +0 -607
  1163. package/dist/cli/codemod-BnjV7BpC.js +0 -2634
  1164. package/dist/cli/codemod-block-renames-BuSaTE_G.js +0 -239
  1165. package/dist/cli/command-CCAwhiOh.js +0 -1003
  1166. package/dist/cli/compare-BmIWVEui.js +0 -9
  1167. package/dist/cli/completion-BJaB84Pe.js +0 -211
  1168. package/dist/cli/completion-BkUhs1ms.js +0 -1
  1169. package/dist/cli/completion-DmUVsUVQ.js +0 -30
  1170. package/dist/cli/config-Cskysxp-.js +0 -2000
  1171. package/dist/cli/config-Df5cXWNN.js +0 -1
  1172. package/dist/cli/config-edit-CrWfk8s3.js +0 -621
  1173. package/dist/cli/config-group-CP-B9uRt.js +0 -390
  1174. package/dist/cli/config-zId1jkLx.js +0 -47
  1175. package/dist/cli/content-mapper-DvOSOdTE.js +0 -182
  1176. package/dist/cli/db-CQCLx7cx.js +0 -78
  1177. package/dist/cli/db-DXKyVEDF.js +0 -247
  1178. package/dist/cli/detect-D9JaAX20.js +0 -84
  1179. package/dist/cli/dist-D_VbPAMR.js +0 -129
  1180. package/dist/cli/dist-DuiMMRbJ.js +0 -1112
  1181. package/dist/cli/doctor-Ywy8oJEU.js +0 -4684
  1182. package/dist/cli/env-BK0xKMeU.js +0 -1113
  1183. package/dist/cli/env-Bat6ogep.js +0 -1
  1184. package/dist/cli/env-CNjT_uOV.js +0 -1
  1185. package/dist/cli/env-XMiKvhtV.js +0 -143
  1186. package/dist/cli/errors-BTe6A15O.js +0 -98
  1187. package/dist/cli/exec-Ca5s-ygi.js +0 -463
  1188. package/dist/cli/fastest-levenshtein-dhRRvrM2.js +0 -120
  1189. package/dist/cli/files-CX71yBm8.js +0 -1010
  1190. package/dist/cli/fresh-import-DzgsGHkX.js +0 -40
  1191. package/dist/cli/gen-B-FbQmG1.js +0 -394
  1192. package/dist/cli/guards-CUlDNYZs.js +0 -8
  1193. package/dist/cli/in-stack-diff-Cp-tVPj2.js +0 -186
  1194. package/dist/cli/init-fb9e1BKX.js +0 -559
  1195. package/dist/cli/io-DH1kcmmP.js +0 -37
  1196. package/dist/cli/json5-ChRycquj.js +0 -787
  1197. package/dist/cli/jsonc-C8M0EhHB.js +0 -1
  1198. package/dist/cli/jsonc-D5Fu67jw.js +0 -45
  1199. package/dist/cli/keys-ORiPz1sM.js +0 -106
  1200. package/dist/cli/legacy-prefix-R7UChFFl.js +0 -154
  1201. package/dist/cli/live-DIt7TP-N.js +0 -341
  1202. package/dist/cli/mcp-CVWwraga.js +0 -241
  1203. package/dist/cli/metadata-CannIjel.js +0 -150
  1204. package/dist/cli/migrate-Ht2TzIQF.js +0 -46
  1205. package/dist/cli/migration-safety-nNyB05I-.js +0 -928
  1206. package/dist/cli/migrations-bAd7dpk1.js +0 -117
  1207. package/dist/cli/module-migration-CkNux8dr.js +0 -119
  1208. package/dist/cli/moved-C3WyRHkA.js +0 -254
  1209. package/dist/cli/ohash-BjQY1cBb.js +0 -277
  1210. package/dist/cli/openapi-3.0-t7xwkuRH.js +0 -928
  1211. package/dist/cli/openapi-3.1-CVze7tBS.js +0 -870
  1212. package/dist/cli/openapi-3.2-CFoMYM01.js +0 -1031
  1213. package/dist/cli/orphans-BAboqyVM.js +0 -28
  1214. package/dist/cli/parse-DjHbTaFI.js +0 -182
  1215. package/dist/cli/powersync-B2v0tDwp.js +0 -377
  1216. package/dist/cli/powersync-D3mAQ6QE.js +0 -1
  1217. package/dist/cli/preset-BwmIfFnh.js +0 -101
  1218. package/dist/cli/print-CxQ0rBKT.js +0 -68
  1219. package/dist/cli/prompts-jqnr94b9.js +0 -1140
  1220. package/dist/cli/providers-DtI90lSw.js +0 -301
  1221. package/dist/cli/redact-KGAk2Ul9.js +0 -38
  1222. package/dist/cli/remove-DYtE4IZ4.js +0 -239
  1223. package/dist/cli/render-QGWfEoiB.js +0 -2225
  1224. package/dist/cli/rolldown-runtime-kJ_i4yPo.js +0 -26
  1225. package/dist/cli/run-B5aMwErM.js +0 -63
  1226. package/dist/cli/run-BNoJKf5I.js +0 -706
  1227. package/dist/cli/run-DiYX1XEa.js +0 -1459
  1228. package/dist/cli/seed-C-Hu2n_E.js +0 -188
  1229. package/dist/cli/seed-Cm-c0BDd.js +0 -1
  1230. package/dist/cli/shared-D_CFi5di.js +0 -151
  1231. package/dist/cli/shell-Btv_4Yhe.js +0 -10
  1232. package/dist/cli/skills-D98y0bSB.js +0 -121
  1233. package/dist/cli/snapshot-BlQ4DDcJ.js +0 -734
  1234. package/dist/cli/source-CelMBQMj.js +0 -320
  1235. package/dist/cli/source-args-v8ljFDfc.js +0 -59
  1236. package/dist/cli/spec-BxcoGE0h.js +0 -1
  1237. package/dist/cli/spec-iBx1LcYO.js +0 -7530
  1238. package/dist/cli/sql-layout-Dp4Rottt.js +0 -261
  1239. package/dist/cli/stack-B2slzrYH.js +0 -135
  1240. package/dist/cli/stack-env-3ziggrU3.js +0 -93
  1241. package/dist/cli/stack-status-BkkYRlXG.js +0 -46
  1242. package/dist/cli/stacks-CiDBH1dB.js +0 -232
  1243. package/dist/cli/style-Bm2X5JrN.js +0 -35
  1244. package/dist/cli/supabase-toml-CncmQbO0.js +0 -1164
  1245. package/dist/cli/sync-BnORI43S.js +0 -322
  1246. package/dist/cli/table-D6HUECKI.js +0 -89
  1247. package/dist/cli/toml-DB-MNnFs.js +0 -424
  1248. package/dist/cli/topics-BpdnYmWb.js +0 -30
  1249. package/dist/cli/trace-VbdO6bcN.js +0 -7
  1250. package/dist/cli/upgrade-CR6-WmIc.js +0 -272
  1251. package/dist/cli/upgrade-fz92aCnh.js +0 -41
  1252. package/dist/cli/validate-B3lF3-jB.js +0 -7522
  1253. package/dist/cli/version-Dz8ZlOuh.js +0 -4
  1254. package/dist/cli/yaml-CYCbJ6et.js +0 -2252
  1255. package/dist/client-C_mlji5R.js +0 -288
  1256. package/dist/clone-CkG0-hlI.js +0 -33
  1257. package/dist/cloud-event-0pQ9vFNS.d.ts +0 -64
  1258. package/dist/cloud-event-XsM53POL.js +0 -63
  1259. package/dist/codecs-CMWlhHZ0.d.ts +0 -222
  1260. package/dist/codecs-CSUFGrdP.js +0 -358
  1261. package/dist/compiler-BEeVWXPS.d.ts +0 -14
  1262. package/dist/compose-DKW0Tr3e.js +0 -53
  1263. package/dist/composite-B4qB6k31.js +0 -130
  1264. package/dist/composite-BJ9s-IJJ.d.ts +0 -83
  1265. package/dist/config-B7g-HDis.js +0 -1111
  1266. package/dist/config-R0m0fBiD.js +0 -1679
  1267. package/dist/connectors-uC5baoFV.d.ts +0 -147
  1268. package/dist/context-DBicfUNz.js +0 -41
  1269. package/dist/context-DWWoP1wK.d.ts +0 -4344
  1270. package/dist/controller-BEliOBOv.js +0 -79
  1271. package/dist/controller-Br9dGKGe.d.ts +0 -52
  1272. package/dist/controller-W97g2WGG.js +0 -73
  1273. package/dist/conversion-Dq1S7xzE.js +0 -77
  1274. package/dist/conversion-g8HzH9My.d.ts +0 -86
  1275. package/dist/cors-h_v7TPxl.js +0 -24
  1276. package/dist/cors-kLq6VM06.d.ts +0 -15
  1277. package/dist/create-blocks-BfrDUSM6.js +0 -370
  1278. package/dist/cron-DdT4ti8a.js +0 -148
  1279. package/dist/cron-route-FjKgRvTY.js +0 -24
  1280. package/dist/csv-2rXGPNtP.js +0 -89
  1281. package/dist/csv-DhHQS2x_.d.ts +0 -28
  1282. package/dist/data-engine-D1BkmBoR.js +0 -173
  1283. package/dist/data-engine-rvbR2C4F.d.ts +0 -273
  1284. package/dist/data-hooks-CdcZfVS1.js +0 -280
  1285. package/dist/db-exception-Lngc1W49.js +0 -31
  1286. package/dist/deal-forecast-CKBnRodz.js +0 -39
  1287. package/dist/deal-forecast-LwO-Z4_C.d.ts +0 -23
  1288. package/dist/define-D-dLADd5.js +0 -2084
  1289. package/dist/define-D8_9X5fZ.d.ts +0 -1263
  1290. package/dist/define-block-BGqOO8B3.js +0 -64
  1291. package/dist/define-block-DWVZSZv1.d.ts +0 -1687
  1292. package/dist/delegation-C7eWP2r8.d.ts +0 -14
  1293. package/dist/delegation-DGOIiT8k.js +0 -153
  1294. package/dist/delivery-Bm0jxmzI.js +0 -29
  1295. package/dist/delivery-events-DbL8IHIY.js +0 -53
  1296. package/dist/delivery-n6lZGuGx.d.ts +0 -71
  1297. package/dist/documents-BbwYyynk.d.ts +0 -152
  1298. package/dist/email-B3YxEzwC.d.ts +0 -42
  1299. package/dist/embeddings-I3s5sTDt.d.ts +0 -78
  1300. package/dist/embeddings-vVzseUw0.js +0 -128
  1301. package/dist/ended-EZzN9QTM.d.ts +0 -26
  1302. package/dist/entitlements-CBjm2lvD.d.ts +0 -54
  1303. package/dist/entitlements-tGL6-69B.js +0 -45
  1304. package/dist/entity-naming-Dtyq5sKE.js +0 -131
  1305. package/dist/entity-schema-B1YmMtP8.js +0 -39
  1306. package/dist/envelope-DEI2iX-d.js +0 -90
  1307. package/dist/errors-BVFgt8BZ.js +0 -328
  1308. package/dist/errors-CyxMxzlu.js +0 -44
  1309. package/dist/escape-like-DHfx6jRr.js +0 -7
  1310. package/dist/escape-like-PReMbEEU.d.ts +0 -30
  1311. package/dist/eve-BfhVFV33.d.ts +0 -157
  1312. package/dist/event-calendar-DVLs2wUO.d.ts +0 -65
  1313. package/dist/event-map-CtPFhcOp.js +0 -19
  1314. package/dist/events-B2qbZps6.d.ts +0 -854
  1315. package/dist/events-D6IZ5CE8.js +0 -82
  1316. package/dist/events-DuLhzjP6.js +0 -26
  1317. package/dist/executor-BfirBzOr.d.ts +0 -174
  1318. package/dist/executor-BlS0kCrN.d.ts +0 -104
  1319. package/dist/executor-C2Ne-Scm.js +0 -208
  1320. package/dist/executor-DXQIx4sW.d.ts +0 -37
  1321. package/dist/executor-DqIci3Jb.js +0 -486
  1322. package/dist/executor-WolvKszH.js +0 -843
  1323. package/dist/extension-DTaHjwdc.js +0 -59
  1324. package/dist/extension-DeAd_MqI.js +0 -121
  1325. package/dist/extension-DzCc0IOd.js +0 -103
  1326. package/dist/extension-mGylYROs.js +0 -53
  1327. package/dist/extension-shared-Djm8mGHD.js +0 -60
  1328. package/dist/extra-CGQ2_q3S.js +0 -10
  1329. package/dist/field-errors-CEjsMAgd.d.ts +0 -216
  1330. package/dist/field-formats-C6QKA3UR.js +0 -102
  1331. package/dist/field-formats-CAFNkKSN.d.ts +0 -38
  1332. package/dist/fields-BBm49w-E.js +0 -108
  1333. package/dist/fields-snbaZ14h.d.ts +0 -78
  1334. package/dist/filter-evaluate-BRpNiNPG.d.ts +0 -37
  1335. package/dist/filter-evaluate-lCToXzZI.js +0 -217
  1336. package/dist/filter-query-CQ6d5GnQ.js +0 -566
  1337. package/dist/filter-query-DBt7OKuH.d.ts +0 -133
  1338. package/dist/flags-DDKTThrO.d.ts +0 -246
  1339. package/dist/flags-DF_SCqp5.js +0 -279
  1340. package/dist/form-definition-BTpM_tz1.js +0 -363
  1341. package/dist/form-definition-BjEtH8BT.d.ts +0 -119
  1342. package/dist/format-u-65igKI.d.ts +0 -79
  1343. package/dist/framework-CqiZk89W.js +0 -58
  1344. package/dist/framework-DVYTtQXA.d.ts +0 -47
  1345. package/dist/function-contract-DxFNOmsm.d.ts +0 -27
  1346. package/dist/function-contract-pEmsaUIf.js +0 -8
  1347. package/dist/gateway-Ve7cByEr.d.ts +0 -115
  1348. package/dist/gateway-options-BlVCqgb8.d.ts +0 -29
  1349. package/dist/gateway-options-Cl74B7k6.js +0 -27
  1350. package/dist/guards-6F2bCtQR.js +0 -12
  1351. package/dist/guest-actions-1T1DeS5Y.d.ts +0 -5
  1352. package/dist/guest-actions-B7zdhfnh.js +0 -9
  1353. package/dist/history-GH1HJWQV.js +0 -271
  1354. package/dist/hmac-B3CTTlfv.js +0 -23
  1355. package/dist/http-7-UvHjQe.js +0 -28
  1356. package/dist/http-BjjojWg3.js +0 -40
  1357. package/dist/http-DzbloBR-.js +0 -141
  1358. package/dist/image-url-_d7xYsXK.js +0 -84
  1359. package/dist/impersonation-DM3oWNoD.js +0 -62
  1360. package/dist/impersonation-YTa9dZUv.d.ts +0 -28
  1361. package/dist/inbox-c8B86Trp.d.ts +0 -321
  1362. package/dist/index-B4wttiLh.d.ts +0 -407
  1363. package/dist/index-Clyd2Goi.d.ts +0 -338
  1364. package/dist/index-Cxsnd-OL.d.ts +0 -305
  1365. package/dist/index-D98bQs8a.d.ts +0 -665
  1366. package/dist/index-DIdPoQtO.d.ts +0 -240
  1367. package/dist/index-DbyDZZlc.d.ts +0 -53
  1368. package/dist/index-I8YLxKq8.d.ts +0 -729
  1369. package/dist/index-NRMMhhEi.d.ts +0 -104
  1370. package/dist/index-X2fkPUwb.d.ts +0 -51
  1371. package/dist/index-eRBuKtMt.d.ts +0 -158
  1372. package/dist/index-pZn6S_iq.d.ts +0 -149
  1373. package/dist/index-uIU65iEn.d.ts +0 -588
  1374. package/dist/instance-property-hRh88y_s.js +0 -7
  1375. package/dist/instances-DY_ORk5g.js +0 -16605
  1376. package/dist/invalidate-DMp4eqfF.d.ts +0 -21
  1377. package/dist/iso4217-B-durg_y.js +0 -176
  1378. package/dist/json-DaByVJpw.js +0 -22
  1379. package/dist/json-schema-DHJxiizN.js +0 -888
  1380. package/dist/jwks-cache-DEsKI0hJ.js +0 -49
  1381. package/dist/jws-D0toeQlA.d.ts +0 -66
  1382. package/dist/jws-DOgHJKHb.js +0 -205
  1383. package/dist/kit-B8yWCRN7.d.ts +0 -94
  1384. package/dist/kit-Bcd9wYCV.js +0 -133
  1385. package/dist/knowledge-CsLPACGJ.d.ts +0 -217
  1386. package/dist/knowledge-tCrrU99q.js +0 -300
  1387. package/dist/list-query-BcU8NnNL.d.ts +0 -222
  1388. package/dist/list-query-BnpA2BDg.js +0 -559
  1389. package/dist/live-C21DgbsD.js +0 -275
  1390. package/dist/logger-DWVYUmwi.d.ts +0 -18
  1391. package/dist/logger-glM28NVN.js +0 -21
  1392. package/dist/lookup-BaP5bI27.js +0 -18
  1393. package/dist/management-wtecfrNf.d.ts +0 -57
  1394. package/dist/message-Bg4TKA12.d.ts +0 -99
  1395. package/dist/messages-ecPW_nOv.js +0 -492
  1396. package/dist/messaging-DQP09JsY.d.ts +0 -297
  1397. package/dist/methods-Cund9ZBe.js +0 -11
  1398. package/dist/metric-definition-BjxVn4R5.js +0 -117
  1399. package/dist/metric-definition-EAYI1r2n.d.ts +0 -69
  1400. package/dist/mfa-oIOYTpvc.d.ts +0 -36
  1401. package/dist/model-hwpvole9.d.ts +0 -340
  1402. package/dist/model-messages-CkZSDDHP.js +0 -206
  1403. package/dist/model-messages-DrR4lZ_c.d.ts +0 -34
  1404. package/dist/money-BNRdJQzA.d.ts +0 -91
  1405. package/dist/money-BZl985O-.js +0 -197
  1406. package/dist/money-codec-BJuS2zEW.js +0 -41
  1407. package/dist/my-work-kinds-BU3SlA-6.js +0 -11
  1408. package/dist/node-headers-BPtMP4_V.d.ts +0 -27
  1409. package/dist/node-headers-C71zNQHe.js +0 -55
  1410. package/dist/operations-DVHRHvv6.js +0 -29
  1411. package/dist/operations-hm1Isvvs.d.ts +0 -6
  1412. package/dist/optional-peer-C1NbBRJm.js +0 -32
  1413. package/dist/options-3OYOU56e.js +0 -11
  1414. package/dist/options-56zYYXxc.js +0 -10
  1415. package/dist/options-5WvWOkAm.d.ts +0 -26
  1416. package/dist/options-62woPFn3.js +0 -12
  1417. package/dist/options-7ixoOoap.js +0 -10
  1418. package/dist/options-9dSU5RML.js +0 -5
  1419. package/dist/options-B0YZtAkb.d.ts +0 -15
  1420. package/dist/options-B2Kz_tCx.js +0 -10
  1421. package/dist/options-B5E2MGIz.js +0 -15
  1422. package/dist/options-B685YSzQ.js +0 -5
  1423. package/dist/options-B692WoK6.js +0 -9
  1424. package/dist/options-BHU1wc74.js +0 -5
  1425. package/dist/options-BHy0Z5Zd.js +0 -5
  1426. package/dist/options-BJtdsK7b.js +0 -8
  1427. package/dist/options-BKDxrPvE.js +0 -5
  1428. package/dist/options-BLfymS4s.js +0 -5
  1429. package/dist/options-BOCRbzh3.js +0 -5
  1430. package/dist/options-BOqfYsM1.js +0 -13
  1431. package/dist/options-BQWJqwHO.js +0 -9
  1432. package/dist/options-BQunK6_Y.js +0 -8
  1433. package/dist/options-BQyrZjwM.js +0 -28
  1434. package/dist/options-BR9xTHZW.js +0 -5
  1435. package/dist/options-BRUdd5jY.js +0 -8
  1436. package/dist/options-BSsYXjhC.js +0 -9
  1437. package/dist/options-BTmaRzx2.d.ts +0 -60
  1438. package/dist/options-BUCQYAeJ.d.ts +0 -10
  1439. package/dist/options-B_NrjVDt.d.ts +0 -12
  1440. package/dist/options-BawzwlmC.js +0 -11
  1441. package/dist/options-BbLDAp7G.d.ts +0 -10
  1442. package/dist/options-BfPsL7E2.js +0 -9
  1443. package/dist/options-Bfmwwc78.js +0 -8
  1444. package/dist/options-BhsdveDk.js +0 -21
  1445. package/dist/options-BomoTH-8.js +0 -5
  1446. package/dist/options-BtjkzIVh.js +0 -8
  1447. package/dist/options-Bvi9bl4H.js +0 -5
  1448. package/dist/options-BwKNmaJo.js +0 -5
  1449. package/dist/options-BxpLtyk-.js +0 -18
  1450. package/dist/options-BzB2QxL3.js +0 -5
  1451. package/dist/options-C078wBP0.js +0 -5
  1452. package/dist/options-C3AdsFJ6.js +0 -9
  1453. package/dist/options-C7C5OhmL.d.ts +0 -8
  1454. package/dist/options-C87u6eSa.js +0 -10
  1455. package/dist/options-CBAEGxwS.js +0 -8
  1456. package/dist/options-CDSCkYxu.d.ts +0 -14
  1457. package/dist/options-CDUr8zzX.js +0 -8
  1458. package/dist/options-CF6EVF_G.js +0 -17
  1459. package/dist/options-CFjGxfa8.js +0 -5
  1460. package/dist/options-CI6P0xhV.js +0 -10
  1461. package/dist/options-CJFMK9A_.js +0 -8
  1462. package/dist/options-CLpgx7en.js +0 -10
  1463. package/dist/options-CSCXNYJO.d.ts +0 -8
  1464. package/dist/options-CTXHj9zr.js +0 -16
  1465. package/dist/options-CTl8T88w.js +0 -11
  1466. package/dist/options-CUIOOv4z.js +0 -15
  1467. package/dist/options-CZDmtsbV.js +0 -8
  1468. package/dist/options-CZTscdPB.js +0 -5
  1469. package/dist/options-CZdKndeo.js +0 -9
  1470. package/dist/options-C_7g9TTq.d.ts +0 -12
  1471. package/dist/options-Cb2FOFj5.js +0 -5
  1472. package/dist/options-CbOstLa7.js +0 -5
  1473. package/dist/options-CcXgWlvm.js +0 -24
  1474. package/dist/options-CfVPctAw.js +0 -89
  1475. package/dist/options-Cjgaf8ub.js +0 -8
  1476. package/dist/options-CoSPgWKy.js +0 -9
  1477. package/dist/options-CpZ2HlSU.js +0 -32
  1478. package/dist/options-CsSe8Nba.js +0 -8
  1479. package/dist/options-CsvJR-r2.js +0 -9
  1480. package/dist/options-Cucv6sWP.js +0 -12
  1481. package/dist/options-CyjL9lTf.js +0 -5
  1482. package/dist/options-D-OOO9V2.d.ts +0 -10
  1483. package/dist/options-D0Y6ZMe8.js +0 -5
  1484. package/dist/options-D0bzZx9a.d.ts +0 -10
  1485. package/dist/options-D0sj5abR.js +0 -9
  1486. package/dist/options-D1hSuf50.d.ts +0 -12
  1487. package/dist/options-D610Fa6T.js +0 -5
  1488. package/dist/options-D96dScev.js +0 -24
  1489. package/dist/options-DFpyP1bg.js +0 -5
  1490. package/dist/options-DJEcS4DX.js +0 -5
  1491. package/dist/options-DJbN3bi9.js +0 -11
  1492. package/dist/options-DKoQoRCy.js +0 -13
  1493. package/dist/options-DM1qaMMQ.js +0 -9
  1494. package/dist/options-DNgSwhsm.js +0 -11
  1495. package/dist/options-DOIwzRXL.js +0 -16
  1496. package/dist/options-DRIgHh4O.d.ts +0 -16
  1497. package/dist/options-DRrZmJyI.js +0 -8
  1498. package/dist/options-DSCW40_5.js +0 -12
  1499. package/dist/options-DUMUsvml.js +0 -5
  1500. package/dist/options-DWwL5Kaz.js +0 -9
  1501. package/dist/options-DZHZYlpD.js +0 -10
  1502. package/dist/options-DZLkeqWn.js +0 -9
  1503. package/dist/options-DZRpXKQE.js +0 -5
  1504. package/dist/options-DZen3UiC.js +0 -14
  1505. package/dist/options-D_9Vxx7f.js +0 -8
  1506. package/dist/options-DcHl59RC.js +0 -11
  1507. package/dist/options-Dcaql09y.js +0 -11
  1508. package/dist/options-DcnBNYmV.js +0 -8
  1509. package/dist/options-DdpM-fiP.js +0 -9
  1510. package/dist/options-DhoLMknl.js +0 -10
  1511. package/dist/options-DlohRAYd.d.ts +0 -13
  1512. package/dist/options-Dpy-Ruo-.js +0 -14
  1513. package/dist/options-DsVuVRH3.d.ts +0 -17
  1514. package/dist/options-DtAJxfHS.js +0 -8
  1515. package/dist/options-Dz9Yo52Z.js +0 -8
  1516. package/dist/options-HnfETSHr.d.ts +0 -19
  1517. package/dist/options-LqUXTpML.js +0 -8
  1518. package/dist/options-MsloEAIB.js +0 -5
  1519. package/dist/options-P2FxqYpd.js +0 -17
  1520. package/dist/options-_1gAIMq7.d.ts +0 -60
  1521. package/dist/options-aT89JqlB.js +0 -5
  1522. package/dist/options-cVKZu9b0.js +0 -9
  1523. package/dist/options-eTepQ1rZ.js +0 -15
  1524. package/dist/options-fkShrmGQ.js +0 -8
  1525. package/dist/options-gUvfr3no.js +0 -11
  1526. package/dist/options-hynwKWuf.js +0 -20
  1527. package/dist/options-jsOCvLUz.js +0 -10
  1528. package/dist/options-o5wCw8H7.d.ts +0 -14
  1529. package/dist/options-p49DFg3H.js +0 -8
  1530. package/dist/options-pYNpXKcg.js +0 -8
  1531. package/dist/options-qtETCHzW.js +0 -10
  1532. package/dist/options-rnKlqYEr.js +0 -5
  1533. package/dist/options-sU_zGkiV.js +0 -10
  1534. package/dist/options-xq4MXG1M.js +0 -5
  1535. package/dist/options-zzlznRA7.js +0 -10
  1536. package/dist/outbox-BZ712Z3X.d.ts +0 -199
  1537. package/dist/payments-BXvabJOw.js +0 -16
  1538. package/dist/payments-BYcN34Fp.d.ts +0 -114
  1539. package/dist/permissions-controller-BMsqIE5T.js +0 -34
  1540. package/dist/pg-error-B5QLDcbG.js +0 -26
  1541. package/dist/plugin-AKwwe2gF.js +0 -48
  1542. package/dist/pool-DDR1ndk7.d.ts +0 -123
  1543. package/dist/pool-errors-JUBcGrre.js +0 -27
  1544. package/dist/ports-DOrPTJzl.d.ts +0 -89
  1545. package/dist/ports-DvpNseap.js +0 -152
  1546. package/dist/postgrest-AJc8hnJU.d.ts +0 -53
  1547. package/dist/postgrest-executor-B_Uezhrm.js +0 -1068
  1548. package/dist/preset-CXhpPmPV.js +0 -1042
  1549. package/dist/problem-Bf0cJ7tk.js +0 -162
  1550. package/dist/problem-DNwN8iGz.d.ts +0 -79
  1551. package/dist/project-DJ9Uo0sT.js +0 -1760
  1552. package/dist/provider-B6g7rBZX.js +0 -57
  1553. package/dist/provider-CWjzAIX9.d.ts +0 -112
  1554. package/dist/push-token-B4vcIU4s.d.ts +0 -24
  1555. package/dist/push-token-D6REHMMw.js +0 -16
  1556. package/dist/queries-BWYYS9um.js +0 -239
  1557. package/dist/range-DwpWe8e7.js +0 -7
  1558. package/dist/range-p5V4rBhZ.d.ts +0 -8
  1559. package/dist/rank-keys-DcPMt_Jk.js +0 -60
  1560. package/dist/rank-result-BBJIK-k_.js +0 -18
  1561. package/dist/rank-result-Bwe7igy-.d.ts +0 -14
  1562. package/dist/rate-limit-BWKGlhTM.js +0 -49
  1563. package/dist/rate-limit-Bztf32cl.d.ts +0 -50
  1564. package/dist/rate-limit-fZ_d8gSE.js +0 -380
  1565. package/dist/ratelimit-headers-kEcXyO3H.js +0 -62
  1566. package/dist/react-BKCnIuZs.js +0 -79
  1567. package/dist/react-mdVjpewL.js +0 -1016
  1568. package/dist/read-set-B1sDib5O.js +0 -199
  1569. package/dist/realtime-status-BhNkb-Ow.d.ts +0 -8
  1570. package/dist/realtime-status-asHvhiOh.js +0 -11
  1571. package/dist/record-bindings-Z51mGfhB.js +0 -26
  1572. package/dist/record-form-CubgBrtI.d.ts +0 -82
  1573. package/dist/record-type-BEUyEsFx.js +0 -221
  1574. package/dist/recordings-DeZYx-Kv.d.ts +0 -119
  1575. package/dist/refresh-D02Pbf5B.d.ts +0 -54
  1576. package/dist/refresh-DLBgnxjL.js +0 -144
  1577. package/dist/refusal-B0VmlAxF.d.ts +0 -32
  1578. package/dist/refusal-DDlInPff.js +0 -64
  1579. package/dist/relay-CIKcAVjf.js +0 -248
  1580. package/dist/resolve-B0mW2m7f.js +0 -932
  1581. package/dist/resolve-CtX6T0c0.d.ts +0 -288
  1582. package/dist/resolved-names-kMRjmSIy.js +0 -133
  1583. package/dist/resource-BUJcZKiW.js +0 -520
  1584. package/dist/resource-DvgXqZB_.js +0 -105
  1585. package/dist/resource-WxN0IsvB.d.ts +0 -123
  1586. package/dist/resource-execute-BzqR8DdD.d.ts +0 -15
  1587. package/dist/resource-schemas-up6bKOUi.js +0 -82
  1588. package/dist/resource-types-BVbHgTPg.d.ts +0 -157
  1589. package/dist/resources-BSbRa0Ab.d.ts +0 -7
  1590. package/dist/resources-jb3R6rEa.js +0 -64
  1591. package/dist/respond-CZMWbUs3.js +0 -107
  1592. package/dist/respond-Dzu_-EPH.d.ts +0 -112
  1593. package/dist/result-DZeA5KS6.d.ts +0 -351
  1594. package/dist/result-ntFBW2p2.js +0 -146
  1595. package/dist/rows-BdqXmiB-.js +0 -80
  1596. package/dist/rows-jijHLVE_.js +0 -39
  1597. package/dist/rrule-C9Ot6ax8.js +0 -290
  1598. package/dist/run-state-BMCD_1Lt.d.ts +0 -13
  1599. package/dist/run-state-CgBKzYMW.js +0 -13
  1600. package/dist/run-watch-B-LoK5m1.js +0 -53
  1601. package/dist/runtime-LRJM7UqY.js +0 -44
  1602. package/dist/sales-lines-BsmrNHe9.d.ts +0 -38
  1603. package/dist/sales-lines-DO7oRu1o.js +0 -45
  1604. package/dist/sales-shared-BuTA8JK7.js +0 -22
  1605. package/dist/schemas-CLOTvdsC.js +0 -216
  1606. package/dist/scope-DgWjuXUw.js +0 -90
  1607. package/dist/scores-Y8TvyJi1.d.ts +0 -174
  1608. package/dist/scores-bY2Is0kx.js +0 -177
  1609. package/dist/search-Cn_DGluL.js +0 -9
  1610. package/dist/server-types-BkTIxW_H.d.ts +0 -597
  1611. package/dist/session-BOzx2qHC.d.ts +0 -100
  1612. package/dist/session-status-BP8eYVnA.d.ts +0 -82
  1613. package/dist/shared-BeHTi8Fu.js +0 -17
  1614. package/dist/shared-Bf-I13Ht.js +0 -91
  1615. package/dist/shared-CRRfQAKG.d.ts +0 -11
  1616. package/dist/sign-in-BzihC_8k.d.ts +0 -50
  1617. package/dist/sign-in-CmPK1AgM.js +0 -402
  1618. package/dist/sign-in-CuZ1Ag7O.js +0 -718
  1619. package/dist/sign-in-D54FLMQy.d.ts +0 -55
  1620. package/dist/signatures-CX1b4WHa.js +0 -145
  1621. package/dist/signatures-Dkx9OE8j.d.ts +0 -43
  1622. package/dist/signers-ZmxO1I05.d.ts +0 -390
  1623. package/dist/signing-keys-CWtpMask.js +0 -164
  1624. package/dist/signing-keys-udgP7Aod.d.ts +0 -119
  1625. package/dist/simplify-DDO0j0LI.js +0 -83
  1626. package/dist/spec-BMvCCNnd.js +0 -124
  1627. package/dist/spec-pins-BZkKfwY8.d.ts +0 -127
  1628. package/dist/spec-pins-D3zDek-u.js +0 -62
  1629. package/dist/sql-CYt7EhH0.js +0 -421
  1630. package/dist/sql-DHp0L7zK.js +0 -138385
  1631. package/dist/sql-type-iUSZpaUu.js +0 -34
  1632. package/dist/sso-CkU_4mtK.d.ts +0 -161
  1633. package/dist/sso-DdDpJQzw.js +0 -217
  1634. package/dist/standard-BA3mLh6w.js +0 -25
  1635. package/dist/standard-DBV730sF.d.ts +0 -7
  1636. package/dist/stats-BHl1-zj9.js +0 -83
  1637. package/dist/statuses-Alll5Ip6.js +0 -29
  1638. package/dist/statuses-zRcc2TeZ.js +0 -28
  1639. package/dist/storage-api-Dg78Wqsg.js +0 -10
  1640. package/dist/store-CpheI-lN.d.ts +0 -83
  1641. package/dist/store-McN-2esd.js +0 -69
  1642. package/dist/stripe-BJUfp5jM.js +0 -32
  1643. package/dist/stripe-X22LjuH-.d.ts +0 -156
  1644. package/dist/subject-readers-CB5Te02u.d.ts +0 -21
  1645. package/dist/subject-readers-VHcrWhmq.js +0 -49
  1646. package/dist/subject-type-BRnK7Av3.js +0 -8
  1647. package/dist/subjects-BYCL-6hA.d.ts +0 -145
  1648. package/dist/subjects-CiBNKy2y.d.ts +0 -90
  1649. package/dist/subscribers-BvZxcd63.js +0 -33
  1650. package/dist/summaries-8jQTELIX.d.ts +0 -69
  1651. package/dist/supabase-mcp-Dz9DgrKP.js +0 -28
  1652. package/dist/supabase-mcp-Z4vtsuoO.d.ts +0 -46
  1653. package/dist/support-BxyPOFk4.d.ts +0 -357
  1654. package/dist/support-view-g4YLBeqX.js +0 -18
  1655. package/dist/support-view-nqUWKHEs.d.ts +0 -17
  1656. package/dist/table-schema-BlF6k62Q.d.ts +0 -81
  1657. package/dist/table-schema-C80xItaV.js +0 -293
  1658. package/dist/tables-Cb-3_VWc.js +0 -73
  1659. package/dist/tags-CIZTqtlY.js +0 -39
  1660. package/dist/tags-Cm48BsOa.d.ts +0 -30
  1661. package/dist/tax-BkCNWWMc.js +0 -140
  1662. package/dist/tax-DPShHual.d.ts +0 -170
  1663. package/dist/tee-V97_v1ZS.js +0 -101
  1664. package/dist/template-Drgg3v2J.js +0 -126
  1665. package/dist/temporal-Dbo0fLzc.js +0 -95
  1666. package/dist/temporal-required-DcLhnDhQ.js +0 -20
  1667. package/dist/tenant-BgIiMQpo.js +0 -27
  1668. package/dist/tenant-FfgNhd5x.d.ts +0 -17
  1669. package/dist/tenant-source-bqWpSr86.js +0 -8
  1670. package/dist/timeline-DqEoD8bb.d.ts +0 -151
  1671. package/dist/timeline-Dz3hO2I6.js +0 -50
  1672. package/dist/timing-dypS0nxW.js +0 -95
  1673. package/dist/topic-BaUElNw2.d.ts +0 -415
  1674. package/dist/topic-DnsNG4Kj.js +0 -643
  1675. package/dist/ttl-cache-Bhr9swjT.js +0 -32
  1676. package/dist/types-B-D6fYx2.d.ts +0 -194
  1677. package/dist/types-CK2X2wCB.d.ts +0 -618
  1678. package/dist/types-CMN0h_Ix.d.ts +0 -461
  1679. package/dist/types-CPl9uJ0G.d.ts +0 -912
  1680. package/dist/types-CwQgFo8c.d.ts +0 -177
  1681. package/dist/types-DMihLukJ.d.ts +0 -251
  1682. package/dist/types-R6syp1el.js +0 -29
  1683. package/dist/types-iCyZ3lMx.d.ts +0 -217
  1684. package/dist/types-nspa5I-a.d.ts +0 -664
  1685. package/dist/undo-0HkWXASn.d.ts +0 -46
  1686. package/dist/undo-BbftL9-4.js +0 -44
  1687. package/dist/upload-claim-B1ZU8ydB.js +0 -33
  1688. package/dist/usage-BkWAPkg2.d.ts +0 -232
  1689. package/dist/user-change-DgWC6RRC.js +0 -135
  1690. package/dist/variants-Cy--Ub-a.js +0 -53
  1691. package/dist/vault-BkdPmL7f.d.ts +0 -62
  1692. package/dist/verify-41mZmspj.d.ts +0 -146
  1693. package/dist/verify-7EucfCnv.js +0 -130
  1694. package/dist/view-C8Ve14ja.js +0 -247
  1695. package/dist/view-C8_xvD-j.d.ts +0 -97
  1696. package/dist/watch-topic-BabDTZ-L.d.ts +0 -31
  1697. package/dist/watch-topic-CuaWfCuv.js +0 -57
  1698. package/dist/wire-ChYn1g21.js +0 -91
  1699. package/dist/wiring-CDNuQoJJ.js +0 -13
  1700. package/dist/workflow-sdk-Cf0LAOFF.js +0 -242
  1701. package/dist/workflow-sdk-DJJkP0dT.js +0 -2545
  1702. package/dist/workflow-sdk-rg3IbCZC.d.ts +0 -163
  1703. package/dist/workflows-xL6t0TXx.d.ts +0 -258
@@ -1,3867 +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" | "create" | "update" | "delete";
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" | "list_roles" | "member_can" | "permission_claims" | "set_permission_override" | "tenant_ids_with";
1243
- readonly actions: "listRoles" | "setOverride";
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 CalendarReadOnly = {
2162
- readonly column: string;
2163
- readonly values: readonly string[];
2164
- };
2165
- type CalendarAccessFunctions = {
2166
- readonly read?: string;
2167
- readonly write?: string;
2168
- };
2169
- /** `blocks.calendar.options`. */
2170
- type CalendarSqlOptions = {
2171
- readonly extraColumns?: ExtraColumns;
2172
- /**
2173
- * Columns of the app's own on the calendars table, which `create_calendar`
2174
- * takes as `fields` and `list_calendars` returns under `fields`.
2175
- */
2176
- readonly calendarExtraColumns?: ExtraColumns;
2177
- readonly access?: boolean;
2178
- readonly accessFunctions?: CalendarAccessFunctions;
2179
- readonly userFeed?: boolean;
2180
- readonly recurrence?: "inline" | "table";
2181
- readonly rdates?: boolean;
2182
- readonly attendeeKey?: "email" | "any";
2183
- readonly calendarDetails?: boolean;
2184
- readonly ruleDialect?: CalendarRuleDialect;
2185
- readonly readOnly?: CalendarReadOnly;
2186
- };
2187
- //#endregion
2188
- //#region src/blocks/catalog/options.d.ts
2189
- /** `blocks.catalog.options`. */
2190
- type CatalogSqlOptions = {
2191
- readonly storefront?: string;
2192
- readonly extraColumns?: ExtraColumns;
2193
- /** Language tags the catalog translates into; the first is the default. */
2194
- readonly locales?: readonly string[];
2195
- };
2196
- //#endregion
2197
- //#region src/blocks/collections/options.d.ts
2198
- /** `blocks.collections.options`. */
2199
- type CollectionsSqlOptions = {
2200
- readonly extraColumns?: ExtraColumns;
2201
- };
2202
- //#endregion
2203
- //#region src/blocks/comments/options.d.ts
2204
- /**
2205
- * `blocks.comments.options`. The body limit, documents and extra columns are
2206
- * the messaging block's options, and the records come from `config.subjects`.
2207
- */
2208
- type CommentsSqlOptions = {
2209
- readonly follow?: boolean;
2210
- readonly mentionGroups?: unknown;
2211
- /** `false` sends no `comment.posted` notification to the record's followers. */
2212
- readonly notify?: boolean;
2213
- };
2214
- //#endregion
2215
- //#region src/blocks/compliance/options.d.ts
2216
- /** `blocks.compliance.options`. */
2217
- type ComplianceSqlOptions = {
2218
- readonly extraColumns?: ExtraColumns;
2219
- };
2220
- //#endregion
2221
- //#region src/blocks/connectors/options.d.ts
2222
- /** `blocks.connectors.options`. */
2223
- type ConnectorsSqlOptions = {
2224
- readonly allowHttp?: boolean;
2225
- readonly trustFirstUse?: boolean;
2226
- readonly sessionTtl?: string;
2227
- readonly extraColumns?: ExtraColumns;
2228
- };
2229
- //#endregion
2230
- //#region src/blocks/contacts/options.d.ts
2231
- /** `blocks.contacts.options`. */
2232
- type ContactsSqlOptions = {
2233
- readonly companyLifecycles?: unknown;
2234
- readonly personLifecycles?: unknown;
2235
- readonly extraColumns?: ExtraColumns;
2236
- };
2237
- //#endregion
2238
- //#region src/blocks/contracts/options.d.ts
2239
- /** `blocks.contracts.options`. */
2240
- type ContractsSqlOptions = {
2241
- /** Days before the notice deadline the owner's renewal reminder fires. */
2242
- readonly reminderDays?: number;
2243
- readonly extraColumns?: ExtraColumns;
2244
- };
2245
- //#endregion
2246
- //#region src/blocks/credentials/options.d.ts
2247
- /** `blocks.credentials.options`. */
2248
- type CredentialsSqlOptions = {
2249
- readonly secretStorage?: string;
2250
- };
2251
- //#endregion
2252
- //#region src/blocks/custom-fields/options.d.ts
2253
- /** `blocks.custom-fields.options`. */
2254
- type CustomFieldsSqlOptions = {
2255
- readonly layout?: string;
2256
- /**
2257
- * Writes one `read` audit entry per `read_field_values` call that returns an
2258
- * encrypted or sensitive value. Needs the audit block.
2259
- */
2260
- readonly auditReads?: boolean;
2261
- /**
2262
- * Keyed layout: the type of the `rank` column. `text` (the default) holds
2263
- * fractional keys in `collate "C"` order; `integer` holds whole numbers, cast
2264
- * to the type of the app's own rank column.
2265
- */
2266
- readonly rankType?: "text" | "integer";
2267
- /**
2268
- * Keyed layout: what `read_field_values` checks. `tenant` (the default) needs
2269
- * `permissions.read` in the tenant; `record` needs only that the caller can
2270
- * read the record, through `can_subject(type, id, 'read')`.
2271
- */
2272
- readonly readAccess?: "tenant" | "record";
2273
- };
2274
- //#endregion
2275
- //#region src/blocks/data-lifecycle/options.d.ts
2276
- /** `blocks.data-lifecycle.options`. */
2277
- type DataLifecycleSqlOptions = {
2278
- readonly bucket?: string;
2279
- readonly grace?: string;
2280
- readonly exportTtl?: string;
2281
- readonly tables?: unknown;
2282
- readonly autoTables?: unknown;
2283
- readonly tenantRow?: unknown;
2284
- readonly anonymize?: unknown;
2285
- readonly omitPattern?: unknown;
2286
- };
2287
- //#endregion
2288
- //#region src/blocks/deals/options.d.ts
2289
- /** `blocks.deals.options`. */
2290
- type DealsSqlOptions = {
2291
- readonly company?: string;
2292
- readonly contact?: string;
2293
- readonly motions?: unknown;
2294
- readonly priorities?: unknown;
2295
- readonly prefix?: string;
2296
- readonly readAll?: boolean;
2297
- readonly extraColumns?: ExtraColumns;
2298
- readonly lineExtraColumns?: ExtraColumns;
2299
- };
2300
- //#endregion
2301
- //#region src/blocks/documents/options.d.ts
2302
- /** `blocks.documents.options`. */
2303
- type DocumentsSqlOptions = {
2304
- readonly topic?: string;
2305
- readonly maxUpdateBytes?: number;
2306
- readonly compactAfter?: number;
2307
- };
2308
- //#endregion
2309
- //#region src/blocks/domains/options.d.ts
2310
- /** `blocks.domains.options`. */
2311
- type DomainsSqlOptions = {
2312
- /**
2313
- * The app's own domain: one label below it is a subdomain verified when
2314
- * added.
2315
- */
2316
- readonly platformDomain?: string;
2317
- /** The TXT record name's first label: `<txtPrefix>.<hostname>`. */
2318
- readonly txtPrefix?: string;
2319
- };
2320
- //#endregion
2321
- //#region src/blocks/donations/options.d.ts
2322
- /** `blocks.donations.options`. */
2323
- type DonationsSqlOptions = {
2324
- readonly extraColumns?: ExtraColumns;
2325
- };
2326
- //#endregion
2327
- //#region src/blocks/drive/options.d.ts
2328
- /** `blocks.drive.options`. */
2329
- type DriveSqlOptions = {
2330
- readonly roles?: readonly string[];
2331
- readonly writeRole?: unknown;
2332
- readonly shareRole?: unknown;
2333
- readonly memberRole?: unknown;
2334
- readonly subjectType?: string;
2335
- readonly conflict?: string;
2336
- readonly extraColumns?: ExtraColumns;
2337
- };
2338
- //#endregion
2339
- //#region src/blocks/employees/options.d.ts
2340
- /** `blocks.employees.options`. */
2341
- type EmployeesSqlOptions = {
2342
- readonly employmentTypes?: readonly string[];
2343
- readonly extraColumns?: ExtraColumns;
2344
- /**
2345
- * Columns of the app's own on the private details table, which
2346
- * `savePrivateDetails` takes under `fields`.
2347
- */
2348
- readonly privateDetailsExtraColumns?: ExtraColumns;
2349
- /** Columns of the app's own on the contracts table, set from `fields`. */
2350
- readonly contractExtraColumns?: ExtraColumns;
2351
- readonly name?: "single" | "split";
2352
- readonly privateDetails?: "json" | "flat";
2353
- readonly contracts?: "append" | "editable";
2354
- /** Whether the app's salary column holds minor or major units. */
2355
- readonly salaryUnits?: "minor" | "major";
2356
- /**
2357
- * With editable contracts, `allow` adds a contract without the overlap check
2358
- * and leaves the previous one as it is.
2359
- */
2360
- readonly contractOverlap?: "end" | "allow";
2361
- };
2362
- //#endregion
2363
- //#region src/blocks/expenses/options.d.ts
2364
- /** `blocks.expenses.options`. */
2365
- type ExpensesSqlOptions = {
2366
- readonly extraColumns?: ExtraColumns;
2367
- };
2368
- //#endregion
2369
- //#region src/blocks/flags/options.d.ts
2370
- /**
2371
- * A custom context's source: the table and column that hold a tenant's value,
2372
- * and the column with the tenant id (`id` by default).
2373
- */
2374
- interface FlagContextColumn {
2375
- readonly table: string;
2376
- readonly column: string;
2377
- readonly tenant?: string;
2378
- }
2379
- /** `blocks['flags'].options`. */
2380
- type FlagsSqlOptions = {
2381
- /**
2382
- * Custom contexts by name, e.g. `{ brand: { table: "public.organizations",
2383
- * column: "brand_id" } }`.
2384
- */
2385
- readonly contexts?: Readonly<Record<string, FlagContextColumn>>;
2386
- readonly extraColumns?: ExtraColumns;
2387
- };
2388
- //#endregion
2389
- //#region src/blocks/forms/options.d.ts
2390
- /** `blocks.forms.options`. */
2391
- type FormsSqlOptions = {
2392
- readonly handlers?: unknown;
2393
- readonly publicLimit?: unknown;
2394
- readonly extraColumns?: ExtraColumns;
2395
- };
2396
- //#endregion
2397
- //#region src/blocks/goals/options.d.ts
2398
- /** `blocks.goals.options`. */
2399
- type GoalsSqlOptions = {
2400
- readonly extraColumns?: ExtraColumns;
2401
- };
2402
- //#endregion
2403
- //#region src/blocks/grants/options.d.ts
2404
- /** `blocks['grants'].options`. */
2405
- type GrantsSqlOptions = {
2406
- readonly fromPolicies?: unknown;
2407
- };
2408
- //#endregion
2409
- //#region src/blocks/hiring/options.d.ts
2410
- type HiringStageMarker = string | {
2411
- readonly column: string;
2412
- readonly value: string;
2413
- };
2414
- type HiringJobStages = {
2415
- readonly table: string;
2416
- readonly id?: string;
2417
- readonly job: string;
2418
- readonly rank: string;
2419
- readonly archivedAt?: string;
2420
- readonly hired?: HiringStageMarker;
2421
- readonly rejected?: HiringStageMarker;
2422
- readonly withdrawn?: HiringStageMarker;
2423
- };
2424
- /** `blocks.hiring.options`. */
2425
- type HiringSqlOptions = {
2426
- readonly candidate?: string;
2427
- readonly extraColumns?: ExtraColumns;
2428
- readonly stages?: "pipelines" | HiringJobStages;
2429
- readonly scorecardKey?: "stage" | "application";
2430
- readonly hiringManager?: "user" | "employee";
2431
- };
2432
- //#endregion
2433
- //#region src/blocks/identities/options.d.ts
2434
- /** `blocks['identities'].options`. */
2435
- type IdentitiesSqlOptions = {
2436
- readonly codeMinutes?: number;
2437
- readonly verifiedEmails?: boolean;
2438
- };
2439
- //#endregion
2440
- //#region src/blocks/impersonation/options.d.ts
2441
- /** `blocks.impersonation.options`. */
2442
- type ImpersonationSqlOptions = {
2443
- readonly allowPlatformTargets?: unknown;
2444
- readonly allowWrites?: unknown;
2445
- readonly approval?: unknown;
2446
- readonly approvalTtl?: unknown;
2447
- readonly auditCategory?: unknown;
2448
- readonly claimsHook?: unknown;
2449
- readonly maxTtl?: unknown;
2450
- readonly requireReason?: unknown;
2451
- };
2452
- //#endregion
2453
- //#region src/blocks/inbox/options.d.ts
2454
- /** `blocks.inbox.options`. */
2455
- type InboxSqlOptions = {
2456
- readonly topic?: string;
2457
- readonly bucket?: string;
2458
- readonly maxBodyLength?: number;
2459
- readonly botQueue?: unknown;
2460
- readonly outboundQueue?: unknown;
2461
- readonly scheduleQueue?: unknown;
2462
- readonly notify?: boolean;
2463
- };
2464
- //#endregion
2465
- //#region src/blocks/incidents/options.d.ts
2466
- /** `blocks.incidents.options`. */
2467
- type IncidentsSqlOptions = {
2468
- readonly extraColumns?: ExtraColumns;
2469
- };
2470
- //#endregion
2471
- //#region src/blocks/inventory/options.d.ts
2472
- /** `blocks.inventory.options`. */
2473
- type InventorySqlOptions = {
2474
- readonly extraColumns?: ExtraColumns;
2475
- };
2476
- //#endregion
2477
- //#region src/blocks/invoices/options.d.ts
2478
- /** `blocks.invoices.options`. */
2479
- type InvoicesSqlOptions = {
2480
- readonly company?: string;
2481
- readonly contact?: string;
2482
- readonly prefix?: string;
2483
- readonly creditPrefix?: string;
2484
- readonly termsDays?: number;
2485
- readonly extraColumns?: ExtraColumns;
2486
- readonly lineExtraColumns?: ExtraColumns;
2487
- };
2488
- //#endregion
2489
- //#region src/blocks/knowledge/options.d.ts
2490
- /** `blocks.knowledge.options`. */
2491
- type KnowledgeSqlOptions = {
2492
- readonly dimensions?: number;
2493
- readonly type?: string;
2494
- readonly textSearch?: string;
2495
- readonly embedQueue?: string;
2496
- readonly ingestQueue?: string;
2497
- };
2498
- //#endregion
2499
- //#region src/blocks/leases/options.d.ts
2500
- /** `blocks.leases.options`. */
2501
- type LeasesSqlOptions = {
2502
- readonly extraColumns?: ExtraColumns;
2503
- };
2504
- //#endregion
2505
- //#region src/blocks/leave/options.d.ts
2506
- /** `blocks.leave.options`. */
2507
- type LeaveSqlOptions = {
2508
- readonly policy?: unknown;
2509
- readonly workingDays?: readonly string[];
2510
- readonly allowNegative?: boolean;
2511
- readonly extraColumns?: ExtraColumns;
2512
- };
2513
- //#endregion
2514
- //#region src/blocks/memory/options.d.ts
2515
- /** `blocks.memory.options`. */
2516
- type MemorySqlOptions = {
2517
- readonly dimensions?: unknown;
2518
- readonly type?: unknown;
2519
- readonly textSearch?: unknown;
2520
- readonly maxContent?: number;
2521
- };
2522
- //#endregion
2523
- //#region src/blocks/messaging/options.d.ts
2524
- /** `blocks.messaging.options`. */
2525
- type MessagingSqlOptions = {
2526
- /** The Realtime topic prefix: pings go to `<topic>:<conversation id>`. */
2527
- readonly topic?: string;
2528
- /** `1` keeps threads one level deep; `unlimited` nests replies. */
2529
- readonly threadDepth?: 1 | "unlimited";
2530
- readonly maxBodyLength?: number;
2531
- /** Seconds an author may edit a message; `0` for always. */
2532
- readonly editWindow?: number;
2533
- /** The jobs queue that sends scheduled messages. */
2534
- readonly scheduleQueue?: string;
2535
- readonly extraColumns?: ExtraColumns;
2536
- /**
2537
- * `false` sends no `message.mentioned`, `message.direct` or `message.replied`
2538
- * notification.
2539
- */
2540
- readonly notify?: boolean;
2541
- };
2542
- //#endregion
2543
- //#region src/blocks/metrics/options.d.ts
2544
- /** `blocks.metrics.options`. */
2545
- type MetricsSqlOptions = {
2546
- readonly metrics?: unknown;
2547
- readonly window?: string;
2548
- };
2549
- //#endregion
2550
- //#region src/blocks/notifications/options.d.ts
2551
- /** `blocks.notifications.options`. */
2552
- type NotificationsSqlOptions = {
2553
- readonly channelDefaults?: unknown;
2554
- readonly channels?: readonly string[];
2555
- readonly createdEvent?: string;
2556
- readonly maxRecipients?: number;
2557
- readonly partitioned?: boolean;
2558
- readonly priorities?: readonly string[];
2559
- readonly realtime?: string;
2560
- readonly topic?: string;
2561
- readonly updatedEvent?: string;
2562
- readonly extraColumns?: ExtraColumns;
2563
- };
2564
- //#endregion
2565
- //#region src/blocks/numbering/options.d.ts
2566
- /** One numbered entity of `blocks.numbering.options.entities`. */
2567
- type NumberSequenceEntityOptions = {
2568
- readonly period: "none" | "year" | "month" | "format" | {
2569
- readonly fiscalYearStartMonth: number;
2570
- };
2571
- readonly format: string;
2572
- /**
2573
- * A tenant's own format: `column` is `schema.table.column`, `key` holds the
2574
- * tenant id (default `id`).
2575
- */
2576
- readonly formatFrom?: {
2577
- readonly column: string;
2578
- readonly key?: string;
2579
- };
2580
- readonly periodFrom?: {
2581
- readonly column: string;
2582
- readonly key?: string;
2583
- };
2584
- readonly table?: string;
2585
- readonly column?: string;
2586
- readonly sequenceColumn?: string;
2587
- readonly tenantColumn?: string;
2588
- readonly periodColumn?: string;
2589
- readonly assignOn?: string;
2590
- readonly permission?: string;
2591
- };
2592
- /** `blocks.numbering.options`. */
2593
- type NumberingSqlOptions = {
2594
- readonly entities?: Readonly<Record<string, NumberSequenceEntityOptions>>;
2595
- };
2596
- //#endregion
2597
- //#region src/blocks/oauth-server/options.d.ts
2598
- /** `blocks.oauth-server.options`. */
2599
- type OAuthServerSqlOptions = {
2600
- /**
2601
- * The pattern a client id must match: a regular expression, or `"slug"` for
2602
- * lower-case slugs such as `acme-cli`. The default accepts the 22-character
2603
- * ids `registerClient` generates and any `[A-Za-z0-9._~-]{8,128}` id.
2604
- */
2605
- readonly clientIdPattern?: string;
2606
- };
2607
- //#endregion
2608
- //#region src/blocks/onboarding/options.d.ts
2609
- /** `blocks.onboarding.options`. */
2610
- type OnboardingSqlOptions = {
2611
- readonly checklists?: unknown;
2612
- };
2613
- //#endregion
2614
- //#region src/blocks/orders/options.d.ts
2615
- /** `blocks.orders.options`. */
2616
- type OrdersSqlOptions = {
2617
- readonly paymentWindowMinutes?: number;
2618
- readonly extraColumns?: ExtraColumns;
2619
- /** Per-line preparation states and kitchen stations. Off by default. */
2620
- readonly kitchen?: boolean;
2621
- };
2622
- //#endregion
2623
- //#region src/blocks/organizations/options.d.ts
2624
- /** `blocks.organizations.options`. */
2625
- type OrganizationsSqlOptions = {
2626
- readonly assignmentGuard?: string;
2627
- readonly attributes?: readonly string[];
2628
- readonly auditCategory?: unknown;
2629
- readonly deleteMode?: string;
2630
- readonly extraColumns?: ExtraColumns;
2631
- readonly formerOwnerRole?: string;
2632
- readonly ownerInvariant?: boolean;
2633
- readonly ownerRole?: string;
2634
- readonly reservedSlugs?: readonly string[];
2635
- readonly slugCitext?: boolean;
2636
- readonly slugMaxLength?: number;
2637
- readonly slugMinLength?: number;
2638
- readonly slugPattern?: string;
2639
- };
2640
- /**
2641
- * `platformRoles`: the platform roles a provider keeps outside the tenant,
2642
- * which an invitation can grant.
2643
- */
2644
- interface PlatformRolesOption {
2645
- /** `schema.table` of the platform role grants. */
2646
- readonly table: string;
2647
- /** The user column. */
2648
- readonly user: string;
2649
- /** The role column. */
2650
- readonly role: string;
2651
- /** Where the role name lives when `role` holds an id. */
2652
- readonly through?: {
2653
- readonly table: string;
2654
- readonly id: string;
2655
- readonly column: string;
2656
- /** A condition on the roles row `{row}`. */
2657
- readonly where?: string;
2658
- };
2659
- /** A SQL template that holds when the caller may grant `{role}`. */
2660
- readonly canAssign?: string;
2661
- /** The same check for another user, `{user}`. */
2662
- readonly canAssignFor?: string;
2663
- }
2664
- /** `blocks.invitations.options`. */
2665
- type InvitationsSqlOptions = {
2666
- readonly maxValidFor?: string;
2667
- readonly platformRoles?: PlatformRolesOption;
2668
- readonly prefill?: boolean;
2669
- readonly previewColumns?: readonly string[];
2670
- readonly requireConfirmedEmail?: boolean;
2671
- readonly tokenBytes?: number;
2672
- readonly tokenStorage?: string;
2673
- readonly validFor?: string;
2674
- readonly extraColumns?: ExtraColumns;
2675
- /** The role `create_invitation` and `invite_member` use when none is named. */
2676
- readonly defaultRole?: string;
2677
- /** Extra roles and teams an invitation grants on accept. */
2678
- readonly onAccept?: {
2679
- readonly roles?: boolean;
2680
- readonly teams?: boolean;
2681
- };
2682
- };
2683
- //#endregion
2684
- //#region src/blocks/outbox/options.d.ts
2685
- /** `blocks.outbox.options`. */
2686
- type OutboxSqlOptions = {
2687
- readonly defaultSource?: string;
2688
- readonly emitRoles?: readonly string[];
2689
- readonly blockSource?: unknown;
2690
- readonly partitioned?: boolean;
2691
- readonly retention?: string;
2692
- readonly settle?: string;
2693
- };
2694
- //#endregion
2695
- //#region src/blocks/permissions/options.d.ts
2696
- /** `blocks.permissions.options`. */
2697
- type PermissionsSqlOptions = {
2698
- readonly platformRoleScope?: string;
2699
- readonly scope?: string;
2700
- readonly tenantRoleScope?: string;
2701
- };
2702
- //#endregion
2703
- //#region src/blocks/pipelines/options.d.ts
2704
- /** `blocks.pipelines.options`. */
2705
- type PipelinesSqlOptions = {
2706
- readonly extraColumns?: ExtraColumns;
2707
- };
2708
- //#endregion
2709
- //#region src/blocks/profiles/options.d.ts
2710
- /** `blocks.profiles.options`. */
2711
- type ProfilesSqlOptions = {
2712
- readonly columnGrants?: boolean;
2713
- readonly extraColumns?: ExtraColumns;
2714
- readonly metadata?: unknown;
2715
- readonly mirrorEmail?: boolean;
2716
- readonly readPolicy?: unknown;
2717
- readonly reservedUsernames?: readonly string[];
2718
- readonly serviceColumns?: readonly string[];
2719
- readonly splitName?: boolean;
2720
- readonly syncTrigger?: boolean;
2721
- readonly updatable?: readonly string[];
2722
- readonly username?: boolean;
2723
- readonly usernameFrom?: unknown;
2724
- readonly usernameMaxLength?: number;
2725
- readonly usernameMinLength?: number;
2726
- };
2727
- //#endregion
2728
- //#region src/blocks/promotions/options.d.ts
2729
- /** `blocks.promotions.options`. */
2730
- type PromotionsSqlOptions = {
2731
- readonly extraColumns?: ExtraColumns;
2732
- };
2733
- //#endregion
2734
- //#region src/blocks/push/options.d.ts
2735
- /** `blocks.push.options`. */
2736
- type PushSqlOptions = {
2737
- readonly extraColumns?: ExtraColumns;
2738
- };
2739
- //#endregion
2740
- //#region src/blocks/queue/options.d.ts
2741
- /** `blocks.queue.options`. */
2742
- type QueueSqlOptions = {
2743
- readonly backend?: string;
2744
- readonly scheduler?: string;
2745
- };
2746
- /** `blocks.rate-limit.options`. */
2747
- type RateLimitSqlOptions = {
2748
- readonly preRequest?: boolean;
2749
- };
2750
- /** `blocks.webhook-inbox.options`. */
2751
- type WebhookInboxSqlOptions = {
2752
- readonly extraColumns?: ExtraColumns;
2753
- };
2754
- //#endregion
2755
- //#region src/blocks/quotes/options.d.ts
2756
- /** `blocks.quotes.options`. */
2757
- type QuotesSqlOptions = {
2758
- readonly company?: string;
2759
- readonly contact?: string;
2760
- readonly prefix?: string;
2761
- readonly validDays?: number;
2762
- readonly extraColumns?: ExtraColumns;
2763
- readonly lineExtraColumns?: ExtraColumns;
2764
- };
2765
- //#endregion
2766
- //#region src/blocks/reactions/options.d.ts
2767
- /** `blocks.reactions.options`. */
2768
- type ReactionsSqlOptions = {
2769
- readonly topic?: string;
2770
- };
2771
- //#endregion
2772
- //#region src/blocks/relations/options.d.ts
2773
- /** `blocks.relations.options`. */
2774
- type RelationsSqlOptions = {
2775
- readonly kinds?: unknown;
2776
- readonly extraColumns?: ExtraColumns;
2777
- };
2778
- //#endregion
2779
- //#region src/blocks/reminders/options.d.ts
2780
- /** `blocks.reminders.options`. */
2781
- type RemindersSqlOptions = {
2782
- readonly ruleFormat?: string;
2783
- readonly extraColumns?: ExtraColumns;
2784
- };
2785
- //#endregion
2786
- //#region src/blocks/reserved-slugs/options.d.ts
2787
- /** `blocks.reserved-slugs.options`. */
2788
- type ReservedSlugsSqlOptions = {
2789
- readonly maxLength?: number;
2790
- readonly minLength?: number;
2791
- readonly slugs?: readonly string[];
2792
- };
2793
- //#endregion
2794
- //#region src/blocks/reviews/options.d.ts
2795
- /** `blocks.reviews.options`. */
2796
- type ReviewsSqlOptions = {
2797
- readonly scale?: number;
2798
- readonly maxBodyLength?: number;
2799
- readonly moderation?: string;
2800
- readonly requirePurchase?: boolean;
2801
- readonly extraColumns?: ExtraColumns;
2802
- };
2803
- //#endregion
2804
- //#region src/blocks/saved-views/options.d.ts
2805
- /** `blocks.saved-views.options`. */
2806
- type SavedViewsSqlOptions = {
2807
- readonly extraColumns?: ExtraColumns;
2808
- };
2809
- //#endregion
2810
- //#region src/blocks/search/options.d.ts
2811
- /** `blocks.search.options`. */
2812
- type SearchSqlOptions = {
2813
- readonly config?: string;
2814
- readonly dimensions?: number;
2815
- };
2816
- //#endregion
2817
- //#region src/blocks/security-events/options.d.ts
2818
- /** `blocks["security-events"].options`. */
2819
- type SecurityEventsSqlOptions = {
2820
- readonly retention?: string;
2821
- };
2822
- //#endregion
2823
- //#region src/blocks/service-accounts/options.d.ts
2824
- /** `blocks["service-accounts"].options`. */
2825
- type ServiceAccountsSqlOptions = {
2826
- readonly extraColumns?: ExtraColumns;
2827
- };
2828
- //#endregion
2829
- //#region src/blocks/sessions/options.d.ts
2830
- /** `blocks['sessions'].options`. */
2831
- type SessionsSqlOptions = {
2832
- readonly exclude?: readonly string[];
2833
- readonly policies?: boolean;
2834
- };
2835
- //#endregion
2836
- //#region src/blocks/settings/options.d.ts
2837
- /** `blocks.settings.options`. */
2838
- type SettingsSqlOptions = {
2839
- readonly schemas?: unknown;
2840
- readonly platform?: unknown;
2841
- };
2842
- //#endregion
2843
- //#region src/blocks/share-links/options.d.ts
2844
- /** `blocks.share-links.options`. */
2845
- type ShareLinksSqlOptions = {
2846
- readonly extraColumns?: ExtraColumns;
2847
- /**
2848
- * `create_share_link` takes a `token_hash` the caller made (sha256 hex), and
2849
- * `find_share_link(token_hash)` looks a live link up by it without counting a
2850
- * use.
2851
- */
2852
- readonly tokenHash?: boolean;
2853
- /**
2854
- * `list_share_links` returns each link's tenant, subject, creator and
2855
- * creation time, and takes `include_revoked`.
2856
- */
2857
- readonly fullRows?: boolean;
2858
- };
2859
- //#endregion
2860
- //#region src/blocks/signing-keys/options.d.ts
2861
- /** `blocks.signing-keys.options`. */
2862
- type SigningKeysSqlOptions = {
2863
- readonly jwksGrace?: string;
2864
- };
2865
- //#endregion
2866
- //#region src/blocks/sla/options.d.ts
2867
- /** `blocks.sla.options`. */
2868
- type SlaSqlOptions = {
2869
- readonly businessHours?: unknown;
2870
- readonly extraColumns?: ExtraColumns;
2871
- };
2872
- //#endregion
2873
- //#region src/blocks/sso/options.d.ts
2874
- /** `blocks.sso.options`. */
2875
- type SsoSqlOptions = {
2876
- readonly txtPrefix?: string;
2877
- readonly defaultRole?: string;
2878
- readonly roleOrder?: readonly string[];
2879
- readonly groupRoles?: unknown;
2880
- /** Adds `scim_sync_log` and its functions, for `sqlScimSyncLog`. */
2881
- readonly syncLog?: boolean;
2882
- };
2883
- //#endregion
2884
- //#region src/blocks/state-machine/options.d.ts
2885
- /** `blocks.state-machine.options`. */
2886
- type StateMachineSqlOptions = {
2887
- readonly machines?: unknown;
2888
- };
2889
- //#endregion
2890
- //#region src/blocks/streams/options.d.ts
2891
- /** `blocks.streams.options`. */
2892
- type StreamsSqlOptions = {
2893
- readonly topic?: string;
2894
- };
2895
- //#endregion
2896
- //#region src/blocks/tags/options.d.ts
2897
- /** `blocks.tags.options`. */
2898
- type TagsSqlOptions = {
2899
- readonly extraColumns?: ExtraColumns;
2900
- /**
2901
- * `create_tag` takes the caller's `slug`, and `update_tag` a `patch` that
2902
- * sets `name`, `slug`, `color`, `description` and `kind` and can clear the
2903
- * nullable ones.
2904
- */
2905
- readonly patch?: boolean;
2906
- };
2907
- //#endregion
2908
- //#region src/blocks/tasks/options.d.ts
2909
- /** `blocks.tasks.options`. */
2910
- type TasksSqlOptions = {
2911
- readonly prefix?: string;
2912
- readonly maxAssignees?: number;
2913
- readonly extraColumns?: ExtraColumns;
2914
- /** Whether an item's author can delete it without the delete key. */
2915
- readonly authorCanDelete?: boolean;
2916
- readonly notify?: boolean;
2917
- readonly actionPath?: string;
2918
- };
2919
- //#endregion
2920
- //#region src/blocks/teams/options.d.ts
2921
- /** `blocks.teams.options`. */
2922
- type TeamsSqlOptions = {
2923
- /** The key type of teams. Default `uuid`; `inbox` needs `uuid`. */
2924
- readonly teamIdType?: "uuid" | "bigint";
2925
- readonly extraColumns?: ExtraColumns;
2926
- /**
2927
- * `create_team` takes the caller's `slug`, and `update_team` a `patch` that
2928
- * sets `name`, `slug` and `description` and can clear the description.
2929
- */
2930
- readonly patch?: boolean;
2931
- /** Writes `restore_team`, which makes an archived team active again. */
2932
- readonly restore?: boolean;
2933
- };
2934
- //#endregion
2935
- //#region src/blocks/templates/options.d.ts
2936
- /** `blocks.templates.options`. */
2937
- type TemplatesSqlOptions = {
2938
- readonly extraColumns?: ExtraColumns;
2939
- };
2940
- //#endregion
2941
- //#region src/blocks/time-tracking/options.d.ts
2942
- /** `blocks.time-tracking.options`. */
2943
- type TimeTrackingSqlOptions = {
2944
- readonly policy?: unknown;
2945
- readonly timeZone?: string;
2946
- readonly extraColumns?: ExtraColumns;
2947
- /**
2948
- * `false` keeps timesheets without the approvals block: a status column holds
2949
- * open, submitted, approved or rejected, and members with
2950
- * `time_tracking.approve` decide through `approve_timesheet` and
2951
- * `reject_timesheet`. Default `true`.
2952
- */
2953
- readonly approvals?: boolean;
2954
- /**
2955
- * The column that holds each user's IANA time zone, as `{ column:
2956
- * "schema.table.column", key? }` (`key` defaults to `id`). Weeks then start
2957
- * in the user's own zone, and in `timeZone` for a user without one.
2958
- */
2959
- readonly userTimeZone?: {
2960
- readonly column: string;
2961
- readonly key?: string;
2962
- };
2963
- readonly owner?: "user" | "employee";
2964
- };
2965
- //#endregion
2966
- //#region src/blocks/trash/options.d.ts
2967
- /** `blocks.trash.options`. */
2968
- type TrashSqlOptions = {
2969
- readonly retentionDays?: number;
2970
- readonly extraColumns?: ExtraColumns;
2971
- /**
2972
- * The column that marks a trashed row on tables outside `on`;
2973
- * `trashExtension` filters on it and sets it on delete.
2974
- */
2975
- readonly deletedAt?: string;
2976
- };
2977
- //#endregion
2978
- //#region src/blocks/usage/options.d.ts
2979
- /** `blocks.usage.options`. */
2980
- type UsageSqlOptions = {
2981
- readonly meters?: unknown;
2982
- readonly history?: boolean;
2983
- readonly partitioned?: boolean;
2984
- };
2985
- //#endregion
2986
- //#region src/blocks/vector-search/options.d.ts
2987
- /** `blocks.vector-search.options`. */
2988
- type VectorSearchSqlOptions = {
2989
- readonly schema?: unknown;
2990
- };
2991
- //#endregion
2992
- //#region src/blocks/vercel-marketplace/options.d.ts
2993
- /** `blocks.vercel-marketplace.options`. */
2994
- type VercelMarketplaceSqlOptions = {
2995
- /**
2996
- * The currency an invoice takes when the webhook names none (ISO 4217,
2997
- * lowercase).
2998
- */
2999
- readonly currency?: string;
3000
- };
3001
- //#endregion
3002
- //#region src/blocks/versions/options.d.ts
3003
- /** `blocks.versions.options`. */
3004
- type VersionsSqlOptions = {
3005
- readonly keep?: number;
3006
- readonly debounce?: number;
3007
- readonly extraColumns?: ExtraColumns;
3008
- };
3009
- //#endregion
3010
- //#region src/blocks/waitlist/options.d.ts
3011
- /** `blocks.waitlist.options`. */
3012
- type WaitlistSqlOptions = {
3013
- readonly defaultRole?: string;
3014
- readonly codeField?: string;
3015
- readonly roles?: readonly string[];
3016
- readonly extraColumns?: ExtraColumns;
3017
- };
3018
- //#endregion
3019
- //#region src/blocks/webhooks/options.d.ts
3020
- /** `blocks.webhooks-out.options`. */
3021
- type WebhooksOutSqlOptions = {
3022
- readonly allowHttp?: boolean;
3023
- readonly defaultFormat?: string;
3024
- readonly disableAfter?: string;
3025
- readonly eventIdType?: unknown;
3026
- readonly partitioned?: boolean;
3027
- readonly runIdType?: unknown;
3028
- readonly secretStorage?: string;
3029
- readonly statuses?: unknown;
3030
- };
3031
- /** `blocks.webhooks-in.options`. */
3032
- type WebhooksInSqlOptions = {
3033
- readonly maxBodyBytes?: number;
3034
- readonly secretStorage?: string;
3035
- };
3036
- //#endregion
3037
- //#region src/blocks/workflow-editor/options.d.ts
3038
- /** `blocks["workflow-editor"].options`. */
3039
- type WorkflowEditorSqlOptions = {
3040
- readonly extraColumns?: ExtraColumns;
3041
- };
3042
- //#endregion
3043
- //#region src/blocks/workflow-sdk/options.d.ts
3044
- /** `blocks["workflow-sdk"].options`. */
3045
- type WorkflowSdkSqlOptions = {
3046
- readonly delivery?: string;
3047
- readonly queue?: string;
3048
- readonly batch?: number;
3049
- readonly timeout?: number;
3050
- readonly schedule?: string;
3051
- };
3052
- //#endregion
3053
- //#region src/blocks/options-registry.d.ts
3054
- type None = Record<never, never>;
3055
- /**
3056
- * The options of every SQL module, keyed by module name. `BlocksConfig` types
3057
- * `blocks.<module>.options` from it, and `schemas/config-v1.json` is generated
3058
- * from `BLOCK_OPTION_SCHEMAS`.
3059
- */
3060
- interface BlockOptionsRegistry {
3061
- readonly "access-requests": AccessRequestsSqlOptions;
3062
- readonly activities: ActivitiesSqlOptions;
3063
- readonly agents: AgentsSqlOptions;
3064
- readonly "ai-cache": AiCacheSqlOptions;
3065
- readonly "ai-chat": AiChatSqlOptions;
3066
- readonly "ai-files": AiFilesSqlOptions;
3067
- readonly "ai-keys": AiKeysSqlOptions;
3068
- readonly "ai-schedules": AiSchedulesSqlOptions;
3069
- readonly announcements: AnnouncementsSqlOptions;
3070
- readonly "api-keys": ApiKeysSqlOptions;
3071
- readonly approvals: ApprovalsSqlOptions;
3072
- readonly assets: AssetsSqlOptions;
3073
- readonly assignment: None;
3074
- readonly attachments: AttachmentsSqlOptions;
3075
- readonly audit: AuditSqlOptions;
3076
- readonly automations: AutomationsSqlOptions;
3077
- readonly "billable-time": None;
3078
- readonly billing: BillingSqlOptions;
3079
- readonly bookings: BookingsSqlOptions;
3080
- readonly bulk: BulkSqlOptions;
3081
- readonly calendar: CalendarSqlOptions;
3082
- readonly catalog: CatalogSqlOptions;
3083
- readonly channels: None;
3084
- readonly "chat-sdk-state": None;
3085
- readonly collections: CollectionsSqlOptions;
3086
- readonly comments: CommentsSqlOptions;
3087
- readonly compliance: ComplianceSqlOptions;
3088
- readonly connectors: ConnectorsSqlOptions;
3089
- readonly contacts: ContactsSqlOptions;
3090
- readonly contracts: ContractsSqlOptions;
3091
- readonly courses: CoursesSqlOptions;
3092
- readonly "created-by": CreatedBySqlOptions;
3093
- readonly credentials: CredentialsSqlOptions;
3094
- readonly "custom-fields": CustomFieldsSqlOptions;
3095
- readonly flags: FlagsSqlOptions;
3096
- readonly "data-lifecycle": DataLifecycleSqlOptions;
3097
- readonly deals: DealsSqlOptions;
3098
- readonly dispatch: DispatchSqlOptions;
3099
- readonly documents: DocumentsSqlOptions;
3100
- readonly domains: DomainsSqlOptions;
3101
- readonly donations: DonationsSqlOptions;
3102
- readonly drive: DriveSqlOptions;
3103
- readonly "drive-files": None;
3104
- readonly employees: EmployeesSqlOptions;
3105
- readonly enrichment: None;
3106
- readonly enrollments: EnrollmentsSqlOptions;
3107
- readonly entitlements: None;
3108
- readonly expenses: ExpensesSqlOptions;
3109
- readonly "field-encryption": None;
3110
- readonly "field-history": None;
3111
- readonly forecasts: None;
3112
- readonly forms: FormsSqlOptions;
3113
- readonly goals: GoalsSqlOptions;
3114
- readonly grants: GrantsSqlOptions;
3115
- readonly guests: None;
3116
- readonly hiring: HiringSqlOptions;
3117
- readonly idempotency: None;
3118
- readonly identities: IdentitiesSqlOptions;
3119
- readonly impersonation: ImpersonationSqlOptions;
3120
- readonly imports: None;
3121
- readonly inbox: InboxSqlOptions;
3122
- readonly incidents: IncidentsSqlOptions;
3123
- readonly inventory: InventorySqlOptions;
3124
- readonly invitations: InvitationsSqlOptions;
3125
- readonly invoices: InvoicesSqlOptions;
3126
- readonly "jsonb-schemas": None;
3127
- readonly knowledge: KnowledgeSqlOptions;
3128
- readonly "lead-scoring": LeadScoringSqlOptions;
3129
- readonly leases: LeasesSqlOptions;
3130
- readonly leave: LeaveSqlOptions;
3131
- readonly ledger: None;
3132
- readonly "mail-sync": MailSyncSqlOptions;
3133
- readonly memberships: MembershipsSqlOptions;
3134
- readonly memory: MemorySqlOptions;
3135
- readonly messaging: MessagingSqlOptions;
3136
- readonly metrics: MetricsSqlOptions;
3137
- readonly mfa: None;
3138
- readonly moderation: ModerationSqlOptions;
3139
- readonly notifications: NotificationsSqlOptions;
3140
- readonly numbering: NumberingSqlOptions;
3141
- readonly "oauth-server": OAuthServerSqlOptions;
3142
- readonly onboarding: OnboardingSqlOptions;
3143
- readonly orders: OrdersSqlOptions;
3144
- readonly organizations: OrganizationsSqlOptions;
3145
- readonly outbox: OutboxSqlOptions;
3146
- readonly passes: PassesSqlOptions;
3147
- readonly permissions: PermissionsSqlOptions;
3148
- readonly pgtap: None;
3149
- readonly pipelines: PipelinesSqlOptions;
3150
- readonly posts: PostsSqlOptions;
3151
- readonly content: ContentSqlOptions;
3152
- readonly profiles: ProfilesSqlOptions;
3153
- readonly promotions: PromotionsSqlOptions;
3154
- readonly push: PushSqlOptions;
3155
- readonly queue: QueueSqlOptions;
3156
- readonly quotes: QuotesSqlOptions;
3157
- readonly rank: None;
3158
- readonly "rate-limit": RateLimitSqlOptions;
3159
- readonly reactions: ReactionsSqlOptions;
3160
- readonly "read-sets": None;
3161
- readonly "realtime-tables": None;
3162
- readonly relations: RelationsSqlOptions;
3163
- readonly reminders: RemindersSqlOptions;
3164
- readonly "reserved-slugs": ReservedSlugsSqlOptions;
3165
- readonly reviews: ReviewsSqlOptions;
3166
- readonly "rls-guard": None;
3167
- readonly "saved-views": SavedViewsSqlOptions;
3168
- readonly scores: ScoresSqlOptions;
3169
- readonly search: SearchSqlOptions;
3170
- readonly "security-events": SecurityEventsSqlOptions;
3171
- readonly segments: SegmentsSqlOptions;
3172
- readonly sequences: SequencesSqlOptions;
3173
- readonly "service-accounts": ServiceAccountsSqlOptions;
3174
- readonly sessions: SessionsSqlOptions;
3175
- readonly settings: SettingsSqlOptions;
3176
- readonly "share-links": ShareLinksSqlOptions;
3177
- readonly shipments: ShipmentsSqlOptions;
3178
- readonly signatures: SignaturesSqlOptions;
3179
- readonly "signing-keys": SigningKeysSqlOptions;
3180
- readonly sla: SlaSqlOptions;
3181
- readonly sso: SsoSqlOptions;
3182
- readonly "state-machine": StateMachineSqlOptions;
3183
- readonly streams: StreamsSqlOptions;
3184
- readonly subjects: None;
3185
- readonly tags: TagsSqlOptions;
3186
- readonly tasks: TasksSqlOptions;
3187
- readonly teams: TeamsSqlOptions;
3188
- readonly templates: TemplatesSqlOptions;
3189
- readonly "time-tracking": TimeTrackingSqlOptions;
3190
- readonly timeline: None;
3191
- readonly trash: TrashSqlOptions;
3192
- readonly "updated-at": UpdatedAtSqlOptions;
3193
- readonly usage: UsageSqlOptions;
3194
- readonly "vector-search": VectorSearchSqlOptions;
3195
- readonly "vercel-marketplace": VercelMarketplaceSqlOptions;
3196
- readonly versions: VersionsSqlOptions;
3197
- readonly waitlist: WaitlistSqlOptions;
3198
- readonly "webhook-inbox": WebhookInboxSqlOptions;
3199
- readonly "webhooks-in": WebhooksInSqlOptions;
3200
- readonly "webhooks-out": WebhooksOutSqlOptions;
3201
- readonly "workflow-editor": WorkflowEditorSqlOptions;
3202
- readonly "workflow-sdk": WorkflowSdkSqlOptions;
3203
- readonly workflows: None;
3204
- }
3205
- /** The options schema of every SQL module, keyed by module name. */
3206
- declare const BLOCK_OPTION_SCHEMAS: { readonly [M in keyof BlockOptionsRegistry]: BlockOptionsSchema<BlockOptionsRegistry[M]>; };
3207
- //#endregion
3208
- //#region src/config/blocks.d.ts
3209
- /**
3210
- * `blocks` in `better-supabase.config.ts`: how each SQL module maps onto the
3211
- * app's database. A module's contract (the functions other modules and the
3212
- * TypeScript side call) stays the same in every mode; only the tables behind it
3213
- * change.
3214
- */
3215
- /**
3216
- * `managed`: the module writes its tables, functions and views, and leaves
3217
- * alone every table the app's schema already has (`ownTables`), writing its
3218
- * functions over that table instead. `custom`: the app implements the contract
3219
- * functions itself; the module writes nothing and doctor checks the signatures
3220
- * (BS307).
3221
- */
3222
- type BlockMode = "managed" | "custom";
3223
- /**
3224
- * Who a block's rows belong to. `tenant`: a tenant, checked through the access
3225
- * contract (`can`, `tenant_ids_with`). `user`: the signed-in user, whose id the
3226
- * scope column holds. `none`: one shared space every signed-in user reads and
3227
- * writes. Blocks that need tenants run only in `tenant`.
3228
- */
3229
- type BlockScope = "tenant" | "user" | "none";
3230
- /**
3231
- * Whose policies govern the app's tables a block runs over. `block`: the block
3232
- * adds its `bsb_` policies where none of the app's covers them. `app`: it adds
3233
- * none, permissive or restrictive, and still writes its functions, triggers,
3234
- * indexes and grants.
3235
- */
3236
- type OwnTablePolicies = "block" | "app";
3237
- /**
3238
- * A new name for one of a block's entities: its singular `name`, an irregular
3239
- * plural and, for an entity the block registers as a subject, the URL of one
3240
- * row with `{column}` placeholders.
3241
- */
3242
- interface EntityConfig<Columns extends string = string> {
3243
- /** Defaults to the entity's own name. */
3244
- readonly name?: string;
3245
- /** Defaults to the English plural of `name`. */
3246
- readonly plural?: string;
3247
- /**
3248
- * The page `subject_url` returns, with `{column}` placeholders from the
3249
- * entity's logical columns: `/tasks/{id}`. A list page needs none.
3250
- */
3251
- readonly url?: `${string}{${Columns}}${string}` | (string & {});
3252
- /** `false` keeps the entity out of `config.subjects`. */
3253
- readonly subject?: false;
3254
- }
3255
- /**
3256
- * `blocks.<name>.names`: entity to its new name, e.g. `{ work_item: "task" }`,
3257
- * or the new name of the block's primary entity alone (`"task"`). The module's
3258
- * tables, columns, functions, events, permission keys, hooks and TypeScript
3259
- * names follow.
3260
- */
3261
- 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]>; });
3262
- /**
3263
- * `blocks.<instance>.on`: the record types an attachable block attaches to, as
3264
- * a list of type names or keyed by type name with settings for each.
3265
- */
3266
- type InstanceOn = readonly string[] | Readonly<Record<string, Readonly<Record<string, unknown>>>>;
3267
- /**
3268
- * What makes a `blocks` entry an instance: the block it installs, the record
3269
- * types it attaches to and the instances its dependencies resolve to.
3270
- */
3271
- interface InstanceKeys {
3272
- /**
3273
- * The block this entry installs. Defaults to the key, so `tags: {}` is the
3274
- * `tags` block; `labels: { block: "tags" }` installs it a second time.
3275
- */
3276
- readonly block?: string;
3277
- /** The record types it attaches to. Defaults to every record type. */
3278
- readonly on?: InstanceOn;
3279
- /**
3280
- * Dependency block to the instance it uses, e.g. `{ pipelines:
3281
- * "maintenanceStages" }`. Needed only when the dependency is installed more
3282
- * than once.
3283
- */
3284
- readonly uses?: Readonly<Record<string, string>>;
3285
- }
3286
- /**
3287
- * Options every module takes; `Options` types `options`
3288
- * (`blocks.<module>.options`) and `Names` the names the other keys accept.
3289
- */
3290
- interface BlockConfig<Options extends object = Readonly<Record<string, unknown>>, Names extends BlockSqlNameSet = AnyModuleNames> extends InstanceKeys {
3291
- readonly mode?: BlockMode;
3292
- /**
3293
- * Schema of the module's functions and managed tables. Defaults to
3294
- * `sql.schema`, then `better_supabase`.
3295
- */
3296
- readonly schema?: string;
3297
- /**
3298
- * Logical table to `table` or `schema.table`, e.g. `{ memberships:
3299
- * 'public.organization_users' }`. An unqualified name is in `schema`. `null`
3300
- * marks an optional table the app doesn't have.
3301
- */
3302
- readonly tables?: { readonly [T in keyof Names["tables"]]?: string | null; };
3303
- /**
3304
- * Logical table to logical column to column name, e.g. `{ memberships: {
3305
- * tenant: 'organization_id', role: 'role_id' } }`. `null` marks an optional
3306
- * column the adopted table doesn't have.
3307
- */
3308
- readonly columns?: { readonly [T in keyof Names["tables"]]?: { readonly [C in Names["tables"][T]]?: string | null; }; };
3309
- /**
3310
- * Logical table to logical column to the values the app's column stores for
3311
- * each label the block writes or compares, e.g. `{ events: { status: {
3312
- * cancelled: 'canceled' } } }`. A list maps one label to several app values
3313
- * (the first is written, each reads as the label); `null` marks a label the
3314
- * app does not support, so a write of it fails with `VALUE_UNSUPPORTED`. Only
3315
- * columns a block lists as typed take values; its docs page names them.
3316
- */
3317
- readonly values?: { readonly [T in keyof Names["tables"]]?: { readonly [C in Names["tables"][T]]?: Readonly<Record<string, string | readonly string[] | null>>; }; };
3318
- /** Type of tenant ids: `uuid` (default), `text`, `bigint` or `integer`. */
3319
- readonly idType?: string;
3320
- /** Who the block's rows belong to. Defaults to `sql.scope`, then `tenant`. */
3321
- readonly scope?: BlockScope;
3322
- /**
3323
- * Whose policies govern every table of the app's that the block runs over:
3324
- * `block` adds the block's `bsb_` policies where none of the app's covers
3325
- * them, `app` adds none, permissive or restrictive. Defaults to
3326
- * `sql.ownTablePolicies`, then `block`.
3327
- */
3328
- readonly ownTablePolicies?: OwnTablePolicies;
3329
- /**
3330
- * Function name to the name the module writes it under, e.g. `{
3331
- * create_organization: 'start_company' }`. Keys are the default names; an
3332
- * unknown function is an error. `blocks.permissions.functions` is the custom
3333
- * model's templates instead.
3334
- */
3335
- readonly functions?: { readonly [F in Names["functions"]]?: string; };
3336
- /**
3337
- * Module action to permission key, checked through the access contract, e.g.
3338
- * `{ invite: 'organization.members.invite' }`.
3339
- */
3340
- readonly permissions?: { readonly [A in Names["actions"]]?: string; };
3341
- /** New names for the block's entities. */
3342
- readonly entities?: EntitiesConfig<Names>;
3343
- /**
3344
- * Module-specific options, typed from the block manifest's options schema;
3345
- * each module's docs page lists them.
3346
- */
3347
- readonly options?: Options;
3348
- /**
3349
- * The app's optional `before_*` and `after_*` functions the module calls when
3350
- * they exist, e.g. `after_organization_create(organization, user)`. They are
3351
- * looked up in `schema` (default `public`); `functions` maps a hook name to
3352
- * another function, e.g. `{ after_organization_create:
3353
- * 'app.seed_organization' }`.
3354
- */
3355
- readonly hooks?: {
3356
- readonly schema?: string;
3357
- readonly functions?: { readonly [H in Names["hooks"]]?: string; };
3358
- };
3359
- /**
3360
- * Whether the module writes its events to the outbox (`emit_event`) when the
3361
- * `outbox` module is installed. Defaults to true.
3362
- */
3363
- readonly events?: boolean;
3364
- /**
3365
- * Whether the module writes its actions to the audit log (`audit_event`) when
3366
- * the `audit` module is installed. Defaults to true.
3367
- */
3368
- readonly audit?: boolean;
3369
- /**
3370
- * A schema for the Data API, such as `api`: the module writes a `security
3371
- * invoker` wrapper there for each of its functions that `anon` or
3372
- * `authenticated` may execute (or only those in `functions`, plus the ones
3373
- * the block's TypeScript client calls), so `rpcTransport(supabase, { schema:
3374
- * "api" })` reaches them without exposing the module schema (doctor BS312).
3375
- * Defaults to `sql.api`; `false` writes no wrappers even when `sql.api` is
3376
- * set.
3377
- */
3378
- readonly api?: string | false | {
3379
- readonly schema: string;
3380
- readonly functions?: readonly string[];
3381
- };
3382
- }
3383
- /**
3384
- * Where the active tenant of a request comes from. Every source counts only
3385
- * while the caller is a member, so a stale claim or setting grants nothing.
3386
- */
3387
- type ActiveTenantSource = "claim" | "resolver" | {
3388
- readonly profileColumn: string;
3389
- readonly key?: string;
3390
- };
3391
- /**
3392
- * URL tenancy: the tenant comes from the request (a slug), not a stored
3393
- * setting.
3394
- */
3395
- declare const DEFAULT_ACTIVE_TENANT: ActiveTenantSource;
3396
- /**
3397
- * The access contract every module checks permissions through: `can(scope, id,
3398
- * permission)`, `tenant_ids_with(permission)`, `is_platform(permission)` and
3399
- * `can_user(user, scope, id, permission)`.
3400
- */
3401
- /**
3402
- * A table whose row says whether a tenant or a user is active. Needs
3403
- * `disabledAt`, `status` with `active`, or both.
3404
- */
3405
- interface DisabledRow {
3406
- /** `schema.table`. */
3407
- readonly table: string;
3408
- /** The column holding the tenant id or the user id. */
3409
- readonly id: string;
3410
- /** A nullable timestamp column; a row with a value is disabled. */
3411
- readonly disabledAt?: string;
3412
- /** A status column; only a row whose value is in `active` is active. */
3413
- readonly status?: string;
3414
- readonly active?: readonly string[];
3415
- }
3416
- interface AccessBlockConfig<Options extends object = Readonly<Record<string, unknown>>, Names extends BlockSqlNameSet = AnyModuleNames> extends Omit<BlockConfig<Options, Names>, "functions"> {
3417
- /**
3418
- * `roles`: a fixed role list from `roles` (the default without
3419
- * `authorization`; with it, `provider` is the default). `catalog`: role,
3420
- * permission and override tables (`tables.roles`, `permissions`,
3421
- * `rolePermissions`, `overrides`, `platformAssignments`). `provider`: the
3422
- * functions of the config's `authorization` provider. `custom`: expression
3423
- * templates in `functions`.
3424
- */
3425
- readonly model?: "roles" | "catalog" | "provider" | "custom";
3426
- /**
3427
- * `roles` model: role name to permission keys. `*` grants everything and
3428
- * `prefix.*` a prefix. Defaults to owner, admin, member and viewer.
3429
- */
3430
- readonly roles?: Readonly<Record<string, readonly string[]>>;
3431
- /**
3432
- * `custom` model: SQL expressions with `{scope}`, `{id}`, `{permission}` and
3433
- * `{user}` placeholders, e.g. `{ can:
3434
- * 'public.authorize_scope({scope}::public.scope_type, {id}, {permission})'
3435
- * }`.
3436
- */
3437
- readonly functions?: {
3438
- readonly can?: string;
3439
- readonly tenantIdsWith?: string;
3440
- readonly isPlatform?: string;
3441
- readonly canUser?: string;
3442
- /**
3443
- * `{tenant}` and `{role}`: whether the caller may assign the role. Required
3444
- * by the `custom` model. The `provider` model defaults to the provider's
3445
- * `canAssign`; without either, only the service role assigns roles unless
3446
- * the `tenant` module is installed, and doctor BS411 warns.
3447
- */
3448
- readonly canAssign?: string;
3449
- /**
3450
- * `{user}`, `{tenant}` and `{role}`: whether that user may assign the role,
3451
- * for SQL that acts later for a stored user (an invitation accept checking
3452
- * the inviter again), as `can_assign_as`. The `provider` model defaults to
3453
- * the provider's `canAssignFor`.
3454
- */
3455
- readonly canAssignFor?: string;
3456
- /**
3457
- * `{permission}` and `{tenant}`: the user ids that hold the permission in
3458
- * the tenant, for the `custom` model's notification audiences.
3459
- */
3460
- readonly holdersOf?: string;
3461
- /** `{user}`: the permission claim for the access token hook. */
3462
- readonly permissionClaims?: string;
3463
- };
3464
- /**
3465
- * `roles` model: the JWT claim holding the caller's platform permission keys
3466
- * (an array). Defaults to `platform_permissions`.
3467
- */
3468
- readonly platformClaim?: string;
3469
- /**
3470
- * OAuth scope to the permission keys it grants a delegated token (a
3471
- * `client_id`, or an `act` chain that is not a support or impersonation
3472
- * level). The access functions refuse every key the token's scopes don't map
3473
- * to, whatever the user holds. A scope without an entry grants the key with
3474
- * its own name; map a scope to `["*"]` to grant everything. Merged over
3475
- * `authorization.delegation.scopes`.
3476
- */
3477
- readonly scopes?: Readonly<Record<string, readonly string[]>>;
3478
- /**
3479
- * What disables a tenant or a user. A string is a column that disables when
3480
- * set, as `schema.table.column`, keyed by the table's `id` (tenant) or the
3481
- * column named in `userKey` (user). An object is an active row: only a row
3482
- * whose `disabledAt` is null and whose `status` is in `active` is active, and
3483
- * a missing row counts as disabled. Disabled tenants and users get no
3484
- * permissions. Under the `provider` model both default to the provider's
3485
- * `suspension`.
3486
- */
3487
- readonly disabled?: {
3488
- readonly tenant?: string | DisabledRow;
3489
- readonly user?: string | DisabledRow;
3490
- readonly userKey?: string;
3491
- };
3492
- readonly activeTenant?: ActiveTenantSource;
3493
- }
3494
- /** A block name, a key of the block options registry. */
3495
- type BlockName = Extract<keyof BlockOptionsRegistry, string>;
3496
- /** One block's config, with `options` and names typed from the block. */
3497
- type BlockConfigOf<M extends BlockName> = M extends "permissions" ? AccessBlockConfig<BlockOptionsRegistry[M], NamesOf<M>> : BlockConfig<BlockOptionsRegistry[M], NamesOf<M>>;
3498
- /**
3499
- * An instance under its own key: the block it names in `block`, checked by
3500
- * `defineConfig` against that block's options and names.
3501
- */
3502
- interface NamedInstance extends InstanceKeys {
3503
- readonly block?: BlockName;
3504
- readonly [key: string]: unknown;
3505
- }
3506
- /**
3507
- * `blocks` in the config, keyed by instance. A key that is a block name
3508
- * installs that block, with `options` typed from its manifest's options schema;
3509
- * any other key names an instance and sets `block`.
3510
- */
3511
- type BlocksConfig = { readonly [M in BlockName]?: BlockConfigOf<M>; } & {
3512
- readonly [instance: string]: NamedInstance | undefined;
3513
- };
3514
- /**
3515
- * `blocks` keyed by any module name, as the resolved config and the SQL
3516
- * renderer read it.
3517
- */
3518
- interface AnyBlocksConfig {
3519
- readonly permissions?: AccessBlockConfig;
3520
- /**
3521
- * `AccessBlockConfig` is listed so a `permissions` entry fits the index
3522
- * signature.
3523
- */
3524
- readonly [module: string]: BlockConfig | AccessBlockConfig | undefined;
3525
- }
3526
- /**
3527
- * The tenant's new singular name (`blocks.memberships.names.organization`), or
3528
- * `undefined` while it is `organization`. `blocks` may be the config's list of
3529
- * block names, which renames nothing.
3530
- */
3531
- declare function tenantNameOf(blocks: AnyBlocksConfig | readonly string[] | undefined): string | undefined;
3532
- /** A module's config with defaults applied. */
3533
- interface ResolvedBlock {
3534
- readonly mode: BlockMode;
3535
- readonly schema: string;
3536
- readonly tables: Readonly<Record<string, string | null>>;
3537
- readonly columns: Readonly<Record<string, Readonly<Record<string, string | null>>>>;
3538
- /** `values`, unchecked; the module context checks it against its tables. */
3539
- readonly values?: Readonly<Record<string, unknown>>;
3540
- readonly idType?: string;
3541
- readonly scope?: BlockScope;
3542
- /** `ownTablePolicies`, with its default. */
3543
- readonly ownTablePolicies: OwnTablePolicies;
3544
- readonly functions: Readonly<Record<string, string>>;
3545
- readonly permissions: Readonly<Record<string, string>>;
3546
- readonly options: Readonly<Record<string, unknown>>;
3547
- readonly hooks: {
3548
- readonly schema: string;
3549
- readonly functions: Readonly<Record<string, string>>;
3550
- };
3551
- readonly events: boolean;
3552
- readonly audit: boolean;
3553
- readonly api?: {
3554
- readonly schema: string;
3555
- readonly functions?: readonly string[];
3556
- };
3557
- }
3558
- declare function resolveBlock(config?: BlockConfig): ResolvedBlock;
3559
- //#endregion
3560
- //#region src/config/authorization.d.ts
3561
- /**
3562
- * SQL expression templates the SQL modules and the access policies call.
3563
- * `{permission}` is a text expression (a literal or a parameter), `{user}` a
3564
- * uuid expression, `{tenant}` an expression of the tenant id type, `{role}` a
3565
- * text expression and `{roles}` a `text[]` of the roles being assigned
3566
- * (`array[{role}]` for one role, the whole set with
3567
- * `blocks.memberships.options.roles.many`). `{scope}` is the scope's name
3568
- * unquoted, so it can be part of a function name
3569
- * (`app.ids_{scope}({permission})`); write `'{scope}'` to pass it as text.
3570
- */
3571
- interface AuthorizationFunctions {
3572
- /**
3573
- * The ids of the `{scope}` instances where the caller holds `{permission}`,
3574
- * as a set: it is used as `select t.id::text from <template> as t(id)`.
3575
- */
3576
- readonly idsWith: string;
3577
- /** Whether the caller holds `{permission}` platform-wide. */
3578
- readonly isPlatform: string;
3579
- /** `idsWith` for `{user}`, so `can_user` answers for another user. */
3580
- readonly idsWithFor?: string;
3581
- /** `isPlatform` for `{user}`. */
3582
- readonly isPlatformFor?: string;
3583
- /** The ids of the `{scope}` instances the caller is a member of, as a set. */
3584
- readonly memberIds?: string;
3585
- /**
3586
- * `memberIds` for `{user}`, which the access token hook calls as
3587
- * `supabase_auth_admin`.
3588
- */
3589
- readonly memberIdsFor?: string;
3590
- /**
3591
- * The team ids `{user}` belongs to, as a set of the team id type: it is used
3592
- * as `select t.id from <template> as t(id)`. Under the provider model the
3593
- * teams module's `team_ids_of()`, and the team sharing in `saved-views` and
3594
- * `collections`, call it instead of reading `team_members`.
3595
- */
3596
- readonly teamIdsOf?: string;
3597
- /**
3598
- * Whether the caller may assign `{role}` (or every one of `{roles}`) in
3599
- * `{tenant}`.
3600
- */
3601
- readonly canAssign?: string;
3602
- /**
3603
- * Whether `{user}` may assign `{role}` (or every one of `{roles}`) in
3604
- * `{tenant}`.
3605
- */
3606
- readonly canAssignFor?: string;
3607
- /**
3608
- * The permission keys `{user}` holds in `{tenant}`, as a `text[]`. It fills
3609
- * `member_permissions` and the `permissions` claim; without it both are
3610
- * empty.
3611
- */
3612
- readonly permissionsFor?: string;
3613
- /**
3614
- * Whether the caller may decide the tool call `{tool}` (text) waits on in
3615
- * `{tenant}`. Without it only the chat's owner and the service role decide.
3616
- *
3617
- * @deprecated Use `isApprover`, which every module that waits for an
3618
- * approval reads. `canApprove` is read for tool calls only when
3619
- * `isApprover` is unset.
3620
- */
3621
- readonly canApprove?: string;
3622
- /**
3623
- * Whether the caller may approve the request `{subject}` (text) of kind
3624
- * `{kind}` (a text literal: `'ai-tool'` with the tool name as `{subject}`,
3625
- * `'support-session'` with the request id, or the app's own kind) in
3626
- * `{tenant}`. `{requester}` is the uuid of the user who asked (the approval's
3627
- * `requested_by`, the support admin, the chat's owner), or `null`; a provider
3628
- * that resolves out-of-office covers reads it to refuse a cover by the
3629
- * requester's own delegator. It replaces each module's own eligibility check;
3630
- * the requester is refused before it runs. Without it a module falls back to
3631
- * its default approver (the chat's owner, a platform permission).
3632
- */
3633
- readonly isApprover?: string;
3634
- /**
3635
- * The user ids that hold `{permission}` on `{tenant}`, as a set: it is used
3636
- * as `select u from <template> as t(u)`. A notification's `permission`
3637
- * audience calls it. Without it, naming `permission` is refused.
3638
- */
3639
- readonly holdersOf?: string;
3640
- /**
3641
- * Whether the caller's session may write. No placeholders. Write functions
3642
- * and write policies call it instead of the built-in act check.
3643
- */
3644
- readonly actorMayWrite?: string;
3645
- /**
3646
- * Whether the caller holds `{permission}` on the instance `{id}` (text) of
3647
- * `{resource}` in `{tenant}`, at `{scope}`. A realtime topic that declares a
3648
- * `permission` calls it for the instance in its topic name.
3649
- */
3650
- readonly permitted?: string;
3651
- /**
3652
- * The ids of the rows of `{resource}` the caller holds `{permission}` on, as
3653
- * a set of text: it is used as `select r.id from <template> as r(id)`.
3654
- * `{resource}` is a resource name as the provider spells it in SQL (such as
3655
- * `file_node`), unquoted, so it can be part of a function name; `{ids}` is a
3656
- * `text[]` of the candidate ids, which a provider may use to limit the work.
3657
- * `can_subject` calls it for a `config.subjects.<type>.permissions.<action>`
3658
- * entry with `rows`.
3659
- */
3660
- readonly rowsWith?: string;
3661
- /**
3662
- * `rowsWith` for `{user}`, so `can_subject_for` answers per-row grants for
3663
- * another user. Without it those grants count for the caller only.
3664
- */
3665
- readonly rowsWithFor?: string;
3666
- /**
3667
- * The records the caller may reach as a guest for `{action}` (`read`,
3668
- * `comment` or `upload`), as a set of `(tenant text, subject_type text,
3669
- * subject_id text)`: it is used as `select g.tenant, g.subject_type,
3670
- * g.subject_id from <template> as g(tenant, subject_type, subject_id)`.
3671
- * `ctx.scope.guest` calls it, so comments, attachments, invoices and bookings
3672
- * let a provider's external users in (ADR 0070). With the `guests` block
3673
- * installed its grants are added to these.
3674
- */
3675
- readonly portalSubjects?: string;
3676
- /**
3677
- * The parties the caller acts for as a guest, as a set of `(tenant text,
3678
- * party_type text, party_id text)`. No placeholders. `ctx.scope.guestParty`
3679
- * calls it for portal reads such as a customer's own invoices.
3680
- */
3681
- readonly portalParties?: string;
3682
- }
3683
- /** One scope the provider decides permissions in, such as `organization`. */
3684
- interface AuthorizationScope {
3685
- /** Lower case letters, digits and `_`, starting with a letter. */
3686
- readonly name: string;
3687
- /**
3688
- * The Postgres type of the scope's ids: `uuid`, `text`, `bigint` or
3689
- * `integer`.
3690
- */
3691
- readonly idType?: string;
3692
- /** The scope this one sits in; the root scope has none. */
3693
- readonly parent?: string;
3694
- }
3695
- /** A function the templates call, which must exist and be executable by `role`. */
3696
- interface AuthorizationRequirement {
3697
- /** `schema.name`. */
3698
- readonly function: string;
3699
- /** The argument types, such as `text` or `uuid, text`. */
3700
- readonly args?: string;
3701
- readonly role: string;
3702
- }
3703
- /** A permission key the provider defines. */
3704
- interface AuthorizationPermission {
3705
- readonly key: string;
3706
- /**
3707
- * `true` when the SQL functions answer for the key completely. A key with row
3708
- * conditions they don't check is `false`, and policies refuse it. Unset means
3709
- * unknown, which counts as `false`.
3710
- */
3711
- readonly sqlComplete?: boolean;
3712
- /** The scopes it can be granted at. */
3713
- readonly scopes?: readonly string[];
3714
- }
3715
- /**
3716
- * One named operation: what workflow builder nodes, MCP tools, AI tools and
3717
- * inbox commands with that name need. The provider supplies the table;
3718
- * `blocks.<module>.permissions` still renames a module's own keys.
3719
- */
3720
- interface AuthorizationOperation {
3721
- /** The permission key the operation needs. */
3722
- readonly permission: string;
3723
- readonly meta?: {
3724
- /** `low`, `medium` or `high`; a `high` operation can ask for approval. */
3725
- readonly risk?: "low" | "medium" | "high";
3726
- /** What it changes: `read`, `write`, `delete`, `external`. */
3727
- readonly effects?: readonly ("read" | "write" | "delete" | "external")[];
3728
- readonly title?: string;
3729
- };
3730
- }
3731
- /** A table of memberships the provider reads. */
3732
- interface AuthorizationMembership {
3733
- /** `schema.table`. */
3734
- readonly table: string;
3735
- readonly userColumn: string;
3736
- /** The scope column, or the scope every row is in. */
3737
- readonly scope: {
3738
- readonly column: string;
3739
- } | {
3740
- readonly value: string;
3741
- };
3742
- readonly idColumn: string;
3743
- /**
3744
- * `schema.table` of the membership's role set, one row per `(scope id, user,
3745
- * role)`, when a member can hold several roles. better-supabase's own is
3746
- * `better_supabase.membership_roles`
3747
- * (`blocks.memberships.options.roles.many`).
3748
- */
3749
- readonly rolesTable?: string;
3750
- }
3751
- /** A membership table whose role column points into a roles table. */
3752
- interface AuthorizationRoleSource {
3753
- /** `schema.table` of the memberships. */
3754
- readonly table: string;
3755
- readonly role: {
3756
- readonly column: string;
3757
- readonly through: {
3758
- /** `schema.table` of the roles. */
3759
- readonly table: string;
3760
- readonly id: string;
3761
- readonly column: string;
3762
- };
3763
- };
3764
- }
3765
- /** The access token hook the provider generates. */
3766
- interface AuthorizationTokenHook {
3767
- /** `schema.name`. */
3768
- readonly function: string;
3769
- /** The claim it writes the active tenant id to. */
3770
- readonly tenantClaim?: string;
3771
- /**
3772
- * Where it reads the active organization from: the `auth.organization.claim`
3773
- * key in `app_metadata` (`"claim"`), a profile column, or the request
3774
- * (`"resolver"`). Doctor BS409 warns when `switch_organization` writes it
3775
- * somewhere else (`blocks.permissions.activeTenant`).
3776
- */
3777
- readonly activeOrganizationFrom?: ActiveTenantSource;
3778
- /** Claims it writes itself, which a second writer would contradict. */
3779
- readonly ownedClaims: readonly string[];
3780
- /**
3781
- * Claims it fills from other functions, such as `features` from
3782
- * `better_supabase.feature_claims`.
3783
- */
3784
- readonly registeredClaims?: readonly {
3785
- readonly name: string;
3786
- /** `schema.name`. */
3787
- readonly function: string;
3788
- }[];
3789
- /** A byte budget over some claims, which doctor `--as` measures (BS405). */
3790
- readonly budget?: {
3791
- readonly claims: readonly string[];
3792
- readonly bytes: number;
3793
- /**
3794
- * A claim the hook sets to `true` when it dropped entries to stay within
3795
- * the budget.
3796
- */
3797
- readonly truncatedClaim?: string;
3798
- };
3799
- /**
3800
- * Comment lines the provider's generated files contain, so doctor recognises
3801
- * them.
3802
- */
3803
- readonly markers?: {
3804
- /** In the file that defines the hook. */
3805
- readonly hook?: string;
3806
- /** In the migration that grants the hook's functions. */
3807
- readonly grants?: string;
3808
- };
3809
- /** The command that writes the hook's grants, for BS404. */
3810
- readonly grantsCommand?: string;
3811
- }
3812
- /**
3813
- * An authorization system the SQL modules, the policies and doctor delegate to.
3814
- * It is plain data, usually built from the provider's own output files.
3815
- */
3816
- interface AuthorizationProvider {
3817
- readonly apiVersion: 1;
3818
- /** The provider's name, for messages. */
3819
- readonly name: string;
3820
- readonly scopes: readonly AuthorizationScope[];
3821
- /** The scope tenants are. */
3822
- readonly tenantScope: string;
3823
- readonly functions: AuthorizationFunctions;
3824
- readonly requires?: readonly AuthorizationRequirement[];
3825
- readonly permissions?: readonly AuthorizationPermission[];
3826
- /**
3827
- * Operations by name (`workflow.node.http`, `mcp.tool.search_posts`,
3828
- * `ai.tool.send_email`, `inbox.command.assign`). A module looks an operation
3829
- * up here first and uses its own default permission otherwise.
3830
- */
3831
- readonly operations?: Readonly<Record<string, AuthorizationOperation>>;
3832
- readonly memberships?: readonly AuthorizationMembership[];
3833
- /** Rows that say whether a user or a tenant is active. */
3834
- readonly suspension?: {
3835
- readonly user?: DisabledRow;
3836
- readonly tenant?: DisabledRow;
3837
- };
3838
- readonly roleSources?: readonly AuthorizationRoleSource[];
3839
- /** `schema.table.column` of every column that decides access (BS213). */
3840
- readonly decidingColumns?: readonly string[];
3841
- readonly tokenHook?: AuthorizationTokenHook;
3842
- /** What a delegated token (an OAuth client or agent) may use. */
3843
- readonly delegation?: {
3844
- /**
3845
- * OAuth scope to the permission keys it grants (RFC 9396 details stay with
3846
- * the app). `blocks.permissions.scopes` is merged over it.
3847
- */
3848
- readonly scopes?: Readonly<Record<string, readonly string[]>>;
3849
- };
3850
- /** How `canApprove` decisions are made. */
3851
- readonly approvals?: {
3852
- /** The user who asked for the tool call can't approve it. Default `false`. */
3853
- readonly distinctApprover?: boolean;
3854
- };
3855
- /** What the provider found wrong while building this, for doctor. */
3856
- readonly problems?: readonly string[];
3857
- }
3858
- /**
3859
- * The error for a provider built for another API version, or `undefined` for
3860
- * version 1.
3861
- */
3862
- declare function providerApiProblem(provider: {
3863
- readonly name?: unknown;
3864
- readonly apiVersion?: unknown;
3865
- }): string | undefined;
3866
- //#endregion
3867
- 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 };