Skip to content

Commit

Permalink
πŸ”„ Sync from monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
mojo-machine[bot] committed Nov 14, 2024
1 parent b1cd0c7 commit d788e72
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/actor/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ var (
TypeSession Type = "session"
TypeExternalCloudAuth Type = "external_cloud_auth" // non-Mojo system
TypeExternalUser Type = "external_user" // non-Mojo user
TypeExternalLanggraph Type = "external_langgraph"
TypeExternalRevenuecat Type = "external_revenuecat"
)

Expand Down Expand Up @@ -107,6 +108,15 @@ func NewExternalUser(typ, id, reference string) Actor {
}
}

func NewExternalLanggraph(userID ksuid.ID) Actor {
return Actor{
Type: TypeExternalLanggraph,
Params: map[string]any{
"user_id": userID.String(),
},
}
}

func NewExternalRevenuecat() Actor {
return Actor{
Type: TypeExternalRevenuecat,
Expand Down

0 comments on commit d788e72

Please sign in to comment.