@instructure/athena-api-client 2.23.3 → 2.23.5

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
@@ -68,6 +68,7 @@ All URIs are relative to *http://localhost:3000*
68
68
  *AdminApi* | [**adminListTopStreaks**](docs/AdminApi.md#adminlisttopstreaks) | **GET** /api/v1/admin/streaks | List top N streaks across the account
69
69
  *AdminApi* | [**adminTriggerChatAnalysis**](docs/AdminApi.md#admintriggerchatanalysis) | **POST** /api/v1/admin/chats/{chatId}/analyze | Trigger re-analysis for a chat
70
70
  *AdminApi* | [**adminUpdateChat**](docs/AdminApi.md#adminupdatechatoperation) | **PATCH** /api/v1/admin/chats/{chatId} | Update a chat (admin)
71
+ *CanvasDomainSearchApi* | [**searchCanvasDomain**](docs/CanvasDomainSearchApi.md#searchcanvasdomain) | **POST** /api/v1/canvas/domain-search | AI-ranked Canvas domain search
71
72
  *ChatAnalysisApi* | [**getChatAnalysis**](docs/ChatAnalysisApi.md#getchatanalysis) | **GET** /api/v1/chats/{chatId}/analysis | Get chat analysis
72
73
  *ChatsApi* | [**createChat**](docs/ChatsApi.md#createchatoperation) | **POST** /api/v1/chats | Create a chat
73
74
  *ChatsApi* | [**deleteChat**](docs/ChatsApi.md#deletechat) | **DELETE** /api/v1/chats/{chatId} | Delete a chat
@@ -153,6 +154,9 @@ All URIs are relative to *http://localhost:3000*
153
154
  - [AdminTriggerAnalysisResponse](docs/AdminTriggerAnalysisResponse.md)
154
155
  - [AdminUpdateChatRequest](docs/AdminUpdateChatRequest.md)
155
156
  - [AdminUserEngagement](docs/AdminUserEngagement.md)
157
+ - [CanvasDomainMatch](docs/CanvasDomainMatch.md)
158
+ - [CanvasDomainSearchDto](docs/CanvasDomainSearchDto.md)
159
+ - [CanvasDomainSearchResponse](docs/CanvasDomainSearchResponse.md)
156
160
  - [CanvasKnowledgeAssessmentEntity](docs/CanvasKnowledgeAssessmentEntity.md)
157
161
  - [CanvasTaxonomyEntity](docs/CanvasTaxonomyEntity.md)
158
162
  - [Chat](docs/Chat.md)
@@ -0,0 +1,32 @@
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 { CanvasDomainSearchDto, CanvasDomainSearchResponse } from '../models/index';
14
+ export interface SearchCanvasDomainRequest {
15
+ xUserId: string;
16
+ canvasDomainSearchDto: CanvasDomainSearchDto;
17
+ }
18
+ /**
19
+ *
20
+ */
21
+ export declare class CanvasDomainSearchApi extends runtime.BaseAPI {
22
+ /**
23
+ * Searches canvas-support for institutions matching the query, then ranks candidates with an LLM. Returns a confident best guess plus alternatives, including a sandbox suggestion when the query looks like a Canvas subdomain.
24
+ * AI-ranked Canvas domain search
25
+ */
26
+ searchCanvasDomainRaw(requestParameters: SearchCanvasDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CanvasDomainSearchResponse>>;
27
+ /**
28
+ * Searches canvas-support for institutions matching the query, then ranks candidates with an LLM. Returns a confident best guess plus alternatives, including a sandbox suggestion when the query looks like a Canvas subdomain.
29
+ * AI-ranked Canvas domain search
30
+ */
31
+ searchCanvasDomain(requestParameters: SearchCanvasDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CanvasDomainSearchResponse>;
32
+ }
@@ -0,0 +1,75 @@
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.CanvasDomainSearchApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class CanvasDomainSearchApi extends runtime.BaseAPI {
32
+ /**
33
+ * Searches canvas-support for institutions matching the query, then ranks candidates with an LLM. Returns a confident best guess plus alternatives, including a sandbox suggestion when the query looks like a Canvas subdomain.
34
+ * AI-ranked Canvas domain search
35
+ */
36
+ searchCanvasDomainRaw(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 searchCanvasDomain().');
40
+ }
41
+ if (requestParameters['canvasDomainSearchDto'] == null) {
42
+ throw new runtime.RequiredError('canvasDomainSearchDto', 'Required parameter "canvasDomainSearchDto" was null or undefined when calling searchCanvasDomain().');
43
+ }
44
+ const queryParameters = {};
45
+ const headerParameters = {};
46
+ headerParameters['Content-Type'] = 'application/json';
47
+ if (requestParameters['xUserId'] != null) {
48
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
49
+ }
50
+ if (this.configuration && this.configuration.apiKey) {
51
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
52
+ }
53
+ let urlPath = `/api/v1/canvas/domain-search`;
54
+ const response = yield this.request({
55
+ path: urlPath,
56
+ method: 'POST',
57
+ headers: headerParameters,
58
+ query: queryParameters,
59
+ body: (0, index_1.CanvasDomainSearchDtoToJSON)(requestParameters['canvasDomainSearchDto']),
60
+ }, initOverrides);
61
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CanvasDomainSearchResponseFromJSON)(jsonValue));
62
+ });
63
+ }
64
+ /**
65
+ * Searches canvas-support for institutions matching the query, then ranks candidates with an LLM. Returns a confident best guess plus alternatives, including a sandbox suggestion when the query looks like a Canvas subdomain.
66
+ * AI-ranked Canvas domain search
67
+ */
68
+ searchCanvasDomain(requestParameters, initOverrides) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ const response = yield this.searchCanvasDomainRaw(requestParameters, initOverrides);
71
+ return yield response.value();
72
+ });
73
+ }
74
+ }
75
+ exports.CanvasDomainSearchApi = CanvasDomainSearchApi;
@@ -1,5 +1,6 @@
1
1
  export * from './AccountsApi';
2
2
  export * from './AdminApi';
3
+ export * from './CanvasDomainSearchApi';
3
4
  export * from './ChatAnalysisApi';
4
5
  export * from './ChatsApi';
5
6
  export * from './DailyQuizApi';
@@ -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("./CanvasDomainSearchApi"), exports);
21
22
  __exportStar(require("./ChatAnalysisApi"), exports);
