/** * HandshakeRequest describes a payload that needs to be sent to API Proxy to initiate the Desktop session. */ export interface HandshakeRequest { /** * AppKey of the application that sent the related request. */ AppKey: string; /** * OAuth scope requested by the application (e.g. "rapi"). */ AppScope: string; /** * Version of the API Proxy requested by the client application (e.g. "1.0.0"). */ ApiVersion: string; /** * Name of the Refinitiv Library used by the application. (e.g. "Refinitiv Data Platform TS/JS Library"). */ LibraryName?: string; /** * Version of the Refinitiv Library used by the application. (e.g. "1.0.0"). */ LibraryVersion?: string; /** * The user uuid. */ Uuid?: string; } /** * HandshakeResponse describes a payload that is received from API Proxy on successful handshake. */ export interface HandshakeResponse { /** * JWT token for open Desktop session. */ access_token: string; /** * The expiration time of the token. By default, it is set to two weeks. */ expires_in: number; /** * The type of the token. (e.g. "bearer"). */ token_type: string; }