// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../core/resource'; import { APIPromise } from '../core/api-promise'; import { buildHeaders } from '../internal/headers'; import { RequestOptions } from '../internal/request-options'; export class RootBranding extends APIResource { /** * Get the current root branding. * * Args: service (AdminRootBrandingService): The root branding service. \_ * (CurrentUser): The caller, validated but unused. * * Returns: RootBrandingResponse: The current root branding. * * Raises: AdminNotFoundError: 404 status code if the singleton row is missing. */ retrieveRootBranding( params: RootBrandingRetrieveRootBrandingParams | null | undefined = {}, options?: RequestOptions, ): APIPromise { const { 'Accept-Language': acceptLanguage, 'X-Error-Format': xErrorFormat } = params ?? {}; return this._client.get('/root-branding', { ...options, headers: buildHeaders([ { ...(acceptLanguage != null ? { 'Accept-Language': acceptLanguage } : undefined), ...(xErrorFormat != null ? { 'X-Error-Format': xErrorFormat } : undefined), }, options?.headers, ]), }); } } /** * Response schema for root branding. * * Attributes: id (str): Root branding row id. product_name (str | None): Displayed * product name. primary_color (str | None): Base color for the primary-_ color * scheme. secondary_color (str | None): Base color for the secondary-_ color * scheme. accent_color (str | None): Base color for the accent-\* color scheme. * light_logo_url (str | None): Resolved URL for the light-theme logo. * dark_logo_url (str | None): Resolved URL for the dark-theme logo. */ export interface RootBrandingRetrieveRootBrandingResponse { id: string; accent_color?: string | null; dark_logo_url?: string | null; light_logo_url?: string | null; primary_color?: string | null; product_name?: string | null; secondary_color?: string | null; } export interface RootBrandingRetrieveRootBrandingParams { 'Accept-Language'?: string; /** * Set to `structured` to receive errors in the structured envelope. Omit it to * keep the legacy error body. */ 'X-Error-Format'?: string; } export declare namespace RootBranding { export { type RootBrandingRetrieveRootBrandingResponse as RootBrandingRetrieveRootBrandingResponse, type RootBrandingRetrieveRootBrandingParams as RootBrandingRetrieveRootBrandingParams, }; }