22
23
  __exportStar(require("./ChatsApi"), exports);
23
24
  __exportStar(require("./DailyQuizApi"), exports);
@@ -0,0 +1,32 @@
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 { CanvasDomainSearchDto, CanvasDomainSearchResponse } from '../models/index';
14
+ export interface SearchCanvasDomainRequest {
15
+ xUserId: string;
16
+ canvasDomainSearchDto: CanvasDomainSearchDto;
17
+ }
18
+ /**
19
+ *
20
+ */
21
+ export declare class CanvasDomainSearchApi extends runtime.BaseAPI {
22
+ /**
23
+ * Searches canvas-support for institutions matching the query, then ranks candidates with an LLM. Returns a confident best guess plus alternatives, including a sandbox suggestion when the query looks like a Canvas subdomain.
24
+ * AI-ranked Canvas domain search
25
+ */
26
+ searchCanvasDomainRaw(requestParameters: SearchCanvasDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CanvasDomainSearchResponse>>;
27
+ /**
28
+ * Searches canvas-support for institutions matching the query, then ranks candidates with an LLM. Returns a confident best guess plus alternatives, including a sandbox suggestion when the query looks like a Canvas subdomain.
29
+ * AI-ranked Canvas domain search
30
+ */
31
+ searchCanvasDomain(requestParameters: SearchCanvasDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CanvasDomainSearchResponse>;
32
+ }
@@ -0,0 +1,71 @@
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 { CanvasDomainSearchDtoToJSON, CanvasDomainSearchResponseFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class CanvasDomainSearchApi extends runtime.BaseAPI {
29
+ /**
30
+ * Searches canvas-support for institutions matching the query, then ranks candidates with an LLM. Returns a confident best guess plus alternatives, including a sandbox suggestion when the query looks like a Canvas subdomain.
31
+ * AI-ranked Canvas domain search
32
+ */
33
+ searchCanvasDomainRaw(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 searchCanvasDomain().');
37
+ }
38
+ if (requestParameters['canvasDomainSearchDto'] == null) {
39
+ throw new runtime.RequiredError('canvasDomainSearchDto', 'Required parameter "canvasDomainSearchDto" was null or undefined when calling searchCanvasDomain().');
40
+ }
41
+ const queryParameters = {};
42
+ const headerParameters = {};
43
+ headerParameters['Content-Type'] = 'application/json';
44
+ if (requestParameters['xUserId'] != null) {
45
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
46
+ }
47
+ if (this.configuration && this.configuration.apiKey) {
48
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
49
+ }
50
+ let urlPath = `/api/v1/canvas/domain-search`;
51
+ const response = yield this.request({
52
+ path: urlPath,
53
+ method: 'POST',
54
+ headers: headerParameters,
55
+ query: queryParameters,
56
+ body: CanvasDomainSearchDtoToJSON(requestParameters['canvasDomainSearchDto']),
57
+ }, initOverrides);
58
+ return new runtime.JSONApiResponse(response, (jsonValue) => CanvasDomainSearchResponseFromJSON(jsonValue));
59
+ });
60
+ }
61
+ /**
62
+ * Searches canvas-support for institutions matching the query, then ranks candidates with an LLM. Returns a confident best guess plus alternatives, including a sandbox suggestion when the query looks like a Canvas subdomain.
63
+ * AI-ranked Canvas domain search
64
+ */
65
+ searchCanvasDomain(requestParameters, initOverrides) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ const response = yield this.searchCanvasDomainRaw(requestParameters, initOverrides);
68
+ return yield response.value();
69
+ });
70
+ }
71
+ }
@@ -1,5 +1,6 @@
1
1
  export * from './AccountsApi';
