handoff-app 1.2.2-7 → 2.0.0-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 (349) hide show
  1. package/Changelog.md +37 -15
  2. package/README.md +372 -118
  3. package/dist/app-builder/build.d.ts +41 -2
  4. package/dist/app-builder/build.js +455 -18
  5. package/dist/app-builder/client-config.d.ts +15 -2
  6. package/dist/app-builder/client-config.js +43 -4
  7. package/dist/app-builder/config-diff/snapshot.d.ts +1 -6
  8. package/dist/app-builder/config-diff/snapshot.js +2 -9
  9. package/dist/app-builder/index.d.ts +1 -1
  10. package/dist/app-builder/index.js +3 -1
  11. package/dist/app-builder/nav-shell.d.ts +23 -0
  12. package/dist/app-builder/nav-shell.js +80 -0
  13. package/dist/app-builder/static-export.d.ts +17 -0
  14. package/dist/app-builder/static-export.js +181 -0
  15. package/dist/app-builder/vercel-output.d.ts +39 -0
  16. package/dist/app-builder/vercel-output.js +259 -0
  17. package/dist/app-builder/watchers/utils.d.ts +2 -0
  18. package/dist/app-builder/watchers.d.ts +14 -4
  19. package/dist/app-builder/watchers.js +123 -28
  20. package/dist/app-builder/websocket.js +1 -1
  21. package/dist/artifacts/index.d.ts +2 -0
  22. package/dist/artifacts/index.js +13 -0
  23. package/dist/artifacts/types.d.ts +136 -0
  24. package/dist/artifacts/types.js +24 -0
  25. package/dist/artifacts/url.d.ts +49 -0
  26. package/dist/artifacts/url.js +86 -0
  27. package/dist/cache/build-cache.js +48 -4
  28. package/dist/cli.js +0 -0
  29. package/dist/commands/build/app.js +1 -2
  30. package/dist/commands/build/index.d.ts +17 -0
  31. package/dist/commands/build/index.js +66 -0
  32. package/dist/commands/checkout/index.d.ts +24 -0
  33. package/dist/commands/checkout/index.js +71 -0
  34. package/dist/commands/db/migrate.d.ts +11 -0
  35. package/dist/commands/db/migrate.js +33 -0
  36. package/dist/commands/index.js +8 -0
  37. package/dist/commands/publish/index.d.ts +21 -0
  38. package/dist/commands/publish/index.js +68 -0
  39. package/dist/config/defaults.js +15 -1
  40. package/dist/config/loader.js +6 -1
  41. package/dist/config/normalizers/declaration.js +4 -1
  42. package/dist/config/normalizers/page.d.ts +18 -0
  43. package/dist/config/normalizers/page.js +34 -0
  44. package/dist/config/normalizers/pattern.js +7 -1
  45. package/dist/config/runtime.d.ts +4 -0
  46. package/dist/config/runtime.js +53 -5
  47. package/dist/index.d.ts +65 -1
  48. package/dist/index.js +123 -3
  49. package/dist/nav/index.d.ts +83 -0
  50. package/dist/nav/index.js +9 -0
  51. package/dist/nav/registry.d.ts +15 -0
  52. package/dist/nav/registry.js +42 -0
  53. package/dist/nav/resolver.d.ts +8 -0
  54. package/dist/nav/resolver.js +192 -0
  55. package/dist/nav/workspace.d.ts +18 -0
  56. package/dist/nav/workspace.js +103 -0
  57. package/dist/pipeline/styles.js +7 -35
  58. package/dist/pipeline/token-transformers.d.ts +45 -0
  59. package/dist/pipeline/token-transformers.js +71 -0
  60. package/dist/registry/asset-storage/adapters/vercel-blob.d.ts +17 -0
  61. package/dist/registry/asset-storage/adapters/vercel-blob.js +87 -0
  62. package/dist/registry/asset-storage/define.d.ts +10 -0
  63. package/dist/registry/asset-storage/define.js +13 -0
  64. package/dist/registry/asset-storage/resolve.d.ts +45 -0
  65. package/dist/registry/asset-storage/resolve.js +36 -0
  66. package/dist/registry/asset-storage/types.d.ts +51 -0
  67. package/dist/registry/asset-storage/types.js +9 -0
  68. package/dist/registry/assets/layout.d.ts +22 -0
  69. package/dist/registry/assets/layout.js +30 -0
  70. package/dist/registry/assets/sets.d.ts +18 -0
  71. package/dist/registry/assets/sets.js +44 -0
  72. package/dist/registry/assets/transfer.d.ts +45 -0
  73. package/dist/registry/assets/transfer.js +11 -0
  74. package/dist/registry/checkout/assets.d.ts +16 -0
  75. package/dist/registry/checkout/assets.js +150 -0
  76. package/dist/registry/checkout/index.d.ts +33 -0
  77. package/dist/registry/checkout/index.js +610 -0
  78. package/dist/registry/checkout/tokens.d.ts +15 -0
  79. package/dist/registry/checkout/tokens.js +171 -0
  80. package/dist/registry/client.d.ts +61 -0
  81. package/dist/registry/client.js +211 -0
  82. package/dist/registry/connection.d.ts +30 -0
  83. package/dist/registry/connection.js +36 -0
  84. package/dist/registry/db/adapter.d.ts +43 -0
  85. package/dist/registry/db/adapter.js +59 -0
  86. package/dist/registry/db/client.d.ts +35 -0
  87. package/dist/registry/db/client.js +94 -0
  88. package/dist/registry/db/index.d.ts +5 -0
  89. package/dist/registry/db/index.js +24 -0
  90. package/dist/registry/db/migrate.d.ts +23 -0
  91. package/dist/registry/db/migrate.js +64 -0
  92. package/dist/registry/db/schema.d.ts +4869 -0
  93. package/dist/registry/db/schema.js +347 -0
  94. package/dist/registry/path.d.ts +4 -0
  95. package/dist/registry/path.js +31 -0
  96. package/dist/registry/publish/artifacts.d.ts +16 -0
  97. package/dist/registry/publish/artifacts.js +132 -0
  98. package/dist/registry/publish/assets.d.ts +16 -0
  99. package/dist/registry/publish/assets.js +129 -0
  100. package/dist/registry/publish/errors.d.ts +5 -0
  101. package/dist/registry/publish/errors.js +26 -0
  102. package/dist/registry/publish/index.d.ts +27 -0
  103. package/dist/registry/publish/index.js +126 -0
  104. package/dist/registry/publish/package.d.ts +27 -0
  105. package/dist/registry/publish/package.js +257 -0
  106. package/dist/registry/publish/publish-build.d.ts +12 -0
  107. package/dist/registry/publish/publish-build.js +43 -0
  108. package/dist/registry/publish/tokens.d.ts +18 -0
  109. package/dist/registry/publish/tokens.js +112 -0
  110. package/dist/registry/tokens/sets.d.ts +59 -0
  111. package/dist/registry/tokens/sets.js +109 -0
  112. package/dist/registry/tokens/transfer.d.ts +48 -0
  113. package/dist/registry/tokens/transfer.js +10 -0
  114. package/dist/registry/transfer.d.ts +75 -0
  115. package/dist/registry/transfer.js +11 -0
  116. package/dist/store/filesystem-assets.d.ts +17 -0
  117. package/dist/store/filesystem-assets.js +147 -0
  118. package/dist/store/filesystem.d.ts +76 -0
  119. package/dist/store/filesystem.js +208 -0
  120. package/dist/store/index.d.ts +20 -0
  121. package/dist/store/index.js +38 -0
  122. package/dist/store/registry.d.ts +77 -0
  123. package/dist/store/registry.js +350 -0
  124. package/dist/store/source-files.d.ts +24 -0
  125. package/dist/store/source-files.js +147 -0
  126. package/dist/store/types.d.ts +185 -0
  127. package/dist/store/types.js +12 -0
  128. package/dist/transformers/plugins/csf-render.js +17 -8
  129. package/dist/transformers/plugins/handlebars-previews.js +10 -3
  130. package/dist/transformers/plugins/ssr-render.js +116 -49
  131. package/dist/transformers/preview/component/api.js +3 -1
  132. package/dist/transformers/preview/component/artifacts.js +8 -1
  133. package/dist/transformers/preview/component/builder.js +13 -5
  134. package/dist/transformers/preview/component/css.js +9 -1
  135. package/dist/transformers/preview/component/javascript.d.ts +9 -3
  136. package/dist/transformers/preview/component/javascript.js +45 -17
  137. package/dist/transformers/preview/component/shared-artifacts.d.ts +83 -0
  138. package/dist/transformers/preview/component/shared-artifacts.js +92 -0
  139. package/dist/transformers/preview/component.js +5 -2
  140. package/dist/transformers/preview/pattern/builder.js +28 -9
  141. package/dist/transformers/preview/pattern/html.d.ts +13 -10
  142. package/dist/transformers/preview/pattern/html.js +62 -27
  143. package/dist/transformers/preview/types.d.ts +38 -0
  144. package/dist/transformers/utils/handlebars.d.ts +3 -0
  145. package/dist/transformers/utils/handlebars.js +19 -5
  146. package/dist/types/config.d.ts +118 -25
  147. package/dist/utils/menu-shell.d.ts +60 -0
  148. package/dist/utils/menu-shell.js +221 -0
  149. package/dist/utils/stable-stringify.d.ts +2 -0
  150. package/dist/utils/stable-stringify.js +8 -0
  151. package/docs/cli.md +4 -2
  152. package/drizzle/0000_init_registry_storage.sql +95 -0
  153. package/drizzle/0001_add_review_metadata.sql +2 -0
  154. package/drizzle/0002_add_pages.sql +28 -0
  155. package/drizzle/0003_add_tokens.sql +29 -0
  156. package/drizzle/0004_add_assets.sql +37 -0
  157. package/drizzle/meta/0000_snapshot.json +642 -0
  158. package/drizzle/meta/0001_snapshot.json +654 -0
  159. package/drizzle/meta/0002_snapshot.json +835 -0
  160. package/drizzle/meta/0003_snapshot.json +1023 -0
  161. package/drizzle/meta/0004_snapshot.json +1252 -0
  162. package/drizzle/meta/_journal.json +41 -0
  163. package/drizzle.config.ts +16 -0
  164. package/package.json +10 -1
  165. package/src/app/components/Component/Preview.tsx +3 -2
  166. package/src/app/components/Component/RegistryActions.tsx +150 -0
  167. package/src/app/components/Foundations/DisplayLogo.tsx +5 -3
  168. package/src/app/components/Layout/Header.tsx +21 -3
  169. package/src/app/components/Layout/Main.tsx +11 -3
  170. package/src/app/components/Navigation/MainNav.tsx +4 -2
  171. package/src/app/components/Navigation/MobileNav.tsx +4 -2
  172. package/src/app/components/Navigation/SideNav.tsx +46 -11
  173. package/src/app/components/NotFound.tsx +24 -0
  174. package/src/app/components/context/NavProvider.tsx +71 -0
  175. package/src/app/components/old/Header.tsx +3 -3
  176. package/src/app/components/util/index.ts +203 -380
  177. package/src/app/components/util/useCollectionAssets.ts +125 -0
  178. package/src/app/components/util/useFoundationTokens.ts +67 -0
  179. package/src/app/generated/default-pages.json +1 -0
  180. package/src/app/generated/nav-shell.json +1 -0
  181. package/src/app/lib/api/query.ts +6 -0
  182. package/src/app/lib/api/redact.ts +46 -0
  183. package/src/app/lib/asset-storage.ts +81 -0
  184. package/src/app/lib/docs-api/artifacts.ts +116 -0
  185. package/src/app/lib/docs-api/backend.ts +151 -0
  186. package/src/app/lib/docs-api/errors.ts +52 -0
  187. package/src/app/lib/docs-api/handler.ts +34 -0
  188. package/src/app/lib/docs-api/index.ts +7 -0
  189. package/src/app/lib/docs-api/records.ts +189 -0
  190. package/src/app/lib/docs-api/registry.ts +130 -0
  191. package/src/app/lib/docs-api/runtime-config.ts +173 -0
  192. package/src/app/lib/docs-api/serve.ts +37 -0
  193. package/src/app/lib/docs-api/token-detail.ts +19 -0
  194. package/src/app/lib/registry-api/allowlist.ts +163 -0
  195. package/src/app/lib/registry-api/asset-transfer.ts +363 -0
  196. package/src/app/lib/registry-api/auth.ts +68 -0
  197. package/src/app/lib/registry-api/entity-routes.ts +197 -0
  198. package/src/app/lib/registry-api/errors.ts +51 -0
  199. package/src/app/lib/registry-api/files.ts +135 -0
  200. package/src/app/lib/registry-api/handler.ts +96 -0
  201. package/src/app/lib/registry-api/index.ts +4 -0
  202. package/src/app/lib/registry-api/meta.ts +87 -0
  203. package/src/app/lib/registry-api/revalidate.ts +36 -0
  204. package/src/app/lib/registry-api/store.ts +348 -0
  205. package/src/app/lib/registry-api/token-transfer.ts +231 -0
  206. package/src/app/lib/registry-api/transfer.ts +513 -0
  207. package/src/app/lib/registry-api/validation.ts +74 -0
  208. package/src/app/lib/registry-connection.ts +58 -0
  209. package/src/app/lib/utils.ts +14 -0
  210. package/src/app/next.config.mjs +72 -13
  211. package/src/app/pages/[...slug]/index.tsx +74 -20
  212. package/src/app/pages/_app.tsx +5 -2
  213. package/src/app/pages/api/docs/artifacts/[...artifactPath].ts +16 -0
  214. package/src/app/pages/api/docs/assets/[collection]/[...path].ts +50 -0
  215. package/src/app/pages/api/docs/assets/[collection]/index.ts +22 -0
  216. package/src/app/pages/api/docs/components/[id]/assets/[asset].ts +33 -0
  217. package/src/app/pages/api/docs/components/[id]/inspect/[previewId].ts +20 -0
  218. package/src/app/pages/api/docs/components/[id]/previews/[previewId].ts +21 -0
  219. package/src/app/pages/api/docs/components/[id].ts +24 -0
  220. package/src/app/pages/api/docs/components.json.ts +12 -0
  221. package/src/app/pages/api/docs/nav.json.ts +48 -0
  222. package/src/app/pages/api/docs/patterns/[id]/preview.ts +19 -0
  223. package/src/app/pages/api/docs/patterns/[id].ts +24 -0
  224. package/src/app/pages/api/docs/patterns.json.ts +12 -0
  225. package/src/app/pages/api/docs/tokens/components/[id].ts +30 -0
  226. package/src/app/pages/api/docs/tokens/foundations/[type].ts +32 -0
  227. package/src/app/pages/api/registry/components/[id]/files/[...filePath].ts +19 -0
  228. package/src/app/pages/api/registry/components/[id]/files/index.ts +19 -0
  229. package/src/app/pages/api/registry/components/[id].ts +20 -0
  230. package/src/app/pages/api/registry/components/index.ts +19 -0
  231. package/src/app/pages/api/registry/health.ts +20 -0
  232. package/src/app/pages/api/registry/patterns/[id]/files/[...filePath].ts +19 -0
  233. package/src/app/pages/api/registry/patterns/[id]/files/index.ts +19 -0
  234. package/src/app/pages/api/registry/patterns/[id].ts +20 -0
  235. package/src/app/pages/api/registry/patterns/index.ts +19 -0
  236. package/src/app/pages/api/registry/transfer/[kind]/[id].ts +39 -0
  237. package/src/app/pages/api/registry/transfer/assets/[collection].ts +24 -0
  238. package/src/app/pages/api/registry/transfer/assets/blobs/[hash].ts +23 -0
  239. package/src/app/pages/api/registry/transfer/assets/blobs/have.ts +11 -0
  240. package/src/app/pages/api/registry/transfer/assets/index.ts +10 -0
  241. package/src/app/pages/api/registry/transfer/tokens/[...setId].ts +26 -0
  242. package/src/app/pages/api/registry/transfer/tokens/index.ts +11 -0
  243. package/src/app/pages/assets/fonts.tsx +41 -17
  244. package/src/app/pages/assets/index.tsx +2 -2
  245. package/src/app/pages/assets/logos.tsx +2 -2
  246. package/src/app/pages/foundations/colors.tsx +18 -8
  247. package/src/app/pages/foundations/effects.tsx +18 -8
  248. package/src/app/pages/foundations/icons/[name]/index.tsx +26 -14
  249. package/src/app/pages/foundations/icons/index.tsx +13 -9
  250. package/src/app/pages/foundations/index.tsx +1 -1
  251. package/src/app/pages/foundations/logo.tsx +7 -4
  252. package/src/app/pages/foundations/typography.tsx +19 -9
  253. package/src/app/pages/index.tsx +1 -1
  254. package/src/app/pages/system/component/[component]/index.tsx +87 -17
  255. package/src/app/pages/system/index.tsx +13 -4
  256. package/src/app/pages/system/pattern/[pattern]/index.tsx +70 -14
  257. package/src/app/pages/system/tokens/components/[component]/index.tsx +42 -14
  258. package/src/app/pages/system/tokens/foundations/colors.tsx +7 -5
  259. package/src/app/pages/system/tokens/foundations/effects.tsx +7 -5
  260. package/src/app/pages/system/tokens/foundations/typography.tsx +8 -4
  261. package/src/app/tsconfig.json +2 -3
  262. package/src/app-builder/build.ts +555 -11
  263. package/src/app-builder/client-config.ts +61 -4
  264. package/src/app-builder/config-diff/snapshot.ts +1 -11
  265. package/src/app-builder/index.ts +1 -1
  266. package/src/app-builder/nav-shell.ts +74 -0
  267. package/src/app-builder/static-export.ts +215 -0
  268. package/src/app-builder/vercel-output.ts +297 -0
  269. package/src/app-builder/watchers/utils.ts +2 -0
  270. package/src/app-builder/watchers.ts +149 -25
  271. package/src/app-builder/websocket.ts +2 -2
  272. package/src/artifacts/README.md +14 -0
  273. package/src/artifacts/index.ts +17 -0
  274. package/src/artifacts/types.ts +146 -0
  275. package/src/artifacts/url.ts +90 -0
  276. package/src/cache/build-cache.ts +47 -2
  277. package/src/commands/build/app.ts +1 -2
  278. package/src/commands/build/index.ts +61 -0
  279. package/src/commands/checkout/index.ts +66 -0
  280. package/src/commands/db/migrate.ts +25 -0
  281. package/src/commands/index.ts +8 -0
  282. package/src/commands/publish/index.ts +63 -0
  283. package/src/config/defaults.ts +15 -0
  284. package/src/config/loader.ts +10 -1
  285. package/src/config/normalizers/declaration.ts +3 -0
  286. package/src/config/normalizers/page.ts +45 -0
  287. package/src/config/normalizers/pattern.ts +4 -1
  288. package/src/config/runtime.ts +48 -2
  289. package/src/index.ts +126 -3
  290. package/src/nav/index.ts +94 -0
  291. package/src/nav/registry.ts +54 -0
  292. package/src/nav/resolver.ts +217 -0
  293. package/src/nav/workspace.ts +87 -0
  294. package/src/pipeline/styles.ts +4 -35
  295. package/src/pipeline/token-transformers.ts +97 -0
  296. package/src/registry/asset-storage/adapters/vercel-blob.ts +51 -0
  297. package/src/registry/asset-storage/define.ts +15 -0
  298. package/src/registry/asset-storage/resolve.ts +72 -0
  299. package/src/registry/asset-storage/types.ts +46 -0
  300. package/src/registry/assets/layout.ts +38 -0
  301. package/src/registry/assets/sets.ts +48 -0
  302. package/src/registry/assets/transfer.ts +50 -0
  303. package/src/registry/checkout/assets.ts +126 -0
  304. package/src/registry/checkout/index.ts +596 -0
  305. package/src/registry/checkout/tokens.ts +152 -0
  306. package/src/registry/client.ts +234 -0
  307. package/src/registry/connection.ts +50 -0
  308. package/src/registry/db/adapter.ts +74 -0
  309. package/src/registry/db/client.ts +88 -0
  310. package/src/registry/db/index.ts +35 -0
  311. package/src/registry/db/migrate.ts +56 -0
  312. package/src/registry/db/schema.ts +444 -0
  313. package/src/registry/path.ts +26 -0
  314. package/src/registry/publish/artifacts.ts +147 -0
  315. package/src/registry/publish/assets.ts +129 -0
  316. package/src/registry/publish/errors.ts +34 -0
  317. package/src/registry/publish/index.ts +128 -0
  318. package/src/registry/publish/package.ts +272 -0
  319. package/src/registry/publish/publish-build.ts +51 -0
  320. package/src/registry/publish/tokens.ts +119 -0
  321. package/src/registry/tokens/sets.ts +132 -0
  322. package/src/registry/tokens/transfer.ts +53 -0
  323. package/src/registry/transfer.ts +82 -0
  324. package/src/store/filesystem-assets.ts +152 -0
  325. package/src/store/filesystem.ts +237 -0
  326. package/src/store/index.ts +62 -0
  327. package/src/store/registry.ts +334 -0
  328. package/src/store/source-files.ts +155 -0
  329. package/src/store/types.ts +210 -0
  330. package/src/transformers/plugins/csf-render.ts +31 -7
  331. package/src/transformers/plugins/handlebars-previews.ts +22 -3
  332. package/src/transformers/plugins/ssr-render.ts +145 -57
  333. package/src/transformers/preview/component/api.ts +2 -1
  334. package/src/transformers/preview/component/artifacts.ts +10 -1
  335. package/src/transformers/preview/component/builder.ts +9 -2
  336. package/src/transformers/preview/component/css.ts +10 -1
  337. package/src/transformers/preview/component/javascript.ts +55 -20
  338. package/src/transformers/preview/component/shared-artifacts.ts +146 -0
  339. package/src/transformers/preview/component.ts +5 -2
  340. package/src/transformers/preview/pattern/builder.ts +33 -7
  341. package/src/transformers/preview/pattern/html.ts +71 -27
  342. package/src/transformers/preview/types.ts +42 -0
  343. package/src/transformers/utils/handlebars.ts +31 -5
  344. package/src/types/config.ts +123 -25
  345. package/src/utils/menu-shell.ts +241 -0
  346. package/src/utils/stable-stringify.ts +7 -0
  347. package/templates/default/package.json.tpl +1 -1
  348. package/handoff.config.js +0 -90
  349. package/src/app/components/ComponentSearch.tsx +0 -93
