@instructure/athena-api-client 3.27.1 → 3.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -74,6 +74,7 @@ All URIs are relative to *http://localhost:3000*
74
74
  *AdminApi* | [**adminResetUserLearningData**](docs/AdminApi.md#adminresetuserlearningdata) | **POST** /api/v1/admin/users/{externalId}/reset-learning-data | Reset a user\'s Athena learning data to a blank slate
75
75
  *AdminApi* | [**adminTriggerChatAnalysis**](docs/AdminApi.md#admintriggerchatanalysis) | **POST** /api/v1/admin/chats/{chatId}/analyze | Trigger re-analysis for a chat
76
76
  *AdminApi* | [**adminUpdateChat**](docs/AdminApi.md#adminupdatechatoperation) | **PATCH** /api/v1/admin/chats/{chatId} | Update a chat (admin)
77
+ *CanvasCourseAccessApi* | [**getCanvasCourseAccess**](docs/CanvasCourseAccessApi.md#getcanvascourseaccess) | **GET** /api/v1/canvas/course-access | Read the Canvas course-access map Athena is enforcing
77
78
  *CanvasDomainSearchApi* | [**searchCanvasDomain**](docs/CanvasDomainSearchApi.md#searchcanvasdomain) | **POST** /api/v1/canvas/domain-search | AI-ranked Canvas domain search
78
79
  *ChatAnalysisApi* | [**getChatAnalysis**](docs/ChatAnalysisApi.md#getchatanalysis) | **GET** /api/v1/chats/{chatId}/analysis | Get chat analysis
79
80
  *ChatsApi* | [**createChat**](docs/ChatsApi.md#createchatoperation) | **POST** /api/v1/chats | Create a chat
@@ -207,6 +208,7 @@ All URIs are relative to *http://localhost:3000*
207
208
  - [AdminUpdateChatRequest](docs/AdminUpdateChatRequest.md)
208
209
  - [AdminUserEngagement](docs/AdminUserEngagement.md)
209
210
  - [AssociateUserFileRequest](docs/AssociateUserFileRequest.md)
211
+ - [CanvasCourseAccess](docs/CanvasCourseAccess.md)
210
212
  - [CanvasDomainMatch](docs/CanvasDomainMatch.md)
211
213
  - [CanvasDomainSearchDto](docs/CanvasDomainSearchDto.md)
212
214
  - [CanvasDomainSearchResponse](docs/CanvasDomainSearchResponse.md)
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { CanvasCourseAccess } from '../models/index';
14
+ export interface GetCanvasCourseAccessRequest {
15
+ xCanvasDomain: string;
16
+ xCanvasToken: string;
17
+ xUserId: string;
18
+ force?: boolean;
19
+ }
20
+ /**
21
+ *
22
+ */
23
+ export declare class CanvasCourseAccessApi extends runtime.BaseAPI {
24
+ /**
25
+ * Returns which of the learner\'s Canvas courses Athena may read, as resolved from Canvas and interpreted by this service, along with where the map came from and when Canvas resolved it. Pass `force=true` to skip this service\'s cache and ask Canvas to skip its own, which is how a feature-flag change is confirmed without waiting out both cache windows.
26
+ * Read the Canvas course-access map Athena is enforcing
27
+ */
28
+ getCanvasCourseAccessRaw(requestParameters: GetCanvasCourseAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CanvasCourseAccess>>;
29
+ /**
30
+ * Returns which of the learner\'s Canvas courses Athena may read, as resolved from Canvas and interpreted by this service, along with where the map came from and when Canvas resolved it. Pass `force=true` to skip this service\'s cache and ask Canvas to skip its own, which is how a feature-flag change is confirmed without waiting out both cache windows.
31
+ * Read the Canvas course-access map Athena is enforcing
32
+ */
33
+ getCanvasCourseAccess(requestParameters: GetCanvasCourseAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CanvasCourseAccess>;
34
+ }
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Athena API
6
+ * REST API for the Athena system
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.CanvasCourseAccessApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class CanvasCourseAccessApi extends runtime.BaseAPI {
32
+ /**
33
+ * Returns which of the learner\'s Canvas courses Athena may read, as resolved from Canvas and interpreted by this service, along with where the map came from and when Canvas resolved it. Pass `force=true` to skip this service\'s cache and ask Canvas to skip its own, which is how a feature-flag change is confirmed without waiting out both cache windows.
34
+ * Read the Canvas course-access map Athena is enforcing
35
+ */
36
+ getCanvasCourseAccessRaw(requestParameters, initOverrides) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters['xCanvasDomain'] == null) {
39
+ throw new runtime.RequiredError('xCanvasDomain', 'Required parameter "xCanvasDomain" was null or undefined when calling getCanvasCourseAccess().');
40
+ }
41
+ if (requestParameters['xCanvasToken'] == null) {
42
+ throw new runtime.RequiredError('xCanvasToken', 'Required parameter "xCanvasToken" was null or undefined when calling getCanvasCourseAccess().');
43
+ }
44
+ if (requestParameters['xUserId'] == null) {
45
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling getCanvasCourseAccess().');
46
+ }
47
+ const queryParameters = {};
48
+ if (requestParameters['force'] != null) {
49
+ queryParameters['force'] = requestParameters['force'];
50
+ }
51
+ const headerParameters = {};
52
+ if (requestParameters['xCanvasDomain'] != null) {
53
+ headerParameters['X-Canvas-Domain'] = String(requestParameters['xCanvasDomain']);
54
+ }
55
+ if (requestParameters['xCanvasToken'] != null) {
56
+ headerParameters['X-Canvas-Token'] = String(requestParameters['xCanvasToken']);
57
+ }
58
+ if (requestParameters['xUserId'] != null) {
59
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
60
+ }
61
+ if (this.configuration && this.configuration.apiKey) {
62
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
63
+ }
64
+ let urlPath = `/api/v1/canvas/course-access`;
65
+ const response = yield this.request({
66
+ path: urlPath,
67
+ method: 'GET',
68
+ headers: headerParameters,
69
+ query: queryParameters,
70
+ }, initOverrides);
71
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CanvasCourseAccessFromJSON)(jsonValue));
72
+ });
73
+ }
74
+ /**
75
+ * Returns which of the learner\'s Canvas courses Athena may read, as resolved from Canvas and interpreted by this service, along with where the map came from and when Canvas resolved it. Pass `force=true` to skip this service\'s cache and ask Canvas to skip its own, which is how a feature-flag change is confirmed without waiting out both cache windows.
76
+ * Read the Canvas course-access map Athena is enforcing
77
+ */
78
+ getCanvasCourseAccess(requestParameters, initOverrides) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ const response = yield this.getCanvasCourseAccessRaw(requestParameters, initOverrides);
81
+ return yield response.value();
82
+ });
83
+ }
84
+ }
85
+ exports.CanvasCourseAccessApi = CanvasCourseAccessApi;
@@ -1,5 +1,6 @@
1
1
  export * from './AccountsApi';