2
2
  export * from './AdminApi';
3
+ export * from './CanvasDomainSearchApi';
3
4
  export * from './ChatAnalysisApi';
4
5
  export * from './ChatsApi';
5
6
  export * from './DailyQuizApi';
@@ -2,6 +2,7 @@
2
2
  /* eslint-disable */
3
3
  export * from './AccountsApi';
4
4
  export * from './AdminApi';
5
+ export * from './CanvasDomainSearchApi';
5
6
  export * from './ChatAnalysisApi';
6
7
  export * from './ChatsApi';
7
8
  export * from './DailyQuizApi';
@@ -0,0 +1,44 @@
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 CanvasDomainMatch
16
+ */
17
+ export interface CanvasDomainMatch {
18
+ /**
19
+ * Human-readable institution name
20
+ * @type {string}
21
+ * @memberof CanvasDomainMatch
22
+ */
23
+ name: string;
24
+ /**
25
+ * Canvas domain (e.g. myschool.instructure.com)
26
+ * @type {string}
27
+ * @memberof CanvasDomainMatch
28
+ */
29
+ domain: string;
30
+ /**
31
+ * Model confidence that this match corresponds to the query
32
+ * @type {number}
33
+ * @memberof CanvasDomainMatch
34
+ */
35
+ confidence: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the CanvasDomainMatch interface.
39
+ */
40
+ export declare function instanceOfCanvasDomainMatch(value: object): value is CanvasDomainMatch;
41
+ export declare function CanvasDomainMatchFromJSON(json: any): CanvasDomainMatch;
42
+ export declare function CanvasDomainMatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): CanvasDomainMatch;
43
+ export declare function CanvasDomainMatchToJSON(json: any): CanvasDomainMatch;
44
+ export declare function CanvasDomainMatchToJSONTyped(value?: CanvasDomainMatch | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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
+ * Check if a given object implements the CanvasDomainMatch interface.
16
+ */
17
+ export function instanceOfCanvasDomainMatch(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ if (!('domain' in value) || value['domain'] === undefined)
21
+ return false;
22
+ if (!('confidence' in value) || value['confidence'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function CanvasDomainMatchFromJSON(json) {
27
+ return CanvasDomainMatchFromJSONTyped(json, false);
28
+ }
29
+ export function CanvasDomainMatchFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'name': json['name'],
35
+ 'domain': json['domain'],
36
+ 'confidence': json['confidence'],
37
+ };
38
+ }
39
+ export function CanvasDomainMatchToJSON(json) {
40
+ return CanvasDomainMatchToJSONTyped(json, false);
41
+ }
42
+ export function CanvasDomainMatchToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'name': value['name'],
48
+ 'domain': value['domain'],
49
+ 'confidence': value['confidence'],
50
+ };
51
+ }
@@ -0,0 +1,32 @@
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 CanvasDomainSearchDto
16
+ */
17
+ export interface CanvasDomainSearchDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CanvasDomainSearchDto
22
+ */
23
+ query: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CanvasDomainSearchDto interface.
27
+ */
28
+ export declare function instanceOfCanvasDomainSearchDto(value: object): value is CanvasDomainSearchDto;
29
+ export declare function CanvasDomainSearchDtoFromJSON(json: any): CanvasDomainSearchDto;
30
+ export declare function CanvasDomainSearchDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CanvasDomainSearchDto;
31
+ export declare function CanvasDomainSearchDtoToJSON(json: any): CanvasDomainSearchDto;
32
+ export declare function CanvasDomainSearchDtoToJSONTyped(value?: CanvasDomainSearchDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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
+ * Check if a given object implements the CanvasDomainSearchDto interface.
16
+ */
17
+ export function instanceOfCanvasDomainSearchDto(value) {
18
+ if (!('query' in value) || value['query'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function CanvasDomainSearchDtoFromJSON(json) {
23
+ return CanvasDomainSearchDtoFromJSONTyped(json, false);
24
+ }
25
+ export function CanvasDomainSearchDtoFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'query': json['query'],
31
+ };
32
+ }
33
+ export function CanvasDomainSearchDtoToJSON(json) {
34
+ return CanvasDomainSearchDtoToJSONTyped(json, false);
35
+ }
36
+ export function CanvasDomainSearchDtoToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'query': value['query'],
42
+ };
43
+ }
@@ -0,0 +1,45 @@
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 type { CanvasDomainMatch } from './CanvasDomainMatch';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CanvasDomainSearchResponse
17
+ */
18
+ export interface CanvasDomainSearchResponse {
19
+ /**
20
+ * Top match when the model's confidence clears the threshold; null otherwise
21
+ * @type {CanvasDomainMatch}
22
+ * @memberof CanvasDomainSearchResponse
23
+ */
24
+ bestGuess: CanvasDomainMatch | null;
25
+ /**
26
+ * Other plausible matches ordered by confidence
27
+ * @type {Array<CanvasDomainMatch>}
28
+ * @memberof CanvasDomainSearchResponse
29
+ */
30
+ alternatives: Array<CanvasDomainMatch>;
31
+ /**
32
+ * Optional model reasoning explaining the ranking
33
+ * @type {string}
34
+ * @memberof CanvasDomainSearchResponse
35
+ */
36
+ reasoning?: string;
37
+ }
38
+ /**
39
+ * Check if a given object implements the CanvasDomainSearchResponse interface.
40
+ */
41
+ export declare function instanceOfCanvasDomainSearchResponse(value: object): value is CanvasDomainSearchResponse;
42
+ export declare function CanvasDomainSearchResponseFromJSON(json: any): CanvasDomainSearchResponse;
43
+ export declare function CanvasDomainSearchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CanvasDomainSearchResponse;
44
+ export declare function CanvasDomainSearchResponseToJSON(json: any): CanvasDomainSearchResponse;
45
+ export declare function CanvasDomainSearchResponseToJSONTyped(value?: CanvasDomainSearchResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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
+ import { CanvasDomainMatchFromJSON, CanvasDomainMatchToJSON, } from './CanvasDomainMatch';
15
+ /**
16
+ * Check if a given object implements the CanvasDomainSearchResponse interface.
17
+ */
18
+ export function instanceOfCanvasDomainSearchResponse(value) {
19
+ if (!('bestGuess' in value) || value['bestGuess'] === undefined)
20
+ return false;
21
+ if (!('alternatives' in value) || value['alternatives'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function CanvasDomainSearchResponseFromJSON(json) {
26
+ return CanvasDomainSearchResponseFromJSONTyped(json, false);
27
+ }
28
+ export function CanvasDomainSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'bestGuess': CanvasDomainMatchFromJSON(json['bestGuess']),
34
+ 'alternatives': (json['alternatives'].map(CanvasDomainMatchFromJSON)),
35
+ 'reasoning': json['reasoning'] == null ? undefined : json['reasoning'],
36
+ };
37
+ }
38
+ export function CanvasDomainSearchResponseToJSON(json) {
39
+ return CanvasDomainSearchResponseToJSONTyped(json, false);
40
+ }
41
+ export function CanvasDomainSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'bestGuess': CanvasDomainMatchToJSON(value['bestGuess']),
47
+ 'alternatives': (value['alternatives'].map(CanvasDomainMatchToJSON)),
48
+ 'reasoning': value['reasoning'],
49
+ };
50
+ }
@@ -13,6 +13,9 @@ export * from './AdminTaxonomyEnrollmentTaxonomy';
13
13
  export * from './AdminTriggerAnalysisResponse';
