@onequery/cli 0.1.60-win32-x64 → 0.1.61-darwin-arm64

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 (165) hide show
  1. package/package.json +7 -3
  2. package/vendor/{x86_64-pc-windows-msvc/onequery/onequery.exe → aarch64-apple-darwin/onequery/onequery} +0 -0
  3. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/_authenticated-uwY2FOB6.js → aarch64-apple-darwin/runtime/dashboard/assets/_authenticated-C931dYwo.js} +1 -1
  4. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/_org_slug-1crNB0Ah.js → aarch64-apple-darwin/runtime/dashboard/assets/_org_slug-DVciaIH3.js} +1 -1
  5. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/audit-DYf3njlW.js → aarch64-apple-darwin/runtime/dashboard/assets/audit-CKDeHHwu.js} +1 -1
  6. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/budget-rhDPs_Ty.js → aarch64-apple-darwin/runtime/dashboard/assets/budget-C0ec4tLe.js} +1 -1
  7. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/callback-BDln8gka.js → aarch64-apple-darwin/runtime/dashboard/assets/callback-CIsYHB3i.js} +1 -1
  8. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/connect-database-D56uE9FS.js → aarch64-apple-darwin/runtime/dashboard/assets/connect-database-PK6THEco.js} +1 -1
  9. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/create-org-DamgaWxq.js → aarch64-apple-darwin/runtime/dashboard/assets/create-org-Fj6dSZrn.js} +1 -1
  10. package/vendor/aarch64-apple-darwin/runtime/dashboard/assets/data-source-connection-form-7teYBQYT.js +231 -0
  11. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/device-C4Ma2TgY.js → aarch64-apple-darwin/runtime/dashboard/assets/device-DutTdtVV.js} +1 -1
  12. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/dropdown-menu-BRGyFdJg.js → aarch64-apple-darwin/runtime/dashboard/assets/dropdown-menu-DD9dPAoI.js} +1 -1
  13. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/home-ZMClJ9Pj.js → aarch64-apple-darwin/runtime/dashboard/assets/home-B53E3DoQ.js} +1 -1
  14. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/index-BQ5WpFpw.js → aarch64-apple-darwin/runtime/dashboard/assets/index-DpRXHDvA.js} +2 -2
  15. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/integrations-BCKR7N0R.js → aarch64-apple-darwin/runtime/dashboard/assets/integrations-CT2l1XOw.js} +1 -1
  16. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/invite._invitationId-97Xp9MUh.js → aarch64-apple-darwin/runtime/dashboard/assets/invite._invitationId-BkQMTN8q.js} +1 -1
  17. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/routes-D353djw9.js → aarch64-apple-darwin/runtime/dashboard/assets/routes-tThQWbja.js} +1 -1
  18. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/signin-L1mng8Zo.js → aarch64-apple-darwin/runtime/dashboard/assets/signin-BdcpSmM2.js} +1 -1
  19. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/team-C2d56qIF.js → aarch64-apple-darwin/runtime/dashboard/assets/team-C3iYcfhG.js} +1 -1
  20. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/theme-toggle-BZdfreoS.js → aarch64-apple-darwin/runtime/dashboard/assets/theme-toggle-DUk2lDSc.js} +1 -1
  21. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/use-optimistic-mutation-CgygrWuY.js → aarch64-apple-darwin/runtime/dashboard/assets/use-optimistic-mutation-BQtYCi_H.js} +1 -1
  22. package/vendor/{x86_64-pc-windows-msvc/runtime/dashboard/assets/useBaseQuery-DvDLtq32.js → aarch64-apple-darwin/runtime/dashboard/assets/useBaseQuery-DD8ulSXS.js} +1 -1
  23. package/vendor/aarch64-apple-darwin/runtime/dashboard/assets/useQuery-AQx9EdbX.js +1 -0
  24. package/vendor/aarch64-apple-darwin/runtime/dashboard/assets/useSuspenseQuery-l71R7lgi.js +1 -0
  25. package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/index.html +1 -1
  26. package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/server/onequery-server.mjs +858 -143
  27. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/data-source-connection-form-DEf4i7OC.js +0 -231
  28. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/useQuery-DmUJeyCB.js +0 -1
  29. package/vendor/x86_64-pc-windows-msvc/runtime/dashboard/assets/useSuspenseQuery-CoSA2jMV.js +0 -1
  30. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/CompositeItem-CgPZMs1M.js +0 -0
  31. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/CompositeList-DfjQy1zM.js +0 -0
  32. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/DialogTitle-BntdH4ni.js +0 -0
  33. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/IconArrowRight-DsOD7mDl.js +0 -0
  34. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/IconCheck-Gc24xPT2.js +0 -0
  35. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/IconChevronDown-B-39MA7-.js +0 -0
  36. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/IconChevronRight-DD16tNHZ.js +0 -0
  37. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/IconCoins-C7Nn0L6R.js +0 -0
  38. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/IconHistory-DuLS8PKF.js +0 -0
  39. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/IconLoader2-0wRUrt7h.js +0 -0
  40. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/IconPlus-C2A-IVFH.js +0 -0
  41. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/IconX-BzxPQEcJ.js +0 -0
  42. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/Separator-Cs73OsCh.js +0 -0
  43. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/alert-8GsJA6Gl.js +0 -0
  44. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/api-base-url-DIb6qukm.js +0 -0
  45. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/api-client-Tmtae0wC.js +0 -0
  46. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/api-paths-CFdXXr7u.js +0 -0
  47. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/app-routes-BJtCemWJ.js +0 -0
  48. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/auth-bootstrap-query-YDJYu6l2.js +0 -0
  49. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/auth-client-CVsUOxFj.js +0 -0
  50. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/avatar-BCfjsnDU.js +0 -0
  51. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/badge-CIufIvL5.js +0 -0
  52. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/card-CZCl7QNy.js +0 -0
  53. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/checkbox-DWh_Z3yP.js +0 -0
  54. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/compiler-runtime-DCc3R3Xn.js +0 -0
  55. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/copy-button-BO1KBdf9.js +0 -0
  56. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/createReactComponent-_L2mp4Ui.js +0 -0
  57. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/dist-Cg-lnuP8.js +0 -0
  58. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/empty-CL-DucEV.js +0 -0
  59. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/format-date-BESHNrRz.js +0 -0
  60. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/getDisabledMountTransitionStyles-C-jmk481.js +0 -0
  61. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/getPseudoElementBounds-D3PAuNIt.js +0 -0
  62. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/index-B4OsjuJp.css +0 -0
  63. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/input-CZTmGabI.js +0 -0
  64. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  65. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  66. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  67. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  68. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  69. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  70. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  71. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/jsx-runtime-DG_AJzB_.js +0 -0
  72. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/label-daGr3DrB.js +0 -0
  73. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/link-Cgvqhh5w.js +0 -0
  74. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/matchContext-CDajBC0L.js +0 -0
  75. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/organization-permissions-CW7dzzFM.js +0 -0
  76. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/organization-query-keys-DLHrXHGP.js +0 -0
  77. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/query-C1n0RfvA.js +0 -0
  78. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/query-timing-CO3WQkW1.js +0 -0
  79. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/queryOptions-DgMxBJDn.js +0 -0
  80. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/schemas-BwLRjo3Z.js +0 -0
  81. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/select-BMJNvvto.js +0 -0
  82. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/separator-CXAloiOj.js +0 -0
  83. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/settings-CIb83OOW.js +0 -0
  84. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/src-8B8fN55i.js +0 -0
  85. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/textarea-BJH4Hgaa.js +0 -0
  86. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/useBaseUiId-BCer0ph2.js +0 -0
  87. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/useCompositeItem-D0ac8zgi.js +0 -0
  88. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/useControlled-D9OlrJOh.js +0 -0
  89. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/useRender-CSUYq5_K.js +0 -0
  90. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/useRouterState-DpT8luFk.js +0 -0
  91. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/useValueChanged-BUbLVZRk.js +0 -0
  92. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/utils-C8DGLIgm.js +0 -0
  93. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/xstate-react.esm-BBK5XSGm.js +0 -0
  94. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/assets/zod-CtCK2PFe.js +0 -0
  95. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/favicon.ico +0 -0
  96. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/amplitude/step1_settings_sidebar.png +0 -0
  97. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/amplitude/step2_projects.png +0 -0
  98. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/amplitude/step3_project_keys.png +0 -0
  99. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/amplitude/step4_api_keys.png +0 -0
  100. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/bigquery/step1_service_accounts.png +0 -0
  101. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/bigquery/step2_bigquery_roles.png +0 -0
  102. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/bigquery/step3_add_key_menu.png +0 -0
  103. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/bigquery/step4_create_json_key.png +0 -0
  104. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/cloudflare-workers-observability/step2_enable_workers_logs.png +0 -0
  105. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/cloudflare-workers-observability/step3_user_api_tokens.png +0 -0
  106. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/cloudflare-workers-observability/step4_create_api_token.png +0 -0
  107. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/cloudflare-workers-observability/step5_workers_pages_account_id.png +0 -0
  108. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/cloudflare-workers-observability/step6_workers_observability_permission.png +0 -0
  109. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/ga4/step1_service_accounts.png +0 -0
  110. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/ga4/step2_create_json_key.png +0 -0
  111. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/ga4/step3_add_user_viewer.png +0 -0
  112. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/ga4/step4_property_details.png +0 -0
  113. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/github-token-guide/step1_signin.png +0 -0
  114. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/github-token-guide/step2_new_fine_grained_token_sanitized.png +0 -0
  115. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/github-token-guide/step3_permissions_configured_sanitized.png +0 -0
  116. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/github-token-guide/step4_token_created_sanitized.png +0 -0
  117. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/mixpanel/step1_service_accounts.png +0 -0
  118. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/mixpanel/step2_create_service_account.png +0 -0
  119. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/mixpanel/step3_credentials.png +0 -0
  120. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/mixpanel/step4_project_settings.png +0 -0
  121. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/postgresql/step1_create_user.png +0 -0
  122. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/postgresql/step2_connection.png +0 -0
  123. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/posthog/step1_project_settings.png +0 -0
  124. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/posthog/step2_personal_api_keys.png +0 -0
  125. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/posthog/step3_create_key_modal.png +0 -0
  126. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/rds/step1_connect.png +0 -0
  127. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/rds/step2_create_user.png +0 -0
  128. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/rds/step3_grant.png +0 -0
  129. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/rds/step4_info.png +0 -0
  130. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/sentry/step1_personal_tokens.png +0 -0
  131. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/sentry/step2_create_token_permissions.png +0 -0
  132. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/sentry/step3_organization_slug.png +0 -0
  133. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/images/sentry/step4_project_slug.png +0 -0
  134. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/dashboard/onequery.svg +0 -0
  135. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260327065242_curious_nightmare.sql +0 -0
  136. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260403103652_slippery_hellfire_club.sql +0 -0
  137. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260403112219_gigantic_namora.sql +0 -0
  138. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260420071232_previous_justin_hammer.sql +0 -0
  139. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260420093157_spooky_cassandra_nova.sql +0 -0
  140. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260420101631_even_ogun.sql +0 -0
  141. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260425110519_smart_amazoness.sql +0 -0
  142. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260428033542_rename_source_query_interface_missing.sql +0 -0
  143. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260430114113_jittery_scorpion.sql +0 -0
  144. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260430135906_flippant_timeslip.sql +0 -0
  145. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260502000100_drop_old_workflow_audit_tables.sql +0 -0
  146. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260503011110_moaning_jack_flag.sql +0 -0
  147. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260514143216_reset_workflow_audit_history.sql +0 -0
  148. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/20260524081943_colorful_firelord.sql +0 -0
  149. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260327065242_snapshot.json +0 -0
  150. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260403103652_snapshot.json +0 -0
  151. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260403112219_snapshot.json +0 -0
  152. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260420071232_snapshot.json +0 -0
  153. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260420093157_snapshot.json +0 -0
  154. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260420101631_snapshot.json +0 -0
  155. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260425110519_snapshot.json +0 -0
  156. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260428033542_snapshot.json +0 -0
  157. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260430114113_snapshot.json +0 -0
  158. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260430135906_snapshot.json +0 -0
  159. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260503011110_snapshot.json +0 -0
  160. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/20260524081943_snapshot.json +0 -0
  161. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/migrations/meta/_journal.json +0 -0
  162. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/pglite/initdb.wasm +0 -0
  163. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/pglite/pglite.data +0 -0
  164. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/runtime/pglite/pglite.wasm +0 -0
  165. /package/vendor/{x86_64-pc-windows-msvc → aarch64-apple-darwin}/server/polyglot_sql_wasm_bg.wasm +0 -0
@@ -18831,6 +18831,59 @@ function formatError$1(error, mapper = (issue) => issue.message) {
18831
18831
  processError(error);
18832
18832
  return fieldErrors;
18833
18833
  }
18834
+ /** Format a ZodError as a human-readable string in the following form.
18835
+ *
18836
+ * From
18837
+ *
18838
+ * ```ts
18839
+ * ZodError {
18840
+ * issues: [
18841
+ * {
18842
+ * expected: 'string',
18843
+ * code: 'invalid_type',
18844
+ * path: [ 'username' ],
18845
+ * message: 'Invalid input: expected string'
18846
+ * },
18847
+ * {
18848
+ * expected: 'number',
18849
+ * code: 'invalid_type',
18850
+ * path: [ 'favoriteNumbers', 1 ],
18851
+ * message: 'Invalid input: expected number'
18852
+ * }
18853
+ * ];
18854
+ * }
18855
+ * ```
18856
+ *
18857
+ * to
18858
+ *
18859
+ * ```
18860
+ * username
18861
+ * ✖ Expected number, received string at "username
18862
+ * favoriteNumbers[0]
18863
+ * ✖ Invalid input: expected number
18864
+ * ```
18865
+ */
18866
+ function toDotPath$1(_path) {
18867
+ const segs = [];
18868
+ const path = _path.map((seg) => typeof seg === "object" ? seg.key : seg);
18869
+ for (const seg of path) if (typeof seg === "number") segs.push(`[${seg}]`);
18870
+ else if (typeof seg === "symbol") segs.push(`[${JSON.stringify(String(seg))}]`);
18871
+ else if (/[^\w$]/.test(seg)) segs.push(`[${JSON.stringify(seg)}]`);
18872
+ else {
18873
+ if (segs.length) segs.push(".");
18874
+ segs.push(seg);
18875
+ }
18876
+ return segs.join("");
18877
+ }
18878
+ function prettifyError$1(error) {
18879
+ const lines = [];
18880
+ const issues = [...error.issues].sort((a, b) => (a.path ?? []).length - (b.path ?? []).length);
18881
+ for (const issue of issues) {
18882
+ lines.push(`✖ ${issue.message}`);
18883
+ if (issue.path?.length) lines.push(` → at ${toDotPath$1(issue.path)}`);
18884
+ }
18885
+ return lines.join("\n");
18886
+ }
18834
18887
  //#endregion
