@engenty/wizards-runtime 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/runtime/dist/agents/architect.js +8 -7
- package/apps/runtime/dist/agents/goose-connections.js +82 -0
- package/apps/runtime/dist/agents/space-agent.js +9 -2
- package/apps/runtime/dist/agents/studio-assistant.js +101 -67
- package/apps/runtime/dist/agents/website.js +1 -1
- package/apps/runtime/dist/app.js +17 -1
- package/apps/runtime/dist/assistant/knows.js +6 -5
- package/apps/runtime/dist/authoring/guide.js +25 -5
- package/apps/runtime/dist/broker/account.js +166 -0
- package/apps/runtime/dist/broker/call.js +417 -0
- package/apps/runtime/dist/broker/caller.js +10 -0
- package/apps/runtime/dist/broker/grant.js +152 -0
- package/apps/runtime/dist/broker/host.js +51 -0
- package/apps/runtime/dist/broker/index.js +8 -0
- package/apps/runtime/dist/broker/kept.js +31 -0
- package/apps/runtime/dist/broker/log.js +240 -0
- package/apps/runtime/dist/broker/registry.js +9 -0
- package/apps/runtime/dist/broker/rwx.js +367 -0
- package/apps/runtime/dist/broker/send.js +189 -0
- package/apps/runtime/dist/connectors/builtin.js +1 -1
- package/apps/runtime/dist/connectors/external.js +38 -37
- package/apps/runtime/dist/connectors/index.js +30 -91
- package/apps/runtime/dist/connectors/mail.js +0 -8
- package/apps/runtime/dist/connectors/person-sign-ins.js +73 -0
- package/apps/runtime/dist/connectors/plugin-connections.js +65 -92
- package/apps/runtime/dist/connectors/smtp.js +1 -1
- package/apps/runtime/dist/connectors/space-connections.js +436 -0
- package/apps/runtime/dist/db/adopt.js +3 -3
- package/apps/runtime/dist/db/client.js +9 -0
- package/apps/runtime/dist/db/live-triggers.js +65 -23
- package/apps/runtime/dist/db/migrations/tenant/0027_work_chats.sql +52 -0
- package/apps/runtime/dist/db/migrations/tenant/0028_chat_approvals.sql +17 -0
- package/apps/runtime/dist/db/migrations/tenant/0029_work_chats_live.sql +49 -0
- package/apps/runtime/dist/db/migrations/tenant/0031_space.sql +624 -0
- package/apps/runtime/dist/db/migrations/tenant/0032_rwx_rule.sql +18 -0
- package/apps/runtime/dist/db/migrations/tenant/0033_broker_log.sql +23 -0
- package/apps/runtime/dist/db/migrations/tenant/0034_space_connection.sql +35 -0
- package/apps/runtime/dist/db/migrations/tenant/0035_run_grant.sql +1 -0
- package/apps/runtime/dist/db/migrations/tenant/0036_approval_held_for.sql +1 -0
- package/apps/runtime/dist/db/migrations/tenant/0037_ways_out.sql +5 -0
- package/apps/runtime/dist/db/migrations/tenant/0038_heard.sql +11 -0
- package/apps/runtime/dist/db/migrations/tenant/0039_members_studio.sql +1 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0027_snapshot.json +383 -155
- package/apps/runtime/dist/db/migrations/tenant/meta/0028_snapshot.json +4468 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0029_snapshot.json +4475 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0030_snapshot.json +4629 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0031_snapshot.json +4629 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0032_snapshot.json +4757 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0033_snapshot.json +5039 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0034_snapshot.json +5022 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0035_snapshot.json +5029 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0036_snapshot.json +5037 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0037_snapshot.json +5076 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0038_snapshot.json +5145 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/0039_snapshot.json +5153 -0
- package/apps/runtime/dist/db/migrations/tenant/meta/_journal.json +86 -2
- package/apps/runtime/dist/db/schema.js +295 -72
- package/apps/runtime/dist/docs/dev/architecture.md +215 -0
- package/apps/runtime/dist/docs/dev/broker.md +298 -0
- package/apps/runtime/dist/docs/dev/index.md +5 -1
- package/apps/runtime/dist/docs/dev/integration/index.md +2 -0
- package/apps/runtime/dist/docs/dev/meta.json +3 -0
- package/apps/runtime/dist/docs/dev/plugins/connections.md +8 -5
- package/apps/runtime/dist/docs/dev/plugins/events.md +1 -1
- package/apps/runtime/dist/docs/dev/plugins/examples.md +1 -0
- package/apps/runtime/dist/docs/dev/plugins/index.md +2 -2
- package/apps/runtime/dist/docs/dev/plugins/reference.md +3 -2
- package/apps/runtime/dist/docs/dev/plugins/space.md +16 -6
- package/apps/runtime/dist/docs/dev/plugins/studio.md +2 -2
- package/apps/runtime/dist/docs/dev/plugins/tools.md +0 -1
- package/apps/runtime/dist/docs/dev/skills.md +16 -9
- package/apps/runtime/dist/docs/dev/wizard-format/agent-steps.md +40 -5
- package/apps/runtime/dist/docs/dev/wizard-format/lists-and-connections.md +17 -2
- package/apps/runtime/dist/docs/dev/wizard-format/templates.md +2 -0
- package/apps/runtime/dist/docs/dev/wizard-format/views-and-widgets.md +22 -2
- package/apps/runtime/dist/docs/user-guide/capabilities.md +132 -0
- package/apps/runtime/dist/docs/user-guide/cloud-sync.md +2 -0
- package/apps/runtime/dist/docs/user-guide/command-line.md +1 -0
- package/apps/runtime/dist/docs/user-guide/connectors.md +63 -7
- package/apps/runtime/dist/docs/user-guide/index.md +10 -1
- package/apps/runtime/dist/docs/user-guide/meta.json +6 -1
- package/apps/runtime/dist/docs/user-guide/protocol.md +80 -0
- package/apps/runtime/dist/docs/user-guide/skills.md +8 -4
- package/apps/runtime/dist/docs/user-guide/space.md +5 -4
- package/apps/runtime/dist/docs/user-guide/together.md +16 -2
- package/apps/runtime/dist/docs/user-guide/troubleshooting.md +2 -2
- package/apps/runtime/dist/docs/user-guide/work-mode.md +128 -0
- package/apps/runtime/dist/engenty/connections-external/build-connector.js +2 -5
- package/apps/runtime/dist/engenty/connections-external/importer/classify.js +72 -0
- package/apps/runtime/dist/engenty/connections-google/connectors/gmail.js +1 -1
- package/apps/runtime/dist/engenty/connections-microsoft/outlook.js +3 -2
- package/apps/runtime/dist/engenty/connections-sdk/types.js +2 -0
- package/apps/runtime/dist/engenty/connections-slack/connector.js +2 -1
- package/apps/runtime/dist/engine/resources.js +43 -12
- package/apps/runtime/dist/engine/runner.js +75 -23
- package/apps/runtime/dist/engine/steps.js +30 -12
- package/apps/runtime/dist/engine/template.js +18 -1
- package/apps/runtime/dist/env.js +9 -4
- package/apps/runtime/dist/index.js +18 -2
- package/apps/runtime/dist/live/feed.js +2 -2
- package/apps/runtime/dist/live/origin.js +2 -2
- package/apps/runtime/dist/live/views.js +51 -26
- package/apps/runtime/dist/manage.js +7 -0
- package/apps/runtime/dist/mcp/flow-app.js +1 -1
- package/apps/runtime/dist/mcp/tools.js +75 -34
- package/apps/runtime/dist/models.js +1 -1
- package/apps/runtime/dist/motion-graphics/project.js +8 -8
- package/apps/runtime/dist/motion-graphics/tools.js +1 -1
- package/apps/runtime/dist/plugins/events.js +2 -2
- package/apps/runtime/dist/plugins/jobs.js +4 -1
- package/apps/runtime/dist/plugins/loader.js +2 -2
- package/apps/runtime/dist/prompts/architect.md +3 -3
- package/apps/runtime/dist/prompts/authoring.md +46 -12
- package/apps/runtime/dist/prompts/goose.md +7 -7
- package/apps/runtime/dist/prompts/mcp.md +6 -6
- package/apps/runtime/dist/prompts/services.md +4 -4
- package/apps/runtime/dist/prompts/step.md +2 -2
- package/apps/runtime/dist/prompts/tools.md +39 -10
- package/apps/runtime/dist/routes/api.js +31 -20
- package/apps/runtime/dist/routes/broker.js +316 -0
- package/apps/runtime/dist/routes/connections.js +71 -0
- package/apps/runtime/dist/routes/delivery.js +25 -0
- package/apps/runtime/dist/routes/discover.js +17 -0
- package/apps/runtime/dist/routes/live.js +11 -1
- package/apps/runtime/dist/routes/person.js +4 -1
- package/apps/runtime/dist/routes/plugins.js +3 -1
- package/apps/runtime/dist/routes/rules.js +26 -0
- package/apps/runtime/dist/routes/runs.js +54 -33
- package/apps/runtime/dist/routes/skills.js +6 -6
- package/apps/runtime/dist/routes/studio.js +153 -144
- package/apps/runtime/dist/routes/work.js +199 -0
- package/apps/runtime/dist/sandbox/index.js +27 -0
- package/apps/runtime/dist/services/access.js +38 -17
- package/apps/runtime/dist/services/api.js +38 -13
- package/apps/runtime/dist/services/architect.js +3 -3
- package/apps/runtime/dist/services/assistant-chats.js +9 -1
- package/apps/runtime/dist/services/brand.js +12 -12
- package/apps/runtime/dist/services/broker-bell.js +69 -0
- package/apps/runtime/dist/services/broker-notify.js +127 -0
- package/apps/runtime/dist/services/client-steps.js +79 -0
- package/apps/runtime/dist/services/cloud.js +42 -42
- package/apps/runtime/dist/services/command-risk.js +51 -0
- package/apps/runtime/dist/services/discover.js +85 -0
- package/apps/runtime/dist/services/knowledge-model.js +13 -13
- package/apps/runtime/dist/services/knowledge.js +117 -80
- package/apps/runtime/dist/services/manage-reports.js +74 -7
- package/apps/runtime/dist/services/members-studio.js +165 -0
- package/apps/runtime/dist/services/onboarding.js +22 -22
- package/apps/runtime/dist/services/package-file.js +1 -1
- package/apps/runtime/dist/services/package.js +22 -22
- package/apps/runtime/dist/services/pages.js +7 -7
- package/apps/runtime/dist/services/runs.js +4 -3
- package/apps/runtime/dist/services/seen.js +55 -0
- package/apps/runtime/dist/services/shares.js +23 -13
- package/apps/runtime/dist/services/site.js +23 -23
- package/apps/runtime/dist/services/skills-registry.js +15 -15
- package/apps/runtime/dist/services/skills.js +44 -44
- package/apps/runtime/dist/services/space-categories.js +35 -35
- package/apps/runtime/dist/services/space-data.js +130 -111
- package/apps/runtime/dist/services/{project-files.js → space-files.js} +84 -75
- package/apps/runtime/dist/services/{project-index.js → space-index.js} +116 -73
- package/apps/runtime/dist/services/space-origin.js +19 -11
- package/apps/runtime/dist/services/spaces.js +478 -612
- package/apps/runtime/dist/services/synced-spaces.js +668 -0
- package/apps/runtime/dist/services/themes.js +15 -15
- package/apps/runtime/dist/services/widgets.js +6 -6
- package/apps/runtime/dist/services/wizards.js +112 -38
- package/apps/runtime/dist/services/work-ai.js +257 -0
- package/apps/runtime/dist/services/work-approvals.js +104 -0
- package/apps/runtime/dist/services/work-chats.js +908 -0
- package/apps/runtime/dist/services/work-connections.js +90 -0
- package/apps/runtime/dist/services/work-files.js +85 -0
- package/apps/runtime/dist/services/work-mastra.js +73 -0
- package/apps/runtime/dist/services/work-sandbox.js +42 -0
- package/apps/runtime/dist/sharing/files.js +14 -4
- package/apps/runtime/dist/sharing/index.js +40 -39
- package/apps/runtime/dist/sharing/jobs.js +67 -17
- package/apps/runtime/dist/sharing/targets/connector.js +10 -6
- package/apps/runtime/dist/sharing/targets/email.js +10 -8
- package/apps/runtime/dist/sharing/targets/slack.js +10 -8
- package/apps/runtime/dist/sharing/targets/storage.js +6 -4
- package/apps/runtime/dist/store/index.js +14 -3
- package/apps/runtime/dist/store/shared-lists.js +4 -2
- package/apps/runtime/dist/sync/apply.js +2 -2
- package/apps/runtime/dist/sync/client.js +113 -113
- package/apps/runtime/dist/sync/hub.js +41 -41
- package/apps/runtime/dist/sync/log.js +12 -12
- package/apps/runtime/dist/sync/records.js +118 -120
- package/apps/runtime/dist/texts.js +38 -2
- package/apps/runtime/dist/tools/connections.js +112 -0
- package/apps/runtime/dist/tools/connector.js +157 -67
- package/apps/runtime/dist/tools/index.js +28 -13
- package/apps/runtime/dist/tools/mail.js +40 -11
- package/apps/runtime/dist/tools/pages.js +11 -5
- package/apps/runtime/dist/tools/plugin.js +43 -7
- package/apps/runtime/dist/tools/skills.js +1 -1
- package/apps/runtime/dist/tools/{project.js → space.js} +30 -25
- package/apps/runtime/dist/tools/store.js +3 -2
- package/apps/runtime/dist/widgets/step.js +10 -10
- package/apps/web/dist/assets/AboutDialog-DgfeipUc.js +1 -0
- package/apps/web/dist/assets/CapabilitiesPage-BoYJvgIu.js +2 -0
- package/apps/web/dist/assets/{ChangelogDialog-SwyId00t.js → ChangelogDialog-Duab4zTO.js} +1 -1
- package/apps/web/dist/assets/{CodeEditor-BwZsk5Al.js → CodeEditor-nxoOt8ge.js} +1 -1
- package/apps/web/dist/assets/EditorPage-ZrgGpYMC.js +3 -0
- package/apps/web/dist/assets/{FlowPreview-DtSpjVTl.js → FlowPreview-aMfwcPul.js} +1 -1
- package/apps/web/dist/assets/LangSwitch-DpD0inR4.js +1 -0
- package/apps/web/dist/assets/Marketplace-CpzD9pNQ.js +2 -0
- package/apps/web/dist/assets/NewWizardChannels-IB18afWN.js +1 -0
- package/apps/web/dist/assets/NewWizardPage-rYbcmPGG.js +7 -0
- package/apps/web/dist/assets/OnboardingPage-ztHT01ah.js +1 -0
- package/apps/web/dist/assets/PreviewPane-DviWTLfi.js +9 -0
- package/apps/web/dist/assets/PublicRunner-C2geZhhM.js +1 -0
- package/apps/web/dist/assets/ReadOnly-kSb_Kbdm.js +1 -0
- package/apps/web/dist/assets/SettingsPage-DM2h8N0J.js +2 -0
- package/apps/web/dist/assets/SetupPage-Wfyz6xH4.js +1 -0
- package/apps/web/dist/assets/SharePage-CyWQorWB.js +1 -0
- package/apps/web/dist/assets/SkillEditor-CqQMg2MC.js +1 -0
- package/apps/web/dist/assets/Skills-CnhpgoOA.js +9 -0
- package/apps/web/dist/assets/SpacePage-q4Bk3N7k.js +2 -0
- package/apps/web/dist/assets/UpdateCheck-C2CE6CC3.js +2 -0
- package/apps/web/dist/assets/changelog-B6hN1Cp7.js +1 -0
- package/apps/web/dist/assets/circle-alert-C8Ma-bPY.js +1 -0
- package/apps/web/dist/assets/circle-check-Bu9Z3mlJ.js +1 -0
- package/apps/web/dist/assets/code-editor-CfTGqOpp.js +2 -0
- package/apps/web/dist/assets/{code-xml-TwKzzMtA.js → code-xml-B4kLFZSj.js} +1 -1
- package/apps/web/dist/assets/connection-sign-in-CIiv0t2p.js +1 -0
- package/apps/web/dist/assets/esm-Xwn4GtqG.js +7 -0
- package/apps/web/dist/assets/{eye-Brd-xPUJ.js → eye-BpoKpIdt.js} +1 -1
- package/apps/web/dist/assets/host-BrP-ENHg.css +1 -0
- package/apps/web/dist/assets/host-DJ7-p0Sc.js +118 -0
- package/apps/web/dist/assets/i18n-BJ7Ld6O6.js +55 -0
- package/apps/web/dist/assets/index-D18DvnxX.css +1 -0
- package/apps/web/dist/assets/index-D2akynS-.js +10 -0
- package/apps/web/dist/assets/logo-BpnjXTRy.js +1 -0
- package/apps/web/dist/assets/oss-credits-IdX5bc71.js +1 -0
- package/apps/web/dist/assets/{phone-DhkHteoJ.js → phone-Ctvf-Am-.js} +1 -1
- package/apps/web/dist/assets/read-aloud-Da_RSm2S.js +1 -0
- package/apps/web/dist/assets/{runners-G-XYaDgR.js → runners-CyIvJIHr.js} +1 -1
- package/apps/web/dist/assets/scroll-text-ChrjRu9Y.js +1 -0
- package/apps/web/dist/assets/session-SXPtTWRK.js +2 -0
- package/apps/web/dist/assets/theme-CbTcTFWy.js +11 -0
- package/apps/web/dist/assets/ui-Uqnx1UpK.js +82 -0
- package/apps/web/dist/assets/{upload-BYZTwJTD.js → upload-BchUnQGV.js} +1 -1
- package/apps/web/dist/assets/{useMutation-D0QP_k2-.js → useMutation-DEkZhp5c.js} +1 -1
- package/apps/web/dist/assets/{volume-2-CVHoxdGM.js → volume-2-CU_oy81Z.js} +1 -1
- package/apps/web/dist/assets/with-selector-CoMyWBAX.js +1 -0
- package/apps/web/dist/index.html +17 -10
- package/apps/web/dist/mcp/flow.html +119 -64
- package/node_modules/@engenty/wizards/dist/plugin/index.d.ts +20 -10
- package/node_modules/@engenty/wizards-shared/dist/assistant.d.ts +6 -1
- package/node_modules/@engenty/wizards-shared/dist/assistant.js +6 -1
- package/node_modules/@engenty/wizards-shared/dist/connectors.d.ts +236 -2
- package/node_modules/@engenty/wizards-shared/dist/connectors.js +52 -2
- package/node_modules/@engenty/wizards-shared/dist/definition.d.ts +150 -8
- package/node_modules/@engenty/wizards-shared/dist/definition.js +46 -11
- package/node_modules/@engenty/wizards-shared/dist/discover.d.ts +21 -0
- package/node_modules/@engenty/wizards-shared/dist/discover.js +1 -0
- package/node_modules/@engenty/wizards-shared/dist/feature-flags.d.ts +26 -2
- package/node_modules/@engenty/wizards-shared/dist/feature-flags.js +26 -2
- package/node_modules/@engenty/wizards-shared/dist/fit.js +1 -1
- package/node_modules/@engenty/wizards-shared/dist/json-schema.d.ts +1 -1
- package/node_modules/@engenty/wizards-shared/dist/json-schema.js +1 -1
- package/node_modules/@engenty/wizards-shared/dist/live.d.ts +2 -2
- package/node_modules/@engenty/wizards-shared/dist/live.js +1 -1
- package/node_modules/@engenty/wizards-shared/dist/marketplace.js +3 -1
- package/node_modules/@engenty/wizards-shared/dist/run.d.ts +54 -6
- package/node_modules/@engenty/wizards-shared/dist/run.js +85 -0
- package/node_modules/@engenty/wizards-shared/dist/runner-texts.d.ts +15 -1
- package/node_modules/@engenty/wizards-shared/dist/runner-texts.js +14 -0
- package/node_modules/@engenty/wizards-shared/dist/rwx.d.ts +42 -0
- package/node_modules/@engenty/wizards-shared/dist/rwx.js +29 -0
- package/node_modules/@engenty/wizards-shared/dist/skills.d.ts +1 -1
- package/node_modules/@engenty/wizards-shared/dist/space-data.d.ts +2 -2
- package/node_modules/@engenty/wizards-shared/dist/{projects.d.ts → spaces.d.ts} +39 -15
- package/node_modules/@engenty/wizards-shared/dist/{projects.js → spaces.js} +16 -9
- package/node_modules/@engenty/wizards-shared/dist/store.d.ts +7 -2
- package/node_modules/@engenty/wizards-shared/dist/surface.d.ts +35 -4
- package/node_modules/@engenty/wizards-shared/dist/surface.js +121 -3
- package/node_modules/@engenty/wizards-shared/dist/sync.d.ts +1 -1
- package/node_modules/@engenty/wizards-shared/dist/theme-look.js +1 -1
- package/node_modules/@engenty/wizards-shared/dist/wizard-package.d.ts +2 -2
- package/node_modules/@engenty/wizards-shared/dist/wizard-package.js +3 -3
- package/package.json +4 -1
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/plugin.json +1 -1
- package/plugin/skills/build-wizard/SKILL.md +1 -1
- package/apps/runtime/dist/services/projects.js +0 -473
- package/apps/web/dist/assets/AboutDialog-B-JxkELB.js +0 -1
- package/apps/web/dist/assets/EditorPage-DQ_2FOzI.js +0 -3
- package/apps/web/dist/assets/Marketplace-DoH4YO3D.js +0 -2
- package/apps/web/dist/assets/NewWizardChannels-Tgoexgj4.js +0 -1
- package/apps/web/dist/assets/NewWizardPage-B24AF482.js +0 -7
- package/apps/web/dist/assets/OnboardingPage-BEvq4slJ.js +0 -1
- package/apps/web/dist/assets/PreviewPane-B_v7Y8R7.js +0 -10
- package/apps/web/dist/assets/ProjectPage-ClRuhFJo.js +0 -10
- package/apps/web/dist/assets/PublicRunner-MicrpVsv.js +0 -1
- package/apps/web/dist/assets/ReadOnly-BXjv-MSv.js +0 -1
- package/apps/web/dist/assets/SettingsPage-DY8O1r43.js +0 -2
- package/apps/web/dist/assets/SetupPage-BOVkVpMu.js +0 -1
- package/apps/web/dist/assets/SharePage-DXGzJSnR.js +0 -1
- package/apps/web/dist/assets/SkillEditor-BzzTDeaU.js +0 -1
- package/apps/web/dist/assets/changelog-BLdS-0Bj.js +0 -1
- package/apps/web/dist/assets/esm-BdxDT9Km.js +0 -7
- package/apps/web/dist/assets/i18n-8-Sw11tB.js +0 -55
- package/apps/web/dist/assets/index-OsdQFHmh.js +0 -49
- package/apps/web/dist/assets/index-QPipX5Fi.css +0 -1
- package/apps/web/dist/assets/lock-C0uxcOlq.js +0 -1
- package/apps/web/dist/assets/logo-CGNoptDg.js +0 -1
- package/apps/web/dist/assets/oss-credits-DpRWUPjD.js +0 -1
- package/apps/web/dist/assets/session-BWI-KENJ.js +0 -2
- package/apps/web/dist/assets/theme-D7krsx0_.js +0 -11
- package/apps/web/dist/assets/ui-DSXG3f49.js +0 -83
- /package/apps/runtime/dist/db/migrations/tenant/{0027_space_skill.sql → 0030_space_skill.sql} +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
CREATE TABLE `rwx_rule` (
|
|
2
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`tenant_id` text NOT NULL,
|
|
4
|
+
`space_id` text NOT NULL,
|
|
5
|
+
`subject_kind` text NOT NULL,
|
|
6
|
+
`subject_id` text,
|
|
7
|
+
`resource_kind` text NOT NULL,
|
|
8
|
+
`resource_id` text NOT NULL,
|
|
9
|
+
`r` text,
|
|
10
|
+
`w` text,
|
|
11
|
+
`x` text,
|
|
12
|
+
`created_by` text NOT NULL,
|
|
13
|
+
`created_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
|
14
|
+
FOREIGN KEY (`space_id`) REFERENCES `space`(`id`) ON UPDATE no action ON DELETE cascade
|
|
15
|
+
);
|
|
16
|
+
--> statement-breakpoint
|
|
17
|
+
CREATE UNIQUE INDEX `rwx_rule_key` ON `rwx_rule` (`space_id`,`subject_kind`,`subject_id`,`resource_kind`,`resource_id`);--> statement-breakpoint
|
|
18
|
+
CREATE INDEX `rwx_rule_space` ON `rwx_rule` (`space_id`);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
CREATE TABLE `broker_log` (
|
|
2
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`at` integer NOT NULL,
|
|
4
|
+
`duration_ms` integer NOT NULL,
|
|
5
|
+
`who_kind` text NOT NULL,
|
|
6
|
+
`who_id` text,
|
|
7
|
+
`run_id` text,
|
|
8
|
+
`chat_id` text,
|
|
9
|
+
`wizard_id` text,
|
|
10
|
+
`space_id` text,
|
|
11
|
+
`connection_id` text NOT NULL,
|
|
12
|
+
`action_id` text NOT NULL,
|
|
13
|
+
`kind` text NOT NULL,
|
|
14
|
+
`input_summary` text NOT NULL,
|
|
15
|
+
`outcome` text NOT NULL,
|
|
16
|
+
`reason` text,
|
|
17
|
+
`result` text,
|
|
18
|
+
`result_size` integer,
|
|
19
|
+
`critical` integer DEFAULT false NOT NULL
|
|
20
|
+
);
|
|
21
|
+
--> statement-breakpoint
|
|
22
|
+
CREATE INDEX `broker_log_connection` ON `broker_log` (`connection_id`,`at`);--> statement-breakpoint
|
|
23
|
+
CREATE INDEX `broker_log_space` ON `broker_log` (`space_id`,`at`);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
CREATE TABLE `space_connection` (
|
|
2
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`space_id` text NOT NULL,
|
|
4
|
+
`connector_id` text NOT NULL,
|
|
5
|
+
`plugin` text,
|
|
6
|
+
`name` text NOT NULL,
|
|
7
|
+
`label` text,
|
|
8
|
+
`sign_in` text NOT NULL,
|
|
9
|
+
`audience` text NOT NULL,
|
|
10
|
+
`rules` text NOT NULL,
|
|
11
|
+
`actions` text DEFAULT '[]' NOT NULL,
|
|
12
|
+
`secret` text,
|
|
13
|
+
`set_up_by` text,
|
|
14
|
+
`set_up_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
|
15
|
+
`updated_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
|
16
|
+
`last_used_at` integer,
|
|
17
|
+
FOREIGN KEY (`space_id`) REFERENCES `space`(`id`) ON UPDATE no action ON DELETE cascade
|
|
18
|
+
);
|
|
19
|
+
--> statement-breakpoint
|
|
20
|
+
CREATE INDEX `space_connection_space` ON `space_connection` (`space_id`);--> statement-breakpoint
|
|
21
|
+
CREATE TABLE `space_connection_sign_in` (
|
|
22
|
+
`connection_id` text NOT NULL,
|
|
23
|
+
`user_id` text NOT NULL,
|
|
24
|
+
`label` text NOT NULL,
|
|
25
|
+
`secret` text NOT NULL,
|
|
26
|
+
`signed_in_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
|
27
|
+
`updated_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
|
|
28
|
+
PRIMARY KEY(`connection_id`, `user_id`),
|
|
29
|
+
FOREIGN KEY (`connection_id`) REFERENCES `space_connection`(`id`) ON UPDATE no action ON DELETE cascade
|
|
30
|
+
);
|
|
31
|
+
--> statement-breakpoint
|
|
32
|
+
INSERT INTO `space_connection` (`id`, `space_id`, `connector_id`, `plugin`, `name`, `label`, `sign_in`, `audience`, `rules`, `actions`, `secret`, `set_up_by`, `set_up_at`, `updated_at`, `last_used_at`)
|
|
33
|
+
SELECT `id`, `space_id`, `connector`, `plugin`, `label`, `label`, 'space', 'all', '{"read":"allow","write":"ask","destructive":"deny","send":"ask"}', `actions`, `data`, `created_by`, `created_at`, `updated_at`, NULL
|
|
34
|
+
FROM `plugin_connection`;--> statement-breakpoint
|
|
35
|
+
DROP TABLE `plugin_connection`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE `run` ADD `grant` text;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE `chat_approval` ADD `held_for` text DEFAULT 'asker' NOT NULL;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
ALTER TABLE `broker_log` ADD `step_id` text;--> statement-breakpoint
|
|
2
|
+
CREATE INDEX `broker_log_run` ON `broker_log` (`run_id`);--> statement-breakpoint
|
|
3
|
+
CREATE INDEX `broker_log_wizard` ON `broker_log` (`wizard_id`,`kind`,`at`);--> statement-breakpoint
|
|
4
|
+
ALTER TABLE `space` ADD `mail_domains` text DEFAULT '[]' NOT NULL;--> statement-breakpoint
|
|
5
|
+
ALTER TABLE `wizard` ADD `daily_mail_limit` integer DEFAULT 50 NOT NULL;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
CREATE TABLE `person_seen` (
|
|
2
|
+
`user_id` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`seen_at` integer NOT NULL,
|
|
4
|
+
`bell_seen_at` integer
|
|
5
|
+
);
|
|
6
|
+
--> statement-breakpoint
|
|
7
|
+
ALTER TABLE `broker_log` ADD `rule` text;--> statement-breakpoint
|
|
8
|
+
ALTER TABLE `broker_log` ADD `critical_kind` text;--> statement-breakpoint
|
|
9
|
+
CREATE INDEX `broker_log_critical` ON `broker_log` (`space_id`,`critical`,`at`);--> statement-breakpoint
|
|
10
|
+
ALTER TABLE `space` ADD `notify` text DEFAULT '{"bell":true,"mail":"hourly"}' NOT NULL;--> statement-breakpoint
|
|
11
|
+
ALTER TABLE `space` ADD `critical_mailed_at` integer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE `space` ADD `members_studio` integer DEFAULT false NOT NULL;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "6",
|
|
3
3
|
"dialect": "sqlite",
|
|
4
|
-
"id": "
|
|
4
|
+
"id": "d53607f4-c8dc-438a-949f-737a77f815a8",
|
|
5
5
|
"prevId": "b21b05ff-f306-4b7b-b7bf-425e106e96bc",
|
|
6
6
|
"tables": {
|
|
7
7
|
"asset": {
|
|
@@ -269,6 +269,388 @@
|
|
|
269
269
|
"uniqueConstraints": {},
|
|
270
270
|
"checkConstraints": {}
|
|
271
271
|
},
|
|
272
|
+
"chat": {
|
|
273
|
+
"name": "chat",
|
|
274
|
+
"columns": {
|
|
275
|
+
"id": {
|
|
276
|
+
"name": "id",
|
|
277
|
+
"type": "text",
|
|
278
|
+
"primaryKey": true,
|
|
279
|
+
"notNull": true,
|
|
280
|
+
"autoincrement": false
|
|
281
|
+
},
|
|
282
|
+
"tenant_id": {
|
|
283
|
+
"name": "tenant_id",
|
|
284
|
+
"type": "text",
|
|
285
|
+
"primaryKey": false,
|
|
286
|
+
"notNull": true,
|
|
287
|
+
"autoincrement": false
|
|
288
|
+
},
|
|
289
|
+
"project_id": {
|
|
290
|
+
"name": "project_id",
|
|
291
|
+
"type": "text",
|
|
292
|
+
"primaryKey": false,
|
|
293
|
+
"notNull": true,
|
|
294
|
+
"autoincrement": false
|
|
295
|
+
},
|
|
296
|
+
"title": {
|
|
297
|
+
"name": "title",
|
|
298
|
+
"type": "text",
|
|
299
|
+
"primaryKey": false,
|
|
300
|
+
"notNull": true,
|
|
301
|
+
"autoincrement": false
|
|
302
|
+
},
|
|
303
|
+
"section_id": {
|
|
304
|
+
"name": "section_id",
|
|
305
|
+
"type": "text",
|
|
306
|
+
"primaryKey": false,
|
|
307
|
+
"notNull": false,
|
|
308
|
+
"autoincrement": false
|
|
309
|
+
},
|
|
310
|
+
"parent_id": {
|
|
311
|
+
"name": "parent_id",
|
|
312
|
+
"type": "text",
|
|
313
|
+
"primaryKey": false,
|
|
314
|
+
"notNull": false,
|
|
315
|
+
"autoincrement": false
|
|
316
|
+
},
|
|
317
|
+
"private": {
|
|
318
|
+
"name": "private",
|
|
319
|
+
"type": "integer",
|
|
320
|
+
"primaryKey": false,
|
|
321
|
+
"notNull": true,
|
|
322
|
+
"autoincrement": false,
|
|
323
|
+
"default": false
|
|
324
|
+
},
|
|
325
|
+
"created_by": {
|
|
326
|
+
"name": "created_by",
|
|
327
|
+
"type": "text",
|
|
328
|
+
"primaryKey": false,
|
|
329
|
+
"notNull": true,
|
|
330
|
+
"autoincrement": false
|
|
331
|
+
},
|
|
332
|
+
"created_at": {
|
|
333
|
+
"name": "created_at",
|
|
334
|
+
"type": "integer",
|
|
335
|
+
"primaryKey": false,
|
|
336
|
+
"notNull": true,
|
|
337
|
+
"autoincrement": false,
|
|
338
|
+
"default": "(unixepoch() * 1000)"
|
|
339
|
+
},
|
|
340
|
+
"updated_at": {
|
|
341
|
+
"name": "updated_at",
|
|
342
|
+
"type": "integer",
|
|
343
|
+
"primaryKey": false,
|
|
344
|
+
"notNull": true,
|
|
345
|
+
"autoincrement": false,
|
|
346
|
+
"default": "(unixepoch() * 1000)"
|
|
347
|
+
},
|
|
348
|
+
"last_author_id": {
|
|
349
|
+
"name": "last_author_id",
|
|
350
|
+
"type": "text",
|
|
351
|
+
"primaryKey": false,
|
|
352
|
+
"notNull": false,
|
|
353
|
+
"autoincrement": false
|
|
354
|
+
},
|
|
355
|
+
"last_author_name": {
|
|
356
|
+
"name": "last_author_name",
|
|
357
|
+
"type": "text",
|
|
358
|
+
"primaryKey": false,
|
|
359
|
+
"notNull": false,
|
|
360
|
+
"autoincrement": false
|
|
361
|
+
},
|
|
362
|
+
"last_text": {
|
|
363
|
+
"name": "last_text",
|
|
364
|
+
"type": "text",
|
|
365
|
+
"primaryKey": false,
|
|
366
|
+
"notNull": false,
|
|
367
|
+
"autoincrement": false
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"indexes": {
|
|
371
|
+
"chat_project": {
|
|
372
|
+
"name": "chat_project",
|
|
373
|
+
"columns": [
|
|
374
|
+
"project_id",
|
|
375
|
+
"updated_at"
|
|
376
|
+
],
|
|
377
|
+
"isUnique": false
|
|
378
|
+
},
|
|
379
|
+
"chat_parent": {
|
|
380
|
+
"name": "chat_parent",
|
|
381
|
+
"columns": [
|
|
382
|
+
"parent_id"
|
|
383
|
+
],
|
|
384
|
+
"isUnique": false
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"foreignKeys": {
|
|
388
|
+
"chat_project_id_project_id_fk": {
|
|
389
|
+
"name": "chat_project_id_project_id_fk",
|
|
390
|
+
"tableFrom": "chat",
|
|
391
|
+
"tableTo": "project",
|
|
392
|
+
"columnsFrom": [
|
|
393
|
+
"project_id"
|
|
394
|
+
],
|
|
395
|
+
"columnsTo": [
|
|
396
|
+
"id"
|
|
397
|
+
],
|
|
398
|
+
"onDelete": "cascade",
|
|
399
|
+
"onUpdate": "no action"
|
|
400
|
+
},
|
|
401
|
+
"chat_section_id_chat_section_id_fk": {
|
|
402
|
+
"name": "chat_section_id_chat_section_id_fk",
|
|
403
|
+
"tableFrom": "chat",
|
|
404
|
+
"tableTo": "chat_section",
|
|
405
|
+
"columnsFrom": [
|
|
406
|
+
"section_id"
|
|
407
|
+
],
|
|
408
|
+
"columnsTo": [
|
|
409
|
+
"id"
|
|
410
|
+
],
|
|
411
|
+
"onDelete": "set null",
|
|
412
|
+
"onUpdate": "no action"
|
|
413
|
+
},
|
|
414
|
+
"chat_parent_id_chat_id_fk": {
|
|
415
|
+
"name": "chat_parent_id_chat_id_fk",
|
|
416
|
+
"tableFrom": "chat",
|
|
417
|
+
"tableTo": "chat",
|
|
418
|
+
"columnsFrom": [
|
|
419
|
+
"parent_id"
|
|
420
|
+
],
|
|
421
|
+
"columnsTo": [
|
|
422
|
+
"id"
|
|
423
|
+
],
|
|
424
|
+
"onDelete": "cascade",
|
|
425
|
+
"onUpdate": "no action"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"compositePrimaryKeys": {},
|
|
429
|
+
"uniqueConstraints": {},
|
|
430
|
+
"checkConstraints": {}
|
|
431
|
+
},
|
|
432
|
+
"chat_member": {
|
|
433
|
+
"name": "chat_member",
|
|
434
|
+
"columns": {
|
|
435
|
+
"chat_id": {
|
|
436
|
+
"name": "chat_id",
|
|
437
|
+
"type": "text",
|
|
438
|
+
"primaryKey": false,
|
|
439
|
+
"notNull": true,
|
|
440
|
+
"autoincrement": false
|
|
441
|
+
},
|
|
442
|
+
"kind": {
|
|
443
|
+
"name": "kind",
|
|
444
|
+
"type": "text",
|
|
445
|
+
"primaryKey": false,
|
|
446
|
+
"notNull": true,
|
|
447
|
+
"autoincrement": false
|
|
448
|
+
},
|
|
449
|
+
"member_id": {
|
|
450
|
+
"name": "member_id",
|
|
451
|
+
"type": "text",
|
|
452
|
+
"primaryKey": false,
|
|
453
|
+
"notNull": true,
|
|
454
|
+
"autoincrement": false
|
|
455
|
+
},
|
|
456
|
+
"joined_at": {
|
|
457
|
+
"name": "joined_at",
|
|
458
|
+
"type": "integer",
|
|
459
|
+
"primaryKey": false,
|
|
460
|
+
"notNull": true,
|
|
461
|
+
"autoincrement": false,
|
|
462
|
+
"default": "(unixepoch() * 1000)"
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
"indexes": {
|
|
466
|
+
"chat_member_member": {
|
|
467
|
+
"name": "chat_member_member",
|
|
468
|
+
"columns": [
|
|
469
|
+
"kind",
|
|
470
|
+
"member_id"
|
|
471
|
+
],
|
|
472
|
+
"isUnique": false
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
"foreignKeys": {
|
|
476
|
+
"chat_member_chat_id_chat_id_fk": {
|
|
477
|
+
"name": "chat_member_chat_id_chat_id_fk",
|
|
478
|
+
"tableFrom": "chat_member",
|
|
479
|
+
"tableTo": "chat",
|
|
480
|
+
"columnsFrom": [
|
|
481
|
+
"chat_id"
|
|
482
|
+
],
|
|
483
|
+
"columnsTo": [
|
|
484
|
+
"id"
|
|
485
|
+
],
|
|
486
|
+
"onDelete": "cascade",
|
|
487
|
+
"onUpdate": "no action"
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"compositePrimaryKeys": {
|
|
491
|
+
"chat_member_chat_id_kind_member_id_pk": {
|
|
492
|
+
"columns": [
|
|
493
|
+
"chat_id",
|
|
494
|
+
"kind",
|
|
495
|
+
"member_id"
|
|
496
|
+
],
|
|
497
|
+
"name": "chat_member_chat_id_kind_member_id_pk"
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
"uniqueConstraints": {},
|
|
501
|
+
"checkConstraints": {}
|
|
502
|
+
},
|
|
503
|
+
"chat_section": {
|
|
504
|
+
"name": "chat_section",
|
|
505
|
+
"columns": {
|
|
506
|
+
"id": {
|
|
507
|
+
"name": "id",
|
|
508
|
+
"type": "text",
|
|
509
|
+
"primaryKey": true,
|
|
510
|
+
"notNull": true,
|
|
511
|
+
"autoincrement": false
|
|
512
|
+
},
|
|
513
|
+
"tenant_id": {
|
|
514
|
+
"name": "tenant_id",
|
|
515
|
+
"type": "text",
|
|
516
|
+
"primaryKey": false,
|
|
517
|
+
"notNull": true,
|
|
518
|
+
"autoincrement": false
|
|
519
|
+
},
|
|
520
|
+
"project_id": {
|
|
521
|
+
"name": "project_id",
|
|
522
|
+
"type": "text",
|
|
523
|
+
"primaryKey": false,
|
|
524
|
+
"notNull": true,
|
|
525
|
+
"autoincrement": false
|
|
526
|
+
},
|
|
527
|
+
"name": {
|
|
528
|
+
"name": "name",
|
|
529
|
+
"type": "text",
|
|
530
|
+
"primaryKey": false,
|
|
531
|
+
"notNull": true,
|
|
532
|
+
"autoincrement": false
|
|
533
|
+
},
|
|
534
|
+
"position": {
|
|
535
|
+
"name": "position",
|
|
536
|
+
"type": "integer",
|
|
537
|
+
"primaryKey": false,
|
|
538
|
+
"notNull": true,
|
|
539
|
+
"autoincrement": false,
|
|
540
|
+
"default": 0
|
|
541
|
+
},
|
|
542
|
+
"created_by": {
|
|
543
|
+
"name": "created_by",
|
|
544
|
+
"type": "text",
|
|
545
|
+
"primaryKey": false,
|
|
546
|
+
"notNull": true,
|
|
547
|
+
"autoincrement": false
|
|
548
|
+
},
|
|
549
|
+
"created_at": {
|
|
550
|
+
"name": "created_at",
|
|
551
|
+
"type": "integer",
|
|
552
|
+
"primaryKey": false,
|
|
553
|
+
"notNull": true,
|
|
554
|
+
"autoincrement": false,
|
|
555
|
+
"default": "(unixepoch() * 1000)"
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
"indexes": {
|
|
559
|
+
"chat_section_project": {
|
|
560
|
+
"name": "chat_section_project",
|
|
561
|
+
"columns": [
|
|
562
|
+
"project_id",
|
|
563
|
+
"position"
|
|
564
|
+
],
|
|
565
|
+
"isUnique": false
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
"foreignKeys": {
|
|
569
|
+
"chat_section_project_id_project_id_fk": {
|
|
570
|
+
"name": "chat_section_project_id_project_id_fk",
|
|
571
|
+
"tableFrom": "chat_section",
|
|
572
|
+
"tableTo": "project",
|
|
573
|
+
"columnsFrom": [
|
|
574
|
+
"project_id"
|
|
575
|
+
],
|
|
576
|
+
"columnsTo": [
|
|
577
|
+
"id"
|
|
578
|
+
],
|
|
579
|
+
"onDelete": "cascade",
|
|
580
|
+
"onUpdate": "no action"
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
"compositePrimaryKeys": {},
|
|
584
|
+
"uniqueConstraints": {},
|
|
585
|
+
"checkConstraints": {}
|
|
586
|
+
},
|
|
587
|
+
"chat_state": {
|
|
588
|
+
"name": "chat_state",
|
|
589
|
+
"columns": {
|
|
590
|
+
"chat_id": {
|
|
591
|
+
"name": "chat_id",
|
|
592
|
+
"type": "text",
|
|
593
|
+
"primaryKey": false,
|
|
594
|
+
"notNull": true,
|
|
595
|
+
"autoincrement": false
|
|
596
|
+
},
|
|
597
|
+
"user_id": {
|
|
598
|
+
"name": "user_id",
|
|
599
|
+
"type": "text",
|
|
600
|
+
"primaryKey": false,
|
|
601
|
+
"notNull": true,
|
|
602
|
+
"autoincrement": false
|
|
603
|
+
},
|
|
604
|
+
"pinned_at": {
|
|
605
|
+
"name": "pinned_at",
|
|
606
|
+
"type": "integer",
|
|
607
|
+
"primaryKey": false,
|
|
608
|
+
"notNull": false,
|
|
609
|
+
"autoincrement": false
|
|
610
|
+
},
|
|
611
|
+
"archived_at": {
|
|
612
|
+
"name": "archived_at",
|
|
613
|
+
"type": "integer",
|
|
614
|
+
"primaryKey": false,
|
|
615
|
+
"notNull": false,
|
|
616
|
+
"autoincrement": false
|
|
617
|
+
},
|
|
618
|
+
"read_at": {
|
|
619
|
+
"name": "read_at",
|
|
620
|
+
"type": "integer",
|
|
621
|
+
"primaryKey": false,
|
|
622
|
+
"notNull": false,
|
|
623
|
+
"autoincrement": false
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
"indexes": {},
|
|
627
|
+
"foreignKeys": {
|
|
628
|
+
"chat_state_chat_id_chat_id_fk": {
|
|
629
|
+
"name": "chat_state_chat_id_chat_id_fk",
|
|
630
|
+
"tableFrom": "chat_state",
|
|
631
|
+
"tableTo": "chat",
|
|
632
|
+
"columnsFrom": [
|
|
633
|
+
"chat_id"
|
|
634
|
+
],
|
|
635
|
+
"columnsTo": [
|
|
636
|
+
"id"
|
|
637
|
+
],
|
|
638
|
+
"onDelete": "cascade",
|
|
639
|
+
"onUpdate": "no action"
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
"compositePrimaryKeys": {
|
|
643
|
+
"chat_state_chat_id_user_id_pk": {
|
|
644
|
+
"columns": [
|
|
645
|
+
"chat_id",
|
|
646
|
+
"user_id"
|
|
647
|
+
],
|
|
648
|
+
"name": "chat_state_chat_id_user_id_pk"
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
"uniqueConstraints": {},
|
|
652
|
+
"checkConstraints": {}
|
|
653
|
+
},
|
|
272
654
|
"device_call": {
|
|
273
655
|
"name": "device_call",
|
|
274
656
|
"columns": {
|
|
@@ -2522,160 +2904,6 @@
|
|
|
2522
2904
|
"uniqueConstraints": {},
|
|
2523
2905
|
"checkConstraints": {}
|
|
2524
2906
|
},
|
|
2525
|
-
"space_skill": {
|
|
2526
|
-
"name": "space_skill",
|
|
2527
|
-
"columns": {
|
|
2528
|
-
"id": {
|
|
2529
|
-
"name": "id",
|
|
2530
|
-
"type": "text",
|
|
2531
|
-
"primaryKey": true,
|
|
2532
|
-
"notNull": true,
|
|
2533
|
-
"autoincrement": false
|
|
2534
|
-
},
|
|
2535
|
-
"tenant_id": {
|
|
2536
|
-
"name": "tenant_id",
|
|
2537
|
-
"type": "text",
|
|
2538
|
-
"primaryKey": false,
|
|
2539
|
-
"notNull": true,
|
|
2540
|
-
"autoincrement": false
|
|
2541
|
-
},
|
|
2542
|
-
"project_id": {
|
|
2543
|
-
"name": "project_id",
|
|
2544
|
-
"type": "text",
|
|
2545
|
-
"primaryKey": false,
|
|
2546
|
-
"notNull": true,
|
|
2547
|
-
"autoincrement": false
|
|
2548
|
-
},
|
|
2549
|
-
"name": {
|
|
2550
|
-
"name": "name",
|
|
2551
|
-
"type": "text",
|
|
2552
|
-
"primaryKey": false,
|
|
2553
|
-
"notNull": true,
|
|
2554
|
-
"autoincrement": false
|
|
2555
|
-
},
|
|
2556
|
-
"description": {
|
|
2557
|
-
"name": "description",
|
|
2558
|
-
"type": "text",
|
|
2559
|
-
"primaryKey": false,
|
|
2560
|
-
"notNull": true,
|
|
2561
|
-
"autoincrement": false
|
|
2562
|
-
},
|
|
2563
|
-
"body": {
|
|
2564
|
-
"name": "body",
|
|
2565
|
-
"type": "text",
|
|
2566
|
-
"primaryKey": false,
|
|
2567
|
-
"notNull": true,
|
|
2568
|
-
"autoincrement": false,
|
|
2569
|
-
"default": "''"
|
|
2570
|
-
},
|
|
2571
|
-
"meta": {
|
|
2572
|
-
"name": "meta",
|
|
2573
|
-
"type": "text",
|
|
2574
|
-
"primaryKey": false,
|
|
2575
|
-
"notNull": true,
|
|
2576
|
-
"autoincrement": false,
|
|
2577
|
-
"default": "'{}'"
|
|
2578
|
-
},
|
|
2579
|
-
"files": {
|
|
2580
|
-
"name": "files",
|
|
2581
|
-
"type": "text",
|
|
2582
|
-
"primaryKey": false,
|
|
2583
|
-
"notNull": true,
|
|
2584
|
-
"autoincrement": false,
|
|
2585
|
-
"default": "'[]'"
|
|
2586
|
-
},
|
|
2587
|
-
"blob_files": {
|
|
2588
|
-
"name": "blob_files",
|
|
2589
|
-
"type": "text",
|
|
2590
|
-
"primaryKey": false,
|
|
2591
|
-
"notNull": true,
|
|
2592
|
-
"autoincrement": false,
|
|
2593
|
-
"default": "'[]'"
|
|
2594
|
-
},
|
|
2595
|
-
"mode": {
|
|
2596
|
-
"name": "mode",
|
|
2597
|
-
"type": "text",
|
|
2598
|
-
"primaryKey": false,
|
|
2599
|
-
"notNull": true,
|
|
2600
|
-
"autoincrement": false,
|
|
2601
|
-
"default": "'demand'"
|
|
2602
|
-
},
|
|
2603
|
-
"run_scripts": {
|
|
2604
|
-
"name": "run_scripts",
|
|
2605
|
-
"type": "integer",
|
|
2606
|
-
"primaryKey": false,
|
|
2607
|
-
"notNull": true,
|
|
2608
|
-
"autoincrement": false,
|
|
2609
|
-
"default": false
|
|
2610
|
-
},
|
|
2611
|
-
"source": {
|
|
2612
|
-
"name": "source",
|
|
2613
|
-
"type": "text",
|
|
2614
|
-
"primaryKey": false,
|
|
2615
|
-
"notNull": true,
|
|
2616
|
-
"autoincrement": false,
|
|
2617
|
-
"default": "'own'"
|
|
2618
|
-
},
|
|
2619
|
-
"origin": {
|
|
2620
|
-
"name": "origin",
|
|
2621
|
-
"type": "text",
|
|
2622
|
-
"primaryKey": false,
|
|
2623
|
-
"notNull": false,
|
|
2624
|
-
"autoincrement": false
|
|
2625
|
-
},
|
|
2626
|
-
"origin_hash": {
|
|
2627
|
-
"name": "origin_hash",
|
|
2628
|
-
"type": "text",
|
|
2629
|
-
"primaryKey": false,
|
|
2630
|
-
"notNull": false,
|
|
2631
|
-
"autoincrement": false
|
|
2632
|
-
},
|
|
2633
|
-
"created_at": {
|
|
2634
|
-
"name": "created_at",
|
|
2635
|
-
"type": "integer",
|
|
2636
|
-
"primaryKey": false,
|
|
2637
|
-
"notNull": true,
|
|
2638
|
-
"autoincrement": false,
|
|
2639
|
-
"default": "(unixepoch() * 1000)"
|
|
2640
|
-
},
|
|
2641
|
-
"updated_at": {
|
|
2642
|
-
"name": "updated_at",
|
|
2643
|
-
"type": "integer",
|
|
2644
|
-
"primaryKey": false,
|
|
2645
|
-
"notNull": true,
|
|
2646
|
-
"autoincrement": false,
|
|
2647
|
-
"default": "(unixepoch() * 1000)"
|
|
2648
|
-
}
|
|
2649
|
-
},
|
|
2650
|
-
"indexes": {
|
|
2651
|
-
"space_skill_name": {
|
|
2652
|
-
"name": "space_skill_name",
|
|
2653
|
-
"columns": [
|
|
2654
|
-
"project_id",
|
|
2655
|
-
"name"
|
|
2656
|
-
],
|
|
2657
|
-
"isUnique": true
|
|
2658
|
-
}
|
|
2659
|
-
},
|
|
2660
|
-
"foreignKeys": {
|
|
2661
|
-
"space_skill_project_id_project_id_fk": {
|
|
2662
|
-
"name": "space_skill_project_id_project_id_fk",
|
|
2663
|
-
"tableFrom": "space_skill",
|
|
2664
|
-
"tableTo": "project",
|
|
2665
|
-
"columnsFrom": [
|
|
2666
|
-
"project_id"
|
|
2667
|
-
],
|
|
2668
|
-
"columnsTo": [
|
|
2669
|
-
"id"
|
|
2670
|
-
],
|
|
2671
|
-
"onDelete": "cascade",
|
|
2672
|
-
"onUpdate": "no action"
|
|
2673
|
-
}
|
|
2674
|
-
},
|
|
2675
|
-
"compositePrimaryKeys": {},
|
|
2676
|
-
"uniqueConstraints": {},
|
|
2677
|
-
"checkConstraints": {}
|
|
2678
|
-
},
|
|
2679
2907
|
"space_table": {
|
|
2680
2908
|
"name": "space_table",
|
|
2681
2909
|
"columns": {
|