better-supabase 0.13.0 → 0.15.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 (1581) hide show
  1. package/README.md +67 -345
  2. package/dist/access-sql-B-MkVARa.js +207 -0
  3. package/dist/actor-go7p9-CJ.js +150 -0
  4. package/dist/adapter-B0b6MXYS.js +2299 -0
  5. package/dist/agents-5n8DWRfP.d.ts +117 -0
  6. package/dist/ai-cache-Cu8j6aQQ.js +87 -0
  7. package/dist/ai-cache-DyHohbFP.d.ts +82 -0
  8. package/dist/ai-chat-D1GuRnke.d.ts +619 -0
  9. package/dist/ai-files-CgFCRsnU.js +339 -0
  10. package/dist/ai-schedules-CAquecT_.d.ts +166 -0
  11. package/dist/ai-sdk/agents/index.d.ts +6 -6
  12. package/dist/ai-sdk/agents/index.js +4 -4
  13. package/dist/ai-sdk/batches/index.d.ts +5 -5
  14. package/dist/ai-sdk/batches/index.js +4 -4
  15. package/dist/ai-sdk/cache/index.d.ts +3 -3
  16. package/dist/ai-sdk/cache/index.js +2 -2
  17. package/dist/ai-sdk/chat/index.d.ts +1 -1
  18. package/dist/ai-sdk/chat/index.js +5 -5
  19. package/dist/ai-sdk/embeddings/index.d.ts +2 -2
  20. package/dist/ai-sdk/embeddings/index.js +1 -1
  21. package/dist/ai-sdk/files/index.d.ts +2 -2
  22. package/dist/ai-sdk/files/index.js +5 -5
  23. package/dist/ai-sdk/index.d.ts +30 -9
  24. package/dist/ai-sdk/index.js +42 -4
  25. package/dist/ai-sdk/mcp/index.d.ts +4 -4
  26. package/dist/ai-sdk/mcp/index.js +7 -7
  27. package/dist/ai-sdk/memory/index.d.ts +3 -3
  28. package/dist/ai-sdk/memory/index.js +2 -2
  29. package/dist/ai-sdk/workflow/index.d.ts +4 -4
  30. package/dist/ai-sdk/workflow/index.js +7 -7
  31. package/dist/anchors-7F34QyHa.d.ts +40 -0
  32. package/dist/api-DxAPqMrE.d.ts +495 -0
  33. package/dist/api-keys-D5k63K6y.d.ts +213 -0
  34. package/dist/app-tables-CF2DD-Mu.d.ts +28 -0
  35. package/dist/app-tables-D29Rahtg.js +16350 -0
  36. package/dist/approvals-Crutd4-o.d.ts +129 -0
  37. package/dist/assistant-CD_h8Vxx.d.ts +157 -0
  38. package/dist/astro/index.d.ts +19 -16
  39. package/dist/astro/index.js +8 -8
  40. package/dist/attachments-aJYgdYtB.js +369 -0
  41. package/dist/attributes-Bzf51_nc.js +47 -0
  42. package/dist/auth-module-BEFESDC4.js +44 -0
  43. package/dist/auth-reply-tlXB2FQ9.js +31 -0
  44. package/dist/authorization-HZdJCaVm.d.ts +3595 -0
  45. package/dist/authorization-hooks-Cs1vP_ej.d.ts +217 -0
  46. package/dist/authorizer-B6X09otb.d.ts +118 -0
  47. package/dist/authorizer-BGhXaDmo.js +172 -0
  48. package/dist/automation-D41DXyvT.js +75 -0
  49. package/dist/automations-BYsz43AG.js +314 -0
  50. package/dist/automations-Bc2ue55V.js +26 -0
  51. package/dist/automations-CD1XlL2W.js +33 -0
  52. package/dist/automations-CIwRq7zm.js +30 -0
  53. package/dist/availability-vguUvEK2.d.ts +226 -0
  54. package/dist/better-result/index.d.ts +20 -30
  55. package/dist/better-result/index.js +2 -2
  56. package/dist/bind-CrMBwrPN.d.ts +104 -0
  57. package/dist/block-authors-BDV3y1SP.js +14 -0
  58. package/dist/block-authors-DzXLUiIq.d.ts +12 -0
  59. package/dist/block-env-B_uEM2xz.d.ts +32 -0
  60. package/dist/block-event-listener-Bu6G0TFH.js +16 -0
  61. package/dist/block-events-pBXPzwnW.js +83 -0
  62. package/dist/block-fields-BE7pInWZ.d.ts +58 -0
  63. package/dist/block-fields-DE_FgpOU.js +139 -0
  64. package/dist/block-helpers-CRpAHrp_.d.ts +62 -0
  65. package/dist/block-helpers-CtBdjgO4.js +353 -0
  66. package/dist/block-hooks-BfxX3682.js +130 -0
  67. package/dist/block-hooks-DZN2w69m.d.ts +117 -0
  68. package/dist/block-method-C9hWdHom.js +21 -0
  69. package/dist/block-method-CiVa2G-J.d.ts +14 -0
  70. package/dist/block-subjects-BhDKK_j7.js +55 -0
  71. package/dist/block-subjects-CphkQPxp.d.ts +6 -0
  72. package/dist/block-tenant-DHp7subc.js +14 -0
  73. package/dist/block-transport-DWZSJrwN.d.ts +69 -0
  74. package/dist/blocks/access-requests/index.d.ts +8 -8
  75. package/dist/blocks/access-requests/index.js +6 -7
  76. package/dist/blocks/activities/index.d.ts +215 -0
  77. package/dist/blocks/activities/index.js +414 -0
  78. package/dist/blocks/agents/index.d.ts +4 -4
  79. package/dist/blocks/agents/index.js +5 -6
  80. package/dist/blocks/ai-cache/index.d.ts +3 -3
  81. package/dist/blocks/ai-cache/index.js +3 -3
  82. package/dist/blocks/ai-chat/index.d.ts +119 -6
  83. package/dist/blocks/ai-chat/index.js +1067 -5
  84. package/dist/blocks/ai-files/index.d.ts +5 -5
  85. package/dist/blocks/ai-files/index.js +3 -3
  86. package/dist/blocks/ai-keys/index.d.ts +22 -0
  87. package/dist/blocks/ai-keys/index.js +236 -0
  88. package/dist/blocks/ai-schedules/index.d.ts +10 -0
  89. package/dist/blocks/ai-schedules/index.js +258 -0
  90. package/dist/blocks/announcements/index.d.ts +134 -5
  91. package/dist/blocks/announcements/index.js +179 -4
  92. package/dist/blocks/api-keys/index.d.ts +69 -8
  93. package/dist/blocks/api-keys/index.js +417 -7
  94. package/dist/blocks/approvals/index.d.ts +4 -4
  95. package/dist/blocks/approvals/index.js +25 -24
  96. package/dist/blocks/assets/index.d.ts +281 -0
  97. package/dist/blocks/assets/index.js +288 -0
  98. package/dist/blocks/assignment/index.d.ts +124 -0
  99. package/dist/blocks/assignment/index.js +141 -0
  100. package/dist/blocks/attachments/index.d.ts +130 -6
  101. package/dist/blocks/attachments/index.js +328 -7
  102. package/dist/blocks/audit/index.d.ts +476 -7
  103. package/dist/blocks/audit/index.js +863 -7
  104. package/dist/blocks/automations/index.d.ts +524 -0
  105. package/dist/blocks/automations/index.js +553 -0
  106. package/dist/blocks/billable-time/index.d.ts +201 -0
  107. package/dist/blocks/billable-time/index.js +260 -0
  108. package/dist/blocks/billing/index.d.ts +146 -16
  109. package/dist/blocks/billing/index.js +231 -41
  110. package/dist/blocks/bookings/index.d.ts +54 -5
  111. package/dist/blocks/bookings/index.js +423 -6
  112. package/dist/blocks/bulk/index.d.ts +6 -6
  113. package/dist/blocks/bulk/index.js +4 -4
  114. package/dist/blocks/calendar/index.d.ts +186 -5
  115. package/dist/blocks/calendar/index.js +1180 -4
  116. package/dist/blocks/catalog/index.d.ts +134 -28
  117. package/dist/blocks/catalog/index.js +183 -54
  118. package/dist/blocks/channels/index.d.ts +113 -0
  119. package/dist/blocks/channels/index.js +189 -0
  120. package/dist/blocks/collections/index.d.ts +90 -17
  121. package/dist/blocks/collections/index.js +85 -10
  122. package/dist/blocks/comments/index.d.ts +263 -45
  123. package/dist/blocks/comments/index.js +360 -16
  124. package/dist/blocks/compliance/index.d.ts +325 -0
  125. package/dist/blocks/compliance/index.js +410 -0
  126. package/dist/blocks/connectors/index.d.ts +4 -4
  127. package/dist/blocks/connectors/index.js +8 -9
  128. package/dist/blocks/contacts/index.d.ts +182 -0
  129. package/dist/blocks/contacts/index.js +358 -0
  130. package/dist/blocks/content/index.d.ts +188 -0
  131. package/dist/blocks/content/index.js +219 -0
  132. package/dist/blocks/contracts/index.d.ts +239 -0
  133. package/dist/blocks/contracts/index.js +361 -0
  134. package/dist/blocks/courses/index.d.ts +341 -0
  135. package/dist/blocks/courses/index.js +445 -0
  136. package/dist/blocks/created-by/index.d.ts +27 -0
  137. package/dist/blocks/created-by/index.js +14 -0
  138. package/dist/blocks/custom-fields/index.d.ts +44 -13
  139. package/dist/blocks/custom-fields/index.js +25 -20
  140. package/dist/blocks/data-lifecycle/index.d.ts +9 -9
  141. package/dist/blocks/data-lifecycle/index.js +7 -8
  142. package/dist/blocks/deals/index.d.ts +20 -40
  143. package/dist/blocks/deals/index.js +156 -66
  144. package/dist/blocks/dispatch/index.d.ts +325 -0
  145. package/dist/blocks/dispatch/index.js +406 -0
  146. package/dist/blocks/documents/index.d.ts +8 -5
  147. package/dist/blocks/documents/index.js +66 -7
  148. package/dist/blocks/domains/index.d.ts +7 -7
  149. package/dist/blocks/domains/index.js +6 -7
  150. package/dist/blocks/donations/index.d.ts +350 -0
  151. package/dist/blocks/donations/index.js +610 -0
  152. package/dist/blocks/drive/index.d.ts +56 -11
  153. package/dist/blocks/drive/index.js +62 -11
  154. package/dist/blocks/employees/index.d.ts +41 -23
  155. package/dist/blocks/employees/index.js +125 -33
  156. package/dist/blocks/enrichment/index.d.ts +176 -0
  157. package/dist/blocks/enrichment/index.js +251 -0
  158. package/dist/blocks/enrollments/index.d.ts +182 -0
  159. package/dist/blocks/enrollments/index.js +173 -0
  160. package/dist/blocks/entitlements/index.d.ts +48 -8
  161. package/dist/blocks/entitlements/index.js +62 -4
  162. package/dist/blocks/expenses/index.d.ts +214 -0
  163. package/dist/blocks/expenses/index.js +279 -0
  164. package/dist/blocks/field-history/index.d.ts +63 -0
  165. package/dist/blocks/field-history/index.js +46 -0
  166. package/dist/blocks/flags/index.d.ts +17 -13
  167. package/dist/blocks/flags/index.js +7 -8
  168. package/dist/blocks/forecasts/index.d.ts +119 -0
  169. package/dist/blocks/forecasts/index.js +129 -0
  170. package/dist/blocks/forms/index.d.ts +208 -140
  171. package/dist/blocks/forms/index.js +488 -149
  172. package/dist/blocks/goals/index.d.ts +82 -0
  173. package/dist/blocks/goals/index.js +72 -0
  174. package/dist/blocks/guests/index.d.ts +198 -0
  175. package/dist/blocks/guests/index.js +224 -0
  176. package/dist/blocks/hiring/index.d.ts +20 -10
  177. package/dist/blocks/hiring/index.js +10 -10
  178. package/dist/blocks/identities/index.d.ts +7 -7
  179. package/dist/blocks/identities/index.js +4 -5
  180. package/dist/blocks/imports/index.d.ts +8 -8
  181. package/dist/blocks/imports/index.js +6 -6
  182. package/dist/blocks/inbox/index.d.ts +138 -6
  183. package/dist/blocks/inbox/index.js +383 -85
  184. package/dist/blocks/incidents/index.d.ts +337 -0
  185. package/dist/blocks/incidents/index.js +477 -0
  186. package/dist/blocks/index.d.ts +145 -11
  187. package/dist/blocks/index.js +184 -187
  188. package/dist/blocks/inventory/index.d.ts +10 -10
  189. package/dist/blocks/inventory/index.js +6 -7
  190. package/dist/blocks/invoices/index.d.ts +11 -11
  191. package/dist/blocks/invoices/index.js +8 -9
  192. package/dist/blocks/knowledge/index.d.ts +3 -3
  193. package/dist/blocks/knowledge/index.js +4 -4
  194. package/dist/blocks/lead-scoring/index.d.ts +50 -0
  195. package/dist/blocks/lead-scoring/index.js +87 -0
  196. package/dist/blocks/leases/index.d.ts +221 -0
  197. package/dist/blocks/leases/index.js +244 -0
  198. package/dist/blocks/leave/index.d.ts +8 -8
  199. package/dist/blocks/leave/index.js +5 -6
  200. package/dist/blocks/ledger/index.d.ts +279 -0
  201. package/dist/blocks/ledger/index.js +229 -0
  202. package/dist/blocks/mail-sync/index.d.ts +37 -0
  203. package/dist/blocks/mail-sync/index.js +906 -0
  204. package/dist/blocks/memberships/index.d.ts +67 -0
  205. package/dist/blocks/memberships/index.js +14 -0
  206. package/dist/blocks/memory/index.d.ts +4 -4
  207. package/dist/blocks/memory/index.js +8 -9
  208. package/dist/blocks/messaging/index.d.ts +186 -0
  209. package/dist/blocks/messaging/index.js +619 -0
  210. package/dist/blocks/metrics/index.d.ts +7 -7
  211. package/dist/blocks/metrics/index.js +6 -7
  212. package/dist/blocks/mfa/index.d.ts +145 -3
  213. package/dist/blocks/mfa/index.js +211 -2
  214. package/dist/blocks/moderation/index.d.ts +203 -0
  215. package/dist/blocks/moderation/index.js +199 -0
  216. package/dist/blocks/notifications/index.d.ts +67 -15
  217. package/dist/blocks/notifications/index.js +64 -16
  218. package/dist/blocks/numbering/index.d.ts +45 -0
  219. package/dist/blocks/numbering/index.js +49 -0
  220. package/dist/blocks/oauth-server/index.d.ts +6 -6
  221. package/dist/blocks/oauth-server/index.js +6 -7
  222. package/dist/blocks/onboarding/index.d.ts +112 -4
  223. package/dist/blocks/onboarding/index.js +107 -4
  224. package/dist/blocks/orders/index.d.ts +152 -13
  225. package/dist/blocks/orders/index.js +188 -18
  226. package/dist/blocks/organizations/index.d.ts +452 -6
  227. package/dist/blocks/organizations/index.js +689 -5
  228. package/dist/blocks/outbox/index.d.ts +4 -4
  229. package/dist/blocks/outbox/index.js +20 -8
  230. package/dist/blocks/passes/index.d.ts +306 -0
  231. package/dist/blocks/passes/index.js +411 -0
  232. package/dist/blocks/permissions/index.d.ts +92 -0
  233. package/dist/blocks/permissions/index.js +127 -0
  234. package/dist/blocks/pipelines/index.d.ts +15 -15
  235. package/dist/blocks/pipelines/index.js +12 -13
  236. package/dist/blocks/posts/index.d.ts +190 -0
  237. package/dist/blocks/posts/index.js +230 -0
  238. package/dist/blocks/profiles/index.d.ts +7 -7
  239. package/dist/blocks/profiles/index.js +5 -6
  240. package/dist/blocks/promotions/index.d.ts +9 -9
  241. package/dist/blocks/promotions/index.js +7 -8
  242. package/dist/blocks/push/index.d.ts +9 -9
  243. package/dist/blocks/push/index.js +4 -5
  244. package/dist/blocks/queue/index.d.ts +562 -0
  245. package/dist/blocks/queue/index.js +1407 -0
  246. package/dist/blocks/quotes/index.d.ts +29 -14
  247. package/dist/blocks/quotes/index.js +14 -14
  248. package/dist/blocks/rank/index.d.ts +7 -7
  249. package/dist/blocks/rank/index.js +4 -4
  250. package/dist/blocks/reactions/index.d.ts +154 -5
  251. package/dist/blocks/reactions/index.js +168 -4
  252. package/dist/blocks/relations/index.d.ts +59 -42
  253. package/dist/blocks/relations/index.js +117 -59
  254. package/dist/blocks/reminders/index.d.ts +21 -17
  255. package/dist/blocks/reminders/index.js +26 -27
  256. package/dist/blocks/reviews/index.d.ts +8 -8
  257. package/dist/blocks/reviews/index.js +6 -7
  258. package/dist/blocks/saved-views/index.d.ts +311 -4
  259. package/dist/blocks/saved-views/index.js +437 -2
  260. package/dist/blocks/scores/index.d.ts +48 -0
  261. package/dist/blocks/scores/index.js +40 -0
  262. package/dist/blocks/search/index.d.ts +168 -5
  263. package/dist/blocks/search/index.js +277 -6
  264. package/dist/blocks/security-events/index.d.ts +440 -0
  265. package/dist/blocks/security-events/index.js +885 -0
  266. package/dist/blocks/segments/index.d.ts +130 -0
  267. package/dist/blocks/segments/index.js +135 -0
  268. package/dist/blocks/sequences/index.d.ts +259 -0
  269. package/dist/blocks/sequences/index.js +376 -0
  270. package/dist/blocks/service-accounts/index.d.ts +132 -0
  271. package/dist/blocks/service-accounts/index.js +109 -0
  272. package/dist/blocks/sessions/index.d.ts +138 -3
  273. package/dist/blocks/sessions/index.js +173 -2
  274. package/dist/blocks/settings/index.d.ts +181 -5
  275. package/dist/blocks/settings/index.js +226 -4
  276. package/dist/blocks/share-links/index.d.ts +46 -19
  277. package/dist/blocks/share-links/index.js +74 -23
  278. package/dist/blocks/shipments/index.d.ts +236 -0
  279. package/dist/blocks/shipments/index.js +548 -0
  280. package/dist/blocks/signatures/index.d.ts +151 -0
  281. package/dist/blocks/signatures/index.js +149 -0
  282. package/dist/blocks/signing-keys/index.d.ts +4 -4
  283. package/dist/blocks/signing-keys/index.js +4 -165
  284. package/dist/blocks/sla/index.d.ts +37 -27
  285. package/dist/blocks/sla/index.js +48 -13
  286. package/dist/blocks/sso/index.d.ts +7 -7
  287. package/dist/blocks/sso/index.js +4 -5
  288. package/dist/blocks/state-machine/index.d.ts +14 -14
  289. package/dist/blocks/state-machine/index.js +26 -26
  290. package/dist/blocks/subjects/index.d.ts +45 -0
  291. package/dist/blocks/subjects/index.js +203 -0
  292. package/dist/blocks/tags/index.d.ts +170 -5
  293. package/dist/blocks/tags/index.js +265 -5
  294. package/dist/blocks/tasks/index.d.ts +346 -0
  295. package/dist/blocks/tasks/index.js +626 -0
  296. package/dist/blocks/teams/index.d.ts +7 -7
  297. package/dist/blocks/teams/index.js +4 -4
  298. package/dist/blocks/templates/index.d.ts +18 -18
  299. package/dist/blocks/templates/index.js +11 -12
  300. package/dist/blocks/time-tracking/index.d.ts +40 -32
  301. package/dist/blocks/time-tracking/index.js +40 -40
  302. package/dist/blocks/timeline/index.d.ts +116 -0
  303. package/dist/blocks/timeline/index.js +164 -0
  304. package/dist/blocks/trash/index.d.ts +47 -9
  305. package/dist/blocks/trash/index.js +9 -8
  306. package/dist/blocks/undo/index.d.ts +48 -5
  307. package/dist/blocks/undo/index.js +60 -4
  308. package/dist/blocks/updated-at/index.d.ts +20 -0
  309. package/dist/blocks/updated-at/index.js +14 -0
  310. package/dist/blocks/usage/index.d.ts +40 -6
  311. package/dist/blocks/usage/index.js +301 -4
  312. package/dist/blocks/vercel-marketplace/index.d.ts +7 -7
  313. package/dist/blocks/vercel-marketplace/index.js +8 -9
  314. package/dist/blocks/versions/index.d.ts +38 -19
  315. package/dist/blocks/versions/index.js +66 -19
  316. package/dist/blocks/waitlist/index.d.ts +9 -9
  317. package/dist/blocks/waitlist/index.js +5 -6
  318. package/dist/blocks/webhooks/index.d.ts +21 -21
  319. package/dist/blocks/webhooks/index.js +18 -19
  320. package/dist/blocks/workflow-editor/index.d.ts +99 -0
  321. package/dist/blocks/workflow-editor/index.js +733 -0
  322. package/dist/blocks/workflows/index.d.ts +72 -6
  323. package/dist/blocks/workflows/index.js +379 -4
  324. package/dist/bookings-D4dvGXiR.d.ts +290 -0
  325. package/dist/bucket-CiNi8sIw.d.ts +666 -0
  326. package/dist/build-BFC8nFiL.js +797 -0
  327. package/dist/build-QitPVzzO.js +2073 -0
  328. package/dist/carrier-KzeYXVrW.d.ts +169 -0
  329. package/dist/chat-sdk/index.d.ts +43 -11
  330. package/dist/chat-sdk/index.js +51 -24
  331. package/dist/claims-DTy6R6my.js +63 -0
  332. package/dist/cli/add-BgsUjCan.js +1252 -0
  333. package/dist/cli/add-DCI5JKjA.js +99 -0
  334. package/dist/cli/add-DWjlVwvP.js +1 -0
  335. package/dist/cli/args-UEwg0l-N.js +27 -0
  336. package/dist/cli/backfill-nxPbcsns.js +293 -0
  337. package/dist/cli/bin.js +1 -1
  338. package/dist/cli/blocks-BZHI8mRC.js +156 -0
  339. package/dist/cli/blocks-Cr4HGePW.js +1 -0
  340. package/dist/cli/cache-CXgR_Ahi.js +607 -0
  341. package/dist/cli/codemod-DSN7iAdg.js +2343 -0
  342. package/dist/cli/codemod-block-renames-BuSaTE_G.js +239 -0
  343. package/dist/cli/command-CQ61x6gN.js +941 -0
  344. package/dist/cli/completion-2Y3D_eNu.js +211 -0
  345. package/dist/cli/completion-BwI0_Ap5.js +30 -0
  346. package/dist/cli/completion-Dlu5AdUW.js +1 -0
  347. package/dist/cli/config-9t5ec_N7.js +1642 -0
  348. package/dist/cli/config-CBqkQjjN.js +1 -0
  349. package/dist/cli/config-CPux9Wa7.js +47 -0
  350. package/dist/cli/config-edit-CrWfk8s3.js +621 -0
  351. package/dist/cli/config-group-C8tjut39.js +391 -0
  352. package/dist/cli/content-mapper-DNs7lTu7.js +182 -0
  353. package/dist/cli/db-DrBI_HNv.js +223 -0
  354. package/dist/cli/doctor-DDrEM6S1.js +4561 -0
  355. package/dist/cli/env-BBl5L8Bf.js +143 -0
  356. package/dist/cli/env-CAU1nknN.js +1 -0
  357. package/dist/cli/files-CX71yBm8.js +1010 -0
  358. package/dist/cli/gen-MtijJQ9r.js +387 -0
  359. package/dist/cli/in-stack-diff-DQTW53Vf.js +257 -0
  360. package/dist/cli/index.d.ts +51 -5
  361. package/dist/cli/index.js +8 -8
  362. package/dist/cli/init-D-aDv9r5.js +440 -0
  363. package/dist/cli/keys-DGEpMbeB.js +106 -0
  364. package/dist/cli/live-iEeH15ck.js +341 -0
  365. package/dist/cli/mcp-BAPyaQ62.js +249 -0
  366. package/dist/cli/metadata-DVx9Zgbj.js +150 -0
  367. package/dist/cli/migration-safety-D7PhzFxm.js +928 -0
  368. package/dist/cli/module-migration-aPCckev6.js +734 -0
  369. package/dist/cli/moved-CsfDQcyk.js +254 -0
  370. package/dist/cli/orphans-BAboqyVM.js +28 -0
  371. package/dist/cli/parse-B9Iv_-Pf.js +182 -0
  372. package/dist/cli/preset-BwmIfFnh.js +101 -0
  373. package/dist/cli/print-BeWO7OJY.js +67 -0
  374. package/dist/cli/remove-B46Dmd2M.js +238 -0
  375. package/dist/cli/render-ucJmUyuM.js +2170 -0
  376. package/dist/cli/run-BXx6D1aR.js +63 -0
  377. package/dist/cli/run-CvYVAztY.js +1427 -0
  378. package/dist/cli/run-DYhLBcFW.js +702 -0
  379. package/dist/cli/seed-Cz8PcXeT.js +188 -0
  380. package/dist/cli/seed-D6XijwbR.js +1 -0
  381. package/dist/cli/shared-LZroULBe.js +151 -0
  382. package/dist/cli/skills-toUan_OV.js +121 -0
  383. package/dist/cli/snapshot-C8MVPyO8.js +729 -0
  384. package/dist/cli/source-DANaJJVc.js +320 -0
  385. package/dist/cli/source-args-IpJRJO5t.js +59 -0
  386. package/dist/cli/spec-DGVNMSSB.js +7530 -0
  387. package/dist/cli/spec-g8_G5K7o.js +1 -0
  388. package/dist/cli/stack-CWEHdO0b.js +135 -0
  389. package/dist/cli/sync-btj01bcM.js +319 -0
  390. package/dist/cli/upgrade-B596d4t8.js +403 -0
  391. package/dist/cli/upgrade-Dw3TMQzn.js +41 -0
  392. package/dist/cli/version-Du4CgONY.js +4 -0
  393. package/dist/client/index.d.ts +8 -7
  394. package/dist/client/index.js +11 -7
  395. package/dist/client/native/index.d.ts +6 -6
  396. package/dist/client/native/index.js +3 -3
  397. package/dist/client-BAEbEA7t.js +287 -0
  398. package/dist/cloud-event-CzZTJkXv.d.ts +64 -0
  399. package/dist/codecs-CMWlhHZ0.d.ts +222 -0
  400. package/dist/codecs-TylXqU_I.js +358 -0
  401. package/dist/commerce/index.d.ts +4 -3
  402. package/dist/commerce/index.js +6 -6
  403. package/dist/compiler-D3UmE7ao.d.ts +14 -0
  404. package/dist/compose-DKW0Tr3e.js +53 -0
  405. package/dist/composite-BARuBEDE.js +130 -0
  406. package/dist/composite-Dsxj7T5K.d.ts +82 -0
  407. package/dist/config/index.d.ts +6 -7
  408. package/dist/config/index.js +6 -6
  409. package/dist/config-CcehOvbz.js +1698 -0
  410. package/dist/config-DWGgUQCh.js +1108 -0
  411. package/dist/connectors-Fud4amxp.d.ts +147 -0
  412. package/dist/context-CEuTKrkz.d.ts +4129 -0
  413. package/dist/context-DBicfUNz.js +41 -0
  414. package/dist/controller-BNZKd6bJ.js +73 -0
  415. package/dist/controller-BrP0gn47.d.ts +52 -0
  416. package/dist/conversion-BAbucuXq.d.ts +86 -0
  417. package/dist/conversion-Dq1S7xzE.js +77 -0
  418. package/dist/create/index.d.ts +34 -23
  419. package/dist/create/index.js +35 -27
  420. package/dist/create/lite/index.d.ts +2 -2
  421. package/dist/create/supabase/index.d.ts +2 -2
  422. package/dist/create/supabase/index.js +2 -2
  423. package/dist/create-blocks-Bu4H5TXw.js +352 -0
  424. package/dist/credentials/index.d.ts +5 -5
  425. package/dist/credentials/index.js +6 -7
  426. package/dist/cron-CgHTKwYG.js +148 -0
  427. package/dist/cron-route-UU9i5i9J.js +24 -0
  428. package/dist/data-engine-BWoz9lED.d.ts +273 -0
  429. package/dist/data-engine-D1BkmBoR.js +173 -0
  430. package/dist/data-hooks-tgF1Ct0F.js +280 -0
  431. package/dist/db-blocks-DJGbjIPz.js +62 -0
  432. package/dist/db-exception-Lngc1W49.js +31 -0
  433. package/dist/deal-forecast-Bv52QMyX.js +39 -0
  434. package/dist/deal-forecast-LwO-Z4_C.d.ts +23 -0
  435. package/dist/define-DFBnQyYg.d.ts +1255 -0
  436. package/dist/define-DlUeKHce.js +2011 -0
  437. package/dist/define-block-BGqOO8B3.js +64 -0
  438. package/dist/define-block-BVcLQ3DF.d.ts +1657 -0
  439. package/dist/delegation--93jRsVO.js +146 -0
  440. package/dist/documents-Cup1rpjF.d.ts +152 -0
  441. package/dist/edge/index.d.ts +23 -23
  442. package/dist/edge/index.js +14 -14
  443. package/dist/elysia/index.d.ts +1 -1
  444. package/dist/elysia/index.js +1 -1
  445. package/dist/embeddings-kFbRvuic.d.ts +78 -0
  446. package/dist/embeddings-vVzseUw0.js +128 -0
  447. package/dist/ended-gUsMZVNg.d.ts +26 -0
  448. package/dist/entitlements-CJpYQXeE.d.ts +54 -0
  449. package/dist/entitlements-NZAE_vLj.js +45 -0
  450. package/dist/entity-naming-Dtyq5sKE.js +131 -0
  451. package/dist/entity-schema-BDv6w-OQ.js +39 -0
  452. package/dist/envelope-Bzu0JnY2.js +90 -0
  453. package/dist/errors-BVFgt8BZ.js +328 -0
  454. package/dist/errors-CyxMxzlu.js +44 -0
  455. package/dist/escape-like-PReMbEEU.d.ts +30 -0
  456. package/dist/eve/index.d.ts +5 -5
  457. package/dist/eve/index.js +4 -4
  458. package/dist/eve-BFSwTu1z.d.ts +157 -0
  459. package/dist/event-calendar-DCufbihU.d.ts +65 -0
  460. package/dist/events/index.d.ts +4 -4
  461. package/dist/events/index.js +2 -1
  462. package/dist/events-vcqenSYU.d.ts +852 -0
  463. package/dist/executor-3qcMhg6R.js +207 -0
  464. package/dist/executor-BQ7dYw4E.js +843 -0
  465. package/dist/executor-CVIn6JHa.d.ts +174 -0
  466. package/dist/executor-D3gB-9si.js +486 -0
  467. package/dist/executor-_2ekNofh.d.ts +104 -0
  468. package/dist/executor-hGjrop3A.d.ts +37 -0
  469. package/dist/expo/index.d.ts +12 -11
  470. package/dist/expo/index.js +12 -11
  471. package/dist/extension-B-lajjex.js +58 -0
  472. package/dist/extension-B0EjCYhO.js +61 -0
  473. package/dist/extension-DeAd_MqI.js +121 -0
  474. package/dist/extension-DzCc0IOd.js +103 -0
  475. package/dist/extension-shared-Djm8mGHD.js +60 -0
  476. package/dist/field-errors-fsbFktYF.d.ts +216 -0
  477. package/dist/field-formats-CAFNkKSN.d.ts +38 -0
  478. package/dist/fields-B0zaJAO3.js +107 -0
  479. package/dist/fields-C3q2ypnO.d.ts +78 -0
  480. package/dist/filter-evaluate-CPxeae5X.d.ts +37 -0
  481. package/dist/filter-evaluate-w1XOIUOL.js +217 -0
  482. package/dist/filter-query-BXLs72G9.d.ts +133 -0
  483. package/dist/filter-query-DMoKo82_.js +566 -0
  484. package/dist/flags-BOdA_ETQ.js +279 -0
  485. package/dist/flags-C01PLMJ-.d.ts +246 -0
  486. package/dist/flags-sdk/index.d.ts +1 -1
  487. package/dist/flags-sdk/index.js +2 -2
  488. package/dist/form-definition-BTpM_tz1.js +363 -0
  489. package/dist/form-definition-BjEtH8BT.d.ts +119 -0
  490. package/dist/format-u-65igKI.d.ts +79 -0
  491. package/dist/framework-BKyTeS-j.d.ts +47 -0
  492. package/dist/framework-DDdkR7FX.js +58 -0
  493. package/dist/function-contract-DxFNOmsm.d.ts +27 -0
  494. package/dist/gateway-TD1pRfTP.d.ts +115 -0
  495. package/dist/guest-actions-1T1DeS5Y.d.ts +5 -0
  496. package/dist/guest-actions-B7zdhfnh.js +9 -0
  497. package/dist/h3/index.d.ts +2 -4
  498. package/dist/h3/index.js +2 -4
  499. package/dist/h3/v1/index.d.ts +2 -3
  500. package/dist/h3/v1/index.js +2 -3
  501. package/dist/hono/index.d.ts +27 -21
  502. package/dist/hono/index.js +22 -20
  503. package/dist/http-7-UvHjQe.js +28 -0
  504. package/dist/impersonation-DM3oWNoD.js +62 -0
  505. package/dist/inbox-NDKwSk_H.d.ts +321 -0
  506. package/dist/index-B938YqY-.d.ts +188 -0
  507. package/dist/index-BUuVq1co.d.ts +158 -0
  508. package/dist/index-BnH4Gomw.d.ts +633 -0
  509. package/dist/index-BxYOB1Oc.d.ts +149 -0
  510. package/dist/index-C-qpk8EQ.d.ts +262 -0
  511. package/dist/index-CG9rA8H8.d.ts +407 -0
  512. package/dist/index-CguFm716.d.ts +518 -0
  513. package/dist/index-DLq69k3F.d.ts +588 -0
  514. package/dist/index-Do2ChN_y.d.ts +287 -0
  515. package/dist/index.d.ts +39 -92
  516. package/dist/index.js +95 -16
  517. package/dist/instances-BHjCZoF8.js +277 -0
  518. package/dist/invalidate-DMp4eqfF.d.ts +21 -0
  519. package/dist/json-schema-Ca6gYbEP.js +888 -0
  520. package/dist/jwks-cache-DEsKI0hJ.js +49 -0
  521. package/dist/kit-5l-o8RxL.js +133 -0
  522. package/dist/kit-DOwKpSkA.d.ts +94 -0
  523. package/dist/knowledge-BGbtxMP9.js +300 -0
  524. package/dist/knowledge-CtL-Vfgy.d.ts +217 -0
  525. package/dist/lint/index.d.ts +94 -11
  526. package/dist/lint/index.js +268 -26
  527. package/dist/list/index.d.ts +4 -4
  528. package/dist/list/index.js +3 -3
  529. package/dist/list-query-BDVutLFr.d.ts +222 -0
  530. package/dist/list-query-BKy2zBaT.js +559 -0
  531. package/dist/live-C21DgbsD.js +275 -0
  532. package/dist/mapper/bin.js +380 -0
  533. package/dist/mcp/index.d.ts +8 -8
  534. package/dist/mcp/index.js +11 -11
  535. package/dist/mcp/sdk/index.d.ts +10 -10
  536. package/dist/mcp/sdk/index.js +11 -11
  537. package/dist/messages-D4XWuRTj.js +492 -0
  538. package/dist/messaging-C_Pr9tGx.d.ts +297 -0
  539. package/dist/methods-B3o7BFOW.js +11 -0
  540. package/dist/mfa-oIOYTpvc.d.ts +36 -0
  541. package/dist/model-hwpvole9.d.ts +340 -0
  542. package/dist/model-messages-CKG0zwdF.js +206 -0
  543. package/dist/money-codec-BzddguAQ.js +41 -0
  544. package/dist/my-work-kinds-BU3SlA-6.js +11 -0
  545. package/dist/nestjs/index.d.ts +3 -3
  546. package/dist/nestjs/index.js +2 -2
  547. package/dist/next/index.d.ts +296 -57
  548. package/dist/next/index.js +310 -54
  549. package/dist/node/index.d.ts +2 -2
  550. package/dist/node/index.js +6 -8
  551. package/dist/operations-CSc_IsHO.d.ts +6 -0
  552. package/dist/options-0qvUckqt.js +9 -0
  553. package/dist/options-1GgseJq5.js +10 -0
  554. package/dist/options-21s0dpnX.js +9 -0
  555. package/dist/options-2EMA_x6_.js +16 -0
  556. package/dist/options-63AKQNv0.js +5 -0
  557. package/dist/options-9gvPo1BC.js +8 -0
  558. package/dist/options-B-cxGmRA.js +5 -0
  559. package/dist/options-B0EJULm5.js +5 -0
  560. package/dist/options-B2swWnJW.js +9 -0
  561. package/dist/options-B5VUf4IT.js +8 -0
  562. package/dist/options-BMGClqoa.js +11 -0
  563. package/dist/options-BPDiwSa-.js +5 -0
  564. package/dist/options-BQIYfx9F.js +9 -0
  565. package/dist/options-BVg58avP.js +5 -0
  566. package/dist/options-BYOtaF7w.js +5 -0
  567. package/dist/options-BZOliZvb.js +9 -0
  568. package/dist/options-BbnPv6p7.js +12 -0
  569. package/dist/options-BfLmA375.js +5 -0
  570. package/dist/options-BjtrC7o6.js +8 -0
  571. package/dist/options-BlncUmIc.js +9 -0
  572. package/dist/options-BlzSfWxC.d.ts +10 -0
  573. package/dist/options-BnZS7IK-.js +9 -0
  574. package/dist/options-Bpl-WFPk.js +15 -0
  575. package/dist/options-Br1Xi2Hw.js +9 -0
  576. package/dist/options-Bt0bYMLl.js +24 -0
  577. package/dist/options-BvtnxHfK.js +24 -0
  578. package/dist/options-C-dQHH5-.js +8 -0
  579. package/dist/options-C3RgtOLo.js +5 -0
  580. package/dist/options-CE93HOYi.d.ts +7 -0
  581. package/dist/options-CF7nRWXS.js +5 -0
  582. package/dist/options-CM6-18FQ.d.ts +13 -0
  583. package/dist/options-CPK2nQER.js +5 -0
  584. package/dist/options-CRz8Ht_4.js +9 -0
  585. package/dist/options-CSCXNYJO.d.ts +8 -0
  586. package/dist/options-CW9wTqOk.js +11 -0
  587. package/dist/options-CYV4iZiQ.js +5 -0
  588. package/dist/options-Cl9Ag2Pt.js +8 -0
  589. package/dist/options-Cp0HyUEk.js +9 -0
  590. package/dist/options-Cqq2jUww.js +10 -0
  591. package/dist/options-CsGl5BLH.d.ts +52 -0
  592. package/dist/options-CtUUU71w.js +20 -0
  593. package/dist/options-CvD9vNvx.js +9 -0
  594. package/dist/options-CyAhRKKm.d.ts +14 -0
  595. package/dist/options-Cyu0hgmN.js +9 -0
  596. package/dist/options-D0G06Zm9.js +8 -0
  597. package/dist/options-D0bzZx9a.d.ts +10 -0
  598. package/dist/options-D1hSuf50.d.ts +12 -0
  599. package/dist/options-D6as77gU.d.ts +16 -0
  600. package/dist/options-DChZoVfs.d.ts +11 -0
  601. package/dist/options-DINdgVih.d.ts +9 -0
  602. package/dist/options-DJ-aYPVN.js +5 -0
  603. package/dist/options-DPgdAXO5.js +11 -0
  604. package/dist/options-DWML05Cp.js +5 -0
  605. package/dist/options-DWVYM8P0.d.ts +17 -0
  606. package/dist/options-DWbA9buW.js +9 -0
  607. package/dist/options-DXnBN2E7.js +8 -0
  608. package/dist/options-D_bBVCXg.js +5 -0
  609. package/dist/options-DcOx8_3X.d.ts +19 -0
  610. package/dist/options-DeNejBtq.js +8 -0
  611. package/dist/options-DgQo80Xh.js +5 -0
  612. package/dist/options-DlohRAYd.d.ts +13 -0
  613. package/dist/options-DplE18Ko.d.ts +12 -0
  614. package/dist/options-DrSkIBCD.js +9 -0
  615. package/dist/options-E7KcmHQv.js +8 -0
  616. package/dist/options-HLwOuF2H.js +10 -0
  617. package/dist/options-IHPg8ZoA.js +5 -0
  618. package/dist/options-KV84gAxl.js +10 -0
  619. package/dist/options-Li1Dyu88.d.ts +10 -0
  620. package/dist/options-Q1Bzgqpr.js +5 -0
  621. package/dist/options-_F-enoBs.d.ts +26 -0
  622. package/dist/options-c5WCsky5.js +21 -0
  623. package/dist/options-nFzfgtA6.js +5 -0
  624. package/dist/options-o2kfYU2x.js +8 -0
  625. package/dist/options-pOVWwbAK.d.ts +10 -0
  626. package/dist/options-t_O5ldT6.js +5 -0
  627. package/dist/options-xD4_FRUq.js +10 -0
  628. package/dist/options-y_-AkVCs.d.ts +15 -0
  629. package/dist/options-zkyhM3qi.js +8 -0
  630. package/dist/orpc/index.d.ts +76 -20
  631. package/dist/orpc/index.js +174 -9
  632. package/dist/otel/index.d.ts +3 -3
  633. package/dist/otel/index.js +7 -7
  634. package/dist/outbox-HvGAJuBe.d.ts +199 -0
  635. package/dist/payments-BXvabJOw.js +16 -0
  636. package/dist/payments-BYcN34Fp.d.ts +114 -0
  637. package/dist/permissions-controller-BMsqIE5T.js +34 -0
  638. package/dist/plugin-AKwwe2gF.js +48 -0
  639. package/dist/pool-CrtT4dg-.d.ts +123 -0
  640. package/dist/pool-errors-JUBcGrre.js +27 -0
  641. package/dist/ports-DOhtuw3c.js +152 -0
  642. package/dist/ports-sx226JUL.d.ts +89 -0
  643. package/dist/postgres/index.d.ts +5 -5
  644. package/dist/postgres/index.js +3 -3
  645. package/dist/postgrest-executor-BFW4oWte.js +1064 -0
  646. package/dist/postgrest-z-T0l23T.d.ts +53 -0
  647. package/dist/powersync/index.d.ts +106 -7
  648. package/dist/powersync/index.js +169 -23
  649. package/dist/preset/index.d.ts +4 -4
  650. package/dist/preset/index.js +4 -4
  651. package/dist/preset-CsHnIBJF.js +875 -0
  652. package/dist/problem-Bf0cJ7tk.js +162 -0
  653. package/dist/problem-DNwN8iGz.d.ts +79 -0
  654. package/dist/provider-B6g7rBZX.js +57 -0
  655. package/dist/provider-CqwEOLCA.d.ts +112 -0
  656. package/dist/push-token-D3Vcf0Pf.d.ts +24 -0
  657. package/dist/queries-BWYYS9um.js +239 -0
  658. package/dist/query/index.d.ts +4 -4
  659. package/dist/query/index.js +357 -3
  660. package/dist/rank-result-BBJIK-k_.js +18 -0
  661. package/dist/rank-result-Bwe7igy-.d.ts +14 -0
  662. package/dist/rate-limit-BWKGlhTM.js +49 -0
  663. package/dist/rate-limit-Bztf32cl.d.ts +50 -0
  664. package/dist/rate-limit-o44SYkVY.js +327 -0
  665. package/dist/react/index.d.ts +10 -9
  666. package/dist/react/index.js +5 -5
  667. package/dist/react/native/index.d.ts +1 -1
  668. package/dist/react/native/index.js +2 -3
  669. package/dist/react/server.d.ts +72 -13
  670. package/dist/react/server.js +71 -9
  671. package/dist/react/session.d.ts +3 -3
  672. package/dist/react-BuDYI62C.js +979 -0
  673. package/dist/react-router/index.d.ts +19 -13
  674. package/dist/react-router/index.js +10 -10
  675. package/dist/read-set-BnKnofIj.js +199 -0
  676. package/dist/realtime/index.d.ts +7 -7
  677. package/dist/realtime/index.js +36 -4
  678. package/dist/record-bindings-DkBJpC5A.js +26 -0
  679. package/dist/record-form-BYs9xv_N.d.ts +82 -0
  680. package/dist/record-type-DRbnlj5q.js +221 -0
  681. package/dist/recordings-BBSJt_YV.d.ts +119 -0
  682. package/dist/records/index.d.ts +83 -0
  683. package/dist/records/index.js +314 -0
  684. package/dist/refresh-DT_ICaK-.d.ts +54 -0
  685. package/dist/refusal-ByBZcm0V.js +64 -0
  686. package/dist/refusal-CSntB_x8.d.ts +32 -0
  687. package/dist/replicas-Dyoh3CEg.js +94 -0
  688. package/dist/resolve-B0mW2m7f.js +932 -0
  689. package/dist/resolve-CXX6DHv3.d.ts +288 -0
  690. package/dist/resource-D8pzB5Qf.d.ts +123 -0
  691. package/dist/resource-DV2GC2dB.js +520 -0
  692. package/dist/resource-DvgXqZB_.js +105 -0
  693. package/dist/resource-execute-CzHuDsil.d.ts +15 -0
  694. package/dist/resource-types-DnKiH4G2.d.ts +157 -0
  695. package/dist/resources-B9cQxhjw.d.ts +7 -0
  696. package/dist/resources-C02l_YBJ.js +64 -0
  697. package/dist/respond-C3CcOZlA.js +100 -0
  698. package/dist/respond-Dn1_YhC1.d.ts +106 -0
  699. package/dist/result-DZeA5KS6.d.ts +351 -0
  700. package/dist/result-ntFBW2p2.js +146 -0
  701. package/dist/rows-BDLZStp4.js +80 -0
  702. package/dist/rows-Bm6sskji.js +39 -0
  703. package/dist/rrule-79K2c3Nr.js +290 -0
  704. package/dist/run-state-BMCD_1Lt.d.ts +13 -0
  705. package/dist/sales-lines-Bk4mbLH1.d.ts +37 -0
  706. package/dist/sales-lines-D-sf9PIB.js +43 -0
  707. package/dist/sales-shared-DXGFJP4g.js +22 -0
  708. package/dist/schemas-l2aF78zQ.js +216 -0
  709. package/dist/scores-B2BiNuVJ.d.ts +174 -0
  710. package/dist/scores-CRp3vvQU.js +177 -0
  711. package/dist/server/index.d.ts +103 -42
  712. package/dist/server/index.js +98 -30
  713. package/dist/server-types-CFtehAsr.d.ts +946 -0
  714. package/dist/session-CH0SKgIz.d.ts +99 -0
  715. package/dist/shared-C47zAh2A.js +17 -0
  716. package/dist/sign-in-BAjR49fq.d.ts +24 -0
  717. package/dist/sign-in-BsIaNx2C.js +392 -0
  718. package/dist/sign-in-DNCdrk05.js +608 -0
  719. package/dist/signatures-CNcoq392.js +145 -0
  720. package/dist/signatures-Dkx9OE8j.d.ts +43 -0
  721. package/dist/signers-BAEzvTJ0.d.ts +390 -0
  722. package/dist/signing-keys-BNDUxpQL.d.ts +119 -0
  723. package/dist/signing-keys-wGKh4vtt.js +164 -0
  724. package/dist/solid/index.d.ts +67 -15
  725. package/dist/solid/index.js +93 -11
  726. package/dist/solid-start/index.d.ts +17 -14
  727. package/dist/solid-start/index.js +8 -8
  728. package/dist/spec/index.d.ts +691 -9
  729. package/dist/spec/index.js +2487 -5
  730. package/dist/spec-DTWkHzYZ.js +124 -0
  731. package/dist/spec-pins-C1Vm8OBl.js +61 -0
  732. package/dist/spec-pins-DIx95afw.d.ts +125 -0
  733. package/dist/sql/index.d.ts +5 -5
  734. package/dist/sql/index.js +5 -5
  735. package/dist/sql-BPbbPzRJ.js +421 -0
  736. package/dist/sql-ClHIdgKS.js +126996 -0
  737. package/dist/sqlite/index.d.ts +126 -0
  738. package/dist/sqlite/index.js +197 -0
  739. package/dist/sso-B0Txid2-.d.ts +161 -0
  740. package/dist/sso-d2S4x_f9.js +217 -0
  741. package/dist/ssr/index.d.ts +5 -4
  742. package/dist/ssr/index.js +3 -3
  743. package/dist/standard-BA3mLh6w.js +25 -0
  744. package/dist/standard-DBV730sF.d.ts +7 -0
  745. package/dist/stats-BHl1-zj9.js +83 -0
  746. package/dist/statuses-DMMDwXpZ.js +29 -0
  747. package/dist/statuses-zRcc2TeZ.js +28 -0
  748. package/dist/storage/index.d.ts +3 -3
  749. package/dist/storage/index.js +11 -11
  750. package/dist/store-CpheI-lN.d.ts +83 -0
  751. package/dist/streams/index.d.ts +3 -3
  752. package/dist/streams/index.js +2 -3
  753. package/dist/streams/redis/index.d.ts +2 -2
  754. package/dist/streams/redis/index.js +3 -3
  755. package/dist/stripe/index.d.ts +1 -1
  756. package/dist/stripe-X22LjuH-.d.ts +156 -0
  757. package/dist/subject-readers-B-pQ9Mmo.js +49 -0
  758. package/dist/subject-readers-BNSzkqw_.d.ts +21 -0
  759. package/dist/subjects-BpIEN1MS.d.ts +90 -0
  760. package/dist/subjects-DvmQeF_F.d.ts +79 -0
  761. package/dist/summaries-8jQTELIX.d.ts +69 -0
  762. package/dist/support-view-BYOgwXsJ.d.ts +17 -0
  763. package/dist/svelte/index.d.ts +67 -12
  764. package/dist/svelte/index.js +108 -11
  765. package/dist/sveltekit/index.d.ts +19 -16
  766. package/dist/sveltekit/index.js +14 -14
  767. package/dist/table-schema-BlF6k62Q.d.ts +81 -0
  768. package/dist/table-schema-CD8cJz_M.js +293 -0
  769. package/dist/tags-BjHflcHF.d.ts +30 -0
  770. package/dist/tags-CIZTqtlY.js +39 -0
  771. package/dist/tanstack-db/index.d.ts +50 -6
  772. package/dist/tanstack-db/index.js +44 -3
  773. package/dist/tanstack-start/index.d.ts +15 -12
  774. package/dist/tanstack-start/index.js +9 -9
  775. package/dist/tax-BkCNWWMc.js +140 -0
  776. package/dist/tax-DPShHual.d.ts +170 -0
  777. package/dist/tee-V97_v1ZS.js +101 -0
  778. package/dist/template-Drgg3v2J.js +126 -0
  779. package/dist/temporal-required-Dy0GGD8E.js +20 -0
  780. package/dist/tenant-BgIiMQpo.js +27 -0
  781. package/dist/tenant-source-bqWpSr86.js +8 -0
  782. package/dist/tenant-yYg0E2-n.d.ts +17 -0
  783. package/dist/testing/index.d.ts +183 -58
  784. package/dist/testing/index.js +405 -97
  785. package/dist/timeline--VU3A1e4.js +50 -0
  786. package/dist/timeline-CtG0sehj.d.ts +151 -0
  787. package/dist/timing-dypS0nxW.js +95 -0
  788. package/dist/topic-CJrQZQaa.d.ts +415 -0
  789. package/dist/topic-ikV_pLTX.js +643 -0
  790. package/dist/types-BBQLbui9.d.ts +659 -0
  791. package/dist/types-CAQBmpDx.d.ts +217 -0
  792. package/dist/types-DFdg_4yN.d.ts +912 -0
  793. package/dist/types-Dp3UCr1e.d.ts +194 -0
  794. package/dist/types-Dr9wZgNy.d.ts +251 -0
  795. package/dist/types-EO2crSX_.d.ts +177 -0
  796. package/dist/types-SFRomQF7.d.ts +624 -0
  797. package/dist/undo-B1jwnVyN.d.ts +46 -0
  798. package/dist/undo-BjCChCmH.js +44 -0
  799. package/dist/upload-claim-B1ZU8ydB.js +33 -0
  800. package/dist/usage-D7QkrwzV.d.ts +232 -0
  801. package/dist/user-change-DgWC6RRC.js +135 -0
  802. package/dist/variants-Cy--Ub-a.js +53 -0
  803. package/dist/vault-O-YlAyHb.d.ts +62 -0
  804. package/dist/vercel-connect/index.d.ts +1 -1
  805. package/dist/vercel-connect/index.js +3 -3
  806. package/dist/verify-CMou8dWZ.d.ts +146 -0
  807. package/dist/verify-ZLFUdlqE.js +130 -0
  808. package/dist/view-C8Ve14ja.js +247 -0
  809. package/dist/view-DyFdMCqg.d.ts +97 -0
  810. package/dist/vue/index.d.ts +67 -20
  811. package/dist/vue/index.js +102 -14
  812. package/dist/watch-topic-BcGfvZOE.d.ts +31 -0
  813. package/dist/wiring-CDNuQoJJ.js +13 -0
  814. package/dist/workflow-sdk/builder/index.d.ts +12 -12
  815. package/dist/workflow-sdk/builder/index.js +16 -17
  816. package/dist/workflow-sdk/index.d.ts +18 -15
  817. package/dist/workflow-sdk/index.js +2 -2
  818. package/dist/workflow-sdk/world/index.d.ts +6 -6
  819. package/dist/workflow-sdk/world/index.js +12 -12
  820. package/dist/workflow-sdk-BFHu4sci.d.ts +163 -0
  821. package/dist/workflow-sdk-BVlFEB5Q.js +242 -0
  822. package/dist/workflow-sdk-Bw6_u0ar.js +2446 -0
  823. package/dist/workflows-B0ZPAQu0.d.ts +255 -0
  824. package/dist/yjs/index.d.ts +28 -4
  825. package/dist/yjs/index.js +52 -10
  826. package/package.json +201 -540
  827. package/schemas/config-v1.json +2720 -1693
  828. package/schemas/design-v1.json +147 -5
  829. package/schemas/doctor-report-v1.json +14 -0
  830. package/schemas/snapshot-v2.json +25 -0
  831. package/skills/better-supabase/SKILL.md +71 -28
  832. package/skills/better-supabase/references/block-extensions.md +64 -0
  833. package/skills/better-supabase/references/frontend.md +29 -26
  834. package/skills/better-supabase/references/troubleshooting.md +19 -19
  835. package/skills/better-supabase/references/ui-recipes.md +12837 -8039
  836. package/skills/better-supabase-api/SKILL.md +49 -38
  837. package/skills/better-supabase-api/references/adapters.md +42 -39
  838. package/skills/better-supabase-api/references/ai.md +4 -4
  839. package/skills/better-supabase-api/references/expo.md +8 -8
  840. package/skills/better-supabase-api/references/powersync.md +25 -11
  841. package/skills/better-supabase-api/references/streams-credentials.md +3 -3
  842. package/skills/better-supabase-auth/SKILL.md +17 -17
  843. package/skills/better-supabase-auth/references/authorization-providers.md +8 -6
  844. package/skills/better-supabase-testing/SKILL.md +8 -8
  845. package/dist/access-sql-BpOdJvfj.js +0 -205
  846. package/dist/actor-C9pwyCVz.js +0 -150
  847. package/dist/adapter-D8dW6p2A.js +0 -2190
  848. package/dist/agents-CuxuXVWv.d.ts +0 -117
  849. package/dist/ai-cache-BXMXRhkx.d.ts +0 -82
  850. package/dist/ai-cache-Byy5q6EZ.js +0 -87
  851. package/dist/ai-chat-B00sIOjY.d.ts +0 -619
  852. package/dist/ai-files-DTbIJcxQ.js +0 -339
  853. package/dist/ai-tasks-DN-AV7qB.d.ts +0 -166
  854. package/dist/announcements-DqiLxtKK.js +0 -128
  855. package/dist/api-CmcTYuFT.js +0 -685
  856. package/dist/api-DwLhJS1j.d.ts +0 -444
  857. package/dist/api-keys-Bade6Qtl.d.ts +0 -213
  858. package/dist/api-keys-CO24Ffil.js +0 -318
  859. package/dist/app-tables-0YZ9IskE.js +0 -831
  860. package/dist/app-tables-CbWUI7h_.d.ts +0 -35
  861. package/dist/approvals-C-4MOWdV.d.ts +0 -127
  862. package/dist/arazzo/index.d.ts +0 -277
  863. package/dist/arazzo/index.js +0 -630
  864. package/dist/assistant-CcP_kpu7.d.ts +0 -157
  865. package/dist/asyncapi/index.d.ts +0 -109
  866. package/dist/asyncapi/index.js +0 -572
  867. package/dist/attachments-CPkGJVfk.js +0 -270
  868. package/dist/attributes-BOFl922R.js +0 -44
  869. package/dist/audit-log-5aTnl7W2.js +0 -788
  870. package/dist/auth-module-CwCIY97x.js +0 -10
  871. package/dist/auth-reply-D02x5NSv.js +0 -31
  872. package/dist/authorization-CB69cvnA.d.ts +0 -1504
  873. package/dist/authorization-hooks-HXVZXxUk.d.ts +0 -217
  874. package/dist/authorizer-BVR2vPGA.js +0 -125
  875. package/dist/authorizer-DFP3gHv8.d.ts +0 -82
  876. package/dist/bind-DcXLU1ul.d.ts +0 -76
  877. package/dist/block-env-YfPmSNa1.js +0 -32
  878. package/dist/block-env-kFcaaJLM.d.ts +0 -10
  879. package/dist/block-events-BURaqwyp.js +0 -96
  880. package/dist/block-fields-Cwd4c8m-.js +0 -139
  881. package/dist/block-fields-DnXkMney.d.ts +0 -58
  882. package/dist/block-helpers-DwE32_gT.js +0 -272
  883. package/dist/block-helpers-DyA5BAW4.d.ts +0 -43
  884. package/dist/block-hooks-BadAniNI.d.ts +0 -117
  885. package/dist/block-hooks-C1r-R2r0.js +0 -130
  886. package/dist/block-transport-DBPhgF3W.d.ts +0 -69
  887. package/dist/block-transport-Ds0C2mUf.js +0 -84
  888. package/dist/blocks/ai-chat/react/index.d.ts +0 -52
  889. package/dist/blocks/ai-chat/react/index.js +0 -95
  890. package/dist/blocks/ai-chat/react/server.d.ts +0 -25
  891. package/dist/blocks/ai-chat/react/server.js +0 -23
  892. package/dist/blocks/ai-chat/solid/index.d.ts +0 -34
  893. package/dist/blocks/ai-chat/solid/index.js +0 -41
  894. package/dist/blocks/ai-chat/svelte/index.d.ts +0 -34
  895. package/dist/blocks/ai-chat/svelte/index.js +0 -41
  896. package/dist/blocks/ai-chat/vue/index.d.ts +0 -34
  897. package/dist/blocks/ai-chat/vue/index.js +0 -41
  898. package/dist/blocks/ai-providers/index.d.ts +0 -22
  899. package/dist/blocks/ai-providers/index.js +0 -237
  900. package/dist/blocks/ai-tasks/index.d.ts +0 -10
  901. package/dist/blocks/ai-tasks/index.js +0 -253
  902. package/dist/blocks/announcements/react/index.d.ts +0 -28
  903. package/dist/blocks/announcements/react/index.js +0 -38
  904. package/dist/blocks/announcements/react/server.d.ts +0 -9
  905. package/dist/blocks/announcements/react/server.js +0 -10
  906. package/dist/blocks/announcements/solid/index.d.ts +0 -13
  907. package/dist/blocks/announcements/solid/index.js +0 -14
  908. package/dist/blocks/announcements/svelte/index.d.ts +0 -13
  909. package/dist/blocks/announcements/svelte/index.js +0 -14
  910. package/dist/blocks/announcements/vue/index.d.ts +0 -13
  911. package/dist/blocks/announcements/vue/index.js +0 -14
  912. package/dist/blocks/api-keys/react/index.d.ts +0 -32
  913. package/dist/blocks/api-keys/react/index.js +0 -43
  914. package/dist/blocks/api-keys/react/server.d.ts +0 -7
  915. package/dist/blocks/api-keys/react/server.js +0 -7
  916. package/dist/blocks/api-keys/solid/index.d.ts +0 -13
  917. package/dist/blocks/api-keys/solid/index.js +0 -14
  918. package/dist/blocks/api-keys/svelte/index.d.ts +0 -13
  919. package/dist/blocks/api-keys/svelte/index.js +0 -14
  920. package/dist/blocks/api-keys/vue/index.d.ts +0 -13
  921. package/dist/blocks/api-keys/vue/index.js +0 -14
  922. package/dist/blocks/audit/react/index.d.ts +0 -31
  923. package/dist/blocks/audit/react/index.js +0 -46
  924. package/dist/blocks/audit/react/server.d.ts +0 -7
  925. package/dist/blocks/audit/react/server.js +0 -7
  926. package/dist/blocks/audit/solid/index.d.ts +0 -13
  927. package/dist/blocks/audit/solid/index.js +0 -14
  928. package/dist/blocks/audit/svelte/index.d.ts +0 -13
  929. package/dist/blocks/audit/svelte/index.js +0 -14
  930. package/dist/blocks/audit/vue/index.d.ts +0 -13
  931. package/dist/blocks/audit/vue/index.js +0 -14
  932. package/dist/blocks/billing/react/index.d.ts +0 -44
  933. package/dist/blocks/billing/react/index.js +0 -40
  934. package/dist/blocks/billing/react/server.d.ts +0 -10
  935. package/dist/blocks/billing/react/server.js +0 -10
  936. package/dist/blocks/billing/solid/index.d.ts +0 -15
  937. package/dist/blocks/billing/solid/index.js +0 -14
  938. package/dist/blocks/billing/svelte/index.d.ts +0 -15
  939. package/dist/blocks/billing/svelte/index.js +0 -14
  940. package/dist/blocks/billing/vue/index.d.ts +0 -15
  941. package/dist/blocks/billing/vue/index.js +0 -14
  942. package/dist/blocks/bookings/react/index.d.ts +0 -35
  943. package/dist/blocks/bookings/react/index.js +0 -63
  944. package/dist/blocks/bookings/react/server.d.ts +0 -9
  945. package/dist/blocks/bookings/react/server.js +0 -10
  946. package/dist/blocks/bookings/solid/index.d.ts +0 -13
  947. package/dist/blocks/bookings/solid/index.js +0 -14
  948. package/dist/blocks/bookings/svelte/index.d.ts +0 -13
  949. package/dist/blocks/bookings/svelte/index.js +0 -14
  950. package/dist/blocks/bookings/vue/index.d.ts +0 -13
  951. package/dist/blocks/bookings/vue/index.js +0 -14
  952. package/dist/blocks/calendar/react/index.d.ts +0 -26
  953. package/dist/blocks/calendar/react/index.js +0 -58
  954. package/dist/blocks/calendar/react/server.d.ts +0 -9
  955. package/dist/blocks/calendar/react/server.js +0 -10
  956. package/dist/blocks/calendar/solid/index.d.ts +0 -13
  957. package/dist/blocks/calendar/solid/index.js +0 -14
  958. package/dist/blocks/calendar/svelte/index.d.ts +0 -13
  959. package/dist/blocks/calendar/svelte/index.js +0 -14
  960. package/dist/blocks/calendar/vue/index.d.ts +0 -13
  961. package/dist/blocks/calendar/vue/index.js +0 -14
  962. package/dist/blocks/comments/react/index.d.ts +0 -34
  963. package/dist/blocks/comments/react/index.js +0 -49
  964. package/dist/blocks/comments/react/server.d.ts +0 -7
  965. package/dist/blocks/comments/react/server.js +0 -7
  966. package/dist/blocks/comments/solid/index.d.ts +0 -13
  967. package/dist/blocks/comments/solid/index.js +0 -14
  968. package/dist/blocks/comments/svelte/index.d.ts +0 -13
  969. package/dist/blocks/comments/svelte/index.js +0 -14
  970. package/dist/blocks/comments/vue/index.d.ts +0 -13
  971. package/dist/blocks/comments/vue/index.js +0 -14
  972. package/dist/blocks/engagements/index.d.ts +0 -134
  973. package/dist/blocks/engagements/index.js +0 -143
  974. package/dist/blocks/entitlements/react/index.d.ts +0 -27
  975. package/dist/blocks/entitlements/react/index.js +0 -35
  976. package/dist/blocks/entitlements/react/server.d.ts +0 -9
  977. package/dist/blocks/entitlements/react/server.js +0 -10
  978. package/dist/blocks/entitlements/solid/index.d.ts +0 -13
  979. package/dist/blocks/entitlements/solid/index.js +0 -14
  980. package/dist/blocks/entitlements/svelte/index.d.ts +0 -13
  981. package/dist/blocks/entitlements/svelte/index.js +0 -14
  982. package/dist/blocks/entitlements/vue/index.d.ts +0 -13
  983. package/dist/blocks/entitlements/vue/index.js +0 -14
  984. package/dist/blocks/forms/react/index.d.ts +0 -19
  985. package/dist/blocks/forms/react/index.js +0 -28
  986. package/dist/blocks/forms/react/server.d.ts +0 -9
  987. package/dist/blocks/forms/react/server.js +0 -10
  988. package/dist/blocks/forms/solid/index.d.ts +0 -13
  989. package/dist/blocks/forms/solid/index.js +0 -14
  990. package/dist/blocks/forms/svelte/index.d.ts +0 -13
  991. package/dist/blocks/forms/svelte/index.js +0 -14
  992. package/dist/blocks/forms/vue/index.d.ts +0 -13
  993. package/dist/blocks/forms/vue/index.js +0 -14
  994. package/dist/blocks/inbox/react/index.d.ts +0 -3
  995. package/dist/blocks/inbox/react/index.js +0 -81
  996. package/dist/blocks/inbox/react/server.d.ts +0 -17
  997. package/dist/blocks/inbox/react/server.js +0 -18
  998. package/dist/blocks/inbox/solid/index.d.ts +0 -27
  999. package/dist/blocks/inbox/solid/index.js +0 -32
  1000. package/dist/blocks/inbox/svelte/index.d.ts +0 -27
  1001. package/dist/blocks/inbox/svelte/index.js +0 -32
  1002. package/dist/blocks/inbox/vue/index.d.ts +0 -27
  1003. package/dist/blocks/inbox/vue/index.js +0 -32
  1004. package/dist/blocks/jobs/index.d.ts +0 -523
  1005. package/dist/blocks/jobs/index.js +0 -1346
  1006. package/dist/blocks/mfa/react/index.d.ts +0 -30
  1007. package/dist/blocks/mfa/react/index.js +0 -45
  1008. package/dist/blocks/mfa/react/server.d.ts +0 -9
  1009. package/dist/blocks/mfa/react/server.js +0 -12
  1010. package/dist/blocks/mfa/solid/index.d.ts +0 -20
  1011. package/dist/blocks/mfa/solid/index.js +0 -23
  1012. package/dist/blocks/mfa/svelte/index.d.ts +0 -20
  1013. package/dist/blocks/mfa/svelte/index.js +0 -23
  1014. package/dist/blocks/mfa/vue/index.d.ts +0 -20
  1015. package/dist/blocks/mfa/vue/index.js +0 -23
  1016. package/dist/blocks/notifications/react/index.d.ts +0 -19
  1017. package/dist/blocks/notifications/react/index.js +0 -41
  1018. package/dist/blocks/notifications/react/server.d.ts +0 -10
  1019. package/dist/blocks/notifications/react/server.js +0 -10
  1020. package/dist/blocks/notifications/solid/index.d.ts +0 -13
  1021. package/dist/blocks/notifications/solid/index.js +0 -14
  1022. package/dist/blocks/notifications/svelte/index.d.ts +0 -13
  1023. package/dist/blocks/notifications/svelte/index.js +0 -14
  1024. package/dist/blocks/notifications/vue/index.d.ts +0 -13
  1025. package/dist/blocks/notifications/vue/index.js +0 -14
  1026. package/dist/blocks/number-sequences/index.d.ts +0 -48
  1027. package/dist/blocks/number-sequences/index.js +0 -52
  1028. package/dist/blocks/onboarding/react/index.d.ts +0 -24
  1029. package/dist/blocks/onboarding/react/index.js +0 -38
  1030. package/dist/blocks/onboarding/react/server.d.ts +0 -10
  1031. package/dist/blocks/onboarding/react/server.js +0 -10
  1032. package/dist/blocks/onboarding/solid/index.d.ts +0 -13
  1033. package/dist/blocks/onboarding/solid/index.js +0 -14
  1034. package/dist/blocks/onboarding/svelte/index.d.ts +0 -13
  1035. package/dist/blocks/onboarding/svelte/index.js +0 -14
  1036. package/dist/blocks/onboarding/vue/index.d.ts +0 -13
  1037. package/dist/blocks/onboarding/vue/index.js +0 -14
  1038. package/dist/blocks/organizations/react/index.d.ts +0 -127
  1039. package/dist/blocks/organizations/react/index.js +0 -113
  1040. package/dist/blocks/organizations/react/server.d.ts +0 -20
  1041. package/dist/blocks/organizations/react/server.js +0 -24
  1042. package/dist/blocks/organizations/solid/index.d.ts +0 -34
  1043. package/dist/blocks/organizations/solid/index.js +0 -32
  1044. package/dist/blocks/organizations/svelte/index.d.ts +0 -34
  1045. package/dist/blocks/organizations/svelte/index.js +0 -32
  1046. package/dist/blocks/organizations/vue/index.d.ts +0 -34
  1047. package/dist/blocks/organizations/vue/index.js +0 -32
  1048. package/dist/blocks/parties/index.d.ts +0 -190
  1049. package/dist/blocks/parties/index.js +0 -261
  1050. package/dist/blocks/reactions/react/index.d.ts +0 -33
  1051. package/dist/blocks/reactions/react/index.js +0 -50
  1052. package/dist/blocks/reactions/react/server.d.ts +0 -9
  1053. package/dist/blocks/reactions/react/server.js +0 -10
  1054. package/dist/blocks/reactions/solid/index.d.ts +0 -13
  1055. package/dist/blocks/reactions/solid/index.js +0 -14
  1056. package/dist/blocks/reactions/svelte/index.d.ts +0 -13
  1057. package/dist/blocks/reactions/svelte/index.js +0 -14
  1058. package/dist/blocks/reactions/vue/index.d.ts +0 -13
  1059. package/dist/blocks/reactions/vue/index.js +0 -14
  1060. package/dist/blocks/rules/index.d.ts +0 -171
  1061. package/dist/blocks/rules/index.js +0 -162
  1062. package/dist/blocks/rules/react/index.d.ts +0 -38
  1063. package/dist/blocks/rules/react/index.js +0 -59
  1064. package/dist/blocks/rules/react/server.d.ts +0 -6
  1065. package/dist/blocks/rules/react/server.js +0 -7
  1066. package/dist/blocks/rules/solid/index.d.ts +0 -13
  1067. package/dist/blocks/rules/solid/index.js +0 -14
  1068. package/dist/blocks/rules/svelte/index.d.ts +0 -13
  1069. package/dist/blocks/rules/svelte/index.js +0 -14
  1070. package/dist/blocks/rules/vue/index.d.ts +0 -13
  1071. package/dist/blocks/rules/vue/index.js +0 -14
  1072. package/dist/blocks/saved-views/react/index.d.ts +0 -40
  1073. package/dist/blocks/saved-views/react/index.js +0 -60
  1074. package/dist/blocks/saved-views/react/server.d.ts +0 -10
  1075. package/dist/blocks/saved-views/react/server.js +0 -10
  1076. package/dist/blocks/saved-views/solid/index.d.ts +0 -13
  1077. package/dist/blocks/saved-views/solid/index.js +0 -14
  1078. package/dist/blocks/saved-views/svelte/index.d.ts +0 -13
  1079. package/dist/blocks/saved-views/svelte/index.js +0 -14
  1080. package/dist/blocks/saved-views/vue/index.d.ts +0 -13
  1081. package/dist/blocks/saved-views/vue/index.js +0 -14
  1082. package/dist/blocks/search/react/index.d.ts +0 -39
  1083. package/dist/blocks/search/react/index.js +0 -49
  1084. package/dist/blocks/search/react/server.d.ts +0 -10
  1085. package/dist/blocks/search/react/server.js +0 -11
  1086. package/dist/blocks/search/solid/index.d.ts +0 -13
  1087. package/dist/blocks/search/solid/index.js +0 -14
  1088. package/dist/blocks/search/svelte/index.d.ts +0 -13
  1089. package/dist/blocks/search/svelte/index.js +0 -14
  1090. package/dist/blocks/search/vue/index.d.ts +0 -13
  1091. package/dist/blocks/search/vue/index.js +0 -14
  1092. package/dist/blocks/service-principals/index.d.ts +0 -132
  1093. package/dist/blocks/service-principals/index.js +0 -110
  1094. package/dist/blocks/sessions/react/index.d.ts +0 -36
  1095. package/dist/blocks/sessions/react/index.js +0 -53
  1096. package/dist/blocks/sessions/react/server.d.ts +0 -15
  1097. package/dist/blocks/sessions/react/server.js +0 -17
  1098. package/dist/blocks/sessions/solid/index.d.ts +0 -20
  1099. package/dist/blocks/sessions/solid/index.js +0 -23
  1100. package/dist/blocks/sessions/svelte/index.d.ts +0 -20
  1101. package/dist/blocks/sessions/svelte/index.js +0 -23
  1102. package/dist/blocks/sessions/vue/index.d.ts +0 -20
  1103. package/dist/blocks/sessions/vue/index.js +0 -23
  1104. package/dist/blocks/settings/react/index.d.ts +0 -31
  1105. package/dist/blocks/settings/react/index.js +0 -37
  1106. package/dist/blocks/settings/react/server.d.ts +0 -10
  1107. package/dist/blocks/settings/react/server.js +0 -10
  1108. package/dist/blocks/settings/solid/index.d.ts +0 -13
  1109. package/dist/blocks/settings/solid/index.js +0 -14
  1110. package/dist/blocks/settings/svelte/index.d.ts +0 -13
  1111. package/dist/blocks/settings/svelte/index.js +0 -14
  1112. package/dist/blocks/settings/vue/index.d.ts +0 -13
  1113. package/dist/blocks/settings/vue/index.js +0 -14
  1114. package/dist/blocks/shared-signals/index.d.ts +0 -440
  1115. package/dist/blocks/shared-signals/index.js +0 -886
  1116. package/dist/blocks/tags/react/index.d.ts +0 -36
  1117. package/dist/blocks/tags/react/index.js +0 -52
  1118. package/dist/blocks/tags/react/server.d.ts +0 -7
  1119. package/dist/blocks/tags/react/server.js +0 -7
  1120. package/dist/blocks/tags/solid/index.d.ts +0 -13
  1121. package/dist/blocks/tags/solid/index.js +0 -14
  1122. package/dist/blocks/tags/svelte/index.d.ts +0 -13
  1123. package/dist/blocks/tags/svelte/index.js +0 -14
  1124. package/dist/blocks/tags/vue/index.d.ts +0 -13
  1125. package/dist/blocks/tags/vue/index.js +0 -14
  1126. package/dist/blocks/targets/index.d.ts +0 -82
  1127. package/dist/blocks/targets/index.js +0 -73
  1128. package/dist/blocks/undo/react/index.d.ts +0 -17
  1129. package/dist/blocks/undo/react/index.js +0 -24
  1130. package/dist/blocks/undo/react/server.d.ts +0 -10
  1131. package/dist/blocks/undo/react/server.js +0 -10
  1132. package/dist/blocks/undo/solid/index.d.ts +0 -13
  1133. package/dist/blocks/undo/solid/index.js +0 -14
  1134. package/dist/blocks/undo/svelte/index.d.ts +0 -13
  1135. package/dist/blocks/undo/svelte/index.js +0 -14
  1136. package/dist/blocks/undo/vue/index.d.ts +0 -13
  1137. package/dist/blocks/undo/vue/index.js +0 -14
  1138. package/dist/blocks/usage/react/index.d.ts +0 -29
  1139. package/dist/blocks/usage/react/index.js +0 -38
  1140. package/dist/blocks/usage/react/server.d.ts +0 -7
  1141. package/dist/blocks/usage/react/server.js +0 -7
  1142. package/dist/blocks/usage/solid/index.d.ts +0 -13
  1143. package/dist/blocks/usage/solid/index.js +0 -14
  1144. package/dist/blocks/usage/svelte/index.d.ts +0 -13
  1145. package/dist/blocks/usage/svelte/index.js +0 -14
  1146. package/dist/blocks/usage/vue/index.d.ts +0 -13
  1147. package/dist/blocks/usage/vue/index.js +0 -14
  1148. package/dist/blocks/work-items/index.d.ts +0 -210
  1149. package/dist/blocks/work-items/index.js +0 -304
  1150. package/dist/blocks/workflow-builder/index.d.ts +0 -43
  1151. package/dist/blocks/workflow-builder/index.js +0 -33
  1152. package/dist/blocks/workflow-builder/react/index.d.ts +0 -32
  1153. package/dist/blocks/workflow-builder/react/index.js +0 -75
  1154. package/dist/blocks/workflow-builder/react/server.d.ts +0 -14
  1155. package/dist/blocks/workflow-builder/react/server.js +0 -17
  1156. package/dist/blocks/workflow-builder/solid/index.d.ts +0 -20
  1157. package/dist/blocks/workflow-builder/solid/index.js +0 -23
  1158. package/dist/blocks/workflow-builder/svelte/index.d.ts +0 -20
  1159. package/dist/blocks/workflow-builder/svelte/index.js +0 -23
  1160. package/dist/blocks/workflow-builder/vue/index.d.ts +0 -20
  1161. package/dist/blocks/workflow-builder/vue/index.js +0 -23
  1162. package/dist/blocks/workflows/react/index.d.ts +0 -39
  1163. package/dist/blocks/workflows/react/index.js +0 -65
  1164. package/dist/blocks/workflows/react/server.d.ts +0 -14
  1165. package/dist/blocks/workflows/react/server.js +0 -17
  1166. package/dist/blocks/workflows/solid/index.d.ts +0 -20
  1167. package/dist/blocks/workflows/solid/index.js +0 -23
  1168. package/dist/blocks/workflows/svelte/index.d.ts +0 -20
  1169. package/dist/blocks/workflows/svelte/index.js +0 -23
  1170. package/dist/blocks/workflows/vue/index.d.ts +0 -20
  1171. package/dist/blocks/workflows/vue/index.js +0 -23
  1172. package/dist/blocks-CR3vCYhj.js +0 -88
  1173. package/dist/bookings-DJflcGqs.js +0 -184
  1174. package/dist/bucket-DBay-ICp.d.ts +0 -667
  1175. package/dist/build-DxzJf79X.js +0 -1839
  1176. package/dist/build-UqJeGtsH.js +0 -703
  1177. package/dist/calendar-DvbYFkrh.js +0 -801
  1178. package/dist/chat-sdk/react/index.d.ts +0 -3
  1179. package/dist/chat-sdk/react/index.js +0 -2
  1180. package/dist/chat-sdk/react/server.d.ts +0 -4
  1181. package/dist/chat-sdk/react/server.js +0 -1
  1182. package/dist/claims-T8TWZ53E.js +0 -63
  1183. package/dist/cli/add-BRjL7LuG.js +0 -1
  1184. package/dist/cli/add-Cf0uxfZ2.js +0 -672
  1185. package/dist/cli/add-DPfdDRq7.js +0 -75
  1186. package/dist/cli/adopt-B28iUeGg.js +0 -1
  1187. package/dist/cli/adopt-C0VugVMu.js +0 -421
  1188. package/dist/cli/apply-BlxtZPxe.js +0 -329
  1189. package/dist/cli/blocks-CHQ7K8Yz.js +0 -1
  1190. package/dist/cli/blocks-D3tsq-mR.js +0 -124
  1191. package/dist/cli/cache-DdgzhoaL.js +0 -516
  1192. package/dist/cli/catalog-DwTUdJaQ.js +0 -188
  1193. package/dist/cli/codemod-Dz4R-tVY.js +0 -1127
  1194. package/dist/cli/command-33pu13LT.js +0 -963
  1195. package/dist/cli/completion-6M6Hr8TL.js +0 -211
  1196. package/dist/cli/completion-Bqu8yq0q.js +0 -1
  1197. package/dist/cli/completion-Ddr3yqd3.js +0 -30
  1198. package/dist/cli/config-2qlSTi2o.js +0 -1503
  1199. package/dist/cli/config-B31tIvAl.js +0 -42
  1200. package/dist/cli/config-DVksOjSr.js +0 -1
  1201. package/dist/cli/config-edit-D46H0UHp.js +0 -613
  1202. package/dist/cli/db-D8iId4R8.js +0 -473
  1203. package/dist/cli/design-edit-B2aBiarJ.js +0 -205
  1204. package/dist/cli/doctor-pIek4vIO.js +0 -3897
  1205. package/dist/cli/emit-CJKf47Bi.js +0 -1078
  1206. package/dist/cli/env-BrLZfqsL.js +0 -143
  1207. package/dist/cli/env-cbCEa79W.js +0 -1
  1208. package/dist/cli/files-C5JfVnj5.js +0 -972
  1209. package/dist/cli/gen-DquZzY5a.js +0 -307
  1210. package/dist/cli/init-Dd-UdrE0.js +0 -397
  1211. package/dist/cli/introspect-IMQCji2l.js +0 -51
  1212. package/dist/cli/keys-iJs_1WT8.js +0 -106
  1213. package/dist/cli/live-BfAO5YRX.js +0 -344
  1214. package/dist/cli/mcp-D8Az0FNn.js +0 -240
  1215. package/dist/cli/metadata-CTStQPfV.js +0 -144
  1216. package/dist/cli/migration-safety-Dg1lxomi.js +0 -305
  1217. package/dist/cli/module-migration-CbX-jRhV.js +0 -606
  1218. package/dist/cli/moved-CdNtCf4t.js +0 -161
  1219. package/dist/cli/names-D6LrQnOv.js +0 -6
  1220. package/dist/cli/parse-CRZLku1b.js +0 -182
  1221. package/dist/cli/preset-DEvwDc7U.js +0 -129
  1222. package/dist/cli/run-BXhJoghZ.js +0 -1602
  1223. package/dist/cli/run-DdxNRTr0.js +0 -63
  1224. package/dist/cli/run-dTu_PD4I.js +0 -711
  1225. package/dist/cli/scaffold-Bx3bcy2R.js +0 -901
  1226. package/dist/cli/scaffold-mbNAQE19.js +0 -1
  1227. package/dist/cli/seed-CLseQdXQ.js +0 -188
  1228. package/dist/cli/seed-DSHSUsYy.js +0 -1
  1229. package/dist/cli/shared-CAdIkTR7.js +0 -151
  1230. package/dist/cli/skills-Bz4INB8f.js +0 -121
  1231. package/dist/cli/snapshot-GfdB9Cjl.js +0 -350
  1232. package/dist/cli/source-args-Dy3j1-H-.js +0 -59
  1233. package/dist/cli/spec-BfEK0_04.js +0 -1
  1234. package/dist/cli/spec-DXTdodlO.js +0 -7534
  1235. package/dist/cli/sql-BUhpAvrW.js +0 -2
  1236. package/dist/cli/sql-CLbWk3Yb.js +0 -332
  1237. package/dist/cli/stack-_F_JhllX.js +0 -135
  1238. package/dist/cli/sync-BBzNO-v9.js +0 -91
  1239. package/dist/cli/typegen-F9GEjpvD.js +0 -502
  1240. package/dist/cli/typegen-version-BNBPI4Eu.js +0 -9
  1241. package/dist/cli/version-DiwcIKOL.js +0 -4
  1242. package/dist/cli/write-DZKk5rSF.js +0 -201
  1243. package/dist/client--tyFmxDT.js +0 -52
  1244. package/dist/client-0qFNkNhT.js +0 -1060
  1245. package/dist/client-2z1aHG57.d.ts +0 -475
  1246. package/dist/client-5IVhjmtl.d.ts +0 -74
  1247. package/dist/client-B3WBilR2.d.ts +0 -69
  1248. package/dist/client-B4JPQgf-.d.ts +0 -165
  1249. package/dist/client-BAYh7P2h.js +0 -211
  1250. package/dist/client-BKGVUgo7.js +0 -380
  1251. package/dist/client-BNaOcfeH.js +0 -58
  1252. package/dist/client-BOuaQA0h.js +0 -173
  1253. package/dist/client-BP-8vn9G.d.ts +0 -37
  1254. package/dist/client-BU5Yd0yO.d.ts +0 -103
  1255. package/dist/client-Bb_Pj9wL.js +0 -137
  1256. package/dist/client-BkH-Vh3s.d.ts +0 -112
  1257. package/dist/client-BsfsRHae.d.ts +0 -136
  1258. package/dist/client-Bta7yl1C.d.ts +0 -451
  1259. package/dist/client-BwKXlohx.js +0 -121
  1260. package/dist/client-C1zOmnS8.js +0 -89
  1261. package/dist/client-CMqO1gCn.d.ts +0 -64
  1262. package/dist/client-CPirbPPi.js +0 -85
  1263. package/dist/client-CQPB-VJx.d.ts +0 -110
  1264. package/dist/client-CXbP_p02.d.ts +0 -156
  1265. package/dist/client-C_S9avzV.d.ts +0 -420
  1266. package/dist/client-Cb1g45Hc.js +0 -99
  1267. package/dist/client-CebKlRU7.js +0 -157
  1268. package/dist/client-Ch-dDfTB.js +0 -437
  1269. package/dist/client-CuFD4o56.d.ts +0 -111
  1270. package/dist/client-D2y_CfhU.d.ts +0 -137
  1271. package/dist/client-DAcVF-YJ.js +0 -134
  1272. package/dist/client-DCuE1rFm.js +0 -441
  1273. package/dist/client-DD02cst6.d.ts +0 -245
  1274. package/dist/client-DD3EcytK.js +0 -65
  1275. package/dist/client-DEE57s9m.d.ts +0 -132
  1276. package/dist/client-DScMvaty.js +0 -38
  1277. package/dist/client-DVRFa59w.d.ts +0 -309
  1278. package/dist/client-DXb1Nmr3.js +0 -111
  1279. package/dist/client-DkI0oyR7.js +0 -76
  1280. package/dist/client-DkQcRKhm.js +0 -67
  1281. package/dist/client-DoXBX3vS.d.ts +0 -116
  1282. package/dist/client-Dsuy9wfA.d.ts +0 -59
  1283. package/dist/client-EQvEzUQg.d.ts +0 -276
  1284. package/dist/client-G7NGXZKe.d.ts +0 -43
  1285. package/dist/client-OhTiAol1.js +0 -213
  1286. package/dist/client-Wt19DaEb.js +0 -291
  1287. package/dist/client-Y-kaHabc.d.ts +0 -46
  1288. package/dist/client-YASsOslj.js +0 -321
  1289. package/dist/client-Y_HnZGF4.js +0 -51
  1290. package/dist/client-_mL998Gl.js +0 -129
  1291. package/dist/client-i_u1e0Kf.d.ts +0 -144
  1292. package/dist/client-kRvHKAKS.js +0 -60
  1293. package/dist/client-nieeGXdg.d.ts +0 -178
  1294. package/dist/client-pxXoQOdC.js +0 -40
  1295. package/dist/client-ysVOUgxM.d.ts +0 -54
  1296. package/dist/cloud-event-CidL9jiw.d.ts +0 -64
  1297. package/dist/codecs-Du_zE1xu.js +0 -358
  1298. package/dist/codecs-WHpM3Byy.d.ts +0 -221
  1299. package/dist/codegen-DGtOsqz9.d.ts +0 -1809
  1300. package/dist/comments-Ceqo9bwE.js +0 -230
  1301. package/dist/compiler-DCotQWcs.d.ts +0 -14
  1302. package/dist/compose-VBQL7zIO.js +0 -53
  1303. package/dist/composite-BgBzdYP-.d.ts +0 -82
  1304. package/dist/composite-BgSdL5tk.js +0 -130
  1305. package/dist/config-V6HMvce5.js +0 -3930
  1306. package/dist/config-xUf0dj0t.js +0 -562
  1307. package/dist/connector-CKcTPJRV.d.ts +0 -107
  1308. package/dist/connectors-CgWuPQks.d.ts +0 -147
  1309. package/dist/context-B8_p3MXo.js +0 -11
  1310. package/dist/context-C-bHOtoD.js +0 -5
  1311. package/dist/context-CCz6ZgyI.js +0 -19
  1312. package/dist/context-CMxVnPMY.js +0 -9
  1313. package/dist/context-CrojkPNC.js +0 -41
  1314. package/dist/context-DvBEhsXX.d.ts +0 -403
  1315. package/dist/controller-lWRcKqCl.d.ts +0 -52
  1316. package/dist/cron-CI1kP-t5.js +0 -148
  1317. package/dist/cron-route-BbVtwXZz.js +0 -24
  1318. package/dist/db-exception-CnWcYPxL.js +0 -15
  1319. package/dist/define-D0LSXmUP.d.ts +0 -1117
  1320. package/dist/define-DwZ_LQVO.js +0 -2011
  1321. package/dist/define-block-B6Gjs57G.js +0 -52
  1322. package/dist/define-block-MyM4lH42.d.ts +0 -281
  1323. package/dist/delegation-DeAJehLk.js +0 -146
  1324. package/dist/documents-BijGGIjr.d.ts +0 -99
  1325. package/dist/embeddings-DRGIc8ti.js +0 -128
  1326. package/dist/embeddings-Deusi99x.d.ts +0 -78
  1327. package/dist/ended-D_Twxl8v.d.ts +0 -76
  1328. package/dist/entitlements-CMGsO4gL.d.ts +0 -54
  1329. package/dist/entitlements-_tw0V3BY.js +0 -45
  1330. package/dist/envelope-BDShQQ7-.js +0 -90
  1331. package/dist/errors-Cq72lONT.js +0 -44
  1332. package/dist/errors-D7u24ZJH.js +0 -321
  1333. package/dist/escape-like-DuKupGUV.d.ts +0 -15
  1334. package/dist/eve-dWNqpd9Z.d.ts +0 -157
  1335. package/dist/event-calendar-E6AI-dgg.d.ts +0 -217
  1336. package/dist/events-DhGgwqQA.d.ts +0 -842
  1337. package/dist/executor-C29668fO.d.ts +0 -281
  1338. package/dist/executor-C5uyGttm.js +0 -207
  1339. package/dist/executor-Cy1nk4MZ.d.ts +0 -104
  1340. package/dist/executor-DK2F9Zis.js +0 -746
  1341. package/dist/executor-DXfgDsKd.d.ts +0 -37
  1342. package/dist/executor-D_viYkhf.d.ts +0 -179
  1343. package/dist/executor-QtVn0axs.js +0 -147
  1344. package/dist/expo-sqlite/index.d.ts +0 -61
  1345. package/dist/expo-sqlite/index.js +0 -110
  1346. package/dist/field-errors-CKEqR38q.d.ts +0 -119
  1347. package/dist/field-errors-DZVRWRkf.js +0 -13
  1348. package/dist/field-formats-BX2FqLle.d.ts +0 -39
  1349. package/dist/filter-evaluate-CRDXv0Dl.js +0 -217
  1350. package/dist/filter-evaluate-CSWhzYWN.d.ts +0 -37
  1351. package/dist/filter-query-C7qgRYYv.d.ts +0 -133
  1352. package/dist/filter-query-D4ZSwbcJ.js +0 -524
  1353. package/dist/flags-C--SBMT9.js +0 -279
  1354. package/dist/flags-CJFDNAvL.d.ts +0 -246
  1355. package/dist/form-definition-BjeElHsB.js +0 -311
  1356. package/dist/form-definition-DcVnFzl4.d.ts +0 -95
  1357. package/dist/format-AYHceC2m.d.ts +0 -79
  1358. package/dist/framework-BpEnOfAo.js +0 -57
  1359. package/dist/framework-CMeAuJts.d.ts +0 -41
  1360. package/dist/function-contract-4vfi93Y5.d.ts +0 -27
  1361. package/dist/gateway-Dar9C0uP.d.ts +0 -115
  1362. package/dist/graph-B4eubUQG.js +0 -365
  1363. package/dist/groups-CxonH3u5.js +0 -16
  1364. package/dist/http-AkLjqOuB.js +0 -28
  1365. package/dist/impersonation-DFfDVJHk.js +0 -62
  1366. package/dist/inbox-CLsIrPXs.d.ts +0 -417
  1367. package/dist/index-B5XcM3VY.d.ts +0 -230
  1368. package/dist/index-B5dVVZtW.d.ts +0 -142
  1369. package/dist/index-Brm8I8iZ.d.ts +0 -232
  1370. package/dist/index-C7-2ZS9f.d.ts +0 -127
  1371. package/dist/index-CE0p3st5.d.ts +0 -227
  1372. package/dist/index-CcpGT2GI.d.ts +0 -151
  1373. package/dist/index-CrAKHNJF.d.ts +0 -287
  1374. package/dist/index-DLjs7j_z.d.ts +0 -61
  1375. package/dist/index-DdZcWH6q.d.ts +0 -820
  1376. package/dist/index-Dh5ZFCtu.d.ts +0 -61
  1377. package/dist/index-PADpaDku.d.ts +0 -447
  1378. package/dist/index-eoAU_QaY.d.ts +0 -357
  1379. package/dist/invalidate-BLiBFbLy.d.ts +0 -19
  1380. package/dist/json-schema-Bu4YCRbZ.js +0 -551
  1381. package/dist/jwks-cache-DbgNmSgV.js +0 -49
  1382. package/dist/kit-BeXTrlZn.js +0 -127
  1383. package/dist/kit-LeQGMzLH.d.ts +0 -94
  1384. package/dist/knowledge-Bx_qehoZ.js +0 -272
  1385. package/dist/knowledge-CYdNJasZ.d.ts +0 -202
  1386. package/dist/list-query-CuS1w2Af.js +0 -559
  1387. package/dist/list-query-Dx5cAqG6.d.ts +0 -223
  1388. package/dist/live-CZtRMh62.js +0 -246
  1389. package/dist/messages-Bd5-5ZjP.js +0 -492
  1390. package/dist/methods-7u6vSgz_.js +0 -11
  1391. package/dist/mfa-Dt8AdWht.d.ts +0 -36
  1392. package/dist/model-Btl8X9cs.d.ts +0 -326
  1393. package/dist/model-messages-BWyXXA4s.js +0 -206
  1394. package/dist/money-codec-BdnIiFFX.js +0 -41
  1395. package/dist/onboarding-DjXV4rgO.js +0 -68
  1396. package/dist/openapi/index.d.ts +0 -4
  1397. package/dist/openapi/index.js +0 -36
  1398. package/dist/operations-Cc27HkTG.d.ts +0 -6
  1399. package/dist/options-B7EJaOX-.js +0 -5
  1400. package/dist/options-BAW2ZlZ8.js +0 -8
  1401. package/dist/options-Blg8lAkz.js +0 -9
  1402. package/dist/options-Bn4cu0gt.js +0 -5
  1403. package/dist/options-BnoJOwXK.js +0 -8
  1404. package/dist/options-C1HR4UZd.js +0 -13
  1405. package/dist/options-C2HesT4A.js +0 -9
  1406. package/dist/options-C3EzJATk.js +0 -10
  1407. package/dist/options-C3hZ1fbC.js +0 -10
  1408. package/dist/options-CAzVf-1T.js +0 -8
  1409. package/dist/options-CGKSUFUq.js +0 -5
  1410. package/dist/options-CGjGE8xS.js +0 -12
  1411. package/dist/options-CIf3xni7.d.ts +0 -52
  1412. package/dist/options-CUqQ9pm7.js +0 -9
  1413. package/dist/options-ChD15QxJ.js +0 -9
  1414. package/dist/options-CyD7OObW.js +0 -17
  1415. package/dist/options-D1blDihM.js +0 -9
  1416. package/dist/options-D2Gd6VfS.js +0 -8
  1417. package/dist/options-D7f2VKzj.js +0 -25
  1418. package/dist/options-DXqcJyOP.js +0 -10
  1419. package/dist/options-Dh4wu9Ks.js +0 -15
  1420. package/dist/options-Dmg1Da9P.js +0 -25
  1421. package/dist/options-DsUgamiy.js +0 -5
  1422. package/dist/options-HSv8R6h5.js +0 -13
  1423. package/dist/options-I8zVkB_y.js +0 -8
  1424. package/dist/options-MHhjOoWz.js +0 -5
  1425. package/dist/options-MLxMkd5B.js +0 -11
  1426. package/dist/options-OJ5zmgr8.js +0 -10
  1427. package/dist/options-QKP9FFcK.js +0 -8
  1428. package/dist/options-XgfTctbI.js +0 -5
  1429. package/dist/options-_9arpsX9.js +0 -11
  1430. package/dist/options-kLKILdIu.js +0 -10
  1431. package/dist/options-n22NK3PL.js +0 -8
  1432. package/dist/options-qU8vgxhO.js +0 -18
  1433. package/dist/options-vXMBEWSH.js +0 -5
  1434. package/dist/options-wFnK3qWl.js +0 -9
  1435. package/dist/options-xVAy3UsV.js +0 -9
  1436. package/dist/organizations-R98kfFwF.js +0 -401
  1437. package/dist/outbox-Bsk-HJnq.d.ts +0 -199
  1438. package/dist/overlay/index.d.ts +0 -249
  1439. package/dist/overlay/index.js +0 -561
  1440. package/dist/payments-6uuergov.js +0 -16
  1441. package/dist/plugin-D9bYbYli.js +0 -45
  1442. package/dist/plugin-DouW0Kvg.d.ts +0 -203
  1443. package/dist/plugins/actor/index.d.ts +0 -19
  1444. package/dist/plugins/actor/index.js +0 -57
  1445. package/dist/plugins/rules/index.d.ts +0 -96
  1446. package/dist/plugins/rules/index.js +0 -235
  1447. package/dist/plugins/soft-delete/index.d.ts +0 -39
  1448. package/dist/plugins/soft-delete/index.js +0 -90
  1449. package/dist/plugins/tenant/index.d.ts +0 -60
  1450. package/dist/plugins/tenant/index.js +0 -119
  1451. package/dist/plugins/timestamps/index.d.ts +0 -11
  1452. package/dist/plugins/timestamps/index.js +0 -47
  1453. package/dist/plugins/validation/index.d.ts +0 -24
  1454. package/dist/plugins/validation/index.js +0 -83
  1455. package/dist/pool-Bu8zXGzI.d.ts +0 -123
  1456. package/dist/pool-errors-DOZ3oDeS.js +0 -27
  1457. package/dist/ports-BltcWsHf.d.ts +0 -312
  1458. package/dist/ports-CM3aG3zn.js +0 -137
  1459. package/dist/ports-n3ZWSS_I.d.ts +0 -89
  1460. package/dist/postgrest-DGjrW4sK.d.ts +0 -53
  1461. package/dist/powersync/react/index.d.ts +0 -93
  1462. package/dist/powersync/react/index.js +0 -120
  1463. package/dist/preset-HNFqCWaD.js +0 -838
  1464. package/dist/problem-D0KDiYPk.js +0 -162
  1465. package/dist/problem-D_DEBfMn.d.ts +0 -79
  1466. package/dist/provider-BhIkKBOh.js +0 -57
  1467. package/dist/provider-Dmsbl8ug.d.ts +0 -112
  1468. package/dist/push-token-8lvtOEv4.d.ts +0 -24
  1469. package/dist/query-DgPYlU82.js +0 -311
  1470. package/dist/rank-result-C6vsw27N.js +0 -18
  1471. package/dist/rank-result-DHflCNwo.d.ts +0 -14
  1472. package/dist/rate-limit-B7N1ZGl6.d.ts +0 -50
  1473. package/dist/rate-limit-CXpPm4_l.js +0 -49
  1474. package/dist/rate-limit-CpTD_WHm.js +0 -328
  1475. package/dist/react-controller-CKSdtJ10.js +0 -43
  1476. package/dist/react-env-CodKZgPk.js +0 -16
  1477. package/dist/react-uvu_KcVY.js +0 -599
  1478. package/dist/read-set-DP6fm21F.js +0 -316
  1479. package/dist/refusal-BEyNVFy7.d.ts +0 -32
  1480. package/dist/refusal-Ce2p81VW.js +0 -64
  1481. package/dist/replicas-BvIL4_jL.js +0 -94
  1482. package/dist/resolve-D57oDWNr.d.ts +0 -289
  1483. package/dist/resolve-sy3_Gz0i.js +0 -892
  1484. package/dist/resource-BRRU-A7j.js +0 -91
  1485. package/dist/resource-BVvIiuX_.js +0 -469
  1486. package/dist/resource-DxQOPkZ5.d.ts +0 -115
  1487. package/dist/resource-execute-BbjuiXwD.d.ts +0 -15
  1488. package/dist/resource-types-NXau9LJE.d.ts +0 -153
  1489. package/dist/resources-CIi7sw1T.js +0 -64
  1490. package/dist/resources-CZ60Vqwq.d.ts +0 -7
  1491. package/dist/respond-DjEmE_DN.js +0 -100
  1492. package/dist/respond-QW-f1yio.d.ts +0 -101
  1493. package/dist/result-DIT_qp4G.js +0 -146
  1494. package/dist/result-mijqfoJN.d.ts +0 -346
  1495. package/dist/rrule-CesB9Rxd.js +0 -290
  1496. package/dist/rules-D75V7dAE.js +0 -286
  1497. package/dist/run-state-CPo-1X2B.d.ts +0 -12
  1498. package/dist/sales-lines-9HsX89aO.d.ts +0 -28
  1499. package/dist/sales-lines-DgXeOEar.js +0 -41
  1500. package/dist/sales-shared-CjXsy0NJ.js +0 -22
  1501. package/dist/sales-shared-DAAGwQwN.d.ts +0 -8
  1502. package/dist/search-9hoZ8rN1.js +0 -106
  1503. package/dist/server-types-D_cQ6OxZ.d.ts +0 -809
  1504. package/dist/session-DNRYXIOU.d.ts +0 -97
  1505. package/dist/settings-DzQtMwfl.js +0 -93
  1506. package/dist/shared-C80IHf4B.js +0 -60
  1507. package/dist/shared-D11SWNLx.js +0 -17
  1508. package/dist/sign-in-B_QJ2u62.js +0 -386
  1509. package/dist/signatures-CzqfLlfV.d.ts +0 -43
  1510. package/dist/signatures-D8IoN3Rw.js +0 -145
  1511. package/dist/signers-BuVQKDfK.d.ts +0 -390
  1512. package/dist/signing-keys-i2Rsll6L.d.ts +0 -119
  1513. package/dist/solid-controller-7TxGaJNy.js +0 -33
  1514. package/dist/solid-controller-BnF3ovwV.d.ts +0 -11
  1515. package/dist/spec-pins-CZ2CL8YZ.d.ts +0 -120
  1516. package/dist/spec-pins-D3Tm6HJi.js +0 -60
  1517. package/dist/sql-CQIikLnQ.js +0 -421
  1518. package/dist/sql-frpIs51D.js +0 -89308
  1519. package/dist/sso-C86TPpZr.js +0 -217
  1520. package/dist/sso-D_am-gBz.d.ts +0 -161
  1521. package/dist/standard-16AIDny5.d.ts +0 -7
  1522. package/dist/standard-l10kE0yS.js +0 -25
  1523. package/dist/stats-Bt1RyT-F.js +0 -1147
  1524. package/dist/store-DKqbuNvw.d.ts +0 -83
  1525. package/dist/stripe-BSEwKCni.d.ts +0 -140
  1526. package/dist/subject-readers-BJzh7WF7.js +0 -49
  1527. package/dist/subject-readers-Bbq1i0Ol.d.ts +0 -21
  1528. package/dist/subjects-DQ2SU4cA.d.ts +0 -77
  1529. package/dist/support-CWVTM2AB.js +0 -534
  1530. package/dist/support-view-BOJJSZKv.d.ts +0 -17
  1531. package/dist/svelte-controller-BmRhHvFz.js +0 -50
  1532. package/dist/svelte-controller-DXO7gsmS.d.ts +0 -13
  1533. package/dist/table-schema-xqSXrjCN.js +0 -284
  1534. package/dist/tags-C_ym1yDM.js +0 -39
  1535. package/dist/tags-Co-QIHeK.js +0 -84
  1536. package/dist/tags-tbiuHHMV.d.ts +0 -30
  1537. package/dist/tanstack-db/supabase/index.d.ts +0 -66
  1538. package/dist/tanstack-db/supabase/index.js +0 -271
  1539. package/dist/tax-BHSCb5Rw.d.ts +0 -280
  1540. package/dist/tax-keSd-q_1.js +0 -140
  1541. package/dist/tee-1fsH3bEz.js +0 -101
  1542. package/dist/template-DXsGm_R0.js +0 -126
  1543. package/dist/temporal-required-Dt4mcPsi.js +0 -20
  1544. package/dist/tenant-DnMqeNIM.js +0 -27
  1545. package/dist/tenant-l3H2ouv7.d.ts +0 -17
  1546. package/dist/tenant-naming-Bsj3Uvap.js +0 -27
  1547. package/dist/timing-C5NzaEgy.js +0 -95
  1548. package/dist/topic-CZvLXFND.d.ts +0 -415
  1549. package/dist/topic-Cr01EHZy.js +0 -643
  1550. package/dist/types-BTK75521.js +0 -8
  1551. package/dist/types-Bzm0OgJk.d.ts +0 -177
  1552. package/dist/types-CB5MvzuE.d.ts +0 -624
  1553. package/dist/types-DYXhFhmQ.d.ts +0 -251
  1554. package/dist/types-DmshMaXz.d.ts +0 -421
  1555. package/dist/types-EUrisY2U.d.ts +0 -217
  1556. package/dist/types-vVsLvOUJ.d.ts +0 -700
  1557. package/dist/undo-CClrTbm9.d.ts +0 -46
  1558. package/dist/undo-HHonvNeg.js +0 -44
  1559. package/dist/upload-claim-DCuklVyh.js +0 -33
  1560. package/dist/usage-BFwuH7GK.d.ts +0 -232
  1561. package/dist/usage-CJmmCGzd.js +0 -264
  1562. package/dist/user-change-CSR_prhd.js +0 -133
  1563. package/dist/variants-Bat9zU8l.js +0 -53
  1564. package/dist/vault-BQThkbws.d.ts +0 -62
  1565. package/dist/verify-BCmBaHlN.js +0 -130
  1566. package/dist/verify-BTAEsJbF.d.ts +0 -146
  1567. package/dist/view-CKzCp8FW.d.ts +0 -90
  1568. package/dist/view-CfUd5vI9.js +0 -108
  1569. package/dist/vue-controller-DCOtUOA_.d.ts +0 -11
  1570. package/dist/vue-controller-EzyTjqca.js +0 -32
  1571. package/dist/watch-CYeMXFtj.d.ts +0 -92
  1572. package/dist/watch-Cnd6XDnU.js +0 -139
  1573. package/dist/watch-topic-CloXeDTO.d.ts +0 -31
  1574. package/dist/wire-BJhepFbv.js +0 -66
  1575. package/dist/workflow-builder-DzZNlI45.js +0 -699
  1576. package/dist/workflow-sdk-BXwl1THQ.d.ts +0 -163
  1577. package/dist/workflow-sdk-CPGiFE1B.js +0 -242
  1578. package/dist/workflow-sdk-world-BOEsvWmx.js +0 -2123
  1579. package/dist/workflows-BHyYAR6c.d.ts +0 -258
  1580. package/dist/workflows-otOMN33L.js +0 -285
  1581. package/skills/better-supabase/references/plugins.md +0 -71
