Archived
fix(auth): preserve OAuth interaction semantics
This commit is contained in:
+15
-2
@@ -384,10 +384,23 @@ export interface OAuthFlowState {
|
||||
providerId: string;
|
||||
providerName: string;
|
||||
status: "running" | "complete" | "error" | "cancelled";
|
||||
auth?: { url: string; instructions?: string };
|
||||
prompt?: { requestId: string; message: string; placeholder?: string; allowEmpty?: boolean; kind: "prompt" | "manual" };
|
||||
auth?: {
|
||||
url: string;
|
||||
instructions?: string;
|
||||
deviceCode?: { userCode: string; intervalSeconds?: number; expiresInSeconds?: number };
|
||||
};
|
||||
prompt?: {
|
||||
requestId: string;
|
||||
message: string;
|
||||
placeholder?: string;
|
||||
allowEmpty?: boolean;
|
||||
/** Additive semantic detail; legacy peers continue to use `kind`. */
|
||||
promptType?: "text" | "secret" | "manual_code";
|
||||
kind: "prompt" | "manual";
|
||||
};
|
||||
select?: { requestId: string; message: string; options: CommandOption[] };
|
||||
progress: string[];
|
||||
info?: { message: string; links?: { url: string; label?: string }[] }[];
|
||||
error?: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user