/** * Athena API * REST API for the Athena system * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface CanvasCourseAccess */ export interface CanvasCourseAccess { /** * Canvas course id → whether Athena may read that course, exactly as Canvas resolved it. Null when no map has ever been resolved for this learner and domain, in which case every course is treated as enabled. A course absent from a non-null map is also treated as enabled. * @type {{ [key: string]: boolean; }} * @memberof CanvasCourseAccess */ courses: { [key: string]: boolean; } | null; /** * Where this map came from: freshly fetched from Canvas, served from cache, the last known state after a failed refresh (a true entry is honored only as default-on), or never fetched at all. * @type {string} * @memberof CanvasCourseAccess */ source: CanvasCourseAccessSourceEnum; /** * When Canvas resolved this map. Null when no map has ever been resolved. * @type {Date} * @memberof CanvasCourseAccess */ fetchedAt: Date | null; } /** * @export */ export declare const CanvasCourseAccessSourceEnum: { readonly Fresh: "fresh"; readonly Cached: "cached"; readonly Stale: "stale"; readonly Unknown: "unknown"; }; export type CanvasCourseAccessSourceEnum = typeof CanvasCourseAccessSourceEnum[keyof typeof CanvasCourseAccessSourceEnum]; /** * Check if a given object implements the CanvasCourseAccess interface. */ export declare function instanceOfCanvasCourseAccess(value: object): value is CanvasCourseAccess; export declare function CanvasCourseAccessFromJSON(json: any): CanvasCourseAccess; export declare function CanvasCourseAccessFromJSONTyped(json: any, ignoreDiscriminator: boolean): CanvasCourseAccess; export declare function CanvasCourseAccessToJSON(json: any): CanvasCourseAccess; export declare function CanvasCourseAccessToJSONTyped(value?: CanvasCourseAccess | null, ignoreDiscriminator?: boolean): any;