import { object , optional , Schema , string } from '../schema' ; /**
 * Represents a generic time range. The start and end values are
 * represented in RFC 3339 format. Time ranges are customized to be
 * inclusive or exclusive based on the needs of a particular endpoint.
 * Refer to the relevant endpoint-specific documentation to determine
 * how time ranges are handled.
 */ export interface TimeRange { /**
     * A datetime value in RFC 3339 format indicating when the time range
     * starts.
     */ startAt ? : string ; /**
     * A datetime value in RFC 3339 format indicating when the time range
     * ends.
     */ endAt ? : string ; } export const timeRangeSchema = object ( { startAt : [ 'start_at' , optional ( string ( ) ) ] , endAt : [ 'end_at' , optional ( string ( ) ) ] , } ) ;