@@ -1,3930 +0,0 @@
1
- //#region src/config/names.ts
2
- /** The steps `better-supabase gen` runs, in the order it runs them. */
3
- const GEN_TASKS = [
4
- "types",
5
- "sql",
6
- "spec",
7
- "seed",
8
- "scaffold",
9
- "env"
10
- ];
11
- /** Glue `better-supabase init` and `add` write for a framework or runtime. */
12
- const INTEGRATION_NAMES = [
13
- "next",
14
- "hono",
15
- "orpc",
16
- "edge",
17
- "expo",
18
- "mcp",
19
- "client",
20
- "react"
21
- ];
22
- const INTEGRATION_INFO = {
23
- client: {
24
- title: "Browser client",
25
- description: "A browser client with cookie sessions shared with the server.",
26
- requires: []
27
- },
28
- next: {
29
- title: "Next.js",
30
- description: "The proxy, and helpers for Server Components, route handlers and actions.",
31
- requires: ["client"]
32
- },
33
- react: {
34
- title: "React",
35
- description: "A React provider and typed TanStack Query hooks.",
36
- requires: ["client"]
37
- },
38
- hono: {
39
- title: "Hono",
40
- description: "Hono middleware, handlers and REST resources.",
41
- requires: []
42
- },
43
- orpc: {
44
- title: "oRPC",
45
- description: "oRPC middleware with a typed context and ORPCError mapping.",
46
- requires: []
47
- },
48
- edge: {
49
- title: "Edge Function",
50
- description: "A Supabase Edge Function with CORS and Problem Details.",
51
- requires: []
52
- },
53
- expo: {
54
- title: "Expo",
55
- description: "Expo Router server loaders, API routes and middleware, and a native client.",
56
- requires: ["client"]
57
- },
58
- mcp: {
59
- title: "MCP server",
60
- description: "An MCP server over Streamable HTTP, as an Edge Function.",
61
- requires: []
62
- }
63
- };
64
- /** The agent folders `better-supabase skills install` writes to. */
65
- const SKILLS_AGENTS = [
66
- "cursor",
67
- "claude",
68
- "agents"
69
- ];
70
- //#endregion
71
- //#region src/preset/blocks.ts
72
- /**
73
- * Every block a preset code can select, by bit position. Append-only: a new
74
- * block goes at the end, and a removed block becomes `null` (a tombstone) so
75
- * the blocks after it keep their bits. A test checks that it lists every SQL
76
- * module.
77
- */
78
- const PRESET_BLOCKS = [
79
- "updated-at",
80
- "actor",
81
- "audit",
82
- "tenant",
83
- "invitations",
84
- "reserved-slugs",
85
- "jobs",
86
- "idempotency",
87
- "webhook-inbox",
88
- "realtime-tables",
89
- "jsonb-schemas",
90
- "pgtap",
91
- "grants",
92
- "read-sets",
93
- "mfa",
94
- "entitlements",
95
- "rate-limit",
96
- "vector-search",
97
- "access",
98
- "support-sessions",
99
- "organizations",
100
- "profiles",
101
- "outbox",
102
- "notifications",
103
- "webhooks-out",
104
- "sessions",
105
- "webhooks-in",
106
- "api-keys",
107
- "settings",
108
- "usage",
109
- "billing",
110
- "flags",
111
- "comments",
112
- "attachments",
113
- "data-lifecycle",
114
- "sso",
115
- "onboarding",
116
- "waitlist",
117
- "announcements",
118
- "streams",
119
- "credentials",
120
- "workflows",
121
- "workflow-sdk-world",
122
- "workflow-builder",
123
- "chat-sdk-state",
124
- "inbox",
125
- "ai-chat",
126
- "ai-files",
127
- "knowledge",
128
- "memory",
129
- "agents",
130
- "connectors",
131
- "ai-tasks",
132
- "push",
133
- "ai-cache",
134
- "ai-providers",
135
- "number-sequences",
136
- "teams",
137
- "tags",
138
- "state-machine",
139
- "custom-fields",
140
- "share-links",
141
- "reminders",
142
- "imports",
143
- "subjects",
144
- "rank",
145
- "saved-views",
146
- "relations",
147
- "bulk",
148
- "search",
149
- "metrics",
150
- "calendar",
151
- "bookings",
152
- "versions",
153
- "trash",
154
- "reactions",
155
- "approvals",
156
- "access-requests",
157
- "documents",
158
- "catalog",
159
- "inventory",
160
- "drive",
161
- "drive-files",
162
- "orders",
163
- "promotions",
164
- "forms",
165
- "signatures",
166
- "time-tracking",
167
- "identities",
168
- "service-principals",
169
- "templates",
170
- "pipelines",
171
- "parties",
172
- "engagements",
173
- "deals",
174
- "work-items",
175
- "quotes",
176
- "invoices",
177
- "sla",
178
- "targets",
179
- "hiring",
180
- "employees",
181
- "collections",
182
- "ensure-rls",
183
- "signing-keys",
184
- "shared-signals",
185
- "oauth-server",
186
- "domains",
187
- "reviews",
188
- "leave",
189
- "rules",
190
- "vercel-marketplace"
191
- ];
192
- //#endregion
193
- //#region src/preset/fields.ts
194
- /** Types a field's values against `PresetConventions`. */
195
- function field(definition) {
196
- return definition;
197
- }
198
- function integrationLabel(name) {
199
- const { title, description } = INTEGRATION_INFO[name];
200
- return {
201
- label: title,
202
- hint: description
203
- };
204
- }
205
- /** The tenant names a preset can set (`sql.naming.tenant`), in code order. */
206
- const PRESET_TENANT_NAMES = [
207
- "organization",
208
- "workspace",
209
- "team"
210
- ];
211
- /** The frameworks `/create` and `init --preset` set up glue for. */
212
- const PRESET_FRAMEWORKS = [
213
- "next",
214
- "vite",
215
- "tanstack-start",
216
- "expo",
217
- "sveltekit",
218
- "nuxt",
219
- "hono",
220
- "astro",
221
- "react-router"
222
- ];
223
- /**
224
- * The convention fields, in code order. Append new fields at the end with the
225
- * next `since`, and never remove or reorder one.
226
- */
227
- const PRESET_FIELDS = [
228
- field({
229
- key: "framework",
230
- label: "Framework",
231
- values: PRESET_FRAMEWORKS,
232
- labels: {
233
- next: { label: "Next.js" },
234
- vite: { label: "Vite" },
235
- "tanstack-start": { label: "TanStack Start" },
236
- expo: { label: "Expo" },
237
- sveltekit: { label: "SvelteKit" },
238
- nuxt: { label: "Nuxt" },
239
- hono: { label: "Hono" },
240
- astro: { label: "Astro" },
241
- "react-router": { label: "React Router" }
242
- },
243
- default: "next",
244
- bits: 5,
245
- since: 1
246
- }),
247
- field({
248
- key: "platforms",
249
- label: "Platforms",
250
- values: [
251
- "web",
252
- "native",
253
- "both"
254
- ],
255
- labels: {
256
- web: { label: "Web" },
257
- native: { label: "Native" },
258
- both: { label: "Web and native" }
259
- },
260
- default: "web",
261
- bits: 2,
262
- since: 1
263
- }),
264
- field({
265
- key: "casing",
266
- label: "Casing",
267
- values: ["snake", "camel"],
268
- labels: {
269
- snake: {
270
- label: "snake_case",
271
- hint: "Rows keep the database names."
272
- },
273
- camel: {
274
- label: "camelCase",
275
- hint: "Rows are renamed inside the PostgREST query."
276
- }
277
- },
278
- default: "snake",
279
- bits: 2,
280
- since: 1
281
- }),
282
- field({
283
- key: "idType",
284
- label: "ID type",
285
- values: [
286
- "uuid",
287
- "text",
288
- "bigint",
289
- "integer"
290
- ],
291
- labels: {
292
- uuid: { label: "UUID" },
293
- text: { label: "Text" },
294
- bigint: { label: "Bigint" },
295
- integer: { label: "Integer" }
296
- },
297
- default: "uuid",
298
- bits: 3,
299
- since: 1
300
- }),
301
- field({
302
- key: "scope",
303
- label: "Row ownership",
304
- values: [
305
- "tenant",
306
- "user",
307
- "none"
308
- ],
309
- labels: {
310
- tenant: {
311
- label: "Per tenant",
312
- hint: "Rows belong to a tenant, checked through access."
313
- },
314
- user: {
315
- label: "Per user",
316
- hint: "Rows belong to the signed-in user."
317
- },
318
- none: {
319
- label: "Shared",
320
- hint: "One shared space for every signed-in user."
321
- }
322
- },
323
- default: "tenant",
324
- bits: 2,
325
- since: 1
326
- }),
327
- field({
328
- key: "tenantName",
329
- label: "Tenant name",
330
- values: PRESET_TENANT_NAMES,
331
- labels: {
332
- organization: { label: "Organization" },
333
- workspace: { label: "Workspace" },
334
- team: { label: "Team" }
335
- },
336
- default: "organization",
337
- bits: 3,
338
- since: 1
339
- }),
340
- field({
341
- key: "access",
342
- label: "Auth and permissions",
343
- values: [
344
- "roles",
345
- "catalog",
346
- "provider",
347
- "custom"
348
- ],
349
- labels: {
350
- roles: {
351
- label: "Built-in roles",
352
- hint: "Owner, admin, member and viewer, mapped to permission keys in the config."
353
- },
354
- catalog: {
355
- label: "Permissions tables",
356
- hint: "Role, permission and override tables in the database."
357
- },
358
- provider: {
359
- label: "Your own provider",
360
- hint: "Any library that implements AuthorizationProvider."
361
- },
362
- custom: {
363
- label: "Custom SQL",
364
- hint: "Your own SQL expressions."
365
- }
366
- },
367
- default: "roles",
368
- bits: 3,
369
- since: 1
370
- }),
371
- field({
372
- key: "api",
373
- label: "API schema",
374
- values: ["none", "api"],
375
- labels: {
376
- none: {
377
- label: "Module schema only",
378
- hint: "The Data API reaches no module tables."
379
- },
380
- api: {
381
- label: "Data API schema (api)",
382
- hint: "Security invoker wrappers in an api schema, so the Data API reaches them without exposing the module schema."
383
- }
384
- },
385
- default: "none",
386
- bits: 2,
387
- since: 1
388
- }),
389
- field({
390
- key: "integrations",
391
- label: "Integrations",
392
- values: [
393
- "next",
394
- "hono",
395
- "orpc",
396
- "edge",
397
- "expo",
398
- "mcp",
399
- "client",
400
- "react"
401
- ],
402
- labels: {
403
- next: integrationLabel("next"),
404
- hono: integrationLabel("hono"),
405
- orpc: integrationLabel("orpc"),
406
- edge: integrationLabel("edge"),
407
- expo: integrationLabel("expo"),
408
- mcp: integrationLabel("mcp"),
409
- client: integrationLabel("client"),
410
- react: integrationLabel("react")
411
- },
412
- default: [],
413
- bits: 16,
414
- multi: true,
415
- since: 1
416
- })
417
- ];
418
- /** A convention field by key, with its values and labels typed. */
419
- function presetField(key) {
420
- const found = PRESET_FIELDS.find((each) => each.key === key);
421
- if (found === void 0) throw new Error(`Unknown preset field ${key}`);
422
- return found;
423
- }
424
- /** A field value's label, or the value itself when it has none. */
425
- function presetValueLabel(key, value) {
426
- const labels = presetField(key).labels;
427
- return (Object.hasOwn(labels, value) ? labels[value] : void 0) ?? { label: value };
428
- }
429
- /**
430
- * The integrations `init --preset` adds for a framework whatever the selection
431
- * says: the framework's own one, when it has one, then what that one requires.
432
- */
433
- function integrationsForFramework(framework) {
434
- const own = INTEGRATION_NAMES.find((name) => name === framework);
435
- return own === void 0 ? [] : [own, ...INTEGRATION_INFO[own].requires];
436
- }
437
- /** The newest code version; `encodePreset` writes it. */
438
- const PRESET_VERSION = 1;
439
- /** Every convention at its default. */
440
- const DEFAULT_CONVENTIONS = {
441
- framework: "next",
442
- platforms: "web",
443
- casing: "snake",
444
- idType: "uuid",
445
- scope: "tenant",
446
- tenantName: "organization",
447
- access: "roles",
448
- api: "none",
449
- integrations: []
450
- };
451
- //#endregion
452
- //#region src/preset/code.ts
453
- const BASE62 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
454
- const LAYOUT = {
455
- fields: PRESET_FIELDS,
456
- blocks: PRESET_BLOCKS,
457
- version: 1
458
- };
459
- function toBase62(value) {
460
- if (value === 0n) return "0";
461
- let out = "";
462
- let rest = value;
463
- while (rest > 0n) {
464
- out = BASE62.charAt(Number(rest % 62n)) + out;
465
- rest /= 62n;
466
- }
467
- return out;
468
- }
469
- /** `text` holds only base62 digits (`isPresetCode`). */
470
- function fromBase62(text) {
471
- let value = 0n;
472
- for (const char of text) value = value * 62n + BigInt(BASE62.indexOf(char));
473
- return value;
474
- }
475
- const mask = (bits) => (1n << BigInt(bits)) - 1n;
476
- /** The conventions as a record, for reading a field by its key. */
477
- function valueOf(preset, key) {
478
- const entry = Object.entries(preset).find(([name]) => name === key)?.[1];
479
- if (typeof entry === "string") return entry;
480
- return Array.isArray(entry) && entry.every((each) => typeof each === "string") ? entry : void 0;
481
- }
482
- function indexIn(field, value) {
483
- const index = field.values.indexOf(value);
484
- if (index === -1) throw new TypeError(`Preset ${field.key} "${value}" is not one of ${field.values.join(", ")}.`);
485
- return index;
486
- }
487
- /**
488
- * The preset as a code: a version character, then base62 of one BigInt that
489
- * holds each field's value index and a bit per selected block.
490
- */
491
- function encodePreset(preset, layout = LAYOUT) {
492
- return encodeWith((key) => valueOf(preset, key), preset.blocks ?? [], layout);
493
- }
494
- function encodeWith(read, blocks, layout) {
495
- let value = 0n;
496
- let offset = 0n;
497
- for (const field of layout.fields) {
498
- const given = read(field.key) ?? field.default;
499
- let bits;
500
- if (field.multi === true) {
501
- const list = typeof given === "string" ? [given] : given;
502
- bits = 0n;
503
- for (const each of list) bits |= 1n << BigInt(indexIn(field, each));
504
- } else bits = BigInt(indexIn(field, typeof given === "string" ? given : ""));
505
- value |= bits << offset;
506
- offset += BigInt(field.bits);
507
- }
508
- for (const name of new Set(blocks)) {
509
- const index = layout.blocks.indexOf(name);
510
- if (index === -1) throw new TypeError(`Preset block "${name}" is not a block. Blocks: ${layout.blocks.filter((each) => each !== null).join(", ")}`);
511
- value |= 1n << offset + BigInt(index);
512
- }
513
- return BASE62.charAt(layout.version) + toBase62(value);
514
- }
515
- /**
516
- * The preset with one convention set to `value`, checked against the field: a
517
- * value the field doesn't list throws. For a field that takes several values
518
- * (`integrations`), `value` switches that one on or off.
519
- */
520
- function withPresetField(preset, key, value) {
521
- const field = LAYOUT.fields.find((each) => each.key === key);
522
- const current = valueOf(preset, key);
523
- let next = value;
524
- if (field?.multi === true) {
525
- const list = typeof current === "string" ? [current] : current ?? [];
526
- next = list.includes(value) ? list.filter((each) => each !== value) : [...list, value];
527
- }
528
- return {
529
- ...decodePreset(encodeWith((name) => name === key ? next : valueOf(preset, name), preset.blocks, LAYOUT)).preset,
530
- blocks: preset.blocks
531
- };
532
- }
533
- /**
534
- * Reads a code from `encodePreset`. A code from an older version decodes with
535
- * the fields it predates at their defaults, listed in `derived`. A code from a
536
- * newer release throws, naming the upgrade.
537
- */
538
- function decodePreset(code, layout = LAYOUT) {
539
- const version = BASE62.indexOf(code.charAt(0));
540
- if (!isPresetCode(code)) throw new TypeError(`"${code}" is not a preset code: a code starts with its version, such as "${BASE62.charAt(layout.version)}".`);
541
- if (version > layout.version) throw new TypeError(`Preset code "${code}" is version ${String(version)}; this better-supabase reads up to ${String(layout.version)}. Upgrade better-supabase.`);
542
- let value = fromBase62(code.slice(1));
543
- const conventions = {};
544
- const derived = [];
545
- for (const field of layout.fields) {
546
- if (field.since > version) {
547
- conventions[field.key] = field.default;
548
- derived.push(field.key);
549
- continue;
550
- }
551
- const bits = value & mask(field.bits);
552
- value >>= BigInt(field.bits);
553
- if (field.multi === true) {
554
- const list = [];
555
- for (const [index, each] of field.values.entries()) if (bits >> BigInt(index) & 1n) list.push(each);
556
- if (bits >> BigInt(field.values.length) !== 0n) newer(code, field.key);
557
- conventions[field.key] = list;
558
- } else {
559
- const each = field.values[Number(bits)];
560
- if (each === void 0) newer(code, field.key);
561
- conventions[field.key] = each;
562
- }
563
- }
564
- const blocks = [];
565
- for (let index = 0; value > 0n; index += 1, value >>= 1n) {
566
- if ((value & 1n) === 0n) continue;
567
- if (index >= layout.blocks.length) newer(code, "blocks");
568
- const name = layout.blocks[index];
569
- if (name !== null && name !== void 0) blocks.push(name);
570
- }
571
- return {
572
- preset: {
573
- ...DEFAULT_CONVENTIONS,
574
- ...conventions,
575
- blocks
576
- },
577
- version,
578
- derived
579
- };
580
- }
581
- function newer(code, key) {
582
- throw new TypeError(`Preset code "${code}" sets a ${key} value this better-supabase doesn't know. Upgrade better-supabase.`);
583
- }
584
- /**
585
- * Whether `value` reads as a preset code rather than a preset name: a version
586
- * character (`1` to `9`, then `A` to `Z`) and base62 digits.
587
- */
588
- function isPresetCode(value) {
589
- return /^[1-9A-Z][0-9A-Za-z]+$/.test(value);
590
- }
591
- //#endregion
592
- //#region src/preset/presets.ts
593
- /** The preset groups in display order, with their headings. */
594
- const PRESET_GROUPS = {
595
- starters: "Starters",
596
- products: "Products",
597
- ai: "AI",
598
- platforms: "Platforms",
599
- everything: "Everything"
600
- };
601
- const SAAS = [
602
- "organizations",
603
- "invitations",
604
- "teams",
605
- "profiles",
606
- "billing",
607
- "entitlements",
608
- "notifications",
609
- "audit",
610
- "api-keys",
611
- "settings",
612
- "onboarding",
613
- "outbox"
614
- ];
615
- /** The named presets, for `defineConfig({ preset })` and `/create`. */
616
- const PRESETS = {
617
- minimal: {
618
- name: "minimal",
619
- title: "Minimal",
620
- description: "User profiles, for an app without tenants yet.",
621
- group: "starters",
622
- blocks: ["profiles"]
623
- },
624
- saas: {
625
- name: "saas",
626
- title: "SaaS",
627
- description: "Organizations with invitations and teams, billing and entitlements, notifications, the audit log, API keys, settings and onboarding.",
628
- group: "starters",
629
- blocks: SAAS
630
- },
631
- consumer: {
632
- name: "consumer",
633
- title: "Consumer app",
634
- description: "Data owned by each user, with profiles, linked identities, MFA, sessions, notifications and push.",
635
- group: "starters",
636
- blocks: [
637
- "profiles",
638
- "identities",
639
- "mfa",
640
- "sessions",
641
- "notifications",
642
- "push"
643
- ],
644
- conventions: { scope: "user" }
645
- },
646
- crm: {
647
- name: "crm",
648
- title: "CRM",
649
- description: "SaaS plus parties, pipelines and engagements, with tags, comments, custom fields, saved views and search.",
650
- group: "products",
651
- blocks: [
652
- ...SAAS,
653
- "parties",
654
- "pipelines",
655
- "engagements",
656
- "tags",
657
- "comments",
658
- "custom-fields",
659
- "saved-views",
660
- "search"
661
- ]
662
- },
663
- projects: {
664
- name: "projects",
665
- title: "Projects",
666
- description: "SaaS plus tags, comments, attachments, a state machine, ranked ordering, reminders and time tracking.",
667
- group: "products",
668
- blocks: [
669
- ...SAAS,
670
- "tags",
671
- "comments",
672
- "attachments",
673
- "state-machine",
674
- "rank",
675
- "reminders",
676
- "time-tracking"
677
- ]
678
- },
679
- helpdesk: {
680
- name: "helpdesk",
681
- title: "Help desk",
682
- description: "SaaS plus a shared inbox, work items with SLAs, comments, attachments, tags, saved views, a knowledge base and search.",
683
- group: "products",
684
- blocks: [
685
- ...SAAS,
686
- "inbox",
687
- "work-items",
688
- "sla",
689
- "comments",
690
- "attachments",
691
- "tags",
692
- "saved-views",
693
- "knowledge",
694
- "search"
695
- ]
696
- },
697
- commerce: {
698
- name: "commerce",
699
- title: "Commerce",
700
- description: "SaaS plus a product catalog, inventory, orders and promotions.",
701
- group: "products",
702
- blocks: [
703
- ...SAAS,
704
- "catalog",
705
- "inventory",
706
- "orders",
707
- "promotions"
708
- ]
709
- },
710
- marketplace: {
711
- name: "marketplace",
712
- title: "Marketplace",
713
- description: "SaaS plus parties, a product catalog, orders, invoices, reactions and share links.",
714
- group: "products",
715
- blocks: [
716
- ...SAAS,
717
- "parties",
718
- "catalog",
719
- "orders",
720
- "invoices",
721
- "reactions",
722
- "share-links"
723
- ]
724
- },
725
- scheduling: {
726
- name: "scheduling",
727
- title: "Scheduling",
728
- description: "SaaS plus calendars, bookings and reminders, for a clinic, a studio or a salon.",
729
- group: "products",
730
- blocks: [
731
- ...SAAS,
732
- "calendar",
733
- "bookings",
734
- "reminders"
735
- ]
736
- },
737
- people: {
738
- name: "people",
739
- title: "HR and people",
740
- description: "SaaS plus employees, hiring, time tracking, approvals, calendars and documents.",
741
- group: "products",
742
- blocks: [
743
- ...SAAS,
744
- "employees",
745
- "hiring",
746
- "time-tracking",
747
- "approvals",
748
- "calendar",
749
- "documents"
750
- ]
751
- },
752
- drive: {
753
- name: "drive",
754
- title: "Cloud drive",
755
- description: "SaaS plus a drive with attachments, share links, versions, trash and search.",
756
- group: "products",
757
- blocks: [
758
- ...SAAS,
759
- "drive",
760
- "attachments",
761
- "share-links",
762
- "versions",
763
- "trash",
764
- "search"
765
- ]
766
- },
767
- docs: {
768
- name: "docs",
769
- title: "Docs and wiki",
770
- description: "SaaS plus documents with versions, comments, reactions, templates, search and share links.",
771
- group: "products",
772
- blocks: [
773
- ...SAAS,
774
- "documents",
775
- "versions",
776
- "comments",
777
- "reactions",
778
- "templates",
779
- "search",
780
- "share-links"
781
- ]
782
- },
783
- invoicing: {
784
- name: "invoicing",
785
- title: "Invoicing",
786
- description: "SaaS plus parties, quotes, invoices and number sequences for their numbers.",
787
- group: "products",
788
- blocks: [
789
- ...SAAS,
790
- "parties",
791
- "quotes",
792
- "invoices",
793
- "number-sequences"
794
- ]
795
- },
796
- forms: {
797
- name: "forms",
798
- title: "Forms and surveys",
799
- description: "SaaS plus forms, templates and imports.",
800
- group: "products",
801
- blocks: [
802
- ...SAAS,
803
- "forms",
804
- "templates",
805
- "imports"
806
- ]
807
- },
808
- ai: {
809
- name: "ai",
810
- title: "AI workspace",
811
- description: "SaaS plus AI chat, files, a knowledge base, memory, agents and background AI tasks.",
812
- group: "ai",
813
- blocks: [
814
- ...SAAS,
815
- "ai-chat",
816
- "ai-files",
817
- "knowledge",
818
- "memory",
819
- "agents",
820
- "ai-tasks"
821
- ]
822
- },
823
- "ai-chat": {
824
- name: "ai-chat",
825
- title: "AI chat",
826
- description: "SaaS plus AI chat with files, a knowledge base, memory, model providers and usage metering.",
827
- group: "ai",
828
- blocks: [
829
- ...SAAS,
830
- "ai-chat",
831
- "ai-files",
832
- "knowledge",
833
- "memory",
834
- "ai-providers",
835
- "usage"
836
- ]
837
- },
838
- "ai-agents": {
839
- name: "ai-agents",
840
- title: "AI agents",
841
- description: "SaaS plus agents with background tasks, approvals, connectors, credentials, workflows and metrics.",
842
- group: "ai",
843
- blocks: [
844
- ...SAAS,
845
- "agents",
846
- "ai-tasks",
847
- "approvals",
848
- "connectors",
849
- "credentials",
850
- "workflows",
851
- "metrics"
852
- ]
853
- },
854
- "developer-api": {
855
- name: "developer-api",
856
- title: "Developer API",
857
- description: "SaaS plus outgoing webhooks, usage metering, service principals and signing keys.",
858
- group: "platforms",
859
- blocks: [
860
- ...SAAS,
861
- "webhooks-out",
862
- "usage",
863
- "service-principals",
864
- "signing-keys"
865
- ]
866
- },
867
- automation: {
868
- name: "automation",
869
- title: "Workflow automation",
870
- description: "SaaS plus a workflow builder, workflows, jobs, outgoing webhooks, connectors and credentials.",
871
- group: "platforms",
872
- blocks: [
873
- ...SAAS,
874
- "workflow-builder",
875
- "workflows",
876
- "jobs",
877
- "webhooks-out",
878
- "connectors",
879
- "credentials"
880
- ]
881
- },
882
- enterprise: {
883
- name: "enterprise",
884
- title: "Enterprise-ready",
885
- description: "SaaS plus SSO, MFA, sessions, access requests, support sessions, data export and deletion, and grants.",
886
- group: "platforms",
887
- blocks: [
888
- ...SAAS,
889
- "sso",
890
- "mfa",
891
- "sessions",
892
- "access-requests",
893
- "support-sessions",
894
- "data-lifecycle",
895
- "grants"
896
- ]
897
- },
898
- admin: {
899
- name: "admin",
900
- title: "Internal admin",
901
- description: "SaaS plus feature flags, metrics, approvals, saved views and bulk actions.",
902
- group: "platforms",
903
- blocks: [
904
- ...SAAS,
905
- "flags",
906
- "metrics",
907
- "approvals",
908
- "saved-views",
909
- "bulk"
910
- ]
911
- },
912
- everything: {
913
- name: "everything",
914
- title: "Everything",
915
- description: "Every block, for demos and tests.",
916
- group: "everything",
917
- blocks: PRESET_BLOCKS.filter((name) => name !== null)
918
- }
919
- };
920
- /** The named presets in display order, grouped by `group`. */
921
- const PRESET_NAMES = [
922
- "minimal",
923
- "saas",
924
- "consumer",
925
- "crm",
926
- "projects",
927
- "helpdesk",
928
- "commerce",
929
- "marketplace",
930
- "scheduling",
931
- "people",
932
- "drive",
933
- "docs",
934
- "invoicing",
935
- "forms",
936
- "ai",
937
- "ai-chat",
938
- "ai-agents",
939
- "developer-api",
940
- "automation",
941
- "enterprise",
942
- "admin",
943
- "everything"
944
- ];
945
- function isPresetName(value) {
946
- return PRESET_NAMES.some((name) => name === value);
947
- }
948
- /** The named preset as a `Preset`: the default conventions, then its own. */
949
- function namedPreset(name) {
950
- const { blocks, conventions } = PRESETS[name];
951
- return {
952
- ...DEFAULT_CONVENTIONS,
953
- ...conventions,
954
- blocks
955
- };
956
- }
957
- /** The preset `/create` and `init` start from. */
958
- const DEFAULT_PRESET_NAME = "saas";
959
- /** The default preset as a `Preset`, so a new design can start from it. */
960
- function defaultPreset() {
961
- return namedPreset(DEFAULT_PRESET_NAME);
962
- }
963
- /** The default preset's code, for a `/create` URL or `init --preset`. */
964
- function defaultPresetCode() {
965
- return encodePreset(defaultPreset());
966
- }
967
- //#endregion
968
- //#region src/preset/catalog.generated.ts
969
- const PRESET_CATALOG = {
970
- "blocks": [
971
- {
972
- "name": "updated-at",
973
- "title": "Update timestamps",
974
- "category": "database",
975
- "requires": [],
976
- "integrates": [],
977
- "manifest": "updated-at"
978
- },
979
- {
980
- "name": "actor",
981
- "title": "Actor stamping",
982
- "category": "identity",
983
- "requires": [],
984
- "integrates": [],
985
- "manifest": "actor"
986
- },
987
- {
988
- "name": "audit",
989
- "title": "Audit log",
990
- "category": "admin",
991
- "requires": [],
992
- "integrates": [
993
- "access",
994
- "organizations",
995
- "data-lifecycle"
996
- ],
997
- "manifest": "audit"
998
- },
999
- {
1000
- "name": "tenant",
1001
- "title": "Tenant memberships and permission helper",
1002
- "category": "tenancy",
1003
- "requires": ["updated-at"],
1004
- "integrates": [
1005
- "access",
1006
- "invitations",
1007
- "organizations"
1008
- ],
1009
- "manifest": "tenant"
1010
- },
1011
- {
1012
- "name": "invitations",
1013
- "title": "Invitations",
1014
- "category": "tenancy",
1015
- "requires": [
1016
- "tenant",
1017
- "access",
1018
- "updated-at"
1019
- ],
1020
- "integrates": ["organizations", "profiles"],
1021
- "manifest": "organizations",
1022
- "scopes": ["tenant"],
1023
- "extraColumns": "invitations"
1024
- },
1025
- {
1026
- "name": "reserved-slugs",
1027
- "title": "Reserved slugs",
1028
- "category": "tenancy",
1029
- "requires": [],
1030
- "integrates": [],
1031
- "manifest": "reserved-slugs"
1032
- },
1033
- {
1034
- "name": "jobs",
1035
- "title": "Job queue",
1036
- "category": "automation",
1037
- "requires": [],
1038
- "integrates": ["data-lifecycle"],
1039
- "manifest": "jobs"
1040
- },
1041
- {
1042
- "name": "idempotency",
1043
- "title": "Idempotency keys",
1044
- "category": "developer",
1045
- "requires": [],
1046
- "integrates": [],
1047
- "manifest": "idempotency"
1048
- },
1049
- {
1050
- "name": "webhook-inbox",
1051
- "title": "Webhook inbox",
1052
- "category": "developer",
1053
- "requires": [],
1054
- "integrates": ["data-lifecycle"],
1055
- "manifest": "webhook-inbox",
1056
- "extraColumns": "messages"
1057
- },
1058
- {
1059
- "name": "realtime-tables",
1060
- "title": "Realtime table changes",
1061
- "category": "database",
1062
- "requires": [],
1063
- "integrates": [],
1064
- "manifest": "realtime-tables"
1065
- },
1066
- {
1067
- "name": "jsonb-schemas",
1068
- "title": "JSON Schema checks for jsonb",
1069
- "category": "database",
1070
- "requires": [],
1071
- "integrates": [],
1072
- "manifest": "jsonb-schemas"
1073
- },
1074
- {
1075
- "name": "pgtap",
1076
- "title": "pgTAP helpers",
1077
- "category": "database",
1078
- "requires": [],
1079
- "integrates": [],
1080
- "manifest": "pgtap"
1081
- },
1082
- {
1083
- "name": "grants",
1084
- "title": "Data API grants",
1085
- "category": "identity",
1086
- "requires": [],
1087
- "integrates": [],
1088
- "manifest": "grants"
1089
- },
1090
- {
1091
- "name": "read-sets",
1092
- "title": "Read sets",
1093
- "category": "database",
1094
- "requires": [],
1095
- "integrates": [],
1096
- "manifest": "read-sets"
1097
- },
1098
- {
1099
- "name": "mfa",
1100
- "title": "MFA enforcement",
1101
- "category": "identity",
1102
- "requires": [],
1103
- "integrates": [],
1104
- "manifest": "mfa"
1105
- },
1106
- {
1107
- "name": "entitlements",
1108
- "title": "Stripe entitlements",
1109
- "category": "commerce",
1110
- "requires": ["tenant"],
1111
- "integrates": ["billing", "organizations"],
1112
- "manifest": "entitlements",
1113
- "scopes": ["tenant"]
1114
- },
1115
- {
1116
- "name": "rate-limit",
1117
- "title": "Write rate limits",
1118
- "category": "developer",
1119
- "requires": [],
1120
- "integrates": [],
1121
- "manifest": "rate-limit"
1122
- },
1123
- {
1124
- "name": "vector-search",
1125
- "title": "Vector search",
1126
- "category": "ai",
1127
- "requires": [],
1128
- "integrates": [],
1129
- "manifest": "vector-search"
1130
- },
1131
- {
1132
- "name": "access",
1133
- "title": "Access contract",
1134
- "category": "identity",
1135
- "requires": ["tenant"],
1136
- "integrates": [
1137
- "invitations",
1138
- "organizations",
1139
- "tenant"
1140
- ],
1141
- "manifest": "access",
1142
- "requiresByAccess": {
1143
- "provider": [],
1144
- "custom": []
1145
- }
1146
- },
1147
- {
1148
- "name": "support-sessions",
1149
- "title": "Support sessions",
1150
- "category": "admin",
1151
- "requires": ["access", "audit"],
1152
- "integrates": ["invitations", "approvals"],
1153
- "manifest": "support-sessions",
1154
- "scopes": ["tenant"]
1155
- },
1156
- {
1157
- "name": "organizations",
1158
- "title": "Organizations",
1159
- "category": "tenancy",
1160
- "requires": [
1161
- "tenant",
1162
- "access",
1163
- "updated-at"
1164
- ],
1165
- "integrates": [
1166
- "audit",
1167
- "data-lifecycle",
1168
- "entitlements",
1169
- "invitations",
1170
- "reserved-slugs"
1171
- ],
1172
- "manifest": "organizations",
1173
- "scopes": ["tenant"],
1174
- "extraColumns": "organizations"
1175
- },
1176
- {
1177
- "name": "profiles",
1178
- "title": "Profiles",
1179
- "category": "tenancy",
1180
- "requires": [],
1181
- "integrates": ["tenant"],
1182
- "manifest": "profiles",
1183
- "tenantNameClashes": ["team"],
1184
- "extraColumns": "profiles"
1185
- },
1186
- {
1187
- "name": "outbox",
1188
- "title": "Outbox",
1189
- "category": "automation",
1190
- "requires": [],
1191
- "integrates": ["data-lifecycle"],
1192
- "manifest": "outbox"
1193
- },
1194
- {
1195
- "name": "notifications",
1196
- "title": "Notifications",
1197
- "category": "messaging",
1198
- "requires": ["updated-at"],
1199
- "integrates": [
1200
- "access",
1201
- "profiles",
1202
- "tenant",
1203
- "data-lifecycle"
1204
- ],
1205
- "manifest": "notifications",
1206
- "extraColumns": "events"
1207
- },
1208
- {
1209
- "name": "webhooks-out",
1210
- "title": "Outgoing webhooks",
1211
- "category": "developer",
1212
- "requires": ["updated-at"],
1213
- "integrates": [
1214
- "access",
1215
- "service-principals",
1216
- "data-lifecycle"
1217
- ],
1218
- "manifest": "webhooks"
1219
- },
1220
- {
1221
- "name": "sessions",
1222
- "title": "Session revocation",
1223
- "category": "identity",
1224
- "requires": [],
1225
- "integrates": [],
1226
- "manifest": "sessions"
1227
- },
1228
- {
1229
- "name": "webhooks-in",
1230
- "title": "Incoming webhook endpoints",
1231
- "category": "developer",
1232
- "requires": [
1233
- "access",
1234
- "updated-at",
1235
- "webhook-inbox"
1236
- ],
1237
- "integrates": [],
1238
- "manifest": "incoming-webhooks",
1239
- "scopes": ["tenant"]
1240
- },
1241
- {
1242
- "name": "api-keys",
1243
- "title": "API keys",
1244
- "category": "developer",
1245
- "requires": ["tenant", "access"],
1246
- "integrates": [],
1247
- "manifest": "api-keys",
1248
- "scopes": ["tenant"],
1249
- "extraColumns": "keys"
1250
- },
1251
- {
1252
- "name": "settings",
1253
- "title": "Settings",
1254
- "category": "tenancy",
1255
- "requires": ["tenant", "access"],
1256
- "integrates": ["jsonb-schemas"],
1257
- "manifest": "settings",
1258
- "scopes": ["tenant"]
1259
- },
1260
- {
1261
- "name": "usage",
1262
- "title": "Usage metering and quotas",
1263
- "category": "commerce",
1264
- "requires": ["tenant", "access"],
1265
- "integrates": ["entitlements", "data-lifecycle"],
1266
- "manifest": "usage",
1267
- "scopes": ["tenant"]
1268
- },
1269
- {
1270
- "name": "billing",
1271
- "title": "Stripe billing",
1272
- "category": "commerce",
1273
- "requires": ["tenant", "access"],
1274
- "integrates": ["organizations"],
1275
- "manifest": "billing",
1276
- "scopes": ["tenant"]
1277
- },
1278
- {
1279
- "name": "flags",
1280
- "title": "Feature flags",
1281
- "category": "growth",
1282
- "requires": ["tenant"],
1283
- "integrates": ["access", "entitlements"],
1284
- "manifest": "flags",
1285
- "scopes": ["tenant"],
1286
- "extraColumns": "flags"
1287
- },
1288
- {
1289
- "name": "comments",
1290
- "title": "Comments and activity",
1291
- "category": "collaboration",
1292
- "requires": ["tenant", "access"],
1293
- "integrates": [
1294
- "jsonb-schemas",
1295
- "notifications",
1296
- "subjects",
1297
- "audit",
1298
- "workflows"
1299
- ],
1300
- "manifest": "comments",
1301
- "scopes": [
1302
- "tenant",
1303
- "user",
1304
- "none"
1305
- ],
1306
- "extraColumns": "comments"
1307
- },
1308
- {
1309
- "name": "attachments",
1310
- "title": "Attachments",
1311
- "category": "collaboration",
1312
- "requires": ["tenant", "access"],
1313
- "integrates": [],
1314
- "manifest": "attachments",
1315
- "scopes": ["tenant"],
1316
- "extraColumns": "attachments"
1317
- },
1318
- {
1319
- "name": "data-lifecycle",
1320
- "title": "Data lifecycle",
1321
- "category": "admin",
1322
- "requires": ["tenant", "access"],
1323
- "integrates": ["*"],
1324
- "manifest": "data-lifecycle",
1325
- "scopes": ["tenant"]
1326
- },
1327
- {
1328
- "name": "sso",
1329
- "title": "SSO and SCIM",
1330
- "category": "identity",
1331
- "requires": ["tenant", "access"],
1332
- "integrates": ["organizations", "data-lifecycle"],
1333
- "manifest": "sso",
1334
- "scopes": ["tenant"]
1335
- },
1336
- {
1337
- "name": "onboarding",
1338
- "title": "Onboarding",
1339
- "category": "growth",
1340
- "requires": ["tenant", "access"],
1341
- "integrates": ["outbox"],
1342
- "manifest": "onboarding",
1343
- "scopes": ["tenant"]
1344
- },
1345
- {
1346
- "name": "waitlist",
1347
- "title": "Waitlist and invite codes",
1348
- "category": "growth",
1349
- "requires": ["tenant", "access"],
1350
- "integrates": ["invitations", "organizations"],
1351
- "manifest": "waitlist",
1352
- "scopes": ["tenant"],
1353
- "extraColumns": "entries"
1354
- },
1355
- {
1356
- "name": "announcements",
1357
- "title": "Announcements",
1358
- "category": "growth",
1359
- "requires": ["tenant", "access"],
1360
- "integrates": ["entitlements"],
1361
- "manifest": "announcements",
1362
- "scopes": ["tenant"],
1363
- "extraColumns": "announcements"
1364
- },
1365
- {
1366
- "name": "streams",
1367
- "title": "Durable streams",
1368
- "category": "automation",
1369
- "requires": [],
1370
- "integrates": [],
1371
- "manifest": "streams"
1372
- },
1373
- {
1374
- "name": "credentials",
1375
- "title": "Credentials in Vault",
1376
- "category": "developer",
1377
- "requires": [],
1378
- "integrates": [],
1379
- "manifest": "credentials"
1380
- },
1381
- {
1382
- "name": "workflows",
1383
- "title": "Workflows",
1384
- "category": "automation",
1385
- "requires": ["tenant", "access"],
1386
- "integrates": ["data-lifecycle"],
1387
- "manifest": "workflows",
1388
- "scopes": ["tenant"]
1389
- },
1390
- {
1391
- "name": "workflow-sdk-world",
1392
- "title": "Workflow SDK World",
1393
- "category": "automation",
1394
- "requires": [
1395
- "workflows",
1396
- "jobs",
1397
- "access"
1398
- ],
1399
- "integrates": [],
1400
- "manifest": "workflow-sdk-world",
1401
- "scopes": ["tenant"]
1402
- },
1403
- {
1404
- "name": "workflow-builder",
1405
- "title": "Workflow builder",
1406
- "category": "automation",
1407
- "requires": [
1408
- "workflows",
1409
- "tenant",
1410
- "access"
1411
- ],
1412
- "integrates": [
1413
- "service-principals",
1414
- "subjects",
1415
- "teams"
1416
- ],
1417
- "manifest": "workflow-builder",
1418
- "scopes": ["tenant"],
1419
- "extraColumns": "definitions"
1420
- },
1421
- {
1422
- "name": "chat-sdk-state",
1423
- "title": "Chat SDK state",
1424
- "category": "messaging",
1425
- "requires": [],
1426
- "integrates": [],
1427
- "manifest": "inbox"
1428
- },
1429
- {
1430
- "name": "inbox",
1431
- "title": "Shared inbox",
1432
- "category": "messaging",
1433
- "requires": [
1434
- "tenant",
1435
- "access",
1436
- "updated-at",
1437
- "teams"
1438
- ],
1439
- "integrates": [
1440
- "jobs",
1441
- "notifications",
1442
- "reactions",
1443
- "data-lifecycle"
1444
- ],
1445
- "manifest": "inbox",
1446
- "scopes": ["tenant"],
1447
- "tenantNameClashes": ["team"]
1448
- },
1449
- {
1450
- "name": "ai-chat",
1451
- "title": "AI chat",
1452
- "category": "ai",
1453
- "requires": [
1454
- "tenant",
1455
- "access",
1456
- "streams"
1457
- ],
1458
- "integrates": [
1459
- "entitlements",
1460
- "ai-providers",
1461
- "approvals",
1462
- "data-lifecycle"
1463
- ],
1464
- "manifest": "ai-chat",
1465
- "scopes": ["tenant"],
1466
- "extraColumns": "chats"
1467
- },
1468
- {
1469
- "name": "ai-files",
1470
- "title": "AI files",
1471
- "category": "ai",
1472
- "requires": ["tenant", "access"],
1473
- "integrates": ["ai-chat"],
1474
- "manifest": "ai-files",
1475
- "scopes": ["tenant"],
1476
- "extraColumns": "files"
1477
- },
1478
- {
1479
- "name": "knowledge",
1480
- "title": "Knowledge",
1481
- "category": "ai",
1482
- "requires": [
1483
- "tenant",
1484
- "access",
1485
- "vector-search"
1486
- ],
1487
- "integrates": [
1488
- "ai-chat",
1489
- "ai-files",
1490
- "jobs"
1491
- ],
1492
- "manifest": "knowledge",
1493
- "scopes": ["tenant"]
1494
- },
1495
- {
1496
- "name": "memory",
1497
- "title": "Memory",
1498
- "category": "ai",
1499
- "requires": [
1500
- "tenant",
1501
- "access",
1502
- "vector-search"
1503
- ],
1504
- "integrates": ["ai-chat"],
1505
- "manifest": "memory",
1506
- "scopes": ["tenant"]
1507
- },
1508
- {
1509
- "name": "agents",
1510
- "title": "Agents",
1511
- "category": "ai",
1512
- "requires": ["tenant", "access"],
1513
- "integrates": [],
1514
- "manifest": "agents",
1515
- "scopes": ["tenant"],
1516
- "extraColumns": "agents"
1517
- },
1518
- {
1519
- "name": "connectors",
1520
- "title": "Connectors",
1521
- "category": "automation",
1522
- "requires": ["tenant", "access"],
1523
- "integrates": [],
1524
- "manifest": "connectors",
1525
- "scopes": ["tenant"],
1526
- "extraColumns": "servers"
1527
- },
1528
- {
1529
- "name": "ai-tasks",
1530
- "title": "AI scheduled tasks",
1531
- "category": "ai",
1532
- "requires": ["tenant", "access"],
1533
- "integrates": [
1534
- "agents",
1535
- "ai-chat",
1536
- "jobs"
1537
- ],
1538
- "manifest": "ai-tasks",
1539
- "scopes": ["tenant"],
1540
- "extraColumns": "tasks"
1541
- },
1542
- {
1543
- "name": "push",
1544
- "title": "Push devices",
1545
- "category": "messaging",
1546
- "requires": [],
1547
- "integrates": [],
1548
- "manifest": "push",
1549
- "extraColumns": "devices"
1550
- },
1551
- {
1552
- "name": "ai-cache",
1553
- "title": "AI response cache",
1554
- "category": "ai",
1555
- "requires": [],
1556
- "integrates": [],
1557
- "manifest": "ai-cache"
1558
- },
1559
- {
1560
- "name": "ai-providers",
1561
- "title": "AI providers",
1562
- "category": "ai",
1563
- "requires": ["tenant", "access"],
1564
- "integrates": ["ai-chat"],
1565
- "manifest": "ai-providers",
1566
- "scopes": ["tenant"]
1567
- },
1568
- {
1569
- "name": "number-sequences",
1570
- "title": "Number sequences",
1571
- "category": "database",
1572
- "requires": ["tenant", "access"],
1573
- "integrates": ["outbox", "audit"],
1574
- "manifest": "number-sequences",
1575
- "scopes": ["tenant"]
1576
- },
1577
- {
1578
- "name": "teams",
1579
- "title": "Teams",
1580
- "category": "tenancy",
1581
- "requires": ["tenant", "access"],
1582
- "integrates": [
1583
- "inbox",
1584
- "outbox",
1585
- "audit"
1586
- ],
1587
- "manifest": "teams",
1588
- "scopes": ["tenant"],
1589
- "tenantNameClashes": ["team"],
1590
- "extraColumns": "teams"
1591
- },
1592
- {
1593
- "name": "tags",
1594
- "title": "Tags",
1595
- "category": "work",
1596
- "requires": ["tenant", "access"],
1597
- "integrates": ["outbox"],
1598
- "manifest": "tags",
1599
- "scopes": [
1600
- "tenant",
1601
- "user",
1602
- "none"
1603
- ],
1604
- "extraColumns": "tags"
1605
- },
1606
- {
1607
- "name": "state-machine",
1608
- "title": "State machine",
1609
- "category": "work",
1610
- "requires": ["tenant", "access"],
1611
- "integrates": [
1612
- "outbox",
1613
- "audit",
1614
- "approvals"
1615
- ],
1616
- "manifest": "state-machine",
1617
- "scopes": ["tenant"]
1618
- },
1619
- {
1620
- "name": "custom-fields",
1621
- "title": "Custom fields",
1622
- "category": "work",
1623
- "requires": ["tenant", "access"],
1624
- "integrates": ["outbox"],
1625
- "manifest": "custom-fields",
1626
- "scopes": ["tenant"]
1627
- },
1628
- {
1629
- "name": "share-links",
1630
- "title": "Share links",
1631
- "category": "collaboration",
1632
- "requires": ["tenant", "access"],
1633
- "integrates": [
1634
- "ai-chat",
1635
- "bookings",
1636
- "calendar",
1637
- "drive",
1638
- "forms",
1639
- "outbox",
1640
- "versions"
1641
- ],
1642
- "manifest": "share-links",
1643
- "scopes": ["tenant"],
1644
- "extraColumns": "links"
1645
- },
1646
- {
1647
- "name": "reminders",
1648
- "title": "Reminders",
1649
- "category": "scheduling",
1650
- "requires": [
1651
- "tenant",
1652
- "access",
1653
- "jobs"
1654
- ],
1655
- "integrates": ["notifications", "outbox"],
1656
- "manifest": "reminders",
1657
- "scopes": ["tenant"],
1658
- "extraColumns": "reminders"
1659
- },
1660
- {
1661
- "name": "imports",
1662
- "title": "Imports",
1663
- "category": "content",
1664
- "requires": [
1665
- "tenant",
1666
- "access",
1667
- "jobs"
1668
- ],
1669
- "integrates": ["attachments", "outbox"],
1670
- "manifest": "imports",
1671
- "scopes": ["tenant"]
1672
- },
1673
- {
1674
- "name": "subjects",
1675
- "title": "Subjects",
1676
- "category": "identity",
1677
- "requires": ["access"],
1678
- "integrates": [],
1679
- "manifest": "subjects",
1680
- "scopes": ["tenant"]
1681
- },
1682
- {
1683
- "name": "rank",
1684
- "title": "Rank",
1685
- "category": "database",
1686
- "requires": ["access", "subjects"],
1687
- "integrates": ["jobs"],
1688
- "manifest": "rank",
1689
- "scopes": ["tenant"]
1690
- },
1691
- {
1692
- "name": "saved-views",
1693
- "title": "Saved views",
1694
- "category": "work",
1695
- "requires": ["tenant", "access"],
1696
- "integrates": [
1697
- "outbox",
1698
- "teams",
1699
- "collections"
1700
- ],
1701
- "manifest": "saved-views",
1702
- "scopes": ["tenant"],
1703
- "tenantNameClashes": ["team"],
1704
- "extraColumns": "views"
1705
- },
1706
- {
1707
- "name": "relations",
1708
- "title": "Relations",
1709
- "category": "work",
1710
- "requires": ["tenant", "access"],
1711
- "integrates": ["outbox"],
1712
- "manifest": "relations",
1713
- "scopes": ["tenant"],
1714
- "extraColumns": "relations"
1715
- },
1716
- {
1717
- "name": "bulk",
1718
- "title": "Bulk actions",
1719
- "category": "work",
1720
- "requires": ["tenant", "access"],
1721
- "integrates": [
1722
- "jobs",
1723
- "outbox",
1724
- "tags",
1725
- "state-machine",
1726
- "relations",
1727
- "trash",
1728
- "collections"
1729
- ],
1730
- "manifest": "bulk",
1731
- "scopes": ["tenant"]
1732
- },
1733
- {
1734
- "name": "search",
1735
- "title": "Search",
1736
- "category": "work",
1737
- "requires": [
1738
- "tenant",
1739
- "access",
1740
- "subjects"
1741
- ],
1742
- "integrates": ["share-links", "vector-search"],
1743
- "manifest": "search",
1744
- "scopes": ["tenant"]
1745
- },
1746
- {
1747
- "name": "metrics",
1748
- "title": "Metrics",
1749
- "category": "admin",
1750
- "requires": ["tenant", "access"],
1751
- "integrates": ["usage", "jobs"],
1752
- "manifest": "metrics",
1753
- "scopes": ["tenant"]
1754
- },
1755
- {
1756
- "name": "calendar",
1757
- "title": "Calendar",
1758
- "category": "scheduling",
1759
- "requires": ["tenant", "access"],
1760
- "integrates": [
1761
- "share-links",
1762
- "reminders",
1763
- "outbox"
1764
- ],
1765
- "manifest": "calendar",
1766
- "scopes": ["tenant"],
1767
- "extraColumns": "events"
1768
- },
1769
- {
1770
- "name": "bookings",
1771
- "title": "Bookings",
1772
- "category": "scheduling",
1773
- "requires": ["tenant", "access"],
1774
- "integrates": [
1775
- "jobs",
1776
- "share-links",
1777
- "rate-limit",
1778
- "calendar",
1779
- "reminders",
1780
- "outbox"
1781
- ],
1782
- "manifest": "bookings",
1783
- "scopes": ["tenant"],
1784
- "extraColumns": "bookings"
1785
- },
1786
- {
1787
- "name": "versions",
1788
- "title": "Versions",
1789
- "category": "content",
1790
- "requires": ["tenant", "access"],
1791
- "integrates": [
1792
- "outbox",
1793
- "audit",
1794
- "share-links"
1795
- ],
1796
- "manifest": "versions",
1797
- "scopes": ["tenant"],
1798
- "extraColumns": "versions"
1799
- },
1800
- {
1801
- "name": "trash",
1802
- "title": "Trash",
1803
- "category": "content",
1804
- "requires": ["tenant", "access"],
1805
- "integrates": [
1806
- "outbox",
1807
- "audit",
1808
- "data-lifecycle"
1809
- ],
1810
- "manifest": "trash",
1811
- "scopes": ["tenant"],
1812
- "extraColumns": "items"
1813
- },
1814
- {
1815
- "name": "reactions",
1816
- "title": "Reactions",
1817
- "category": "collaboration",
1818
- "requires": ["tenant", "access"],
1819
- "integrates": [
1820
- "outbox",
1821
- "comments",
1822
- "inbox"
1823
- ],
1824
- "manifest": "reactions",
1825
- "scopes": ["tenant"]
1826
- },
1827
- {
1828
- "name": "approvals",
1829
- "title": "Approvals",
1830
- "category": "work",
1831
- "requires": ["tenant", "access"],
1832
- "integrates": [
1833
- "outbox",
1834
- "audit",
1835
- "notifications",
1836
- "jobs",
1837
- "teams",
1838
- "state-machine",
1839
- "access-requests",
1840
- "time-tracking",
1841
- "leave",
1842
- "ai-chat",
1843
- "support-sessions"
1844
- ],
1845
- "manifest": "approvals",
1846
- "scopes": ["tenant"],
1847
- "extraColumns": "requests"
1848
- },
1849
- {
1850
- "name": "access-requests",
1851
- "title": "Access requests",
1852
- "category": "identity",
1853
- "requires": [
1854
- "tenant",
1855
- "access",
1856
- "approvals"
1857
- ],
1858
- "integrates": ["outbox", "audit"],
1859
- "manifest": "access-requests",
1860
- "scopes": ["tenant"],
1861
- "extraColumns": "requests"
1862
- },
1863
- {
1864
- "name": "documents",
1865
- "title": "Collaborative documents",
1866
- "category": "content",
1867
- "requires": ["tenant", "access"],
1868
- "integrates": [
1869
- "outbox",
1870
- "audit",
1871
- "jobs",
1872
- "versions"
1873
- ],
1874
- "manifest": "documents",
1875
- "scopes": ["tenant"]
1876
- },
1877
- {
1878
- "name": "catalog",
1879
- "title": "Catalog",
1880
- "category": "commerce",
1881
- "requires": ["tenant", "access"],
1882
- "integrates": [
1883
- "outbox",
1884
- "state-machine",
1885
- "inventory"
1886
- ],
1887
- "manifest": "catalog",
1888
- "scopes": ["tenant"],
1889
- "extraColumns": "products"
1890
- },
1891
- {
1892
- "name": "inventory",
1893
- "title": "Inventory",
1894
- "category": "commerce",
1895
- "requires": [
1896
- "tenant",
1897
- "access",
1898
- "catalog"
1899
- ],
1900
- "integrates": ["outbox"],
1901
- "manifest": "inventory",
1902
- "scopes": ["tenant"],
1903
- "extraColumns": "locations"
1904
- },
1905
- {
1906
- "name": "drive",
1907
- "title": "Drive",
1908
- "category": "content",
1909
- "requires": [
1910
- "tenant",
1911
- "access",
1912
- "drive-files"
1913
- ],
1914
- "integrates": [
1915
- "outbox",
1916
- "audit",
1917
- "attachments",
1918
- "versions",
1919
- "trash",
1920
- "teams",
1921
- "share-links"
1922
- ],
1923
- "manifest": "drive",
1924
- "scopes": ["tenant"],
1925
- "tenantNameClashes": ["team"],
1926
- "extraColumns": "nodes"
1927
- },
1928
- {
1929
- "name": "drive-files",
1930
- "title": "Drive files",
1931
- "category": "content",
1932
- "requires": ["attachments"],
1933
- "integrates": [
1934
- "drive",
1935
- "outbox",
1936
- "audit",
1937
- "attachments",
1938
- "versions",
1939
- "trash",
1940
- "teams",
1941
- "share-links"
1942
- ],
1943
- "manifest": "drive",
1944
- "scopes": ["tenant"]
1945
- },
1946
- {
1947
- "name": "orders",
1948
- "title": "Orders",
1949
- "category": "commerce",
1950
- "requires": [
1951
- "tenant",
1952
- "access",
1953
- "catalog"
1954
- ],
1955
- "integrates": [
1956
- "outbox",
1957
- "inventory",
1958
- "promotions",
1959
- "number-sequences",
1960
- "state-machine"
1961
- ],
1962
- "manifest": "orders",
1963
- "scopes": ["tenant"],
1964
- "extraColumns": "orders"
1965
- },
1966
- {
1967
- "name": "promotions",
1968
- "title": "Promotions",
1969
- "category": "commerce",
1970
- "requires": [
1971
- "tenant",
1972
- "access",
1973
- "catalog",
1974
- "orders"
1975
- ],
1976
- "integrates": ["outbox"],
1977
- "manifest": "promotions",
1978
- "scopes": ["tenant"],
1979
- "extraColumns": "promotions"
1980
- },
1981
- {
1982
- "name": "forms",
1983
- "title": "Forms",
1984
- "category": "content",
1985
- "requires": [
1986
- "tenant",
1987
- "access",
1988
- "jsonb-schemas"
1989
- ],
1990
- "integrates": [
1991
- "custom-fields",
1992
- "share-links",
1993
- "rate-limit",
1994
- "outbox",
1995
- "audit"
1996
- ],
1997
- "manifest": "forms",
1998
- "scopes": ["tenant"],
1999
- "extraColumns": "forms"
2000
- },
2001
- {
2002
- "name": "signatures",
2003
- "title": "Signatures",
2004
- "category": "content",
2005
- "requires": [
2006
- "tenant",
2007
- "access",
2008
- "versions"
2009
- ],
2010
- "integrates": [
2011
- "approvals",
2012
- "attachments",
2013
- "outbox",
2014
- "audit"
2015
- ],
2016
- "manifest": "signatures",
2017
- "scopes": ["tenant"],
2018
- "extraColumns": "requests"
2019
- },
2020
- {
2021
- "name": "time-tracking",
2022
- "title": "Time tracking",
2023
- "category": "people",
2024
- "requires": [
2025
- "tenant",
2026
- "access",
2027
- "approvals"
2028
- ],
2029
- "integrates": ["outbox", "audit"],
2030
- "manifest": "time-tracking",
2031
- "scopes": ["tenant"],
2032
- "extraColumns": "entries"
2033
- },
2034
- {
2035
- "name": "identities",
2036
- "title": "Identities",
2037
- "category": "identity",
2038
- "requires": [],
2039
- "integrates": ["inbox"],
2040
- "manifest": "identities"
2041
- },
2042
- {
2043
- "name": "service-principals",
2044
- "title": "Service principals",
2045
- "category": "developer",
2046
- "requires": ["tenant", "access"],
2047
- "integrates": ["audit"],
2048
- "manifest": "service-principals",
2049
- "scopes": ["tenant"],
2050
- "extraColumns": "principals"
2051
- },
2052
- {
2053
- "name": "templates",
2054
- "title": "Templates",
2055
- "category": "content",
2056
- "requires": ["tenant", "access"],
2057
- "integrates": [
2058
- "outbox",
2059
- "audit",
2060
- "workflow-builder",
2061
- "jsonb-schemas"
2062
- ],
2063
- "manifest": "templates",
2064
- "scopes": ["tenant"],
2065
- "extraColumns": "templates"
2066
- },
2067
- {
2068
- "name": "pipelines",
2069
- "title": "Pipelines",
2070
- "category": "work",
2071
- "requires": [
2072
- "tenant",
2073
- "access",
2074
- "subjects"
2075
- ],
2076
- "integrates": [
2077
- "outbox",
2078
- "audit",
2079
- "state-machine",
2080
- "notifications",
2081
- "deals",
2082
- "work-items",
2083
- "hiring"
2084
- ],
2085
- "manifest": "pipelines",
2086
- "scopes": ["tenant"],
2087
- "extraColumns": "pipelines"
2088
- },
2089
- {
2090
- "name": "parties",
2091
- "title": "Parties",
2092
- "category": "crm",
2093
- "requires": ["tenant", "access"],
2094
- "integrates": [
2095
- "outbox",
2096
- "audit",
2097
- "notifications",
2098
- "inbox"
2099
- ],
2100
- "manifest": "parties",
2101
- "scopes": ["tenant"],
2102
- "extraColumns": "companies"
2103
- },
2104
- {
2105
- "name": "engagements",
2106
- "title": "Engagements",
2107
- "category": "crm",
2108
- "requires": [
2109
- "tenant",
2110
- "access",
2111
- "subjects"
2112
- ],
2113
- "integrates": ["outbox", "notifications"],
2114
- "manifest": "engagements",
2115
- "scopes": ["tenant"],
2116
- "extraColumns": "engagements"
2117
- },
2118
- {
2119
- "name": "deals",
2120
- "title": "Deals",
2121
- "category": "crm",
2122
- "requires": [
2123
- "tenant",
2124
- "access",
2125
- "subjects",
2126
- "pipelines"
2127
- ],
2128
- "integrates": [
2129
- "outbox",
2130
- "notifications",
2131
- "number-sequences",
2132
- "engagements"
2133
- ],
2134
- "manifest": "deals",
2135
- "scopes": ["tenant"],
2136
- "extraColumns": "deals"
2137
- },
2138
- {
2139
- "name": "work-items",
2140
- "title": "Work items",
2141
- "category": "work",
2142
- "requires": [
2143
- "tenant",
2144
- "access",
2145
- "subjects",
2146
- "pipelines"
2147
- ],
2148
- "integrates": [
2149
- "outbox",
2150
- "notifications",
2151
- "number-sequences"
2152
- ],
2153
- "manifest": "work-items",
2154
- "scopes": ["tenant"],
2155
- "tenantNameClashes": ["team"],
2156
- "extraColumns": "items"
2157
- },
2158
- {
2159
- "name": "quotes",
2160
- "title": "Quotes",
2161
- "category": "crm",
2162
- "requires": [
2163
- "tenant",
2164
- "access",
2165
- "subjects"
2166
- ],
2167
- "integrates": [
2168
- "outbox",
2169
- "notifications",
2170
- "number-sequences",
2171
- "deals",
2172
- "relations"
2173
- ],
2174
- "manifest": "quotes",
2175
- "scopes": ["tenant"],
2176
- "extraColumns": "quotes"
2177
- },
2178
- {
2179
- "name": "invoices",
2180
- "title": "Invoices",
2181
- "category": "commerce",
2182
- "requires": [
2183
- "tenant",
2184
- "access",
2185
- "subjects"
2186
- ],
2187
- "integrates": [
2188
- "outbox",
2189
- "audit",
2190
- "notifications",
2191
- "number-sequences",
2192
- "quotes",
2193
- "relations"
2194
- ],
2195
- "manifest": "invoices",
2196
- "scopes": ["tenant"],
2197
- "extraColumns": "invoices"
2198
- },
2199
- {
2200
- "name": "sla",
2201
- "title": "Service levels",
2202
- "category": "work",
2203
- "requires": [
2204
- "tenant",
2205
- "access",
2206
- "subjects"
2207
- ],
2208
- "integrates": ["outbox", "notifications"],
2209
- "manifest": "sla",
2210
- "scopes": ["tenant"],
2211
- "extraColumns": "policies"
2212
- },
2213
- {
2214
- "name": "targets",
2215
- "title": "Targets",
2216
- "category": "crm",
2217
- "requires": ["tenant", "access"],
2218
- "integrates": [
2219
- "deals",
2220
- "work-items",
2221
- "invoices"
2222
- ],
2223
- "manifest": "targets",
2224
- "scopes": ["tenant"],
2225
- "tenantNameClashes": ["team"],
2226
- "extraColumns": "targets"
2227
- },
2228
- {
2229
- "name": "hiring",
2230
- "title": "Hiring",
2231
- "category": "people",
2232
- "requires": [
2233
- "tenant",
2234
- "access",
2235
- "subjects",
2236
- "pipelines"
2237
- ],
2238
- "integrates": ["outbox"],
2239
- "manifest": "hiring",
2240
- "scopes": ["tenant"],
2241
- "tenantNameClashes": ["team"],
2242
- "extraColumns": "jobs"
2243
- },
2244
- {
2245
- "name": "employees",
2246
- "title": "Employees",
2247
- "category": "people",
2248
- "requires": ["tenant", "access"],
2249
- "integrates": [
2250
- "outbox",
2251
- "relations",
2252
- "hiring"
2253
- ],
2254
- "manifest": "employees",
2255
- "scopes": ["tenant"],
2256
- "tenantNameClashes": ["team"],
2257
- "extraColumns": "employees"
2258
- },
2259
- {
2260
- "name": "collections",
2261
- "title": "Collections",
2262
- "category": "work",
2263
- "requires": [
2264
- "tenant",
2265
- "access",
2266
- "subjects"
2267
- ],
2268
- "integrates": ["outbox", "teams"],
2269
- "manifest": "collections",
2270
- "scopes": ["tenant"],
2271
- "tenantNameClashes": ["team"],
2272
- "extraColumns": "collections"
2273
- },
2274
- {
2275
- "name": "signing-keys",
2276
- "title": "Signing keys",
2277
- "category": "developer",
2278
- "requires": [],
2279
- "integrates": ["outbox", "audit"],
2280
- "manifest": "signing-keys"
2281
- },
2282
- {
2283
- "name": "shared-signals",
2284
- "title": "Shared signals",
2285
- "category": "developer",
2286
- "requires": [],
2287
- "integrates": [
2288
- "webhooks-out",
2289
- "outbox",
2290
- "audit"
2291
- ],
2292
- "manifest": "shared-signals"
2293
- },
2294
- {
2295
- "name": "oauth-server",
2296
- "title": "OAuth server",
2297
- "category": "developer",
2298
- "requires": [],
2299
- "integrates": ["outbox", "audit"],
2300
- "manifest": "oauth-server"
2301
- },
2302
- {
2303
- "name": "domains",
2304
- "title": "Custom domains",
2305
- "category": "tenancy",
2306
- "requires": ["tenant", "access"],
2307
- "integrates": ["reserved-slugs"],
2308
- "manifest": "domains",
2309
- "scopes": ["tenant"]
2310
- },
2311
- {
2312
- "name": "reviews",
2313
- "title": "Reviews",
2314
- "category": "commerce",
2315
- "requires": ["tenant", "access"],
2316
- "integrates": [
2317
- "catalog",
2318
- "orders",
2319
- "subjects",
2320
- "notifications",
2321
- "outbox",
2322
- "audit"
2323
- ],
2324
- "manifest": "reviews",
2325
- "scopes": ["tenant"],
2326
- "extraColumns": "reviews"
2327
- },
2328
- {
2329
- "name": "leave",
2330
- "title": "Leave",
2331
- "category": "people",
2332
- "requires": [
2333
- "tenant",
2334
- "access",
2335
- "approvals"
2336
- ],
2337
- "integrates": ["outbox", "audit"],
2338
- "manifest": "leave",
2339
- "scopes": ["tenant"],
2340
- "extraColumns": "requests"
2341
- },
2342
- {
2343
- "name": "rules",
2344
- "title": "Rules",
2345
- "category": "automation",
2346
- "requires": ["tenant", "access"],
2347
- "integrates": [],
2348
- "manifest": "rules",
2349
- "scopes": ["tenant"]
2350
- },
2351
- {
2352
- "name": "vercel-marketplace",
2353
- "title": "Vercel Marketplace",
2354
- "category": "developer",
2355
- "requires": [],
2356
- "integrates": ["outbox", "audit"],
2357
- "manifest": "vercel-marketplace",
2358
- "tenantNameClashes": ["team"]
2359
- },
2360
- {
2361
- "name": "ensure-rls",
2362
- "title": "RLS on every new table",
2363
- "category": "database",
2364
- "requires": [],
2365
- "integrates": [],
2366
- "manifest": "ensure-rls"
2367
- }
2368
- ],
2369
- "manifests": [
2370
- {
2371
- "name": "access",
2372
- "sql": ["access"],
2373
- "category": "identity",
2374
- "client": null,
2375
- "consumes": {},
2376
- "provides": []
2377
- },
2378
- {
2379
- "name": "access-requests",
2380
- "sql": ["access-requests"],
2381
- "category": "identity",
2382
- "client": {
2383
- "export": "accessRequestsBlock",
2384
- "subpath": "better-supabase/blocks/access-requests"
2385
- },
2386
- "consumes": {},
2387
- "provides": []
2388
- },
2389
- {
2390
- "name": "actor",
2391
- "sql": ["actor"],
2392
- "category": "identity",
2393
- "client": null,
2394
- "consumes": {},
2395
- "provides": []
2396
- },
2397
- {
2398
- "name": "agents",
2399
- "sql": ["agents"],
2400
- "category": "ai",
2401
- "client": {
2402
- "export": "agentsBlock",
2403
- "subpath": "better-supabase/blocks/agents"
2404
- },
2405
- "consumes": {},
2406
- "provides": []
2407
- },
2408
- {
2409
- "name": "ai-cache",
2410
- "sql": ["ai-cache"],
2411
- "category": "ai",
2412
- "client": {
2413
- "export": "aiCacheBlock",
2414
- "subpath": "better-supabase/blocks/ai-cache"
2415
- },
2416
- "consumes": {},
2417
- "provides": []
2418
- },
2419
- {
2420
- "name": "ai-chat",
2421
- "sql": ["ai-chat"],
2422
- "category": "ai",
2423
- "client": {
2424
- "export": "aiChatBlock",
2425
- "subpath": "better-supabase/blocks/ai-chat"
2426
- },
2427
- "consumes": {},
2428
- "provides": []
2429
- },
2430
- {
2431
- "name": "ai-files",
2432
- "sql": ["ai-files"],
2433
- "category": "ai",
2434
- "client": {
2435
- "export": "aiFilesBlock",
2436
- "subpath": "better-supabase/blocks/ai-files"
2437
- },
2438
- "consumes": {},
2439
- "provides": ["files"]
2440
- },
2441
- {
2442
- "name": "ai-providers",
2443
- "sql": ["ai-providers"],
2444
- "category": "ai",
2445
- "client": {
2446
- "export": "aiProvidersBlock",
2447
- "subpath": "better-supabase/blocks/ai-providers"
2448
- },
2449
- "consumes": {},
2450
- "provides": []
2451
- },
2452
- {
2453
- "name": "ai-tasks",
2454
- "sql": ["ai-tasks"],
2455
- "category": "ai",
2456
- "client": {
2457
- "export": "aiTasksBlock",
2458
- "subpath": "better-supabase/blocks/ai-tasks"
2459
- },
2460
- "consumes": { "notifier": "optional" },
2461
- "provides": []
2462
- },
2463
- {
2464
- "name": "announcements",
2465
- "sql": ["announcements"],
2466
- "category": "growth",
2467
- "client": {
2468
- "export": "announcementsBlock",
2469
- "subpath": "better-supabase/blocks/announcements"
2470
- },
2471
- "consumes": {},
2472
- "provides": []
2473
- },
2474
- {
2475
- "name": "api-keys",
2476
- "sql": ["api-keys"],
2477
- "category": "developer",
2478
- "client": {
2479
- "export": "apiKeysBlock",
2480
- "subpath": "better-supabase/blocks/api-keys"
2481
- },
2482
- "consumes": {},
2483
- "provides": []
2484
- },
2485
- {
2486
- "name": "approvals",
2487
- "sql": ["approvals"],
2488
- "category": "work",
2489
- "client": {
2490
- "export": "approvalsBlock",
2491
- "subpath": "better-supabase/blocks/approvals"
2492
- },
2493
- "consumes": {},
2494
- "provides": []
2495
- },
2496
- {
2497
- "name": "attachments",
2498
- "sql": ["attachments"],
2499
- "category": "collaboration",
2500
- "client": {
2501
- "export": "attachmentsBlock",
2502
- "subpath": "better-supabase/blocks/attachments"
2503
- },
2504
- "consumes": {},
2505
- "provides": ["attachments"]
2506
- },
2507
- {
2508
- "name": "audit",
2509
- "sql": ["audit"],
2510
- "category": "admin",
2511
- "client": {
2512
- "export": "auditBlock",
2513
- "subpath": "better-supabase/blocks/audit"
2514
- },
2515
- "consumes": {},
2516
- "provides": []
2517
- },
2518
- {
2519
- "name": "billing",
2520
- "sql": ["billing"],
2521
- "category": "commerce",
2522
- "client": {
2523
- "export": "billingBlock",
2524
- "subpath": "better-supabase/blocks/billing"
2525
- },
2526
- "consumes": {},
2527
- "provides": []
2528
- },
2529
- {
2530
- "name": "bookings",
2531
- "sql": ["bookings"],
2532
- "category": "scheduling",
2533
- "client": {
2534
- "export": "bookingsBlock",
2535
- "subpath": "better-supabase/blocks/bookings"
2536
- },
2537
- "consumes": {},
2538
- "provides": []
2539
- },
2540
- {
2541
- "name": "bulk",
2542
- "sql": ["bulk"],
2543
- "category": "work",
2544
- "client": {
2545
- "export": "bulkBlock",
2546
- "subpath": "better-supabase/blocks/bulk"
2547
- },
2548
- "consumes": {},
2549
- "provides": []
2550
- },
2551
- {
2552
- "name": "calendar",
2553
- "sql": ["calendar"],
2554
- "category": "scheduling",
2555
- "client": {
2556
- "export": "calendarBlock",
2557
- "subpath": "better-supabase/blocks/calendar"
2558
- },
2559
- "consumes": {},
2560
- "provides": []
2561
- },
2562
- {
2563
- "name": "catalog",
2564
- "sql": ["catalog"],
2565
- "category": "commerce",
2566
- "client": {
2567
- "export": "catalogBlock",
2568
- "subpath": "better-supabase/blocks/catalog"
2569
- },
2570
- "consumes": {},
2571
- "provides": []
2572
- },
2573
- {
2574
- "name": "collections",
2575
- "sql": ["collections"],
2576
- "category": "work",
2577
- "client": {
2578
- "export": "collectionsBlock",
2579
- "subpath": "better-supabase/blocks/collections"
2580
- },
2581
- "consumes": {},
2582
- "provides": []
2583
- },
2584
- {
2585
- "name": "comments",
2586
- "sql": ["comments"],
2587
- "category": "collaboration",
2588
- "client": {
2589
- "export": "commentsBlock",
2590
- "subpath": "better-supabase/blocks/comments"
2591
- },
2592
- "consumes": {},
2593
- "provides": []
2594
- },
2595
- {
2596
- "name": "connectors",
2597
- "sql": ["connectors"],
2598
- "category": "automation",
2599
- "client": {
2600
- "export": "connectorsBlock",
2601
- "subpath": "better-supabase/blocks/connectors"
2602
- },
2603
- "consumes": {},
2604
- "provides": []
2605
- },
2606
- {
2607
- "name": "credentials",
2608
- "sql": ["credentials"],
2609
- "category": "developer",
2610
- "client": null,
2611
- "consumes": {},
2612
- "provides": []
2613
- },
2614
- {
2615
- "name": "custom-fields",
2616
- "sql": ["custom-fields"],
2617
- "category": "work",
2618
- "client": {
2619
- "export": "customFieldsBlock",
2620
- "subpath": "better-supabase/blocks/custom-fields"
2621
- },
2622
- "consumes": {},
2623
- "provides": []
2624
- },
2625
- {
2626
- "name": "data-lifecycle",
2627
- "sql": ["data-lifecycle"],
2628
- "category": "admin",
2629
- "client": {
2630
- "export": "dataLifecycleBlock",
2631
- "subpath": "better-supabase/blocks/data-lifecycle"
2632
- },
2633
- "consumes": {},
2634
- "provides": []
2635
- },
2636
- {
2637
- "name": "deals",
2638
- "sql": ["deals"],
2639
- "category": "crm",
2640
- "client": {
2641
- "export": "dealsBlock",
2642
- "subpath": "better-supabase/blocks/deals"
2643
- },
2644
- "consumes": {},
2645
- "provides": []
2646
- },
2647
- {
2648
- "name": "documents",
2649
- "sql": ["documents"],
2650
- "category": "content",
2651
- "client": {
2652
- "export": "documentsBlock",
2653
- "subpath": "better-supabase/blocks/documents"
2654
- },
2655
- "consumes": {},
2656
- "provides": []
2657
- },
2658
- {
2659
- "name": "domains",
2660
- "sql": ["domains"],
2661
- "category": "tenancy",
2662
- "client": {
2663
- "export": "domainsBlock",
2664
- "subpath": "better-supabase/blocks/domains"
2665
- },
2666
- "consumes": {},
2667
- "provides": []
2668
- },
2669
- {
2670
- "name": "reviews",
2671
- "sql": ["reviews"],
2672
- "category": "commerce",
2673
- "client": {
2674
- "export": "reviewsBlock",
2675
- "subpath": "better-supabase/blocks/reviews"
2676
- },
2677
- "consumes": {},
2678
- "provides": []
2679
- },
2680
- {
2681
- "name": "leave",
2682
- "sql": ["leave"],
2683
- "category": "people",
2684
- "client": {
2685
- "export": "leaveBlock",
2686
- "subpath": "better-supabase/blocks/leave"
2687
- },
2688
- "consumes": {},
2689
- "provides": []
2690
- },
2691
- {
2692
- "name": "drive",
2693
- "sql": ["drive", "drive-files"],
2694
- "category": "content",
2695
- "client": {
2696
- "export": "driveBlock",
2697
- "subpath": "better-supabase/blocks/drive"
2698
- },
2699
- "consumes": { "attachments": "optional" },
2700
- "provides": []
2701
- },
2702
- {
2703
- "name": "employees",
2704
- "sql": ["employees"],
2705
- "category": "people",
2706
- "client": {
2707
- "export": "employeesBlock",
2708
- "subpath": "better-supabase/blocks/employees"
2709
- },
2710
- "consumes": {},
2711
- "provides": []
2712
- },
2713
- {
2714
- "name": "engagements",
2715
- "sql": ["engagements"],
2716
- "category": "crm",
2717
- "client": {
2718
- "export": "engagementsBlock",
2719
- "subpath": "better-supabase/blocks/engagements"
2720
- },
2721
- "consumes": {},
2722
- "provides": []
2723
- },
2724
- {
2725
- "name": "ensure-rls",
2726
- "sql": ["ensure-rls"],
2727
- "category": "database",
2728
- "client": null,
2729
- "consumes": {},
2730
- "provides": []
2731
- },
2732
- {
2733
- "name": "entitlements",
2734
- "sql": ["entitlements"],
2735
- "category": "commerce",
2736
- "client": {
2737
- "export": "entitlementsBlock",
2738
- "subpath": "better-supabase/blocks/entitlements"
2739
- },
2740
- "consumes": {},
2741
- "provides": []
2742
- },
2743
- {
2744
- "name": "flags",
2745
- "sql": ["flags"],
2746
- "category": "growth",
2747
- "client": {
2748
- "export": "flagsBlock",
2749
- "subpath": "better-supabase/blocks/flags"
2750
- },
2751
- "consumes": {},
2752
- "provides": []
2753
- },
2754
- {
2755
- "name": "forms",
2756
- "sql": ["forms"],
2757
- "category": "content",
2758
- "client": {
2759
- "export": "formsBlock",
2760
- "subpath": "better-supabase/blocks/forms"
2761
- },
2762
- "consumes": {},
2763
- "provides": []
2764
- },
2765
- {
2766
- "name": "signatures",
2767
- "sql": ["signatures"],
2768
- "category": "content",
2769
- "client": {
2770
- "export": "signaturesBlock",
2771
- "subpath": "better-supabase/blocks/forms"
2772
- },
2773
- "consumes": {},
2774
- "provides": []
2775
- },
2776
- {
2777
- "name": "grants",
2778
- "sql": ["grants"],
2779
- "category": "identity",
2780
- "client": null,
2781
- "consumes": {},
2782
- "provides": []
2783
- },
2784
- {
2785
- "name": "hiring",
2786
- "sql": ["hiring"],
2787
- "category": "people",
2788
- "client": {
2789
- "export": "hiringBlock",
2790
- "subpath": "better-supabase/blocks/hiring"
2791
- },
2792
- "consumes": {},
2793
- "provides": []
2794
- },
2795
- {
2796
- "name": "identities",
2797
- "sql": ["identities"],
2798
- "category": "identity",
2799
- "client": {
2800
- "export": "identitiesBlock",
2801
- "subpath": "better-supabase/blocks/identities"
2802
- },
2803
- "consumes": {},
2804
- "provides": []
2805
- },
2806
- {
2807
- "name": "imports",
2808
- "sql": ["imports"],
2809
- "category": "content",
2810
- "client": {
2811
- "export": "importsBlock",
2812
- "subpath": "better-supabase/blocks/imports"
2813
- },
2814
- "consumes": {},
2815
- "provides": []
2816
- },
2817
- {
2818
- "name": "inbox",
2819
- "sql": ["inbox", "chat-sdk-state"],
2820
- "category": "messaging",
2821
- "client": {
2822
- "export": "inboxBlock",
2823
- "subpath": "better-supabase/blocks/inbox"
2824
- },
2825
- "consumes": {},
2826
- "provides": []
2827
- },
2828
- {
2829
- "name": "inventory",
2830
- "sql": ["inventory"],
2831
- "category": "commerce",
2832
- "client": {
2833
- "export": "inventoryBlock",
2834
- "subpath": "better-supabase/blocks/inventory"
2835
- },
2836
- "consumes": {},
2837
- "provides": []
2838
- },
2839
- {
2840
- "name": "invoices",
2841
- "sql": ["invoices"],
2842
- "category": "commerce",
2843
- "client": {
2844
- "export": "invoicesBlock",
2845
- "subpath": "better-supabase/blocks/invoices"
2846
- },
2847
- "consumes": {},
2848
- "provides": []
2849
- },
2850
- {
2851
- "name": "idempotency",
2852
- "sql": ["idempotency"],
2853
- "category": "developer",
2854
- "client": {
2855
- "export": "idempotencyBlock",
2856
- "subpath": "better-supabase/blocks/jobs"
2857
- },
2858
- "consumes": {},
2859
- "provides": []
2860
- },
2861
- {
2862
- "name": "jobs",
2863
- "sql": ["jobs"],
2864
- "category": "automation",
2865
- "client": {
2866
- "export": "jobsBlock",
2867
- "subpath": "better-supabase/blocks/jobs"
2868
- },
2869
- "consumes": {},
2870
- "provides": []
2871
- },
2872
- {
2873
- "name": "rate-limit",
2874
- "sql": ["rate-limit"],
2875
- "category": "developer",
2876
- "client": {
2877
- "export": "rateLimitBlock",
2878
- "subpath": "better-supabase/blocks/jobs"
2879
- },
2880
- "consumes": {},
2881
- "provides": []
2882
- },
2883
- {
2884
- "name": "webhook-inbox",
2885
- "sql": ["webhook-inbox"],
2886
- "category": "developer",
2887
- "client": {
2888
- "export": "webhookInboxBlock",
2889
- "subpath": "better-supabase/blocks/jobs"
2890
- },
2891
- "consumes": {},
2892
- "provides": []
2893
- },
2894
- {
2895
- "name": "jsonb-schemas",
2896
- "sql": ["jsonb-schemas"],
2897
- "category": "database",
2898
- "client": null,
2899
- "consumes": {},
2900
- "provides": []
2901
- },
2902
- {
2903
- "name": "knowledge",
2904
- "sql": ["knowledge"],
2905
- "category": "ai",
2906
- "client": {
2907
- "export": "knowledgeBlock",
2908
- "subpath": "better-supabase/blocks/knowledge"
2909
- },
2910
- "consumes": { "files": "optional" },
2911
- "provides": []
2912
- },
2913
- {
2914
- "name": "memory",
2915
- "sql": ["memory"],
2916
- "category": "ai",
2917
- "client": {
2918
- "export": "memoryBlock",
2919
- "subpath": "better-supabase/blocks/memory"
2920
- },
2921
- "consumes": {},
2922
- "provides": []
2923
- },
2924
- {
2925
- "name": "metrics",
2926
- "sql": ["metrics"],
2927
- "category": "admin",
2928
- "client": {
2929
- "export": "metricsBlock",
2930
- "subpath": "better-supabase/blocks/metrics"
2931
- },
2932
- "consumes": {},
2933
- "provides": ["sink"]
2934
- },
2935
- {
2936
- "name": "mfa",
2937
- "sql": ["mfa"],
2938
- "category": "identity",
2939
- "client": null,
2940
- "consumes": {},
2941
- "provides": []
2942
- },
2943
- {
2944
- "name": "notifications",
2945
- "sql": ["notifications"],
2946
- "category": "messaging",
2947
- "client": {
2948
- "export": "notificationsBlock",
2949
- "subpath": "better-supabase/blocks/notifications"
2950
- },
2951
- "consumes": {},
2952
- "provides": ["notifier"]
2953
- },
2954
- {
2955
- "name": "number-sequences",
2956
- "sql": ["number-sequences"],
2957
- "category": "database",
2958
- "client": {
2959
- "export": "numberSequencesBlock",
2960
- "subpath": "better-supabase/blocks/number-sequences"
2961
- },
2962
- "consumes": {},
2963
- "provides": []
2964
- },
2965
- {
2966
- "name": "oauth-server",
2967
- "sql": ["oauth-server"],
2968
- "category": "developer",
2969
- "client": {
2970
- "export": "oauthServerBlock",
2971
- "subpath": "better-supabase/blocks/oauth-server"
2972
- },
2973
- "consumes": {},
2974
- "provides": []
2975
- },
2976
- {
2977
- "name": "onboarding",
2978
- "sql": ["onboarding"],
2979
- "category": "growth",
2980
- "client": {
2981
- "export": "onboardingBlock",
2982
- "subpath": "better-supabase/blocks/onboarding"
2983
- },
2984
- "consumes": {},
2985
- "provides": []
2986
- },
2987
- {
2988
- "name": "orders",
2989
- "sql": ["orders"],
2990
- "category": "commerce",
2991
- "client": {
2992
- "export": "ordersBlock",
2993
- "subpath": "better-supabase/blocks/orders"
2994
- },
2995
- "consumes": {},
2996
- "provides": []
2997
- },
2998
- {
2999
- "name": "organizations",
3000
- "sql": ["organizations", "invitations"],
3001
- "category": "tenancy",
3002
- "client": {
3003
- "export": "organizationsBlock",
3004
- "subpath": "better-supabase/blocks/organizations"
3005
- },
3006
- "consumes": {},
3007
- "provides": []
3008
- },
3009
- {
3010
- "name": "outbox",
3011
- "sql": ["outbox"],
3012
- "category": "automation",
3013
- "client": {
3014
- "export": "outboxBlock",
3015
- "subpath": "better-supabase/blocks/outbox"
3016
- },
3017
- "consumes": {},
3018
- "provides": []
3019
- },
3020
- {
3021
- "name": "parties",
3022
- "sql": ["parties"],
3023
- "category": "crm",
3024
- "client": {
3025
- "export": "partiesBlock",
3026
- "subpath": "better-supabase/blocks/parties"
3027
- },
3028
- "consumes": {},
3029
- "provides": []
3030
- },
3031
- {
3032
- "name": "pgtap",
3033
- "sql": ["pgtap"],
3034
- "category": "database",
3035
- "client": null,
3036
- "consumes": {},
3037
- "provides": []
3038
- },
3039
- {
3040
- "name": "pipelines",
3041
- "sql": ["pipelines"],
3042
- "category": "work",
3043
- "client": {
3044
- "export": "pipelinesBlock",
3045
- "subpath": "better-supabase/blocks/pipelines"
3046
- },
3047
- "consumes": {},
3048
- "provides": []
3049
- },
3050
- {
3051
- "name": "profiles",
3052
- "sql": ["profiles"],
3053
- "category": "tenancy",
3054
- "client": {
3055
- "export": "profilesBlock",
3056
- "subpath": "better-supabase/blocks/profiles"
3057
- },
3058
- "consumes": {},
3059
- "provides": []
3060
- },
3061
- {
3062
- "name": "promotions",
3063
- "sql": ["promotions"],
3064
- "category": "commerce",
3065
- "client": {
3066
- "export": "promotionsBlock",
3067
- "subpath": "better-supabase/blocks/promotions"
3068
- },
3069
- "consumes": {},
3070
- "provides": []
3071
- },
3072
- {
3073
- "name": "push",
3074
- "sql": ["push"],
3075
- "category": "messaging",
3076
- "client": {
3077
- "export": "pushBlock",
3078
- "subpath": "better-supabase/blocks/push"
3079
- },
3080
- "consumes": {},
3081
- "provides": []
3082
- },
3083
- {
3084
- "name": "quotes",
3085
- "sql": ["quotes"],
3086
- "category": "crm",
3087
- "client": {
3088
- "export": "quotesBlock",
3089
- "subpath": "better-supabase/blocks/quotes"
3090
- },
3091
- "consumes": {},
3092
- "provides": []
3093
- },
3094
- {
3095
- "name": "rank",
3096
- "sql": ["rank"],
3097
- "category": "database",
3098
- "client": {
3099
- "export": "rankBlock",
3100
- "subpath": "better-supabase/blocks/rank"
3101
- },
3102
- "consumes": {},
3103
- "provides": []
3104
- },
3105
- {
3106
- "name": "reactions",
3107
- "sql": ["reactions"],
3108
- "category": "collaboration",
3109
- "client": {
3110
- "export": "reactionsBlock",
3111
- "subpath": "better-supabase/blocks/reactions"
3112
- },
3113
- "consumes": {},
3114
- "provides": []
3115
- },
3116
- {
3117
- "name": "read-sets",
3118
- "sql": ["read-sets"],
3119
- "category": "database",
3120
- "client": null,
3121
- "consumes": {},
3122
- "provides": []
3123
- },
3124
- {
3125
- "name": "realtime-tables",
3126
- "sql": ["realtime-tables"],
3127
- "category": "database",
3128
- "client": null,
3129
- "consumes": {},
3130
- "provides": []
3131
- },
3132
- {
3133
- "name": "relations",
3134
- "sql": ["relations"],
3135
- "category": "work",
3136
- "client": {
3137
- "export": "relationsBlock",
3138
- "subpath": "better-supabase/blocks/relations"
3139
- },
3140
- "consumes": {},
3141
- "provides": []
3142
- },
3143
- {
3144
- "name": "reminders",
3145
- "sql": ["reminders"],
3146
- "category": "scheduling",
3147
- "client": {
3148
- "export": "remindersBlock",
3149
- "subpath": "better-supabase/blocks/reminders"
3150
- },
3151
- "consumes": { "notifier": "optional" },
3152
- "provides": []
3153
- },
3154
- {
3155
- "name": "reserved-slugs",
3156
- "sql": ["reserved-slugs"],
3157
- "category": "tenancy",
3158
- "client": null,
3159
- "consumes": {},
3160
- "provides": []
3161
- },
3162
- {
3163
- "name": "rules",
3164
- "sql": ["rules"],
3165
- "category": "automation",
3166
- "client": {
3167
- "export": "rulesBlock",
3168
- "subpath": "better-supabase/blocks/rules"
3169
- },
3170
- "consumes": {},
3171
- "provides": []
3172
- },
3173
- {
3174
- "name": "vercel-marketplace",
3175
- "sql": ["vercel-marketplace"],
3176
- "category": "developer",
3177
- "client": {
3178
- "export": "vercelMarketplaceBlock",
3179
- "subpath": "better-supabase/blocks/vercel-marketplace"
3180
- },
3181
- "consumes": {},
3182
- "provides": []
3183
- },
3184
- {
3185
- "name": "saved-views",
3186
- "sql": ["saved-views"],
3187
- "category": "work",
3188
- "client": {
3189
- "export": "savedViewsBlock",
3190
- "subpath": "better-supabase/blocks/saved-views"
3191
- },
3192
- "consumes": {},
3193
- "provides": []
3194
- },
3195
- {
3196
- "name": "search",
3197
- "sql": ["search"],
3198
- "category": "work",
3199
- "client": {
3200
- "export": "searchBlock",
3201
- "subpath": "better-supabase/blocks/search"
3202
- },
3203
- "consumes": {},
3204
- "provides": ["sink"]
3205
- },
3206
- {
3207
- "name": "service-principals",
3208
- "sql": ["service-principals"],
3209
- "category": "developer",
3210
- "client": {
3211
- "export": "servicePrincipalsBlock",
3212
- "subpath": "better-supabase/blocks/service-principals"
3213
- },
3214
- "consumes": {},
3215
- "provides": []
3216
- },
3217
- {
3218
- "name": "sessions",
3219
- "sql": ["sessions"],
3220
- "category": "identity",
3221
- "client": null,
3222
- "consumes": {},
3223
- "provides": []
3224
- },
3225
- {
3226
- "name": "settings",
3227
- "sql": ["settings"],
3228
- "category": "tenancy",
3229
- "client": {
3230
- "export": "settingsBlock",
3231
- "subpath": "better-supabase/blocks/settings"
3232
- },
3233
- "consumes": {},
3234
- "provides": []
3235
- },
3236
- {
3237
- "name": "share-links",
3238
- "sql": ["share-links"],
3239
- "category": "collaboration",
3240
- "client": {
3241
- "export": "shareLinksBlock",
3242
- "subpath": "better-supabase/blocks/share-links"
3243
- },
3244
- "consumes": {},
3245
- "provides": []
3246
- },
3247
- {
3248
- "name": "shared-signals",
3249
- "sql": ["shared-signals"],
3250
- "category": "developer",
3251
- "client": {
3252
- "export": "sharedSignalsBlock",
3253
- "subpath": "better-supabase/blocks/shared-signals"
3254
- },
3255
- "consumes": {},
3256
- "provides": []
3257
- },
3258
- {
3259
- "name": "signing-keys",
3260
- "sql": ["signing-keys"],
3261
- "category": "developer",
3262
- "client": {
3263
- "export": "signingKeysBlock",
3264
- "subpath": "better-supabase/blocks/signing-keys"
3265
- },
3266
- "consumes": {},
3267
- "provides": []
3268
- },
3269
- {
3270
- "name": "sla",
3271
- "sql": ["sla"],
3272
- "category": "work",
3273
- "client": {
3274
- "export": "slaBlock",
3275
- "subpath": "better-supabase/blocks/sla"
3276
- },
3277
- "consumes": {},
3278
- "provides": []
3279
- },
3280
- {
3281
- "name": "sso",
3282
- "sql": ["sso"],
3283
- "category": "identity",
3284
- "client": {
3285
- "export": "ssoBlock",
3286
- "subpath": "better-supabase/blocks/sso"
3287
- },
3288
- "consumes": {},
3289
- "provides": []
3290
- },
3291
- {
3292
- "name": "state-machine",
3293
- "sql": ["state-machine"],
3294
- "category": "work",
3295
- "client": {
3296
- "export": "stateMachineBlock",
3297
- "subpath": "better-supabase/blocks/state-machine"
3298
- },
3299
- "consumes": {},
3300
- "provides": []
3301
- },
3302
- {
3303
- "name": "streams",
3304
- "sql": ["streams"],
3305
- "category": "automation",
3306
- "client": null,
3307
- "consumes": {},
3308
- "provides": []
3309
- },
3310
- {
3311
- "name": "subjects",
3312
- "sql": ["subjects"],
3313
- "category": "identity",
3314
- "client": null,
3315
- "consumes": {},
3316
- "provides": []
3317
- },
3318
- {
3319
- "name": "support-sessions",
3320
- "sql": ["support-sessions"],
3321
- "category": "admin",
3322
- "client": null,
3323
- "consumes": {},
3324
- "provides": []
3325
- },
3326
- {
3327
- "name": "tags",
3328
- "sql": ["tags"],
3329
- "category": "work",
3330
- "client": {
3331
- "export": "tagsBlock",
3332
- "subpath": "better-supabase/blocks/tags"
3333
- },
3334
- "consumes": {},
3335
- "provides": []
3336
- },
3337
- {
3338
- "name": "targets",
3339
- "sql": ["targets"],
3340
- "category": "crm",
3341
- "client": {
3342
- "export": "targetsBlock",
3343
- "subpath": "better-supabase/blocks/targets"
3344
- },
3345
- "consumes": {},
3346
- "provides": []
3347
- },
3348
- {
3349
- "name": "teams",
3350
- "sql": ["teams"],
3351
- "category": "tenancy",
3352
- "client": {
3353
- "export": "teamsBlock",
3354
- "subpath": "better-supabase/blocks/teams"
3355
- },
3356
- "consumes": {},
3357
- "provides": []
3358
- },
3359
- {
3360
- "name": "templates",
3361
- "sql": ["templates"],
3362
- "category": "content",
3363
- "client": {
3364
- "export": "templatesBlock",
3365
- "subpath": "better-supabase/blocks/templates"
3366
- },
3367
- "consumes": {},
3368
- "provides": []
3369
- },
3370
- {
3371
- "name": "tenant",
3372
- "sql": ["tenant"],
3373
- "category": "tenancy",
3374
- "client": null,
3375
- "consumes": {},
3376
- "provides": []
3377
- },
3378
- {
3379
- "name": "time-tracking",
3380
- "sql": ["time-tracking"],
3381
- "category": "people",
3382
- "client": {
3383
- "export": "timeTrackingBlock",
3384
- "subpath": "better-supabase/blocks/time-tracking"
3385
- },
3386
- "consumes": {},
3387
- "provides": []
3388
- },
3389
- {
3390
- "name": "trash",
3391
- "sql": ["trash"],
3392
- "category": "content",
3393
- "client": {
3394
- "export": "trashBlock",
3395
- "subpath": "better-supabase/blocks/trash"
3396
- },
3397
- "consumes": {},
3398
- "provides": []
3399
- },
3400
- {
3401
- "name": "undo",
3402
- "sql": [],
3403
- "category": "work",
3404
- "client": {
3405
- "export": "undoBlock",
3406
- "subpath": "better-supabase/blocks/undo"
3407
- },
3408
- "consumes": {},
3409
- "provides": []
3410
- },
3411
- {
3412
- "name": "updated-at",
3413
- "sql": ["updated-at"],
3414
- "category": "database",
3415
- "client": null,
3416
- "consumes": {},
3417
- "provides": []
3418
- },
3419
- {
3420
- "name": "usage",
3421
- "sql": ["usage"],
3422
- "category": "commerce",
3423
- "client": {
3424
- "export": "usageBlock",
3425
- "subpath": "better-supabase/blocks/usage"
3426
- },
3427
- "consumes": {},
3428
- "provides": []
3429
- },
3430
- {
3431
- "name": "vector-search",
3432
- "sql": ["vector-search"],
3433
- "category": "ai",
3434
- "client": null,
3435
- "consumes": {},
3436
- "provides": []
3437
- },
3438
- {
3439
- "name": "versions",
3440
- "sql": ["versions"],
3441
- "category": "content",
3442
- "client": {
3443
- "export": "versionsBlock",
3444
- "subpath": "better-supabase/blocks/versions"
3445
- },
3446
- "consumes": {},
3447
- "provides": []
3448
- },
3449
- {
3450
- "name": "waitlist",
3451
- "sql": ["waitlist"],
3452
- "category": "growth",
3453
- "client": {
3454
- "export": "waitlistBlock",
3455
- "subpath": "better-supabase/blocks/waitlist"
3456
- },
3457
- "consumes": {},
3458
- "provides": []
3459
- },
3460
- {
3461
- "name": "incoming-webhooks",
3462
- "sql": ["webhooks-in"],
3463
- "category": "developer",
3464
- "client": {
3465
- "export": "incomingWebhooksBlock",
3466
- "subpath": "better-supabase/blocks/webhooks"
3467
- },
3468
- "consumes": {},
3469
- "provides": []
3470
- },
3471
- {
3472
- "name": "webhooks",
3473
- "sql": ["webhooks-out"],
3474
- "category": "developer",
3475
- "client": {
3476
- "export": "webhooksBlock",
3477
- "subpath": "better-supabase/blocks/webhooks"
3478
- },
3479
- "consumes": {},
3480
- "provides": []
3481
- },
3482
- {
3483
- "name": "work-items",
3484
- "sql": ["work-items"],
3485
- "category": "work",
3486
- "client": {
3487
- "export": "workItemsBlock",
3488
- "subpath": "better-supabase/blocks/work-items"
3489
- },
3490
- "consumes": {},
3491
- "provides": []
3492
- },
3493
- {
3494
- "name": "workflow-builder",
3495
- "sql": ["workflow-builder"],
3496
- "category": "automation",
3497
- "client": {
3498
- "export": "workflowBuilderBlock",
3499
- "subpath": "better-supabase/blocks/workflow-builder"
3500
- },
3501
- "consumes": { "workflows": "optional" },
3502
- "provides": []
3503
- },
3504
- {
3505
- "name": "workflow-sdk-world",
3506
- "sql": ["workflow-sdk-world"],
3507
- "category": "automation",
3508
- "client": null,
3509
- "consumes": {},
3510
- "provides": []
3511
- },
3512
- {
3513
- "name": "workflows",
3514
- "sql": ["workflows"],
3515
- "category": "automation",
3516
- "client": {
3517
- "export": "workflowsBlock",
3518
- "subpath": "better-supabase/blocks/workflows"
3519
- },
3520
- "consumes": {},
3521
- "provides": ["workflows"]
3522
- }
3523
- ],
3524
- "glue": [
3525
- {
3526
- "name": "blocks",
3527
- "title": "Block clients",
3528
- "blocks": [
3529
- "organizations",
3530
- "notifications",
3531
- "search",
3532
- "audit"
3533
- ],
3534
- "frameworks": [
3535
- "next",
3536
- "vite",
3537
- "tanstack-start",
3538
- "react-router",
3539
- "expo"
3540
- ],
3541
- "platforms": ["web", "native"],
3542
- "targets": ["@lib/blocks.ts", "@lib/notification-types.ts"]
3543
- },
3544
- {
3545
- "name": "postgres",
3546
- "title": "Server Postgres pool",
3547
- "blocks": [
3548
- "jobs",
3549
- "outbox",
3550
- "billing"
3551
- ],
3552
- "frameworks": [
3553
- "next",
3554
- "hono",
3555
- "tanstack-start",
3556
- "react-router"
3557
- ],
3558
- "platforms": ["web"],
3559
- "targets": ["@lib/postgres.ts"]
3560
- },
3561
- {
3562
- "name": "notifications-actions-next",
3563
- "title": "Notification server actions (Next.js)",
3564
- "blocks": ["notifications"],
3565
- "frameworks": ["next"],
3566
- "platforms": ["web"],
3567
- "targets": ["@lib/notifications-actions.ts"]
3568
- },
3569
- {
3570
- "name": "onboarding-checklist",
3571
- "title": "Onboarding checklist",
3572
- "blocks": ["onboarding"],
3573
- "frameworks": [
3574
- "next",
3575
- "vite",
3576
- "tanstack-start",
3577
- "react-router",
3578
- "expo"
3579
- ],
3580
- "platforms": ["web", "native"],
3581
- "targets": ["@lib/onboarding.ts"]
3582
- },
3583
- {
3584
- "name": "outbox",
3585
- "title": "Outbox client",
3586
- "blocks": ["outbox"],
3587
- "frameworks": [
3588
- "next",
3589
- "hono",
3590
- "tanstack-start",
3591
- "react-router"
3592
- ],
3593
- "platforms": ["web"],
3594
- "targets": ["@lib/outbox.ts"]
3595
- },
3596
- {
3597
- "name": "outbox-relay-next",
3598
- "title": "Outbox relay route (Next.js)",
3599
- "blocks": ["outbox"],
3600
- "frameworks": ["next"],
3601
- "platforms": ["web"],
3602
- "targets": ["~/app/api/outbox/route.ts"]
3603
- },
3604
- {
3605
- "name": "outbox-relay-hono",
3606
- "title": "Outbox relay route (Hono)",
3607
- "blocks": ["outbox"],
3608
- "frameworks": ["hono"],
3609
- "platforms": ["web"],
3610
- "targets": ["~/src/routes/outbox.ts"]
3611
- },
3612
- {
3613
- "name": "stripe-webhook-next",
3614
- "title": "Stripe webhook routes (Next.js)",
3615
- "blocks": ["billing", "webhook-inbox"],
3616
- "frameworks": ["next"],
3617
- "platforms": ["web"],
3618
- "targets": [
3619
- "@lib/stripe.ts",
3620
- "~/app/api/stripe/route.ts",
3621
- "~/app/api/stripe/process/route.ts"
3622
- ]
3623
- },
3624
- {
3625
- "name": "jobs-drain-next",
3626
- "title": "Jobs drain cron route (Next.js)",
3627
- "blocks": ["jobs"],
3628
- "frameworks": ["next"],
3629
- "platforms": ["web"],
3630
- "targets": ["@lib/jobs.ts", "~/app/api/jobs/drain/route.ts"]
3631
- },
3632
- {
3633
- "name": "use-current-organization",
3634
- "title": "useCurrentOrganization",
3635
- "blocks": ["organizations"],
3636
- "frameworks": [
3637
- "next",
3638
- "vite",
3639
- "tanstack-start",
3640
- "react-router",
3641
- "expo"
3642
- ],
3643
- "platforms": ["web", "native"],
3644
- "targets": ["@hooks/use-current-organization.ts"]
3645
- },
3646
- {
3647
- "name": "use-rule-editor",
3648
- "title": "useRuleEditor",
3649
- "blocks": ["rules"],
3650
- "frameworks": [
3651
- "next",
3652
- "vite",
3653
- "tanstack-start",
3654
- "react-router",
3655
- "expo"
3656
- ],
3657
- "platforms": ["web", "native"],
3658
- "targets": ["@hooks/use-rule-editor.ts"]
3659
- },
3660
- {
3661
- "name": "push-native",
3662
- "title": "usePushRegistration (Expo)",
3663
- "blocks": ["push"],
3664
- "frameworks": ["expo"],
3665
- "platforms": ["native"],
3666
- "targets": ["@hooks/use-push-registration.ts"]
3667
- },
3668
- {
3669
- "name": "expo-config-native",
3670
- "title": "Expo config",
3671
- "blocks": ["push"],
3672
- "frameworks": ["expo"],
3673
- "platforms": ["native"],
3674
- "targets": ["~/app.config.ts"]
3675
- },
3676
- {
3677
- "name": "saas-next",
3678
- "title": "SaaS glue (Next.js)",
3679
- "blocks": [
3680
- "organizations",
3681
- "notifications",
3682
- "search",
3683
- "audit",
3684
- "onboarding",
3685
- "outbox",
3686
- "jobs",
3687
- "billing",
3688
- "webhook-inbox"
3689
- ],
3690
- "frameworks": ["next"],
3691
- "platforms": ["web"],
3692
- "targets": [],
3693
- "preset": "saas"
3694
- },
3695
- {
3696
- "name": "saas-expo",
3697
- "title": "SaaS glue (Expo)",
3698
- "blocks": [
3699
- "organizations",
3700
- "notifications",
3701
- "search",
3702
- "audit",
3703
- "onboarding",
3704
- "push"
3705
- ],
3706
- "frameworks": ["expo"],
3707
- "platforms": ["native"],
3708
- "targets": [],
3709
- "preset": "saas"
3710
- }
3711
- ]
3712
- };
3713
- //#endregion
3714
- //#region src/preset/resolve.ts
3715
- /** "a", "a and b", "a, b and c". */
3716
- function listNames(names) {
3717
- if (names.length <= 1) return names.join("");
3718
- return `${names.slice(0, -1).join(", ")} and ${names.at(-1) ?? ""}`;
3719
- }
3720
- const TENANT_PROVIDERS = /* @__PURE__ */ new Set(["tenant", "access"]);
3721
- function requiresOf(block, preset) {
3722
- const requires = block.requiresByAccess?.[preset.access] ?? block.requires;
3723
- return preset.scope === "tenant" || TENANT_PROVIDERS.has(block.name) ? requires : requires.filter((name) => !TENANT_PROVIDERS.has(name));
3724
- }
3725
- /** `name` and everything it requires, dependencies first. */
3726
- function closureOf(name, preset, byName) {
3727
- const out = [];
3728
- const visit = (each) => {
3729
- const block = byName.get(each);
3730
- if (block === void 0 || out.includes(each)) return;
3731
- out.push(each);
3732
- for (const dependency of requiresOf(block, preset)) visit(dependency);
3733
- };
3734
- visit(name);
3735
- return out;
3736
- }
3737
- /**
3738
- * Why `name` can't install with the preset's conventions, or undefined.
3739
- * `/create` disables a block with this reason before it is selected.
3740
- */
3741
- function presetBlockConflict(preset, name, catalog = PRESET_CATALOG) {
3742
- const byName = new Map(catalog.blocks.map((block) => [block.name, block]));
3743
- if (!byName.has(name)) return `"${name}" is not a block`;
3744
- if (preset.scope === "tenant") return;
3745
- if (TENANT_PROVIDERS.has(name)) return `scope "${preset.scope}" has no tenants`;
3746
- const tenantOnly = closureOf(name, preset, byName).filter((each) => !(byName.get(each)?.scopes ?? [preset.scope]).includes(preset.scope));
3747
- if (tenantOnly.length === 0) return;
3748
- return tenantOnly[0] === name ? `it needs tenants, and scope "${preset.scope}" has none` : `it needs ${listNames(tenantOnly)}, which need tenants, and scope "${preset.scope}" has none`;
3749
- }
3750
- function fieldConflicts(preset) {
3751
- const conflicts = [];
3752
- if (preset.framework === "expo" && preset.platforms === "web") conflicts.push({
3753
- field: "platforms",
3754
- reason: "Expo builds a native app: choose native or both"
3755
- });
3756
- if (preset.platforms === "native" && preset.framework !== "expo") conflicts.push({
3757
- field: "framework",
3758
- reason: `a native-only app runs on Expo, not ${preset.framework}`
3759
- });
3760
- return conflicts;
3761
- }
3762
- /**
3763
- * The full block set for a preset: the selected blocks and what they require, a
3764
- * reason per block, the soft integrations active between them, and what can't
3765
- * install. It reads the generated catalog, never the SQL renderers, so it runs
3766
- * in the browser.
3767
- */
3768
- function resolvePreset(preset, catalog = PRESET_CATALOG) {
3769
- const byName = new Map(catalog.blocks.map((block) => [block.name, block]));
3770
- const conflicts = fieldConflicts(preset);
3771
- const selected = [...new Set(preset.blocks)];
3772
- const installed = /* @__PURE__ */ new Set();
3773
- const requiredBy = /* @__PURE__ */ new Map();
3774
- for (const name of selected) {
3775
- const problem = presetBlockConflict(preset, name, catalog);
3776
- if (problem !== void 0) {
3777
- conflicts.push({
3778
- block: name,
3779
- reason: problem
3780
- });
3781
- continue;
3782
- }
3783
- for (const each of closureOf(name, preset, byName)) installed.add(each);
3784
- }
3785
- for (const block of catalog.blocks) {
3786
- if (!installed.has(block.name)) continue;
3787
- if (!block.tenantNameClashes?.includes(preset.tenantName)) continue;
3788
- conflicts.push({
3789
- block: block.name,
3790
- field: "tenantName",
3791
- reason: `tenant name "${preset.tenantName}" renames the tenant tables and columns to names the ${block.name} block already uses`
3792
- });
3793
- }
3794
- const members = catalog.blocks.filter((block) => installed.has(block.name));
3795
- for (const block of members) for (const dependency of requiresOf(block, preset)) requiredBy.set(dependency, [...requiredBy.get(dependency) ?? [], block.name]);
3796
- const blocks = members.map((block) => {
3797
- const by = requiredBy.get(block.name) ?? [];
3798
- const isSelected = selected.includes(block.name);
3799
- return {
3800
- name: block.name,
3801
- title: block.title,
3802
- category: block.category,
3803
- selected: isSelected,
3804
- requiredBy: by,
3805
- reason: isSelected ? "selected" : `required by ${listNames(by)}`
3806
- };
3807
- });
3808
- const integrations = members.flatMap((block) => block.integrates.filter((to) => to !== block.name && installed.has(to)).map((to) => ({
3809
- from: block.name,
3810
- to
3811
- })));
3812
- const manifestNames = new Set(members.map((block) => block.manifest));
3813
- const manifests = catalog.manifests.filter((manifest) => manifestNames.has(manifest.name));
3814
- for (const manifest of manifests) for (const [port, need] of Object.entries(manifest.consumes)) {
3815
- if (need !== "required") continue;
3816
- if (manifests.some((each) => each.provides.some((p) => p === port))) continue;
3817
- conflicts.push({
3818
- block: manifest.name,
3819
- reason: `it needs a ${port} port, and no selected block provides one`
3820
- });
3821
- }
3822
- return {
3823
- preset,
3824
- blocks,
3825
- integrations,
3826
- conflicts,
3827
- manifests
3828
- };
3829
- }
3830
- //#endregion
3831
- //#region src/preset/config.ts
3832
- /** Reads a named preset, a code or a `/create?preset=` URL into a `Preset`. */
3833
- function presetOf(input) {
3834
- if (typeof input !== "string") return {
3835
- ...DEFAULT_CONVENTIONS,
3836
- ...input,
3837
- blocks: input.blocks ?? []
3838
- };
3839
- const value = /[?&]preset=([^&#]+)/.exec(input)?.[1] ?? input;
3840
- if (isPresetName(value)) return namedPreset(value);
3841
- if (isPresetCode(value)) return decodePreset(value).preset;
3842
- throw new TypeError(`preset: "${input}" is not a preset. Use a name (${PRESET_NAMES.join(", ")}), a code from /create, or its URL.`);
3843
- }
3844
- /**
3845
- * `blocks.access` for the conventions: the model and id type that differ from
3846
- * the defaults.
3847
- */
3848
- function accessEntry(conventions) {
3849
- return {
3850
- ...conventions.access === "roles" ? {} : { model: conventions.access },
3851
- ...conventions.idType === "uuid" ? {} : { idType: conventions.idType }
3852
- };
3853
- }
3854
- /** The `blocks` entry each block gets from the preset's conventions. */
3855
- function conventionEntry(name, preset) {
3856
- return name === "access" ? accessEntry(preset) : {};
3857
- }
3858
- /** `sql` for the conventions, or undefined when they are the defaults. */
3859
- function sqlOf(conventions) {
3860
- const sql = {
3861
- ...conventions.api === "none" ? {} : { api: conventions.api },
3862
- ...conventions.scope === "tenant" ? {} : { scope: conventions.scope },
3863
- ...conventions.tenantName === "organization" ? {} : { naming: { tenant: conventions.tenantName } }
3864
- };
3865
- return Object.keys(sql).length === 0 ? void 0 : sql;
3866
- }
3867
- /**
3868
- * The config keys conventions set without a preset: `casing`, `sql`, and
3869
- * `blocks.access` when the access model or id type differ from the defaults.
3870
- */
3871
- function conventionConfig(conventions) {
3872
- const sql = sqlOf(conventions);
3873
- const access = accessEntry(conventions);
3874
- return {
3875
- casing: conventions.casing,
3876
- ...sql === void 0 ? {} : { sql },
3877
- ...Object.keys(access).length === 0 ? {} : { blocks: { access } }
3878
- };
3879
- }
3880
- /**
3881
- * The config keys a resolved preset sets: its blocks and the conventions that
3882
- * differ from the defaults.
3883
- */
3884
- function presetConfig(resolved) {
3885
- const { preset } = resolved;
3886
- const sql = sqlOf(preset);
3887
- return {
3888
- ...preset.casing === "snake" ? {} : { casing: preset.casing },
3889
- ...sql === void 0 ? {} : { sql },
3890
- ...preset.integrations.length === 0 ? {} : { integrations: preset.integrations },
3891
- blocks: Object.fromEntries(resolved.blocks.map((block) => [block.name, conventionEntry(block.name, preset)]))
3892
- };
3893
- }
3894
- function isBlockList(blocks) {
3895
- return Array.isArray(blocks);
3896
- }
3897
- function blocksOf(blocks) {
3898
- if (blocks === void 0) return {};
3899
- if (!isBlockList(blocks)) return blocks;
3900
- return Object.fromEntries(blocks.map((name) => [name, {}]));
3901
- }
3902
- /**
3903
- * `config` with its `preset` expanded: the preset's blocks (and what they
3904
- * require) and conventions first, then the config's own keys over them, so
3905
- * explicit config wins. A block in both keeps the preset's settings that the
3906
- * config's entry leaves unset. Expanding twice gives the same config.
3907
- */
3908
- function expandPreset(config) {
3909
- if (config.preset === void 0) return config;
3910
- const resolved = resolvePreset(presetOf(config.preset));
3911
- if (resolved.conflicts.length > 0) throw new TypeError(`preset: ${listNames(resolved.conflicts.map((conflict) => `${conflict.block ?? conflict.field ?? ""} (${conflict.reason})`))} can't install.`);
3912
- const base = presetConfig(resolved);
3913
- const own = blocksOf(config.blocks);
3914
- const blocks = Object.fromEntries(Object.entries(base.blocks));
3915
- for (const [name, entry] of Object.entries(own)) blocks[name] = {
3916
- ...blocks[name],
3917
- ...entry
3918
- };
3919
- return {
3920
- ...base,
3921
- ...config,
3922
- ...config.sql === void 0 && base.sql === void 0 ? {} : { sql: {
3923
- ...base.sql,
3924
- ...config.sql
3925
- } },
3926
- blocks
3927
- };
3928
- }
3929
- //#endregion
3930
- export { GEN_TASKS as A, PRESET_FRAMEWORKS as C, presetField as D, integrationsForFramework as E, INTEGRATION_NAMES as M, SKILLS_AGENTS as N, presetValueLabel as O, PRESET_FIELDS as S, PRESET_VERSION as T, decodePreset as _, listNames as a, withPresetField as b, PRESET_CATALOG as c, PRESET_GROUPS as d, PRESET_NAMES as f, namedPreset as g, isPresetName as h, presetOf as i, INTEGRATION_INFO as j, PRESET_BLOCKS as k, DEFAULT_PRESET_NAME as l, defaultPresetCode as m, expandPreset as n, presetBlockConflict as o, defaultPreset as p, presetConfig as r, resolvePreset as s, conventionConfig as t, PRESETS as u, encodePreset as v, PRESET_TENANT_NAMES as w, DEFAULT_CONVENTIONS as x, isPresetCode as y };