From d788e72c069643dd23db6e2ff3645e38252ab9d9 Mon Sep 17 00:00:00 2001 From: "mojo-machine[bot]" <111131124+mojo-machine[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 14:46:57 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Sync=20from=20monorepo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/wearemojo/mojo/commit/da9ed57e7a11ed21d54ff4a11e3fae5b18c9a187 --- lib/actor/actor.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/actor/actor.go b/lib/actor/actor.go index 9c4b3d8..85b9f9d 100644 --- a/lib/actor/actor.go +++ b/lib/actor/actor.go @@ -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" ) @@ -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,