agentmux_srv_core/backend/signin_link_event.rs
1// Copyright 2026, AgentMux Corp.
2// SPDX-License-Identifier: Apache-2.0
3
4//! The `identity:signinlink` event (`server/signin_notice.rs`), kept below the server so
5//! `mps_events` can name it.
6
7use serde::Serialize;
8
9/// The `identity:signinlink` event: show this link as a notice.
10#[derive(Debug, Clone, Serialize, ts_rs::TS)]
11#[ts(export, export_to = "../../../frontend/types/rpc/")]
12#[serde(rename_all = "camelCase")]
13pub struct SigninLinkEvent {
14 pub provider: String,
15 /// The machine that is signing in: "Sign narko in to Claude".
16 pub machine: String,
17 pub url: String,
18 /// The one-time code to enter on that page, for a sign-in that uses one.
19 #[serde(skip_serializing_if = "Option::is_none")]
20 #[ts(optional)]
21 pub code: Option<String>,
22}