@@ -47,6 +47,7 @@ import {
4747
4848import type { AutofixResponse , AutofixState } from "../types/seer.js" ;
4949import { ApiError , AuthError } from "./errors.js" ;
50+ import { resolveOrgRegion } from "./region.js" ;
5051import {
5152 getApiBaseUrl ,
5253 getControlSiloUrl ,
@@ -162,7 +163,6 @@ export function buildSearchParams(
162163 * Resolves the org's region URL and returns the config.
163164 */
164165async function getOrgSdkConfig ( orgSlug : string ) {
165- const { resolveOrgRegion } = await import ( "./region.js" ) ;
166166 const regionUrl = await resolveOrgRegion ( orgSlug ) ;
167167 return getSdkConfig ( regionUrl ) ;
168168}
@@ -460,7 +460,6 @@ export type ProjectWithOrg = SentryProject & {
460460 */
461461export function listRepositories ( orgSlug : string ) : Promise < SentryRepository [ ] > {
462462 return withHttpSpan ( "GET" , `/organizations/${ orgSlug } /repos/` , async ( ) => {
463- const { resolveOrgRegion } = await import ( "./region.js" ) ;
464463 const regionUrl = await resolveOrgRegion ( orgSlug ) ;
465464
466465 return apiRequestToRegion < SentryRepository [ ] > (
@@ -698,7 +697,6 @@ export function listIssues(
698697 "GET" ,
699698 `/projects/${ orgSlug } /${ projectSlug } /issues/` ,
700699 async ( ) => {
701- const { resolveOrgRegion } = await import ( "./region.js" ) ;
702700 const regionUrl = await resolveOrgRegion ( orgSlug ) ;
703701
704702 // Use raw request: the SDK type doesn't support limit/sort params
@@ -855,7 +853,6 @@ export function getDetailedTrace(
855853 "GET" ,
856854 `/organizations/${ orgSlug } /trace/${ traceId } /` ,
857855 async ( ) => {
858- const { resolveOrgRegion } = await import ( "./region.js" ) ;
859856 const regionUrl = await resolveOrgRegion ( orgSlug ) ;
860857
861858 return apiRequestToRegion < TraceSpan [ ] > (
@@ -917,7 +914,6 @@ export function listTransactions(
917914 const projectFilter = isNumericProject ? "" : `project:${ projectSlug } ` ;
918915 const fullQuery = [ projectFilter , options . query ] . filter ( Boolean ) . join ( " " ) ;
919916
920- const { resolveOrgRegion } = await import ( "./region.js" ) ;
921917 const regionUrl = await resolveOrgRegion ( orgSlug ) ;
922918
923919 // Use raw request: the SDK's dataset type doesn't include "transactions"
@@ -1056,7 +1052,6 @@ export function triggerSolutionPlanning(
10561052 "POST" ,
10571053 `/organizations/${ orgSlug } /issues/${ issueId } /autofix/` ,
10581054 async ( ) => {
1059- const { resolveOrgRegion } = await import ( "./region.js" ) ;
10601055 const regionUrl = await resolveOrgRegion ( orgSlug ) ;
10611056
10621057 return apiRequestToRegion (
0 commit comments