@onequery/cli 0.1.65-win32-arm64 → 0.1.65

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 (172) hide show
  1. package/bin/onequery.js +266 -0
  2. package/bin/package-constants.d.ts +75 -0
  3. package/bin/package-constants.js +160 -0
  4. package/package.json +24 -17
  5. package/runtime-bundle.json +55 -0
  6. package/vendor/aarch64-pc-windows-msvc/onequery/onequery.exe +0 -0
  7. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/CompositeItem-BB408Cyb.js +0 -1
  8. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/CompositeList-DbbDW_rT.js +0 -1
  9. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/DialogTitle-ChNkcIa6.js +0 -1
  10. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconArrowRight-DsOD7mDl.js +0 -1
  11. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconCheck-Gc24xPT2.js +0 -1
  12. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconChevronDown-B-39MA7-.js +0 -1
  13. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconChevronRight-DD16tNHZ.js +0 -1
  14. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconCoins-C7Nn0L6R.js +0 -1
  15. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconHistory-DuLS8PKF.js +0 -1
  16. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconLoader2-BpZcTuHV.js +0 -1
  17. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconPlus-CZiRiEUF.js +0 -1
  18. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconTerminal2-PxNqcz3d.js +0 -1
  19. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/IconX-rRpRFwc5.js +0 -1
  20. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/Separator-M05FshHx.js +0 -1
  21. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/_authenticated-CcSc_Pt7.js +0 -1
  22. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/_org_slug-BvJDit6U.js +0 -1
  23. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/alert-BIGxI3XN.js +0 -1
  24. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/api-base-url-DIb6qukm.js +0 -1
  25. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/api-client-tp8XTpAa.js +0 -1
  26. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/api-paths-DcYkf-C_.js +0 -1
  27. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/app-routes-CMyon6Em.js +0 -1
  28. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/audit-CdPU9Jf2.js +0 -2
  29. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/auth-bootstrap-query-B1MHd_NV.js +0 -1
  30. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/auth-client-D-YHMy0G.js +0 -3
  31. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/avatar-SaFoLofF.js +0 -1
  32. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/badge-BFPkSrVD.js +0 -1
  33. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/budget-CX5MplAP.js +0 -1
  34. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/callback-BWQ3ETBy.js +0 -1
  35. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/card-Dllm2lhp.js +0 -1
  36. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/checkbox-Bii9Pcrx.js +0 -1
  37. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/compiler-runtime-DCc3R3Xn.js +0 -1
  38. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/connect-database-C1Jb2l53.js +0 -1
  39. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/copy-button-BO1KBdf9.js +0 -1
  40. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/create-org-BSzKv5ue.js +0 -1
  41. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/createReactComponent-_L2mp4Ui.js +0 -1
  42. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/data-source-connection-form-CbDL0cgG.js +0 -273
  43. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/device-Bbz7apAX.js +0 -1
  44. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/dist-BNi06Dzx.js +0 -3
  45. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/dropdown-menu-Cw2MW0pD.js +0 -1
  46. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/empty-DjRo5ytz.js +0 -1
  47. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/format-date-Rg05aHXh.js +0 -1
  48. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/getDisabledMountTransitionStyles-C0uz3iMh.js +0 -1
  49. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/getPseudoElementBounds-CRlxTrfr.js +0 -12
  50. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/home-BNjpNKdt.js +0 -1
  51. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/index-B4OsjuJp.css +0 -2
  52. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/index-CXR0dKJj.js +0 -10
  53. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/input-BRu0b1Tq.js +0 -1
  54. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/integrations-BWC7iPQ5.js +0 -1
  55. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  56. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  57. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  58. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  59. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  60. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  61. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  62. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/invite._invitationId-DmJnR4R5.js +0 -1
  63. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/jsx-runtime-DG_AJzB_.js +0 -1
  64. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/label-f2wVZcni.js +0 -1
  65. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/link-Cgvqhh5w.js +0 -1
  66. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/matchContext-CDajBC0L.js +0 -1
  67. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/organization-permissions-BXV_ess0.js +0 -1
  68. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/organization-query-keys-ieaSNxMR.js +0 -1
  69. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/query-CY--GYXb.js +0 -1
  70. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/query-timing-YBkSOxxF.js +0 -1
  71. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/queryOptions-bXtOUR_h.js +0 -1
  72. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/routes-CxJ2aoMf.js +0 -1
  73. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/schemas-EcBBwCo1.js +0 -64
  74. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/select-yNaL0SXM.js +0 -1
  75. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/separator-BH7Gsum-.js +0 -1
  76. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/settings-C8us2bWX.js +0 -1
  77. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/signin-BgfqB9QB.js +0 -1
  78. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/src-C5F1uEDb.js +0 -1
  79. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/team-CYPsHFTt.js +0 -1
  80. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/textarea-CnA77PLS.js +0 -1
  81. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/theme-toggle-CRaDbyxE.js +0 -1
  82. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/use-optimistic-mutation-3PPnMc-O.js +0 -1
  83. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useBaseQuery-CO5Q8xm4.js +0 -1
  84. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useBaseUiId-CtNp109T.js +0 -1
  85. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useCompositeItem-D243hyne.js +0 -1
  86. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useControlled-C-85HRFr.js +0 -1
  87. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useQuery-DyOxsY45.js +0 -1
  88. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useRender-CzpKCg11.js +0 -1
  89. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useRouterState-DpT8luFk.js +0 -1
  90. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useSuspenseQuery-CBFRU4At.js +0 -1
  91. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/useValueChanged-BNrgSVVM.js +0 -1
  92. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/utils-C8DGLIgm.js +0 -1
  93. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/xstate-react.esm-Bo3CCIRt.js +0 -1
  94. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/assets/zod-D0PWrP9q.js +0 -1
  95. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/favicon.ico +0 -0
  96. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/amplitude/step1_settings_sidebar.png +0 -0
  97. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/amplitude/step2_projects.png +0 -0
  98. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/amplitude/step3_project_keys.png +0 -0
  99. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/amplitude/step4_api_keys.png +0 -0
  100. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/bigquery/step1_service_accounts.png +0 -0
  101. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/bigquery/step2_bigquery_roles.png +0 -0
  102. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/bigquery/step3_add_key_menu.png +0 -0
  103. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/bigquery/step4_create_json_key.png +0 -0
  104. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/cloudflare-workers-observability/step2_enable_workers_logs.png +0 -0
  105. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/cloudflare-workers-observability/step3_user_api_tokens.png +0 -0
  106. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/cloudflare-workers-observability/step4_create_api_token.png +0 -0
  107. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/cloudflare-workers-observability/step5_workers_pages_account_id.png +0 -0
  108. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/cloudflare-workers-observability/step6_workers_observability_permission.png +0 -0
  109. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/ga4/step1_service_accounts.png +0 -0
  110. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/ga4/step2_create_json_key.png +0 -0
  111. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/ga4/step3_add_user_viewer.png +0 -0
  112. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/ga4/step4_property_details.png +0 -0
  113. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/github-token-guide/step1_signin.png +0 -0
  114. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/github-token-guide/step2_new_fine_grained_token_sanitized.png +0 -0
  115. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/github-token-guide/step3_permissions_configured_sanitized.png +0 -0
  116. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/github-token-guide/step4_token_created_sanitized.png +0 -0
  117. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/google-search-console/step1_confirm_property.png +0 -0
  118. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/google-search-console/step2_scope_selected.png +0 -0
  119. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/google-search-console/step3_copy_access_token.png +0 -0
  120. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/mixpanel/step1_service_accounts.png +0 -0
  121. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/mixpanel/step2_create_service_account.png +0 -0
  122. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/mixpanel/step3_credentials.png +0 -0
  123. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/mixpanel/step4_project_settings.png +0 -0
  124. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/postgresql/step1_create_user.png +0 -0
  125. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/postgresql/step2_connection.png +0 -0
  126. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/posthog/step1_project_settings.png +0 -0
  127. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/posthog/step2_personal_api_keys.png +0 -0
  128. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/posthog/step3_create_key_modal.png +0 -0
  129. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/rds/step1_connect.png +0 -0
  130. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/rds/step2_create_user.png +0 -0
  131. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/rds/step3_grant.png +0 -0
  132. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/rds/step4_info.png +0 -0
  133. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/sentry/step1_personal_tokens.png +0 -0
  134. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/sentry/step2_create_token_permissions.png +0 -0
  135. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/sentry/step3_organization_slug.png +0 -0
  136. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/sentry/step4_project_slug.png +0 -0
  137. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/vercel/step1_tokens_page.png +0 -0
  138. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/images/vercel/step2_configure_token.png +0 -0
  139. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/index.html +0 -47
  140. package/vendor/aarch64-pc-windows-msvc/runtime/dashboard/onequery.svg +0 -44
  141. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260327065242_curious_nightmare.sql +0 -403
  142. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260403103652_slippery_hellfire_club.sql +0 -8
  143. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260403112219_gigantic_namora.sql +0 -1
  144. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260420071232_previous_justin_hammer.sql +0 -141
  145. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260420093157_spooky_cassandra_nova.sql +0 -29
  146. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260420101631_even_ogun.sql +0 -5
  147. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260425110519_smart_amazoness.sql +0 -8
  148. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260428033542_rename_source_query_interface_missing.sql +0 -36
  149. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260430114113_jittery_scorpion.sql +0 -28
  150. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260430135906_flippant_timeslip.sql +0 -4
  151. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260502000100_drop_old_workflow_audit_tables.sql +0 -15
  152. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260503011110_moaning_jack_flag.sql +0 -22
  153. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260514143216_reset_workflow_audit_history.sql +0 -20
  154. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/20260524081943_colorful_firelord.sql +0 -1
  155. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260327065242_snapshot.json +0 -2817
  156. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260403103652_snapshot.json +0 -2864
  157. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260403112219_snapshot.json +0 -2870
  158. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260420071232_snapshot.json +0 -3879
  159. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260420093157_snapshot.json +0 -4088
  160. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260420101631_snapshot.json +0 -3250
  161. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260425110519_snapshot.json +0 -3250
  162. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260428033542_snapshot.json +0 -3250
  163. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260430114113_snapshot.json +0 -3507
  164. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260430135906_snapshot.json +0 -3531
  165. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260503011110_snapshot.json +0 -3089
  166. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/20260524081943_snapshot.json +0 -3082
  167. package/vendor/aarch64-pc-windows-msvc/runtime/migrations/meta/_journal.json +0 -104
  168. package/vendor/aarch64-pc-windows-msvc/runtime/pglite/initdb.wasm +0 -0
  169. package/vendor/aarch64-pc-windows-msvc/runtime/pglite/pglite.data +0 -0
  170. package/vendor/aarch64-pc-windows-msvc/runtime/pglite/pglite.wasm +0 -0
  171. package/vendor/aarch64-pc-windows-msvc/server/onequery-server.mjs +0 -447972
  172. package/vendor/aarch64-pc-windows-msvc/server/polyglot_sql_wasm_bg.wasm +0 -0
