2026-10-01 16:20:16 -05:00
|
|
|
/** Core's own protocol. Every other one is declared by a plugin. */
|
|
|
|
|
export const SSH_AUTH_PROTOCOL = "ssh";
|
2026-08-06 14:41:39 -05:00
|
|
|
|
2026-10-01 16:20:16 -05:00
|
|
|
/** "ssh", or a protocol id a plugin declares in contributes.protocols. */
|
|
|
|
|
export type AuthOverrideProtocol = string;
|
2026-08-06 14:41:39 -05:00
|
|
|
|
|
|
|
|
export interface HostAuthOverrideState<
|
|
|
|
|
CredentialId extends number | string = number,
|
|
|
|
|
> {
|
|
|
|
|
credentialId?: CredentialId;
|
|
|
|
|
required: boolean;
|
|
|
|
|
ownerAuthShared: boolean;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type HostAuthOverrides<CredentialId extends number | string = number> =
|
|
|
|
|
Partial<Record<AuthOverrideProtocol, HostAuthOverrideState<CredentialId>>>;
|