Files
Termix/src/types/auth-protocols.ts
T

17 lines
562 B
TypeScript
Raw Normal View History

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";
+3
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;
+3
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>>>;