Skip to content

Commit ded3a4c

Browse files
committed
chore(network): keep routing result types private
1 parent 39a623a commit ded3a4c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/sim/lib/core/network/application/read-organization-network.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { OutboundRoutingError } from '@/lib/core/network/routing'
66
import { OrchestrationError } from '@/lib/core/orchestration/types'
77
import { authorizeOrganizationSettingsSection } from '@/lib/settings/application/organization-section-access'
88

9-
export type OrganizationNetwork =
9+
type OrganizationNetwork =
1010
| { mode: 'direct' | 'blocked' | 'unavailable' }
1111
| { mode: 'gateway'; publicIps: string[] }
1212

apps/sim/lib/core/network/routing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ const configSchema = z.strictObject({
1919
.refine((value) => Object.keys(value).length <= 10_000),
2020
})
2121

22-
export type OutboundRoute = Readonly<z.infer<typeof routeSchema>>
22+
type OutboundRoute = Readonly<z.infer<typeof routeSchema>>
2323
export interface OutboundRoutingConfig {
2424
readonly schemaVersion: 1
2525
readonly revision: string
2626
readonly organizations: Readonly<Record<string, OutboundRoute>>
2727
}
2828

29-
export type OutboundRoutingErrorCode =
29+
type OutboundRoutingErrorCode =
3030
| 'CONFIGURATION_UNAVAILABLE'
3131
| 'INVALID_CONFIGURATION'
3232
| 'MISSING_SCOPE'

0 commit comments

Comments
 (0)