@engenty/wizards-runtime 0.0.0-stage → 0.7.5

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 (518) hide show
  1. package/LICENSE +110 -0
  2. package/README.md +214 -2
  3. package/apps/runtime/dist/agents/architect.js +444 -0
  4. package/apps/runtime/dist/agents/studio-assistant.js +883 -0
  5. package/apps/runtime/dist/agents/subscription.js +207 -0
  6. package/apps/runtime/dist/agents/thought.js +21 -0
  7. package/apps/runtime/dist/agents/website.js +480 -0
  8. package/apps/runtime/dist/app.js +359 -0
  9. package/apps/runtime/dist/apple/wizards-apple +0 -0
  10. package/apps/runtime/dist/assistant/browser.js +26 -0
  11. package/apps/runtime/dist/assistant/docs.js +158 -0
  12. package/apps/runtime/dist/assistant/knows.js +353 -0
  13. package/apps/runtime/dist/assistant/primer.js +26 -0
  14. package/apps/runtime/dist/assistant/runs.js +24 -0
  15. package/apps/runtime/dist/auth/account.js +175 -0
  16. package/apps/runtime/dist/auth/device.js +112 -0
  17. package/apps/runtime/dist/auth/index.js +358 -0
  18. package/apps/runtime/dist/auth/keys.js +55 -0
  19. package/apps/runtime/dist/auth/local-ticket.js +26 -0
  20. package/apps/runtime/dist/authoring/example.js +74 -0
  21. package/apps/runtime/dist/authoring/guide.js +433 -0
  22. package/apps/runtime/dist/authoring/ops.js +117 -0
  23. package/apps/runtime/dist/browser/fast/action-space.js +160 -0
  24. package/apps/runtime/dist/browser/fast/classifier.js +91 -0
  25. package/apps/runtime/dist/browser/fast/decide.js +171 -0
  26. package/apps/runtime/dist/browser/fast/driver.js +141 -0
  27. package/apps/runtime/dist/browser/fast/instructions.js +33 -0
  28. package/apps/runtime/dist/browser/fast/run.js +249 -0
  29. package/apps/runtime/dist/browser/fast/span-picker.js +153 -0
  30. package/apps/runtime/dist/browser/fast/text-helper.js +178 -0
  31. package/apps/runtime/dist/browser/snapshot.js +335 -0
  32. package/apps/runtime/dist/cli/account.js +385 -0
  33. package/apps/runtime/dist/cli/autostart.js +182 -0
  34. package/apps/runtime/dist/cli/autoupdate.js +221 -0
  35. package/apps/runtime/dist/cli/clients.js +44 -0
  36. package/apps/runtime/dist/cli/connect.js +540 -0
  37. package/apps/runtime/dist/cli/environment.js +93 -0
  38. package/apps/runtime/dist/cli/exec.js +45 -0
  39. package/apps/runtime/dist/cli/features.js +50 -0
  40. package/apps/runtime/dist/cli/home.js +88 -0
  41. package/apps/runtime/dist/cli/install-env.js +33 -0
  42. package/apps/runtime/dist/cli/machine.js +107 -0
  43. package/apps/runtime/dist/cli/main.js +222 -0
  44. package/apps/runtime/dist/cli/mcp.js +136 -0
  45. package/apps/runtime/dist/cli/menu.js +202 -0
  46. package/apps/runtime/dist/cli/processes.js +72 -0
  47. package/apps/runtime/dist/cli/report.js +66 -0
  48. package/apps/runtime/dist/cli/setup.js +335 -0
  49. package/apps/runtime/dist/cli/start.js +276 -0
  50. package/apps/runtime/dist/cli/status.js +203 -0
  51. package/apps/runtime/dist/cli/ui.js +59 -0
  52. package/apps/runtime/dist/cli/uninstall-main.js +20 -0
  53. package/apps/runtime/dist/cli/uninstall.js +231 -0
  54. package/apps/runtime/dist/cli/update.js +86 -0
  55. package/apps/runtime/dist/cli/validate.js +75 -0
  56. package/apps/runtime/dist/cli/versions.js +123 -0
  57. package/apps/runtime/dist/connectors/builtin.js +86 -0
  58. package/apps/runtime/dist/connectors/external.js +409 -0
  59. package/apps/runtime/dist/connectors/gmail.js +107 -0
  60. package/apps/runtime/dist/connectors/imap.js +261 -0
  61. package/apps/runtime/dist/connectors/index.js +325 -0
  62. package/apps/runtime/dist/connectors/mail.js +72 -0
  63. package/apps/runtime/dist/connectors/outlook.js +90 -0
  64. package/apps/runtime/dist/connectors/plugin-connections.js +343 -0
  65. package/apps/runtime/dist/connectors/via-account.js +65 -0
  66. package/apps/runtime/dist/credits/credits.js +100 -0
  67. package/apps/runtime/dist/credits/estimate.js +152 -0
  68. package/apps/runtime/dist/db/adopt.js +149 -0
  69. package/apps/runtime/dist/db/client.js +173 -0
  70. package/apps/runtime/dist/db/control-schema.js +133 -0
  71. package/apps/runtime/dist/db/migrations/control/0000_last_absorbing_man.sql +47 -0
  72. package/apps/runtime/dist/db/migrations/control/0001_gorgeous_nicolaos.sql +41 -0
  73. package/apps/runtime/dist/db/migrations/control/0002_secret_penance.sql +1 -0
  74. package/apps/runtime/dist/db/migrations/control/0003_nasty_mordo.sql +3 -0
  75. package/apps/runtime/dist/db/migrations/control/0004_breezy_eddie_brock.sql +6 -0
  76. package/apps/runtime/dist/db/migrations/control/0005_chilly_oracle.sql +1 -0
  77. package/apps/runtime/dist/db/migrations/control/0006_sleepy_mojo.sql +1 -0
  78. package/apps/runtime/dist/db/migrations/control/0007_common_the_hand.sql +15 -0
  79. package/apps/runtime/dist/db/migrations/control/0008_runner.sql +8 -0
  80. package/apps/runtime/dist/db/migrations/control/0009_plugin_claim.sql +9 -0
  81. package/apps/runtime/dist/db/migrations/control/0010_tan_snowbird.sql +6 -0
  82. package/apps/runtime/dist/db/migrations/control/meta/0000_snapshot.json +311 -0
  83. package/apps/runtime/dist/db/migrations/control/meta/0001_snapshot.json +599 -0
  84. package/apps/runtime/dist/db/migrations/control/meta/0002_snapshot.json +607 -0
  85. package/apps/runtime/dist/db/migrations/control/meta/0003_snapshot.json +311 -0
  86. package/apps/runtime/dist/db/migrations/control/meta/0004_snapshot.json +350 -0
  87. package/apps/runtime/dist/db/migrations/control/meta/0005_snapshot.json +358 -0
  88. package/apps/runtime/dist/db/migrations/control/meta/0006_snapshot.json +365 -0
  89. package/apps/runtime/dist/db/migrations/control/meta/0007_snapshot.json +460 -0
  90. package/apps/runtime/dist/db/migrations/control/meta/0008_snapshot.json +505 -0
  91. package/apps/runtime/dist/db/migrations/control/meta/0009_snapshot.json +561 -0
  92. package/apps/runtime/dist/db/migrations/control/meta/0010_snapshot.json +600 -0
  93. package/apps/runtime/dist/db/migrations/control/meta/_journal.json +83 -0
  94. package/apps/runtime/dist/db/migrations/tenant/0000_eminent_freak.sql +188 -0
  95. package/apps/runtime/dist/db/migrations/tenant/0001_salty_master_chief.sql +1 -0
  96. package/apps/runtime/dist/db/migrations/tenant/0002_cloudy_firebird.sql +1 -0
  97. package/apps/runtime/dist/db/migrations/tenant/0003_brown_warbound.sql +52 -0
  98. package/apps/runtime/dist/db/migrations/tenant/0004_romantic_nocturne.sql +6 -0
  99. package/apps/runtime/dist/db/migrations/tenant/0005_reflective_forgotten_one.sql +2 -0
  100. package/apps/runtime/dist/db/migrations/tenant/0006_hard_war_machine.sql +30 -0
  101. package/apps/runtime/dist/db/migrations/tenant/0007_space_data.sql +43 -0
  102. package/apps/runtime/dist/db/migrations/tenant/0008_run_event_note.sql +1 -0
  103. package/apps/runtime/dist/db/migrations/tenant/0009_knowledge.sql +104 -0
  104. package/apps/runtime/dist/db/migrations/tenant/0010_plugin_connection.sql +15 -0
  105. package/apps/runtime/dist/db/migrations/tenant/0011_runners.sql +2 -0
  106. package/apps/runtime/dist/db/migrations/tenant/0012_assistant_chat.sql +40 -0
  107. package/apps/runtime/dist/db/migrations/tenant/0013_run_origin.sql +1 -0
  108. package/apps/runtime/dist/db/migrations/tenant/0014_run_answer.sql +2 -0
  109. package/apps/runtime/dist/db/migrations/tenant/0015_device_calls.sql +13 -0
  110. package/apps/runtime/dist/db/migrations/tenant/0016_even_trish_tilby.sql +12 -0
  111. package/apps/runtime/dist/db/migrations/tenant/meta/0000_snapshot.json +1323 -0
  112. package/apps/runtime/dist/db/migrations/tenant/meta/0001_snapshot.json +1330 -0
  113. package/apps/runtime/dist/db/migrations/tenant/meta/0002_snapshot.json +1337 -0
  114. package/apps/runtime/dist/db/migrations/tenant/meta/0003_snapshot.json +1605 -0
  115. package/apps/runtime/dist/db/migrations/tenant/meta/0004_snapshot.json +1645 -0
  116. package/apps/runtime/dist/db/migrations/tenant/meta/0005_snapshot.json +1659 -0
  117. package/apps/runtime/dist/db/migrations/tenant/meta/0006_snapshot.json +1696 -0
  118. package/apps/runtime/dist/db/migrations/tenant/meta/0007_snapshot.json +2012 -0
  119. package/apps/runtime/dist/db/migrations/tenant/meta/0008_snapshot.json +2019 -0
  120. package/apps/runtime/dist/db/migrations/tenant/meta/0009_snapshot.json +2837 -0
  121. package/apps/runtime/dist/db/migrations/tenant/meta/0010_snapshot.json +2942 -0
  122. package/apps/runtime/dist/db/migrations/tenant/meta/0011_snapshot.json +2956 -0
  123. package/apps/runtime/dist/db/migrations/tenant/meta/0012_snapshot.json +3132 -0
  124. package/apps/runtime/dist/db/migrations/tenant/meta/0013_snapshot.json +3139 -0
  125. package/apps/runtime/dist/db/migrations/tenant/meta/0014_snapshot.json +3154 -0
  126. package/apps/runtime/dist/db/migrations/tenant/meta/0015_snapshot.json +3243 -0
  127. package/apps/runtime/dist/db/migrations/tenant/meta/0016_snapshot.json +3326 -0
  128. package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +125 -0
  129. package/apps/runtime/dist/db/schema.js +602 -0
  130. package/apps/runtime/dist/debug.js +196 -0
  131. package/apps/runtime/dist/docs/dev/index.md +41 -0
  132. package/apps/runtime/dist/docs/dev/meta.json +7 -0
  133. package/apps/runtime/dist/docs/dev/plugins/connections.md +74 -0
  134. package/apps/runtime/dist/docs/dev/plugins/events.md +89 -0
  135. package/apps/runtime/dist/docs/dev/plugins/examples.md +101 -0
  136. package/apps/runtime/dist/docs/dev/plugins/index.md +78 -0
  137. package/apps/runtime/dist/docs/dev/plugins/layout.md +90 -0
  138. package/apps/runtime/dist/docs/dev/plugins/meta.json +28 -0
  139. package/apps/runtime/dist/docs/dev/plugins/quick-start.md +94 -0
  140. package/apps/runtime/dist/docs/dev/plugins/reference.md +348 -0
  141. package/apps/runtime/dist/docs/dev/plugins/reloading.md +76 -0
  142. package/apps/runtime/dist/docs/dev/plugins/routes.md +185 -0
  143. package/apps/runtime/dist/docs/dev/plugins/runners.md +230 -0
  144. package/apps/runtime/dist/docs/dev/plugins/server.md +281 -0
  145. package/apps/runtime/dist/docs/dev/plugins/shipping.md +79 -0
  146. package/apps/runtime/dist/docs/dev/plugins/space.md +297 -0
  147. package/apps/runtime/dist/docs/dev/plugins/starters.md +70 -0
  148. package/apps/runtime/dist/docs/dev/plugins/studio.md +363 -0
  149. package/apps/runtime/dist/docs/dev/plugins/styling.md +129 -0
  150. package/apps/runtime/dist/docs/dev/plugins/tables.md +104 -0
  151. package/apps/runtime/dist/docs/dev/plugins/tools.md +139 -0
  152. package/apps/runtime/dist/docs/dev/wizard-format.md +125 -0
  153. package/apps/runtime/dist/docs/meta.json +3 -0
  154. package/apps/runtime/dist/docs/user/ai-apps.md +112 -0
  155. package/apps/runtime/dist/docs/user/assistant.md +77 -0
  156. package/apps/runtime/dist/docs/user/build-a-wizard.md +116 -0
  157. package/apps/runtime/dist/docs/user/command-line.md +83 -0
  158. package/apps/runtime/dist/docs/user/connectors.md +90 -0
  159. package/apps/runtime/dist/docs/user/create-account.md +52 -0
  160. package/apps/runtime/dist/docs/user/data.md +66 -0
  161. package/apps/runtime/dist/docs/user/first-start.md +60 -0
  162. package/apps/runtime/dist/docs/user/index.md +49 -0
  163. package/apps/runtime/dist/docs/user/install.md +123 -0
  164. package/apps/runtime/dist/docs/user/local-only.md +42 -0
  165. package/apps/runtime/dist/docs/user/meta.json +32 -0
  166. package/apps/runtime/dist/docs/user/models.md +156 -0
  167. package/apps/runtime/dist/docs/user/plugins.md +71 -0
  168. package/apps/runtime/dist/docs/user/run.md +98 -0
  169. package/apps/runtime/dist/docs/user/server.md +52 -0
  170. package/apps/runtime/dist/docs/user/space.md +126 -0
  171. package/apps/runtime/dist/docs/user/steps.md +220 -0
  172. package/apps/runtime/dist/docs/user/test-and-share.md +224 -0
  173. package/apps/runtime/dist/docs/user/troubleshooting.md +67 -0
  174. package/apps/runtime/dist/docs/user/wordpress.md +121 -0
  175. package/apps/runtime/dist/documents/parse.js +246 -0
  176. package/apps/runtime/dist/engenty/connections-external/build-connector.js +193 -0
  177. package/apps/runtime/dist/engenty/connections-external/errors.js +11 -0
  178. package/apps/runtime/dist/engenty/connections-external/import-service.js +270 -0
  179. package/apps/runtime/dist/engenty/connections-external/importer/classify.js +34 -0
  180. package/apps/runtime/dist/engenty/connections-external/importer/map-auth.js +185 -0
  181. package/apps/runtime/dist/engenty/connections-external/importer/normalize-mcp.js +63 -0
  182. package/apps/runtime/dist/engenty/connections-external/importer/normalize-openapi.js +130 -0
  183. package/apps/runtime/dist/engenty/connections-external/invoke/http-invoker.js +143 -0
  184. package/apps/runtime/dist/engenty/connections-external/invoke/mcp-client.js +143 -0
  185. package/apps/runtime/dist/engenty/connections-external/net/guarded-fetch.js +119 -0
  186. package/apps/runtime/dist/engenty/connections-external/oauth-dcr.js +88 -0
  187. package/apps/runtime/dist/engenty/connections-external/registry-client.js +336 -0
  188. package/apps/runtime/dist/engenty/connections-external/registry-source.js +82 -0
  189. package/apps/runtime/dist/engenty/connections-external/types.js +7 -0
  190. package/apps/runtime/dist/engenty/connections-github/connector.js +209 -0
  191. package/apps/runtime/dist/engenty/connections-google/connectors/calendar.js +381 -0
  192. package/apps/runtime/dist/engenty/connections-google/connectors/contacts.js +94 -0
  193. package/apps/runtime/dist/engenty/connections-google/connectors/drive.js +290 -0
  194. package/apps/runtime/dist/engenty/connections-google/connectors/gmail.js +567 -0
  195. package/apps/runtime/dist/engenty/connections-google/definitions.js +11 -0
  196. package/apps/runtime/dist/engenty/connections-google/shared.js +73 -0
  197. package/apps/runtime/dist/engenty/connections-hubspot/connector.js +140 -0
  198. package/apps/runtime/dist/engenty/connections-microsoft/action.js +17 -0
  199. package/apps/runtime/dist/engenty/connections-microsoft/graph.js +114 -0
  200. package/apps/runtime/dist/engenty/connections-microsoft/onedrive.js +286 -0
  201. package/apps/runtime/dist/engenty/connections-microsoft/outlook.js +492 -0
  202. package/apps/runtime/dist/engenty/connections-s3/s3.js +328 -0
  203. package/apps/runtime/dist/engenty/connections-sdk/files-capability.js +86 -0
  204. package/apps/runtime/dist/engenty/connections-sdk/oauth2.js +150 -0
  205. package/apps/runtime/dist/engenty/connections-sdk/registry.js +89 -0
  206. package/apps/runtime/dist/engenty/connections-sdk/storage-capability.js +84 -0
  207. package/apps/runtime/dist/engenty/connections-sdk/types.js +30 -0
  208. package/apps/runtime/dist/engenty/connections-slack/connector.js +360 -0
  209. package/apps/runtime/dist/engenty/csv-import/csv-matrix.js +178 -0
  210. package/apps/runtime/dist/engenty/csv-import/import-sources.js +87 -0
  211. package/apps/runtime/dist/engenty/csv-import/parse-csv.js +129 -0
  212. package/apps/runtime/dist/engenty/csv-import/serialize-csv.js +20 -0
  213. package/apps/runtime/dist/engenty/csv-import/types.js +1 -0
  214. package/apps/runtime/dist/engenty/csv-import/xlsx-workbook.js +159 -0
  215. package/apps/runtime/dist/engenty/doc-converter/interface.js +9 -0
  216. package/apps/runtime/dist/engenty/doc-converter/page-break.js +92 -0
  217. package/apps/runtime/dist/engenty/doc-converter/providers/local/index.js +72 -0
  218. package/apps/runtime/dist/engenty/document-scanner/schemas/classifier.js +30 -0
  219. package/apps/runtime/dist/engenty/document-scanner/schemas/index.js +4 -0
  220. package/apps/runtime/dist/engenty/document-scanner/schemas/invoice.js +73 -0
  221. package/apps/runtime/dist/engenty/document-scanner/schemas/receipt.js +63 -0
  222. package/apps/runtime/dist/engenty/document-scanner/schemas/shared.js +40 -0
  223. package/apps/runtime/dist/engenty/search-index/chunks.js +164 -0
  224. package/apps/runtime/dist/engenty/search-index/contracts.js +9 -0
  225. package/apps/runtime/dist/engenty/shims/connections-sdk.js +39 -0
  226. package/apps/runtime/dist/engenty/shims/plugin-sdk.js +1 -0
  227. package/apps/runtime/dist/engenty/shims/web-ingest.js +19 -0
  228. package/apps/runtime/dist/engenty/web-ingest/ssrf.js +277 -0
  229. package/apps/runtime/dist/engine/asks.js +82 -0
  230. package/apps/runtime/dist/engine/decide.js +82 -0
  231. package/apps/runtime/dist/engine/device.js +194 -0
  232. package/apps/runtime/dist/engine/events.js +128 -0
  233. package/apps/runtime/dist/engine/input.js +208 -0
  234. package/apps/runtime/dist/engine/owner.js +32 -0
  235. package/apps/runtime/dist/engine/prepare.js +90 -0
  236. package/apps/runtime/dist/engine/push.js +58 -0
  237. package/apps/runtime/dist/engine/requirements.js +355 -0
  238. package/apps/runtime/dist/engine/resources.js +198 -0
  239. package/apps/runtime/dist/engine/runner.js +970 -0
  240. package/apps/runtime/dist/engine/steps.js +1000 -0
  241. package/apps/runtime/dist/engine/surface.js +91 -0
  242. package/apps/runtime/dist/engine/template.js +240 -0
  243. package/apps/runtime/dist/engine/types.js +4 -0
  244. package/apps/runtime/dist/env.js +295 -0
  245. package/apps/runtime/dist/features.js +123 -0
  246. package/apps/runtime/dist/files/blobs.js +22 -0
  247. package/apps/runtime/dist/files/objects.js +86 -0
  248. package/apps/runtime/dist/files/storage.js +120 -0
  249. package/apps/runtime/dist/files/web-images.js +101 -0
  250. package/apps/runtime/dist/film/project.js +257 -0
  251. package/apps/runtime/dist/film/skills.js +91 -0
  252. package/apps/runtime/dist/film/sounds.js +122 -0
  253. package/apps/runtime/dist/film/step.js +289 -0
  254. package/apps/runtime/dist/film/tools.js +99 -0
  255. package/apps/runtime/dist/geocode.js +58 -0
  256. package/apps/runtime/dist/harness/antigravity.js +129 -0
  257. package/apps/runtime/dist/harness/apple.js +270 -0
  258. package/apps/runtime/dist/harness/claude.js +147 -0
  259. package/apps/runtime/dist/harness/codex.js +229 -0
  260. package/apps/runtime/dist/harness/cursor.js +93 -0
  261. package/apps/runtime/dist/harness/env.js +124 -0
  262. package/apps/runtime/dist/harness/index.js +95 -0
  263. package/apps/runtime/dist/harness/model.js +279 -0
  264. package/apps/runtime/dist/harness/prompt.js +121 -0
  265. package/apps/runtime/dist/harness/terminal.js +194 -0
  266. package/apps/runtime/dist/harness/types.js +7 -0
  267. package/apps/runtime/dist/index.js +113 -0
  268. package/apps/runtime/dist/limits.js +81 -0
  269. package/apps/runtime/dist/link-preview.js +60 -0
  270. package/apps/runtime/dist/log.js +106 -0
  271. package/apps/runtime/dist/manage.js +249 -0
  272. package/apps/runtime/dist/mcp/auth.js +161 -0
  273. package/apps/runtime/dist/mcp/bridge.js +59 -0
  274. package/apps/runtime/dist/mcp/flow-app.js +97 -0
  275. package/apps/runtime/dist/mcp/handler.js +54 -0
  276. package/apps/runtime/dist/mcp/scopes.js +14 -0
  277. package/apps/runtime/dist/mcp/seen.js +65 -0
  278. package/apps/runtime/dist/mcp/tools.js +572 -0
  279. package/apps/runtime/dist/media/conversation.js +167 -0
  280. package/apps/runtime/dist/media/ffmpeg.js +121 -0
  281. package/apps/runtime/dist/media/generate.js +120 -0
  282. package/apps/runtime/dist/media/marking.js +121 -0
  283. package/apps/runtime/dist/media/transcribe.js +198 -0
  284. package/apps/runtime/dist/model-errors.js +42 -0
  285. package/apps/runtime/dist/models.js +1164 -0
  286. package/apps/runtime/dist/plugin.js +61 -0
  287. package/apps/runtime/dist/plugins/channels.js +78 -0
  288. package/apps/runtime/dist/plugins/claims.js +56 -0
  289. package/apps/runtime/dist/plugins/discovery.js +155 -0
  290. package/apps/runtime/dist/plugins/events.js +63 -0
  291. package/apps/runtime/dist/plugins/jobs.js +64 -0
  292. package/apps/runtime/dist/plugins/loader.js +508 -0
  293. package/apps/runtime/dist/plugins/migrations.js +69 -0
  294. package/apps/runtime/dist/plugins/pro-keys.js +34 -0
  295. package/apps/runtime/dist/plugins/pro-state.js +83 -0
  296. package/apps/runtime/dist/plugins/pro.js +310 -0
  297. package/apps/runtime/dist/plugins/public.js +44 -0
  298. package/apps/runtime/dist/plugins/registry.js +122 -0
  299. package/apps/runtime/dist/plugins/runs.js +210 -0
  300. package/apps/runtime/dist/render/browser-path.js +54 -0
  301. package/apps/runtime/dist/render/chromium.js +98 -0
  302. package/apps/runtime/dist/render/convert.js +158 -0
  303. package/apps/runtime/dist/render/downloads.js +299 -0
  304. package/apps/runtime/dist/render/guard.js +25 -0
  305. package/apps/runtime/dist/render/shaped.js +137 -0
  306. package/apps/runtime/dist/routes/api.js +440 -0
  307. package/apps/runtime/dist/routes/debug.js +42 -0
  308. package/apps/runtime/dist/routes/delivery.js +90 -0
  309. package/apps/runtime/dist/routes/internal.js +81 -0
  310. package/apps/runtime/dist/routes/lang.js +25 -0
  311. package/apps/runtime/dist/routes/marketplace.js +43 -0
  312. package/apps/runtime/dist/routes/plugin-public.js +113 -0
  313. package/apps/runtime/dist/routes/plugins.js +212 -0
  314. package/apps/runtime/dist/routes/runs.js +1422 -0
  315. package/apps/runtime/dist/routes/studio.js +1629 -0
  316. package/apps/runtime/dist/routes/wizard-stream.js +30 -0
  317. package/apps/runtime/dist/running.js +39 -0
  318. package/apps/runtime/dist/sandbox/docker.js +75 -0
  319. package/apps/runtime/dist/sandbox/index.js +23 -0
  320. package/apps/runtime/dist/sandbox/types.js +1 -0
  321. package/apps/runtime/dist/secrets/crypto.js +28 -0
  322. package/apps/runtime/dist/secrets/signing.js +52 -0
  323. package/apps/runtime/dist/secrets/vault.js +59 -0
  324. package/apps/runtime/dist/services/access.js +88 -0
  325. package/apps/runtime/dist/services/api.js +248 -0
  326. package/apps/runtime/dist/services/architect.js +95 -0
  327. package/apps/runtime/dist/services/assistant-chats.js +311 -0
  328. package/apps/runtime/dist/services/brand.js +85 -0
  329. package/apps/runtime/dist/services/cloud.js +456 -0
  330. package/apps/runtime/dist/services/draft-events.js +27 -0
  331. package/apps/runtime/dist/services/engenty-shapes.js +71 -0
  332. package/apps/runtime/dist/services/errors.js +29 -0
  333. package/apps/runtime/dist/services/files.js +178 -0
  334. package/apps/runtime/dist/services/knowledge-model.js +559 -0
  335. package/apps/runtime/dist/services/knowledge.js +721 -0
  336. package/apps/runtime/dist/services/links.js +16 -0
  337. package/apps/runtime/dist/services/marketplace.js +492 -0
  338. package/apps/runtime/dist/services/onboarding.js +152 -0
  339. package/apps/runtime/dist/services/package-file.js +82 -0
  340. package/apps/runtime/dist/services/package.js +170 -0
  341. package/apps/runtime/dist/services/profile.js +51 -0
  342. package/apps/runtime/dist/services/project-files.js +439 -0
  343. package/apps/runtime/dist/services/project-index.js +707 -0
  344. package/apps/runtime/dist/services/projects.js +387 -0
  345. package/apps/runtime/dist/services/relevance.js +58 -0
  346. package/apps/runtime/dist/services/runners.js +178 -0
  347. package/apps/runtime/dist/services/runs.js +524 -0
  348. package/apps/runtime/dist/services/shares.js +130 -0
  349. package/apps/runtime/dist/services/site.js +270 -0
  350. package/apps/runtime/dist/services/space-categories.js +861 -0
  351. package/apps/runtime/dist/services/space-data.js +792 -0
  352. package/apps/runtime/dist/services/space-origin.js +207 -0
  353. package/apps/runtime/dist/services/spaces.js +656 -0
  354. package/apps/runtime/dist/services/translations.js +306 -0
  355. package/apps/runtime/dist/services/widgets.js +34 -0
  356. package/apps/runtime/dist/services/wizard-icon.js +157 -0
  357. package/apps/runtime/dist/services/wizards.js +420 -0
  358. package/apps/runtime/dist/settings.js +16 -0
  359. package/apps/runtime/dist/store/errors.js +4 -0
  360. package/apps/runtime/dist/store/index.js +299 -0
  361. package/apps/runtime/dist/store/shared-lists.js +123 -0
  362. package/apps/runtime/dist/tenants/control.js +238 -0
  363. package/apps/runtime/dist/tenants/tenant.js +26 -0
  364. package/apps/runtime/dist/texts.js +207 -0
  365. package/apps/runtime/dist/tools/browser.js +703 -0
  366. package/apps/runtime/dist/tools/connector.js +204 -0
  367. package/apps/runtime/dist/tools/index.js +291 -0
  368. package/apps/runtime/dist/tools/mail.js +104 -0
  369. package/apps/runtime/dist/tools/net-guard.js +170 -0
  370. package/apps/runtime/dist/tools/pages.js +81 -0
  371. package/apps/runtime/dist/tools/plugin.js +180 -0
  372. package/apps/runtime/dist/tools/project.js +154 -0
  373. package/apps/runtime/dist/tools/shared.js +69 -0
  374. package/apps/runtime/dist/tools/store.js +238 -0
  375. package/apps/runtime/dist/update.js +113 -0
  376. package/apps/runtime/dist/widgets/bundle.js +99 -0
  377. package/apps/runtime/dist/widgets/render.js +329 -0
  378. package/apps/runtime/dist/widgets/runtime.js +108 -0
  379. package/apps/runtime/dist/widgets/script.js +30 -0
  380. package/apps/runtime/dist/widgets/step.js +223 -0
  381. package/apps/web/dist/ai-labels/ai-black.svg +20 -0
  382. package/apps/web/dist/ai-labels/ai-generated-black.svg +31 -0
  383. package/apps/web/dist/ai-labels/ai-generated-white.svg +32 -0
  384. package/apps/web/dist/ai-labels/ai-modified-black.svg +30 -0
  385. package/apps/web/dist/ai-labels/ai-modified-white.svg +31 -0
  386. package/apps/web/dist/ai-labels/ai-white.svg +21 -0
  387. package/apps/web/dist/assets/AboutDialog-D4mvc-zu.js +1 -0
  388. package/apps/web/dist/assets/ChangelogDialog-DLqpJsF6.js +1 -0
  389. package/apps/web/dist/assets/ChatView-3laypRcE.js +10 -0
  390. package/apps/web/dist/assets/EditorPage-BalA5U2Y.js +3 -0
  391. package/apps/web/dist/assets/FlowPreview-CusP7ci9.js +1 -0
  392. package/apps/web/dist/assets/Harness-BrP-ENHg.css +1 -0
  393. package/apps/web/dist/assets/Harness-iYLtOLaK.js +16 -0
  394. package/apps/web/dist/assets/NewWizardChannels-CbwJ9A56.js +1 -0
  395. package/apps/web/dist/assets/NewWizardPage-BOBYiB9i.js +7 -0
  396. package/apps/web/dist/assets/OnboardingPage-CUwCiVIr.js +1 -0
  397. package/apps/web/dist/assets/ProjectPage-Bb16MdYG.js +1 -0
  398. package/apps/web/dist/assets/PublicRunner-BCt7Q6C-.js +1 -0
  399. package/apps/web/dist/assets/ReadOnly-kIHX2TEy.js +1 -0
  400. package/apps/web/dist/assets/RunDrawer-hZ9oeSXu.js +4 -0
  401. package/apps/web/dist/assets/RunnerView-DUS9fPmx.js +1 -0
  402. package/apps/web/dist/assets/SettingsPage-BzwR50fi.js +1 -0
  403. package/apps/web/dist/assets/SetupPage-gAp7rPxp.js +1 -0
  404. package/apps/web/dist/assets/SharePage-DqZWHva_.js +1 -0
  405. package/apps/web/dist/assets/changelog-DugmCNSf.js +1 -0
  406. package/apps/web/dist/assets/engenty-eXZ-EAwd.js +1 -0
  407. package/apps/web/dist/assets/esm-DXeMu8Lb.js +7 -0
  408. package/apps/web/dist/assets/fluffy-engenty-ClRou7yu.js +456 -0
  409. package/apps/web/dist/assets/index-AfUa8xKD.css +1 -0
  410. package/apps/web/dist/assets/index-C5Sm7tTR.js +14 -0
  411. package/apps/web/dist/assets/jsx-runtime-BNakU3Ej.js +1 -0
  412. package/apps/web/dist/assets/lock-R_CfU0Xo.js +1 -0
  413. package/apps/web/dist/assets/oss-credits-cZ9NUaLZ.js +1 -0
  414. package/apps/web/dist/assets/pdfmake-Cx9scTbD.js +228 -0
  415. package/apps/web/dist/assets/phone-CgrIS4_-.js +1 -0
  416. package/apps/web/dist/assets/preload-helper-CNEI7N0N.js +1 -0
  417. package/apps/web/dist/assets/qr-scanner-worker.min-CJaXo3yu.js +98 -0
  418. package/apps/web/dist/assets/qr-scanner.min-C_UI0gH-.js +1 -0
  419. package/apps/web/dist/assets/rolldown-runtime-hePW80VL.js +1 -0
  420. package/apps/web/dist/assets/settings-menu-2IMOOlLl.js +1 -0
  421. package/apps/web/dist/assets/ui-dzGvc3xk.js +137 -0
  422. package/apps/web/dist/assets/upload-BSuTilFF.js +1 -0
  423. package/apps/web/dist/assets/vfs_fonts-DllDSYt1.js +1 -0
  424. package/apps/web/dist/embed.js +266 -0
  425. package/apps/web/dist/favicon.svg +1 -0
  426. package/apps/web/dist/icons/apple-touch-icon.png +0 -0
  427. package/apps/web/dist/icons/icon-192.png +0 -0
  428. package/apps/web/dist/icons/icon-512.png +0 -0
  429. package/apps/web/dist/icons/icon-maskable-512.png +0 -0
  430. package/apps/web/dist/index.html +48 -0
  431. package/apps/web/dist/install.sh +577 -0
  432. package/apps/web/dist/manifest.webmanifest +21 -0
  433. package/apps/web/dist/mcp/flow.html +980 -0
  434. package/apps/web/dist/sw.js +15 -0
  435. package/bin/wizards.mjs +288 -0
  436. package/modules/README.md +15 -0
  437. package/node_modules/@engenty/wizards/dist/plugin/index.d.ts +1150 -0
  438. package/node_modules/@engenty/wizards/dist/plugin/index.js +4 -0
  439. package/node_modules/@engenty/wizards/dist/plugin/studio.d.ts +322 -0
  440. package/node_modules/@engenty/wizards/dist/plugin/studio.js +4 -0
  441. package/node_modules/@engenty/wizards/dist/plugin/thread.d.ts +174 -0
  442. package/node_modules/@engenty/wizards/dist/plugin/thread.js +821 -0
  443. package/node_modules/@engenty/wizards/package.json +11 -0
  444. package/node_modules/@engenty-wizards/shared/dist/assistant.d.ts +174 -0
  445. package/node_modules/@engenty-wizards/shared/dist/assistant.js +65 -0
  446. package/node_modules/@engenty-wizards/shared/dist/changes.d.ts +22 -0
  447. package/node_modules/@engenty-wizards/shared/dist/changes.js +61 -0
  448. package/node_modules/@engenty-wizards/shared/dist/connectors.d.ts +77 -0
  449. package/node_modules/@engenty-wizards/shared/dist/connectors.js +2 -0
  450. package/node_modules/@engenty-wizards/shared/dist/decision.d.ts +76 -0
  451. package/node_modules/@engenty-wizards/shared/dist/decision.js +147 -0
  452. package/node_modules/@engenty-wizards/shared/dist/definition.d.ts +2922 -0
  453. package/node_modules/@engenty-wizards/shared/dist/definition.js +1920 -0
  454. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-format.d.ts +5 -0
  455. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-format.js +132 -0
  456. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-value.d.ts +11 -0
  457. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns-value.js +209 -0
  458. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns.d.ts +532 -0
  459. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/columns.js +217 -0
  460. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/index.d.ts +3 -0
  461. package/node_modules/@engenty-wizards/shared/dist/engenty/data-tables/index.js +3 -0
  462. package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-lexical.d.ts +14 -0
  463. package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-lexical.js +166 -0
  464. package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-rank.d.ts +33 -0
  465. package/node_modules/@engenty-wizards/shared/dist/engenty/search-index/catalog-rank.js +99 -0
  466. package/node_modules/@engenty-wizards/shared/dist/feature-flags.d.ts +78 -0
  467. package/node_modules/@engenty-wizards/shared/dist/feature-flags.js +70 -0
  468. package/node_modules/@engenty-wizards/shared/dist/features.d.ts +41 -0
  469. package/node_modules/@engenty-wizards/shared/dist/features.js +89 -0
  470. package/node_modules/@engenty-wizards/shared/dist/fit.d.ts +71 -0
  471. package/node_modules/@engenty-wizards/shared/dist/fit.js +382 -0
  472. package/node_modules/@engenty-wizards/shared/dist/json-schema.d.ts +14 -0
  473. package/node_modules/@engenty-wizards/shared/dist/json-schema.js +66 -0
  474. package/node_modules/@engenty-wizards/shared/dist/knowledge.d.ts +199 -0
  475. package/node_modules/@engenty-wizards/shared/dist/knowledge.js +68 -0
  476. package/node_modules/@engenty-wizards/shared/dist/marketplace-entry.d.ts +35 -0
  477. package/node_modules/@engenty-wizards/shared/dist/marketplace-entry.js +107 -0
  478. package/node_modules/@engenty-wizards/shared/dist/marketplace-search.d.ts +20 -0
  479. package/node_modules/@engenty-wizards/shared/dist/marketplace-search.js +136 -0
  480. package/node_modules/@engenty-wizards/shared/dist/marketplace.d.ts +227 -0
  481. package/node_modules/@engenty-wizards/shared/dist/marketplace.js +354 -0
  482. package/node_modules/@engenty-wizards/shared/dist/merge.d.ts +7 -0
  483. package/node_modules/@engenty-wizards/shared/dist/merge.js +40 -0
  484. package/node_modules/@engenty-wizards/shared/dist/numbers.d.ts +24 -0
  485. package/node_modules/@engenty-wizards/shared/dist/numbers.js +54 -0
  486. package/node_modules/@engenty-wizards/shared/dist/projects.d.ts +224 -0
  487. package/node_modules/@engenty-wizards/shared/dist/projects.js +319 -0
  488. package/node_modules/@engenty-wizards/shared/dist/providers.d.ts +101 -0
  489. package/node_modules/@engenty-wizards/shared/dist/providers.js +390 -0
  490. package/node_modules/@engenty-wizards/shared/dist/run.d.ts +680 -0
  491. package/node_modules/@engenty-wizards/shared/dist/run.js +620 -0
  492. package/node_modules/@engenty-wizards/shared/dist/runner-texts.d.ts +546 -0
  493. package/node_modules/@engenty-wizards/shared/dist/runner-texts.js +523 -0
  494. package/node_modules/@engenty-wizards/shared/dist/runners.d.ts +93 -0
  495. package/node_modules/@engenty-wizards/shared/dist/runners.js +146 -0
  496. package/node_modules/@engenty-wizards/shared/dist/shape.d.ts +102 -0
  497. package/node_modules/@engenty-wizards/shared/dist/shape.js +318 -0
  498. package/node_modules/@engenty-wizards/shared/dist/space-data.d.ts +89 -0
  499. package/node_modules/@engenty-wizards/shared/dist/space-data.js +47 -0
  500. package/node_modules/@engenty-wizards/shared/dist/store.d.ts +117 -0
  501. package/node_modules/@engenty-wizards/shared/dist/store.js +81 -0
  502. package/node_modules/@engenty-wizards/shared/dist/surface.d.ts +115 -0
  503. package/node_modules/@engenty-wizards/shared/dist/surface.js +442 -0
  504. package/node_modules/@engenty-wizards/shared/dist/texts.d.ts +45 -0
  505. package/node_modules/@engenty-wizards/shared/dist/texts.js +54 -0
  506. package/node_modules/@engenty-wizards/shared/dist/translation.d.ts +23 -0
  507. package/node_modules/@engenty-wizards/shared/dist/translation.js +154 -0
  508. package/node_modules/@engenty-wizards/shared/dist/wizard-package.d.ts +48 -0
  509. package/node_modules/@engenty-wizards/shared/dist/wizard-package.js +49 -0
  510. package/node_modules/@engenty-wizards/shared/dist/workspace.d.ts +16 -0
  511. package/node_modules/@engenty-wizards/shared/dist/workspace.js +51 -0
  512. package/node_modules/@engenty-wizards/shared/package.json +10 -0
  513. package/package.json +77 -4
  514. package/plugin/.claude-plugin/plugin.json +9 -0
  515. package/plugin/.mcp.json +8 -0
  516. package/plugin/commands/wizard.md +8 -0
  517. package/plugin/skills/build-wizard/SKILL.md +27 -0
  518. package/plugin/skills/use-wizard/SKILL.md +18 -0
