Memco

Interface CreateKeyOptions

What UserOperations.createKey makes a key from.

interface CreateKeyOptions {
    preset: string;
    name?: string;
    validUntil?: Date;
    timeout?: number;
}

Hierarchy (View Summary)

Index
preset: string

The kind of key: mcp_rw, mcp_ro or audit. It must be within the user's roles.

name?: string

A name to recognise the key by.

validUntil?: Date

When the key expires, at most three months ahead, sent as the whole second it falls in. Omitted, three months.

timeout?: number

Seconds to wait for this call. Defaults to the client's own timeout.

On this page