Interface ClientSessionInterface

ClientSession entity interface

Mirrors macs-node-sdk/lib/clients/models/client-session.js. Represents a pending / active OAuth authorization session. code, refresh_key, and active_id are server-managed.

interface ClientSessionInterface {
    active?: boolean;
    external_id?: string;
    extensors?: { [key: string]: string };
    record_history?: RecordHistory;
    id?: string;
    client: string;
    metadata: { [key: string]: any };
    code?: string;
    code_challenge?: string;
    code_challenge_method?: "S256" | "plain";
    redirect_uri: string;
    expires_at?: string | Date;
}

Hierarchy (View Summary)

Properties

active?: boolean

Whether the entity is active

external_id?: string

External system identifier for integration with third-party systems

extensors?: { [key: string]: string }

Extended properties for custom integrations

record_history?: RecordHistory

Record history tracking information

id?: string

Unique identifier for the entity

client: string

Owning Client (required)

metadata: { [key: string]: any }

OAuth request metadata (scopes, state, etc.) — required

code?: string

Authorization code issued to the client (read-only after issue)

code_challenge?: string

PKCE code challenge

code_challenge_method?: "S256" | "plain"

PKCE code challenge method

redirect_uri: string

Redirect URI agreed at authorization (required)

expires_at?: string | Date

Session expiry