@canonical/jujulib
Version:
Juju API client
30 lines (29 loc) • 880 B
TypeScript
/**
Juju Admin version 4.
This facade is available on:
Controller-machine-agent
Machine-agent
Unit-agent
Controllers
Models
*/
import { ConnectionInfo, Transport } from "../client.js";
import AdminV3, { LoginResult } from "../facades/admin/AdminV3.js";
/**
admin is the only object that unlogged-in clients can access. It holds any
methods that are needed to log in.
*/
declare class AdminV4 extends AdminV3 {
static NAME: string;
static VERSION: number;
NAME: string;
VERSION: number;
constructor(transport: Transport, info: ConnectionInfo);
/**
LoginWithSessionCookie logs in if the session cookie exists when the
websocket connection is made. All subsequent requests on the
connection will act as the authenticated user.
*/
loginWithSessionCookie(): Promise<LoginResult>;
}
export default AdminV4;