Skip to content

@graphty/graphty-element / index / StoredCredentialInfo

Type Alias: StoredCredentialInfo ​

StoredCredentialInfo = { namespace: "ai"; provider: string; } | { kind: CredentialKind; namespace: "source"; origin: string; source: string; username?: string; }

Defined in: graphty-element/src/credentials/CredentialStore.ts:35

One remembered credential, as list() describes it: never a secret. Experimental.

Union Members ​

Type Literal ​

{ namespace: "ai"; provider: string; }

namespace ​

readonly namespace: "ai"

An AI provider key.

provider ​

readonly provider: string

The provider.


Type Literal ​

{ kind: CredentialKind; namespace: "source"; origin: string; source: string; username?: string; }

kind ​

readonly kind: CredentialKind

Its kind.

namespace ​

readonly namespace: "source"

A network source credential.

origin ​

readonly origin: string

The origin it is sent to.

source ​

readonly source: string

The source id.

username? ​

readonly optional username?: string

A basic credential's user name.