@@ -0,0 +1,3139 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "e6a7e438-2e08-4f26-b5e7-660ae6af5030",
5
+ "prevId": "00bf0cd4-5483-4903-82c3-e88f5c7ceff0",
6
+ "tables": {
7
+ "asset": {
8
+ "name": "asset",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "tenant_id": {
18
+ "name": "tenant_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "run_id": {
25
+ "name": "run_id",
26
+ "type": "text",
27
+ "primaryKey": false,
28
+ "notNull": false,
29
+ "autoincrement": false
30
+ },
31
+ "step_id": {
32
+ "name": "step_id",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "kind": {
39
+ "name": "kind",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": true,
43
+ "autoincrement": false
44
+ },
45
+ "mime": {
46
+ "name": "mime",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false
51
+ },
52
+ "name": {
53
+ "name": "name",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": true,
57
+ "autoincrement": false
58
+ },
59
+ "path": {
60
+ "name": "path",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": true,
64
+ "autoincrement": false
65
+ },
66
+ "size": {
67
+ "name": "size",
68
+ "type": "integer",
69
+ "primaryKey": false,
70
+ "notNull": true,
71
+ "autoincrement": false
72
+ },
73
+ "created_at": {
74
+ "name": "created_at",
75
+ "type": "integer",
76
+ "primaryKey": false,
77
+ "notNull": true,
78
+ "autoincrement": false,
79
+ "default": "(unixepoch() * 1000)"
80
+ }
81
+ },
82
+ "indexes": {
83
+ "asset_run": {
84
+ "name": "asset_run",
85
+ "columns": [
86
+ "run_id"
87
+ ],
88
+ "isUnique": false
89
+ }
90
+ },
91
+ "foreignKeys": {},
92
+ "compositePrimaryKeys": {},
93
+ "uniqueConstraints": {},
94
+ "checkConstraints": {}
95
+ },
96
+ "assistant_chat": {
97
+ "name": "assistant_chat",
98
+ "columns": {
99
+ "id": {
100
+ "name": "id",
101
+ "type": "text",
102
+ "primaryKey": true,
103
+ "notNull": true,
104
+ "autoincrement": false
105
+ },
106
+ "tenant_id": {
107
+ "name": "tenant_id",
108
+ "type": "text",
109
+ "primaryKey": false,
110
+ "notNull": true,
111
+ "autoincrement": false
112
+ },
113
+ "user_id": {
114
+ "name": "user_id",
115
+ "type": "text",
116
+ "primaryKey": false,
117
+ "notNull": true,
118
+ "autoincrement": false
119
+ },
120
+ "title": {
121
+ "name": "title",
122
+ "type": "text",
123
+ "primaryKey": false,
124
+ "notNull": false,
125
+ "autoincrement": false
126
+ },
127
+ "summary": {
128
+ "name": "summary",
129
+ "type": "text",
130
+ "primaryKey": false,
131
+ "notNull": false,
132
+ "autoincrement": false
133
+ },
134
+ "folded": {
135
+ "name": "folded",
136
+ "type": "integer",
137
+ "primaryKey": false,
138
+ "notNull": true,
139
+ "autoincrement": false,
140
+ "default": 0
141
+ },
142
+ "created_at": {
143
+ "name": "created_at",
144
+ "type": "integer",
145
+ "primaryKey": false,
146
+ "notNull": true,
147
+ "autoincrement": false,
148
+ "default": "(unixepoch() * 1000)"
149
+ },
150
+ "closed_at": {
151
+ "name": "closed_at",
152
+ "type": "integer",
153
+ "primaryKey": false,
154
+ "notNull": false,
155
+ "autoincrement": false
156
+ }
157
+ },
158
+ "indexes": {
159
+ "assistant_chat_user": {
160
+ "name": "assistant_chat_user",
161
+ "columns": [
162
+ "tenant_id",
163
+ "user_id",
164
+ "closed_at"
165
+ ],
166
+ "isUnique": false
167
+ }
168
+ },
169
+ "foreignKeys": {},
170
+ "compositePrimaryKeys": {},
171
+ "uniqueConstraints": {},
172
+ "checkConstraints": {}
173
+ },
174
+ "assistant_message": {
175
+ "name": "assistant_message",
176
+ "columns": {
177
+ "id": {
178
+ "name": "id",
179
+ "type": "text",
180
+ "primaryKey": true,
181
+ "notNull": true,
182
+ "autoincrement": false
183
+ },
184
+ "chat_id": {
185
+ "name": "chat_id",
186
+ "type": "text",
187
+ "primaryKey": false,
188
+ "notNull": true,
189
+ "autoincrement": false
190
+ },
191
+ "role": {
192
+ "name": "role",
193
+ "type": "text",
194
+ "primaryKey": false,
195
+ "notNull": true,
196
+ "autoincrement": false
197
+ },
198
+ "content": {
199
+ "name": "content",
200
+ "type": "text",
201
+ "primaryKey": false,
202
+ "notNull": true,
203
+ "autoincrement": false
204
+ },
205
+ "cards": {
206
+ "name": "cards",
207
+ "type": "text",
208
+ "primaryKey": false,
209
+ "notNull": false,
210
+ "autoincrement": false
211
+ },
212
+ "tool_calls": {
213
+ "name": "tool_calls",
214
+ "type": "text",
215
+ "primaryKey": false,
216
+ "notNull": false,
217
+ "autoincrement": false
218
+ },
219
+ "page": {
220
+ "name": "page",
221
+ "type": "text",
222
+ "primaryKey": false,
223
+ "notNull": false,
224
+ "autoincrement": false
225
+ },
226
+ "changed": {
227
+ "name": "changed",
228
+ "type": "integer",
229
+ "primaryKey": false,
230
+ "notNull": true,
231
+ "autoincrement": false,
232
+ "default": false
233
+ },
234
+ "created_at": {
235
+ "name": "created_at",
236
+ "type": "integer",
237
+ "primaryKey": false,
238
+ "notNull": true,
239
+ "autoincrement": false,
240
+ "default": "(unixepoch() * 1000)"
241
+ }
242
+ },
243
+ "indexes": {
244
+ "assistant_message_chat": {
245
+ "name": "assistant_message_chat",
246
+ "columns": [
247
+ "chat_id",
248
+ "created_at"
249
+ ],
250
+ "isUnique": false
251
+ }
252
+ },
253
+ "foreignKeys": {
254
+ "assistant_message_chat_id_assistant_chat_id_fk": {
255
+ "name": "assistant_message_chat_id_assistant_chat_id_fk",
256
+ "tableFrom": "assistant_message",
257
+ "tableTo": "assistant_chat",
258
+ "columnsFrom": [
259
+ "chat_id"
260
+ ],
261
+ "columnsTo": [
262
+ "id"
263
+ ],
264
+ "onDelete": "cascade",
265
+ "onUpdate": "no action"
266
+ }
267
+ },
268
+ "compositePrimaryKeys": {},
269
+ "uniqueConstraints": {},
270
+ "checkConstraints": {}
271
+ },
272
+ "marketplace_star": {
273
+ "name": "marketplace_star",
274
+ "columns": {
275
+ "tenant_id": {
276
+ "name": "tenant_id",
277
+ "type": "text",
278
+ "primaryKey": false,
279
+ "notNull": true,
280
+ "autoincrement": false
281
+ },
282
+ "entry_id": {
283
+ "name": "entry_id",
284
+ "type": "text",
285
+ "primaryKey": false,
286
+ "notNull": true,
287
+ "autoincrement": false
288
+ },
289
+ "created_at": {
290
+ "name": "created_at",
291
+ "type": "integer",
292
+ "primaryKey": false,
293
+ "notNull": true,
294
+ "autoincrement": false,
295
+ "default": "(unixepoch() * 1000)"
296
+ }
297
+ },
298
+ "indexes": {},
299
+ "foreignKeys": {},
300
+ "compositePrimaryKeys": {
301
+ "marketplace_star_tenant_id_entry_id_pk": {
302
+ "columns": [
303
+ "tenant_id",
304
+ "entry_id"
305
+ ],
306
+ "name": "marketplace_star_tenant_id_entry_id_pk"
307
+ }
308
+ },
309
+ "uniqueConstraints": {},
310
+ "checkConstraints": {}
311
+ },
312
+ "plugin_connection": {
313
+ "name": "plugin_connection",
314
+ "columns": {
315
+ "id": {
316
+ "name": "id",
317
+ "type": "text",
318
+ "primaryKey": true,
319
+ "notNull": true,
320
+ "autoincrement": false
321
+ },
322
+ "plugin": {
323
+ "name": "plugin",
324
+ "type": "text",
325
+ "primaryKey": false,
326
+ "notNull": true,
327
+ "autoincrement": false
328
+ },
329
+ "project_id": {
330
+ "name": "project_id",
331
+ "type": "text",
332
+ "primaryKey": false,
333
+ "notNull": true,
334
+ "autoincrement": false
335
+ },
336
+ "connector": {
337
+ "name": "connector",
338
+ "type": "text",
339
+ "primaryKey": false,
340
+ "notNull": true,
341
+ "autoincrement": false
342
+ },
343
+ "label": {
344
+ "name": "label",
345
+ "type": "text",
346
+ "primaryKey": false,
347
+ "notNull": true,
348
+ "autoincrement": false
349
+ },
350
+ "actions": {
351
+ "name": "actions",
352
+ "type": "text",
353
+ "primaryKey": false,
354
+ "notNull": true,
355
+ "autoincrement": false
356
+ },
357
+ "data": {
358
+ "name": "data",
359
+ "type": "text",
360
+ "primaryKey": false,
361
+ "notNull": true,
362
+ "autoincrement": false
363
+ },
364
+ "created_by": {
365
+ "name": "created_by",
366
+ "type": "text",
367
+ "primaryKey": false,
368
+ "notNull": false,
369
+ "autoincrement": false
370
+ },
371
+ "created_at": {
372
+ "name": "created_at",
373
+ "type": "integer",
374
+ "primaryKey": false,
375
+ "notNull": true,
376
+ "autoincrement": false,
377
+ "default": "(unixepoch() * 1000)"
378
+ },
379
+ "updated_at": {
380
+ "name": "updated_at",
381
+ "type": "integer",
382
+ "primaryKey": false,
383
+ "notNull": true,
384
+ "autoincrement": false,
385
+ "default": "(unixepoch() * 1000)"
386
+ }
387
+ },
388
+ "indexes": {
389
+ "plugin_connection_space": {
390
+ "name": "plugin_connection_space",
391
+ "columns": [
392
+ "plugin",
393
+ "project_id"
394
+ ],
395
+ "isUnique": false
396
+ }
397
+ },
398
+ "foreignKeys": {
399
+ "plugin_connection_project_id_project_id_fk": {
400
+ "name": "plugin_connection_project_id_project_id_fk",
401
+ "tableFrom": "plugin_connection",
402
+ "tableTo": "project",
403
+ "columnsFrom": [
404
+ "project_id"
405
+ ],
406
+ "columnsTo": [
407
+ "id"
408
+ ],
409
+ "onDelete": "cascade",
410
+ "onUpdate": "no action"
411
+ }
412
+ },
413
+ "compositePrimaryKeys": {},
414
+ "uniqueConstraints": {},
415
+ "checkConstraints": {}
416
+ },
417
+ "project": {
418
+ "name": "project",
419
+ "columns": {
420
+ "id": {
421
+ "name": "id",
422
+ "type": "text",
423
+ "primaryKey": true,
424
+ "notNull": true,
425
+ "autoincrement": false
426
+ },
427
+ "tenant_id": {
428
+ "name": "tenant_id",
429
+ "type": "text",
430
+ "primaryKey": false,
431
+ "notNull": true,
432
+ "autoincrement": false
433
+ },
434
+ "name": {
435
+ "name": "name",
436
+ "type": "text",
437
+ "primaryKey": false,
438
+ "notNull": true,
439
+ "autoincrement": false
440
+ },
441
+ "brand": {
442
+ "name": "brand",
443
+ "type": "text",
444
+ "primaryKey": false,
445
+ "notNull": true,
446
+ "autoincrement": false,
447
+ "default": "'{}'"
448
+ },
449
+ "facts": {
450
+ "name": "facts",
451
+ "type": "text",
452
+ "primaryKey": false,
453
+ "notNull": true,
454
+ "autoincrement": false,
455
+ "default": "'[]'"
456
+ },
457
+ "mcp_servers": {
458
+ "name": "mcp_servers",
459
+ "type": "text",
460
+ "primaryKey": false,
461
+ "notNull": true,
462
+ "autoincrement": false,
463
+ "default": "'[]'"
464
+ },
465
+ "origin": {
466
+ "name": "origin",
467
+ "type": "text",
468
+ "primaryKey": false,
469
+ "notNull": false,
470
+ "autoincrement": false
471
+ },
472
+ "synced_at": {
473
+ "name": "synced_at",
474
+ "type": "integer",
475
+ "primaryKey": false,
476
+ "notNull": false,
477
+ "autoincrement": false
478
+ },
479
+ "created_at": {
480
+ "name": "created_at",
481
+ "type": "integer",
482
+ "primaryKey": false,
483
+ "notNull": true,
484
+ "autoincrement": false,
485
+ "default": "(unixepoch() * 1000)"
486
+ },
487
+ "updated_at": {
488
+ "name": "updated_at",
489
+ "type": "integer",
490
+ "primaryKey": false,
491
+ "notNull": true,
492
+ "autoincrement": false,
493
+ "default": "(unixepoch() * 1000)"
494
+ }
495
+ },
496
+ "indexes": {
497
+ "project_tenant": {
498
+ "name": "project_tenant",
499
+ "columns": [
500
+ "tenant_id"
501
+ ],
502
+ "isUnique": false
503
+ }
504
+ },
505
+ "foreignKeys": {},
506
+ "compositePrimaryKeys": {},
507
+ "uniqueConstraints": {},
508
+ "checkConstraints": {}
509
+ },
510
+ "project_chunk": {
511
+ "name": "project_chunk",
512
+ "columns": {
513
+ "id": {
514
+ "name": "id",
515
+ "type": "integer",
516
+ "primaryKey": true,
517
+ "notNull": true,
518
+ "autoincrement": true
519
+ },
520
+ "project_id": {
521
+ "name": "project_id",
522
+ "type": "text",
523
+ "primaryKey": false,
524
+ "notNull": true,
525
+ "autoincrement": false
526
+ },
527
+ "file_id": {
528
+ "name": "file_id",
529
+ "type": "text",
530
+ "primaryKey": false,
531
+ "notNull": false,
532
+ "autoincrement": false
533
+ },
534
+ "page_id": {
535
+ "name": "page_id",
536
+ "type": "text",
537
+ "primaryKey": false,
538
+ "notNull": false,
539
+ "autoincrement": false
540
+ },
541
+ "row_id": {
542
+ "name": "row_id",
543
+ "type": "text",
544
+ "primaryKey": false,
545
+ "notNull": false,
546
+ "autoincrement": false
547
+ },
548
+ "table_id": {
549
+ "name": "table_id",
550
+ "type": "text",
551
+ "primaryKey": false,
552
+ "notNull": false,
553
+ "autoincrement": false
554
+ },
555
+ "value_id": {
556
+ "name": "value_id",
557
+ "type": "text",
558
+ "primaryKey": false,
559
+ "notNull": false,
560
+ "autoincrement": false
561
+ },
562
+ "heading": {
563
+ "name": "heading",
564
+ "type": "text",
565
+ "primaryKey": false,
566
+ "notNull": false,
567
+ "autoincrement": false
568
+ },
569
+ "sheet": {
570
+ "name": "sheet",
571
+ "type": "integer",
572
+ "primaryKey": false,
573
+ "notNull": false,
574
+ "autoincrement": false
575
+ },
576
+ "plugin": {
577
+ "name": "plugin",
578
+ "type": "text",
579
+ "primaryKey": false,
580
+ "notNull": false,
581
+ "autoincrement": false
582
+ },
583
+ "ref": {
584
+ "name": "ref",
585
+ "type": "text",
586
+ "primaryKey": false,
587
+ "notNull": false,
588
+ "autoincrement": false
589
+ },
590
+ "title": {
591
+ "name": "title",
592
+ "type": "text",
593
+ "primaryKey": false,
594
+ "notNull": false,
595
+ "autoincrement": false
596
+ },
597
+ "link": {
598
+ "name": "link",
599
+ "type": "text",
600
+ "primaryKey": false,
601
+ "notNull": false,
602
+ "autoincrement": false
603
+ },
604
+ "idx": {
605
+ "name": "idx",
606
+ "type": "integer",
607
+ "primaryKey": false,
608
+ "notNull": true,
609
+ "autoincrement": false
610
+ },
611
+ "text": {
612
+ "name": "text",
613
+ "type": "text",
614
+ "primaryKey": false,
615
+ "notNull": true,
616
+ "autoincrement": false
617
+ },
618
+ "embedding": {
619
+ "name": "embedding",
620
+ "type": "blob",
621
+ "primaryKey": false,
622
+ "notNull": false,
623
+ "autoincrement": false
624
+ },
625
+ "model": {
626
+ "name": "model",
627
+ "type": "text",
628
+ "primaryKey": false,
629
+ "notNull": false,
630
+ "autoincrement": false
631
+ }
632
+ },
633
+ "indexes": {
634
+ "project_chunk_project": {
635
+ "name": "project_chunk_project",
636
+ "columns": [
637
+ "project_id",
638
+ "model"
639
+ ],
640
+ "isUnique": false
641
+ },
642
+ "project_chunk_file": {
643
+ "name": "project_chunk_file",
644
+ "columns": [
645
+ "file_id"
646
+ ],
647
+ "isUnique": false
648
+ },
649
+ "project_chunk_ref": {
650
+ "name": "project_chunk_ref",
651
+ "columns": [
652
+ "project_id",
653
+ "plugin",
654
+ "ref"
655
+ ],
656
+ "isUnique": false
657
+ },
658
+ "project_chunk_page": {
659
+ "name": "project_chunk_page",
660
+ "columns": [
661
+ "page_id"
662
+ ],
663
+ "isUnique": false
664
+ },
665
+ "project_chunk_row": {
666
+ "name": "project_chunk_row",
667
+ "columns": [
668
+ "row_id"
669
+ ],
670
+ "isUnique": false
671
+ },
672
+ "project_chunk_table": {
673
+ "name": "project_chunk_table",
674
+ "columns": [
675
+ "table_id"
676
+ ],
677
+ "isUnique": false
678
+ },
679
+ "project_chunk_value": {
680
+ "name": "project_chunk_value",
681
+ "columns": [
682
+ "value_id"
683
+ ],
684
+ "isUnique": false
685
+ }
686
+ },
687
+ "foreignKeys": {
688
+ "project_chunk_project_id_project_id_fk": {
689
+ "name": "project_chunk_project_id_project_id_fk",
690
+ "tableFrom": "project_chunk",
691
+ "tableTo": "project",
692
+ "columnsFrom": [
693
+ "project_id"
694
+ ],
695
+ "columnsTo": [
696
+ "id"
697
+ ],
698
+ "onDelete": "cascade",
699
+ "onUpdate": "no action"
700
+ },
701
+ "project_chunk_file_id_project_file_id_fk": {
702
+ "name": "project_chunk_file_id_project_file_id_fk",
703
+ "tableFrom": "project_chunk",
704
+ "tableTo": "project_file",
705
+ "columnsFrom": [
706
+ "file_id"
707
+ ],
708
+ "columnsTo": [
709
+ "id"
710
+ ],
711
+ "onDelete": "cascade",
712
+ "onUpdate": "no action"
713
+ },
714
+ "project_chunk_page_id_space_page_id_fk": {
715
+ "name": "project_chunk_page_id_space_page_id_fk",
716
+ "tableFrom": "project_chunk",
717
+ "tableTo": "space_page",
718
+ "columnsFrom": [
719
+ "page_id"
720
+ ],
721
+ "columnsTo": [
722
+ "id"
723
+ ],
724
+ "onDelete": "cascade",
725
+ "onUpdate": "no action"
726
+ },
727
+ "project_chunk_row_id_space_table_row_id_fk": {
728
+ "name": "project_chunk_row_id_space_table_row_id_fk",
729
+ "tableFrom": "project_chunk",
730
+ "tableTo": "space_table_row",
731
+ "columnsFrom": [
732
+ "row_id"
733
+ ],
734
+ "columnsTo": [
735
+ "id"
736
+ ],
737
+ "onDelete": "cascade",
738
+ "onUpdate": "no action"
739
+ },
740
+ "project_chunk_table_id_space_table_id_fk": {
741
+ "name": "project_chunk_table_id_space_table_id_fk",
742
+ "tableFrom": "project_chunk",
743
+ "tableTo": "space_table",
744
+ "columnsFrom": [
745
+ "table_id"
746
+ ],
747
+ "columnsTo": [
748
+ "id"
749
+ ],
750
+ "onDelete": "cascade",
751
+ "onUpdate": "no action"
752
+ },
753
+ "project_chunk_value_id_space_category_value_id_fk": {
754
+ "name": "project_chunk_value_id_space_category_value_id_fk",
755
+ "tableFrom": "project_chunk",
756
+ "tableTo": "space_category_value",
757
+ "columnsFrom": [
758
+ "value_id"
759
+ ],
760
+ "columnsTo": [
761
+ "id"
762
+ ],
763
+ "onDelete": "cascade",
764
+ "onUpdate": "no action"
765
+ }
766
+ },
767
+ "compositePrimaryKeys": {},
768
+ "uniqueConstraints": {},
769
+ "checkConstraints": {}
770
+ },
771
+ "project_connector": {
772
+ "name": "project_connector",
773
+ "columns": {
774
+ "project_id": {
775
+ "name": "project_id",
776
+ "type": "text",
777
+ "primaryKey": false,
778
+ "notNull": true,
779
+ "autoincrement": false
780
+ },
781
+ "id": {
782
+ "name": "id",
783
+ "type": "text",
784
+ "primaryKey": false,
785
+ "notNull": true,
786
+ "autoincrement": false
787
+ },
788
+ "record": {
789
+ "name": "record",
790
+ "type": "text",
791
+ "primaryKey": false,
792
+ "notNull": true,
793
+ "autoincrement": false
794
+ },
795
+ "created_at": {
796
+ "name": "created_at",
797
+ "type": "integer",
798
+ "primaryKey": false,
799
+ "notNull": true,
800
+ "autoincrement": false,
801
+ "default": "(unixepoch() * 1000)"
802
+ },
803
+ "updated_at": {
804
+ "name": "updated_at",
805
+ "type": "integer",
806
+ "primaryKey": false,
807
+ "notNull": true,
808
+ "autoincrement": false,
809
+ "default": "(unixepoch() * 1000)"
810
+ }
811
+ },
812
+ "indexes": {},
813
+ "foreignKeys": {
814
+ "project_connector_project_id_project_id_fk": {
815
+ "name": "project_connector_project_id_project_id_fk",
816
+ "tableFrom": "project_connector",
817
+ "tableTo": "project",
818
+ "columnsFrom": [
819
+ "project_id"
820
+ ],
821
+ "columnsTo": [
822
+ "id"
823
+ ],
824
+ "onDelete": "cascade",
825
+ "onUpdate": "no action"
826
+ }
827
+ },
828
+ "compositePrimaryKeys": {
829
+ "project_connector_project_id_id_pk": {
830
+ "columns": [
831
+ "project_id",
832
+ "id"
833
+ ],
834
+ "name": "project_connector_project_id_id_pk"
835
+ }
836
+ },
837
+ "uniqueConstraints": {},
838
+ "checkConstraints": {}
839
+ },
840
+ "project_file": {
841
+ "name": "project_file",
842
+ "columns": {
843
+ "id": {
844
+ "name": "id",
845
+ "type": "text",
846
+ "primaryKey": true,
847
+ "notNull": true,
848
+ "autoincrement": false
849
+ },
850
+ "project_id": {
851
+ "name": "project_id",
852
+ "type": "text",
853
+ "primaryKey": false,
854
+ "notNull": true,
855
+ "autoincrement": false
856
+ },
857
+ "kind": {
858
+ "name": "kind",
859
+ "type": "text",
860
+ "primaryKey": false,
861
+ "notNull": true,
862
+ "autoincrement": false
863
+ },
864
+ "name": {
865
+ "name": "name",
866
+ "type": "text",
867
+ "primaryKey": false,
868
+ "notNull": true,
869
+ "autoincrement": false
870
+ },
871
+ "mime": {
872
+ "name": "mime",
873
+ "type": "text",
874
+ "primaryKey": false,
875
+ "notNull": true,
876
+ "autoincrement": false
877
+ },
878
+ "size": {
879
+ "name": "size",
880
+ "type": "integer",
881
+ "primaryKey": false,
882
+ "notNull": true,
883
+ "autoincrement": false
884
+ },
885
+ "description": {
886
+ "name": "description",
887
+ "type": "text",
888
+ "primaryKey": false,
889
+ "notNull": true,
890
+ "autoincrement": false,
891
+ "default": "''"
892
+ },
893
+ "source": {
894
+ "name": "source",
895
+ "type": "text",
896
+ "primaryKey": false,
897
+ "notNull": false,
898
+ "autoincrement": false
899
+ },
900
+ "position": {
901
+ "name": "position",
902
+ "type": "integer",
903
+ "primaryKey": false,
904
+ "notNull": true,
905
+ "autoincrement": false,
906
+ "default": 0
907
+ },
908
+ "status": {
909
+ "name": "status",
910
+ "type": "text",
911
+ "primaryKey": false,
912
+ "notNull": true,
913
+ "autoincrement": false,
914
+ "default": "'ready'"
915
+ },
916
+ "error": {
917
+ "name": "error",
918
+ "type": "text",
919
+ "primaryKey": false,
920
+ "notNull": false,
921
+ "autoincrement": false
922
+ },
923
+ "text_hash": {
924
+ "name": "text_hash",
925
+ "type": "text",
926
+ "primaryKey": false,
927
+ "notNull": false,
928
+ "autoincrement": false
929
+ },
930
+ "pages": {
931
+ "name": "pages",
932
+ "type": "integer",
933
+ "primaryKey": false,
934
+ "notNull": false,
935
+ "autoincrement": false
936
+ },
937
+ "chars": {
938
+ "name": "chars",
939
+ "type": "integer",
940
+ "primaryKey": false,
941
+ "notNull": false,
942
+ "autoincrement": false
943
+ },
944
+ "indexed": {
945
+ "name": "indexed",
946
+ "type": "text",
947
+ "primaryKey": false,
948
+ "notNull": false,
949
+ "autoincrement": false
950
+ },
951
+ "origin": {
952
+ "name": "origin",
953
+ "type": "text",
954
+ "primaryKey": false,
955
+ "notNull": false,
956
+ "autoincrement": false
957
+ },
958
+ "origin_key": {
959
+ "name": "origin_key",
960
+ "type": "text",
961
+ "primaryKey": false,
962
+ "notNull": false,
963
+ "autoincrement": false
964
+ },
965
+ "origin_label": {
966
+ "name": "origin_label",
967
+ "type": "text",
968
+ "primaryKey": false,
969
+ "notNull": false,
970
+ "autoincrement": false
971
+ },
972
+ "created_at": {
973
+ "name": "created_at",
974
+ "type": "integer",
975
+ "primaryKey": false,
976
+ "notNull": true,
977
+ "autoincrement": false,
978
+ "default": "(unixepoch() * 1000)"
979
+ },
980
+ "updated_at": {
981
+ "name": "updated_at",
982
+ "type": "integer",
983
+ "primaryKey": false,
984
+ "notNull": true,
985
+ "autoincrement": false,
986
+ "default": "(unixepoch() * 1000)"
987
+ }
988
+ },
989
+ "indexes": {
990
+ "project_file_project": {
991
+ "name": "project_file_project",
992
+ "columns": [
993
+ "project_id",
994
+ "kind",
995
+ "position"
996
+ ],
997
+ "isUnique": false
998
+ },
999
+ "project_file_origin": {
1000
+ "name": "project_file_origin",
1001
+ "columns": [
1002
+ "project_id",
1003
+ "origin",
1004
+ "origin_key"
1005
+ ],
1006
+ "isUnique": true
1007
+ }
1008
+ },
1009
+ "foreignKeys": {
1010
+ "project_file_project_id_project_id_fk": {
1011
+ "name": "project_file_project_id_project_id_fk",
1012
+ "tableFrom": "project_file",
1013
+ "tableTo": "project",
1014
+ "columnsFrom": [
1015
+ "project_id"
1016
+ ],
1017
+ "columnsTo": [
1018
+ "id"
1019
+ ],
1020
+ "onDelete": "cascade",
1021
+ "onUpdate": "no action"
1022
+ }
1023
+ },
1024
+ "compositePrimaryKeys": {},
1025
+ "uniqueConstraints": {},
1026
+ "checkConstraints": {}
1027
+ },
1028
+ "run": {
1029
+ "name": "run",
1030
+ "columns": {
1031
+ "id": {
1032
+ "name": "id",
1033
+ "type": "text",
1034
+ "primaryKey": true,
1035
+ "notNull": true,
1036
+ "autoincrement": false
1037
+ },
1038
+ "wizard_id": {
1039
+ "name": "wizard_id",
1040
+ "type": "text",
1041
+ "primaryKey": false,
1042
+ "notNull": true,
1043
+ "autoincrement": false
1044
+ },
1045
+ "tenant_id": {
1046
+ "name": "tenant_id",
1047
+ "type": "text",
1048
+ "primaryKey": false,
1049
+ "notNull": true,
1050
+ "autoincrement": false
1051
+ },
1052
+ "definition": {
1053
+ "name": "definition",
1054
+ "type": "text",
1055
+ "primaryKey": false,
1056
+ "notNull": true,
1057
+ "autoincrement": false
1058
+ },
1059
+ "files": {
1060
+ "name": "files",
1061
+ "type": "text",
1062
+ "primaryKey": false,
1063
+ "notNull": true,
1064
+ "autoincrement": false,
1065
+ "default": "'[]'"
1066
+ },
1067
+ "version": {
1068
+ "name": "version",
1069
+ "type": "integer",
1070
+ "primaryKey": false,
1071
+ "notNull": false,
1072
+ "autoincrement": false
1073
+ },
1074
+ "mode": {
1075
+ "name": "mode",
1076
+ "type": "text",
1077
+ "primaryKey": false,
1078
+ "notNull": true,
1079
+ "autoincrement": false
1080
+ },
1081
+ "runner": {
1082
+ "name": "runner",
1083
+ "type": "text",
1084
+ "primaryKey": false,
1085
+ "notNull": false,
1086
+ "autoincrement": false
1087
+ },
1088
+ "visitor_id": {
1089
+ "name": "visitor_id",
1090
+ "type": "text",
1091
+ "primaryKey": false,
1092
+ "notNull": false,
1093
+ "autoincrement": false
1094
+ },
1095
+ "user_id": {
1096
+ "name": "user_id",
1097
+ "type": "text",
1098
+ "primaryKey": false,
1099
+ "notNull": false,
1100
+ "autoincrement": false
1101
+ },
1102
+ "ip_hash": {
1103
+ "name": "ip_hash",
1104
+ "type": "text",
1105
+ "primaryKey": false,
1106
+ "notNull": false,
1107
+ "autoincrement": false
1108
+ },
1109
+ "origin": {
1110
+ "name": "origin",
1111
+ "type": "text",
1112
+ "primaryKey": false,
1113
+ "notNull": false,
1114
+ "autoincrement": false
1115
+ },
1116
+ "status": {
1117
+ "name": "status",
1118
+ "type": "text",
1119
+ "primaryKey": false,
1120
+ "notNull": true,
1121
+ "autoincrement": false
1122
+ },
1123
+ "cursor": {
1124
+ "name": "cursor",
1125
+ "type": "text",
1126
+ "primaryKey": false,
1127
+ "notNull": false,
1128
+ "autoincrement": false
1129
+ },
1130
+ "state": {
1131
+ "name": "state",
1132
+ "type": "text",
1133
+ "primaryKey": false,
1134
+ "notNull": true,
1135
+ "autoincrement": false
1136
+ },
1137
+ "error": {
1138
+ "name": "error",
1139
+ "type": "text",
1140
+ "primaryKey": false,
1141
+ "notNull": false,
1142
+ "autoincrement": false
1143
+ },
1144
+ "ask": {
1145
+ "name": "ask",
1146
+ "type": "text",
1147
+ "primaryKey": false,
1148
+ "notNull": false,
1149
+ "autoincrement": false
1150
+ },
1151
+ "cost_micros": {
1152
+ "name": "cost_micros",
1153
+ "type": "integer",
1154
+ "primaryKey": false,
1155
+ "notNull": true,
1156
+ "autoincrement": false,
1157
+ "default": 0
1158
+ },
1159
+ "share_token": {
1160
+ "name": "share_token",
1161
+ "type": "text",
1162
+ "primaryKey": false,
1163
+ "notNull": false,
1164
+ "autoincrement": false
1165
+ },
1166
+ "shared_at": {
1167
+ "name": "shared_at",
1168
+ "type": "integer",
1169
+ "primaryKey": false,
1170
+ "notNull": false,
1171
+ "autoincrement": false
1172
+ },
1173
+ "expires_at": {
1174
+ "name": "expires_at",
1175
+ "type": "integer",
1176
+ "primaryKey": false,
1177
+ "notNull": false,
1178
+ "autoincrement": false
1179
+ },
1180
+ "created_at": {
1181
+ "name": "created_at",
1182
+ "type": "integer",
1183
+ "primaryKey": false,
1184
+ "notNull": true,
1185
+ "autoincrement": false,
1186
+ "default": "(unixepoch() * 1000)"
1187
+ },
1188
+ "updated_at": {
1189
+ "name": "updated_at",
1190
+ "type": "integer",
1191
+ "primaryKey": false,
1192
+ "notNull": true,
1193
+ "autoincrement": false,
1194
+ "default": "(unixepoch() * 1000)"
1195
+ }
1196
+ },
1197
+ "indexes": {
1198
+ "run_share_token": {
1199
+ "name": "run_share_token",
1200
+ "columns": [
1201
+ "share_token"
1202
+ ],
1203
+ "isUnique": true
1204
+ },
1205
+ "run_expires": {
1206
+ "name": "run_expires",
1207
+ "columns": [
1208
+ "expires_at"
1209
+ ],
1210
+ "isUnique": false
1211
+ },
1212
+ "run_wizard": {
1213
+ "name": "run_wizard",
1214
+ "columns": [
1215
+ "wizard_id",
1216
+ "created_at"
1217
+ ],
1218
+ "isUnique": false
1219
+ },
1220
+ "run_visitor": {
1221
+ "name": "run_visitor",
1222
+ "columns": [
1223
+ "visitor_id",
1224
+ "created_at"
1225
+ ],
1226
+ "isUnique": false
1227
+ },
1228
+ "run_status": {
1229
+ "name": "run_status",
1230
+ "columns": [
1231
+ "status"
1232
+ ],
1233
+ "isUnique": false
1234
+ }
1235
+ },
1236
+ "foreignKeys": {
1237
+ "run_wizard_id_wizard_id_fk": {
1238
+ "name": "run_wizard_id_wizard_id_fk",
1239
+ "tableFrom": "run",
1240
+ "tableTo": "wizard",
1241
+ "columnsFrom": [
1242
+ "wizard_id"
1243
+ ],
1244
+ "columnsTo": [
1245
+ "id"
1246
+ ],
1247
+ "onDelete": "cascade",
1248
+ "onUpdate": "no action"
1249
+ }
1250
+ },
1251
+ "compositePrimaryKeys": {},
1252
+ "uniqueConstraints": {},
1253
+ "checkConstraints": {}
1254
+ },
1255
+ "run_cost": {
1256
+ "name": "run_cost",
1257
+ "columns": {
1258
+ "run_id": {
1259
+ "name": "run_id",
1260
+ "type": "text",
1261
+ "primaryKey": false,
1262
+ "notNull": true,
1263
+ "autoincrement": false
1264
+ },
1265
+ "step_id": {
1266
+ "name": "step_id",
1267
+ "type": "text",
1268
+ "primaryKey": false,
1269
+ "notNull": true,
1270
+ "autoincrement": false
1271
+ },
1272
+ "micros": {
1273
+ "name": "micros",
1274
+ "type": "integer",
1275
+ "primaryKey": false,
1276
+ "notNull": true,
1277
+ "autoincrement": false,
1278
+ "default": 0
1279
+ }
1280
+ },
1281
+ "indexes": {},
1282
+ "foreignKeys": {
1283
+ "run_cost_run_id_run_id_fk": {
1284
+ "name": "run_cost_run_id_run_id_fk",
1285
+ "tableFrom": "run_cost",
1286
+ "tableTo": "run",
1287
+ "columnsFrom": [
1288
+ "run_id"
1289
+ ],
1290
+ "columnsTo": [
1291
+ "id"
1292
+ ],
1293
+ "onDelete": "cascade",
1294
+ "onUpdate": "no action"
1295
+ }
1296
+ },
1297
+ "compositePrimaryKeys": {
1298
+ "run_cost_run_id_step_id_pk": {
1299
+ "columns": [
1300
+ "run_id",
1301
+ "step_id"
1302
+ ],
1303
+ "name": "run_cost_run_id_step_id_pk"
1304
+ }
1305
+ },
1306
+ "uniqueConstraints": {},
1307
+ "checkConstraints": {}
1308
+ },
1309
+ "run_event": {
1310
+ "name": "run_event",
1311
+ "columns": {
1312
+ "id": {
1313
+ "name": "id",
1314
+ "type": "integer",
1315
+ "primaryKey": true,
1316
+ "notNull": true,
1317
+ "autoincrement": true
1318
+ },
1319
+ "run_id": {
1320
+ "name": "run_id",
1321
+ "type": "text",
1322
+ "primaryKey": false,
1323
+ "notNull": true,
1324
+ "autoincrement": false
1325
+ },
1326
+ "step_id": {
1327
+ "name": "step_id",
1328
+ "type": "text",
1329
+ "primaryKey": false,
1330
+ "notNull": false,
1331
+ "autoincrement": false
1332
+ },
1333
+ "type": {
1334
+ "name": "type",
1335
+ "type": "text",
1336
+ "primaryKey": false,
1337
+ "notNull": true,
1338
+ "autoincrement": false
1339
+ },
1340
+ "message": {
1341
+ "name": "message",
1342
+ "type": "text",
1343
+ "primaryKey": false,
1344
+ "notNull": true,
1345
+ "autoincrement": false
1346
+ },
1347
+ "note": {
1348
+ "name": "note",
1349
+ "type": "text",
1350
+ "primaryKey": false,
1351
+ "notNull": false,
1352
+ "autoincrement": false
1353
+ },
1354
+ "asset_id": {
1355
+ "name": "asset_id",
1356
+ "type": "text",
1357
+ "primaryKey": false,
1358
+ "notNull": false,
1359
+ "autoincrement": false
1360
+ },
1361
+ "created_at": {
1362
+ "name": "created_at",
1363
+ "type": "integer",
1364
+ "primaryKey": false,
1365
+ "notNull": true,
1366
+ "autoincrement": false,
1367
+ "default": "(unixepoch() * 1000)"
1368
+ }
1369
+ },
1370
+ "indexes": {
1371
+ "run_event_run": {
1372
+ "name": "run_event_run",
1373
+ "columns": [
1374
+ "run_id",
1375
+ "id"
1376
+ ],
1377
+ "isUnique": false
1378
+ }
1379
+ },
1380
+ "foreignKeys": {
1381
+ "run_event_run_id_run_id_fk": {
1382
+ "name": "run_event_run_id_run_id_fk",
1383
+ "tableFrom": "run_event",
1384
+ "tableTo": "run",
1385
+ "columnsFrom": [
1386
+ "run_id"
1387
+ ],
1388
+ "columnsTo": [
1389
+ "id"
1390
+ ],
1391
+ "onDelete": "cascade",
1392
+ "onUpdate": "no action"
1393
+ }
1394
+ },
1395
+ "compositePrimaryKeys": {},
1396
+ "uniqueConstraints": {},
1397
+ "checkConstraints": {}
1398
+ },
1399
+ "space_category": {
1400
+ "name": "space_category",
1401
+ "columns": {
1402
+ "id": {
1403
+ "name": "id",
1404
+ "type": "text",
1405
+ "primaryKey": true,
1406
+ "notNull": true,
1407
+ "autoincrement": false
1408
+ },
1409
+ "tenant_id": {
1410
+ "name": "tenant_id",
1411
+ "type": "text",
1412
+ "primaryKey": false,
1413
+ "notNull": true,
1414
+ "autoincrement": false
1415
+ },
1416
+ "project_id": {
1417
+ "name": "project_id",
1418
+ "type": "text",
1419
+ "primaryKey": false,
1420
+ "notNull": true,
1421
+ "autoincrement": false
1422
+ },
1423
+ "name": {
1424
+ "name": "name",
1425
+ "type": "text",
1426
+ "primaryKey": false,
1427
+ "notNull": true,
1428
+ "autoincrement": false
1429
+ },
1430
+ "type": {
1431
+ "name": "type",
1432
+ "type": "text",
1433
+ "primaryKey": false,
1434
+ "notNull": true,
1435
+ "autoincrement": false
1436
+ },
1437
+ "unit": {
1438
+ "name": "unit",
1439
+ "type": "text",
1440
+ "primaryKey": false,
1441
+ "notNull": false,
1442
+ "autoincrement": false
1443
+ },
1444
+ "multiple": {
1445
+ "name": "multiple",
1446
+ "type": "integer",
1447
+ "primaryKey": false,
1448
+ "notNull": true,
1449
+ "autoincrement": false,
1450
+ "default": false
1451
+ },
1452
+ "ordered": {
1453
+ "name": "ordered",
1454
+ "type": "integer",
1455
+ "primaryKey": false,
1456
+ "notNull": true,
1457
+ "autoincrement": false,
1458
+ "default": false
1459
+ },
1460
+ "hint": {
1461
+ "name": "hint",
1462
+ "type": "text",
1463
+ "primaryKey": false,
1464
+ "notNull": false,
1465
+ "autoincrement": false
1466
+ },
1467
+ "origin": {
1468
+ "name": "origin",
1469
+ "type": "text",
1470
+ "primaryKey": false,
1471
+ "notNull": false,
1472
+ "autoincrement": false
1473
+ },
1474
+ "proposed": {
1475
+ "name": "proposed",
1476
+ "type": "integer",
1477
+ "primaryKey": false,
1478
+ "notNull": true,
1479
+ "autoincrement": false,
1480
+ "default": false
1481
+ },
1482
+ "table_id": {
1483
+ "name": "table_id",
1484
+ "type": "text",
1485
+ "primaryKey": false,
1486
+ "notNull": false,
1487
+ "autoincrement": false
1488
+ },
1489
+ "column_id": {
1490
+ "name": "column_id",
1491
+ "type": "text",
1492
+ "primaryKey": false,
1493
+ "notNull": false,
1494
+ "autoincrement": false
1495
+ },
1496
+ "position": {
1497
+ "name": "position",
1498
+ "type": "integer",
1499
+ "primaryKey": false,
1500
+ "notNull": true,
1501
+ "autoincrement": false,
1502
+ "default": 0
1503
+ },
1504
+ "created_at": {
1505
+ "name": "created_at",
1506
+ "type": "integer",
1507
+ "primaryKey": false,
1508
+ "notNull": true,
1509
+ "autoincrement": false,
1510
+ "default": "(unixepoch() * 1000)"
1511
+ },
1512
+ "updated_at": {
1513
+ "name": "updated_at",
1514
+ "type": "integer",
1515
+ "primaryKey": false,
1516
+ "notNull": true,
1517
+ "autoincrement": false,
1518
+ "default": "(unixepoch() * 1000)"
1519
+ }
1520
+ },
1521
+ "indexes": {
1522
+ "space_category_name": {
1523
+ "name": "space_category_name",
1524
+ "columns": [
1525
+ "project_id",
1526
+ "name"
1527
+ ],
1528
+ "isUnique": true
1529
+ }
1530
+ },
1531
+ "foreignKeys": {
1532
+ "space_category_project_id_project_id_fk": {
1533
+ "name": "space_category_project_id_project_id_fk",
1534
+ "tableFrom": "space_category",
1535
+ "tableTo": "project",
1536
+ "columnsFrom": [
1537
+ "project_id"
1538
+ ],
1539
+ "columnsTo": [
1540
+ "id"
1541
+ ],
1542
+ "onDelete": "cascade",
1543
+ "onUpdate": "no action"
1544
+ },
1545
+ "space_category_table_id_space_table_id_fk": {
1546
+ "name": "space_category_table_id_space_table_id_fk",
1547
+ "tableFrom": "space_category",
1548
+ "tableTo": "space_table",
1549
+ "columnsFrom": [
1550
+ "table_id"
1551
+ ],
1552
+ "columnsTo": [
1553
+ "id"
1554
+ ],
1555
+ "onDelete": "set null",
1556
+ "onUpdate": "no action"
1557
+ }
1558
+ },
1559
+ "compositePrimaryKeys": {},
1560
+ "uniqueConstraints": {},
1561
+ "checkConstraints": {}
1562
+ },
1563
+ "space_category_value": {
1564
+ "name": "space_category_value",
1565
+ "columns": {
1566
+ "id": {
1567
+ "name": "id",
1568
+ "type": "text",
1569
+ "primaryKey": true,
1570
+ "notNull": true,
1571
+ "autoincrement": false
1572
+ },
1573
+ "category_id": {
1574
+ "name": "category_id",
1575
+ "type": "text",
1576
+ "primaryKey": false,
1577
+ "notNull": true,
1578
+ "autoincrement": false
1579
+ },
1580
+ "value": {
1581
+ "name": "value",
1582
+ "type": "text",
1583
+ "primaryKey": false,
1584
+ "notNull": true,
1585
+ "autoincrement": false
1586
+ },
1587
+ "position": {
1588
+ "name": "position",
1589
+ "type": "integer",
1590
+ "primaryKey": false,
1591
+ "notNull": true,
1592
+ "autoincrement": false,
1593
+ "default": 0
1594
+ },
1595
+ "summary": {
1596
+ "name": "summary",
1597
+ "type": "text",
1598
+ "primaryKey": false,
1599
+ "notNull": false,
1600
+ "autoincrement": false
1601
+ },
1602
+ "summary_at": {
1603
+ "name": "summary_at",
1604
+ "type": "integer",
1605
+ "primaryKey": false,
1606
+ "notNull": false,
1607
+ "autoincrement": false
1608
+ },
1609
+ "created_at": {
1610
+ "name": "created_at",
1611
+ "type": "integer",
1612
+ "primaryKey": false,
1613
+ "notNull": true,
1614
+ "autoincrement": false,
1615
+ "default": "(unixepoch() * 1000)"
1616
+ }
1617
+ },
1618
+ "indexes": {
1619
+ "space_category_value_value": {
1620
+ "name": "space_category_value_value",
1621
+ "columns": [
1622
+ "category_id",
1623
+ "value"
1624
+ ],
1625
+ "isUnique": true
1626
+ }
1627
+ },
1628
+ "foreignKeys": {
1629
+ "space_category_value_category_id_space_category_id_fk": {
1630
+ "name": "space_category_value_category_id_space_category_id_fk",
1631
+ "tableFrom": "space_category_value",
1632
+ "tableTo": "space_category",
1633
+ "columnsFrom": [
1634
+ "category_id"
1635
+ ],
1636
+ "columnsTo": [
1637
+ "id"
1638
+ ],
1639
+ "onDelete": "cascade",
1640
+ "onUpdate": "no action"
1641
+ }
1642
+ },
1643
+ "compositePrimaryKeys": {},
1644
+ "uniqueConstraints": {},
1645
+ "checkConstraints": {}
1646
+ },
1647
+ "space_item_category": {
1648
+ "name": "space_item_category",
1649
+ "columns": {
1650
+ "id": {
1651
+ "name": "id",
1652
+ "type": "integer",
1653
+ "primaryKey": true,
1654
+ "notNull": true,
1655
+ "autoincrement": true
1656
+ },
1657
+ "project_id": {
1658
+ "name": "project_id",
1659
+ "type": "text",
1660
+ "primaryKey": false,
1661
+ "notNull": true,
1662
+ "autoincrement": false
1663
+ },
1664
+ "category_id": {
1665
+ "name": "category_id",
1666
+ "type": "text",
1667
+ "primaryKey": false,
1668
+ "notNull": true,
1669
+ "autoincrement": false
1670
+ },
1671
+ "page_id": {
1672
+ "name": "page_id",
1673
+ "type": "text",
1674
+ "primaryKey": false,
1675
+ "notNull": false,
1676
+ "autoincrement": false
1677
+ },
1678
+ "row_id": {
1679
+ "name": "row_id",
1680
+ "type": "text",
1681
+ "primaryKey": false,
1682
+ "notNull": false,
1683
+ "autoincrement": false
1684
+ },
1685
+ "table_id": {
1686
+ "name": "table_id",
1687
+ "type": "text",
1688
+ "primaryKey": false,
1689
+ "notNull": false,
1690
+ "autoincrement": false
1691
+ },
1692
+ "file_id": {
1693
+ "name": "file_id",
1694
+ "type": "text",
1695
+ "primaryKey": false,
1696
+ "notNull": false,
1697
+ "autoincrement": false
1698
+ },
1699
+ "value_id": {
1700
+ "name": "value_id",
1701
+ "type": "text",
1702
+ "primaryKey": false,
1703
+ "notNull": false,
1704
+ "autoincrement": false
1705
+ },
1706
+ "text": {
1707
+ "name": "text",
1708
+ "type": "text",
1709
+ "primaryKey": false,
1710
+ "notNull": false,
1711
+ "autoincrement": false
1712
+ },
1713
+ "num": {
1714
+ "name": "num",
1715
+ "type": "real",
1716
+ "primaryKey": false,
1717
+ "notNull": false,
1718
+ "autoincrement": false
1719
+ },
1720
+ "at": {
1721
+ "name": "at",
1722
+ "type": "integer",
1723
+ "primaryKey": false,
1724
+ "notNull": false,
1725
+ "autoincrement": false
1726
+ },
1727
+ "bool": {
1728
+ "name": "bool",
1729
+ "type": "integer",
1730
+ "primaryKey": false,
1731
+ "notNull": false,
1732
+ "autoincrement": false
1733
+ },
1734
+ "by": {
1735
+ "name": "by",
1736
+ "type": "text",
1737
+ "primaryKey": false,
1738
+ "notNull": true,
1739
+ "autoincrement": false,
1740
+ "default": "'person'"
1741
+ }
1742
+ },
1743
+ "indexes": {
1744
+ "space_item_category_category": {
1745
+ "name": "space_item_category_category",
1746
+ "columns": [
1747
+ "category_id",
1748
+ "value_id"
1749
+ ],
1750
+ "isUnique": false
1751
+ },
1752
+ "space_item_category_page": {
1753
+ "name": "space_item_category_page",
1754
+ "columns": [
1755
+ "page_id"
1756
+ ],
1757
+ "isUnique": false
1758
+ },
1759
+ "space_item_category_row": {
1760
+ "name": "space_item_category_row",
1761
+ "columns": [
1762
+ "row_id"
1763
+ ],
1764
+ "isUnique": false
1765
+ },
1766
+ "space_item_category_table": {
1767
+ "name": "space_item_category_table",
1768
+ "columns": [
1769
+ "table_id"
1770
+ ],
1771
+ "isUnique": false
1772
+ },
1773
+ "space_item_category_file": {
1774
+ "name": "space_item_category_file",
1775
+ "columns": [
1776
+ "file_id"
1777
+ ],
1778
+ "isUnique": false
1779
+ }
1780
+ },
1781
+ "foreignKeys": {
1782
+ "space_item_category_project_id_project_id_fk": {
1783
+ "name": "space_item_category_project_id_project_id_fk",
1784
+ "tableFrom": "space_item_category",
1785
+ "tableTo": "project",
1786
+ "columnsFrom": [
1787
+ "project_id"
1788
+ ],
1789
+ "columnsTo": [
1790
+ "id"
1791
+ ],
1792
+ "onDelete": "cascade",
1793
+ "onUpdate": "no action"
1794
+ },
1795
+ "space_item_category_category_id_space_category_id_fk": {
1796
+ "name": "space_item_category_category_id_space_category_id_fk",
1797
+ "tableFrom": "space_item_category",
1798
+ "tableTo": "space_category",
1799
+ "columnsFrom": [
1800
+ "category_id"
1801
+ ],
1802
+ "columnsTo": [
1803
+ "id"
1804
+ ],
1805
+ "onDelete": "cascade",
1806
+ "onUpdate": "no action"
1807
+ },
1808
+ "space_item_category_page_id_space_page_id_fk": {
1809
+ "name": "space_item_category_page_id_space_page_id_fk",
1810
+ "tableFrom": "space_item_category",
1811
+ "tableTo": "space_page",
1812
+ "columnsFrom": [
1813
+ "page_id"
1814
+ ],
1815
+ "columnsTo": [
1816
+ "id"
1817
+ ],
1818
+ "onDelete": "cascade",
1819
+ "onUpdate": "no action"
1820
+ },
1821
+ "space_item_category_row_id_space_table_row_id_fk": {
1822
+ "name": "space_item_category_row_id_space_table_row_id_fk",
1823
+ "tableFrom": "space_item_category",
1824
+ "tableTo": "space_table_row",
1825
+ "columnsFrom": [
1826
+ "row_id"
1827
+ ],
1828
+ "columnsTo": [
1829
+ "id"
1830
+ ],
1831
+ "onDelete": "cascade",
1832
+ "onUpdate": "no action"
1833
+ },
1834
+ "space_item_category_table_id_space_table_id_fk": {
1835
+ "name": "space_item_category_table_id_space_table_id_fk",
1836
+ "tableFrom": "space_item_category",
1837
+ "tableTo": "space_table",
1838
+ "columnsFrom": [
1839
+ "table_id"
1840
+ ],
1841
+ "columnsTo": [
1842
+ "id"
1843
+ ],
1844
+ "onDelete": "cascade",
1845
+ "onUpdate": "no action"
1846
+ },
1847
+ "space_item_category_file_id_project_file_id_fk": {
1848
+ "name": "space_item_category_file_id_project_file_id_fk",
1849
+ "tableFrom": "space_item_category",
1850
+ "tableTo": "project_file",
1851
+ "columnsFrom": [
1852
+ "file_id"
1853
+ ],
1854
+ "columnsTo": [
1855
+ "id"
1856
+ ],
1857
+ "onDelete": "cascade",
1858
+ "onUpdate": "no action"
1859
+ },
1860
+ "space_item_category_value_id_space_category_value_id_fk": {
1861
+ "name": "space_item_category_value_id_space_category_value_id_fk",
1862
+ "tableFrom": "space_item_category",
1863
+ "tableTo": "space_category_value",
1864
+ "columnsFrom": [
1865
+ "value_id"
1866
+ ],
1867
+ "columnsTo": [
1868
+ "id"
1869
+ ],
1870
+ "onDelete": "cascade",
1871
+ "onUpdate": "no action"
1872
+ }
1873
+ },
1874
+ "compositePrimaryKeys": {},
1875
+ "uniqueConstraints": {},
1876
+ "checkConstraints": {}
1877
+ },
1878
+ "space_page": {
1879
+ "name": "space_page",
1880
+ "columns": {
1881
+ "id": {
1882
+ "name": "id",
1883
+ "type": "text",
1884
+ "primaryKey": true,
1885
+ "notNull": true,
1886
+ "autoincrement": false
1887
+ },
1888
+ "tenant_id": {
1889
+ "name": "tenant_id",
1890
+ "type": "text",
1891
+ "primaryKey": false,
1892
+ "notNull": true,
1893
+ "autoincrement": false
1894
+ },
1895
+ "project_id": {
1896
+ "name": "project_id",
1897
+ "type": "text",
1898
+ "primaryKey": false,
1899
+ "notNull": true,
1900
+ "autoincrement": false
1901
+ },
1902
+ "wizard_id": {
1903
+ "name": "wizard_id",
1904
+ "type": "text",
1905
+ "primaryKey": false,
1906
+ "notNull": false,
1907
+ "autoincrement": false
1908
+ },
1909
+ "parent_id": {
1910
+ "name": "parent_id",
1911
+ "type": "text",
1912
+ "primaryKey": false,
1913
+ "notNull": false,
1914
+ "autoincrement": false
1915
+ },
1916
+ "position": {
1917
+ "name": "position",
1918
+ "type": "integer",
1919
+ "primaryKey": false,
1920
+ "notNull": true,
1921
+ "autoincrement": false,
1922
+ "default": 0
1923
+ },
1924
+ "title": {
1925
+ "name": "title",
1926
+ "type": "text",
1927
+ "primaryKey": false,
1928
+ "notNull": true,
1929
+ "autoincrement": false
1930
+ },
1931
+ "slug": {
1932
+ "name": "slug",
1933
+ "type": "text",
1934
+ "primaryKey": false,
1935
+ "notNull": false,
1936
+ "autoincrement": false
1937
+ },
1938
+ "markdown": {
1939
+ "name": "markdown",
1940
+ "type": "text",
1941
+ "primaryKey": false,
1942
+ "notNull": true,
1943
+ "autoincrement": false,
1944
+ "default": "''"
1945
+ },
1946
+ "origin": {
1947
+ "name": "origin",
1948
+ "type": "text",
1949
+ "primaryKey": false,
1950
+ "notNull": false,
1951
+ "autoincrement": false
1952
+ },
1953
+ "origin_key": {
1954
+ "name": "origin_key",
1955
+ "type": "text",
1956
+ "primaryKey": false,
1957
+ "notNull": false,
1958
+ "autoincrement": false
1959
+ },
1960
+ "origin_label": {
1961
+ "name": "origin_label",
1962
+ "type": "text",
1963
+ "primaryKey": false,
1964
+ "notNull": false,
1965
+ "autoincrement": false
1966
+ },
1967
+ "kept": {
1968
+ "name": "kept",
1969
+ "type": "integer",
1970
+ "primaryKey": false,
1971
+ "notNull": true,
1972
+ "autoincrement": false,
1973
+ "default": false
1974
+ },
1975
+ "review": {
1976
+ "name": "review",
1977
+ "type": "text",
1978
+ "primaryKey": false,
1979
+ "notNull": false,
1980
+ "autoincrement": false
1981
+ },
1982
+ "file_id": {
1983
+ "name": "file_id",
1984
+ "type": "text",
1985
+ "primaryKey": false,
1986
+ "notNull": false,
1987
+ "autoincrement": false
1988
+ },
1989
+ "created_at": {
1990
+ "name": "created_at",
1991
+ "type": "integer",
1992
+ "primaryKey": false,
1993
+ "notNull": true,
1994
+ "autoincrement": false,
1995
+ "default": "(unixepoch() * 1000)"
1996
+ },
1997
+ "updated_at": {
1998
+ "name": "updated_at",
1999
+ "type": "integer",
2000
+ "primaryKey": false,
2001
+ "notNull": true,
2002
+ "autoincrement": false,
2003
+ "default": "(unixepoch() * 1000)"
2004
+ }
2005
+ },
2006
+ "indexes": {
2007
+ "space_page_project": {
2008
+ "name": "space_page_project",
2009
+ "columns": [
2010
+ "project_id",
2011
+ "wizard_id"
2012
+ ],
2013
+ "isUnique": false
2014
+ },
2015
+ "space_page_parent": {
2016
+ "name": "space_page_parent",
2017
+ "columns": [
2018
+ "parent_id",
2019
+ "position"
2020
+ ],
2021
+ "isUnique": false
2022
+ },
2023
+ "space_page_origin": {
2024
+ "name": "space_page_origin",
2025
+ "columns": [
2026
+ "project_id",
2027
+ "origin",
2028
+ "origin_key"
2029
+ ],
2030
+ "isUnique": true
2031
+ }
2032
+ },
2033
+ "foreignKeys": {
2034
+ "space_page_project_id_project_id_fk": {
2035
+ "name": "space_page_project_id_project_id_fk",
2036
+ "tableFrom": "space_page",
2037
+ "tableTo": "project",
2038
+ "columnsFrom": [
2039
+ "project_id"
2040
+ ],
2041
+ "columnsTo": [
2042
+ "id"
2043
+ ],
2044
+ "onDelete": "cascade",
2045
+ "onUpdate": "no action"
2046
+ },
2047
+ "space_page_wizard_id_wizard_id_fk": {
2048
+ "name": "space_page_wizard_id_wizard_id_fk",
2049
+ "tableFrom": "space_page",
2050
+ "tableTo": "wizard",
2051
+ "columnsFrom": [
2052
+ "wizard_id"
2053
+ ],
2054
+ "columnsTo": [
2055
+ "id"
2056
+ ],
2057
+ "onDelete": "cascade",
2058
+ "onUpdate": "no action"
2059
+ },
2060
+ "space_page_parent_id_space_page_id_fk": {
2061
+ "name": "space_page_parent_id_space_page_id_fk",
2062
+ "tableFrom": "space_page",
2063
+ "tableTo": "space_page",
2064
+ "columnsFrom": [
2065
+ "parent_id"
2066
+ ],
2067
+ "columnsTo": [
2068
+ "id"
2069
+ ],
2070
+ "onDelete": "cascade",
2071
+ "onUpdate": "no action"
2072
+ },
2073
+ "space_page_file_id_project_file_id_fk": {
2074
+ "name": "space_page_file_id_project_file_id_fk",
2075
+ "tableFrom": "space_page",
2076
+ "tableTo": "project_file",
2077
+ "columnsFrom": [
2078
+ "file_id"
2079
+ ],
2080
+ "columnsTo": [
2081
+ "id"
2082
+ ],
2083
+ "onDelete": "set null",
2084
+ "onUpdate": "no action"
2085
+ }
2086
+ },
2087
+ "compositePrimaryKeys": {},
2088
+ "uniqueConstraints": {},
2089
+ "checkConstraints": {}
2090
+ },
2091
+ "space_table": {
2092
+ "name": "space_table",
2093
+ "columns": {
2094
+ "id": {
2095
+ "name": "id",
2096
+ "type": "text",
2097
+ "primaryKey": true,
2098
+ "notNull": true,
2099
+ "autoincrement": false
2100
+ },
2101
+ "tenant_id": {
2102
+ "name": "tenant_id",
2103
+ "type": "text",
2104
+ "primaryKey": false,
2105
+ "notNull": true,
2106
+ "autoincrement": false
2107
+ },
2108
+ "project_id": {
2109
+ "name": "project_id",
2110
+ "type": "text",
2111
+ "primaryKey": false,
2112
+ "notNull": true,
2113
+ "autoincrement": false
2114
+ },
2115
+ "wizard_id": {
2116
+ "name": "wizard_id",
2117
+ "type": "text",
2118
+ "primaryKey": false,
2119
+ "notNull": false,
2120
+ "autoincrement": false
2121
+ },
2122
+ "list": {
2123
+ "name": "list",
2124
+ "type": "text",
2125
+ "primaryKey": false,
2126
+ "notNull": false,
2127
+ "autoincrement": false
2128
+ },
2129
+ "key_column": {
2130
+ "name": "key_column",
2131
+ "type": "text",
2132
+ "primaryKey": false,
2133
+ "notNull": false,
2134
+ "autoincrement": false
2135
+ },
2136
+ "title": {
2137
+ "name": "title",
2138
+ "type": "text",
2139
+ "primaryKey": false,
2140
+ "notNull": true,
2141
+ "autoincrement": false
2142
+ },
2143
+ "slug": {
2144
+ "name": "slug",
2145
+ "type": "text",
2146
+ "primaryKey": false,
2147
+ "notNull": false,
2148
+ "autoincrement": false
2149
+ },
2150
+ "format": {
2151
+ "name": "format",
2152
+ "type": "text",
2153
+ "primaryKey": false,
2154
+ "notNull": false,
2155
+ "autoincrement": false
2156
+ },
2157
+ "columns": {
2158
+ "name": "columns",
2159
+ "type": "text",
2160
+ "primaryKey": false,
2161
+ "notNull": true,
2162
+ "autoincrement": false
2163
+ },
2164
+ "origin": {
2165
+ "name": "origin",
2166
+ "type": "text",
2167
+ "primaryKey": false,
2168
+ "notNull": false,
2169
+ "autoincrement": false
2170
+ },
2171
+ "origin_key": {
2172
+ "name": "origin_key",
2173
+ "type": "text",
2174
+ "primaryKey": false,
2175
+ "notNull": false,
2176
+ "autoincrement": false
2177
+ },
2178
+ "origin_label": {
2179
+ "name": "origin_label",
2180
+ "type": "text",
2181
+ "primaryKey": false,
2182
+ "notNull": false,
2183
+ "autoincrement": false
2184
+ },
2185
+ "kept": {
2186
+ "name": "kept",
2187
+ "type": "integer",
2188
+ "primaryKey": false,
2189
+ "notNull": true,
2190
+ "autoincrement": false,
2191
+ "default": false
2192
+ },
2193
+ "review": {
2194
+ "name": "review",
2195
+ "type": "text",
2196
+ "primaryKey": false,
2197
+ "notNull": false,
2198
+ "autoincrement": false
2199
+ },
2200
+ "file_id": {
2201
+ "name": "file_id",
2202
+ "type": "text",
2203
+ "primaryKey": false,
2204
+ "notNull": false,
2205
+ "autoincrement": false
2206
+ },
2207
+ "created_at": {
2208
+ "name": "created_at",
2209
+ "type": "integer",
2210
+ "primaryKey": false,
2211
+ "notNull": true,
2212
+ "autoincrement": false,
2213
+ "default": "(unixepoch() * 1000)"
2214
+ },
2215
+ "updated_at": {
2216
+ "name": "updated_at",
2217
+ "type": "integer",
2218
+ "primaryKey": false,
2219
+ "notNull": true,
2220
+ "autoincrement": false,
2221
+ "default": "(unixepoch() * 1000)"
2222
+ }
2223
+ },
2224
+ "indexes": {
2225
+ "space_table_project": {
2226
+ "name": "space_table_project",
2227
+ "columns": [
2228
+ "project_id",
2229
+ "wizard_id"
2230
+ ],
2231
+ "isUnique": false
2232
+ },
2233
+ "space_table_list": {
2234
+ "name": "space_table_list",
2235
+ "columns": [
2236
+ "wizard_id",
2237
+ "list"
2238
+ ],
2239
+ "isUnique": true
2240
+ },
2241
+ "space_table_origin": {
2242
+ "name": "space_table_origin",
2243
+ "columns": [
2244
+ "project_id",
2245
+ "origin",
2246
+ "origin_key"
2247
+ ],
2248
+ "isUnique": true
2249
+ }
2250
+ },
2251
+ "foreignKeys": {
2252
+ "space_table_project_id_project_id_fk": {
2253
+ "name": "space_table_project_id_project_id_fk",
2254
+ "tableFrom": "space_table",
2255
+ "tableTo": "project",
2256
+ "columnsFrom": [
2257
+ "project_id"
2258
+ ],
2259
+ "columnsTo": [
2260
+ "id"
2261
+ ],
2262
+ "onDelete": "cascade",
2263
+ "onUpdate": "no action"
2264
+ },
2265
+ "space_table_wizard_id_wizard_id_fk": {
2266
+ "name": "space_table_wizard_id_wizard_id_fk",
2267
+ "tableFrom": "space_table",
2268
+ "tableTo": "wizard",
2269
+ "columnsFrom": [
2270
+ "wizard_id"
2271
+ ],
2272
+ "columnsTo": [
2273
+ "id"
2274
+ ],
2275
+ "onDelete": "cascade",
2276
+ "onUpdate": "no action"
2277
+ },
2278
+ "space_table_file_id_project_file_id_fk": {
2279
+ "name": "space_table_file_id_project_file_id_fk",
2280
+ "tableFrom": "space_table",
2281
+ "tableTo": "project_file",
2282
+ "columnsFrom": [
2283
+ "file_id"
2284
+ ],
2285
+ "columnsTo": [
2286
+ "id"
2287
+ ],
2288
+ "onDelete": "set null",
2289
+ "onUpdate": "no action"
2290
+ }
2291
+ },
2292
+ "compositePrimaryKeys": {},
2293
+ "uniqueConstraints": {},
2294
+ "checkConstraints": {}
2295
+ },
2296
+ "space_table_row": {
2297
+ "name": "space_table_row",
2298
+ "columns": {
2299
+ "id": {
2300
+ "name": "id",
2301
+ "type": "text",
2302
+ "primaryKey": true,
2303
+ "notNull": true,
2304
+ "autoincrement": false
2305
+ },
2306
+ "table_id": {
2307
+ "name": "table_id",
2308
+ "type": "text",
2309
+ "primaryKey": false,
2310
+ "notNull": true,
2311
+ "autoincrement": false
2312
+ },
2313
+ "key": {
2314
+ "name": "key",
2315
+ "type": "text",
2316
+ "primaryKey": false,
2317
+ "notNull": false,
2318
+ "autoincrement": false
2319
+ },
2320
+ "cells": {
2321
+ "name": "cells",
2322
+ "type": "text",
2323
+ "primaryKey": false,
2324
+ "notNull": true,
2325
+ "autoincrement": false
2326
+ },
2327
+ "created_at": {
2328
+ "name": "created_at",
2329
+ "type": "integer",
2330
+ "primaryKey": false,
2331
+ "notNull": true,
2332
+ "autoincrement": false,
2333
+ "default": "(unixepoch() * 1000)"
2334
+ },
2335
+ "updated_at": {
2336
+ "name": "updated_at",
2337
+ "type": "integer",
2338
+ "primaryKey": false,
2339
+ "notNull": true,
2340
+ "autoincrement": false,
2341
+ "default": "(unixepoch() * 1000)"
2342
+ }
2343
+ },
2344
+ "indexes": {
2345
+ "space_table_row_table": {
2346
+ "name": "space_table_row_table",
2347
+ "columns": [
2348
+ "table_id",
2349
+ "created_at"
2350
+ ],
2351
+ "isUnique": false
2352
+ },
2353
+ "space_table_row_key": {
2354
+ "name": "space_table_row_key",
2355
+ "columns": [
2356
+ "table_id",
2357
+ "key"
2358
+ ],
2359
+ "isUnique": false
2360
+ }
2361
+ },
2362
+ "foreignKeys": {
2363
+ "space_table_row_table_id_space_table_id_fk": {
2364
+ "name": "space_table_row_table_id_space_table_id_fk",
2365
+ "tableFrom": "space_table_row",
2366
+ "tableTo": "space_table",
2367
+ "columnsFrom": [
2368
+ "table_id"
2369
+ ],
2370
+ "columnsTo": [
2371
+ "id"
2372
+ ],
2373
+ "onDelete": "cascade",
2374
+ "onUpdate": "no action"
2375
+ }
2376
+ },
2377
+ "compositePrimaryKeys": {},
2378
+ "uniqueConstraints": {},
2379
+ "checkConstraints": {}
2380
+ },
2381
+ "store_file": {
2382
+ "name": "store_file",
2383
+ "columns": {
2384
+ "wizard_id": {
2385
+ "name": "wizard_id",
2386
+ "type": "text",
2387
+ "primaryKey": false,
2388
+ "notNull": true,
2389
+ "autoincrement": false
2390
+ },
2391
+ "holder": {
2392
+ "name": "holder",
2393
+ "type": "text",
2394
+ "primaryKey": false,
2395
+ "notNull": true,
2396
+ "autoincrement": false
2397
+ },
2398
+ "path": {
2399
+ "name": "path",
2400
+ "type": "text",
2401
+ "primaryKey": false,
2402
+ "notNull": true,
2403
+ "autoincrement": false
2404
+ },
2405
+ "hash": {
2406
+ "name": "hash",
2407
+ "type": "text",
2408
+ "primaryKey": false,
2409
+ "notNull": true,
2410
+ "autoincrement": false
2411
+ },
2412
+ "mime": {
2413
+ "name": "mime",
2414
+ "type": "text",
2415
+ "primaryKey": false,
2416
+ "notNull": true,
2417
+ "autoincrement": false
2418
+ },
2419
+ "size": {
2420
+ "name": "size",
2421
+ "type": "integer",
2422
+ "primaryKey": false,
2423
+ "notNull": true,
2424
+ "autoincrement": false
2425
+ },
2426
+ "source": {
2427
+ "name": "source",
2428
+ "type": "text",
2429
+ "primaryKey": false,
2430
+ "notNull": false,
2431
+ "autoincrement": false
2432
+ },
2433
+ "updated_at": {
2434
+ "name": "updated_at",
2435
+ "type": "integer",
2436
+ "primaryKey": false,
2437
+ "notNull": true,
2438
+ "autoincrement": false,
2439
+ "default": "(unixepoch() * 1000)"
2440
+ }
2441
+ },
2442
+ "indexes": {},
2443
+ "foreignKeys": {
2444
+ "store_file_wizard_id_wizard_id_fk": {
2445
+ "name": "store_file_wizard_id_wizard_id_fk",
2446
+ "tableFrom": "store_file",
2447
+ "tableTo": "wizard",
2448
+ "columnsFrom": [
2449
+ "wizard_id"
2450
+ ],
2451
+ "columnsTo": [
2452
+ "id"
2453
+ ],
2454
+ "onDelete": "cascade",
2455
+ "onUpdate": "no action"
2456
+ }
2457
+ },
2458
+ "compositePrimaryKeys": {
2459
+ "store_file_wizard_id_holder_path_pk": {
2460
+ "columns": [
2461
+ "wizard_id",
2462
+ "holder",
2463
+ "path"
2464
+ ],
2465
+ "name": "store_file_wizard_id_holder_path_pk"
2466
+ }
2467
+ },
2468
+ "uniqueConstraints": {},
2469
+ "checkConstraints": {}
2470
+ },
2471
+ "store_holder": {
2472
+ "name": "store_holder",
2473
+ "columns": {
2474
+ "wizard_id": {
2475
+ "name": "wizard_id",
2476
+ "type": "text",
2477
+ "primaryKey": false,
2478
+ "notNull": true,
2479
+ "autoincrement": false
2480
+ },
2481
+ "holder": {
2482
+ "name": "holder",
2483
+ "type": "text",
2484
+ "primaryKey": false,
2485
+ "notNull": true,
2486
+ "autoincrement": false
2487
+ },
2488
+ "used_at": {
2489
+ "name": "used_at",
2490
+ "type": "integer",
2491
+ "primaryKey": false,
2492
+ "notNull": true,
2493
+ "autoincrement": false,
2494
+ "default": "(unixepoch() * 1000)"
2495
+ }
2496
+ },
2497
+ "indexes": {
2498
+ "store_holder_used": {
2499
+ "name": "store_holder_used",
2500
+ "columns": [
2501
+ "used_at"
2502
+ ],
2503
+ "isUnique": false
2504
+ }
2505
+ },
2506
+ "foreignKeys": {
2507
+ "store_holder_wizard_id_wizard_id_fk": {
2508
+ "name": "store_holder_wizard_id_wizard_id_fk",
2509
+ "tableFrom": "store_holder",
2510
+ "tableTo": "wizard",
2511
+ "columnsFrom": [
2512
+ "wizard_id"
2513
+ ],
2514
+ "columnsTo": [
2515
+ "id"
2516
+ ],
2517
+ "onDelete": "cascade",
2518
+ "onUpdate": "no action"
2519
+ }
2520
+ },
2521
+ "compositePrimaryKeys": {
2522
+ "store_holder_wizard_id_holder_pk": {
2523
+ "columns": [
2524
+ "wizard_id",
2525
+ "holder"
2526
+ ],
2527
+ "name": "store_holder_wizard_id_holder_pk"
2528
+ }
2529
+ },
2530
+ "uniqueConstraints": {},
2531
+ "checkConstraints": {}
2532
+ },
2533
+ "store_row": {
2534
+ "name": "store_row",
2535
+ "columns": {
2536
+ "id": {
2537
+ "name": "id",
2538
+ "type": "text",
2539
+ "primaryKey": true,
2540
+ "notNull": true,
2541
+ "autoincrement": false
2542
+ },
2543
+ "wizard_id": {
2544
+ "name": "wizard_id",
2545
+ "type": "text",
2546
+ "primaryKey": false,
2547
+ "notNull": true,
2548
+ "autoincrement": false
2549
+ },
2550
+ "holder": {
2551
+ "name": "holder",
2552
+ "type": "text",
2553
+ "primaryKey": false,
2554
+ "notNull": true,
2555
+ "autoincrement": false
2556
+ },
2557
+ "list": {
2558
+ "name": "list",
2559
+ "type": "text",
2560
+ "primaryKey": false,
2561
+ "notNull": true,
2562
+ "autoincrement": false
2563
+ },
2564
+ "key": {
2565
+ "name": "key",
2566
+ "type": "text",
2567
+ "primaryKey": false,
2568
+ "notNull": false,
2569
+ "autoincrement": false
2570
+ },
2571
+ "cells": {
2572
+ "name": "cells",
2573
+ "type": "text",
2574
+ "primaryKey": false,
2575
+ "notNull": true,
2576
+ "autoincrement": false
2577
+ },
2578
+ "created_at": {
2579
+ "name": "created_at",
2580
+ "type": "integer",
2581
+ "primaryKey": false,
2582
+ "notNull": true,
2583
+ "autoincrement": false,
2584
+ "default": "(unixepoch() * 1000)"
2585
+ },
2586
+ "updated_at": {
2587
+ "name": "updated_at",
2588
+ "type": "integer",
2589
+ "primaryKey": false,
2590
+ "notNull": true,
2591
+ "autoincrement": false,
2592
+ "default": "(unixepoch() * 1000)"
2593
+ }
2594
+ },
2595
+ "indexes": {
2596
+ "store_row_key": {
2597
+ "name": "store_row_key",
2598
+ "columns": [
2599
+ "wizard_id",
2600
+ "holder",
2601
+ "list",
2602
+ "key"
2603
+ ],
2604
+ "isUnique": true
2605
+ },
2606
+ "store_row_list": {
2607
+ "name": "store_row_list",
2608
+ "columns": [
2609
+ "wizard_id",
2610
+ "holder",
2611
+ "list",
2612
+ "created_at"
2613
+ ],
2614
+ "isUnique": false
2615
+ }
2616
+ },
2617
+ "foreignKeys": {
2618
+ "store_row_wizard_id_wizard_id_fk": {
2619
+ "name": "store_row_wizard_id_wizard_id_fk",
2620
+ "tableFrom": "store_row",
2621
+ "tableTo": "wizard",
2622
+ "columnsFrom": [
2623
+ "wizard_id"
2624
+ ],
2625
+ "columnsTo": [
2626
+ "id"
2627
+ ],
2628
+ "onDelete": "cascade",
2629
+ "onUpdate": "no action"
2630
+ }
2631
+ },
2632
+ "compositePrimaryKeys": {},
2633
+ "uniqueConstraints": {},
2634
+ "checkConstraints": {}
2635
+ },
2636
+ "store_secret": {
2637
+ "name": "store_secret",
2638
+ "columns": {
2639
+ "id": {
2640
+ "name": "id",
2641
+ "type": "text",
2642
+ "primaryKey": true,
2643
+ "notNull": true,
2644
+ "autoincrement": false
2645
+ },
2646
+ "wizard_id": {
2647
+ "name": "wizard_id",
2648
+ "type": "text",
2649
+ "primaryKey": false,
2650
+ "notNull": true,
2651
+ "autoincrement": false
2652
+ },
2653
+ "holder": {
2654
+ "name": "holder",
2655
+ "type": "text",
2656
+ "primaryKey": false,
2657
+ "notNull": true,
2658
+ "autoincrement": false
2659
+ },
2660
+ "slot": {
2661
+ "name": "slot",
2662
+ "type": "text",
2663
+ "primaryKey": false,
2664
+ "notNull": true,
2665
+ "autoincrement": false
2666
+ },
2667
+ "provider": {
2668
+ "name": "provider",
2669
+ "type": "text",
2670
+ "primaryKey": false,
2671
+ "notNull": true,
2672
+ "autoincrement": false
2673
+ },
2674
+ "label": {
2675
+ "name": "label",
2676
+ "type": "text",
2677
+ "primaryKey": false,
2678
+ "notNull": true,
2679
+ "autoincrement": false
2680
+ },
2681
+ "data": {
2682
+ "name": "data",
2683
+ "type": "text",
2684
+ "primaryKey": false,
2685
+ "notNull": true,
2686
+ "autoincrement": false
2687
+ },
2688
+ "created_at": {
2689
+ "name": "created_at",
2690
+ "type": "integer",
2691
+ "primaryKey": false,
2692
+ "notNull": true,
2693
+ "autoincrement": false,
2694
+ "default": "(unixepoch() * 1000)"
2695
+ },
2696
+ "updated_at": {
2697
+ "name": "updated_at",
2698
+ "type": "integer",
2699
+ "primaryKey": false,
2700
+ "notNull": true,
2701
+ "autoincrement": false,
2702
+ "default": "(unixepoch() * 1000)"
2703
+ }
2704
+ },
2705
+ "indexes": {
2706
+ "store_secret_slot": {
2707
+ "name": "store_secret_slot",
2708
+ "columns": [
2709
+ "wizard_id",
2710
+ "holder",
2711
+ "slot"
2712
+ ],
2713
+ "isUnique": true
2714
+ }
2715
+ },
2716
+ "foreignKeys": {
2717
+ "store_secret_wizard_id_wizard_id_fk": {
2718
+ "name": "store_secret_wizard_id_wizard_id_fk",
2719
+ "tableFrom": "store_secret",
2720
+ "tableTo": "wizard",
2721
+ "columnsFrom": [
2722
+ "wizard_id"
2723
+ ],
2724
+ "columnsTo": [
2725
+ "id"
2726
+ ],
2727
+ "onDelete": "cascade",
2728
+ "onUpdate": "no action"
2729
+ }
2730
+ },
2731
+ "compositePrimaryKeys": {},
2732
+ "uniqueConstraints": {},
2733
+ "checkConstraints": {}
2734
+ },
2735
+ "wizard": {
2736
+ "name": "wizard",
2737
+ "columns": {
2738
+ "id": {
2739
+ "name": "id",
2740
+ "type": "text",
2741
+ "primaryKey": true,
2742
+ "notNull": true,
2743
+ "autoincrement": false
2744
+ },
2745
+ "project_id": {
2746
+ "name": "project_id",
2747
+ "type": "text",
2748
+ "primaryKey": false,
2749
+ "notNull": true,
2750
+ "autoincrement": false
2751
+ },
2752
+ "tenant_id": {
2753
+ "name": "tenant_id",
2754
+ "type": "text",
2755
+ "primaryKey": false,
2756
+ "notNull": true,
2757
+ "autoincrement": false
2758
+ },
2759
+ "title": {
2760
+ "name": "title",
2761
+ "type": "text",
2762
+ "primaryKey": false,
2763
+ "notNull": true,
2764
+ "autoincrement": false
2765
+ },
2766
+ "draft": {
2767
+ "name": "draft",
2768
+ "type": "text",
2769
+ "primaryKey": false,
2770
+ "notNull": true,
2771
+ "autoincrement": false
2772
+ },
2773
+ "published_version": {
2774
+ "name": "published_version",
2775
+ "type": "integer",
2776
+ "primaryKey": false,
2777
+ "notNull": false,
2778
+ "autoincrement": false
2779
+ },
2780
+ "share_token": {
2781
+ "name": "share_token",
2782
+ "type": "text",
2783
+ "primaryKey": false,
2784
+ "notNull": true,
2785
+ "autoincrement": false
2786
+ },
2787
+ "share_enabled": {
2788
+ "name": "share_enabled",
2789
+ "type": "integer",
2790
+ "primaryKey": false,
2791
+ "notNull": true,
2792
+ "autoincrement": false,
2793
+ "default": true
2794
+ },
2795
+ "daily_run_limit": {
2796
+ "name": "daily_run_limit",
2797
+ "type": "integer",
2798
+ "primaryKey": false,
2799
+ "notNull": true,
2800
+ "autoincrement": false,
2801
+ "default": 50
2802
+ },
2803
+ "starter": {
2804
+ "name": "starter",
2805
+ "type": "text",
2806
+ "primaryKey": false,
2807
+ "notNull": false,
2808
+ "autoincrement": false
2809
+ },
2810
+ "starter_revision": {
2811
+ "name": "starter_revision",
2812
+ "type": "integer",
2813
+ "primaryKey": false,
2814
+ "notNull": false,
2815
+ "autoincrement": false
2816
+ },
2817
+ "revision": {
2818
+ "name": "revision",
2819
+ "type": "integer",
2820
+ "primaryKey": false,
2821
+ "notNull": true,
2822
+ "autoincrement": false,
2823
+ "default": 0
2824
+ },
2825
+ "runners": {
2826
+ "name": "runners",
2827
+ "type": "text",
2828
+ "primaryKey": false,
2829
+ "notNull": false,
2830
+ "autoincrement": false
2831
+ },
2832
+ "created_at": {
2833
+ "name": "created_at",
2834
+ "type": "integer",
2835
+ "primaryKey": false,
2836
+ "notNull": true,
2837
+ "autoincrement": false,
2838
+ "default": "(unixepoch() * 1000)"
2839
+ },
2840
+ "updated_at": {
2841
+ "name": "updated_at",
2842
+ "type": "integer",
2843
+ "primaryKey": false,
2844
+ "notNull": true,
2845
+ "autoincrement": false,
2846
+ "default": "(unixepoch() * 1000)"
2847
+ }
2848
+ },
2849
+ "indexes": {
2850
+ "wizard_share_token": {
2851
+ "name": "wizard_share_token",
2852
+ "columns": [
2853
+ "share_token"
2854
+ ],
2855
+ "isUnique": true
2856
+ },
2857
+ "wizard_project": {
2858
+ "name": "wizard_project",
2859
+ "columns": [
2860
+ "project_id"
2861
+ ],
2862
+ "isUnique": false
2863
+ }
2864
+ },
2865
+ "foreignKeys": {
2866
+ "wizard_project_id_project_id_fk": {
2867
+ "name": "wizard_project_id_project_id_fk",
2868
+ "tableFrom": "wizard",
2869
+ "tableTo": "project",
2870
+ "columnsFrom": [
2871
+ "project_id"
2872
+ ],
2873
+ "columnsTo": [
2874
+ "id"
2875
+ ],
2876
+ "onDelete": "cascade",
2877
+ "onUpdate": "no action"
2878
+ }
2879
+ },
2880
+ "compositePrimaryKeys": {},
2881
+ "uniqueConstraints": {},
2882
+ "checkConstraints": {}
2883
+ },
2884
+ "wizard_file": {
2885
+ "name": "wizard_file",
2886
+ "columns": {
2887
+ "wizard_id": {
2888
+ "name": "wizard_id",
2889
+ "type": "text",
2890
+ "primaryKey": false,
2891
+ "notNull": true,
2892
+ "autoincrement": false
2893
+ },
2894
+ "path": {
2895
+ "name": "path",
2896
+ "type": "text",
2897
+ "primaryKey": false,
2898
+ "notNull": true,
2899
+ "autoincrement": false
2900
+ },
2901
+ "hash": {
2902
+ "name": "hash",
2903
+ "type": "text",
2904
+ "primaryKey": false,
2905
+ "notNull": true,
2906
+ "autoincrement": false
2907
+ },
2908
+ "mime": {
2909
+ "name": "mime",
2910
+ "type": "text",
2911
+ "primaryKey": false,
2912
+ "notNull": true,
2913
+ "autoincrement": false
2914
+ },
2915
+ "size": {
2916
+ "name": "size",
2917
+ "type": "integer",
2918
+ "primaryKey": false,
2919
+ "notNull": true,
2920
+ "autoincrement": false
2921
+ },
2922
+ "updated_at": {
2923
+ "name": "updated_at",
2924
+ "type": "integer",
2925
+ "primaryKey": false,
2926
+ "notNull": true,
2927
+ "autoincrement": false,
2928
+ "default": "(unixepoch() * 1000)"
2929
+ }
2930
+ },
2931
+ "indexes": {},
2932
+ "foreignKeys": {
2933
+ "wizard_file_wizard_id_wizard_id_fk": {
2934
+ "name": "wizard_file_wizard_id_wizard_id_fk",
2935
+ "tableFrom": "wizard_file",
2936
+ "tableTo": "wizard",
2937
+ "columnsFrom": [
2938
+ "wizard_id"
2939
+ ],
2940
+ "columnsTo": [
2941
+ "id"
2942
+ ],
2943
+ "onDelete": "cascade",
2944
+ "onUpdate": "no action"
2945
+ }
2946
+ },
2947
+ "compositePrimaryKeys": {
2948
+ "wizard_file_wizard_id_path_pk": {
2949
+ "columns": [
2950
+ "wizard_id",
2951
+ "path"
2952
+ ],
2953
+ "name": "wizard_file_wizard_id_path_pk"
2954
+ }
2955
+ },
2956
+ "uniqueConstraints": {},
2957
+ "checkConstraints": {}
2958
+ },
2959
+ "wizard_message": {
2960
+ "name": "wizard_message",
2961
+ "columns": {
2962
+ "id": {
2963
+ "name": "id",
2964
+ "type": "text",
2965
+ "primaryKey": true,
2966
+ "notNull": true,
2967
+ "autoincrement": false
2968
+ },
2969
+ "wizard_id": {
2970
+ "name": "wizard_id",
2971
+ "type": "text",
2972
+ "primaryKey": false,
2973
+ "notNull": true,
2974
+ "autoincrement": false
2975
+ },
2976
+ "role": {
2977
+ "name": "role",
2978
+ "type": "text",
2979
+ "primaryKey": false,
2980
+ "notNull": true,
2981
+ "autoincrement": false
2982
+ },
2983
+ "content": {
2984
+ "name": "content",
2985
+ "type": "text",
2986
+ "primaryKey": false,
2987
+ "notNull": true,
2988
+ "autoincrement": false
2989
+ },
2990
+ "changed": {
2991
+ "name": "changed",
2992
+ "type": "integer",
2993
+ "primaryKey": false,
2994
+ "notNull": true,
2995
+ "autoincrement": false,
2996
+ "default": false
2997
+ },
2998
+ "source": {
2999
+ "name": "source",
3000
+ "type": "text",
3001
+ "primaryKey": false,
3002
+ "notNull": true,
3003
+ "autoincrement": false,
3004
+ "default": "'studio'"
3005
+ },
3006
+ "client": {
3007
+ "name": "client",
3008
+ "type": "text",
3009
+ "primaryKey": false,
3010
+ "notNull": false,
3011
+ "autoincrement": false
3012
+ },
3013
+ "created_at": {
3014
+ "name": "created_at",
3015
+ "type": "integer",
3016
+ "primaryKey": false,
3017
+ "notNull": true,
3018
+ "autoincrement": false,
3019
+ "default": "(unixepoch() * 1000)"
3020
+ }
3021
+ },
3022
+ "indexes": {
3023
+ "wizard_message_wizard": {
3024
+ "name": "wizard_message_wizard",
3025
+ "columns": [
3026
+ "wizard_id",
3027
+ "created_at"
3028
+ ],
3029
+ "isUnique": false
3030
+ }
3031
+ },
3032
+ "foreignKeys": {
3033
+ "wizard_message_wizard_id_wizard_id_fk": {
3034
+ "name": "wizard_message_wizard_id_wizard_id_fk",
3035
+ "tableFrom": "wizard_message",
3036
+ "tableTo": "wizard",
3037
+ "columnsFrom": [
3038
+ "wizard_id"
3039
+ ],
3040
+ "columnsTo": [
3041
+ "id"
3042
+ ],
3043
+ "onDelete": "cascade",
3044
+ "onUpdate": "no action"
3045
+ }
3046
+ },
3047
+ "compositePrimaryKeys": {},
3048
+ "uniqueConstraints": {},
3049
+ "checkConstraints": {}
3050
+ },
3051
+ "wizard_version": {
3052
+ "name": "wizard_version",
3053
+ "columns": {
3054
+ "id": {
3055
+ "name": "id",
3056
+ "type": "text",
3057
+ "primaryKey": true,
3058
+ "notNull": true,
3059
+ "autoincrement": false
3060
+ },
3061
+ "wizard_id": {
3062
+ "name": "wizard_id",
3063
+ "type": "text",
3064
+ "primaryKey": false,
3065
+ "notNull": true,
3066
+ "autoincrement": false
3067
+ },
3068
+ "version": {
3069
+ "name": "version",
3070
+ "type": "integer",
3071
+ "primaryKey": false,
3072
+ "notNull": true,
3073
+ "autoincrement": false
3074
+ },
3075
+ "definition": {
3076
+ "name": "definition",
3077
+ "type": "text",
3078
+ "primaryKey": false,
3079
+ "notNull": true,
3080
+ "autoincrement": false
3081
+ },
3082
+ "files": {
3083
+ "name": "files",
3084
+ "type": "text",
3085
+ "primaryKey": false,
3086
+ "notNull": true,
3087
+ "autoincrement": false,
3088
+ "default": "'[]'"
3089
+ },
3090
+ "created_at": {
3091
+ "name": "created_at",
3092
+ "type": "integer",
3093
+ "primaryKey": false,
3094
+ "notNull": true,
3095
+ "autoincrement": false,
3096
+ "default": "(unixepoch() * 1000)"
3097
+ }
3098
+ },
3099
+ "indexes": {
3100
+ "wizard_version_n": {
3101
+ "name": "wizard_version_n",
3102
+ "columns": [
3103
+ "wizard_id",
3104
+ "version"
3105
+ ],
3106
+ "isUnique": true
3107
+ }
3108
+ },
3109
+ "foreignKeys": {
3110
+ "wizard_version_wizard_id_wizard_id_fk": {
3111
+ "name": "wizard_version_wizard_id_wizard_id_fk",
3112
+ "tableFrom": "wizard_version",
3113
+ "tableTo": "wizard",
3114
+ "columnsFrom": [
3115
+ "wizard_id"
3116
+ ],
3117
+ "columnsTo": [
3118
+ "id"
3119
+ ],
3120
+ "onDelete": "cascade",
3121
+ "onUpdate": "no action"
3122
+ }
3123
+ },
3124
+ "compositePrimaryKeys": {},
3125
+ "uniqueConstraints": {},
3126
+ "checkConstraints": {}
3127
+ }
3128
+ },
3129
+ "views": {},
3130
+ "enums": {},
3131
+ "_meta": {
3132
+ "schemas": {},
3133
+ "tables": {},
3134
+ "columns": {}
3135
+ },
3136
+ "internal": {
3137
+ "indexes": {}
3138
+ }
3139
+ }