2
2
  export * from './AdminApi';
3
+ export * from './CanvasCourseAccessApi';
3
4
  export * from './CanvasDomainSearchApi';
4
5
  export * from './ChatAnalysisApi';
5
6
  export * from './ChatsApi';
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AccountsApi"), exports);
20
20
  __exportStar(require("./AdminApi"), exports);
21
+ __exportStar(require("./CanvasCourseAccessApi"), exports);
21
22
  __exportStar(require("./CanvasDomainSearchApi"), exports);
22
23
  __exportStar(require("./ChatAnalysisApi"), exports);
23
24
  __exportStar(require("./ChatsApi"), exports);
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { CanvasCourseAccess } from '../models/index';
14
+ export interface GetCanvasCourseAccessRequest {
15
+ xCanvasDomain: string;
16
+ xCanvasToken: string;
17
+ xUserId: string;
18
+ force?: boolean;
19
+ }
20
+ /**
21
+ *
22
+ */
23
+ export declare class CanvasCourseAccessApi extends runtime.BaseAPI {
24
+ /**
25
+ * Returns which of the learner\'s Canvas courses Athena may read, as resolved from Canvas and interpreted by this service, along with where the map came from and when Canvas resolved it. Pass `force=true` to skip this service\'s cache and ask Canvas to skip its own, which is how a feature-flag change is confirmed without waiting out both cache windows.
26
+ * Read the Canvas course-access map Athena is enforcing
27
+ */
28
+ getCanvasCourseAccessRaw(requestParameters: GetCanvasCourseAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CanvasCourseAccess>>;
29
+ /**
30
+ * Returns which of the learner\'s Canvas courses Athena may read, as resolved from Canvas and interpreted by this service, along with where the map came from and when Canvas resolved it. Pass `force=true` to skip this service\'s cache and ask Canvas to skip its own, which is how a feature-flag change is confirmed without waiting out both cache windows.
31
+ * Read the Canvas course-access map Athena is enforcing
32
+ */
33
+ getCanvasCourseAccess(requestParameters: GetCanvasCourseAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CanvasCourseAccess>;
34
+ }
@@ -0,0 +1,81 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Athena API
5
+ * REST API for the Athena system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { CanvasCourseAccessFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class CanvasCourseAccessApi extends runtime.BaseAPI {
29
+ /**
30
+ * Returns which of the learner\'s Canvas courses Athena may read, as resolved from Canvas and interpreted by this service, along with where the map came from and when Canvas resolved it. Pass `force=true` to skip this service\'s cache and ask Canvas to skip its own, which is how a feature-flag change is confirmed without waiting out both cache windows.
31
+ * Read the Canvas course-access map Athena is enforcing
32
+ */
33
+ getCanvasCourseAccessRaw(requestParameters, initOverrides) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ if (requestParameters['xCanvasDomain'] == null) {
36
+ throw new runtime.RequiredError('xCanvasDomain', 'Required parameter "xCanvasDomain" was null or undefined when calling getCanvasCourseAccess().');
37
+ }
38
+ if (requestParameters['xCanvasToken'] == null) {
39
+ throw new runtime.RequiredError('xCanvasToken', 'Required parameter "xCanvasToken" was null or undefined when calling getCanvasCourseAccess().');
40
+ }
41
+ if (requestParameters['xUserId'] == null) {
42
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling getCanvasCourseAccess().');
43
+ }
44
+ const queryParameters = {};
45
+ if (requestParameters['force'] != null) {
46
+ queryParameters['force'] = requestParameters['force'];
47
+ }
48
+ const headerParameters = {};
49
+ if (requestParameters['xCanvasDomain'] != null) {
50
+ headerParameters['X-Canvas-Domain'] = String(requestParameters['xCanvasDomain']);
51
+ }
52
+ if (requestParameters['xCanvasToken'] != null) {
53
+ headerParameters['X-Canvas-Token'] = String(requestParameters['xCanvasToken']);
54
+ }
55
+ if (requestParameters['xUserId'] != null) {
56
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
57
+ }
58
+ if (this.configuration && this.configuration.apiKey) {
59
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
60
+ }
61
+ let urlPath = `/api/v1/canvas/course-access`;
62
+ const response = yield this.request({
63
+ path: urlPath,
64
+ method: 'GET',
65
+ headers: headerParameters,
66
+ query: queryParameters,
67
+ }, initOverrides);
68
+ return new runtime.JSONApiResponse(response, (jsonValue) => CanvasCourseAccessFromJSON(jsonValue));
69
+ });
70
+ }
71
+ /**
72
+ * Returns which of the learner\'s Canvas courses Athena may read, as resolved from Canvas and interpreted by this service, along with where the map came from and when Canvas resolved it. Pass `force=true` to skip this service\'s cache and ask Canvas to skip its own, which is how a feature-flag change is confirmed without waiting out both cache windows.
73
+ * Read the Canvas course-access map Athena is enforcing
74
+ */
75
+ getCanvasCourseAccess(requestParameters, initOverrides) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ const response = yield this.getCanvasCourseAccessRaw(requestParameters, initOverrides);
78
+ return yield response.value();
79
+ });
80
+ }
81
+ }
@@ -1,5 +1,6 @@
1
1
  export * from './AccountsApi';