@@ -1,47 +0,0 @@
1
- <!doctype html>
2
- <html lang="en" suppressHydrationWarning>
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" href="/favicon.ico" sizes="any" />
6
- <link rel="icon" type="image/svg+xml" href="/onequery.svg" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
- <title>OneQuery - Autonomous Data Workspace</title>
9
- <script>
10
- // Prevent flash of unstyled content (FOUC) for theme
11
- (() => {
12
- const theme = localStorage.getItem("theme");
13
- const systemDark = window.matchMedia(
14
- "(prefers-color-scheme: dark)"
15
- ).matches;
16
- if (theme === "dark" || (!theme && systemDark)) {
17
- document.documentElement.classList.add("dark");
18
- }
19
- })();
20
- </script>
21
- <script type="module" crossorigin src="/assets/index-CXR0dKJj.js"></script>
22
- <link rel="modulepreload" crossorigin href="/assets/jsx-runtime-DG_AJzB_.js">
23
- <link rel="modulepreload" crossorigin href="/assets/useRouterState-DpT8luFk.js">
24
- <link rel="modulepreload" crossorigin href="/assets/link-Cgvqhh5w.js">
25
- <link rel="modulepreload" crossorigin href="/assets/matchContext-CDajBC0L.js">
26
- <link rel="modulepreload" crossorigin href="/assets/api-base-url-DIb6qukm.js">
27
- <link rel="modulepreload" crossorigin href="/assets/api-client-tp8XTpAa.js">
28
- <link rel="modulepreload" crossorigin href="/assets/app-routes-CMyon6Em.js">
29
- <link rel="modulepreload" crossorigin href="/assets/auth-client-D-YHMy0G.js">
30
- <link rel="modulepreload" crossorigin href="/assets/query-timing-YBkSOxxF.js">
31
- <link rel="modulepreload" crossorigin href="/assets/organization-query-keys-ieaSNxMR.js">
32
- <link rel="modulepreload" crossorigin href="/assets/utils-C8DGLIgm.js">
33
- <link rel="modulepreload" crossorigin href="/assets/compiler-runtime-DCc3R3Xn.js">
34
- <link rel="modulepreload" crossorigin href="/assets/createReactComponent-_L2mp4Ui.js">
35
- <link rel="modulepreload" crossorigin href="/assets/useBaseUiId-CtNp109T.js">
36
- <link rel="modulepreload" crossorigin href="/assets/getDisabledMountTransitionStyles-C0uz3iMh.js">
37
- <link rel="modulepreload" crossorigin href="/assets/query-CY--GYXb.js">
38
- <link rel="modulepreload" crossorigin href="/assets/queryOptions-bXtOUR_h.js">
39
- <link rel="modulepreload" crossorigin href="/assets/schemas-EcBBwCo1.js">
40
- <link rel="modulepreload" crossorigin href="/assets/src-C5F1uEDb.js">
41
- <link rel="modulepreload" crossorigin href="/assets/organization-permissions-BXV_ess0.js">
42
- <link rel="stylesheet" crossorigin href="/assets/index-B4OsjuJp.css">
43
- </head>
44
- <body>
45
- <div id="root"></div>
46
- </body>
47
- </html>
@@ -1,44 +0,0 @@
1
- <svg width="1024" height="1024" viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g filter="url(#filter0_i_3691_8)">
3
- <rect width="1024" height="1024" rx="50" fill="#121212"/>
4
- </g>
5
- <g filter="url(#filter1_dii_3691_8)">
6
- <path d="M777.575 213.695C783.436 202.511 797.012 204.944 804.988 213.542C832.07 242.697 844.414 274.301 845.576 313.7C848.976 344.016 823.928 378.134 823.25 405.147C822.932 417.962 836.272 455.924 839.521 471.767C851.891 531.527 845.876 588.692 825.112 638.649C792.672 716.609 724.307 777.001 633.845 802.289C627.887 803.957 606.993 811.264 595.681 811.435C593.659 809.678 591.988 808.175 590.504 806.643C586.797 802.819 584.197 798.806 582.475 790.577C576.462 761.851 565.572 742.488 552.5 728.694C539.535 715.013 524.906 707.352 512.631 701.389C508.167 699.222 502.791 701.083 500.622 705.546C498.454 710.01 500.316 715.386 504.779 717.555C516.696 723.343 528.84 729.853 539.456 741.055C549.965 752.144 559.467 768.381 564.884 794.259C565.643 797.883 566.583 801.067 567.7 803.926C567.753 804.136 567.807 804.347 567.859 804.559C568.149 805.72 568.921 807.208 570.01 808.942C571.697 812.075 573.668 814.807 575.934 817.361C583.391 827.554 592.744 840.549 589.301 849.25C588.633 850.884 587.512 852.367 585.832 853.646L584.542 854.182C542.454 871.307 492.199 854.982 457.768 825.212C431.931 801.036 417.374 772.448 409.011 747.292C406.283 738.743 404.159 730.282 402.055 721.389C399.947 711.286 398.787 702.566 398.055 696.033C397.502 691.101 393.056 687.55 388.124 688.102C383.193 688.655 379.642 693.102 380.194 698.033C382.587 719.381 389.53 765.525 419.415 808.243C264.274 766.874 185.888 636.408 218.245 482.062C226.539 442.525 234.708 410.908 214.29 373.915C196.651 341.967 174.56 301.709 185.259 264.218C186.771 258.868 188.641 252.993 191.078 247.297C195.502 236.986 201.796 227.277 211.234 222.362C235.523 208.496 259.135 228.196 283.424 228.569C288.013 228.638 301.104 224.629 306.261 223.288C366.037 207.819 430.169 240.224 458.067 294.166C466.748 310.948 472.457 330.939 475.886 349.532C480.932 375.439 476.578 404.566 488.784 428.814C499.857 451.32 516.309 451.209 538.151 448.97C586.522 443.979 632.599 455.551 676.573 475.112C700.641 485.826 719.637 490.181 736.806 475.75C743.138 470.136 747.058 455.627 744.338 444.233C744.077 442.94 743.732 441.633 743.292 440.314C735.412 416.771 706.146 412.54 686.543 403.595C653.338 388.444 634.328 360.699 621.361 327.645C617.085 316.968 609.257 291.712 613.977 280.836C615.037 278.449 616.976 276.563 619.378 275.572L619.306 275.522C619.345 275.506 619.383 275.488 619.421 275.472L619.394 275.453C619.723 275.372 620.051 275.292 620.378 275.214C621.001 275.02 621.634 274.878 622.276 274.785C657.082 267.268 688.732 280.794 711.874 297.722C715.549 300.029 719.387 303.229 723.06 306.696C730.398 313.128 736.473 319.608 741.021 325.271C742.984 323.682 745.749 322.3 747.576 322.311C747.571 322.281 747.566 322.25 747.561 322.22C747.58 322.217 747.6 322.215 747.619 322.212C743.222 294.634 746.649 273.762 755.471 253.188C760.956 240.422 768.516 227.767 777.575 213.695Z" fill="#D8E0E7"/>
7
- <path d="M227.901 687.868C229.805 691.273 231.785 694.637 233.84 697.959C258.318 737.525 293.134 770.418 336.718 794.536C335.102 806.372 332.651 818.69 328.812 823.594C307.454 845.298 270.708 812.382 256.939 795.102C240.65 774.647 227.423 735.101 227.901 687.868Z" fill="#D8E0E7"/>
8
- <path d="M336.017 256.593C349.178 253.234 362.587 261.197 365.933 274.357C369.292 287.532 361.315 300.928 348.141 304.273C334.98 307.619 321.598 299.656 318.253 286.495C314.907 273.334 322.856 259.952 336.017 256.593Z" fill="#121212"/>
9
- </g>
10
- <defs>
11
- <filter id="filter0_i_3691_8" x="0" y="0" width="1028" height="1028" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
12
- <feFlood flood-opacity="0" result="BackgroundImageFix"/>
13
- <feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
14
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
15
- <feOffset dx="4" dy="4"/>
16
- <feGaussianBlur stdDeviation="2"/>
17
- <feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
18
- <feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0"/>
19
- <feBlend mode="normal" in2="shape" result="effect1_innerShadow_3691_8"/>
20
- </filter>
21
- <filter id="filter1_dii_3691_8" x="158.451" y="194.176" width="711.458" height="702.963" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
22
- <feFlood flood-opacity="0" result="BackgroundImageFix"/>
23
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
24
- <feOffset dy="12"/>
25
- <feGaussianBlur stdDeviation="12"/>
26
- <feComposite in2="hardAlpha" operator="out"/>
27
- <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
28
- <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_3691_8"/>
29
- <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_3691_8" result="shape"/>
30
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
31
- <feOffset dx="2" dy="3"/>
32
- <feGaussianBlur stdDeviation="1.5"/>
33
- <feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
34
- <feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>
35
- <feBlend mode="normal" in2="shape" result="effect2_innerShadow_3691_8"/>
36
- <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
37
- <feOffset dx="-1" dy="-2"/>
38
- <feGaussianBlur stdDeviation="1.5"/>
39
- <feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
40
- <feColorMatrix type="matrix" values="0 0 0 0 0.272434 0 0 0 0 0.290815 0 0 0 0 0.382724 0 0 0 0.36 0"/>
41
- <feBlend mode="normal" in2="effect2_innerShadow_3691_8" result="effect3_innerShadow_3691_8"/>
42
- </filter>
43
- </defs>
44
- </svg>
@@ -1,403 +0,0 @@
1
- CREATE TABLE "account" (
2
- "access_token" text,
3
- "access_token_expires_at" timestamp,
4
- "account_id" text NOT NULL,
5
- "created_at" timestamp DEFAULT now() NOT NULL,
6
- "id" text PRIMARY KEY NOT NULL,
7
- "id_token" text,
8
- "password" text,
9
- "provider_id" text NOT NULL,
10
- "refresh_token" text,
11
- "refresh_token_expires_at" timestamp,
12
- "scope" text,
13
- "updated_at" timestamp DEFAULT now() NOT NULL,
14
- "user_id" text NOT NULL
15
- );
16
- --> statement-breakpoint
17
- ALTER TABLE "account" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
18
- CREATE TABLE "device_code" (
19
- "client_id" text,
20
- "device_code" text NOT NULL,
21
- "expires_at" timestamp NOT NULL,
22
- "id" text PRIMARY KEY NOT NULL,
23
- "last_polled_at" timestamp,
24
- "polling_interval" integer,
25
- "scope" text,
26
- "status" text NOT NULL,
27
- "user_code" text NOT NULL,
28
- "user_id" text
29
- );
30
- --> statement-breakpoint
31
- ALTER TABLE "device_code" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
32
- CREATE TABLE "invitation" (
33
- "created_at" timestamp DEFAULT now() NOT NULL,
34
- "email" text NOT NULL,
35
- "expires_at" timestamp NOT NULL,
36
- "id" text PRIMARY KEY NOT NULL,
37
- "inviter_id" text NOT NULL,
38
- "organization_id" text NOT NULL,
39
- "role" text,
40
- "status" text NOT NULL
41
- );
42
- --> statement-breakpoint
43
- ALTER TABLE "invitation" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
44
- CREATE TABLE "member" (
45
- "created_at" timestamp DEFAULT now() NOT NULL,
46
- "id" text PRIMARY KEY NOT NULL,
47
- "organization_id" text NOT NULL,
48
- "role" text NOT NULL,
49
- "user_id" text NOT NULL
50
- );
51
- --> statement-breakpoint
52
- ALTER TABLE "member" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
53
- CREATE TABLE "organization" (
54
- "created_at" timestamp DEFAULT now() NOT NULL,
55
- "id" text PRIMARY KEY NOT NULL,
56
- "logo" text,
57
- "metadata" text,
58
- "name" text NOT NULL,
59
- "slug" text,
60
- CONSTRAINT "organization_slug_unique" UNIQUE("slug")
61
- );
62
- --> statement-breakpoint
63
- ALTER TABLE "organization" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
64
- CREATE TABLE "session" (
65
- "active_organization_id" text,
66
- "created_at" timestamp DEFAULT now() NOT NULL,
67
- "expires_at" timestamp NOT NULL,
68
- "id" text PRIMARY KEY NOT NULL,
69
- "ip_address" text,
70
- "token" text NOT NULL,
71
- "updated_at" timestamp DEFAULT now() NOT NULL,
72
- "user_agent" text,
73
- "user_id" text NOT NULL,
74
- CONSTRAINT "session_token_unique" UNIQUE("token")
75
- );
76
- --> statement-breakpoint
77
- ALTER TABLE "session" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
78
- CREATE TABLE "user" (
79
- "created_at" timestamp DEFAULT now() NOT NULL,
80
- "email" text NOT NULL,
81
- "email_verified" boolean DEFAULT false NOT NULL,
82
- "id" text PRIMARY KEY NOT NULL,
83
- "image" text,
84
- "name" text NOT NULL,
85
- "updated_at" timestamp DEFAULT now() NOT NULL,
86
- CONSTRAINT "user_email_unique" UNIQUE("email")
87
- );
88
- --> statement-breakpoint
89
- ALTER TABLE "user" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
90
- CREATE TABLE "verification" (
91
- "created_at" timestamp DEFAULT now() NOT NULL,
92
- "expires_at" timestamp NOT NULL,
93
- "id" text PRIMARY KEY NOT NULL,
94
- "identifier" text NOT NULL,
95
- "updated_at" timestamp DEFAULT now() NOT NULL,
96
- "value" text NOT NULL
97
- );
98
- --> statement-breakpoint
99
- ALTER TABLE "verification" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
100
- CREATE TABLE "bigquery_query_costs" (
101
- "actual_bytes_billed" bigint,
102
- "actual_bytes_processed" bigint,
103
- "actual_cost_usd" double precision,
104
- "cache_hit" boolean,
105
- "connection_name" text NOT NULL,
106
- "created_at" timestamp with time zone DEFAULT now() NOT NULL,
107
- "currency" text DEFAULT 'USD' NOT NULL,
108
- "estimated_bytes_processed" bigint,
109
- "estimated_cost_usd" double precision,
110
- "executed_at" timestamp with time zone NOT NULL,
111
- "id" text PRIMARY KEY NOT NULL,
112
- "job_id" text,
113
- "location" text,
114
- "organization_id" text NOT NULL,
115
- "pricing_model" text DEFAULT 'unknown' NOT NULL,
116
- "query_id" text NOT NULL,
117
- "tool_call_id" text NOT NULL
118
- );
119
- --> statement-breakpoint
120
- ALTER TABLE "bigquery_query_costs" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
121
- CREATE TABLE "cli_query_actions" (
122
- "id" text PRIMARY KEY NOT NULL,
123
- "organization_id" text NOT NULL,
124
- "actor_user_id" text NOT NULL,
125
- "actor_email" text NOT NULL,
126
- "actor_auth_mode" text NOT NULL,
127
- "actor_membership_roles" jsonb NOT NULL,
128
- "request_id" text NOT NULL,
129
- "action_type" text NOT NULL,
130
- "stage" text DEFAULT 'received' NOT NULL,
131
- "status" text DEFAULT 'pending' NOT NULL,
132
- "usage_persistence_status" text DEFAULT 'not_started' NOT NULL,
133
- "source_key" text NOT NULL,
134
- "source_id" text,
135
- "provider" text,
136
- "source_status" text,
137
- "sql" text NOT NULL,
138
- "normalized_sql" text,
139
- "max_rows" integer,
140
- "max_bytes" integer,
141
- "cell_max_chars" integer,
142
- "timeout_ms" integer,
143
- "normalized_sql_changed" boolean DEFAULT false NOT NULL,
144
- "row_count" integer,
145
- "elapsed_ms" integer,
146
- "error_detail" text,
147
- "error_hint" text,
148
- "retryable" boolean,
149
- "last_event_id" text,
150
- "last_event_at" timestamp with time zone DEFAULT now() NOT NULL,
151
- "completed_at" timestamp with time zone,
152
- "created_at" timestamp with time zone DEFAULT now() NOT NULL,
153
- "updated_at" timestamp with time zone DEFAULT now() NOT NULL,
154
- "version" integer DEFAULT 1 NOT NULL,
155
- CONSTRAINT "cli_query_actions_identity_unique" UNIQUE("id","organization_id","request_id","action_type","source_key"),
156
- CONSTRAINT "cli_query_actions_action_type_check" CHECK ("cli_query_actions"."action_type" in ('validate', 'execute')),
157
- CONSTRAINT "cli_query_actions_actor_auth_mode_check" CHECK ("cli_query_actions"."actor_auth_mode" in ('browser_session', 'bearer_token')),
158
- CONSTRAINT "cli_query_actions_stage_check" CHECK ("cli_query_actions"."stage" in ('received', 'load_source', 'validate_query', 'load_credentials', 'execute_query', 'persist_usage', 'completed')),
159
- CONSTRAINT "cli_query_actions_status_check" CHECK ("cli_query_actions"."status" in ('pending', 'succeeded', 'source_not_found', 'source_not_queryable', 'query_rejected', 'query_preparation_failed', 'query_unavailable', 'query_timed_out', 'query_execution_failed')),
160
- CONSTRAINT "cli_query_actions_usage_persistence_status_check" CHECK ("cli_query_actions"."usage_persistence_status" in ('not_started', 'succeeded', 'failed')),
161
- CONSTRAINT "cli_query_actions_completed_stage_check" CHECK (( (stage = 'completed' and completed_at is not null) or (stage <> 'completed' and completed_at is null) )),
162
- CONSTRAINT "cli_query_actions_stage_status_alignment_check" CHECK (( (stage = 'completed' and status <> 'pending') or (stage <> 'completed' and status = 'pending') )),
163
- CONSTRAINT "cli_query_actions_pre_completion_usage_check" CHECK (( stage = 'completed' or usage_persistence_status = 'not_started' ))
164
- );
165
- --> statement-breakpoint
166
- ALTER TABLE "cli_query_actions" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
167
- CREATE TABLE "cli_query_action_events" (
168
- "id" text PRIMARY KEY NOT NULL,
169
- "query_action_id" text NOT NULL,
170
- "organization_id" text NOT NULL,
171
- "actor_user_id" text NOT NULL,
172
- "actor_email" text NOT NULL,
173
- "actor_auth_mode" text NOT NULL,
174
- "actor_membership_roles" jsonb NOT NULL,
175
- "request_id" text NOT NULL,
176
- "action_type" text NOT NULL,
177
- "event_type" text NOT NULL,
178
- "stage" text NOT NULL,
179
- "status" text NOT NULL,
180
- "usage_persistence_status" text NOT NULL,
181
- "source_key" text NOT NULL,
182
- "source_id" text,
183
- "provider" text,
184
- "source_status" text,
185
- "sql" text,
186
- "normalized_sql" text,
187
- "max_rows" integer,
188
- "max_bytes" integer,
189
- "cell_max_chars" integer,
190
- "timeout_ms" integer,
191
- "normalized_sql_changed" boolean DEFAULT false NOT NULL,
192
- "row_count" integer,
193
- "elapsed_ms" integer,
194
- "error_detail" text,
195
- "error_hint" text,
196
- "retryable" boolean,
197
- "occurred_at" timestamp with time zone NOT NULL,
198
- "causation_event_id" text,
199
- "org_slug" text,
200
- "created_at" timestamp with time zone DEFAULT now() NOT NULL,
201
- CONSTRAINT "cli_query_action_events_action_id_unique" UNIQUE("query_action_id","id"),
202
- CONSTRAINT "cli_query_action_events_sql_payload_check" CHECK (( (event_type = 'action_received' and sql is not null) or (event_type <> 'action_received' and sql is null) )),
203
- CONSTRAINT "cli_query_action_events_causation_chain_check" CHECK (( (event_type = 'action_received' and causation_event_id is null) or (event_type <> 'action_received' and causation_event_id is not null) )),
204
- CONSTRAINT "cli_query_action_events_validated_normalized_sql_check" CHECK ((event_type <> 'query_validated' or normalized_sql is not null)),
205
- CONSTRAINT "cli_query_action_events_lifecycle_check" CHECK (( (event_type = 'action_received' and stage = 'received' and status = 'pending' and usage_persistence_status = 'not_started') or (event_type = 'source_loaded' and stage = 'validate_query' and status = 'pending' and usage_persistence_status = 'not_started') or (event_type = 'source_not_found' and stage = 'completed' and status = 'source_not_found' and usage_persistence_status = 'not_started') or (event_type = 'source_not_queryable' and stage = 'completed' and status = 'source_not_queryable' and usage_persistence_status = 'not_started') or ( event_type = 'query_validated' and ( (action_type = 'validate' and stage = 'completed' and status = 'succeeded' and usage_persistence_status = 'not_started') or (action_type = 'execute' and stage = 'load_credentials' and status = 'pending' and usage_persistence_status = 'not_started') ) ) or (event_type = 'query_rejected' and stage = 'completed' and status = 'query_rejected' and usage_persistence_status = 'not_started') or (event_type = 'credentials_loaded' and stage = 'execute_query' and status = 'pending' and usage_persistence_status = 'not_started') or (event_type = 'query_preparation_failed' and stage = 'completed' and status = 'query_preparation_failed' and usage_persistence_status = 'not_started') or (event_type = 'query_executed' and stage = 'persist_usage' and status = 'pending' and usage_persistence_status = 'not_started') or (event_type = 'query_unavailable' and stage = 'completed' and status = 'query_unavailable' and usage_persistence_status = 'not_started') or (event_type = 'query_timed_out' and stage = 'completed' and status = 'query_timed_out' and usage_persistence_status = 'not_started') or (event_type = 'query_execution_failed' and stage = 'completed' and status = 'query_execution_failed' and usage_persistence_status = 'not_started') or (event_type = 'usage_persisted' and stage = 'completed' and status = 'succeeded' and usage_persistence_status = 'succeeded') or (event_type = 'usage_persist_failed' and stage = 'completed' and status = 'succeeded' and usage_persistence_status = 'failed') )),
206
- CONSTRAINT "cli_query_action_events_action_type_check" CHECK ("cli_query_action_events"."action_type" in ('validate', 'execute')),
207
- CONSTRAINT "cli_query_action_events_actor_auth_mode_check" CHECK ("cli_query_action_events"."actor_auth_mode" in ('browser_session', 'bearer_token')),
208
- CONSTRAINT "cli_query_action_events_event_type_check" CHECK ("cli_query_action_events"."event_type" in ('action_received', 'source_loaded', 'source_not_found', 'source_not_queryable', 'query_validated', 'query_rejected', 'credentials_loaded', 'query_preparation_failed', 'query_executed', 'query_unavailable', 'query_timed_out', 'query_execution_failed', 'usage_persisted', 'usage_persist_failed')),
209
- CONSTRAINT "cli_query_action_events_stage_check" CHECK ("cli_query_action_events"."stage" in ('received', 'load_source', 'validate_query', 'load_credentials', 'execute_query', 'persist_usage', 'completed')),
210
- CONSTRAINT "cli_query_action_events_status_check" CHECK ("cli_query_action_events"."status" in ('pending', 'succeeded', 'source_not_found', 'source_not_queryable', 'query_rejected', 'query_preparation_failed', 'query_unavailable', 'query_timed_out', 'query_execution_failed')),
211
- CONSTRAINT "cli_query_action_events_usage_persistence_status_check" CHECK ("cli_query_action_events"."usage_persistence_status" in ('not_started', 'succeeded', 'failed')),
212
- CONSTRAINT "cli_query_action_events_causation_not_self_check" CHECK ("cli_query_action_events"."causation_event_id" is null or "cli_query_action_events"."causation_event_id" <> "cli_query_action_events"."id")
213
- );
214
- --> statement-breakpoint
215
- ALTER TABLE "cli_query_action_events" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
216
- CREATE TABLE "connector_jobs" (
217
- "completed_at" timestamp with time zone,
218
- "connector_id" text NOT NULL,
219
- "created_at" timestamp with time zone DEFAULT now() NOT NULL,
220
- "database" text NOT NULL,
221
- "job_id" text PRIMARY KEY NOT NULL,
222
- "leased_at" timestamp with time zone,
223
- "max_rows" integer,
224
- "outcome" jsonb,
225
- "sql" text NOT NULL,
226
- "status" text NOT NULL,
227
- "timeout_ms" integer,
228
- "updated_at" timestamp with time zone DEFAULT now() NOT NULL,
229
- "workgroup" text
230
- );
231
- --> statement-breakpoint
232
- ALTER TABLE "connector_jobs" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
233
- CREATE TABLE "connectors" (
234
- "auth_token_hash" text NOT NULL,
235
- "connector_id" text PRIMARY KEY NOT NULL,
236
- "connector_name" text NOT NULL,
237
- "health_status" text,
238
- "last_heartbeat_at" timestamp with time zone,
239
- "last_seen_at" timestamp with time zone,
240
- "metadata" jsonb,
241
- "organization_id" text NOT NULL,
242
- "registered_at" timestamp with time zone DEFAULT now() NOT NULL,
243
- "updated_at" timestamp with time zone DEFAULT now() NOT NULL
244
- );
245
- --> statement-breakpoint
246
- ALTER TABLE "connectors" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
247
- CREATE TABLE "data_source_query_costs" (
248
- "actual_cost_usd" double precision,
249
- "actual_processed_bytes" bigint,
250
- "billable_bytes" bigint,
251
- "cache_hit" boolean,
252
- "connection_name" text NOT NULL,
253
- "connector_id" text,
254
- "created_at" timestamp with time zone DEFAULT now() NOT NULL,
255
- "currency" text DEFAULT 'USD' NOT NULL,
256
- "database" text,
257
- "estimated_cost_usd" double precision,
258
- "estimated_processed_bytes" bigint,
259
- "executed_at" timestamp with time zone NOT NULL,
260
- "execution_time_ms" integer,
261
- "id" text PRIMARY KEY NOT NULL,
262
- "job_id" text,
263
- "location" text,
264
- "organization_id" text NOT NULL,
265
- "pricing_model" text DEFAULT 'unknown' NOT NULL,
266
- "provider" text NOT NULL,
267
- "query_execution_id" text,
268
- "query_id" text NOT NULL,
269
- "row_count" integer,
270
- "tool_call_id" text NOT NULL,
271
- "workgroup" text
272
- );
273
- --> statement-breakpoint
274
- ALTER TABLE "data_source_query_costs" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
275
- CREATE TABLE "data_sources" (
276
- "created_at" timestamp with time zone DEFAULT now() NOT NULL,
277
- "credentials_encrypted" text NOT NULL,
278
- "credentials_iv" text NOT NULL,
279
- "error_message" text,
280
- "id" text PRIMARY KEY NOT NULL,
281
- "last_used_at" timestamp with time zone,
282
- "name" text NOT NULL,
283
- "organization_id" text NOT NULL,
284
- "provider" text NOT NULL,
285
- "provider_account_id" text,
286
- "scope" text,
287
- "status" text DEFAULT 'active' NOT NULL,
288
- "updated_at" timestamp with time zone DEFAULT now() NOT NULL,
289
- "use_as_data_source" boolean DEFAULT true NOT NULL,
290
- CONSTRAINT "data_sources_organization_name_unique" UNIQUE("organization_id","name")
291
- );
292
- --> statement-breakpoint
293
- ALTER TABLE "data_sources" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
294
- CREATE TABLE "data_source_table_usage" (
295
- "column_memos" jsonb DEFAULT '{}'::jsonb NOT NULL,
296
- "created_at" timestamp with time zone DEFAULT now() NOT NULL,
297
- "data_source_id" text NOT NULL,
298
- "formatted" text NOT NULL,
299
- "generated_at" timestamp with time zone NOT NULL,
300
- "id" text PRIMARY KEY NOT NULL,
301
- "memo_updated_at" timestamp with time zone,
302
- "memo_updated_by" text,
303
- "organization_id" text NOT NULL,
304
- "provider" text NOT NULL,
305
- "schema_hash" text,
306
- "table_lineage" jsonb DEFAULT '{}'::jsonb NOT NULL,
307
- "table_memos" jsonb DEFAULT '{}'::jsonb NOT NULL,
308
- "tables" jsonb NOT NULL,
309
- "updated_at" timestamp with time zone DEFAULT now() NOT NULL
310
- );
311
- --> statement-breakpoint
312
- ALTER TABLE "data_source_table_usage" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
313
- CREATE TABLE "organization_profiles" (
314
- "id" text PRIMARY KEY NOT NULL,
315
- "organization_id" text NOT NULL,
316
- "north_star_metric" text,
317
- "kpis" jsonb DEFAULT '[]'::jsonb NOT NULL,
318
- "website_url" text,
319
- "monthly_budget_usd" double precision,
320
- "created_at" timestamp with time zone DEFAULT now() NOT NULL,
321
- "updated_at" timestamp with time zone DEFAULT now() NOT NULL
322
- );
323
- --> statement-breakpoint
324
- ALTER TABLE "organization_profiles" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
325
- CREATE TABLE "user_profiles" (
326
- "created_at" timestamp with time zone DEFAULT now() NOT NULL,
327
- "id" text PRIMARY KEY NOT NULL,
328
- "updated_at" timestamp with time zone DEFAULT now() NOT NULL,
329
- "user_id" text NOT NULL
330
- );
331
- --> statement-breakpoint
332
- ALTER TABLE "user_profiles" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
333
- ALTER TABLE "account" ADD CONSTRAINT "account_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
334
- ALTER TABLE "device_code" ADD CONSTRAINT "device_code_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
335
- ALTER TABLE "invitation" ADD CONSTRAINT "invitation_inviter_id_user_id_fk" FOREIGN KEY ("inviter_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
336
- ALTER TABLE "invitation" ADD CONSTRAINT "invitation_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
337
- ALTER TABLE "member" ADD CONSTRAINT "member_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
338
- ALTER TABLE "member" ADD CONSTRAINT "member_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
339
- ALTER TABLE "session" ADD CONSTRAINT "session_active_organization_id_organization_id_fk" FOREIGN KEY ("active_organization_id") REFERENCES "public"."organization"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
340
- ALTER TABLE "session" ADD CONSTRAINT "session_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
341
- ALTER TABLE "bigquery_query_costs" ADD CONSTRAINT "bigquery_query_costs_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
342
- ALTER TABLE "cli_query_actions" ADD CONSTRAINT "cli_query_actions_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
343
- ALTER TABLE "cli_query_actions" ADD CONSTRAINT "cli_query_actions_source_id_data_sources_id_fk" FOREIGN KEY ("source_id") REFERENCES "public"."data_sources"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
344
- ALTER TABLE "cli_query_actions" ADD CONSTRAINT "cli_query_actions_same_action_last_event_fk" FOREIGN KEY ("id","last_event_id") REFERENCES "public"."cli_query_action_events"("query_action_id","id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
345
- ALTER TABLE "cli_query_action_events" ADD CONSTRAINT "cli_query_action_events_query_action_id_cli_query_actions_id_fk" FOREIGN KEY ("query_action_id") REFERENCES "public"."cli_query_actions"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
346
- ALTER TABLE "cli_query_action_events" ADD CONSTRAINT "cli_query_action_events_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
347
- ALTER TABLE "cli_query_action_events" ADD CONSTRAINT "cli_query_action_events_source_id_data_sources_id_fk" FOREIGN KEY ("source_id") REFERENCES "public"."data_sources"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
348
- ALTER TABLE "cli_query_action_events" ADD CONSTRAINT "cli_query_action_events_action_identity_fk" FOREIGN KEY ("query_action_id","organization_id","request_id","action_type","source_key") REFERENCES "public"."cli_query_actions"("id","organization_id","request_id","action_type","source_key") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
349
- ALTER TABLE "cli_query_action_events" ADD CONSTRAINT "cli_query_action_events_same_action_causation_fk" FOREIGN KEY ("query_action_id","causation_event_id") REFERENCES "public"."cli_query_action_events"("query_action_id","id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
350
- ALTER TABLE "cli_query_action_events" ADD CONSTRAINT "cli_query_action_events_causation_event_id_cli_query_action_events_id_fk" FOREIGN KEY ("causation_event_id") REFERENCES "public"."cli_query_action_events"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
351
- ALTER TABLE "connector_jobs" ADD CONSTRAINT "connector_jobs_connector_id_connectors_connector_id_fk" FOREIGN KEY ("connector_id") REFERENCES "public"."connectors"("connector_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
352
- ALTER TABLE "connectors" ADD CONSTRAINT "connectors_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
353
- ALTER TABLE "data_source_query_costs" ADD CONSTRAINT "data_source_query_costs_connector_id_connectors_connector_id_fk" FOREIGN KEY ("connector_id") REFERENCES "public"."connectors"("connector_id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
354
- ALTER TABLE "data_source_query_costs" ADD CONSTRAINT "data_source_query_costs_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
355
- ALTER TABLE "data_sources" ADD CONSTRAINT "data_sources_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
356
- ALTER TABLE "data_source_table_usage" ADD CONSTRAINT "data_source_table_usage_data_source_id_data_sources_id_fk" FOREIGN KEY ("data_source_id") REFERENCES "public"."data_sources"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
357
- ALTER TABLE "data_source_table_usage" ADD CONSTRAINT "data_source_table_usage_memo_updated_by_user_id_fk" FOREIGN KEY ("memo_updated_by") REFERENCES "public"."user"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
358
- ALTER TABLE "data_source_table_usage" ADD CONSTRAINT "data_source_table_usage_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
359
- ALTER TABLE "organization_profiles" ADD CONSTRAINT "organization_profiles_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
360
- ALTER TABLE "user_profiles" ADD CONSTRAINT "user_profiles_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
361
- CREATE INDEX "account_userId_idx" ON "account" USING btree ("user_id");--> statement-breakpoint
362
- CREATE UNIQUE INDEX "device_code_device_code_key" ON "device_code" USING btree ("device_code");--> statement-breakpoint
363
- CREATE UNIQUE INDEX "device_code_user_code_key" ON "device_code" USING btree ("user_code");--> statement-breakpoint
364
- CREATE INDEX "device_code_user_id_idx" ON "device_code" USING btree ("user_id");--> statement-breakpoint
365
- CREATE INDEX "device_code_expires_at_idx" ON "device_code" USING btree ("expires_at");--> statement-breakpoint
366
- CREATE INDEX "invitation_organizationId_idx" ON "invitation" USING btree ("organization_id");--> statement-breakpoint
367
- CREATE INDEX "invitation_email_idx" ON "invitation" USING btree ("email");--> statement-breakpoint
368
- CREATE INDEX "member_organizationId_idx" ON "member" USING btree ("organization_id");--> statement-breakpoint
369
- CREATE INDEX "member_userId_idx" ON "member" USING btree ("user_id");--> statement-breakpoint
370
- CREATE INDEX "session_userId_idx" ON "session" USING btree ("user_id");--> statement-breakpoint
371
- CREATE INDEX "verification_identifier_idx" ON "verification" USING btree ("identifier");--> statement-breakpoint
372
- CREATE INDEX "idx_bigquery_query_costs_org" ON "bigquery_query_costs" USING btree ("organization_id");--> statement-breakpoint
373
- CREATE INDEX "idx_bigquery_query_costs_executed_at" ON "bigquery_query_costs" USING btree ("executed_at");--> statement-breakpoint
374
- CREATE INDEX "idx_cli_query_actions_org_created" ON "cli_query_actions" USING btree ("organization_id","created_at");--> statement-breakpoint
375
- CREATE INDEX "idx_cli_query_actions_actor_user_id" ON "cli_query_actions" USING btree ("actor_user_id");--> statement-breakpoint
376
- CREATE INDEX "idx_cli_query_actions_request_id" ON "cli_query_actions" USING btree ("request_id");--> statement-breakpoint
377
- CREATE INDEX "idx_cli_query_actions_source_id" ON "cli_query_actions" USING btree ("source_id");--> statement-breakpoint
378
- CREATE INDEX "idx_cli_query_actions_status" ON "cli_query_actions" USING btree ("status");--> statement-breakpoint
379
- CREATE INDEX "idx_cli_query_action_events_action_occurred" ON "cli_query_action_events" USING btree ("query_action_id","occurred_at","id");--> statement-breakpoint
380
- CREATE INDEX "idx_cli_query_action_events_org_occurred" ON "cli_query_action_events" USING btree ("organization_id","occurred_at");--> statement-breakpoint
381
- CREATE INDEX "idx_cli_query_action_events_actor_user_id" ON "cli_query_action_events" USING btree ("actor_user_id");--> statement-breakpoint
382
- CREATE INDEX "idx_cli_query_action_events_request_id" ON "cli_query_action_events" USING btree ("request_id");--> statement-breakpoint
383
- CREATE INDEX "idx_cli_query_action_events_causation" ON "cli_query_action_events" USING btree ("causation_event_id");--> statement-breakpoint
384
- CREATE UNIQUE INDEX "idx_cli_query_action_events_action_event_type_unique" ON "cli_query_action_events" USING btree ("query_action_id","event_type");--> statement-breakpoint
385
- CREATE INDEX "idx_connector_jobs_connector_created" ON "connector_jobs" USING btree ("connector_id","created_at");--> statement-breakpoint
386
- CREATE INDEX "idx_connector_jobs_status_created" ON "connector_jobs" USING btree ("status","created_at");--> statement-breakpoint
387
- CREATE INDEX "idx_connectors_organization" ON "connectors" USING btree ("organization_id");--> statement-breakpoint
388
- CREATE INDEX "idx_connectors_last_seen" ON "connectors" USING btree ("last_seen_at");--> statement-breakpoint
389
- CREATE UNIQUE INDEX "idx_connectors_auth_token_hash_unique" ON "connectors" USING btree ("auth_token_hash");--> statement-breakpoint
390
- CREATE INDEX "idx_data_source_query_costs_org" ON "data_source_query_costs" USING btree ("organization_id");--> statement-breakpoint
391
- CREATE INDEX "idx_data_source_query_costs_provider" ON "data_source_query_costs" USING btree ("provider");--> statement-breakpoint
392
- CREATE INDEX "idx_data_source_query_costs_executed_at" ON "data_source_query_costs" USING btree ("executed_at");--> statement-breakpoint
393
- CREATE INDEX "idx_data_sources_organization" ON "data_sources" USING btree ("organization_id");--> statement-breakpoint
394
- CREATE INDEX "idx_data_sources_provider" ON "data_sources" USING btree ("provider");--> statement-breakpoint
395
- CREATE INDEX "idx_data_sources_provider_account" ON "data_sources" USING btree ("provider","provider_account_id");--> statement-breakpoint
396
- CREATE INDEX "idx_data_sources_status" ON "data_sources" USING btree ("status");--> statement-breakpoint
397
- CREATE UNIQUE INDEX "idx_data_source_table_usage_source" ON "data_source_table_usage" USING btree ("data_source_id");--> statement-breakpoint
398
- CREATE INDEX "idx_data_source_table_usage_org" ON "data_source_table_usage" USING btree ("organization_id");--> statement-breakpoint
399
- CREATE INDEX "idx_data_source_table_usage_provider" ON "data_source_table_usage" USING btree ("provider");--> statement-breakpoint
400
- CREATE INDEX "idx_data_source_table_usage_generated_at" ON "data_source_table_usage" USING btree ("generated_at");--> statement-breakpoint
401
- CREATE UNIQUE INDEX "idx_org_profiles_org" ON "organization_profiles" USING btree ("organization_id");--> statement-breakpoint
402
- CREATE INDEX "idx_org_profiles_created" ON "organization_profiles" USING btree ("created_at");--> statement-breakpoint
403
- CREATE UNIQUE INDEX "idx_user_profiles_user" ON "user_profiles" USING btree ("user_id");
@@ -1,8 +0,0 @@
1
- CREATE TABLE "rate_limit" (
2
- "count" integer NOT NULL,
3
- "key" text NOT NULL,
4
- "last_request" bigint NOT NULL
5
- );
6
- --> statement-breakpoint
7
- ALTER TABLE "rate_limit" ENABLE ROW LEVEL SECURITY;--> statement-breakpoint
8
- CREATE UNIQUE INDEX "rate_limit_key_key" ON "rate_limit" USING btree ("key");
@@ -1 +0,0 @@
1
- ALTER TABLE "rate_limit" ADD COLUMN "id" text PRIMARY KEY NOT NULL;