@instructure/athena-api-client 3.42.0 → 3.42.1

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.
Files changed (38) hide show
  1. package/README.md +8 -0
  2. package/dist/apis/ConceptDiagramsApi.d.ts +47 -0
  3. package/dist/apis/ConceptDiagramsApi.js +117 -0
  4. package/dist/apis/ConceptImagesApi.d.ts +33 -0
  5. package/dist/apis/ConceptImagesApi.js +76 -0
  6. package/dist/apis/index.d.ts +2 -0
  7. package/dist/apis/index.js +2 -0
  8. package/dist/esm/apis/ConceptDiagramsApi.d.ts +47 -0
  9. package/dist/esm/apis/ConceptDiagramsApi.js +113 -0
  10. package/dist/esm/apis/ConceptImagesApi.d.ts +33 -0
  11. package/dist/esm/apis/ConceptImagesApi.js +72 -0
  12. package/dist/esm/apis/index.d.ts +2 -0
  13. package/dist/esm/apis/index.js +2 -0
  14. package/dist/esm/models/ConceptDiagramDetail.d.ts +74 -0
  15. package/dist/esm/models/ConceptDiagramDetail.js +71 -0
  16. package/dist/esm/models/ConceptDiagramGalleryItem.d.ts +68 -0
  17. package/dist/esm/models/ConceptDiagramGalleryItem.js +67 -0
  18. package/dist/esm/models/ConceptImageGalleryItem.d.ts +86 -0
  19. package/dist/esm/models/ConceptImageGalleryItem.js +79 -0
  20. package/dist/esm/models/PaginatedConceptDiagrams.d.ts +39 -0
  21. package/dist/esm/models/PaginatedConceptDiagrams.js +48 -0
  22. package/dist/esm/models/PaginatedConceptImages.d.ts +39 -0
  23. package/dist/esm/models/PaginatedConceptImages.js +48 -0
  24. package/dist/esm/models/index.d.ts +5 -0
  25. package/dist/esm/models/index.js +5 -0
  26. package/dist/models/ConceptDiagramDetail.d.ts +74 -0
  27. package/dist/models/ConceptDiagramDetail.js +78 -0
  28. package/dist/models/ConceptDiagramGalleryItem.d.ts +68 -0
  29. package/dist/models/ConceptDiagramGalleryItem.js +74 -0
  30. package/dist/models/ConceptImageGalleryItem.d.ts +86 -0
  31. package/dist/models/ConceptImageGalleryItem.js +86 -0
  32. package/dist/models/PaginatedConceptDiagrams.d.ts +39 -0
  33. package/dist/models/PaginatedConceptDiagrams.js +55 -0
  34. package/dist/models/PaginatedConceptImages.d.ts +39 -0
  35. package/dist/models/PaginatedConceptImages.js +55 -0
  36. package/dist/models/index.d.ts +5 -0
  37. package/dist/models/index.js +5 -0
  38. package/package.json +1 -1
