// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../core/resource'; import * as CompaniesAPI from './companies'; import { APIPromise } from '../core/api-promise'; import { RequestOptions } from '../internal/request-options'; /** * Provides the user's SSO information */ export class SSOMeResource extends APIResource { /** * SSO information of the current user * * - Requires: `API Tier 1` * - Expandable fields: `company` */ list(query: SSOMeListParams | null | undefined = {}, options?: RequestOptions): APIPromise { return this._client.get('/sso-me/', { query, ...options }); } } export interface SSOMe { /** * Identifier field */ id: string; /** * Record creation date */ created_at: string; /** * Record update date */ updated_at: string; /** * The company of the user. * * Expandable field */ company?: CompaniesAPI.Company; /** * The company ID of the user. */ company_id?: string; /** * The user's work email address. */ work_email?: string; } export interface SSOMeListParams { cursor?: string; expand?: string; } export declare namespace SSOMeResource { export { type SSOMe as SSOMe, type SSOMeListParams as SSOMeListParams }; }