2
2
  export * from './AdminApi';
3
+ export * from './CanvasCourseAccessApi';
3
4
  export * from './CanvasDomainSearchApi';
4
5
  export * from './ChatAnalysisApi';
5
6
  export * from './ChatsApi';
@@ -2,6 +2,7 @@
2
2
  /* eslint-disable */
3
3
  export * from './AccountsApi';
4
4
  export * from './AdminApi';
5
+ export * from './CanvasCourseAccessApi';
5
6
  export * from './CanvasDomainSearchApi';
6
7
  export * from './ChatAnalysisApi';
7
8
  export * from './ChatsApi';
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CanvasCourseAccess
16
+ */
17
+ export interface CanvasCourseAccess {
18
+ /**
19
+ * 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.
20
+ * @type {{ [key: string]: boolean; }}
21
+ * @memberof CanvasCourseAccess
22
+ */
23
+ courses: {
24
+ [key: string]: boolean;
25
+ } | null;
26
+ /**
27
+ * 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.
28
+ * @type {string}
29
+ * @memberof CanvasCourseAccess
30
+ */
31
+ source: CanvasCourseAccessSourceEnum;
32
+ /**
33
+ * When Canvas resolved this map. Null when no map has ever been resolved.
34
+ * @type {Date}
35
+ * @memberof CanvasCourseAccess
36
+ */
37
+ fetchedAt: Date | null;
38
+ }
39
+ /**
40
+ * @export
41
+ */
42
+ export declare const CanvasCourseAccessSourceEnum: {
43
+ readonly Fresh: "fresh";
44
+ readonly Cached: "cached";
45
+ readonly Stale: "stale";
46
+ readonly Unknown: "unknown";
47
+ };
48
+ export type CanvasCourseAccessSourceEnum = typeof CanvasCourseAccessSourceEnum[keyof typeof CanvasCourseAccessSourceEnum];
49
+ /**
50
+ * Check if a given object implements the CanvasCourseAccess interface.
51
+ */
52
+ export declare function instanceOfCanvasCourseAccess(value: object): value is CanvasCourseAccess;
53
+ export declare function CanvasCourseAccessFromJSON(json: any): CanvasCourseAccess;
54
+ export declare function CanvasCourseAccessFromJSONTyped(json: any, ignoreDiscriminator: boolean): CanvasCourseAccess;
55
+ export declare function CanvasCourseAccessToJSON(json: any): CanvasCourseAccess;
56
+ export declare function CanvasCourseAccessToJSONTyped(value?: CanvasCourseAccess | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Athena API
5
+ * REST API for the Athena system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * @export
16
+ */
17
+ export const CanvasCourseAccessSourceEnum = {
18
+ Fresh: 'fresh',
19
+ Cached: 'cached',
20
+ Stale: 'stale',
21
+ Unknown: 'unknown'
22
+ };
23
+ /**
24
+ * Check if a given object implements the CanvasCourseAccess interface.
25
+ */
26
+ export function instanceOfCanvasCourseAccess(value) {
27
+ if (!('courses' in value) || value['courses'] === undefined)
28
+ return false;
29
+ if (!('source' in value) || value['source'] === undefined)
30
+ return false;
31
+ if (!('fetchedAt' in value) || value['fetchedAt'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ export function CanvasCourseAccessFromJSON(json) {
36
+ return CanvasCourseAccessFromJSONTyped(json, false);
37
+ }
38
+ export function CanvasCourseAccessFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'courses': json['courses'],
44
+ 'source': json['source'],
45
+ 'fetchedAt': (json['fetchedAt'] == null ? null : new Date(json['fetchedAt'])),
46
+ };
47
+ }
48
+ export function CanvasCourseAccessToJSON(json) {
49
+ return CanvasCourseAccessToJSONTyped(json, false);
50
+ }
51
+ export function CanvasCourseAccessToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'courses': value['courses'],
57
+ 'source': value['source'],
58
+ 'fetchedAt': value['fetchedAt'] == null ? value['fetchedAt'] : value['fetchedAt'].toISOString(),
59
+ };
60
+ }
@@ -25,6 +25,7 @@ export * from './AdminTriggerAnalysisResponse';
25
25
  export * from './AdminUpdateChatRequest';