package/README.md CHANGED
@@ -90,6 +90,9 @@ All URIs are relative to *http://localhost:3000*
90
90
  *ChatsApi* | [**resumeChatStream**](docs/ChatsApi.md#resumechatstream) | **GET** /api/v1/chat/{chatId}/stream | Resume a chat stream
91
91
  *ChatsApi* | [**sendChatMessage**](docs/ChatsApi.md#sendchatmessage) | **POST** /api/v1/chat | Send a message to a chat
92
92
  *ChatsApi* | [**updateChat**](docs/ChatsApi.md#updatechatoperation) | **PATCH** /api/v1/chats/{chatId} | Update a chat
93
+ *ConceptDiagramsApi* | [**getMyConceptDiagram**](docs/ConceptDiagramsApi.md#getmyconceptdiagram) | **GET** /api/v1/concept-diagrams/{diagramId} | Get a concept diagram the user authored
94
+ *ConceptDiagramsApi* | [**listMyConceptDiagrams**](docs/ConceptDiagramsApi.md#listmyconceptdiagrams) | **GET** /api/v1/concept-diagrams | List the concept diagrams the user authored
95
+ *ConceptImagesApi* | [**listMyConceptImages**](docs/ConceptImagesApi.md#listmyconceptimages) | **GET** /api/v1/concept-images | List the concept images the user generated
93
96
  *DailyQuizApi* | [**createDailyQuiz**](docs/DailyQuizApi.md#createdailyquiz) | **POST** /api/v1/daily-quiz | Get or create today\'s daily quiz
94
97
  *DailyQuizApi* | [**getDailyQuiz**](docs/DailyQuizApi.md#getdailyquiz) | **GET** /api/v1/daily-quiz | Get today\'s daily quiz
95
98
  *FeatureOverridesApi* | [**deleteFeatureOverride**](docs/FeatureOverridesApi.md#deletefeatureoverride) | **DELETE** /api/v1/feature-overrides/{id} | Delete a feature override
@@ -271,6 +274,9 @@ All URIs are relative to *http://localhost:3000*
271
274
  - [ChatStudyPlanActivity](docs/ChatStudyPlanActivity.md)
272
275
  - [ConceptAssessmentEntity](docs/ConceptAssessmentEntity.md)
273
276
  - [ConceptChange](docs/ConceptChange.md)
277
+ - [ConceptDiagramDetail](docs/ConceptDiagramDetail.md)
278
+ - [ConceptDiagramGalleryItem](docs/ConceptDiagramGalleryItem.md)
279
+ - [ConceptImageGalleryItem](docs/ConceptImageGalleryItem.md)
274
280
  - [CreateAccountRequest](docs/CreateAccountRequest.md)
275
281
  - [CreateChatRequest](docs/CreateChatRequest.md)
276
282
  - [CreateFeatureDto](docs/CreateFeatureDto.md)
@@ -307,6 +313,8 @@ All URIs are relative to *http://localhost:3000*
307
313
  - [MessagePartsInner](docs/MessagePartsInner.md)
308
314
  - [ObjectiveResource](docs/ObjectiveResource.md)
309
315
  - [PaginatedChats](docs/PaginatedChats.md)
316
+ - [PaginatedConceptDiagrams](docs/PaginatedConceptDiagrams.md)
317
+ - [PaginatedConceptImages](docs/PaginatedConceptImages.md)
310
318
  - [PaginatedLearningMoments](docs/PaginatedLearningMoments.md)
311
319
  - [PaginatedMessages](docs/PaginatedMessages.md)
312
320
  - [PaginatedObjectiveResources](docs/PaginatedObjectiveResources.md)
@@ -0,0 +1,47 @@
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 { ConceptDiagramDetail, PaginatedConceptDiagrams } from '../models/index';
14
+ export interface GetMyConceptDiagramRequest {
15
+ xUserId: string;
16
+ diagramId: string;
17
+ }
18
+ export interface ListMyConceptDiagramsRequest {
19
+ xUserId: string;
20
+ limit?: number;
21
+ cursor?: string;
22
+ }
23
+ /**
24
+ *
25
+ */
26
+ export declare class ConceptDiagramsApi extends runtime.BaseAPI {
27
+ /**
28
+ * Returns one non-hidden diagram the authenticated user authored, including its assembled HTML document.
29
+ * Get a concept diagram the user authored
30
+ */
31
+ getMyConceptDiagramRaw(requestParameters: GetMyConceptDiagramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConceptDiagramDetail>>;
32
+ /**
33
+ * Returns one non-hidden diagram the authenticated user authored, including its assembled HTML document.
34
+ * Get a concept diagram the user authored
35
+ */
36
+ getMyConceptDiagram(requestParameters: GetMyConceptDiagramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConceptDiagramDetail>;
37
+ /**
38
+ * Returns the non-hidden interactive diagrams the authenticated user authored in chat, newest first, with the chat each came from. Omits the HTML document; fetch one diagram to get it. Diagrams authored by other learners are never included, even when this user has been shown them.
39
+ * List the concept diagrams the user authored
40
+ */
41
+ listMyConceptDiagramsRaw(requestParameters: ListMyConceptDiagramsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedConceptDiagrams>>;
42
+ /**
43
+ * Returns the non-hidden interactive diagrams the authenticated user authored in chat, newest first, with the chat each came from. Omits the HTML document; fetch one diagram to get it. Diagrams authored by other learners are never included, even when this user has been shown them.
44
+ * List the concept diagrams the user authored
45
+ */
46
+ listMyConceptDiagrams(requestParameters: ListMyConceptDiagramsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedConceptDiagrams>;
47
+ }
@@ -0,0 +1,117 @@
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.ConceptDiagramsApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class ConceptDiagramsApi extends runtime.BaseAPI {
32
+ /**
33
+ * Returns one non-hidden diagram the authenticated user authored, including its assembled HTML document.
34
+ * Get a concept diagram the user authored
35
+ */
36
+ getMyConceptDiagramRaw(requestParameters, initOverrides) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters['xUserId'] == null) {
39
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling getMyConceptDiagram().');
40
+ }
41
+ if (requestParameters['diagramId'] == null) {
42
+ throw new runtime.RequiredError('diagramId', 'Required parameter "diagramId" was null or undefined when calling getMyConceptDiagram().');
43
+ }
44
+ const queryParameters = {};
45
+ const headerParameters = {};
46
+ if (requestParameters['xUserId'] != null) {
47
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
48
+ }
49
+ if (this.configuration && this.configuration.apiKey) {
50
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
51
+ }
52
+ let urlPath = `/api/v1/concept-diagrams/{diagramId}`;
53
+ urlPath = urlPath.replace(`{${"diagramId"}}`, encodeURIComponent(String(requestParameters['diagramId'])));
54
+ const response = yield this.request({
55
+ path: urlPath,
56
+ method: 'GET',
57
+ headers: headerParameters,
58
+ query: queryParameters,
59
+ }, initOverrides);
60
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ConceptDiagramDetailFromJSON)(jsonValue));
61
+ });
62
+ }
63
+ /**
64
+ * Returns one non-hidden diagram the authenticated user authored, including its assembled HTML document.
65
+ * Get a concept diagram the user authored
66
+ */
67
+ getMyConceptDiagram(requestParameters, initOverrides) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ const response = yield this.getMyConceptDiagramRaw(requestParameters, initOverrides);
70
+ return yield response.value();
71
+ });
72
+ }
73
+ /**
74
+ * Returns the non-hidden interactive diagrams the authenticated user authored in chat, newest first, with the chat each came from. Omits the HTML document; fetch one diagram to get it. Diagrams authored by other learners are never included, even when this user has been shown them.
75
+ * List the concept diagrams the user authored
76
+ */
77
+ listMyConceptDiagramsRaw(requestParameters, initOverrides) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ if (requestParameters['xUserId'] == null) {
80
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listMyConceptDiagrams().');
81
+ }
82
+ const queryParameters = {};
83
+ if (requestParameters['limit'] != null) {
84
+ queryParameters['limit'] = requestParameters['limit'];
85
+ }
86
+ if (requestParameters['cursor'] != null) {
87
+ queryParameters['cursor'] = requestParameters['cursor'];
88
+ }
89
+ const headerParameters = {};
90
+ if (requestParameters['xUserId'] != null) {
91
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
92
+ }
93
+ if (this.configuration && this.configuration.apiKey) {
94
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
95
+ }
96
+ let urlPath = `/api/v1/concept-diagrams`;
97
+ const response = yield this.request({
98
+ path: urlPath,
99
+ method: 'GET',
100
+ headers: headerParameters,
101
+ query: queryParameters,
102
+ }, initOverrides);
103
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedConceptDiagramsFromJSON)(jsonValue));
104
+ });
105
+ }
106
+ /**
107
+ * Returns the non-hidden interactive diagrams the authenticated user authored in chat, newest first, with the chat each came from. Omits the HTML document; fetch one diagram to get it. Diagrams authored by other learners are never included, even when this user has been shown them.
108
+ * List the concept diagrams the user authored
109
+ */
110
+ listMyConceptDiagrams(requestParameters, initOverrides) {
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ const response = yield this.listMyConceptDiagramsRaw(requestParameters, initOverrides);
113
+ return yield response.value();
114
+ });
115
+ }
116
+ }
117
+ exports.ConceptDiagramsApi = ConceptDiagramsApi;
@@ -0,0 +1,33 @@
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 { PaginatedConceptImages } from '../models/index';
14
+ export interface ListMyConceptImagesRequest {
15
+ xUserId: string;
16
+ limit?: number;
17
+ cursor?: string;
18
+ }
19
+ /**
20
+ *
21
+ */
22
+ export declare class ConceptImagesApi extends runtime.BaseAPI {
23
+ /**
24
+ * Returns the non-hidden concept images the authenticated user generated in chat, newest first, each with a freshly signed read URL and the chat it came from. Images generated by other learners are never included, even when this user has been shown them.
25
+ * List the concept images the user generated
26
+ */
27
+ listMyConceptImagesRaw(requestParameters: ListMyConceptImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedConceptImages>>;
28
+ /**
29
+ * Returns the non-hidden concept images the authenticated user generated in chat, newest first, each with a freshly signed read URL and the chat it came from. Images generated by other learners are never included, even when this user has been shown them.
30
+ * List the concept images the user generated
31
+ */
32
+ listMyConceptImages(requestParameters: ListMyConceptImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedConceptImages>;
33
+ }
@@ -0,0 +1,76 @@
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.ConceptImagesApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class ConceptImagesApi extends runtime.BaseAPI {
32
+ /**
33
+ * Returns the non-hidden concept images the authenticated user generated in chat, newest first, each with a freshly signed read URL and the chat it came from. Images generated by other learners are never included, even when this user has been shown them.
34
+ * List the concept images the user generated
35
+ */
36
+ listMyConceptImagesRaw(requestParameters, initOverrides) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters['xUserId'] == null) {
39
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listMyConceptImages().');
40
+ }
41
+ const queryParameters = {};
42
+ if (requestParameters['limit'] != null) {
43
+ queryParameters['limit'] = requestParameters['limit'];
44
+ }
45
+ if (requestParameters['cursor'] != null) {
46
+ queryParameters['cursor'] = requestParameters['cursor'];
47
+ }
48
+ const headerParameters = {};
49
+ if (requestParameters['xUserId'] != null) {
50
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
51
+ }
52
+ if (this.configuration && this.configuration.apiKey) {
53
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
54
+ }
55
+ let urlPath = `/api/v1/concept-images`;
56
+ const response = yield this.request({
57
+ path: urlPath,
58
+ method: 'GET',
59
+ headers: headerParameters,
60
+ query: queryParameters,
61
+ }, initOverrides);
62
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedConceptImagesFromJSON)(jsonValue));
63
+ });
64
+ }
65
+ /**
66
+ * Returns the non-hidden concept images the authenticated user generated in chat, newest first, each with a freshly signed read URL and the chat it came from. Images generated by other learners are never included, even when this user has been shown them.
67
+ * List the concept images the user generated
68
+ */
69
+ listMyConceptImages(requestParameters, initOverrides) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ const response = yield this.listMyConceptImagesRaw(requestParameters, initOverrides);
72
+ return yield response.value();
73
+ });
74
+ }
75
+ }
76
+ exports.ConceptImagesApi = ConceptImagesApi;
@@ -4,6 +4,8 @@ export * from './CanvasCourseAccessApi';
4
4
  export * from './CanvasDomainSearchApi';
5
5
  export * from './ChatAnalysisApi';
6
6
  export * from './ChatsApi';
7
+ export * from './ConceptDiagramsApi';
8
+ export * from './ConceptImagesApi';
7
9
  export * from './DailyQuizApi';
8
10
  export * from './FeatureOverridesApi';
9
11
  export * from './FeaturesApi';
@@ -22,6 +22,8 @@ __exportStar(require("./CanvasCourseAccessApi"), exports);
22
22
  __exportStar(require("./CanvasDomainSearchApi"), exports);
23
23
  __exportStar(require("./ChatAnalysisApi"), exports);
24
24
  __exportStar(require("./ChatsApi"), exports);
25
+ __exportStar(require("./ConceptDiagramsApi"), exports);
26
+ __exportStar(require("./ConceptImagesApi"), exports);
25
27
  __exportStar(require("./DailyQuizApi"), exports);
26
28
  __exportStar(require("./FeatureOverridesApi"), exports);
27
29
  __exportStar(require("./FeaturesApi"), exports);
@@ -0,0 +1,47 @@
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 { ConceptDiagramDetail, PaginatedConceptDiagrams } from '../models/index';
14
+ export interface GetMyConceptDiagramRequest {
15
+ xUserId: string;
16
+ diagramId: string;
17
+ }
18
+ export interface ListMyConceptDiagramsRequest {
19
+ xUserId: string;
20
+ limit?: number;
21
+ cursor?: string;
22
+ }
23
+ /**
24
+ *
25
+ */
26
+ export declare class ConceptDiagramsApi extends runtime.BaseAPI {
27
+ /**
28
+ * Returns one non-hidden diagram the authenticated user authored, including its assembled HTML document.
29
+ * Get a concept diagram the user authored
30
+ */
31
+ getMyConceptDiagramRaw(requestParameters: GetMyConceptDiagramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConceptDiagramDetail>>;
32
+ /**
33
+ * Returns one non-hidden diagram the authenticated user authored, including its assembled HTML document.
34
+ * Get a concept diagram the user authored
35
+ */
36
+ getMyConceptDiagram(requestParameters: GetMyConceptDiagramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConceptDiagramDetail>;
37
+ /**
38
+ * Returns the non-hidden interactive diagrams the authenticated user authored in chat, newest first, with the chat each came from. Omits the HTML document; fetch one diagram to get it. Diagrams authored by other learners are never included, even when this user has been shown them.
39
+ * List the concept diagrams the user authored
40
+ */
41
+ listMyConceptDiagramsRaw(requestParameters: ListMyConceptDiagramsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedConceptDiagrams>>;
42
+ /**
43
+ * Returns the non-hidden interactive diagrams the authenticated user authored in chat, newest first, with the chat each came from. Omits the HTML document; fetch one diagram to get it. Diagrams authored by other learners are never included, even when this user has been shown them.
44
+ * List the concept diagrams the user authored
45
+ */
46
+ listMyConceptDiagrams(requestParameters: ListMyConceptDiagramsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedConceptDiagrams>;
47
+ }
@@ -0,0 +1,113 @@
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 { ConceptDiagramDetailFromJSON, PaginatedConceptDiagramsFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class ConceptDiagramsApi extends runtime.BaseAPI {
29
+ /**
30
+ * Returns one non-hidden diagram the authenticated user authored, including its assembled HTML document.
31
+ * Get a concept diagram the user authored
32
+ */
33
+ getMyConceptDiagramRaw(requestParameters, initOverrides) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ if (requestParameters['xUserId'] == null) {
36
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling getMyConceptDiagram().');
37
+ }
38
+ if (requestParameters['diagramId'] == null) {
39
+ throw new runtime.RequiredError('diagramId', 'Required parameter "diagramId" was null or undefined when calling getMyConceptDiagram().');
40
+ }
41
+ const queryParameters = {};
42
+ const headerParameters = {};
43
+ if (requestParameters['xUserId'] != null) {
44
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
45
+ }
46
+ if (this.configuration && this.configuration.apiKey) {
47
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
48
+ }
49
+ let urlPath = `/api/v1/concept-diagrams/{diagramId}`;
50
+ urlPath = urlPath.replace(`{${"diagramId"}}`, encodeURIComponent(String(requestParameters['diagramId'])));
51
+ const response = yield this.request({
52
+ path: urlPath,
53
+ method: 'GET',
54
+ headers: headerParameters,
55
+ query: queryParameters,
56
+ }, initOverrides);
57
+ return new runtime.JSONApiResponse(response, (jsonValue) => ConceptDiagramDetailFromJSON(jsonValue));
58
+ });
59
+ }
60
+ /**
61
+ * Returns one non-hidden diagram the authenticated user authored, including its assembled HTML document.
62
+ * Get a concept diagram the user authored
63
+ */
64
+ getMyConceptDiagram(requestParameters, initOverrides) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ const response = yield this.getMyConceptDiagramRaw(requestParameters, initOverrides);
67
+ return yield response.value();
68
+ });
69
+ }
70
+ /**
71
+ * Returns the non-hidden interactive diagrams the authenticated user authored in chat, newest first, with the chat each came from. Omits the HTML document; fetch one diagram to get it. Diagrams authored by other learners are never included, even when this user has been shown them.
72
+ * List the concept diagrams the user authored
73
+ */
74
+ listMyConceptDiagramsRaw(requestParameters, initOverrides) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ if (requestParameters['xUserId'] == null) {
77
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listMyConceptDiagrams().');
78
+ }
79
+ const queryParameters = {};
80
+ if (requestParameters['limit'] != null) {
81
+ queryParameters['limit'] = requestParameters['limit'];
82
+ }
83
+ if (requestParameters['cursor'] != null) {
84
+ queryParameters['cursor'] = requestParameters['cursor'];
85
+ }
86
+ const headerParameters = {};
87
+ if (requestParameters['xUserId'] != null) {
88
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
89
+ }
90
+ if (this.configuration && this.configuration.apiKey) {
91
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
92
+ }
93
+ let urlPath = `/api/v1/concept-diagrams`;
94
+ const response = yield this.request({
95
+ path: urlPath,
96
+ method: 'GET',
97
+ headers: headerParameters,
98
+ query: queryParameters,
99
+ }, initOverrides);
100
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedConceptDiagramsFromJSON(jsonValue));
101
+ });
102
+ }
103
+ /**
104
+ * Returns the non-hidden interactive diagrams the authenticated user authored in chat, newest first, with the chat each came from. Omits the HTML document; fetch one diagram to get it. Diagrams authored by other learners are never included, even when this user has been shown them.
105
+ * List the concept diagrams the user authored
106
+ */
107
+ listMyConceptDiagrams(requestParameters, initOverrides) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ const response = yield this.listMyConceptDiagramsRaw(requestParameters, initOverrides);
110
+ return yield response.value();
111
+ });
112
+ }
113
+ }
@@ -0,0 +1,33 @@
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 { PaginatedConceptImages } from '../models/index';
14
+ export interface ListMyConceptImagesRequest {
15
+ xUserId: string;
16
+ limit?: number;
17
+ cursor?: string;
18
+ }
19
+ /**
20
+ *
21
+ */
22
+ export declare class ConceptImagesApi extends runtime.BaseAPI {
23
+ /**
24
+ * Returns the non-hidden concept images the authenticated user generated in chat, newest first, each with a freshly signed read URL and the chat it came from. Images generated by other learners are never included, even when this user has been shown them.
25
+ * List the concept images the user generated
26
+ */
27
+ listMyConceptImagesRaw(requestParameters: ListMyConceptImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedConceptImages>>;
28
+ /**
29
+ * Returns the non-hidden concept images the authenticated user generated in chat, newest first, each with a freshly signed read URL and the chat it came from. Images generated by other learners are never included, even when this user has been shown them.
30
+ * List the concept images the user generated
31
+ */
32
+ listMyConceptImages(requestParameters: ListMyConceptImagesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedConceptImages>;
33
+ }
@@ -0,0 +1,72 @@
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 { PaginatedConceptImagesFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class ConceptImagesApi extends runtime.BaseAPI {
29
+ /**
30
+ * Returns the non-hidden concept images the authenticated user generated in chat, newest first, each with a freshly signed read URL and the chat it came from. Images generated by other learners are never included, even when this user has been shown them.
31
+ * List the concept images the user generated
32
+ */
33
+ listMyConceptImagesRaw(requestParameters, initOverrides) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ if (requestParameters['xUserId'] == null) {
36
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listMyConceptImages().');
37
+ }
38
+ const queryParameters = {};
39
+ if (requestParameters['limit'] != null) {
40
+ queryParameters['limit'] = requestParameters['limit'];
41
+ }
42
+ if (requestParameters['cursor'] != null) {
43
+ queryParameters['cursor'] = requestParameters['cursor'];
44
+ }
45
+ const headerParameters = {};
46
+ if (requestParameters['xUserId'] != null) {
47
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
48
+ }
49
+ if (this.configuration && this.configuration.apiKey) {
50
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
51
+ }
52
+ let urlPath = `/api/v1/concept-images`;
53
+ const response = yield this.request({
54
+ path: urlPath,
55
+ method: 'GET',
56
+ headers: headerParameters,
57
+ query: queryParameters,
58
+ }, initOverrides);
59
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedConceptImagesFromJSON(jsonValue));
60
+ });
61
+ }
62
+ /**
63
+ * Returns the non-hidden concept images the authenticated user generated in chat, newest first, each with a freshly signed read URL and the chat it came from. Images generated by other learners are never included, even when this user has been shown them.
64
+ * List the concept images the user generated
65
+ */
66
+ listMyConceptImages(requestParameters, initOverrides) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ const response = yield this.listMyConceptImagesRaw(requestParameters, initOverrides);
69
+ return yield response.value();
70
+ });
71
+ }
72
+ }
@@ -4,6 +4,8 @@ export * from './CanvasCourseAccessApi';
4
4
  export * from './CanvasDomainSearchApi';
5
5
  export * from './ChatAnalysisApi';
6
6
  export * from './ChatsApi';
7
+ export * from './ConceptDiagramsApi';
8
+ export * from './ConceptImagesApi';
7
9
  export * from './DailyQuizApi';
8
10
  export * from './FeatureOverridesApi';
9
11
  export * from './FeaturesApi';
@@ -6,6 +6,8 @@ export * from './CanvasCourseAccessApi';
6
6
  export * from './CanvasDomainSearchApi';
7
7
  export * from './ChatAnalysisApi';
8
8
  export * from './ChatsApi';
9
+ export * from './ConceptDiagramsApi';
10
+ export * from './ConceptImagesApi';
9
11
  export * from './DailyQuizApi';
10
12
  export * from './FeatureOverridesApi';
11
13
  export * from './FeaturesApi';