18835
18888
  //#region node_modules/.bun/zod@4.4.2/node_modules/zod/v4/core/parse.js
18836
18889
  const _parse$1 = (_Err) => (schema, value, _ctx, _params) => {
@@ -23035,7 +23088,7 @@ const base64UrlToBytes = createBase64BytesCodec("base64url");
23035
23088
  const base64UrlToBuffer = createBase64BufferCodec("base64url");
23036
23089
  const base64UrlToUtf8 = createBase64Utf8Codec("base64url");
23037
23090
  //#endregion
23038
- //#region node_modules/.bun/better-result@2.9.0/node_modules/better-result/dist/index.mjs
23091
+ //#region node_modules/.bun/better-result@2.9.2/node_modules/better-result/dist/index.mjs
23039
23092
  function e$10(e, t) {
23040
23093
  return e === 2 ? ((...e) => e.length >= 2 ? t(e[0], e[1]) : (n) => t(n, e[0])) : e === 3 ? ((...e) => e.length >= 3 ? t(e[0], e[1], e[2]) : (n) => t(n, e[0], e[1])) : e === 4 ? ((...e) => e.length >= 4 ? t(e[0], e[1], e[2], e[3]) : (n) => t(n, e[0], e[1], e[2])) : ((...n) => n.length >= e ? t(...n) : (e) => t(e, ...n));
23041
23094
  }
@@ -47014,6 +47067,30 @@ const DiscordCredentialsSchema = object$1({
47014
47067
  token: requiredOpaqueString("Token is required"),
47015
47068
  type: literal$1("discord")
47016
47069
  });
47070
+ const parseSlackScopeList = (scope) => scope.split(",").map((value) => value.trim()).filter((value) => value.length > 0);
47071
+ const SlackCredentialsBaseSchema = object$1({
47072
+ botToken: requiredOpaqueString("Bot token is required"),
47073
+ botUserId: string$3(),
47074
+ teamId: trimmedString("Team ID is required"),
47075
+ teamName: string$3(),
47076
+ type: literal$1("slack")
47077
+ });
47078
+ const CanonicalSlackCredentialsSchema = SlackCredentialsBaseSchema.extend({ botScopes: array$1(string$3()) });
47079
+ const LegacySlackCredentialsSchema = SlackCredentialsBaseSchema.extend({
47080
+ botScopes: array$1(string$3()).optional(),
47081
+ scope: string$3()
47082
+ });
47083
+ const SlackCredentialsSchema = union$2([CanonicalSlackCredentialsSchema, LegacySlackCredentialsSchema]).transform((credentials) => {
47084
+ if ("scope" in credentials) return {
47085
+ botScopes: credentials.botScopes ?? parseSlackScopeList(credentials.scope),
47086
+ botToken: credentials.botToken,
47087
+ botUserId: credentials.botUserId,
47088
+ teamId: credentials.teamId,
47089
+ teamName: credentials.teamName,
47090
+ type: credentials.type
47091
+ };
47092
+ return credentials;
47093
+ });
47017
47094
  const CalCredentialsSchema = object$1({
47018
47095
  apiBaseUrl: optionalTrimmedUrl("API base URL must be a valid URL"),
47019
47096
  apiKey: requiredOpaqueString("API key is required"),
@@ -47072,6 +47149,16 @@ const JiraCredentialsSchema = object$1({
47072
47149
  siteUrl: trimmedUrl("Site URL is required", "Site URL must be a valid URL").transform((value) => value.replace(/\/+$/, "")),
47073
47150
  type: literal$1("jira")
47074
47151
  });
47152
+ const VercelCredentialsSchema = object$1({
47153
+ apiBaseUrl: optionalTrimmedUrl("API base URL must be a valid URL"),
47154
+ apiToken: requiredOpaqueString("API token is required"),
47155
+ type: literal$1("vercel")
47156
+ });
47157
+ const MicrosoftClarityCredentialsSchema = object$1({
47158
+ apiBaseUrl: optionalTrimmedUrl("API base URL must be a valid URL"),
47159
+ apiToken: requiredOpaqueString("API token is required"),
47160
+ type: literal$1("microsoft_clarity")
47161
+ });
47075
47162
  const CloudflareD1CredentialsSchema = object$1({
47076
47163
  accountId: trimmedString("Account ID is required"),
47077
47164
  apiBaseUrl: optionalTrimmedUrl("API base URL must be a valid URL"),
@@ -47086,6 +47173,13 @@ const CloudflareWorkersObservabilityCredentialsSchema = object$1({
47086
47173
  scriptName: optionalTrimmedString("Worker script name is required"),
47087
47174
  type: literal$1("cloudflare_workers_observability")
47088
47175
  });
47176
+ const CloudflareWebAnalyticsCredentialsSchema = object$1({
47177
+ accountId: trimmedString("Account ID is required"),
47178
+ apiBaseUrl: optionalTrimmedUrl("API base URL must be a valid URL"),
47179
+ apiToken: requiredOpaqueString("API token is required"),
47180
+ siteTag: optionalTrimmedString("Web Analytics site tag is required"),
47181
+ type: literal$1("cloudflare_web_analytics")
47182
+ });
47089
47183
  const LinearApiKeyCredentialsSchema = object$1({
47090
47184
  apiKey: requiredOpaqueString("API key is required"),
47091
47185
  type: literal$1("linear")
@@ -47119,6 +47213,7 @@ const CredentialsSchema = union$2([
47119
47213
  GitHubCredentialsSchema,
47120
47214
  AirtableCredentialsSchema,
47121
47215
  DiscordCredentialsSchema,
47216
+ SlackCredentialsSchema,
47122
47217
  CalCredentialsSchema,
47123
47218
  GranolaCredentialsSchema,
47124
47219
  GoogleSearchConsoleCredentialsSchema,
@@ -47128,8 +47223,11 @@ const CredentialsSchema = union$2([
47128
47223
  TikTokMarketingCredentialsSchema,
47129
47224
  SendGridCredentialsSchema,
47130
47225
  JiraCredentialsSchema,
47226
+ VercelCredentialsSchema,
47227
+ MicrosoftClarityCredentialsSchema,
47131
47228
  CloudflareD1CredentialsSchema,
47132
47229
  CloudflareWorkersObservabilityCredentialsSchema,
47230
+ CloudflareWebAnalyticsCredentialsSchema,
47133
47231
  LinearCredentialsSchema
47134
47232
  ]);
47135
47233
  const DATABASE_CREDENTIAL_PROVIDER = {
@@ -47169,8 +47267,10 @@ const credentialSchemaMap = {
47169
47267
  jira: JiraCredentialsSchema,
47170
47268
  linkedin_ads: LinkedInAdsCredentialsSchema,
47171
47269
  cloudflare_workers_observability: CloudflareWorkersObservabilityCredentialsSchema,
47270
+ cloudflare_web_analytics: CloudflareWebAnalyticsCredentialsSchema,
47172
47271
  laminar: LaminarCredentialsSchema,
47173
47272
  linear: LinearCredentialsSchema,
47273
+ microsoft_clarity: MicrosoftClarityCredentialsSchema,
47174
47274
  mixpanel: MixpanelCredentialsSchema,
47175
47275
  motherduck: MotherDuckCredentialsSchema,
47176
47276
  mongodb: MongoDBCredentialsSchema,
@@ -47179,8 +47279,10 @@ const credentialSchemaMap = {
47179
47279
  posthog: PostHogCredentialsSchema,
47180
47280
  sendgrid: SendGridCredentialsSchema,
47181
47281
  sentry: SentryCredentialsSchema,
47282
+ slack: SlackCredentialsSchema,
47182
47283
  snowflake: SnowflakeCredentialsSchema,
47183
- tiktok_marketing: TikTokMarketingCredentialsSchema
47284
+ tiktok_marketing: TikTokMarketingCredentialsSchema,
47285
+ vercel: VercelCredentialsSchema
47184
47286
  };
47185
47287
  function isOAuthCredentials(credentials) {
47186
47288
  if (credentials.type !== "ga" && credentials.type !== "bigquery") return false;
@@ -47719,6 +47821,38 @@ const SOURCE_PROVIDER_REGISTRY = {
47719
47821
  }
47720
47822
  }
47721
47823
  },
47824
+ slack: {
47825
+ label: "Slack",
47826
+ credentialSchema: SlackCredentialsSchema,
47827
+ credentialType: "slack",
47828
+ connectable: true,
47829
+ analysisSource: true,
47830
+ queryInterface: false,
47831
+ sourceApiInterface: true,
47832
+ testable: false,
47833
+ dashboardConnectable: true,
47834
+ dashboardCredentialForm: "slack_oauth",
47835
+ publicCategory: "Productivity",
47836
+ guide: {
47837
+ summary: "Connect Slack so agents can read channel and thread history the installed app can access.",
47838
+ steps: [
47839
+ "Authorize or install the Slack app for the target workspace.",
47840
+ "Invite the app to any private channels the source should analyze.",
47841
+ "Use channel IDs or channel names when querying Slack history."
47842
+ ],
47843
+ exampleInput: {
47844
+ sourceKey: "slack_workspace",
47845
+ credentials: {
47846
+ type: "slack",
47847
+ botToken: "xoxb-...",
47848
+ botUserId: "U1234567890",
47849
+ teamId: "T1234567890",
47850
+ teamName: "Acme",
47851
+ botScopes: ["channels:read", "channels:history"]
47852
+ }
47853
+ }
47854
+ }
47855
+ },
47722
47856
  cal: {
47723
47857
  label: "Cal.com",
47724
47858
  credentialSchema: CalCredentialsSchema,
@@ -47969,6 +48103,63 @@ const SOURCE_PROVIDER_REGISTRY = {
47969
48103
  }
47970
48104
  }
47971
48105
  },
48106
+ vercel: {
48107
+ label: "Vercel",
48108
+ credentialSchema: VercelCredentialsSchema,
48109
+ credentialType: "vercel",
48110
+ connectable: true,
48111
+ analysisSource: true,
48112
+ queryInterface: false,
48113
+ sourceApiInterface: true,
48114
+ testable: false,
48115
+ dashboardConnectable: true,
48116
+ dashboardCredentialForm: "json",
48117
+ publicCategory: "Developer workflow",
48118
+ guide: {
48119
+ summary: "Connect Vercel with an API token for deployments, projects, teams, and runtime observability endpoints.",
48120
+ steps: [
48121
+ "Create a Vercel API token with read access to the account or team OneQuery should inspect.",
48122
+ "Copy the token into `credentials.apiToken`.",
48123
+ "Use `params[teamId]` in Source API requests when calling team-scoped Vercel endpoints.",
48124
+ "Only include `apiBaseUrl` when you need a non-default Vercel-compatible API origin."
48125
+ ],
48126
+ exampleInput: {
48127
+ sourceKey: "vercel_main",
48128
+ credentials: {
48129
+ type: "vercel",
48130
+ apiToken: "vercel_api_token"
48131
+ }
48132
+ }
48133
+ }
48134
+ },
48135
+ microsoft_clarity: {
48136
+ label: "Microsoft Clarity",
48137
+ credentialSchema: MicrosoftClarityCredentialsSchema,
48138
+ credentialType: "microsoft_clarity",
48139
+ connectable: true,
48140
+ analysisSource: true,
48141
+ queryInterface: false,
48142
+ sourceApiInterface: true,
48143
+ testable: false,
48144
+ dashboardConnectable: true,
48145
+ dashboardCredentialForm: "json",
48146
+ publicCategory: "Product analytics",
48147
+ guide: {
48148
+ summary: "Connect Microsoft Clarity with a project Data Export API token.",
48149
+ steps: [
48150
+ "Open the target Clarity project and generate a Data Export API token from Settings > Data Export.",
48151
+ "Copy the token into `credentials.apiToken`.",
48152
+ "Only include `apiBaseUrl` when you need a non-default Clarity-compatible export API origin."
48153
+ ],
48154
+ exampleInput: {
48155
+ sourceKey: "microsoft_clarity_main",
48156
+ credentials: {
48157
+ type: "microsoft_clarity",
48158
+ apiToken: "clarity_api_token"
48159
+ }
48160
+ }
48161
+ }
48162
+ },
47972
48163
  linear: {
47973
48164
  label: "Linear",
47974
48165
  credentialSchema: LinearCredentialsSchema,
@@ -48013,12 +48204,44 @@ const SOURCE_PROVIDER_REGISTRY = {
48013
48204
  exampleInput: {
48014
48205
  sourceKey: "cloudflare_workers",
48015
48206
  credentials: {
48207
+ type: "cloudflare_workers_observability",
48016
48208
  accountId: "023e105f4ecef8ad9ca31a8372d0c353",
48017
48209
  apiToken: "cloudflare_api_token",
48018
48210
  scriptName: "api-production"
48019
48211
  }
48020
48212
  }
48021
48213
  }
48214
+ },
48215
+ cloudflare_web_analytics: {
48216
+ label: "Cloudflare Web Analytics",
48217
+ credentialSchema: CloudflareWebAnalyticsCredentialsSchema,
48218
+ credentialType: "cloudflare_web_analytics",
48219
+ connectable: true,
48220
+ analysisSource: true,
48221
+ queryInterface: false,
48222
+ sourceApiInterface: true,
48223
+ testable: false,
48224
+ dashboardConnectable: true,
48225
+ dashboardCredentialForm: "json",
48226
+ publicCategory: "Product analytics",
48227
+ guide: {
48228
+ summary: "Connect Cloudflare Web Analytics with an account-scoped API token, account ID, and optional site tag.",
48229
+ steps: [
48230
+ "Copy the Cloudflare Account ID from the dashboard.",
48231
+ "Create a Cloudflare API token that can read Analytics GraphQL data and Web Analytics RUM site configuration for the account.",
48232
+ "Optionally copy the Web Analytics site tag from the Web Analytics site details; Source API examples use it as the default GraphQL filter.",
48233
+ "Use Cloudflare Workers Observability as a separate source when you need Worker telemetry logs. It uses a different API surface even when it shares the same account and token."
48234
+ ],
48235
+ exampleInput: {
48236
+ sourceKey: "cloudflare_web_analytics",
48237
+ credentials: {
48238
+ type: "cloudflare_web_analytics",
48239
+ accountId: "023e105f4ecef8ad9ca31a8372d0c353",
48240
+ apiToken: "cloudflare_api_token",
48241
+ siteTag: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
48242
+ }
48243
+ }
48244
+ }
48022
48245
  }
48023
48246
  };
48024
48247
  const SOURCE_PROVIDER_IDS = Object.keys(SOURCE_PROVIDER_REGISTRY);
@@ -50349,7 +50572,7 @@ var init_src$1 = __esmMin((() => {
50349
50572
  isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
50350
50573
  }));
50351
50574
  //#endregion
50352
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/utils/wildcard.mjs
50575
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/utils/wildcard.mjs
50353
50576
  init_src$1();
50354
50577
  /**
50355
50578
  * Escapes a character if it has a special meaning in regular expressions
@@ -50936,7 +51159,7 @@ var init_error = __esmMin((() => {
50936
51159
  };
50937
51160
  }));
50938
51161
  //#endregion
50939
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/utils/url.mjs
51162
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/utils/url.mjs
50940
51163
  init_env();
50941
51164
  init_error();
50942
51165
  function checkHasPath(url) {
@@ -51170,11 +51393,11 @@ function createRandomStringGenerator(...baseAlphabets) {
51170
51393
  }
51171
51394
  var init_random = __esmMin((() => {}));
51172
51395
  //#endregion
51173
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/crypto/random.mjs
51396
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/crypto/random.mjs
51174
51397
  init_random();
51175
51398
  const generateRandomString = createRandomStringGenerator("a-z", "0-9", "A-Z", "-_");
51176
51399
  //#endregion
51177
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/crypto/buffer.mjs
51400
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/crypto/buffer.mjs
51178
51401
  /**
51179
51402
  * Compare two buffers in constant time.
51180
51403
  */
@@ -54863,7 +55086,7 @@ function decodeJwt(jwt) {
54863
55086
  return result;
54864
55087
  }
54865
55088
  //#endregion
54866
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/crypto/jwt.mjs
55089
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/crypto/jwt.mjs
54867
55090
  async function signJWT(payload, secret, expiresIn = 3600) {
54868
55091
  return await new SignJWT(payload).setProtectedHeader({ alg: "HS256" }).setIssuedAt().setExpirationTime(Math.floor(Date.now() / 1e3) + expiresIn).sign(new TextEncoder().encode(secret));
54869
55092
  }
@@ -55275,7 +55498,7 @@ async function scryptAsync(password, salt, opts) {
55275
55498
  return scryptOutput(password, dkLen, B, V, tmp);
55276
55499
  }
55277
55500
  //#endregion
55278
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/crypto/password.mjs
55501
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/crypto/password.mjs
55279
55502
  init_error();
55280
55503
  const config$1 = {
55281
55504
  N: 16384,
@@ -56342,7 +56565,7 @@ const xchacha20poly1305 = /* @__PURE__ */ wrapCipher({
56342
56565
  tagLength: 16
56343
56566
  }, _poly1305_aead(xchacha20));
56344
56567
  //#endregion
56345
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/crypto/index.mjs
56568
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/crypto/index.mjs
56346
56569
  const algorithm$1 = {
56347
56570
  name: "HMAC",
56348
56571
  hash: "SHA-256"
@@ -56402,7 +56625,7 @@ const makeSignature$1 = async (value, secret) => {
56402
56625
  return btoa(String.fromCharCode(...new Uint8Array(signature)));
56403
56626
  };
56404
56627
  //#endregion
56405
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/utils/date.mjs
56628
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/utils/date.mjs
56406
56629
  const getDate = (span, unit = "ms") => {
56407
56630
  return new Date(Date.now() + (unit === "sec" ? span * 1e3 : span));
56408
56631
  };
@@ -69764,7 +69987,7 @@ function filterOutputFields(data, additionalFields) {
69764
69987
  }), {});
69765
69988
  }
69766
69989
  //#endregion
69767
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/db/schema.mjs
69990
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/db/schema.mjs
69768
69991
  init_error();
69769
69992
  const cache$9 = /* @__PURE__ */ new WeakMap();
69770
69993
  function getFields(options, modelName, mode) {
@@ -69885,7 +70108,7 @@ function mergeSchema(schema, newSchema) {
69885
70108
  return schema;
69886
70109
  }
69887
70110
  //#endregion
69888
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/utils/is-promise.mjs
70111
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/utils/is-promise.mjs
69889
70112
  function isPromise$1(obj) {
69890
70113
  return !!obj && (typeof obj === "object" || typeof obj === "function") && typeof obj.then === "function";
69891
70114
  }
@@ -69934,7 +70157,7 @@ var init_json = __esmMin((() => {
69934
70157
  iso8601Regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z$/;
69935
70158
  }));
69936
70159
  //#endregion
69937
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/cookies/session-store.mjs
70160
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/cookies/session-store.mjs
69938
70161
  init_json();
69939
70162
  const ALLOWED_COOKIE_SIZE = 4096;
69940
70163
  const ESTIMATED_EMPTY_COOKIE_SIZE = 200;
@@ -70127,7 +70350,7 @@ const getSessionQuerySchema$1 = optional(object({
70127
70350
  disableRefresh: boolean().meta({ description: "Disable session refresh. Useful for checking session status, without updating the session" }).optional()
70128
70351
  }));
70129
70352
  //#endregion
70130
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/utils/time.mjs
70353
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/utils/time.mjs
70131
70354
  const SEC = 1e3;
70132
70355
  const MIN = SEC * 60;
70133
70356
  const HOUR = MIN * 60;
@@ -70224,7 +70447,7 @@ function sec(value) {
70224
70447
  return Math.round(parse$5(value) / 1e3);
70225
70448
  }
70226
70449
  //#endregion
70227
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/cookies/cookie-utils.mjs
70450
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/cookies/cookie-utils.mjs
70228
70451
  function tryDecode$2(str) {
70229
70452
  try {
70230
70453
  return decodeURIComponent(str);
@@ -70341,7 +70564,7 @@ const createHMAC = (algorithm = "SHA-256", encoding = "none") => {
70341
70564
  return hmac;
70342
70565
  };
70343
70566
  //#endregion
70344
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/cookies/index.mjs
70567
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/cookies/index.mjs
70345
70568
  init_env();
70346
70569
  init_error();
70347
70570
  init_json();
@@ -70489,7 +70712,7 @@ function deleteSessionCookie(ctx, skipDontRememberMe) {
70489
70712
  if (!skipDontRememberMe) expireCookie(ctx, ctx.context.authCookies.dontRememberToken);
70490
70713
  }
70491
70714
  //#endregion
70492
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/state.mjs
70715
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/state.mjs
70493
70716
  init_error();
70494
70717
  const stateDataSchema = looseObject({
70495
70718
  callbackURL: string$1(),
@@ -70783,10 +71006,10 @@ const queueAfterTransactionHook = async (hook) => {
70783
71006
  });
70784
71007
  };
70785
71008
  //#endregion
70786
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/state/oauth.mjs
71009
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/state/oauth.mjs
70787
71010
  const { get: getOAuthState, set: setOAuthState } = defineRequestState(() => null);
70788
71011
  //#endregion
70789
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/oauth2/state.mjs
71012
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/oauth2/state.mjs
70790
71013
  init_error();
70791
71014
  async function generateState(c, link, additionalData) {
70792
71015
  const callbackURL = c.body?.callbackURL || c.context.options.baseURL;
@@ -70829,7 +71052,7 @@ async function parseState(c) {
70829
71052
  return parsedData;
70830
71053
  }
70831
71054
  //#endregion
70832
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/utils/hide-metadata.mjs
71055
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/utils/hide-metadata.mjs
70833
71056
  const HIDE_METADATA = { scope: "server" };
70834
71057
  //#endregion
70835
71058
  //#region node_modules/.bun/better-call@1.3.2+3c5d820c62823f0b/node_modules/better-call/dist/utils.mjs
@@ -71866,13 +72089,13 @@ const createRouter$1 = (endpoints, config) => {
71866
72089
  //#region node_modules/.bun/better-call@1.3.2+3c5d820c62823f0b/node_modules/better-call/dist/index.mjs
71867
72090
  init_error$1();
71868
72091
  //#endregion
71869
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/utils/is-api-error.mjs
72092
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/utils/is-api-error.mjs
71870
72093
  init_error();
71871
72094
  function isAPIError(error) {
71872
72095
  return error instanceof APIError$1 || error instanceof APIError || error?.name === "APIError";
71873
72096
  }
71874
72097
  //#endregion
71875
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/auth/trusted-origins.mjs
72098
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/auth/trusted-origins.mjs
71876
72099
  /**
71877
72100
  * Matches the given url against an origin or origin pattern
71878
72101
  * See "options.trustedOrigins" for details of supported patterns
@@ -71969,7 +72192,7 @@ function deprecate$1(fn, message, logger) {
71969
72192
  };
71970
72193
  }
71971
72194
  //#endregion
71972
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/middlewares/origin-check.mjs
72195
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/middlewares/origin-check.mjs
71973
72196
  init_error();
71974
72197
  /**
71975
72198
  * Checks if CSRF should be skipped for backward compatibility.
@@ -72215,7 +72438,7 @@ function createRateLimitKey(ip, path) {
72215
72438
  return `${ip}|${path}`;
72216
72439
  }
72217
72440
  //#endregion
72218
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/utils/get-request-ip.mjs
72441
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/utils/get-request-ip.mjs
72219
72442
  init_env();
72220
72443
  const LOCALHOST_IP = "127.0.0.1";
72221
72444
  function getIp(req, options) {
@@ -72233,7 +72456,7 @@ function getIp(req, options) {
72233
72456
  return null;
72234
72457
  }
72235
72458
  //#endregion
72236
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/rate-limiter/index.mjs
72459
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/rate-limiter/index.mjs
72237
72460
  init_json();
72238
72461
  const memory$1 = /* @__PURE__ */ new Map();
72239
72462
  function shouldRateLimit(max, window, rateLimitData) {
@@ -72429,7 +72652,7 @@ function getDefaultSpecialRules() {
72429
72652
  }];
72430
72653
  }
72431
72654
  //#endregion
72432
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/state/should-session-refresh.mjs
72655
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/state/should-session-refresh.mjs
72433
72656
  /**
72434
72657
  * State for skipping session refresh
72435
72658
  *
@@ -72440,7 +72663,7 @@ function getDefaultSpecialRules() {
72440
72663
  */
72441
72664
  const { get: getShouldSkipSessionRefresh, set: setShouldSkipSessionRefresh } = defineRequestState(() => false);
72442
72665
  //#endregion
72443
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/_virtual/_rolldown/runtime.mjs
72666
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/_virtual/_rolldown/runtime.mjs
72444
72667
  var __defProp$1 = Object.defineProperty;
72445
72668
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
72446
72669
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -72466,7 +72689,7 @@ var __copyProps = (to, from, except, desc) => {
72466
72689
  };
72467
72690
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
72468
72691
  //#endregion
72469
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/db/get-schema.mjs
72692
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/db/get-schema.mjs
72470
72693
  function getSchema(config) {
72471
72694
  const tables = getAuthTables(config);
72472
72695
  const schema = {};
@@ -72500,7 +72723,7 @@ function getSchema(config) {
72500
72723
  return schema;
72501
72724
  }
72502
72725
  //#endregion
72503
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/db/field-converter.mjs
72726
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/db/field-converter.mjs
72504
72727
  function convertToDB(fields, values) {
72505
72728
  const result = values.id ? { id: values.id } : {};
72506
72729
  for (const key in fields) {
@@ -72518,7 +72741,7 @@ function convertFromDB(fields, values) {
72518
72741
  return result;
72519
72742
  }
72520
72743
  //#endregion
72521
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/db/with-hooks.mjs
72744
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/db/with-hooks.mjs
72522
72745
  function getWithHooks(adapter, ctx) {
72523
72746
  const hooks = ctx.hooks;
72524
72747
  async function createWithHooks(data, model, customCreateFn) {
@@ -72672,7 +72895,7 @@ function getWithHooks(adapter, ctx) {
72672
72895
  };
72673
72896
  }
72674
72897
  //#endregion
72675
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/db/verification-token-storage.mjs
72898
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/db/verification-token-storage.mjs
72676
72899
  const defaultKeyHasher = async (identifier) => {
72677
72900
  const hash = await createHash$1("SHA-256").digest(new TextEncoder().encode(identifier));
72678
72901
  return base64Url.encode(new Uint8Array(hash), { padding: false });
@@ -72703,7 +72926,7 @@ var init_id = __esmMin((() => {
72703
72926
  };
72704
72927
  }));
72705
72928
  //#endregion
72706
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/db/internal-adapter.mjs
72929
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/db/internal-adapter.mjs
72707
72930
  init_id();
72708
72931
  init_json();
72709
72932
  function getTTLSeconds(expiresAt, now = Date.now()) {
@@ -73331,7 +73554,7 @@ const createInternalAdapter = (adapter, ctx) => {
73331
73554
  };
73332
73555
  };
73333
73556
  //#endregion
73334
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/db/to-zod.mjs
73557
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/db/to-zod.mjs
73335
73558
  function toZodSchema({ fields, isClientSide }) {
73336
73559
  return object(Object.keys(fields).reduce((acc, key) => {
73337
73560
  const field = fields[key];
@@ -73351,7 +73574,7 @@ function toZodSchema({ fields, isClientSide }) {
73351
73574
  }, {}));
73352
73575
  }
73353
73576
  //#endregion
73354
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/db/index.mjs
73577
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/db/index.mjs
73355
73578
  var db_exports = /* @__PURE__ */ __exportAll({
73356
73579
  convertFromDB: () => convertFromDB,
73357
73580
  convertToDB: () => convertToDB,
@@ -73372,7 +73595,7 @@ var db_exports = /* @__PURE__ */ __exportAll({
73372
73595
  });
73373
73596
  __reExport(db_exports, db_exports$1);
73374
73597
  //#endregion
73375
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/routes/session.mjs
73598
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/routes/session.mjs
73376
73599
  init_error();
73377
73600
  init_json();
73378
73601
  const getSession = () => createAuthEndpoint("/get-session", {
@@ -73883,7 +74106,7 @@ const defuArrayFn = createDefu((object, key, currentValue) => {
73883
74106
  }
73884
74107
  });
73885
74108
  //#endregion
73886
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/context/helpers.mjs
74109
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/context/helpers.mjs
73887
74110
  init_env();
73888
74111
  async function runPluginInit(context) {
73889
74112
  let options = context.options;
@@ -73969,7 +74192,7 @@ async function getTrustedProviders(options, request) {
73969
74192
  return (await trustedProviders(request) ?? []).filter((v) => Boolean(v));
73970
74193
  }
73971
74194
  //#endregion
73972
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/oauth2/utils.mjs
74195
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/oauth2/utils.mjs
73973
74196
  /**
73974
74197
  * Check if a string looks like encrypted data
73975
74198
  */
@@ -77269,7 +77492,7 @@ const socialProviders = {
77269
77492
  const socialProviderList = Object.keys(socialProviders);
77270
77493
  const SocialProviderListEnum = _enum(socialProviderList).or(string$1());
77271
77494
  //#endregion
77272
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/routes/account.mjs
77495
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/routes/account.mjs
77273
77496
  init_error();
77274
77497
  const listUserAccounts = createAuthEndpoint("/list-accounts", {
77275
77498
  method: "GET",
@@ -77752,7 +77975,7 @@ const accountInfo = createAuthEndpoint("/account-info", {
77752
77975
  return ctx.json(info);
77753
77976
  });
77754
77977
  //#endregion
77755
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/routes/email-verification.mjs
77978
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/routes/email-verification.mjs
77756
77979
  init_error();
77757
77980
  async function createEmailVerificationToken(secret, email, updateTo, expiresIn = 3600, extraPayload) {
77758
77981
  return await signJWT({
@@ -78037,7 +78260,7 @@ const verifyEmail = createAuthEndpoint("/verify-email", {
78037
78260
  });
78038
78261
  });
78039
78262
  //#endregion
78040
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/oauth2/link-account.mjs
78263
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/oauth2/link-account.mjs
78041
78264
  init_env();
78042
78265
  async function handleOAuthUserInfo(c, opts) {
78043
78266
  const { userInfo, account, callbackURL, disableSignUp, overrideUserInfo } = opts;
@@ -78171,7 +78394,7 @@ async function handleOAuthUserInfo(c, opts) {
78171
78394
  };
78172
78395
  }
78173
78396
  //#endregion
78174
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/routes/callback.mjs
78397
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/routes/callback.mjs
78175
78398
  init_json();
78176
78399
  const schema$1 = object({
78177
78400
  code: string$1().optional(),
@@ -78338,7 +78561,7 @@ const callbackOAuth = createAuthEndpoint("/callback/:id", {
78338
78561
  throw c.redirect(toRedirectTo);
78339
78562
  });
78340
78563
  //#endregion
78341
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/routes/error.mjs
78564
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/routes/error.mjs
78342
78565
  init_env();
78343
78566
  function sanitize(input) {
78344
78567
  return input.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;").replace(/&(?!amp;|lt;|gt;|quot;|#39;|#x[0-9a-fA-F]+;|#[0-9]+;)/g, "&amp;");
@@ -78718,7 +78941,7 @@ const error$3 = createAuthEndpoint("/error", {
78718
78941
  return new Response(html(c.context.options, safeCode, safeDescription), { headers: { "Content-Type": "text/html" } });
78719
78942
  });
78720
78943
  //#endregion
78721
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/routes/ok.mjs
78944
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/routes/ok.mjs
78722
78945
  const ok = createAuthEndpoint("/ok", {
78723
78946
  method: "GET",
78724
78947
  metadata: {
@@ -78742,7 +78965,7 @@ const ok = createAuthEndpoint("/ok", {
78742
78965
  return ctx.json({ ok: true });
78743
78966
  });
78744
78967
  //#endregion
78745
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/utils/password.mjs
78968
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/utils/password.mjs
78746
78969
  init_error();
78747
78970
  async function validatePassword(ctx, data) {
78748
78971
  const credentialAccount = (await ctx.context.internalAdapter.findAccounts(data.userId))?.find((account) => account.providerId === "credential");
@@ -78764,7 +78987,7 @@ async function checkPassword(userId, c) {
78764
78987
  return true;
78765
78988
  }
78766
78989
  //#endregion
78767
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/routes/password.mjs
78990
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/routes/password.mjs
78768
78991
  init_error();
78769
78992
  init_id();
78770
78993
  function redirectError(ctx, callbackURL, query) {
@@ -78952,7 +79175,7 @@ const verifyPassword = createAuthEndpoint("/verify-password", {
78952
79175
  return ctx.json({ status: true });
78953
79176
  });
78954
79177
  //#endregion
78955
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/routes/sign-in.mjs
79178
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/routes/sign-in.mjs
78956
79179
  init_error();
78957
79180
  const socialSignInBodySchema = object({
78958
79181
  callbackURL: string$1().meta({ description: "Callback URL to redirect to after the user has signed in" }).optional(),
@@ -79208,7 +79431,7 @@ const signInEmail = () => createAuthEndpoint("/sign-in/email", {
79208
79431
  });
79209
79432
  });
79210
79433
  //#endregion
79211
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/routes/sign-out.mjs
79434
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/routes/sign-out.mjs
79212
79435
  const signOut = createAuthEndpoint("/sign-out", {
79213
79436
  method: "POST",
79214
79437
  operationId: "signOut",
@@ -79235,7 +79458,7 @@ const signOut = createAuthEndpoint("/sign-out", {
79235
79458
  return ctx.json({ success: true });
79236
79459
  });
79237
79460
  //#endregion
79238
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/routes/sign-up.mjs
79461
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/routes/sign-up.mjs
79239
79462
  init_env();
79240
79463
  init_error();
79241
79464
  init_id();
@@ -79492,7 +79715,7 @@ const signUpEmail = () => createAuthEndpoint("/sign-up/email", {
79492
79715
  });
79493
79716
  });
79494
79717
  //#endregion
79495
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/routes/update-session.mjs
79718
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/routes/update-session.mjs
79496
79719
  init_error();
79497
79720
  const updateSessionBodySchema = record(string$1().meta({ description: "Field name must be a string" }), any());
79498
79721
  const updateSession = () => createAuthEndpoint("/update-session", {
@@ -79538,7 +79761,7 @@ const updateSession = () => createAuthEndpoint("/update-session", {
79538
79761
  return ctx.json({ session: parseSessionOutput(ctx.context.options, newSession) });
79539
79762
  });
79540
79763
  //#endregion
79541
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/routes/update-user.mjs
79764
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/routes/update-user.mjs
79542
79765
  init_error();
79543
79766
  const updateUserBodySchema = record(string$1().meta({ description: "Field name must be a string" }), any());
79544
79767
  const updateUser = () => createAuthEndpoint("/update-user", {
@@ -80024,7 +80247,7 @@ const changeEmail = createAuthEndpoint("/change-email", {
80024
80247
  return ctx.json({ status: true });
80025
80248
  });
80026
80249
  //#endregion
80027
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/to-auth-endpoints.mjs
80250
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/to-auth-endpoints.mjs
80028
80251
  init_env();
80029
80252
  init_error();
80030
80253
  const defuReplaceArrays = createDefu((obj, key, value) => {
@@ -80213,7 +80436,7 @@ function getHooks(authContext) {
80213
80436
  };
80214
80437
  }
80215
80438
  //#endregion
80216
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/api/index.mjs
80439
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/api/index.mjs
80217
80440
  init_env();
80218
80441
  init_error();
80219
80442
  function checkEndpointConflicts(options, logger) {
@@ -81613,7 +81836,7 @@ var init_dist$3 = __esmMin((() => {
81613
81836
  };
81614
81837
  }));
81615
81838
  //#endregion
81616
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/db/adapter-base.mjs
81839
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/db/adapter-base.mjs
81617
81840
  init_env();
81618
81841
  async function getBaseAdapter(options, handleDirectDatabase) {
81619
81842
  let adapter;
@@ -99170,7 +99393,7 @@ var init_dist$2 = __esmMin((() => {
99170
99393
  };
99171
99394
  }));
99172
99395
  //#endregion
99173
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/adapters/kysely-adapter/index.mjs
99396
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/adapters/kysely-adapter/index.mjs
99174
99397
  var kysely_adapter_exports = /* @__PURE__ */ __exportAll$1({
99175
99398
  createKyselyAdapter: () => createKyselyAdapter,
99176
99399
  getKyselyDatabaseType: () => getKyselyDatabaseType,
@@ -99180,7 +99403,7 @@ var init_kysely_adapter = __esmMin((() => {
99180
99403
  init_dist$2();
99181
99404
  }));
99182
99405
  //#endregion
99183
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/db/adapter-kysely.mjs
99406
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/db/adapter-kysely.mjs
99184
99407
  init_error();
99185
99408
  async function getAdapter(options) {
99186
99409
  return getBaseAdapter(options, async (opts) => {
@@ -99196,7 +99419,7 @@ async function getAdapter(options) {
99196
99419
  });
99197
99420
  }
99198
99421
  //#endregion
99199
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/db/get-migration.mjs
99422
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/db/get-migration.mjs
99200
99423
  init_env();
99201
99424
  init_dist$2();
99202
99425
  init_adapter();
@@ -99531,10 +99754,10 @@ async function getMigrations(config) {
99531
99754
  };
99532
99755
  }
99533
99756
  //#endregion
99534
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/utils/constants.mjs
99757
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/utils/constants.mjs
99535
99758
  const DEFAULT_SECRET = "better-auth-secret-12345678901234567890";
99536
99759
  //#endregion
99537
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/context/secret-utils.mjs
99760
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/context/secret-utils.mjs
99538
99761
  init_error();
99539
99762
  /**
99540
99763
  * Estimates the entropy of a string in bits.
@@ -100045,7 +100268,7 @@ async function createTelemetry(options, context) {
100045
100268
  } };
100046
100269
  }
100047
100270
  //#endregion
100048
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/context/create-context.mjs
100271
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/context/create-context.mjs
100049
100272
  init_env();
100050
100273
  init_error();
100051
100274
  init_id();
@@ -100254,7 +100477,7 @@ Most of the features of Better Auth will not work correctly.`);
100254
100477
  return ctx;
100255
100478
  }
100256
100479
  //#endregion
100257
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/context/init.mjs
100480
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/context/init.mjs
100258
100481
  init_error();
100259
100482
  init_dist$2();
100260
100483
  const init$1 = async (options) => {
@@ -100269,7 +100492,7 @@ const init$1 = async (options) => {
100269
100492
  return ctx;
100270
100493
  };
100271
100494
  //#endregion
100272
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/auth/base.mjs
100495
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/auth/base.mjs
100273
100496
  init_error();
100274
100497
  const createBetterAuth = (options, initFn) => {
100275
100498
  const authContext = initFn(options);
@@ -100329,7 +100552,7 @@ const createBetterAuth = (options, initFn) => {
100329
100552
  };
100330
100553
  };
100331
100554
  //#endregion
100332
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/auth/full.mjs
100555
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/auth/full.mjs
100333
100556
  /**
100334
100557
  * Better Auth initializer for full mode (with Kysely)
100335
100558
  *
@@ -100355,7 +100578,7 @@ const betterAuth = (options) => {
100355
100578
  return createBetterAuth(options, init$1);
100356
100579
  };
100357
100580
  //#endregion
100358
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/index.mjs
100581
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/index.mjs
100359
100582
  init_env();
100360
100583
  init_error();
100361
100584
  init_error_codes();
@@ -100728,7 +100951,7 @@ const drizzleAdapter = (db, config) => {
100728
100951
  };
100729
100952
  };
100730
100953
  //#endregion
100731
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/access/access.mjs
100954
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/access/access.mjs
100732
100955
  init_error();
100733
100956
  function role(statements) {
100734
100957
  return {
@@ -100770,11 +100993,11 @@ function createAccessControl(s) {
100770
100993
  };
100771
100994
  }
100772
100995
  //#endregion
100773
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/multi-session/error-codes.mjs
100996
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/multi-session/error-codes.mjs
100774
100997
  init_error_codes();
100775
100998
  const MULTI_SESSION_ERROR_CODES = defineErrorCodes({ INVALID_SESSION_TOKEN: "Invalid session token" });
100776
100999
  //#endregion
100777
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/two-factor/error-code.mjs
101000
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/two-factor/error-code.mjs
100778
101001
  init_error_codes();
100779
101002
  const TWO_FACTOR_ERROR_CODES = defineErrorCodes({
100780
101003
  OTP_NOT_ENABLED: "OTP not enabled",
@@ -100788,7 +101011,7 @@ const TWO_FACTOR_ERROR_CODES = defineErrorCodes({
100788
101011
  INVALID_TWO_FACTOR_COOKIE: "Invalid two factor cookie"
100789
101012
  });
100790
101013
  //#endregion
100791
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/username/error-codes.mjs
101014
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/username/error-codes.mjs
100792
101015
  init_error_codes();
100793
101016
  const USERNAME_ERROR_CODES = defineErrorCodes({
100794
101017
  INVALID_USERNAME_OR_PASSWORD: "Invalid username or password",
@@ -100801,7 +101024,7 @@ const USERNAME_ERROR_CODES = defineErrorCodes({
100801
101024
  INVALID_DISPLAY_USERNAME: "Display username is invalid"
100802
101025
  });
100803
101026
  //#endregion
100804
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/admin/access/statement.mjs
101027
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/admin/access/statement.mjs
100805
101028
  const defaultStatements$1 = {
100806
101029
  user: [
100807
101030
  "create",
@@ -100845,7 +101068,7 @@ const userAc = defaultAc$1.newRole({
100845
101068
  session: []
100846
101069
  });
100847
101070
  //#endregion
100848
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/admin/error-codes.mjs
101071
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/admin/error-codes.mjs
100849
101072
  init_error_codes();
100850
101073
  const ADMIN_ERROR_CODES = defineErrorCodes({
100851
101074
  FAILED_TO_CREATE_USER: "Failed to create user",
@@ -100871,7 +101094,7 @@ const ADMIN_ERROR_CODES = defineErrorCodes({
100871
101094
  INVALID_ROLE_TYPE: "Invalid role type"
100872
101095
  });
100873
101096
  //#endregion
100874
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/admin/routes.mjs
101097
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/admin/routes.mjs
100875
101098
  init_error();
100876
101099
  init_adapter();
100877
101100
  /**
@@ -100941,10 +101164,10 @@ const userHasPermissionBodySchema = object({
100941
101164
  permissions: record(string$1(), array(string$1()))
100942
101165
  })]));
100943
101166
  //#endregion
100944
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/admin/admin.mjs
101167
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/admin/admin.mjs
100945
101168
  init_error();
100946
101169
  //#endregion
100947
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/anonymous/error-codes.mjs
101170
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/anonymous/error-codes.mjs
100948
101171
  init_error_codes();
100949
101172
  const ANONYMOUS_ERROR_CODES = defineErrorCodes({
100950
101173
  INVALID_EMAIL_FORMAT: "Email was not generated in a valid format",
@@ -100956,7 +101179,7 @@ const ANONYMOUS_ERROR_CODES = defineErrorCodes({
100956
101179
  DELETE_ANONYMOUS_USER_DISABLED: "Deleting anonymous users is disabled"
100957
101180
  });
100958
101181
  //#endregion
100959
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/bearer/index.mjs
101182
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/bearer/index.mjs
100960
101183
  const BEARER_SCHEME = "bearer ";
100961
101184
  function tryDecode(str) {
100962
101185
  try {
@@ -101030,7 +101253,7 @@ const bearer = (options) => {
101030
101253
  };
101031
101254
  };
101032
101255
  //#endregion
101033
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/captcha/constants.mjs
101256
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/captcha/constants.mjs
101034
101257
  const Providers = {
101035
101258
  CLOUDFLARE_TURNSTILE: "cloudflare-turnstile",
101036
101259
  GOOGLE_RECAPTCHA: "google-recaptcha",
@@ -101044,7 +101267,7 @@ const siteVerifyMap = {
101044
101267
  [Providers.CAPTCHAFOX]: "https://api.captchafox.com/siteverify"
101045
101268
  };
101046
101269
  //#endregion
101047
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/captcha/error-codes.mjs
101270
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/captcha/error-codes.mjs
101048
101271
  init_error_codes();
101049
101272
  const EXTERNAL_ERROR_CODES = defineErrorCodes({
101050
101273
  VERIFICATION_FAILED: "Captcha verification failed",
@@ -101056,13 +101279,13 @@ const INTERNAL_ERROR_CODES = defineErrorCodes({
101056
101279
  SERVICE_UNAVAILABLE: "CAPTCHA service unavailable"
101057
101280
  });
101058
101281
  //#endregion
101059
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/custom-session/index.mjs
101282
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/custom-session/index.mjs
101060
101283
  const getSessionQuerySchema = optional(object({
101061
101284
  disableCookieCache: boolean$1().meta({ description: "Disable cookie cache and fetch session from database" }).or(string$1().transform((v) => v === "true")).optional(),
101062
101285
  disableRefresh: boolean$1().meta({ description: "Disable session refresh. Useful for checking session status, without updating the session" }).optional()
101063
101286
  }));
101064
101287
  //#endregion
101065
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/device-authorization/error-codes.mjs
101288
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/device-authorization/error-codes.mjs
101066
101289
  init_error_codes();
101067
101290
  const DEVICE_AUTHORIZATION_ERROR_CODES = defineErrorCodes({
101068
101291
  INVALID_DEVICE_CODE: "Invalid device code",
@@ -101079,7 +101302,7 @@ const DEVICE_AUTHORIZATION_ERROR_CODES = defineErrorCodes({
101079
101302
  AUTHENTICATION_REQUIRED: "Authentication required"
101080
101303
  });
101081
101304
  //#endregion
101082
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/device-authorization/routes.mjs
101305
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/device-authorization/routes.mjs
101083
101306
  init_error();
101084
101307
  const defaultCharset = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789";
101085
101308
  const deviceCodeBodySchema = object({
@@ -101578,7 +101801,7 @@ const defaultGenerateUserCode = (length) => {
101578
101801
  return Array.from(crypto.getRandomValues(chars)).map((byte) => defaultCharset[byte % 32]).join("");
101579
101802
  };
101580
101803
  //#endregion
101581
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/device-authorization/schema.mjs
101804
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/device-authorization/schema.mjs
101582
101805
  const schema = { deviceCode: { fields: {
101583
101806
  deviceCode: {
101584
101807
  type: "string",
@@ -101630,7 +101853,7 @@ object({
101630
101853
  scope: string$1().optional()
101631
101854
  });
101632
101855
  //#endregion
101633
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/device-authorization/index.mjs
101856
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/device-authorization/index.mjs
101634
101857
  const timeStringSchema = custom$1((val) => {
101635
101858
  if (typeof val !== "string") return false;
101636
101859
  try {
@@ -101669,7 +101892,7 @@ const deviceAuthorization = (options = {}) => {
101669
101892
  };
101670
101893
  };
101671
101894
  //#endregion
101672
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/email-otp/error-codes.mjs
101895
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/email-otp/error-codes.mjs
101673
101896
  init_error_codes();
101674
101897
  const EMAIL_OTP_ERROR_CODES = defineErrorCodes({
101675
101898
  OTP_EXPIRED: "OTP expired",
@@ -101677,7 +101900,7 @@ const EMAIL_OTP_ERROR_CODES = defineErrorCodes({
101677
101900
  TOO_MANY_ATTEMPTS: "Too many attempts"
101678
101901
  });
101679
101902
  //#endregion
101680
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/email-otp/routes.mjs
101903
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/email-otp/routes.mjs
101681
101904
  init_error();
101682
101905
  const types$2 = [
101683
101906
  "email-verification",
@@ -101746,7 +101969,7 @@ const changeEmailEmailOTPBodySchema = object({
101746
101969
  otp: string$1().meta({ description: "OTP sent to the new email" })
101747
101970
  });
101748
101971
  //#endregion
101749
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/generic-oauth/error-codes.mjs
101972
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/generic-oauth/error-codes.mjs
101750
101973
  init_error_codes();
101751
101974
  const GENERIC_OAUTH_ERROR_CODES = defineErrorCodes({
101752
101975
  INVALID_OAUTH_CONFIGURATION: "Invalid OAuth configuration",
@@ -101759,7 +101982,7 @@ const GENERIC_OAUTH_ERROR_CODES = defineErrorCodes({
101759
101982
  ISSUER_MISSING: "OAuth issuer parameter missing. The authorization server did not include the required iss parameter (RFC 9207)."
101760
101983
  });
101761
101984
  //#endregion
101762
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/generic-oauth/routes.mjs
101985
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/generic-oauth/routes.mjs
101763
101986
  init_error();
101764
101987
  const signInWithOAuth2BodySchema = object({
101765
101988
  providerId: string$1().meta({ description: "The provider ID for the OAuth provider" }),
@@ -101785,17 +102008,17 @@ const OAuth2LinkAccountBodySchema = object({
101785
102008
  errorCallbackURL: string$1().meta({ description: "The URL to redirect to if there is an error during the link process" }).optional()
101786
102009
  });
101787
102010
  //#endregion
101788
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/generic-oauth/index.mjs
102011
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/generic-oauth/index.mjs
101789
102012
  init_error();
101790
102013
  //#endregion
101791
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/haveibeenpwned/index.mjs
102014
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/haveibeenpwned/index.mjs
101792
102015
  init_error_codes();
101793
102016
  const ERROR_CODES = defineErrorCodes({ PASSWORD_COMPROMISED: "The password you entered has been compromised. Please choose a different password." });
101794
102017
  //#endregion
101795
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/jwt/sign.mjs
102018
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/jwt/sign.mjs
101796
102019
  init_error();
101797
102020
  //#endregion
101798
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/jwt/index.mjs
102021
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/jwt/index.mjs
101799
102022
  init_error();
101800
102023
  const signJWTBodySchema = object({
101801
102024
  payload: record(string$1(), any()),
@@ -101806,7 +102029,7 @@ const verifyJWTBodySchema = object({
101806
102029
  issuer: string$1().optional()
101807
102030
  });
101808
102031
  //#endregion
101809
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/magic-link/index.mjs
102032
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/magic-link/index.mjs
101810
102033
  const signInMagicLinkBodySchema = object({
101811
102034
  email: email().meta({ description: "Email address to send the magic link" }),
101812
102035
  name: string$1().meta({ description: "User display name. Only used if the user is registering for the first time. Eg: \"my-name\"" }).optional(),
@@ -101821,13 +102044,13 @@ const magicLinkVerifyQuerySchema = object({
101821
102044
  newUserCallbackURL: string$1().meta({ description: "URL to redirect after new user signup. Only used if the user is registering for the first time." }).optional()
101822
102045
  });
101823
102046
  //#endregion
101824
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/oidc-provider/error.mjs
102047
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/oidc-provider/error.mjs
101825
102048
  init_error();
101826
102049
  //#endregion
101827
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/oidc-provider/authorize.mjs
102050
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/oidc-provider/authorize.mjs
101828
102051
  init_error();
101829
102052
  //#endregion
101830
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/oidc-provider/schema.mjs
102053
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/oidc-provider/schema.mjs
101831
102054
  object({
101832
102055
  clientId: string$1(),
101833
102056
  clientSecret: string$1().optional(),
@@ -101847,7 +102070,7 @@ object({
101847
102070
  updatedAt: date$3()
101848
102071
  });
101849
102072
  //#endregion
101850
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/oidc-provider/index.mjs
102073
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/oidc-provider/index.mjs
101851
102074
  const oAuthConsentBodySchema = object({
101852
102075
  accept: boolean$1(),
101853
102076
  consent_code: string$1().optional().nullish()
@@ -101885,10 +102108,10 @@ const registerOAuthApplicationBodySchema = object({
101885
102108
  software_statement: string$1().meta({ description: "The software statement of the application." }).optional()
101886
102109
  });
101887
102110
  //#endregion
101888
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/mcp/authorize.mjs
102111
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/mcp/authorize.mjs
101889
102112
  init_error();
101890
102113
  //#endregion
101891
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/mcp/index.mjs
102114
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/mcp/index.mjs
101892
102115
  init_env();
101893
102116
  init_json();
101894
102117
  const registerMcpClientBodySchema = object({
@@ -101924,11 +102147,11 @@ const registerMcpClientBodySchema = object({
101924
102147
  });
101925
102148
  const mcpOAuthTokenBodySchema = record(any(), any());
101926
102149
  //#endregion
101927
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/multi-session/index.mjs
102150
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/multi-session/index.mjs
101928
102151
  const setActiveSessionBodySchema = object({ sessionToken: string$1().meta({ description: "The session token to set as active" }) });
101929
102152
  const revokeDeviceSessionBodySchema = object({ sessionToken: string$1().meta({ description: "The session token to revoke" }) });
101930
102153
  //#endregion
101931
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/client/parser.mjs
102154
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/client/parser.mjs
101932
102155
  const PROTO_POLLUTION_PATTERNS = {
101933
102156
  proto: /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,
101934
102157
  constructor: /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,
@@ -101998,10 +102221,10 @@ function parseJSON(value, options = { strict: true }) {
101998
102221
  return betterJSONParse(value, options);
101999
102222
  }
102000
102223
  //#endregion
102001
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/oauth-proxy/utils.mjs
102224
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/oauth-proxy/utils.mjs
102002
102225
  init_env();
102003
102226
  //#endregion
102004
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/oauth-proxy/index.mjs
102227
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/oauth-proxy/index.mjs
102005
102228
  const oauthProxyQuerySchema = object({
102006
102229
  callbackURL: string$1().meta({ description: "The URL to redirect to after the proxy" }),
102007
102230
  profile: string$1().optional().meta({ description: "Encrypted OAuth profile data" })
@@ -102011,13 +102234,13 @@ const oauthCallbackQuerySchema = object({
102011
102234
  error: string$1().optional()
102012
102235
  });
102013
102236
  //#endregion
102014
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/one-tap/index.mjs
102237
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/one-tap/index.mjs
102015
102238
  const oneTapCallbackBodySchema = object({ idToken: string$1().meta({ description: "Google ID token, which the client obtains from the One Tap API" }) });
102016
102239
  //#endregion
102017
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/one-time-token/index.mjs
102240
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/one-time-token/index.mjs
102018
102241
  const verifyOneTimeTokenBodySchema = object({ token: string$1().meta({ description: "The token to verify. Eg: \"some-token\"" }) });
102019
102242
  //#endregion
102020
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/organization/adapter.mjs
102243
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/organization/adapter.mjs
102021
102244
  init_error();
102022
102245
  const getOrgAdapter = (context, options) => {
102023
102246
  const baseAdapter = context.adapter;
@@ -102633,7 +102856,7 @@ const getOrgAdapter = (context, options) => {
102633
102856
  };
102634
102857
  };
102635
102858
  //#endregion
102636
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/organization/access/statement.mjs
102859
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/organization/access/statement.mjs
102637
102860
  const defaultStatements = {
102638
102861
  organization: ["update", "delete"],
102639
102862
  member: [
@@ -102708,7 +102931,7 @@ const defaultRoles$1 = {
102708
102931
  member: memberAc
102709
102932
  };
102710
102933
  //#endregion
102711
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/organization/permission.mjs
102934
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/organization/permission.mjs
102712
102935
  const hasPermissionFn = (input, acRoles) => {
102713
102936
  if (!input.permissions) return false;
102714
102937
  const roles = input.role.split(",");
@@ -102721,7 +102944,7 @@ const hasPermissionFn = (input, acRoles) => {
102721
102944
  };
102722
102945
  const cacheAllRoles = /* @__PURE__ */ new Map();
102723
102946
  //#endregion
102724
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/organization/has-permission.mjs
102947
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/organization/has-permission.mjs
102725
102948
  const hasPermission = async (input, ctx) => {
102726
102949
  let acRoles = { ...input.options.roles || defaultRoles$1 };
102727
102950
  if (ctx && input.organizationId && input.options.dynamicAccessControl?.enabled && input.options.ac && !input.useMemoryCache) {
@@ -102748,7 +102971,7 @@ const hasPermission = async (input, ctx) => {
102748
102971
  return hasPermissionFn(input, acRoles);
102749
102972
  };
102750
102973
  //#endregion
102751
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/organization/error-codes.mjs
102974
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/organization/error-codes.mjs
102752
102975
  init_error_codes();
102753
102976
  const ORGANIZATION_ERROR_CODES = defineErrorCodes({
102754
102977
  YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION: "You are not allowed to create a new organization",
@@ -102810,7 +103033,7 @@ const ORGANIZATION_ERROR_CODES = defineErrorCodes({
102810
103033
  ROLE_IS_ASSIGNED_TO_MEMBERS: "Cannot delete a role that is assigned to members. Please reassign the members to a different role first"
102811
103034
  });
102812
103035
  //#endregion
102813
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/utils/shim.mjs
103036
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/utils/shim.mjs
102814
103037
  const shimContext = (originalObject, newContext) => {
102815
103038
  const shimmedObj = {};
102816
103039
  for (const [key, value] of Object.entries(originalObject)) {
@@ -102831,7 +103054,7 @@ const shimContext = (originalObject, newContext) => {
102831
103054
  return shimmedObj;
102832
103055
  };
102833
103056
  //#endregion
102834
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/organization/call.mjs
103057
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/organization/call.mjs
102835
103058
  const orgMiddleware = createAuthMiddleware(async () => {
102836
103059
  return {};
102837
103060
  });
@@ -102843,7 +103066,7 @@ const orgSessionMiddleware = createAuthMiddleware({ use: [sessionMiddleware] },
102843
103066
  return { session: ctx.context.session };
102844
103067
  });
102845
103068
  //#endregion
102846
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/organization/routes/crud-access-control.mjs
103069
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/organization/routes/crud-access-control.mjs
102847
103070
  init_error();
102848
103071
  const normalizeRoleName = (role) => role.toLowerCase();
102849
103072
  const DEFAULT_MAXIMUM_ROLES_PER_ORGANIZATION = Number.POSITIVE_INFINITY;
@@ -103510,7 +103733,7 @@ async function checkIfRoleNameIsTakenByRoleInDB({ organizationId, role, ctx }) {
103510
103733
  }
103511
103734
  }
103512
103735
  //#endregion
103513
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/organization/routes/crud-invites.mjs
103736
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/organization/routes/crud-invites.mjs
103514
103737
  init_error();
103515
103738
  const baseInvitationSchema = object({
103516
103739
  email: string$1().meta({ description: "The email address of the user to invite" }),
@@ -104043,7 +104266,7 @@ const listUserInvitations = (options) => createAuthEndpoint("/organization/list-
104043
104266
  return ctx.json(pendingInvitations);
104044
104267
  });
104045
104268
  //#endregion
104046
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/organization/routes/crud-members.mjs
104269
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/organization/routes/crud-members.mjs
104047
104270
  init_error();
104048
104271
  init_adapter();
104049
104272
  const baseMemberSchema = object({
@@ -104495,7 +104718,7 @@ const getActiveMemberRole = (options) => createAuthEndpoint("/organization/get-a
104495
104718
  return ctx.json({ role: member?.role });
104496
104719
  });
104497
104720
  //#endregion
104498
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/organization/routes/crud-org.mjs
104721
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/organization/routes/crud-org.mjs
104499
104722
  init_error();
104500
104723
  const baseOrganizationSchema = object({
104501
104724
  name: string$1().min(1).meta({ description: "The name of the organization" }),
@@ -104902,7 +105125,7 @@ const listOrganizations = (options) => createAuthEndpoint("/organization/list",
104902
105125
  return ctx.json(organizations);
104903
105126
  });
104904
105127
  //#endregion
104905
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/organization/schema.mjs
105128
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/organization/schema.mjs
104906
105129
  init_id();
104907
105130
  const roleSchema = string$1();
104908
105131
  const invitationStatus = _enum([
@@ -104965,7 +105188,7 @@ const defaultRoles = [
104965
105188
  ];
104966
105189
  union([_enum(defaultRoles), array(_enum(defaultRoles))]);
104967
105190
  //#endregion
104968
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/organization/routes/crud-team.mjs
105191
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/organization/routes/crud-team.mjs
104969
105192
  init_error();
104970
105193
  const teamBaseSchema = object({
104971
105194
  name: string$1().meta({ description: "The name of the team. Eg: \"my-team\"" }),
@@ -105625,7 +105848,7 @@ const removeTeamMember = (options) => createAuthEndpoint("/organization/remove-t
105625
105848
  return ctx.json({ message: "Team member removed successfully." });
105626
105849
  });
105627
105850
  //#endregion
105628
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/organization/organization.mjs
105851
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/organization/organization.mjs
105629
105852
  init_error();
105630
105853
  function parseRoles(roles) {
105631
105854
  return Array.isArray(roles) ? roles.join(",") : roles;
@@ -106033,7 +106256,7 @@ function organization(options) {
106033
106256
  };
106034
106257
  }
106035
106258
  //#endregion
106036
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/phone-number/error-codes.mjs
106259
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/phone-number/error-codes.mjs
106037
106260
  init_error_codes();
106038
106261
  const PHONE_NUMBER_ERROR_CODES = defineErrorCodes({
106039
106262
  INVALID_PHONE_NUMBER: "Invalid phone number",
@@ -106050,7 +106273,7 @@ const PHONE_NUMBER_ERROR_CODES = defineErrorCodes({
106050
106273
  TOO_MANY_ATTEMPTS: "Too many attempts"
106051
106274
  });
106052
106275
  //#endregion
106053
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/phone-number/routes.mjs
106276
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/phone-number/routes.mjs
106054
106277
  init_error();
106055
106278
  const signInPhoneNumberBodySchema = object({
106056
106279
  phoneNumber: string$1().meta({ description: "Phone number to sign in. Eg: \"+1234567890\"" }),
@@ -106071,16 +106294,16 @@ const resetPasswordPhoneNumberBodySchema = object({
106071
106294
  newPassword: string$1().meta({ description: `The new password. Eg: "new-and-secure-password"` })
106072
106295
  });
106073
106296
  //#endregion
106074
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/phone-number/index.mjs
106297
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/phone-number/index.mjs
106075
106298
  init_error();
106076
106299
  //#endregion
106077
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/siwe/index.mjs
106300
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/siwe/index.mjs
106078
106301
  const getSiweNonceBodySchema = object({
106079
106302
  walletAddress: string$1().regex(/^0[xX][a-fA-F0-9]{40}$/i).length(42),
106080
106303
  chainId: number$1().int().positive().optional().default(1)
106081
106304
  });
106082
106305
  //#endregion
106083
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/test-utils/cookie-builder.mjs
106306
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/test-utils/cookie-builder.mjs
106084
106307
  /**
106085
106308
  * Signs a cookie value using HMAC-SHA256
106086
106309
  */
@@ -106133,7 +106356,7 @@ function normalizeSameSite(sameSite) {
106133
106356
  return "Lax";
106134
106357
  }
106135
106358
  //#endregion
106136
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/test-utils/auth-helpers.mjs
106359
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/test-utils/auth-helpers.mjs
106137
106360
  function createLogin(ctx) {
106138
106361
  return async (opts) => {
106139
106362
  const user = await ctx.internalAdapter.findUserById(opts.userId);
@@ -106159,7 +106382,7 @@ function createGetCookies(ctx) {
106159
106382
  };
106160
106383
  }
106161
106384
  //#endregion
106162
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/test-utils/db-helpers.mjs
106385
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/test-utils/db-helpers.mjs
106163
106386
  function createSaveUser(ctx) {
106164
106387
  return async (user) => {
106165
106388
  return ctx.internalAdapter.createUser(user);
@@ -106222,7 +106445,7 @@ function createAddMember(ctx) {
106222
106445
  };
106223
106446
  }
106224
106447
  //#endregion
106225
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/test-utils/factories.mjs
106448
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/test-utils/factories.mjs
106226
106449
  function createUserFactory(ctx) {
106227
106450
  return (overrides = {}) => {
106228
106451
  const generatedId = ctx.generateId({ model: "user" });
@@ -106258,7 +106481,7 @@ function createOrganizationFactory(ctx) {
106258
106481
  };
106259
106482
  }
106260
106483
  //#endregion
106261
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/test-utils/otp-sink.mjs
106484
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/test-utils/otp-sink.mjs
106262
106485
  /**
106263
106486
  * Creates an instance-scoped OTP store for capturing OTPs during testing.
106264
106487
  * Each auth instance gets its own store to avoid cross-contamination.
@@ -106278,7 +106501,7 @@ function createOTPStore() {
106278
106501
  };
106279
106502
  }
106280
106503
  //#endregion
106281
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/test-utils/index.mjs
106504
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/test-utils/index.mjs
106282
106505
  /**
106283
106506
  * Test utilities plugin for Better Auth.
106284
106507
  *
@@ -106359,10 +106582,10 @@ const testUtils = (options = {}) => {
106359
106582
  };
106360
106583
  };
106361
106584
  //#endregion
106362
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/two-factor/verify-two-factor.mjs
106585
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/two-factor/verify-two-factor.mjs
106363
106586
  init_error();
106364
106587
  //#endregion
106365
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/two-factor/backup-codes/index.mjs
106588
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/two-factor/backup-codes/index.mjs
106366
106589
  init_error();
106367
106590
  init_json();
106368
106591
  const verifyBackupCodeBodySchema = object({
@@ -106373,7 +106596,7 @@ const verifyBackupCodeBodySchema = object({
106373
106596
  const viewBackupCodesBodySchema = object({ userId: string().meta({ description: `The user ID to view all backup codes. Eg: "user-id"` }) });
106374
106597
  const generateBackupCodesBodySchema = object({ password: string$1().meta({ description: "The users password." }) });
106375
106598
  //#endregion
106376
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/two-factor/otp/index.mjs
106599
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/two-factor/otp/index.mjs
106377
106600
  init_error();
106378
106601
  const verifyOTPBodySchema = object({
106379
106602
  code: string$1().meta({ description: "The otp code to verify. Eg: \"012345\"" }),
@@ -106381,7 +106604,7 @@ const verifyOTPBodySchema = object({
106381
106604
  });
106382
106605
  const send2FaOTPBodySchema = object({ trustDevice: boolean$1().optional().meta({ description: "If true, the device will be trusted for 30 days. It'll be refreshed on every sign in request within this time. Eg: true" }) }).optional();
106383
106606
  //#endregion
106384
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/two-factor/totp/index.mjs
106607
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/two-factor/totp/index.mjs
106385
106608
  init_error();
106386
106609
  const generateTOTPBodySchema = object({ secret: string$1().meta({ description: "The secret to generate the TOTP code" }) });
106387
106610
  const getTOTPURIBodySchema = object({ password: string$1().meta({ description: "User password" }) });
@@ -106390,7 +106613,7 @@ const verifyTOTPBodySchema = object({
106390
106613
  trustDevice: boolean$1().meta({ description: "If true, the device will be trusted for 30 days. It'll be refreshed on every sign in request within this time. Eg: true" }).optional()
106391
106614
  });
106392
106615
  //#endregion
106393
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/two-factor/index.mjs
106616
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/two-factor/index.mjs
106394
106617
  init_error();
106395
106618
  const enableTwoFactorBodySchema = object({
106396
106619
  password: string$1().meta({ description: "User password" }),
@@ -106398,7 +106621,7 @@ const enableTwoFactorBodySchema = object({
106398
106621
  });
106399
106622
  const disableTwoFactorBodySchema = object({ password: string$1().meta({ description: "User password" }) });
106400
106623
  //#endregion
106401
- //#region node_modules/.bun/better-auth@1.5.5+f39fd52111f2aedd/node_modules/better-auth/dist/plugins/username/index.mjs
106624
+ //#region node_modules/.bun/better-auth@1.5.5+6e9d63d7924a2633/node_modules/better-auth/dist/plugins/username/index.mjs
106402
106625
  init_error();
106403
106626
  const signInUsernameBodySchema = object({
106404
106627
  username: string$1().meta({ description: "The username of the user" }),
@@ -127968,7 +128191,7 @@ async function validateReadOnlySql(input) {
127968
128191
  provider: input.provider
127969
128192
  })
127970
128193
  });
127971
- if (validation.isErr()) return validation;
128194
+ if (validation.isErr()) return G$5.err(validation.error);
127972
128195
  if (validation.value.isErr()) return G$5.err(new QueryValidationFailure({
127973
128196
  cause: validation.value.error,
127974
128197
  message: validation.value.error.message,
@@ -128842,7 +129065,7 @@ function buildBigQueryQueryOptions(input) {
128842
129065
  timeoutMs: input.timeoutMs
128843
129066
  };
128844
129067
  const location = normalizeBigQueryLocation(input.location);
128845
- if (location.isErr()) return location;
129068
+ if (location.isErr()) return G$5.err(location.error);
128846
129069
  return G$5.ok(location.value ? {
128847
129070
  ...base,
128848
129071
  location: location.value
@@ -129259,7 +129482,7 @@ function resolveLaminarQueryUrl(credentials) {
129259
129482
  provider: "laminar"
129260
129483
  })
129261
129484
  });
129262
- if (urlResult.isErr()) return urlResult;
129485
+ if (urlResult.isErr()) return G$5.err(urlResult.error);
129263
129486
  const url = urlResult.value;
129264
129487
  if (url.protocol !== "https:" && url.protocol !== "http:") return G$5.err(new QueryInputFailure({
129265
129488
  message: "Laminar API base URL must use http or https",
@@ -335059,7 +335282,7 @@ var ProviderHttpClient = class {
335059
335282
  this.#blockedParams = options.blockedParams ?? /* @__PURE__ */ new Set();
335060
335283
  this.#defaultHeaders = options.defaultHeaders ?? {};
335061
335284
  this.#defaultTimeoutMs = normalizeProviderRequestTimeout(options.defaultTimeoutMs);
335062
- this.#fetchImpl = options.fetchImpl ?? fetch;
335285
+ this.#fetchImpl = options.fetchImpl ?? ((input, init) => globalThis.fetch(input, init));
335063
335286
  this.#providerName = options.providerName;
335064
335287
  this.#sanitize = options.sanitize ?? ((text) => text);
335065
335288
  }
@@ -336155,6 +336378,55 @@ const calSourceApiAdapter = createSimpleRestSourceApiAdapter({
336155
336378
  }
336156
336379
  });
336157
336380
  //#endregion
336381
+ //#region packages/server/src/source-api/adapters/cloudflare-web-analytics.ts
336382
+ const CLOUDFLARE_DEFAULT_API_BASE_URL = "https://api.cloudflare.com/client/v4";
336383
+ const CLOUDFLARE_WEB_ANALYTICS_DESCRIPTOR_VERSION = "cloudflare-web-analytics.v1";
336384
+ const cloudflareWebAnalyticsSourceApiAdapter = createSimpleRestSourceApiAdapter({
336385
+ apiBaseUrl: (credentials) => credentials.apiBaseUrl ?? CLOUDFLARE_DEFAULT_API_BASE_URL,
336386
+ auth: (credentials) => ({
336387
+ token: credentials.apiToken,
336388
+ type: "bearer"
336389
+ }),
336390
+ buildEndpoint: ({ credentials, selector }) => buildCloudflareWebAnalyticsEndpoint({
336391
+ credentials,
336392
+ selector
336393
+ }),
336394
+ buildExamples: (sourceKey) => [
336395
+ {
336396
+ command: `onequery api --source ${sourceKey} /graphql --method POST --input '{"query":"query WebAnalytics($accountTag: String, $siteTag: String) { viewer { accounts(filter: { accountTag: $accountTag }) { rumPageloadEventsAdaptiveGroups(limit: 10, filter: { siteTag: $siteTag }) { count } } } }","variables":{"accountTag":"<accountId>","siteTag":"<siteTag>"}}'`,
336397
+ description: "Run a Cloudflare Analytics GraphQL query for Web Analytics RUM data.",
336398
+ label: "Query RUM analytics"
336399
+ },
336400
+ {
336401
+ command: `onequery api --source ${sourceKey} /accounts/{accountId}/rum/v2`,
336402
+ description: "List Web Analytics site configuration visible to the connected Cloudflare account token.",
336403
+ label: "List Web Analytics sites"
336404
+ },
336405
+ {
336406
+ command: `onequery api --source ${sourceKey} /accounts/{accountId}/rum/v2/{siteTag}`,
336407
+ description: "Fetch one Web Analytics site configuration using the connected site tag.",
336408
+ label: "Get Web Analytics site"
336409
+ }
336410
+ ],
336411
+ defaultHeaders: () => ({ "Content-Type": "application/json" }),
336412
+ descriptorVersion: CLOUDFLARE_WEB_ANALYTICS_DESCRIPTOR_VERSION,
336413
+ notes: [
336414
+ "Cloudflare Web Analytics data is queried through the Cloudflare Analytics GraphQL API.",
336415
+ "Web Analytics RUM site configuration uses the Cloudflare account RUM API.",
336416
+ "Workers Observability uses a separate Workers telemetry API; share the account ID and token when the token has both permission sets, but keep it as a separate source."
336417
+ ],
336418
+ operationNotes: [
336419
+ "`{accountId}` in selectors expands to the connected Cloudflare account ID.",
336420
+ "`{siteTag}` in selectors expands to the optional connected Web Analytics site tag.",
336421
+ "Use selector `/graphql` with `--method POST` and a JSON GraphQL payload for analytics queries."
336422
+ ],
336423
+ provider: "cloudflare_web_analytics",
336424
+ providerLabel: "Cloudflare Web Analytics"
336425
+ });
336426
+ function buildCloudflareWebAnalyticsEndpoint(input) {
336427
+ return input.selector.replaceAll("{accountId}", encodeURIComponent(input.credentials.accountId)).replaceAll("{siteTag}", encodeURIComponent(input.credentials.siteTag ?? ""));
336428
+ }
336429
+ //#endregion
336158
336430
  //#region packages/server/src/source-api/adapters/cloudflare-workers-observability.ts
336159
336431
  init_src$1();
336160
336432
  const CLOUDFLARE_API_BASE_URL = "https://api.cloudflare.com/client/v4";
@@ -337285,6 +337557,31 @@ const linkedInAdsSourceApiAdapter = createSimpleRestSourceApiAdapter({
337285
337557
  providerLabel: "LinkedIn Ads"
337286
337558
  });
337287
337559
  //#endregion
337560
+ //#region packages/server/src/source-api/adapters/microsoft-clarity.ts
337561
+ const MICROSOFT_CLARITY_DEFAULT_API_BASE_URL = "https://www.clarity.ms/export-data/api/v1";
337562
+ const MICROSOFT_CLARITY_DESCRIPTOR_VERSION = "microsoft-clarity.v1";
337563
+ const microsoftClaritySourceApiAdapter = createSimpleRestSourceApiAdapter({
337564
+ apiBaseUrl: (credentials) => credentials.apiBaseUrl ?? MICROSOFT_CLARITY_DEFAULT_API_BASE_URL,
337565
+ auth: (credentials) => ({
337566
+ token: credentials.apiToken,
337567
+ type: "bearer"
337568
+ }),
337569
+ buildExamples: (sourceKey) => [{
337570
+ command: `onequery api --source ${sourceKey} /project-live-insights -f params[numOfDays]=1 -f params[dimension1]=OS`,
337571
+ description: "Fetch Clarity live dashboard insights for the last 24 hours grouped by OS.",
337572
+ label: "Live insights by OS"
337573
+ }, {
337574
+ command: `onequery api --source ${sourceKey} /project-live-insights -f params[numOfDays]=3 -f params[dimension1]=URL -f params[dimension2]=Device`,
337575
+ description: "Fetch Clarity insights for the last 72 hours grouped by URL and device.",
337576
+ label: "Live insights by URL"
337577
+ }],
337578
+ descriptorVersion: MICROSOFT_CLARITY_DESCRIPTOR_VERSION,
337579
+ notes: ["Microsoft Clarity Data Export API tokens are project-scoped and sent as Authorization bearer tokens.", "The live insights endpoint is limited to the previous 1 to 3 days and up to three dimensions."],
337580
+ operationNotes: ["Use `params[numOfDays]` with 1, 2, or 3.", "Use `params[dimension1]`, `params[dimension2]`, and `params[dimension3]` for Clarity-supported dimensions."],
337581
+ provider: "microsoft_clarity",
337582
+ providerLabel: "Microsoft Clarity"
337583
+ });
337584
+ //#endregion
337288
337585
  //#region packages/server/src/services/mixpanel/relay.ts
337289
337586
  const MIXPANEL_QUERY_API_URLS = {
337290
337587
  eu: "https://eu.mixpanel.com/api",
@@ -421569,6 +421866,337 @@ function buildSentryExecutionResponse(input) {
421569
421866
  };
421570
421867
  }
421571
421868
  //#endregion
421869
+ //#region packages/server/src/source-api/adapters/slack.ts
421870
+ init_src$1();
421871
+ const SLACK_DESCRIPTOR_VERSION = "slack.v1";
421872
+ const SLACK_API_BASE_URL = "https://slack.com/api";
421873
+ const SLACK_ALLOWED_RESPONSE_HEADERS = ["content-type"];
421874
+ const CHANNEL_ID_PATTERN = /^[CDG][A-Z0-9]+$/;
421875
+ const slackOperationSchema = _enum$2([
421876
+ "list_channels",
421877
+ "fetch_channel_history",
421878
+ "fetch_thread_replies"
421879
+ ]);
421880
+ const slackBaseRequestSchema = object$1({
421881
+ cursor: string$3().trim().min(1).optional(),
421882
+ inclusive: boolean$4().optional(),
421883
+ latest: string$3().trim().min(1).optional(),
421884
+ limit: number$3().int().min(1).max(200).optional(),
421885
+ oldest: string$3().trim().min(1).optional()
421886
+ }).loose();
421887
+ const slackListChannelsRequestSchema = slackBaseRequestSchema.extend({
421888
+ exclude_archived: boolean$4().optional(),
421889
+ types: string$3().trim().min(1).optional()
421890
+ });
421891
+ const slackChannelHistoryRequestSchema = slackBaseRequestSchema;
421892
+ const slackThreadRepliesRequestSchema = slackBaseRequestSchema.extend({
421893
+ thread_ts: string$3().trim().min(1).optional(),
421894
+ ts: string$3().trim().min(1).optional()
421895
+ });
421896
+ var SlackInvalidRequestError = class extends SourceApiInvalidRequestError {};
421897
+ const slackSourceApiAdapter = {
421898
+ provider: "slack",
421899
+ async describe({ source }) {
421900
+ const examples = buildSlackExamples(source.sourceKey);
421901
+ return {
421902
+ descriptorVersion: SLACK_DESCRIPTOR_VERSION,
421903
+ examples,
421904
+ notes: [
421905
+ "Slack returns only channels and messages the installed app can access.",
421906
+ "Invite the Slack app to private channels before querying them.",
421907
+ "Use Slack timestamps as strings for oldest, latest, and thread ts values."
421908
+ ],
421909
+ operations: [
421910
+ createStructuredRequestOperation({
421911
+ allowedResponseHeaders: SLACK_ALLOWED_RESPONSE_HEADERS,
421912
+ description: "List public and private Slack channels visible to the installed app. Optional fields: types, limit, cursor, exclude_archived.",
421913
+ examples: examples.filter((example) => example.label === "List channels"),
421914
+ fieldPolicy: {
421915
+ supportsArrayPaths: false,
421916
+ supportsNestedPaths: false
421917
+ },
421918
+ name: "list_channels",
421919
+ notes: ["Defaults to `public_channel,private_channel` and excludes archived channels."],
421920
+ summary: "List Slack channels."
421921
+ }),
421922
+ createStructuredRequestOperation({
421923
+ allowedResponseHeaders: SLACK_ALLOWED_RESPONSE_HEADERS,
421924
+ description: "Fetch recent Slack messages from one channel. Selector may be a channel ID or #channel-name. Optional fields: limit, cursor, oldest, latest, inclusive.",
421925
+ examples: examples.filter((example) => example.label === "Fetch channel history"),
421926
+ fieldPolicy: {
421927
+ supportsArrayPaths: false,
421928
+ supportsNestedPaths: false
421929
+ },
421930
+ name: "fetch_channel_history",
421931
+ selectorKind: "path",
421932
+ selectorLabel: "CHANNEL",
421933
+ summary: "Fetch Slack channel history."
421934
+ }),
421935
+ createStructuredRequestOperation({
421936
+ allowedResponseHeaders: SLACK_ALLOWED_RESPONSE_HEADERS,
421937
+ description: "Fetch replies from a Slack thread. Selector may be a channel ID or #channel-name. Required field: ts or thread_ts. Optional fields: limit, cursor, oldest, latest, inclusive.",
421938
+ examples: examples.filter((example) => example.label === "Fetch thread replies"),
421939
+ fieldPolicy: {
421940
+ supportsArrayPaths: false,
421941
+ supportsNestedPaths: false
421942
+ },
421943
+ name: "fetch_thread_replies",
421944
+ selectorKind: "path",
421945
+ selectorLabel: "CHANNEL",
421946
+ summary: "Fetch Slack thread replies."
421947
+ })
421948
+ ],
421949
+ source: {
421950
+ displayName: source.displayName,
421951
+ provider: source.provider,
421952
+ sourceKey: source.sourceKey
421953
+ }
421954
+ };
421955
+ },
421956
+ async normalize({ descriptor, request, source }) {
421957
+ const operation = requireSlackOperation({
421958
+ descriptor,
421959
+ operationName: request.operation
421960
+ });
421961
+ if (request.methodOverride?.trim()) throw new SlackInvalidRequestError(`Slack operation "${operation.name}" does not support method overrides`);
421962
+ const headers = normalizeAllowedHeaders({
421963
+ allowedNames: operation.headerPolicy.allowedRequestHeaders,
421964
+ headers: request.headers
421965
+ });
421966
+ const normalizedRequest = parseSlackRequest({
421967
+ operation: operation.name,
421968
+ value: mergeStructuredFieldPatch({
421969
+ base: parseSlackRequestBody(request.body),
421970
+ patch: request.fieldPatch
421971
+ })
421972
+ });
421973
+ const selector = normalizeSlackSelector({
421974
+ operation: operation.name,
421975
+ selector: request.selector
421976
+ });
421977
+ return {
421978
+ body: request.body,
421979
+ descriptorVersion: descriptor.descriptorVersion,
421980
+ headers,
421981
+ kind: "structured_request",
421982
+ method: "POST",
421983
+ operation: operation.name,
421984
+ paginationPolicy: operation.paginationPolicy,
421985
+ provider: source.provider,
421986
+ request: normalizedRequest,
421987
+ selector,
421988
+ selectorTemplate: selector ? "channels/{channel}" : void 0,
421989
+ sourceId: source.id,
421990
+ sourceKey: source.sourceKey
421991
+ };
421992
+ },
421993
+ async execute({ prepared, source }) {
421994
+ if (prepared.kind !== "structured_request") throw new Error(`Slack source API operation "${prepared.operation}" requires a structured plan`);
421995
+ const operation = parseSlackOperation(prepared.operation);
421996
+ const request = parseSlackRequest({
421997
+ operation,
421998
+ value: prepared.request
421999
+ });
422000
+ const response = await executeSlackOperation({
422001
+ credentials: requireSlackCredentials(source),
422002
+ operation,
422003
+ request,
422004
+ selector: prepared.selector
422005
+ });
422006
+ return {
422007
+ body: response.body,
422008
+ contentType: response.contentType,
422009
+ headers: filterAllowedResponseHeaders({
422010
+ allowedNames: SLACK_ALLOWED_RESPONSE_HEADERS,
422011
+ contentType: response.contentType,
422012
+ headers: response.headers
422013
+ }),
422014
+ operation: prepared.operation,
422015
+ selector: prepared.selector,
422016
+ source: {
422017
+ displayName: source.displayName,
422018
+ provider: source.provider,
422019
+ sourceKey: source.sourceKey
422020
+ },
422021
+ status: response.status
422022
+ };
422023
+ }
422024
+ };
422025
+ function buildSlackExamples(sourceKey) {
422026
+ return [
422027
+ {
422028
+ command: `source_api_execute connectionName="${sourceKey}" operationName="list_channels" fieldPatch=[{name:"limit",jsonValue:"100"}]`,
422029
+ description: "List channels visible to the installed Slack app.",
422030
+ label: "List channels"
422031
+ },
422032
+ {
422033
+ command: `source_api_execute connectionName="${sourceKey}" operationName="fetch_channel_history" selector="#general" fieldPatch=[{name:"limit",jsonValue:"50"}]`,
422034
+ description: "Fetch recent messages from a channel.",
422035
+ label: "Fetch channel history"
422036
+ },
422037
+ {
422038
+ command: `source_api_execute connectionName="${sourceKey}" operationName="fetch_thread_replies" selector="#general" fieldPatch=[{name:"ts",jsonValue:"\\"1730000000.000000\\""}]`,
422039
+ description: "Fetch replies from a Slack thread.",
422040
+ label: "Fetch thread replies"
422041
+ }
422042
+ ];
422043
+ }
422044
+ function requireSlackOperation(input) {
422045
+ const operation = input.descriptor.operations.find((candidate) => candidate.name === input.operationName);
422046
+ if (!operation) throw new SourceApiUnsupportedOperationError(input.operationName);
422047
+ return operation;
422048
+ }
422049
+ function parseSlackOperation(operation) {
422050
+ const parsed = slackOperationSchema.safeParse(operation);
422051
+ if (!parsed.success) throw new SourceApiUnsupportedOperationError(operation);
422052
+ return parsed.data;
422053
+ }
422054
+ function parseSlackRequest(input) {
422055
+ const schema = input.operation === "list_channels" ? slackListChannelsRequestSchema : input.operation === "fetch_thread_replies" ? slackThreadRepliesRequestSchema : input.operation === "fetch_channel_history" ? slackChannelHistoryRequestSchema : null;
422056
+ if (!schema) throw new SourceApiUnsupportedOperationError(input.operation);
422057
+ const parsed = schema.safeParse(input.value);
422058
+ if (!parsed.success) throw new SlackInvalidRequestError(`Invalid Slack ${input.operation} request: ${prettifyError$1(parsed.error)}`);
422059
+ return parsed.data;
422060
+ }
422061
+ function parseSlackRequestBody(body) {
422062
+ if (body.kind === "none") return {};
422063
+ if (body.kind === "json" && isRecord(body.value)) return body.value;
422064
+ throw new SlackInvalidRequestError("Slack source API requests must use a JSON object body or fieldPatch entries");
422065
+ }
422066
+ function normalizeSlackSelector(input) {
422067
+ const selector = input.selector?.trim();
422068
+ if (input.operation === "list_channels") {
422069
+ if (selector) throw new SlackInvalidRequestError("Slack operation \"list_channels\" does not accept a selector");
422070
+ return;
422071
+ }
422072
+ if (!selector) throw new SlackInvalidRequestError(`Slack operation "${input.operation}" requires a channel selector`);
422073
+ return selector;
422074
+ }
422075
+ function requireSlackCredentials(source) {
422076
+ if (source.credentials.type !== "slack") throw new SlackInvalidRequestError(`Slack source API requires Slack credentials, received "${source.credentials.type}"`);
422077
+ return source.credentials;
422078
+ }
422079
+ async function executeSlackOperation(input) {
422080
+ switch (input.operation) {
422081
+ case "list_channels": return callSlackApi({
422082
+ credentials: input.credentials,
422083
+ method: "conversations.list",
422084
+ params: {
422085
+ cursor: input.request.cursor,
422086
+ exclude_archived: input.request.exclude_archived ?? true,
422087
+ limit: input.request.limit ?? 100,
422088
+ types: input.request.types ?? "public_channel,private_channel"
422089
+ }
422090
+ });
422091
+ case "fetch_channel_history": {
422092
+ const channel = await resolveSlackChannel({
422093
+ credentials: input.credentials,
422094
+ selector: input.selector
422095
+ });
422096
+ return callSlackApi({
422097
+ credentials: input.credentials,
422098
+ method: "conversations.history",
422099
+ params: {
422100
+ channel,
422101
+ cursor: input.request.cursor,
422102
+ inclusive: input.request.inclusive,
422103
+ latest: input.request.latest,
422104
+ limit: input.request.limit ?? 50,
422105
+ oldest: input.request.oldest
422106
+ }
422107
+ });
422108
+ }
422109
+ case "fetch_thread_replies": {
422110
+ const ts = typeof input.request.ts === "string" ? input.request.ts : input.request.thread_ts;
422111
+ if (!ts) throw new SlackInvalidRequestError("Slack thread replies require request field \"ts\" or \"thread_ts\"");
422112
+ const channel = await resolveSlackChannel({
422113
+ credentials: input.credentials,
422114
+ selector: input.selector
422115
+ });
422116
+ return callSlackApi({
422117
+ credentials: input.credentials,
422118
+ method: "conversations.replies",
422119
+ params: {
422120
+ channel,
422121
+ cursor: input.request.cursor,
422122
+ inclusive: input.request.inclusive,
422123
+ latest: input.request.latest,
422124
+ limit: input.request.limit ?? 50,
422125
+ oldest: input.request.oldest,
422126
+ ts
422127
+ }
422128
+ });
422129
+ }
422130
+ }
422131
+ }
422132
+ async function resolveSlackChannel(input) {
422133
+ const normalized = normalizeChannelSelector(input.selector);
422134
+ if (!normalized) throw new SlackInvalidRequestError("Slack channel selector is required");
422135
+ if (CHANNEL_ID_PATTERN.test(normalized)) return normalized;
422136
+ let cursor;
422137
+ for (let page = 0; page < 20; page += 1) {
422138
+ const value = (await callSlackApi({
422139
+ credentials: input.credentials,
422140
+ method: "conversations.list",
422141
+ params: {
422142
+ cursor,
422143
+ limit: 200,
422144
+ types: "public_channel,private_channel"
422145
+ }
422146
+ })).body.value;
422147
+ const channels = isRecord(value) ? value.channels : void 0;
422148
+ if (Array.isArray(channels)) {
422149
+ const found = channels.find((channel) => isRecord(channel) && channel.name === normalized && typeof channel.id === "string");
422150
+ if (isRecord(found) && typeof found.id === "string") return found.id;
422151
+ }
422152
+ const metadata = isRecord(value) ? value.response_metadata : void 0;
422153
+ cursor = isRecord(metadata) && typeof metadata.next_cursor === "string" ? metadata.next_cursor : void 0;
422154
+ if (!cursor) break;
422155
+ }
422156
+ throw new SlackInvalidRequestError(`Slack channel "${normalized}" was not found`);
422157
+ }
422158
+ function normalizeChannelSelector(selector) {
422159
+ const trimmed = selector?.trim() ?? "";
422160
+ if (!trimmed) return null;
422161
+ return trimmed.startsWith("#") ? trimmed.slice(1) : trimmed;
422162
+ }
422163
+ async function callSlackApi(input) {
422164
+ const body = new URLSearchParams();
422165
+ for (const [key, value] of Object.entries(input.params)) {
422166
+ const stringValue = stringifySlackParam(value);
422167
+ if (stringValue !== void 0 && stringValue.length > 0) body.set(key, stringValue);
422168
+ }
422169
+ const response = await fetch(`${SLACK_API_BASE_URL}/${input.method}`, {
422170
+ body,
422171
+ headers: {
422172
+ Authorization: `Bearer ${input.credentials.botToken}`,
422173
+ "Content-Type": "application/x-www-form-urlencoded;charset=utf-8"
422174
+ },
422175
+ method: "POST"
422176
+ });
422177
+ const value = await response.json().catch(() => null);
422178
+ if (!response.ok) throw new Error(`Slack API HTTP error ${response.status}`);
422179
+ if (isRecord(value) && value.ok === false) {
422180
+ const error = typeof value.error === "string" ? value.error : "unknown_error";
422181
+ throw new Error(`Slack API error: ${error}`);
422182
+ }
422183
+ return {
422184
+ body: {
422185
+ kind: "json",
422186
+ value
422187
+ },
422188
+ contentType: "application/json",
422189
+ headers: [],
422190
+ status: response.status
422191
+ };
422192
+ }
422193
+ function stringifySlackParam(value) {
422194
+ if (value === void 0 || value === null) return;
422195
+ if (typeof value === "string") return value;
422196
+ if (typeof value === "number" || typeof value === "boolean") return String(value);
422197
+ return JSON.stringify(value);
422198
+ }
422199
+ //#endregion
421572
422200
  //#region packages/server/src/source-api/adapters/tiktok-marketing.ts
421573
422201
  const TIKTOK_MARKETING_DEFAULT_API_BASE_URL = "https://business-api.tiktok.com/open_api/v1.3";
421574
422202
  const TIKTOK_MARKETING_DESCRIPTOR_VERSION = "tiktok-marketing.v1";
@@ -421595,6 +422223,38 @@ const tiktokMarketingSourceApiAdapter = createSimpleRestSourceApiAdapter({
421595
422223
  providerLabel: "TikTok Marketing"
421596
422224
  });
421597
422225
  //#endregion
422226
+ //#region packages/server/src/source-api/adapters/vercel.ts
422227
+ const VERCEL_DEFAULT_API_BASE_URL = "https://api.vercel.com";
422228
+ const VERCEL_DESCRIPTOR_VERSION = "vercel.v1";
422229
+ const vercelSourceApiAdapter = createSimpleRestSourceApiAdapter({
422230
+ apiBaseUrl: (credentials) => credentials.apiBaseUrl ?? VERCEL_DEFAULT_API_BASE_URL,
422231
+ auth: (credentials) => ({
422232
+ token: credentials.apiToken,
422233
+ type: "bearer"
422234
+ }),
422235
+ buildExamples: (sourceKey) => [
422236
+ {
422237
+ command: `onequery api --source ${sourceKey} /v9/projects`,
422238
+ description: "List projects visible to the connected Vercel token.",
422239
+ label: "List projects"
422240
+ },
422241
+ {
422242
+ command: `onequery api --source ${sourceKey} /v6/deployments -f params[limit]=20`,
422243
+ description: "List recent deployments visible to the connected token.",
422244
+ label: "List deployments"
422245
+ },
422246
+ {
422247
+ command: `onequery api --source ${sourceKey} /v2/teams`,
422248
+ description: "List teams available to the connected Vercel token.",
422249
+ label: "List teams"
422250
+ }
422251
+ ],
422252
+ descriptorVersion: VERCEL_DESCRIPTOR_VERSION,
422253
+ notes: ["Vercel API tokens are sent as Authorization bearer tokens.", "Pass `params[teamId]` for team-scoped Vercel endpoints when needed."],
422254
+ provider: "vercel",
422255
+ providerLabel: "Vercel"
422256
+ });
422257
+ //#endregion
421598
422258
  //#region packages/server/src/source-api/registry.ts
421599
422259
  function createSourceApiRegistry(adapters) {
421600
422260
  const registry = /* @__PURE__ */ new Map();
@@ -421620,6 +422280,7 @@ const sourceApiRegistry = createSourceApiRegistry([
421620
422280
  airtableSourceApiAdapter,
421621
422281
  bigQuerySourceApiAdapter,
421622
422282
  calSourceApiAdapter,
422283
+ cloudflareWebAnalyticsSourceApiAdapter,
421623
422284
  cloudflareWorkersObservabilitySourceApiAdapter,
421624
422285
  confluenceSourceApiAdapter,
421625
422286
  discordSourceApiAdapter,
@@ -421629,12 +422290,15 @@ const sourceApiRegistry = createSourceApiRegistry([
421629
422290
  granolaSourceApiAdapter,
421630
422291
  jiraSourceApiAdapter,
421631
422292
  linkedInAdsSourceApiAdapter,
422293
+ microsoftClaritySourceApiAdapter,
421632
422294
  mixpanelSourceApiAdapter,
421633
422295
  mongodbSourceApiAdapter,
421634
422296
  postHogSourceApiAdapter,
421635
422297
  sendGridSourceApiAdapter,
421636
422298
  sentrySourceApiAdapter,
421637
- tiktokMarketingSourceApiAdapter
422299
+ slackSourceApiAdapter,
422300
+ tiktokMarketingSourceApiAdapter,
422301
+ vercelSourceApiAdapter
421638
422302
  ]);
421639
422303
  //#endregion
421640
422304
  //#region packages/server/src/source-api/describe.ts
@@ -422043,9 +422707,17 @@ function isCliSourceKey(value) {
422043
422707
  }
422044
422708
  //#endregion
422045
422709
  //#region packages/cli-server/src/source/model.ts
422710
+ const CLI_SOURCE_KEY_NORMALIZATION_PATTERN = /[^a-z0-9._-]+/g;
422711
+ const CLI_SOURCE_KEY_BOUNDARY_PATTERN = /^[._-]+|[._-]+$/g;
422712
+ const CLI_SOURCE_KEY_REPEAT_PATTERN = /[._-]{2,}/g;
422713
+ function normalizeCliSourceKey(name) {
422714
+ const normalized = name.trim().toLowerCase().replaceAll(CLI_SOURCE_KEY_NORMALIZATION_PATTERN, "-").replaceAll(CLI_SOURCE_KEY_BOUNDARY_PATTERN, "").replaceAll(CLI_SOURCE_KEY_REPEAT_PATTERN, "-");
422715
+ return normalized.length > 0 && isCliSourceKey(normalized) ? normalized : null;
422716
+ }
422046
422717
  function createCliSourceKey(name) {
422047
422718
  const normalized = name.trim();
422048
- return normalized.length > 0 && isCliSourceKey(normalized) ? normalized : null;
422719
+ if (normalized.length > 0 && isCliSourceKey(normalized)) return normalized;
422720
+ return normalizeCliSourceKey(normalized);
422049
422721
  }
422050
422722
  function createCliSourceRecord(input) {
422051
422723
  const sourceKey = createCliSourceKey(input.name);
@@ -426344,9 +427016,9 @@ async function runCliListSourcesEffect(input) {
426344
427016
  };
426345
427017
  }
426346
427018
  async function runCliLoadSourceEffect(input) {
426347
- const sourceConditions = [eq(dataSources.organizationId, input.effect.organizationId), eq(dataSources.name, input.effect.sourceKey)];
427019
+ const sourceConditions = [eq(dataSources.organizationId, input.effect.organizationId)];
426348
427020
  if (input.effect.sourceProvider) sourceConditions.push(eq(dataSources.provider, input.effect.sourceProvider));
426349
- const row = await input.db.query.dataSources.findFirst({
427021
+ const row = (await input.db.query.dataSources.findMany({
426350
427022
  columns: {
426351
427023
  id: true,
426352
427024
  name: true,
@@ -426357,13 +427029,11 @@ async function runCliLoadSourceEffect(input) {
426357
427029
  credentialsIv: true
426358
427030
  },
426359
427031
  where: and(...sourceConditions)
426360
- });
427032
+ })).map((candidate) => createCliQuerySourceRecord(candidate)).find((source) => source?.sourceKey === input.effect.sourceKey);
426361
427033
  if (!row) return { kind: "not_found" };
426362
- const source = createCliQuerySourceRecord(row);
426363
- if (!source) return { kind: "not_found" };
426364
427034
  return {
426365
427035
  kind: "found",
426366
- source
427036
+ source: row
426367
427037
  };
426368
427038
  }
426369
427039
  async function runCliConnectSourceEffect(input) {
@@ -433788,6 +434458,33 @@ const SOURCE_CONNECT_PROVIDER_GUIDES = [
433788
434458
  }
433789
434459
  }
433790
434460
  },
434461
+ {
434462
+ provider: "vercel",
434463
+ summary: "Connect Vercel with an API token for deployments, projects, teams, and runtime observability endpoints.",
434464
+ steps: [
434465
+ "Create a Vercel API token with read access to the account or team OneQuery should inspect.",
434466
+ "Copy the token into `credentials.apiToken`.",
434467
+ "Use `params[teamId]` in Source API requests when calling team-scoped Vercel endpoints.",
434468
+ "Only include `apiBaseUrl` when you need a non-default Vercel-compatible API origin."
434469
+ ],
434470
+ exampleInput: {
434471
+ sourceKey: "vercel_main",
434472
+ credentials: { apiToken: "vercel_api_token" }
434473
+ }
434474
+ },
434475
+ {
434476
+ provider: "microsoft_clarity",
434477
+ summary: "Connect Microsoft Clarity with a project Data Export API token.",
434478
+ steps: [
434479
+ "Open the target Clarity project and generate a Data Export API token from Settings > Data Export.",
434480
+ "Copy the token into `credentials.apiToken`.",
434481
+ "Only include `apiBaseUrl` when you need a non-default Clarity-compatible export API origin."
434482
+ ],
434483
+ exampleInput: {
434484
+ sourceKey: "microsoft_clarity_main",
434485
+ credentials: { apiToken: "clarity_api_token" }
434486
+ }
434487
+ },
433791
434488
  {
433792
434489
  provider: "linear",
433793
434490
  summary: "Connect Linear with either an API key or a full OAuth token bundle.",
@@ -433814,6 +434511,24 @@ const SOURCE_CONNECT_PROVIDER_GUIDES = [
433814
434511
  scriptName: "api-production"
433815
434512
  }
433816
434513
  }
434514
+ },
434515
+ {
434516
+ provider: "cloudflare_web_analytics",
434517
+ summary: "Connect Cloudflare Web Analytics with an account-scoped API token, account ID, and optional site tag.",
434518
+ steps: [
434519
+ "Copy the Cloudflare Account ID from the dashboard.",
434520
+ "Create a Cloudflare API token that can read Analytics GraphQL data and Web Analytics RUM site configuration for the account.",
434521
+ "Optionally copy the Web Analytics site tag from the Web Analytics site details; Source API examples use it as the default GraphQL filter.",
434522
+ "Use Cloudflare Workers Observability as a separate source when you need Worker telemetry logs. It uses a different API surface even when it shares the same account and token."
434523
+ ],
434524
+ exampleInput: {
434525
+ sourceKey: "cloudflare_web_analytics",
434526
+ credentials: {
434527
+ accountId: "023e105f4ecef8ad9ca31a8372d0c353",
434528
+ apiToken: "cloudflare_api_token",
434529
+ siteTag: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
434530
+ }
434531
+ }
433817
434532
  }
433818
434533
  ];
433819
434534
  function sourceConnectProviderGuide(provider) {