26
26
  export * from './AdminUserEngagement';
27
27
  export * from './AssociateUserFileRequest';
28
+ export * from './CanvasCourseAccess';
28
29
  export * from './CanvasDomainMatch';
29
30
  export * from './CanvasDomainSearchDto';
30
31
  export * from './CanvasDomainSearchResponse';
@@ -27,6 +27,7 @@ export * from './AdminTriggerAnalysisResponse';
27
27
  export * from './AdminUpdateChatRequest';
28
28
  export * from './AdminUserEngagement';
29
29
  export * from './AssociateUserFileRequest';
30
+ export * from './CanvasCourseAccess';
30
31
  export * from './CanvasDomainMatch';
31
32
  export * from './CanvasDomainSearchDto';
32
33
  export * from './CanvasDomainSearchResponse';
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CanvasCourseAccess
16
+ */
17
+ export interface CanvasCourseAccess {
18
+ /**
19
+ * 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.
20
+ * @type {{ [key: string]: boolean; }}
21
+ * @memberof CanvasCourseAccess
22
+ */
23
+ courses: {
24
+ [key: string]: boolean;
25
+ } | null;
26
+ /**
27
+ * 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.
28
+ * @type {string}
29
+ * @memberof CanvasCourseAccess
30
+ */
31
+ source: CanvasCourseAccessSourceEnum;
32
+ /**
33
+ * When Canvas resolved this map. Null when no map has ever been resolved.
34
+ * @type {Date}
35
+ * @memberof CanvasCourseAccess
36
+ */
37
+ fetchedAt: Date | null;
38
+ }
39
+ /**
40
+ * @export
41
+ */
42
+ export declare const CanvasCourseAccessSourceEnum: {
43
+ readonly Fresh: "fresh";
44
+ readonly Cached: "cached";
45
+ readonly Stale: "stale";
46
+ readonly Unknown: "unknown";
47
+ };
48
+ export type CanvasCourseAccessSourceEnum = typeof CanvasCourseAccessSourceEnum[keyof typeof CanvasCourseAccessSourceEnum];
49
+ /**
50
+ * Check if a given object implements the CanvasCourseAccess interface.
51
+ */
52
+ export declare function instanceOfCanvasCourseAccess(value: object): value is CanvasCourseAccess;
53
+ export declare function CanvasCourseAccessFromJSON(json: any): CanvasCourseAccess;
54
+ export declare function CanvasCourseAccessFromJSONTyped(json: any, ignoreDiscriminator: boolean): CanvasCourseAccess;
55
+ export declare function CanvasCourseAccessToJSON(json: any): CanvasCourseAccess;
56
+ export declare function CanvasCourseAccessToJSONTyped(value?: CanvasCourseAccess | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Athena API
6
+ * REST API for the Athena system
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CanvasCourseAccessSourceEnum = void 0;
17
+ exports.instanceOfCanvasCourseAccess = instanceOfCanvasCourseAccess;
18
+ exports.CanvasCourseAccessFromJSON = CanvasCourseAccessFromJSON;
19
+ exports.CanvasCourseAccessFromJSONTyped = CanvasCourseAccessFromJSONTyped;
20
+ exports.CanvasCourseAccessToJSON = CanvasCourseAccessToJSON;
21
+ exports.CanvasCourseAccessToJSONTyped = CanvasCourseAccessToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.CanvasCourseAccessSourceEnum = {
26
+ Fresh: 'fresh',
27
+ Cached: 'cached',
28
+ Stale: 'stale',
29
+ Unknown: 'unknown'
30
+ };
31
+ /**
32
+ * Check if a given object implements the CanvasCourseAccess interface.
33
+ */
34
+ function instanceOfCanvasCourseAccess(value) {
35
+ if (!('courses' in value) || value['courses'] === undefined)
36
+ return false;
37
+ if (!('source' in value) || value['source'] === undefined)
38
+ return false;
39
+ if (!('fetchedAt' in value) || value['fetchedAt'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function CanvasCourseAccessFromJSON(json) {
44
+ return CanvasCourseAccessFromJSONTyped(json, false);
45
+ }
46
+ function CanvasCourseAccessFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'courses': json['courses'],
52
+ 'source': json['source'],
53
+ 'fetchedAt': (json['fetchedAt'] == null ? null : new Date(json['fetchedAt'])),
54
+ };
55
+ }
56
+ function CanvasCourseAccessToJSON(json) {
57
+ return CanvasCourseAccessToJSONTyped(json, false);
58
+ }
59
+ function CanvasCourseAccessToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'courses': value['courses'],
65
+ 'source': value['source'],
66
+ 'fetchedAt': value['fetchedAt'] == null ? value['fetchedAt'] : value['fetchedAt'].toISOString(),
67
+ };
68
+ }
@@ -25,6 +25,7 @@ export * from './AdminTriggerAnalysisResponse';
25
25
  export * from './AdminUpdateChatRequest';
26
26
  export * from './AdminUserEngagement';
27
27
  export * from './AssociateUserFileRequest';
28
+ export * from './CanvasCourseAccess';
28
29
  export * from './CanvasDomainMatch';
29
30
  export * from './CanvasDomainSearchDto';
30
31
  export * from './CanvasDomainSearchResponse';
@@ -43,6 +43,7 @@ __exportStar(require("./AdminTriggerAnalysisResponse"), exports);
43
43
  __exportStar(require("./AdminUpdateChatRequest"), exports);
44
44
  __exportStar(require("./AdminUserEngagement"), exports);
45
45
  __exportStar(require("./AssociateUserFileRequest"), exports);
46
+ __exportStar(require("./CanvasCourseAccess"), exports);
46
47
  __exportStar(require("./CanvasDomainMatch"), exports);
47
48
  __exportStar(require("./CanvasDomainSearchDto"), exports);
48
49
  __exportStar(require("./CanvasDomainSearchResponse"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@instructure/athena-api-client",
3
3
  "private": false,
4
- "version": "3.27.1",
4
+ "version": "3.28.0",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {