-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor to prepare for projects and threads
- Loading branch information
1 parent
e6f8ca4
commit af61075
Showing
93 changed files
with
2,055 additions
and
1,210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
package types | ||
|
||
type Authorization struct { | ||
AuthorizationManifest | ||
type AgentAuthorization struct { | ||
AgentAuthorizationManifest | ||
User *User `json:"user,omitempty"` | ||
} | ||
|
||
type AuthorizationManifest struct { | ||
type AgentAuthorizationManifest struct { | ||
UserID string `json:"userID,omitempty"` | ||
AgentID string `json:"agentId,omitempty"` | ||
} | ||
|
||
type AuthorizationList List[Authorization] | ||
type AuthorizationList List[AgentAuthorization] | ||
|
||
type ThreadAuthorization struct { | ||
ThreadAuthorizationManifest | ||
} | ||
|
||
type ThreadAuthorizationManifest struct { | ||
UserID string `json:"userID,omitempty"` | ||
ThreadID string `json:"threadID,omitempty"` | ||
} | ||
|
||
type ThreadAuthorizationList List[ThreadAuthorization] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package types | ||
|
||
type Project struct { | ||
Metadata | ||
ProjectManifest | ||
} | ||
|
||
type ProjectManifest struct { | ||
Name string `json:"name,omitempty"` | ||
} | ||
|
||
type ProjectList List[Project] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.