@rudderhq/db 0.1.0-canary.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/LICENSE +14 -0
- package/dist/backup-lib.d.ts +24 -0
- package/dist/backup-lib.d.ts.map +1 -0
- package/dist/backup-lib.js +448 -0
- package/dist/backup-lib.js.map +1 -0
- package/dist/backup.d.ts +2 -0
- package/dist/backup.d.ts.map +1 -0
- package/dist/backup.js +103 -0
- package/dist/backup.js.map +1 -0
- package/dist/client.d.ts +59 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +761 -0
- package/dist/client.js.map +1 -0
- package/dist/client.test.d.ts +2 -0
- package/dist/client.test.d.ts.map +1 -0
- package/dist/client.test.js +343 -0
- package/dist/client.test.js.map +1 -0
- package/dist/embedded-postgres-recovery.d.ts +17 -0
- package/dist/embedded-postgres-recovery.d.ts.map +1 -0
- package/dist/embedded-postgres-recovery.js +75 -0
- package/dist/embedded-postgres-recovery.js.map +1 -0
- package/dist/embedded-postgres-recovery.test.d.ts +2 -0
- package/dist/embedded-postgres-recovery.test.d.ts.map +1 -0
- package/dist/embedded-postgres-recovery.test.js +39 -0
- package/dist/embedded-postgres-recovery.test.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/migrate.d.ts +2 -0
- package/dist/migrate.d.ts.map +1 -0
- package/dist/migrate.js +25 -0
- package/dist/migrate.js.map +1 -0
- package/dist/migration-runtime.d.ts +7 -0
- package/dist/migration-runtime.d.ts.map +1 -0
- package/dist/migration-runtime.js +206 -0
- package/dist/migration-runtime.js.map +1 -0
- package/dist/migration-status.d.ts +2 -0
- package/dist/migration-status.d.ts.map +1 -0
- package/dist/migration-status.js +55 -0
- package/dist/migration-status.js.map +1 -0
- package/dist/migrations/0000_mature_masked_marvel.sql +208 -0
- package/dist/migrations/0001_fast_northstar.sql +87 -0
- package/dist/migrations/0002_big_zaladane.sql +1 -0
- package/dist/migrations/0003_shallow_quentin_quire.sql +5 -0
- package/dist/migrations/0004_issue_identifiers.sql +28 -0
- package/dist/migrations/0005_chief_luke_cage.sql +19 -0
- package/dist/migrations/0006_overjoyed_mister_sinister.sql +36 -0
- package/dist/migrations/0007_new_quentin_quire.sql +20 -0
- package/dist/migrations/0008_amused_zzzax.sql +1 -0
- package/dist/migrations/0009_fast_jackal.sql +36 -0
- package/dist/migrations/0010_stale_justin_hammer.sql +37 -0
- package/dist/migrations/0011_windy_corsair.sql +18 -0
- package/dist/migrations/0012_perpetual_ser_duncan.sql +2 -0
- package/dist/migrations/0013_dashing_wasp.sql +4 -0
- package/dist/migrations/0014_many_mikhail_rasputin.sql +135 -0
- package/dist/migrations/0015_project_color_archived.sql +2 -0
- package/dist/migrations/0016_agent_icon.sql +1 -0
- package/dist/migrations/0017_tiresome_gabe_jones.sql +51 -0
- package/dist/migrations/0018_flat_sleepwalker.sql +26 -0
- package/dist/migrations/0019_public_victor_mancha.sql +18 -0
- package/dist/migrations/0020_white_anita_blake.sql +1 -0
- package/dist/migrations/0021_chief_vindicator.sql +1 -0
- package/dist/migrations/0022_company_brand_color.sql +1 -0
- package/dist/migrations/0023_fair_lethal_legion.sql +3 -0
- package/dist/migrations/0024_far_beast.sql +2 -0
- package/dist/migrations/0025_nasty_salo.sql +15 -0
- package/dist/migrations/0026_lying_pete_wisdom.sql +39 -0
- package/dist/migrations/0027_tranquil_tenebrous.sql +2 -0
- package/dist/migrations/0028_harsh_goliath.sql +54 -0
- package/dist/migrations/0029_plugin_tables.sql +177 -0
- package/dist/migrations/0030_rich_magneto.sql +12 -0
- package/dist/migrations/0031_zippy_magma.sql +51 -0
- package/dist/migrations/0032_pretty_doctor_octopus.sql +102 -0
- package/dist/migrations/0033_shiny_black_tarantula.sql +2 -0
- package/dist/migrations/0034_fat_dormammu.sql +2 -0
- package/dist/migrations/0035_marvelous_satana.sql +91 -0
- package/dist/migrations/0036_cheerful_nitro.sql +9 -0
- package/dist/migrations/0037_friendly_eddie_brock.sql +29 -0
- package/dist/migrations/0038_careless_iron_monger.sql +5 -0
- package/dist/migrations/0039_fat_magneto.sql +161 -0
- package/dist/migrations/0040_eager_shotgun.sql +5 -0
- package/dist/migrations/0041_curly_maria_hill.sql +1 -0
- package/dist/migrations/0042_spotty_the_renegades.sql +26 -0
- package/dist/migrations/0043_reflective_captain_universe.sql +6 -0
- package/dist/migrations/0044_illegal_toad.sql +56 -0
- package/dist/migrations/0045_company_chat_issue_creation_mode.sql +2 -0
- package/dist/migrations/0046_lean_jackpot.sql +79 -0
- package/dist/migrations/0047_productive_black_knight.sql +2 -0
- package/dist/migrations/0048_organization_rename.sql +153 -0
- package/dist/migrations/0049_calm_owl.sql +9 -0
- package/dist/migrations/0050_colorful_wolfpack.sql +83 -0
- package/dist/migrations/0051_chat_message_status.sql +1 -0
- package/dist/migrations/0052_chat_message_replying_agent.sql +1 -0
- package/dist/migrations/0053_chat_message_turn_branching.sql +3 -0
- package/dist/migrations/0054_organization_url_key.sql +58 -0
- package/dist/migrations/0055_illegal_sheva_callister.sql +1 -0
- package/dist/migrations/0056_bright_khan.sql +13 -0
- package/dist/migrations/0057_thin_mandroid.sql +16 -0
- package/dist/migrations/0058_calm_red_ghost.sql +1 -0
- package/dist/migrations/0058_messenger_threads.sql +27 -0
- package/dist/migrations/0059_tired_lockjaw.sql +2 -0
- package/dist/migrations/0060_stormy_zarek.sql +33 -0
- package/dist/migrations/0061_brave_blue_blade.sql +2 -0
- package/dist/migrations/0062_natural_vector.sql +1 -0
- package/dist/migrations/meta/0000_snapshot.json +1743 -0
- package/dist/migrations/meta/0001_snapshot.json +2441 -0
- package/dist/migrations/meta/0002_snapshot.json +2454 -0
- package/dist/migrations/meta/0003_snapshot.json +2502 -0
- package/dist/migrations/meta/0005_snapshot.json +2719 -0
- package/dist/migrations/meta/0006_snapshot.json +3048 -0
- package/dist/migrations/meta/0007_snapshot.json +3258 -0
- package/dist/migrations/meta/0008_snapshot.json +3264 -0
- package/dist/migrations/meta/0009_snapshot.json +3587 -0
- package/dist/migrations/meta/0010_snapshot.json +3929 -0
- package/dist/migrations/meta/0011_snapshot.json +4068 -0
- package/dist/migrations/meta/0012_snapshot.json +4087 -0
- package/dist/migrations/meta/0013_snapshot.json +4118 -0
- package/dist/migrations/meta/0014_snapshot.json +5187 -0
- package/dist/migrations/meta/0017_snapshot.json +5215 -0
- package/dist/migrations/meta/0018_snapshot.json +5450 -0
- package/dist/migrations/meta/0019_snapshot.json +5603 -0
- package/dist/migrations/meta/0020_snapshot.json +5603 -0
- package/dist/migrations/meta/0021_snapshot.json +5609 -0
- package/dist/migrations/meta/0023_snapshot.json +5633 -0
- package/dist/migrations/meta/0024_snapshot.json +5693 -0
- package/dist/migrations/meta/0025_snapshot.json +5849 -0
- package/dist/migrations/meta/0027_snapshot.json +6205 -0
- package/dist/migrations/meta/0028_snapshot.json +6710 -0
- package/dist/migrations/meta/0029_snapshot.json +7899 -0
- package/dist/migrations/meta/0030_snapshot.json +8003 -0
- package/dist/migrations/meta/0031_snapshot.json +7242 -0
- package/dist/migrations/meta/0032_snapshot.json +7733 -0
- package/dist/migrations/meta/0033_snapshot.json +9038 -0
- package/dist/migrations/meta/0034_snapshot.json +9039 -0
- package/dist/migrations/meta/0035_snapshot.json +9959 -0
- package/dist/migrations/meta/0036_snapshot.json +10023 -0
- package/dist/migrations/meta/0037_snapshot.json +10263 -0
- package/dist/migrations/meta/0038_snapshot.json +11350 -0
- package/dist/migrations/meta/0039_snapshot.json +10308 -0
- package/dist/migrations/meta/0040_snapshot.json +10481 -0
- package/dist/migrations/meta/0041_snapshot.json +11393 -0
- package/dist/migrations/meta/0044_snapshot.json +11701 -0
- package/dist/migrations/meta/0046_snapshot.json +12458 -0
- package/dist/migrations/meta/0047_snapshot.json +12470 -0
- package/dist/migrations/meta/0049_snapshot.json +13560 -0
- package/dist/migrations/meta/0050_snapshot.json +12531 -0
- package/dist/migrations/meta/0051_snapshot.json +12538 -0
- package/dist/migrations/meta/0054_snapshot.json +12559 -0
- package/dist/migrations/meta/0055_snapshot.json +12597 -0
- package/dist/migrations/meta/0057_snapshot.json +12883 -0
- package/dist/migrations/meta/0058_snapshot.json +13174 -0
- package/dist/migrations/meta/0059_snapshot.json +13201 -0
- package/dist/migrations/meta/0060_snapshot.json +13492 -0
- package/dist/migrations/meta/0061_snapshot.json +13492 -0
- package/dist/migrations/meta/0062_snapshot.json +13499 -0
- package/dist/migrations/meta/_journal.json +447 -0
- package/dist/runtime-config.d.ts +16 -0
- package/dist/runtime-config.d.ts.map +1 -0
- package/dist/runtime-config.js +204 -0
- package/dist/runtime-config.js.map +1 -0
- package/dist/runtime-config.test.d.ts +2 -0
- package/dist/runtime-config.test.d.ts.map +1 -0
- package/dist/runtime-config.test.js +112 -0
- package/dist/runtime-config.test.js.map +1 -0
- package/dist/schema/activity_log.d.ts +197 -0
- package/dist/schema/activity_log.d.ts.map +1 -0
- package/dist/schema/activity_log.js +22 -0
- package/dist/schema/activity_log.js.map +1 -0
- package/dist/schema/agent_api_keys.d.ts +144 -0
- package/dist/schema/agent_api_keys.d.ts.map +1 -0
- package/dist/schema/agent_api_keys.js +17 -0
- package/dist/schema/agent_api_keys.js.map +1 -0
- package/dist/schema/agent_config_revisions.d.ts +201 -0
- package/dist/schema/agent_config_revisions.d.ts.map +1 -0
- package/dist/schema/agent_config_revisions.js +20 -0
- package/dist/schema/agent_config_revisions.js.map +1 -0
- package/dist/schema/agent_enabled_skills.d.ts +93 -0
- package/dist/schema/agent_enabled_skills.d.ts.map +1 -0
- package/dist/schema/agent_enabled_skills.js +15 -0
- package/dist/schema/agent_enabled_skills.js.map +1 -0
- package/dist/schema/agent_runtime_state.d.ts +248 -0
- package/dist/schema/agent_runtime_state.d.ts.map +1 -0
- package/dist/schema/agent_runtime_state.js +23 -0
- package/dist/schema/agent_runtime_state.js.map +1 -0
- package/dist/schema/agent_task_sessions.d.ts +197 -0
- package/dist/schema/agent_task_sessions.d.ts.map +1 -0
- package/dist/schema/agent_task_sessions.js +22 -0
- package/dist/schema/agent_task_sessions.js.map +1 -0
- package/dist/schema/agent_wakeup_requests.d.ts +333 -0
- package/dist/schema/agent_wakeup_requests.d.ts.map +1 -0
- package/dist/schema/agent_wakeup_requests.js +29 -0
- package/dist/schema/agent_wakeup_requests.js.map +1 -0
- package/dist/schema/agents.d.ts +390 -0
- package/dist/schema/agents.d.ts.map +1 -0
- package/dist/schema/agents.js +31 -0
- package/dist/schema/agents.js.map +1 -0
- package/dist/schema/approval_comments.d.ts +144 -0
- package/dist/schema/approval_comments.d.ts.map +1 -0
- package/dist/schema/approval_comments.js +19 -0
- package/dist/schema/approval_comments.js.map +1 -0
- package/dist/schema/approvals.d.ts +214 -0
- package/dist/schema/approvals.d.ts.map +1 -0
- package/dist/schema/approvals.js +20 -0
- package/dist/schema/approvals.js.map +1 -0
- package/dist/schema/assets.d.ts +212 -0
- package/dist/schema/assets.d.ts.map +1 -0
- package/dist/schema/assets.js +22 -0
- package/dist/schema/assets.js.map +1 -0
- package/dist/schema/auth.d.ts +607 -0
- package/dist/schema/auth.d.ts.map +1 -0
- package/dist/schema/auth.js +44 -0
- package/dist/schema/auth.js.map +1 -0
- package/dist/schema/automations.d.ts +993 -0
- package/dist/schema/automations.d.ts.map +1 -0
- package/dist/schema/automations.js +86 -0
- package/dist/schema/automations.js.map +1 -0
- package/dist/schema/board_api_keys.d.ts +144 -0
- package/dist/schema/board_api_keys.d.ts.map +1 -0
- package/dist/schema/board_api_keys.js +16 -0
- package/dist/schema/board_api_keys.js.map +1 -0
- package/dist/schema/budget_incidents.d.ts +297 -0
- package/dist/schema/budget_incidents.d.ts.map +1 -0
- package/dist/schema/budget_incidents.js +29 -0
- package/dist/schema/budget_incidents.js.map +1 -0
- package/dist/schema/budget_policies.d.ts +263 -0
- package/dist/schema/budget_policies.d.ts.map +1 -0
- package/dist/schema/budget_policies.js +24 -0
- package/dist/schema/budget_policies.js.map +1 -0
- package/dist/schema/chat_attachments.d.ts +127 -0
- package/dist/schema/chat_attachments.d.ts.map +1 -0
- package/dist/schema/chat_attachments.js +19 -0
- package/dist/schema/chat_attachments.js.map +1 -0
- package/dist/schema/chat_context_links.d.ts +146 -0
- package/dist/schema/chat_context_links.d.ts.map +1 -0
- package/dist/schema/chat_context_links.js +18 -0
- package/dist/schema/chat_context_links.js.map +1 -0
- package/dist/schema/chat_conversation_user_states.d.ts +144 -0
- package/dist/schema/chat_conversation_user_states.d.ts.map +1 -0
- package/dist/schema/chat_conversation_user_states.js +18 -0
- package/dist/schema/chat_conversation_user_states.js.map +1 -0
- package/dist/schema/chat_conversations.d.ts +263 -0
- package/dist/schema/chat_conversations.d.ts.map +1 -0
- package/dist/schema/chat_conversations.js +26 -0
- package/dist/schema/chat_conversations.js.map +1 -0
- package/dist/schema/chat_messages.d.ts +265 -0
- package/dist/schema/chat_messages.d.ts.map +1 -0
- package/dist/schema/chat_messages.js +28 -0
- package/dist/schema/chat_messages.js.map +1 -0
- package/dist/schema/cli_auth_challenges.d.ts +263 -0
- package/dist/schema/cli_auth_challenges.d.ts.map +1 -0
- package/dist/schema/cli_auth_challenges.js +26 -0
- package/dist/schema/cli_auth_challenges.js.map +1 -0
- package/dist/schema/cost_events.d.ts +314 -0
- package/dist/schema/cost_events.d.ts.map +1 -0
- package/dist/schema/cost_events.js +34 -0
- package/dist/schema/cost_events.js.map +1 -0
- package/dist/schema/document_revisions.d.ts +161 -0
- package/dist/schema/document_revisions.d.ts.map +1 -0
- package/dist/schema/document_revisions.js +19 -0
- package/dist/schema/document_revisions.js.map +1 -0
- package/dist/schema/documents.d.ts +229 -0
- package/dist/schema/documents.d.ts.map +1 -0
- package/dist/schema/documents.js +22 -0
- package/dist/schema/documents.js.map +1 -0
- package/dist/schema/execution_workspaces.d.ts +418 -0
- package/dist/schema/execution_workspaces.d.ts.map +1 -0
- package/dist/schema/execution_workspaces.js +39 -0
- package/dist/schema/execution_workspaces.js.map +1 -0
- package/dist/schema/finance_events.d.ts +469 -0
- package/dist/schema/finance_events.d.ts.map +1 -0
- package/dist/schema/finance_events.js +45 -0
- package/dist/schema/finance_events.js.map +1 -0
- package/dist/schema/goals.d.ts +178 -0
- package/dist/schema/goals.d.ts.map +1 -0
- package/dist/schema/goals.js +18 -0
- package/dist/schema/goals.js.map +1 -0
- package/dist/schema/heartbeat_run_events.d.ts +214 -0
- package/dist/schema/heartbeat_run_events.d.ts.map +1 -0
- package/dist/schema/heartbeat_run_events.js +23 -0
- package/dist/schema/heartbeat_run_events.js.map +1 -0
- package/dist/schema/heartbeat_runs.d.ts +558 -0
- package/dist/schema/heartbeat_runs.d.ts.map +1 -0
- package/dist/schema/heartbeat_runs.js +43 -0
- package/dist/schema/heartbeat_runs.js.map +1 -0
- package/dist/schema/index.d.ts +69 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +69 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/instance_settings.d.ts +133 -0
- package/dist/schema/instance_settings.d.ts.map +1 -0
- package/dist/schema/instance_settings.js +13 -0
- package/dist/schema/instance_settings.js.map +1 -0
- package/dist/schema/instance_user_roles.d.ts +93 -0
- package/dist/schema/instance_user_roles.d.ts.map +1 -0
- package/dist/schema/instance_user_roles.js +12 -0
- package/dist/schema/instance_user_roles.js.map +1 -0
- package/dist/schema/invites.d.ts +214 -0
- package/dist/schema/invites.d.ts.map +1 -0
- package/dist/schema/invites.js +20 -0
- package/dist/schema/invites.js.map +1 -0
- package/dist/schema/issue_approvals.d.ts +110 -0
- package/dist/schema/issue_approvals.d.ts.map +1 -0
- package/dist/schema/issue_approvals.js +19 -0
- package/dist/schema/issue_approvals.js.map +1 -0
- package/dist/schema/issue_attachments.d.ts +127 -0
- package/dist/schema/issue_attachments.d.ts.map +1 -0
- package/dist/schema/issue_attachments.js +19 -0
- package/dist/schema/issue_attachments.js.map +1 -0
- package/dist/schema/issue_comments.d.ts +144 -0
- package/dist/schema/issue_comments.d.ts.map +1 -0
- package/dist/schema/issue_comments.js +20 -0
- package/dist/schema/issue_comments.js.map +1 -0
- package/dist/schema/issue_documents.d.ts +127 -0
- package/dist/schema/issue_documents.d.ts.map +1 -0
- package/dist/schema/issue_documents.js +18 -0
- package/dist/schema/issue_documents.js.map +1 -0
- package/dist/schema/issue_follows.d.ts +93 -0
- package/dist/schema/issue_follows.d.ts.map +1 -0
- package/dist/schema/issue_follows.js +15 -0
- package/dist/schema/issue_follows.js.map +1 -0
- package/dist/schema/issue_labels.d.ts +76 -0
- package/dist/schema/issue_labels.d.ts.map +1 -0
- package/dist/schema/issue_labels.js +16 -0
- package/dist/schema/issue_labels.js.map +1 -0
- package/dist/schema/issue_read_states.d.ts +127 -0
- package/dist/schema/issue_read_states.d.ts.map +1 -0
- package/dist/schema/issue_read_states.js +17 -0
- package/dist/schema/issue_read_states.js.map +1 -0
- package/dist/schema/issue_work_products.d.ts +350 -0
- package/dist/schema/issue_work_products.d.ts.map +1 -0
- package/dist/schema/issue_work_products.js +37 -0
- package/dist/schema/issue_work_products.js.map +1 -0
- package/dist/schema/issues.d.ts +607 -0
- package/dist/schema/issues.d.ts.map +1 -0
- package/dist/schema/issues.js +65 -0
- package/dist/schema/issues.js.map +1 -0
- package/dist/schema/join_requests.d.ts +384 -0
- package/dist/schema/join_requests.d.ts.map +1 -0
- package/dist/schema/join_requests.js +32 -0
- package/dist/schema/join_requests.js.map +1 -0
- package/dist/schema/labels.d.ts +110 -0
- package/dist/schema/labels.d.ts.map +1 -0
- package/dist/schema/labels.js +14 -0
- package/dist/schema/labels.js.map +1 -0
- package/dist/schema/messenger_thread_user_states.d.ts +127 -0
- package/dist/schema/messenger_thread_user_states.d.ts.map +1 -0
- package/dist/schema/messenger_thread_user_states.js +16 -0
- package/dist/schema/messenger_thread_user_states.js.map +1 -0
- package/dist/schema/operator_profiles.d.ts +93 -0
- package/dist/schema/operator_profiles.d.ts.map +1 -0
- package/dist/schema/operator_profiles.js +11 -0
- package/dist/schema/operator_profiles.js.map +1 -0
- package/dist/schema/organization_logos.d.ts +93 -0
- package/dist/schema/organization_logos.d.ts.map +1 -0
- package/dist/schema/organization_logos.js +14 -0
- package/dist/schema/organization_logos.js.map +1 -0
- package/dist/schema/organization_memberships.d.ts +144 -0
- package/dist/schema/organization_memberships.d.ts.map +1 -0
- package/dist/schema/organization_memberships.js +17 -0
- package/dist/schema/organization_memberships.js.map +1 -0
- package/dist/schema/organization_resources.d.ts +163 -0
- package/dist/schema/organization_resources.d.ts.map +1 -0
- package/dist/schema/organization_resources.js +17 -0
- package/dist/schema/organization_resources.js.map +1 -0
- package/dist/schema/organization_secret_versions.d.ts +163 -0
- package/dist/schema/organization_secret_versions.d.ts.map +1 -0
- package/dist/schema/organization_secret_versions.js +19 -0
- package/dist/schema/organization_secret_versions.js.map +1 -0
- package/dist/schema/organization_secrets.d.ts +195 -0
- package/dist/schema/organization_secrets.d.ts.map +1 -0
- package/dist/schema/organization_secrets.js +21 -0
- package/dist/schema/organization_secrets.js.map +1 -0
- package/dist/schema/organization_skills.d.ts +284 -0
- package/dist/schema/organization_skills.d.ts.map +1 -0
- package/dist/schema/organization_skills.js +24 -0
- package/dist/schema/organization_skills.js.map +1 -0
- package/dist/schema/organizations.d.ts +335 -0
- package/dist/schema/organizations.d.ts.map +1 -0
- package/dist/schema/organizations.js +28 -0
- package/dist/schema/organizations.js.map +1 -0
- package/dist/schema/plugin_config.d.ts +123 -0
- package/dist/schema/plugin_config.d.ts.map +1 -0
- package/dist/schema/plugin_config.js +26 -0
- package/dist/schema/plugin_config.js.map +1 -0
- package/dist/schema/plugin_entities.d.ts +213 -0
- package/dist/schema/plugin_entities.d.ts.map +1 -0
- package/dist/schema/plugin_entities.js +37 -0
- package/dist/schema/plugin_entities.js.map +1 -0
- package/dist/schema/plugin_jobs.d.ts +392 -0
- package/dist/schema/plugin_jobs.d.ts.map +1 -0
- package/dist/schema/plugin_jobs.js +83 -0
- package/dist/schema/plugin_jobs.js.map +1 -0
- package/dist/schema/plugin_logs.d.ts +125 -0
- package/dist/schema/plugin_logs.d.ts.map +1 -0
- package/dist/schema/plugin_logs.js +29 -0
- package/dist/schema/plugin_logs.js.map +1 -0
- package/dist/schema/plugin_organization_settings.d.ts +158 -0
- package/dist/schema/plugin_organization_settings.d.ts.map +1 -0
- package/dist/schema/plugin_organization_settings.js +34 -0
- package/dist/schema/plugin_organization_settings.js.map +1 -0
- package/dist/schema/plugin_state.d.ts +169 -0
- package/dist/schema/plugin_state.d.ts.map +1 -0
- package/dist/schema/plugin_state.js +68 -0
- package/dist/schema/plugin_state.js.map +1 -0
- package/dist/schema/plugin_webhooks.d.ts +239 -0
- package/dist/schema/plugin_webhooks.d.ts.map +1 -0
- package/dist/schema/plugin_webhooks.js +52 -0
- package/dist/schema/plugin_webhooks.js.map +1 -0
- package/dist/schema/plugins.d.ts +246 -0
- package/dist/schema/plugins.d.ts.map +1 -0
- package/dist/schema/plugins.js +31 -0
- package/dist/schema/plugins.js.map +1 -0
- package/dist/schema/principal_permission_grants.d.ts +163 -0
- package/dist/schema/principal_permission_grants.d.ts.map +1 -0
- package/dist/schema/principal_permission_grants.js +17 -0
- package/dist/schema/principal_permission_grants.js.map +1 -0
- package/dist/schema/project_goals.d.ts +93 -0
- package/dist/schema/project_goals.d.ts.map +1 -0
- package/dist/schema/project_goals.js +17 -0
- package/dist/schema/project_goals.js.map +1 -0
- package/dist/schema/project_resource_attachments.d.ts +161 -0
- package/dist/schema/project_resource_attachments.d.ts.map +1 -0
- package/dist/schema/project_resource_attachments.js +20 -0
- package/dist/schema/project_resource_attachments.js.map +1 -0
- package/dist/schema/project_workspaces.d.ts +333 -0
- package/dist/schema/project_workspaces.d.ts.map +1 -0
- package/dist/schema/project_workspaces.js +32 -0
- package/dist/schema/project_workspaces.js.map +1 -0
- package/dist/schema/projects.d.ts +265 -0
- package/dist/schema/projects.d.ts.map +1 -0
- package/dist/schema/projects.js +24 -0
- package/dist/schema/projects.js.map +1 -0
- package/dist/schema/workspace_operations.d.ts +367 -0
- package/dist/schema/workspace_operations.d.ts.map +1 -0
- package/dist/schema/workspace_operations.js +35 -0
- package/dist/schema/workspace_operations.js.map +1 -0
- package/dist/schema/workspace_runtime_services.d.ts +469 -0
- package/dist/schema/workspace_runtime_services.d.ts.map +1 -0
- package/dist/schema/workspace_runtime_services.js +44 -0
- package/dist/schema/workspace_runtime_services.js.map +1 -0
- package/dist/seed.d.ts +2 -0
- package/dist/seed.d.ts.map +1 -0
- package/dist/seed.js +93 -0
- package/dist/seed.js.map +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
-- Add url_key column if it doesn't exist
|
|
2
|
+
DO $$
|
|
3
|
+
BEGIN
|
|
4
|
+
IF NOT EXISTS (
|
|
5
|
+
SELECT 1 FROM information_schema.columns
|
|
6
|
+
WHERE table_name = 'organizations' AND column_name = 'url_key'
|
|
7
|
+
) THEN
|
|
8
|
+
ALTER TABLE "organizations" ADD COLUMN "url_key" text;
|
|
9
|
+
END IF;
|
|
10
|
+
END $$;
|
|
11
|
+
--> statement-breakpoint
|
|
12
|
+
-- Populate url_key for rows where it's NULL or empty
|
|
13
|
+
WITH normalized AS (
|
|
14
|
+
SELECT
|
|
15
|
+
id,
|
|
16
|
+
COALESCE(
|
|
17
|
+
NULLIF(trim(both '-' from regexp_replace(lower(name), '[^a-z0-9]+', '-', 'g')), ''),
|
|
18
|
+
'organization'
|
|
19
|
+
) AS base,
|
|
20
|
+
row_number() OVER (
|
|
21
|
+
PARTITION BY COALESCE(
|
|
22
|
+
NULLIF(trim(both '-' from regexp_replace(lower(name), '[^a-z0-9]+', '-', 'g')), ''),
|
|
23
|
+
'organization'
|
|
24
|
+
)
|
|
25
|
+
ORDER BY created_at, id
|
|
26
|
+
) AS ordinal
|
|
27
|
+
FROM organizations
|
|
28
|
+
WHERE url_key IS NULL OR url_key = ''
|
|
29
|
+
)
|
|
30
|
+
UPDATE organizations AS organizations
|
|
31
|
+
SET url_key = CASE
|
|
32
|
+
WHEN normalized.ordinal = 1 THEN normalized.base
|
|
33
|
+
ELSE normalized.base || '-' || normalized.ordinal
|
|
34
|
+
END
|
|
35
|
+
FROM normalized
|
|
36
|
+
WHERE organizations.id = normalized.id;
|
|
37
|
+
--> statement-breakpoint
|
|
38
|
+
-- Ensure url_key is not null (only if column exists and has data)
|
|
39
|
+
DO $$
|
|
40
|
+
BEGIN
|
|
41
|
+
IF EXISTS (
|
|
42
|
+
SELECT 1 FROM information_schema.columns
|
|
43
|
+
WHERE table_name = 'organizations' AND column_name = 'url_key'
|
|
44
|
+
) THEN
|
|
45
|
+
ALTER TABLE "organizations" ALTER COLUMN "url_key" SET NOT NULL;
|
|
46
|
+
END IF;
|
|
47
|
+
END $$;
|
|
48
|
+
--> statement-breakpoint
|
|
49
|
+
-- Create unique index if it doesn't exist
|
|
50
|
+
DO $$
|
|
51
|
+
BEGIN
|
|
52
|
+
IF NOT EXISTS (
|
|
53
|
+
SELECT 1 FROM pg_indexes
|
|
54
|
+
WHERE indexname = 'organizations_url_key_idx'
|
|
55
|
+
) THEN
|
|
56
|
+
CREATE UNIQUE INDEX "organizations_url_key_idx" ON "organizations" USING btree ("url_key");
|
|
57
|
+
END IF;
|
|
58
|
+
END $$;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
SELECT 1;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
CREATE TABLE "agent_enabled_skills" (
|
|
2
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
3
|
+
"org_id" uuid NOT NULL,
|
|
4
|
+
"agent_id" uuid NOT NULL,
|
|
5
|
+
"skill_key" text NOT NULL,
|
|
6
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
7
|
+
);
|
|
8
|
+
--> statement-breakpoint
|
|
9
|
+
ALTER TABLE "agent_enabled_skills" ADD CONSTRAINT "agent_enabled_skills_org_id_organizations_id_fk" FOREIGN KEY ("org_id") REFERENCES "public"."organizations"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
10
|
+
ALTER TABLE "agent_enabled_skills" ADD CONSTRAINT "agent_enabled_skills_agent_id_agents_id_fk" FOREIGN KEY ("agent_id") REFERENCES "public"."agents"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
11
|
+
CREATE INDEX "agent_enabled_skills_agent_idx" ON "agent_enabled_skills" USING btree ("agent_id");--> statement-breakpoint
|
|
12
|
+
CREATE INDEX "agent_enabled_skills_org_idx" ON "agent_enabled_skills" USING btree ("org_id");--> statement-breakpoint
|
|
13
|
+
CREATE UNIQUE INDEX "agent_enabled_skills_agent_skill_idx" ON "agent_enabled_skills" USING btree ("agent_id","skill_key");
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
CREATE TABLE "chat_conversation_user_states" (
|
|
2
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
3
|
+
"org_id" uuid NOT NULL,
|
|
4
|
+
"conversation_id" uuid NOT NULL,
|
|
5
|
+
"user_id" text NOT NULL,
|
|
6
|
+
"last_read_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
7
|
+
"pinned_at" timestamp with time zone,
|
|
8
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
9
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
10
|
+
);
|
|
11
|
+
--> statement-breakpoint
|
|
12
|
+
ALTER TABLE "chat_conversation_user_states" ADD CONSTRAINT "chat_conversation_user_states_org_id_organizations_id_fk" FOREIGN KEY ("org_id") REFERENCES "public"."organizations"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
13
|
+
ALTER TABLE "chat_conversation_user_states" ADD CONSTRAINT "chat_conversation_user_states_conversation_id_chat_conversations_id_fk" FOREIGN KEY ("conversation_id") REFERENCES "public"."chat_conversations"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
14
|
+
CREATE INDEX "chat_conversation_user_states_org_conversation_idx" ON "chat_conversation_user_states" USING btree ("org_id","conversation_id");--> statement-breakpoint
|
|
15
|
+
CREATE INDEX "chat_conversation_user_states_org_user_idx" ON "chat_conversation_user_states" USING btree ("org_id","user_id");--> statement-breakpoint
|
|
16
|
+
CREATE UNIQUE INDEX "chat_conversation_user_states_org_conversation_user_idx" ON "chat_conversation_user_states" USING btree ("org_id","conversation_id","user_id");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "organizations" ADD COLUMN "workspace_config" jsonb;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
CREATE TABLE "issue_follows" (
|
|
2
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
3
|
+
"org_id" uuid NOT NULL,
|
|
4
|
+
"issue_id" uuid NOT NULL,
|
|
5
|
+
"user_id" text NOT NULL,
|
|
6
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
7
|
+
);
|
|
8
|
+
--> statement-breakpoint
|
|
9
|
+
CREATE TABLE "messenger_thread_user_states" (
|
|
10
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
11
|
+
"org_id" uuid NOT NULL,
|
|
12
|
+
"user_id" text NOT NULL,
|
|
13
|
+
"thread_key" text NOT NULL,
|
|
14
|
+
"last_read_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
15
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
16
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
17
|
+
);
|
|
18
|
+
--> statement-breakpoint
|
|
19
|
+
ALTER TABLE "issue_follows" ADD CONSTRAINT "issue_follows_org_id_organizations_id_fk" FOREIGN KEY ("org_id") REFERENCES "public"."organizations"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
20
|
+
ALTER TABLE "issue_follows" ADD CONSTRAINT "issue_follows_issue_id_issues_id_fk" FOREIGN KEY ("issue_id") REFERENCES "public"."issues"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
21
|
+
ALTER TABLE "messenger_thread_user_states" ADD CONSTRAINT "messenger_thread_user_states_org_id_organizations_id_fk" FOREIGN KEY ("org_id") REFERENCES "public"."organizations"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
22
|
+
CREATE INDEX "issue_follows_org_issue_idx" ON "issue_follows" USING btree ("org_id","issue_id");--> statement-breakpoint
|
|
23
|
+
CREATE INDEX "issue_follows_org_user_idx" ON "issue_follows" USING btree ("org_id","user_id");--> statement-breakpoint
|
|
24
|
+
CREATE UNIQUE INDEX "issue_follows_org_issue_user_idx" ON "issue_follows" USING btree ("org_id","issue_id","user_id");--> statement-breakpoint
|
|
25
|
+
CREATE INDEX "messenger_thread_user_states_org_user_idx" ON "messenger_thread_user_states" USING btree ("org_id","user_id");--> statement-breakpoint
|
|
26
|
+
CREATE INDEX "messenger_thread_user_states_org_thread_idx" ON "messenger_thread_user_states" USING btree ("org_id","thread_key");--> statement-breakpoint
|
|
27
|
+
CREATE UNIQUE INDEX "messenger_thread_user_states_org_thread_user_idx" ON "messenger_thread_user_states" USING btree ("org_id","thread_key","user_id");
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
CREATE TABLE "organization_resources" (
|
|
2
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
3
|
+
"org_id" uuid NOT NULL,
|
|
4
|
+
"name" text NOT NULL,
|
|
5
|
+
"kind" text NOT NULL,
|
|
6
|
+
"locator" text NOT NULL,
|
|
7
|
+
"description" text,
|
|
8
|
+
"metadata" jsonb,
|
|
9
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
10
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
11
|
+
);
|
|
12
|
+
--> statement-breakpoint
|
|
13
|
+
CREATE TABLE "project_resource_attachments" (
|
|
14
|
+
"id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
15
|
+
"org_id" uuid NOT NULL,
|
|
16
|
+
"project_id" uuid NOT NULL,
|
|
17
|
+
"resource_id" uuid NOT NULL,
|
|
18
|
+
"role" text DEFAULT 'reference' NOT NULL,
|
|
19
|
+
"note" text,
|
|
20
|
+
"sort_order" integer DEFAULT 0 NOT NULL,
|
|
21
|
+
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
|
|
22
|
+
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
|
|
23
|
+
);
|
|
24
|
+
--> statement-breakpoint
|
|
25
|
+
ALTER TABLE "organization_resources" ADD CONSTRAINT "organization_resources_org_id_organizations_id_fk" FOREIGN KEY ("org_id") REFERENCES "public"."organizations"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
26
|
+
ALTER TABLE "project_resource_attachments" ADD CONSTRAINT "project_resource_attachments_org_id_organizations_id_fk" FOREIGN KEY ("org_id") REFERENCES "public"."organizations"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
27
|
+
ALTER TABLE "project_resource_attachments" ADD CONSTRAINT "project_resource_attachments_project_id_projects_id_fk" FOREIGN KEY ("project_id") REFERENCES "public"."projects"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
28
|
+
ALTER TABLE "project_resource_attachments" ADD CONSTRAINT "project_resource_attachments_resource_id_organization_resources_id_fk" FOREIGN KEY ("resource_id") REFERENCES "public"."organization_resources"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
29
|
+
CREATE INDEX "organization_resources_org_idx" ON "organization_resources" USING btree ("org_id");--> statement-breakpoint
|
|
30
|
+
CREATE INDEX "organization_resources_org_kind_idx" ON "organization_resources" USING btree ("org_id","kind");--> statement-breakpoint
|
|
31
|
+
CREATE INDEX "project_resource_attachments_org_project_idx" ON "project_resource_attachments" USING btree ("org_id","project_id");--> statement-breakpoint
|
|
32
|
+
CREATE INDEX "project_resource_attachments_resource_idx" ON "project_resource_attachments" USING btree ("resource_id");--> statement-breakpoint
|
|
33
|
+
CREATE UNIQUE INDEX "project_resource_attachments_project_resource_idx" ON "project_resource_attachments" USING btree ("project_id","resource_id");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE "instance_settings" ADD COLUMN "notifications" jsonb DEFAULT '{}'::jsonb NOT NULL;
|