14
14
  export * from './AdminUpdateChatRequest';
15
15
  export * from './AdminUserEngagement';
16
+ export * from './CanvasDomainMatch';
17
+ export * from './CanvasDomainSearchDto';
18
+ export * from './CanvasDomainSearchResponse';
16
19
  export * from './CanvasKnowledgeAssessmentEntity';
17
20
  export * from './CanvasTaxonomyEntity';
18
21
  export * from './Chat';
@@ -15,6 +15,9 @@ export * from './AdminTaxonomyEnrollmentTaxonomy';
15
15
  export * from './AdminTriggerAnalysisResponse';
16
16
  export * from './AdminUpdateChatRequest';
17
17
  export * from './AdminUserEngagement';
18
+ export * from './CanvasDomainMatch';
19
+ export * from './CanvasDomainSearchDto';
20
+ export * from './CanvasDomainSearchResponse';
18
21
  export * from './CanvasKnowledgeAssessmentEntity';
19
22
  export * from './CanvasTaxonomyEntity';
20
23
  export * from './Chat';
@@ -0,0 +1,44 @@
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 CanvasDomainMatch
16
+ */
17
+ export interface CanvasDomainMatch {
18
+ /**
19
+ * Human-readable institution name
20
+ * @type {string}
21
+ * @memberof CanvasDomainMatch
22
+ */
23
+ name: string;
24
+ /**
25
+ * Canvas domain (e.g. myschool.instructure.com)
26
+ * @type {string}
27
+ * @memberof CanvasDomainMatch
28
+ */
29
+ domain: string;
30
+ /**
31
+ * Model confidence that this match corresponds to the query
32
+ * @type {number}
33
+ * @memberof CanvasDomainMatch
34
+ */
35
+ confidence: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the CanvasDomainMatch interface.
39
+ */
40
+ export declare function instanceOfCanvasDomainMatch(value: object): value is CanvasDomainMatch;
41
+ export declare function CanvasDomainMatchFromJSON(json: any): CanvasDomainMatch;
42
+ export declare function CanvasDomainMatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): CanvasDomainMatch;
43
+ export declare function CanvasDomainMatchToJSON(json: any): CanvasDomainMatch;
44
+ export declare function CanvasDomainMatchToJSONTyped(value?: CanvasDomainMatch | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfCanvasDomainMatch = instanceOfCanvasDomainMatch;
17
+ exports.CanvasDomainMatchFromJSON = CanvasDomainMatchFromJSON;
18
+ exports.CanvasDomainMatchFromJSONTyped = CanvasDomainMatchFromJSONTyped;
19
+ exports.CanvasDomainMatchToJSON = CanvasDomainMatchToJSON;
20
+ exports.CanvasDomainMatchToJSONTyped = CanvasDomainMatchToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CanvasDomainMatch interface.
23
+ */
24
+ function instanceOfCanvasDomainMatch(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('domain' in value) || value['domain'] === undefined)
28
+ return false;
29
+ if (!('confidence' in value) || value['confidence'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function CanvasDomainMatchFromJSON(json) {
34
+ return CanvasDomainMatchFromJSONTyped(json, false);
35
+ }
36
+ function CanvasDomainMatchFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'name': json['name'],
42
+ 'domain': json['domain'],
43
+ 'confidence': json['confidence'],
44
+ };
45
+ }
46
+ function CanvasDomainMatchToJSON(json) {
47
+ return CanvasDomainMatchToJSONTyped(json, false);
48
+ }
49
+ function CanvasDomainMatchToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'name': value['name'],
55
+ 'domain': value['domain'],
56
+ 'confidence': value['confidence'],
57
+ };
58
+ }
@@ -0,0 +1,32 @@
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 CanvasDomainSearchDto
16
+ */
17
+ export interface CanvasDomainSearchDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CanvasDomainSearchDto
22
+ */
23
+ query: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CanvasDomainSearchDto interface.
27
+ */
28
+ export declare function instanceOfCanvasDomainSearchDto(value: object): value is CanvasDomainSearchDto;
29
+ export declare function CanvasDomainSearchDtoFromJSON(json: any): CanvasDomainSearchDto;
30
+ export declare function CanvasDomainSearchDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CanvasDomainSearchDto;
31
+ export declare function CanvasDomainSearchDtoToJSON(json: any): CanvasDomainSearchDto;
32
+ export declare function CanvasDomainSearchDtoToJSONTyped(value?: CanvasDomainSearchDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfCanvasDomainSearchDto = instanceOfCanvasDomainSearchDto;
17
+ exports.CanvasDomainSearchDtoFromJSON = CanvasDomainSearchDtoFromJSON;
18
+ exports.CanvasDomainSearchDtoFromJSONTyped = CanvasDomainSearchDtoFromJSONTyped;
19
+ exports.CanvasDomainSearchDtoToJSON = CanvasDomainSearchDtoToJSON;
20
+ exports.CanvasDomainSearchDtoToJSONTyped = CanvasDomainSearchDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CanvasDomainSearchDto interface.
23
+ */
24
+ function instanceOfCanvasDomainSearchDto(value) {
25
+ if (!('query' in value) || value['query'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CanvasDomainSearchDtoFromJSON(json) {
30
+ return CanvasDomainSearchDtoFromJSONTyped(json, false);
31
+ }
32
+ function CanvasDomainSearchDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'query': json['query'],
38
+ };
39
+ }
40
+ function CanvasDomainSearchDtoToJSON(json) {
41
+ return CanvasDomainSearchDtoToJSONTyped(json, false);
42
+ }
43
+ function CanvasDomainSearchDtoToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'query': value['query'],
49
+ };
50
+ }
@@ -0,0 +1,45 @@
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 type { CanvasDomainMatch } from './CanvasDomainMatch';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CanvasDomainSearchResponse
17
+ */
18
+ export interface CanvasDomainSearchResponse {
19
+ /**
20
+ * Top match when the model's confidence clears the threshold; null otherwise
21
+ * @type {CanvasDomainMatch}
22
+ * @memberof CanvasDomainSearchResponse
23
+ */
24
+ bestGuess: CanvasDomainMatch | null;
25
+ /**
26
+ * Other plausible matches ordered by confidence
27
+ * @type {Array<CanvasDomainMatch>}
28
+ * @memberof CanvasDomainSearchResponse
29
+ */
30
+ alternatives: Array<CanvasDomainMatch>;
31
+ /**
32
+ * Optional model reasoning explaining the ranking
33
+ * @type {string}
34
+ * @memberof CanvasDomainSearchResponse
35
+ */
36
+ reasoning?: string;
37
+ }
38
+ /**
39
+ * Check if a given object implements the CanvasDomainSearchResponse interface.
40
+ */
41
+ export declare function instanceOfCanvasDomainSearchResponse(value: object): value is CanvasDomainSearchResponse;
42
+ export declare function CanvasDomainSearchResponseFromJSON(json: any): CanvasDomainSearchResponse;
43
+ export declare function CanvasDomainSearchResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CanvasDomainSearchResponse;
44
+ export declare function CanvasDomainSearchResponseToJSON(json: any): CanvasDomainSearchResponse;
45
+ export declare function CanvasDomainSearchResponseToJSONTyped(value?: CanvasDomainSearchResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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.instanceOfCanvasDomainSearchResponse = instanceOfCanvasDomainSearchResponse;
17
+ exports.CanvasDomainSearchResponseFromJSON = CanvasDomainSearchResponseFromJSON;
18
+ exports.CanvasDomainSearchResponseFromJSONTyped = CanvasDomainSearchResponseFromJSONTyped;
19
+ exports.CanvasDomainSearchResponseToJSON = CanvasDomainSearchResponseToJSON;
20
+ exports.CanvasDomainSearchResponseToJSONTyped = CanvasDomainSearchResponseToJSONTyped;
21
+ const CanvasDomainMatch_1 = require("./CanvasDomainMatch");
22
+ /**
23
+ * Check if a given object implements the CanvasDomainSearchResponse interface.
24
+ */
25
+ function instanceOfCanvasDomainSearchResponse(value) {
26
+ if (!('bestGuess' in value) || value['bestGuess'] === undefined)
27
+ return false;
28
+ if (!('alternatives' in value) || value['alternatives'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function CanvasDomainSearchResponseFromJSON(json) {
33
+ return CanvasDomainSearchResponseFromJSONTyped(json, false);
34
+ }
35
+ function CanvasDomainSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'bestGuess': (0, CanvasDomainMatch_1.CanvasDomainMatchFromJSON)(json['bestGuess']),
41
+ 'alternatives': (json['alternatives'].map(CanvasDomainMatch_1.CanvasDomainMatchFromJSON)),
42
+ 'reasoning': json['reasoning'] == null ? undefined : json['reasoning'],
43
+ };
44
+ }
45
+ function CanvasDomainSearchResponseToJSON(json) {
46
+ return CanvasDomainSearchResponseToJSONTyped(json, false);
47
+ }
48
+ function CanvasDomainSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'bestGuess': (0, CanvasDomainMatch_1.CanvasDomainMatchToJSON)(value['bestGuess']),
54
+ 'alternatives': (value['alternatives'].map(CanvasDomainMatch_1.CanvasDomainMatchToJSON)),
55
+ 'reasoning': value['reasoning'],
56
+ };
57
+ }
@@ -13,6 +13,9 @@ export * from './AdminTaxonomyEnrollmentTaxonomy';
13
13
  export * from './AdminTriggerAnalysisResponse';