@@ -0,0 +1,1252 @@
1
+ {
2
+ "id": "1b8fa93a-55b1-41d3-b245-089c1f6b5158",
3
+ "prevId": "389f4b64-ab9d-4781-a461-f315f6796379",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.asset_blobs": {
8
+ "name": "asset_blobs",
9
+ "schema": "",
10
+ "columns": {
11
+ "hash": {
12
+ "name": "hash",
13
+ "type": "text",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "storage_provider": {
18
+ "name": "storage_provider",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "content": {
24
+ "name": "content",
25
+ "type": "bytea",
26
+ "primaryKey": false,
27
+ "notNull": false
28
+ },
29
+ "storage_ref": {
30
+ "name": "storage_ref",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": false
34
+ },
35
+ "content_type": {
36
+ "name": "content_type",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "size": {
42
+ "name": "size",
43
+ "type": "integer",
44
+ "primaryKey": false,
45
+ "notNull": true
46
+ },
47
+ "created_at": {
48
+ "name": "created_at",
49
+ "type": "timestamp with time zone",
50
+ "primaryKey": false,
51
+ "notNull": true,
52
+ "default": "now()"
53
+ }
54
+ },
55
+ "indexes": {},
56
+ "foreignKeys": {},
57
+ "compositePrimaryKeys": {},
58
+ "uniqueConstraints": {},
59
+ "policies": {},
60
+ "checkConstraints": {},
61
+ "isRLSEnabled": false
62
+ },
63
+ "public.asset_collections": {
64
+ "name": "asset_collections",
65
+ "schema": "",
66
+ "columns": {
67
+ "collection": {
68
+ "name": "collection",
69
+ "type": "text",
70
+ "primaryKey": true,
71
+ "notNull": true
72
+ },
73
+ "source_hash": {
74
+ "name": "source_hash",
75
+ "type": "text",
76
+ "primaryKey": false,
77
+ "notNull": false
78
+ },
79
+ "status": {
80
+ "name": "status",
81
+ "type": "text",
82
+ "primaryKey": false,
83
+ "notNull": false
84
+ },
85
+ "built_at": {
86
+ "name": "built_at",
87
+ "type": "timestamp with time zone",
88
+ "primaryKey": false,
89
+ "notNull": false
90
+ },
91
+ "builder_version": {
92
+ "name": "builder_version",
93
+ "type": "text",
94
+ "primaryKey": false,
95
+ "notNull": false
96
+ },
97
+ "metadata": {
98
+ "name": "metadata",
99
+ "type": "jsonb",
100
+ "primaryKey": false,
101
+ "notNull": false
102
+ },
103
+ "created_at": {
104
+ "name": "created_at",
105
+ "type": "timestamp with time zone",
106
+ "primaryKey": false,
107
+ "notNull": true,
108
+ "default": "now()"
109
+ },
110
+ "updated_at": {
111
+ "name": "updated_at",
112
+ "type": "timestamp with time zone",
113
+ "primaryKey": false,
114
+ "notNull": true,
115
+ "default": "now()"
116
+ }
117
+ },
118
+ "indexes": {},
119
+ "foreignKeys": {},
120
+ "compositePrimaryKeys": {},
121
+ "uniqueConstraints": {},
122
+ "policies": {},
123
+ "checkConstraints": {},
124
+ "isRLSEnabled": false
125
+ },
126
+ "public.assets": {
127
+ "name": "assets",
128
+ "schema": "",
129
+ "columns": {
130
+ "collection": {
131
+ "name": "collection",
132
+ "type": "text",
133
+ "primaryKey": false,
134
+ "notNull": true
135
+ },
136
+ "path": {
137
+ "name": "path",
138
+ "type": "text",
139
+ "primaryKey": false,
140
+ "notNull": true
141
+ },
142
+ "name": {
143
+ "name": "name",
144
+ "type": "text",
145
+ "primaryKey": false,
146
+ "notNull": true
147
+ },
148
+ "content_type": {
149
+ "name": "content_type",
150
+ "type": "text",
151
+ "primaryKey": false,
152
+ "notNull": true
153
+ },
154
+ "size": {
155
+ "name": "size",
156
+ "type": "integer",
157
+ "primaryKey": false,
158
+ "notNull": false
159
+ },
160
+ "content_hash": {
161
+ "name": "content_hash",
162
+ "type": "text",
163
+ "primaryKey": false,
164
+ "notNull": true
165
+ },
166
+ "metadata": {
167
+ "name": "metadata",
168
+ "type": "jsonb",
169
+ "primaryKey": false,
170
+ "notNull": false
171
+ },
172
+ "blob_hash": {
173
+ "name": "blob_hash",
174
+ "type": "text",
175
+ "primaryKey": false,
176
+ "notNull": true
177
+ },
178
+ "created_at": {
179
+ "name": "created_at",
180
+ "type": "timestamp with time zone",
181
+ "primaryKey": false,
182
+ "notNull": true,
183
+ "default": "now()"
184
+ },
185
+ "updated_at": {
186
+ "name": "updated_at",
187
+ "type": "timestamp with time zone",
188
+ "primaryKey": false,
189
+ "notNull": true,
190
+ "default": "now()"
191
+ }
192
+ },
193
+ "indexes": {},
194
+ "foreignKeys": {
195
+ "assets_collection_asset_collections_collection_fk": {
196
+ "name": "assets_collection_asset_collections_collection_fk",
197
+ "tableFrom": "assets",
198
+ "tableTo": "asset_collections",
199
+ "columnsFrom": [
200
+ "collection"
201
+ ],
202
+ "columnsTo": [
203
+ "collection"
204
+ ],
205
+ "onDelete": "cascade",
206
+ "onUpdate": "no action"
207
+ },
208
+ "assets_blob_hash_asset_blobs_hash_fk": {
209
+ "name": "assets_blob_hash_asset_blobs_hash_fk",
210
+ "tableFrom": "assets",
211
+ "tableTo": "asset_blobs",
212
+ "columnsFrom": [
213
+ "blob_hash"
214
+ ],
215
+ "columnsTo": [
216
+ "hash"
217
+ ],
218
+ "onDelete": "no action",
219
+ "onUpdate": "no action"
220
+ }
221
+ },
222
+ "compositePrimaryKeys": {
223
+ "assets_collection_path_pk": {
224
+ "name": "assets_collection_path_pk",
225
+ "columns": [
226
+ "collection",
227
+ "path"
228
+ ]
229
+ }
230
+ },
231
+ "uniqueConstraints": {},
232
+ "policies": {},
233
+ "checkConstraints": {},
234
+ "isRLSEnabled": false
235
+ },
236
+ "public.build_metadata": {
237
+ "name": "build_metadata",
238
+ "schema": "",
239
+ "columns": {
240
+ "entity_kind": {
241
+ "name": "entity_kind",
242
+ "type": "text",
243
+ "primaryKey": false,
244
+ "notNull": true
245
+ },
246
+ "entity_id": {
247
+ "name": "entity_id",
248
+ "type": "text",
249
+ "primaryKey": false,
250
+ "notNull": true
251
+ },
252
+ "status": {
253
+ "name": "status",
254
+ "type": "text",
255
+ "primaryKey": false,
256
+ "notNull": true
257
+ },
258
+ "built_at": {
259
+ "name": "built_at",
260
+ "type": "timestamp with time zone",
261
+ "primaryKey": false,
262
+ "notNull": false
263
+ },
264
+ "builder_version": {
265
+ "name": "builder_version",
266
+ "type": "text",
267
+ "primaryKey": false,
268
+ "notNull": false
269
+ },
270
+ "artifact_hash": {
271
+ "name": "artifact_hash",
272
+ "type": "text",
273
+ "primaryKey": false,
274
+ "notNull": false
275
+ },
276
+ "source_hash": {
277
+ "name": "source_hash",
278
+ "type": "text",
279
+ "primaryKey": false,
280
+ "notNull": false
281
+ },
282
+ "warnings": {
283
+ "name": "warnings",
284
+ "type": "jsonb",
285
+ "primaryKey": false,
286
+ "notNull": false
287
+ },
288
+ "error": {
289
+ "name": "error",
290
+ "type": "text",
291
+ "primaryKey": false,
292
+ "notNull": false
293
+ },
294
+ "created_at": {
295
+ "name": "created_at",
296
+ "type": "timestamp with time zone",
297
+ "primaryKey": false,
298
+ "notNull": true,
299
+ "default": "now()"
300
+ },
301
+ "updated_at": {
302
+ "name": "updated_at",
303
+ "type": "timestamp with time zone",
304
+ "primaryKey": false,
305
+ "notNull": true,
306
+ "default": "now()"
307
+ }
308
+ },
309
+ "indexes": {},
310
+ "foreignKeys": {},
311
+ "compositePrimaryKeys": {
312
+ "build_metadata_entity_kind_entity_id_pk": {
313
+ "name": "build_metadata_entity_kind_entity_id_pk",
314
+ "columns": [
315
+ "entity_kind",
316
+ "entity_id"
317
+ ]
318
+ }
319
+ },
320
+ "uniqueConstraints": {},
321
+ "policies": {},
322
+ "checkConstraints": {},
323
+ "isRLSEnabled": false
324
+ },
325
+ "public.component_files": {
326
+ "name": "component_files",
327
+ "schema": "",
328
+ "columns": {
329
+ "component_id": {
330
+ "name": "component_id",
331
+ "type": "text",
332
+ "primaryKey": false,
333
+ "notNull": true
334
+ },
335
+ "path": {
336
+ "name": "path",
337
+ "type": "text",
338
+ "primaryKey": false,
339
+ "notNull": true
340
+ },
341
+ "kind": {
342
+ "name": "kind",
343
+ "type": "text",
344
+ "primaryKey": false,
345
+ "notNull": true
346
+ },
347
+ "content": {
348
+ "name": "content",
349
+ "type": "text",
350
+ "primaryKey": false,
351
+ "notNull": false
352
+ },
353
+ "storage_ref": {
354
+ "name": "storage_ref",
355
+ "type": "text",
356
+ "primaryKey": false,
357
+ "notNull": false
358
+ },
359
+ "content_type": {
360
+ "name": "content_type",
361
+ "type": "text",
362
+ "primaryKey": false,
363
+ "notNull": true
364
+ },
365
+ "created_at": {
366
+ "name": "created_at",
367
+ "type": "timestamp with time zone",
368
+ "primaryKey": false,
369
+ "notNull": true,
370
+ "default": "now()"
371
+ },
372
+ "updated_at": {
373
+ "name": "updated_at",
374
+ "type": "timestamp with time zone",
375
+ "primaryKey": false,
376
+ "notNull": true,
377
+ "default": "now()"
378
+ }
379
+ },
380
+ "indexes": {},
381
+ "foreignKeys": {
382
+ "component_files_component_id_components_id_fk": {
383
+ "name": "component_files_component_id_components_id_fk",
384
+ "tableFrom": "component_files",
385
+ "tableTo": "components",
386
+ "columnsFrom": [
387
+ "component_id"
388
+ ],
389
+ "columnsTo": [
390
+ "id"
391
+ ],
392
+ "onDelete": "cascade",
393
+ "onUpdate": "no action"
394
+ }
395
+ },
396
+ "compositePrimaryKeys": {
397
+ "component_files_component_id_path_pk": {
398
+ "name": "component_files_component_id_path_pk",
399
+ "columns": [
400
+ "component_id",
401
+ "path"
402
+ ]
403
+ }
404
+ },
405
+ "uniqueConstraints": {},
406
+ "policies": {},
407
+ "checkConstraints": {
408
+ "component_files_kind_not_declaration": {
409
+ "name": "component_files_kind_not_declaration",
410
+ "value": "\"component_files\".\"kind\" <> 'declaration'"
411
+ }
412
+ },
413
+ "isRLSEnabled": false
414
+ },
415
+ "public.components": {
416
+ "name": "components",
417
+ "schema": "",
418
+ "columns": {
419
+ "id": {
420
+ "name": "id",
421
+ "type": "text",
422
+ "primaryKey": true,
423
+ "notNull": true
424
+ },
425
+ "path": {
426
+ "name": "path",
427
+ "type": "text",
428
+ "primaryKey": false,
429
+ "notNull": true
430
+ },
431
+ "title": {
432
+ "name": "title",
433
+ "type": "text",
434
+ "primaryKey": false,
435
+ "notNull": false
436
+ },
437
+ "description": {
438
+ "name": "description",
439
+ "type": "text",
440
+ "primaryKey": false,
441
+ "notNull": false
442
+ },
443
+ "group": {
444
+ "name": "group",
445
+ "type": "text",
446
+ "primaryKey": false,
447
+ "notNull": false
448
+ },
449
+ "type": {
450
+ "name": "type",
451
+ "type": "text",
452
+ "primaryKey": false,
453
+ "notNull": false
454
+ },
455
+ "renderer": {
456
+ "name": "renderer",
457
+ "type": "text",
458
+ "primaryKey": false,
459
+ "notNull": false
460
+ },
461
+ "tags": {
462
+ "name": "tags",
463
+ "type": "jsonb",
464
+ "primaryKey": false,
465
+ "notNull": false
466
+ },
467
+ "categories": {
468
+ "name": "categories",
469
+ "type": "jsonb",
470
+ "primaryKey": false,
471
+ "notNull": false
472
+ },
473
+ "record": {
474
+ "name": "record",
475
+ "type": "jsonb",
476
+ "primaryKey": false,
477
+ "notNull": true
478
+ },
479
+ "metadata": {
480
+ "name": "metadata",
481
+ "type": "jsonb",
482
+ "primaryKey": false,
483
+ "notNull": false
484
+ },
485
+ "created_at": {
486
+ "name": "created_at",
487
+ "type": "timestamp with time zone",
488
+ "primaryKey": false,
489
+ "notNull": true,
490
+ "default": "now()"
491
+ },
492
+ "updated_at": {
493
+ "name": "updated_at",
494
+ "type": "timestamp with time zone",
495
+ "primaryKey": false,
496
+ "notNull": true,
497
+ "default": "now()"
498
+ }
499
+ },
500
+ "indexes": {
501
+ "components_group_idx": {
502
+ "name": "components_group_idx",
503
+ "columns": [
504
+ {
505
+ "expression": "group",
506
+ "isExpression": false,
507
+ "asc": true,
508
+ "nulls": "last"
509
+ }
510
+ ],
511
+ "isUnique": false,
512
+ "concurrently": false,
513
+ "method": "btree",
514
+ "with": {}
515
+ }
516
+ },
517
+ "foreignKeys": {},
518
+ "compositePrimaryKeys": {},
519
+ "uniqueConstraints": {},
520
+ "policies": {},
521
+ "checkConstraints": {},
522
+ "isRLSEnabled": false
523
+ },
524
+ "public.docs_artifacts": {
525
+ "name": "docs_artifacts",
526
+ "schema": "",
527
+ "columns": {
528
+ "path": {
529
+ "name": "path",
530
+ "type": "text",
531
+ "primaryKey": true,
532
+ "notNull": true
533
+ },
534
+ "entity_kind": {
535
+ "name": "entity_kind",
536
+ "type": "text",
537
+ "primaryKey": false,
538
+ "notNull": true
539
+ },
540
+ "entity_id": {
541
+ "name": "entity_id",
542
+ "type": "text",
543
+ "primaryKey": false,
544
+ "notNull": false
545
+ },
546
+ "artifact_kind": {
547
+ "name": "artifact_kind",
548
+ "type": "text",
549
+ "primaryKey": false,
550
+ "notNull": true
551
+ },
552
+ "content": {
553
+ "name": "content",
554
+ "type": "text",
555
+ "primaryKey": false,
556
+ "notNull": false
557
+ },
558
+ "storage_ref": {
559
+ "name": "storage_ref",
560
+ "type": "text",
561
+ "primaryKey": false,
562
+ "notNull": false
563
+ },
564
+ "content_type": {
565
+ "name": "content_type",
566
+ "type": "text",
567
+ "primaryKey": false,
568
+ "notNull": true
569
+ },
570
+ "owner_kind": {
571
+ "name": "owner_kind",
572
+ "type": "text",
573
+ "primaryKey": false,
574
+ "notNull": false
575
+ },
576
+ "owner_id": {
577
+ "name": "owner_id",
578
+ "type": "text",
579
+ "primaryKey": false,
580
+ "notNull": false
581
+ },
582
+ "references": {
583
+ "name": "references",
584
+ "type": "jsonb",
585
+ "primaryKey": false,
586
+ "notNull": false
587
+ },
588
+ "format_version": {
589
+ "name": "format_version",
590
+ "type": "text",
591
+ "primaryKey": false,
592
+ "notNull": false
593
+ },
594
+ "build_id": {
595
+ "name": "build_id",
596
+ "type": "text",
597
+ "primaryKey": false,
598
+ "notNull": false
599
+ },
600
+ "hash": {
601
+ "name": "hash",
602
+ "type": "text",
603
+ "primaryKey": false,
604
+ "notNull": false
605
+ },
606
+ "size": {
607
+ "name": "size",
608
+ "type": "integer",
609
+ "primaryKey": false,
610
+ "notNull": false
611
+ },
612
+ "gzip_size": {
613
+ "name": "gzip_size",
614
+ "type": "integer",
615
+ "primaryKey": false,
616
+ "notNull": false
617
+ },
618
+ "created_at": {
619
+ "name": "created_at",
620
+ "type": "timestamp with time zone",
621
+ "primaryKey": false,
622
+ "notNull": true,
623
+ "default": "now()"
624
+ },
625
+ "updated_at": {
626
+ "name": "updated_at",
627
+ "type": "timestamp with time zone",
628
+ "primaryKey": false,
629
+ "notNull": true,
630
+ "default": "now()"
631
+ }
632
+ },
633
+ "indexes": {
634
+ "docs_artifacts_entity_idx": {
635
+ "name": "docs_artifacts_entity_idx",
636
+ "columns": [
637
+ {
638
+ "expression": "entity_kind",
639
+ "isExpression": false,
640
+ "asc": true,
641
+ "nulls": "last"
642
+ },
643
+ {
644
+ "expression": "entity_id",
645
+ "isExpression": false,
646
+ "asc": true,
647
+ "nulls": "last"
648
+ }
649
+ ],
650
+ "isUnique": false,
651
+ "concurrently": false,
652
+ "method": "btree",
653
+ "with": {}
654
+ },
655
+ "docs_artifacts_owner_idx": {
656
+ "name": "docs_artifacts_owner_idx",
657
+ "columns": [
658
+ {
659
+ "expression": "owner_kind",
660
+ "isExpression": false,
661
+ "asc": true,
662
+ "nulls": "last"
663
+ },
664
+ {
665
+ "expression": "owner_id",
666
+ "isExpression": false,
667
+ "asc": true,
668
+ "nulls": "last"
669
+ }
670
+ ],
671
+ "isUnique": false,
672
+ "concurrently": false,
673
+ "method": "btree",
674
+ "with": {}
675
+ }
676
+ },
677
+ "foreignKeys": {},
678
+ "compositePrimaryKeys": {},
679
+ "uniqueConstraints": {},
680
+ "policies": {},
681
+ "checkConstraints": {},
682
+ "isRLSEnabled": false
683
+ },
684
+ "public.page_files": {
685
+ "name": "page_files",
686
+ "schema": "",
687
+ "columns": {
688
+ "page_id": {
689
+ "name": "page_id",
690
+ "type": "text",
691
+ "primaryKey": false,
692
+ "notNull": true
693
+ },
694
+ "path": {
695
+ "name": "path",
696
+ "type": "text",
697
+ "primaryKey": false,
698
+ "notNull": true
699
+ },
700
+ "kind": {
701
+ "name": "kind",
702
+ "type": "text",
703
+ "primaryKey": false,
704
+ "notNull": true
705
+ },
706
+ "content": {
707
+ "name": "content",
708
+ "type": "text",
709
+ "primaryKey": false,
710
+ "notNull": false
711
+ },
712
+ "storage_ref": {
713
+ "name": "storage_ref",
714
+ "type": "text",
715
+ "primaryKey": false,
716
+ "notNull": false
717
+ },
718
+ "content_type": {
719
+ "name": "content_type",
720
+ "type": "text",
721
+ "primaryKey": false,
722
+ "notNull": true
723
+ },
724
+ "created_at": {
725
+ "name": "created_at",
726
+ "type": "timestamp with time zone",
727
+ "primaryKey": false,
728
+ "notNull": true,
729
+ "default": "now()"
730
+ },
731
+ "updated_at": {
732
+ "name": "updated_at",
733
+ "type": "timestamp with time zone",
734
+ "primaryKey": false,
735
+ "notNull": true,
736
+ "default": "now()"
737
+ }
738
+ },
739
+ "indexes": {},
740
+ "foreignKeys": {
741
+ "page_files_page_id_pages_id_fk": {
742
+ "name": "page_files_page_id_pages_id_fk",
743
+ "tableFrom": "page_files",
744
+ "tableTo": "pages",
745
+ "columnsFrom": [
746
+ "page_id"
747
+ ],
748
+ "columnsTo": [
749
+ "id"
750
+ ],
751
+ "onDelete": "cascade",
752
+ "onUpdate": "no action"
753
+ }
754
+ },
755
+ "compositePrimaryKeys": {
756
+ "page_files_page_id_path_pk": {
757
+ "name": "page_files_page_id_path_pk",
758
+ "columns": [
759
+ "page_id",
760
+ "path"
761
+ ]
762
+ }
763
+ },
764
+ "uniqueConstraints": {},
765
+ "policies": {},
766
+ "checkConstraints": {
767
+ "page_files_kind_not_declaration": {
768
+ "name": "page_files_kind_not_declaration",
769
+ "value": "\"page_files\".\"kind\" <> 'declaration'"
770
+ }
771
+ },
772
+ "isRLSEnabled": false
773
+ },
774
+ "public.pages": {
775
+ "name": "pages",
776
+ "schema": "",
777
+ "columns": {
778
+ "id": {
779
+ "name": "id",
780
+ "type": "text",
781
+ "primaryKey": true,
782
+ "notNull": true
783
+ },
784
+ "path": {
785
+ "name": "path",
786
+ "type": "text",
787
+ "primaryKey": false,
788
+ "notNull": true
789
+ },
790
+ "title": {
791
+ "name": "title",
792
+ "type": "text",
793
+ "primaryKey": false,
794
+ "notNull": false
795
+ },
796
+ "description": {
797
+ "name": "description",
798
+ "type": "text",
799
+ "primaryKey": false,
800
+ "notNull": false
801
+ },
802
+ "group": {
803
+ "name": "group",
804
+ "type": "text",
805
+ "primaryKey": false,
806
+ "notNull": false
807
+ },
808
+ "weight": {
809
+ "name": "weight",
810
+ "type": "integer",
811
+ "primaryKey": false,
812
+ "notNull": false
813
+ },
814
+ "record": {
815
+ "name": "record",
816
+ "type": "jsonb",
817
+ "primaryKey": false,
818
+ "notNull": true
819
+ },
820
+ "metadata": {
821
+ "name": "metadata",
822
+ "type": "jsonb",
823
+ "primaryKey": false,
824
+ "notNull": false
825
+ },
826
+ "created_at": {
827
+ "name": "created_at",
828
+ "type": "timestamp with time zone",
829
+ "primaryKey": false,
830
+ "notNull": true,
831
+ "default": "now()"
832
+ },
833
+ "updated_at": {
834
+ "name": "updated_at",
835
+ "type": "timestamp with time zone",
836
+ "primaryKey": false,
837
+ "notNull": true,
838
+ "default": "now()"
839
+ }
840
+ },
841
+ "indexes": {
842
+ "pages_group_idx": {
843
+ "name": "pages_group_idx",
844
+ "columns": [
845
+ {
846
+ "expression": "group",
847
+ "isExpression": false,
848
+ "asc": true,
849
+ "nulls": "last"
850
+ }
851
+ ],
852
+ "isUnique": false,
853
+ "concurrently": false,
854
+ "method": "btree",
855
+ "with": {}
856
+ }
857
+ },
858
+ "foreignKeys": {},
859
+ "compositePrimaryKeys": {},
860
+ "uniqueConstraints": {},
861
+ "policies": {},
862
+ "checkConstraints": {},
863
+ "isRLSEnabled": false
864
+ },
865
+ "public.pattern_files": {
866
+ "name": "pattern_files",
867
+ "schema": "",
868
+ "columns": {
869
+ "pattern_id": {
870
+ "name": "pattern_id",
871
+ "type": "text",
872
+ "primaryKey": false,
873
+ "notNull": true
874
+ },
875
+ "path": {
876
+ "name": "path",
877
+ "type": "text",
878
+ "primaryKey": false,
879
+ "notNull": true
880
+ },
881
+ "kind": {
882
+ "name": "kind",
883
+ "type": "text",
884
+ "primaryKey": false,
885
+ "notNull": true
886
+ },
887
+ "content": {
888
+ "name": "content",
889
+ "type": "text",
890
+ "primaryKey": false,
891
+ "notNull": false
892
+ },
893
+ "storage_ref": {
894
+ "name": "storage_ref",
895
+ "type": "text",
896
+ "primaryKey": false,
897
+ "notNull": false
898
+ },
899
+ "content_type": {
900
+ "name": "content_type",
901
+ "type": "text",
902
+ "primaryKey": false,
903
+ "notNull": true
904
+ },
905
+ "created_at": {
906
+ "name": "created_at",
907
+ "type": "timestamp with time zone",
908
+ "primaryKey": false,
909
+ "notNull": true,
910
+ "default": "now()"
911
+ },
912
+ "updated_at": {
913
+ "name": "updated_at",
914
+ "type": "timestamp with time zone",
915
+ "primaryKey": false,
916
+ "notNull": true,
917
+ "default": "now()"
918
+ }
919
+ },
920
+ "indexes": {},
921
+ "foreignKeys": {
922
+ "pattern_files_pattern_id_patterns_id_fk": {
923
+ "name": "pattern_files_pattern_id_patterns_id_fk",
924
+ "tableFrom": "pattern_files",
925
+ "tableTo": "patterns",
926
+ "columnsFrom": [
927
+ "pattern_id"
928
+ ],
929
+ "columnsTo": [
930
+ "id"
931
+ ],
932
+ "onDelete": "cascade",
933
+ "onUpdate": "no action"
934
+ }
935
+ },
936
+ "compositePrimaryKeys": {
937
+ "pattern_files_pattern_id_path_pk": {
938
+ "name": "pattern_files_pattern_id_path_pk",
939
+ "columns": [
940
+ "pattern_id",
941
+ "path"
942
+ ]
943
+ }
944
+ },
945
+ "uniqueConstraints": {},
946
+ "policies": {},
947
+ "checkConstraints": {
948
+ "pattern_files_kind_not_declaration": {
949
+ "name": "pattern_files_kind_not_declaration",
950
+ "value": "\"pattern_files\".\"kind\" <> 'declaration'"
951
+ }
952
+ },
953
+ "isRLSEnabled": false
954
+ },
955
+ "public.patterns": {
956
+ "name": "patterns",
957
+ "schema": "",
958
+ "columns": {
959
+ "id": {
960
+ "name": "id",
961
+ "type": "text",
962
+ "primaryKey": true,
963
+ "notNull": true
964
+ },
965
+ "path": {
966
+ "name": "path",
967
+ "type": "text",
968
+ "primaryKey": false,
969
+ "notNull": true
970
+ },
971
+ "title": {
972
+ "name": "title",
973
+ "type": "text",
974
+ "primaryKey": false,
975
+ "notNull": false
976
+ },
977
+ "description": {
978
+ "name": "description",
979
+ "type": "text",
980
+ "primaryKey": false,
981
+ "notNull": false
982
+ },
983
+ "group": {
984
+ "name": "group",
985
+ "type": "text",
986
+ "primaryKey": false,
987
+ "notNull": false
988
+ },
989
+ "tags": {
990
+ "name": "tags",
991
+ "type": "jsonb",
992
+ "primaryKey": false,
993
+ "notNull": false
994
+ },
995
+ "components": {
996
+ "name": "components",
997
+ "type": "jsonb",
998
+ "primaryKey": false,
999
+ "notNull": false
1000
+ },
1001
+ "record": {
1002
+ "name": "record",
1003
+ "type": "jsonb",
1004
+ "primaryKey": false,
1005
+ "notNull": true
1006
+ },
1007
+ "metadata": {
1008
+ "name": "metadata",
1009
+ "type": "jsonb",
1010
+ "primaryKey": false,
1011
+ "notNull": false
1012
+ },
1013
+ "created_at": {
1014
+ "name": "created_at",
1015
+ "type": "timestamp with time zone",
1016
+ "primaryKey": false,
1017
+ "notNull": true,
1018
+ "default": "now()"
1019
+ },
1020
+ "updated_at": {
1021
+ "name": "updated_at",
1022
+ "type": "timestamp with time zone",
1023
+ "primaryKey": false,
1024
+ "notNull": true,
1025
+ "default": "now()"
1026
+ }
1027
+ },
1028
+ "indexes": {
1029
+ "patterns_group_idx": {
1030
+ "name": "patterns_group_idx",
1031
+ "columns": [
1032
+ {
1033
+ "expression": "group",
1034
+ "isExpression": false,
1035
+ "asc": true,
1036
+ "nulls": "last"
1037
+ }
1038
+ ],
1039
+ "isUnique": false,
1040
+ "concurrently": false,
1041
+ "method": "btree",
1042
+ "with": {}
1043
+ }
1044
+ },
1045
+ "foreignKeys": {},
1046
+ "compositePrimaryKeys": {},
1047
+ "uniqueConstraints": {},
1048
+ "policies": {},
1049
+ "checkConstraints": {},
1050
+ "isRLSEnabled": false
1051
+ },
1052
+ "public.token_artifacts": {
1053
+ "name": "token_artifacts",
1054
+ "schema": "",
1055
+ "columns": {
1056
+ "token_set_id": {
1057
+ "name": "token_set_id",
1058
+ "type": "text",
1059
+ "primaryKey": false,
1060
+ "notNull": true
1061
+ },
1062
+ "path": {
1063
+ "name": "path",
1064
+ "type": "text",
1065
+ "primaryKey": false,
1066
+ "notNull": true
1067
+ },
1068
+ "format": {
1069
+ "name": "format",
1070
+ "type": "text",
1071
+ "primaryKey": false,
1072
+ "notNull": true
1073
+ },
1074
+ "content": {
1075
+ "name": "content",
1076
+ "type": "text",
1077
+ "primaryKey": false,
1078
+ "notNull": false
1079
+ },
1080
+ "storage_ref": {
1081
+ "name": "storage_ref",
1082
+ "type": "text",
1083
+ "primaryKey": false,
1084
+ "notNull": false
1085
+ },
1086
+ "content_type": {
1087
+ "name": "content_type",
1088
+ "type": "text",
1089
+ "primaryKey": false,
1090
+ "notNull": true
1091
+ },
1092
+ "hash": {
1093
+ "name": "hash",
1094
+ "type": "text",
1095
+ "primaryKey": false,
1096
+ "notNull": false
1097
+ },
1098
+ "size": {
1099
+ "name": "size",
1100
+ "type": "integer",
1101
+ "primaryKey": false,
1102
+ "notNull": false
1103
+ },
1104
+ "created_at": {
1105
+ "name": "created_at",
1106
+ "type": "timestamp with time zone",
1107
+ "primaryKey": false,
1108
+ "notNull": true,
1109
+ "default": "now()"
1110
+ },
1111
+ "updated_at": {
1112
+ "name": "updated_at",
1113
+ "type": "timestamp with time zone",
1114
+ "primaryKey": false,
1115
+ "notNull": true,
1116
+ "default": "now()"
1117
+ }
1118
+ },
1119
+ "indexes": {},
1120
+ "foreignKeys": {
1121
+ "token_artifacts_token_set_id_token_sets_id_fk": {
1122
+ "name": "token_artifacts_token_set_id_token_sets_id_fk",
1123
+ "tableFrom": "token_artifacts",
1124
+ "tableTo": "token_sets",
1125
+ "columnsFrom": [
1126
+ "token_set_id"
1127
+ ],
1128
+ "columnsTo": [
1129
+ "id"
1130
+ ],
1131
+ "onDelete": "cascade",
1132
+ "onUpdate": "no action"
1133
+ }
1134
+ },
1135
+ "compositePrimaryKeys": {
1136
+ "token_artifacts_token_set_id_path_pk": {
1137
+ "name": "token_artifacts_token_set_id_path_pk",
1138
+ "columns": [
1139
+ "token_set_id",
1140
+ "path"
1141
+ ]
1142
+ }
1143
+ },
1144
+ "uniqueConstraints": {},
1145
+ "policies": {},
1146
+ "checkConstraints": {},
1147
+ "isRLSEnabled": false
1148
+ },
1149
+ "public.token_sets": {
1150
+ "name": "token_sets",
1151
+ "schema": "",
1152
+ "columns": {
1153
+ "id": {
1154
+ "name": "id",
1155
+ "type": "text",
1156
+ "primaryKey": true,
1157
+ "notNull": true
1158
+ },
1159
+ "kind": {
1160
+ "name": "kind",
1161
+ "type": "text",
1162
+ "primaryKey": false,
1163
+ "notNull": true
1164
+ },
1165
+ "record": {
1166
+ "name": "record",
1167
+ "type": "jsonb",
1168
+ "primaryKey": false,
1169
+ "notNull": true
1170
+ },
1171
+ "source_hash": {
1172
+ "name": "source_hash",
1173
+ "type": "text",
1174
+ "primaryKey": false,
1175
+ "notNull": false
1176
+ },
1177
+ "status": {
1178
+ "name": "status",
1179
+ "type": "text",
1180
+ "primaryKey": false,
1181
+ "notNull": false
1182
+ },
1183
+ "built_at": {
1184
+ "name": "built_at",
1185
+ "type": "timestamp with time zone",
1186
+ "primaryKey": false,
1187
+ "notNull": false
1188
+ },
1189
+ "builder_version": {
1190
+ "name": "builder_version",
1191
+ "type": "text",
1192
+ "primaryKey": false,
1193
+ "notNull": false
1194
+ },
1195
+ "metadata": {
1196
+ "name": "metadata",
1197
+ "type": "jsonb",
1198
+ "primaryKey": false,
1199
+ "notNull": false
1200
+ },
1201
+ "created_at": {
1202
+ "name": "created_at",
1203
+ "type": "timestamp with time zone",
1204
+ "primaryKey": false,
1205
+ "notNull": true,
1206
+ "default": "now()"
1207
+ },
1208
+ "updated_at": {
1209
+ "name": "updated_at",
1210
+ "type": "timestamp with time zone",
1211
+ "primaryKey": false,
1212
+ "notNull": true,
1213
+ "default": "now()"
1214
+ }
1215
+ },
1216
+ "indexes": {
1217
+ "token_sets_kind_idx": {
1218
+ "name": "token_sets_kind_idx",
1219
+ "columns": [
1220
+ {
1221
+ "expression": "kind",
1222
+ "isExpression": false,
1223
+ "asc": true,
1224
+ "nulls": "last"
1225
+ }
1226
+ ],
1227
+ "isUnique": false,
1228
+ "concurrently": false,
1229
+ "method": "btree",
1230
+ "with": {}
1231
+ }
1232
+ },
1233
+ "foreignKeys": {},
1234
+ "compositePrimaryKeys": {},
1235
+ "uniqueConstraints": {},
1236
+ "policies": {},
1237
+ "checkConstraints": {},
1238
+ "isRLSEnabled": false
1239
+ }
1240
+ },
1241
+ "enums": {},
1242
+ "schemas": {},
1243
+ "sequences": {},
1244
+ "roles": {},
1245
+ "policies": {},
1246
+ "views": {},
1247
+ "_meta": {
1248
+ "columns": {},
1249
+ "schemas": {},
1250
+ "tables": {}
1251
+ }
1252
+ }