Skip to content

Commit fefb5ca

Browse files
committed
Move model from internal to pkg
Signed-off-by: Radoslav Dimitrov <radoslav@stacklok.com>
1 parent 52b6d6f commit fefb5ca

24 files changed

+24
-24
lines changed

cmd/registry/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/modelcontextprotocol/registry/internal/api"
1515
"github.com/modelcontextprotocol/registry/internal/config"
1616
"github.com/modelcontextprotocol/registry/internal/database"
17-
"github.com/modelcontextprotocol/registry/internal/model"
17+
"github.com/modelcontextprotocol/registry/pkg/model"
1818
"github.com/modelcontextprotocol/registry/internal/service"
1919
)
2020

internal/api/handlers/v0/auth/github_at.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
v0 "github.com/modelcontextprotocol/registry/internal/api/handlers/v0"
1313
"github.com/modelcontextprotocol/registry/internal/auth"
1414
"github.com/modelcontextprotocol/registry/internal/config"
15-
"github.com/modelcontextprotocol/registry/internal/model"
15+
"github.com/modelcontextprotocol/registry/pkg/model"
1616
)
1717

1818
// GitHubTokenExchangeInput represents the input for GitHub token exchange

internal/api/handlers/v0/auth/github_at_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
v0auth "github.com/modelcontextprotocol/registry/internal/api/handlers/v0/auth"
1717
"github.com/modelcontextprotocol/registry/internal/auth"
1818
"github.com/modelcontextprotocol/registry/internal/config"
19-
"github.com/modelcontextprotocol/registry/internal/model"
19+
"github.com/modelcontextprotocol/registry/pkg/model"
2020
"github.com/stretchr/testify/assert"
2121
"github.com/stretchr/testify/require"
2222
)

internal/api/handlers/v0/auth/github_oidc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
v0 "github.com/modelcontextprotocol/registry/internal/api/handlers/v0"
1616
"github.com/modelcontextprotocol/registry/internal/auth"
1717
"github.com/modelcontextprotocol/registry/internal/config"
18-
"github.com/modelcontextprotocol/registry/internal/model"
18+
"github.com/modelcontextprotocol/registry/pkg/model"
1919
)
2020

2121
// GitHubOIDCTokenExchangeInput represents the input for GitHub OIDC token exchange

internal/api/handlers/v0/auth/github_oidc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/modelcontextprotocol/registry/internal/api/handlers/v0/auth"
1212
internalauth "github.com/modelcontextprotocol/registry/internal/auth"
1313
"github.com/modelcontextprotocol/registry/internal/config"
14-
"github.com/modelcontextprotocol/registry/internal/model"
14+
"github.com/modelcontextprotocol/registry/pkg/model"
1515
"github.com/stretchr/testify/assert"
1616
"github.com/stretchr/testify/require"
1717
)

internal/api/handlers/v0/auth/none.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
v0 "github.com/modelcontextprotocol/registry/internal/api/handlers/v0"
1010
"github.com/modelcontextprotocol/registry/internal/auth"
1111
"github.com/modelcontextprotocol/registry/internal/config"
12-
"github.com/modelcontextprotocol/registry/internal/model"
12+
"github.com/modelcontextprotocol/registry/pkg/model"
1313
)
1414

1515
// NoneHandler handles anonymous authentication

internal/api/handlers/v0/auth/none_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
v0auth "github.com/modelcontextprotocol/registry/internal/api/handlers/v0/auth"
1111
"github.com/modelcontextprotocol/registry/internal/auth"
1212
"github.com/modelcontextprotocol/registry/internal/config"
13-
"github.com/modelcontextprotocol/registry/internal/model"
13+
"github.com/modelcontextprotocol/registry/pkg/model"
1414
"github.com/stretchr/testify/assert"
1515
"github.com/stretchr/testify/require"
1616
)

internal/api/handlers/v0/publish.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/danielgtaylor/huma/v2"
99
"github.com/modelcontextprotocol/registry/internal/auth"
1010
"github.com/modelcontextprotocol/registry/internal/config"
11-
"github.com/modelcontextprotocol/registry/internal/model"
11+
"github.com/modelcontextprotocol/registry/pkg/model"
1212
"github.com/modelcontextprotocol/registry/internal/service"
1313
)
1414

internal/api/handlers/v0/publish_integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
v0 "github.com/modelcontextprotocol/registry/internal/api/handlers/v0"
1717
"github.com/modelcontextprotocol/registry/internal/auth"
1818
"github.com/modelcontextprotocol/registry/internal/config"
19-
"github.com/modelcontextprotocol/registry/internal/model"
19+
"github.com/modelcontextprotocol/registry/pkg/model"
2020
"github.com/modelcontextprotocol/registry/internal/service"
2121
"github.com/stretchr/testify/assert"
2222
"github.com/stretchr/testify/require"

internal/api/handlers/v0/publish_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
v0 "github.com/modelcontextprotocol/registry/internal/api/handlers/v0"
1818
"github.com/modelcontextprotocol/registry/internal/auth"
1919
"github.com/modelcontextprotocol/registry/internal/config"
20-
"github.com/modelcontextprotocol/registry/internal/model"
20+
"github.com/modelcontextprotocol/registry/pkg/model"
2121
"github.com/stretchr/testify/assert"
2222
"github.com/stretchr/testify/mock"
2323
"github.com/stretchr/testify/require"

0 commit comments

Comments
 (0)