14
14
  export * from './AdminUpdateChatRequest';
15
15
  export * from './AdminUserEngagement';
16
+ export * from './CanvasDomainMatch';
17
+ export * from './CanvasDomainSearchDto';
18
+ export * from './CanvasDomainSearchResponse';
16
19
  export * from './CanvasKnowledgeAssessmentEntity';
17
20
  export * from './CanvasTaxonomyEntity';
18
21
  export * from './Chat';
@@ -31,6 +31,9 @@ __exportStar(require("./AdminTaxonomyEnrollmentTaxonomy"), exports);
31
31
  __exportStar(require("./AdminTriggerAnalysisResponse"), exports);
32
32
  __exportStar(require("./AdminUpdateChatRequest"), exports);
33
33
  __exportStar(require("./AdminUserEngagement"), exports);
34
+ __exportStar(require("./CanvasDomainMatch"), exports);
35
+ __exportStar(require("./CanvasDomainSearchDto"), exports);
36
+ __exportStar(require("./CanvasDomainSearchResponse"), exports);
34
37
  __exportStar(require("./CanvasKnowledgeAssessmentEntity"), exports);
35
38
  __exportStar(require("./CanvasTaxonomyEntity"), exports);
36
39
  __exportStar(require("./Chat"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@instructure/athena-api-client",
3
3
  "private": false,
4
- "version": "2.23.3",
4
+ "version": "2.23.5",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {