@instructure/athena-api-client 1.0.10 → 1.0.12
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 +36 -7
- package/dist/apis/AccountsApi.d.ts +13 -5
- package/dist/apis/AccountsApi.js +38 -4
- package/dist/apis/ChatAnalysisApi.d.ts +32 -0
- package/dist/apis/ChatAnalysisApi.js +74 -0
- package/dist/apis/ChatsApi.d.ts +8 -7
- package/dist/apis/ChatsApi.js +22 -13
- package/dist/apis/FeatureOverridesApi.d.ts +51 -0
- package/dist/apis/FeatureOverridesApi.js +131 -0
- package/dist/apis/FeaturesApi.d.ts +71 -0
- package/dist/apis/FeaturesApi.js +199 -0
- package/dist/apis/HealthApi.d.ts +3 -2
- package/dist/apis/HealthApi.js +4 -2
- package/dist/apis/LearningDaysApi.d.ts +1 -1
- package/dist/apis/LearningDaysApi.js +3 -3
- package/dist/apis/MessagesApi.d.ts +10 -10
- package/dist/apis/MessagesApi.js +18 -18
- package/dist/apis/PlansApi.d.ts +71 -0
- package/dist/apis/PlansApi.js +199 -0
- package/dist/apis/QuizSessionsApi.d.ts +4 -4
- package/dist/apis/QuizSessionsApi.js +12 -12
- package/dist/apis/QuizzesApi.d.ts +1 -1
- package/dist/apis/QuizzesApi.js +3 -3
- package/dist/apis/ServiceTokensApi.d.ts +0 -10
- package/dist/apis/ServiceTokensApi.js +0 -10
- package/dist/apis/TagsApi.d.ts +0 -2
- package/dist/apis/TagsApi.js +0 -2
- package/dist/apis/UserContextApi.d.ts +45 -0
- package/dist/apis/UserContextApi.js +112 -0
- package/dist/apis/VotesApi.d.ts +5 -5
- package/dist/apis/VotesApi.js +7 -7
- package/dist/apis/index.d.ts +5 -0
- package/dist/apis/index.js +5 -0
- package/dist/esm/apis/AccountsApi.d.ts +13 -5
- package/dist/esm/apis/AccountsApi.js +39 -5
- package/dist/esm/apis/ChatAnalysisApi.d.ts +32 -0
- package/dist/esm/apis/ChatAnalysisApi.js +70 -0
- package/dist/esm/apis/ChatsApi.d.ts +8 -7
- package/dist/esm/apis/ChatsApi.js +22 -13
- package/dist/esm/apis/FeatureOverridesApi.d.ts +51 -0
- package/dist/esm/apis/FeatureOverridesApi.js +127 -0
- package/dist/esm/apis/FeaturesApi.d.ts +71 -0
- package/dist/esm/apis/FeaturesApi.js +195 -0
- package/dist/esm/apis/HealthApi.d.ts +3 -2
- package/dist/esm/apis/HealthApi.js +4 -2
- package/dist/esm/apis/LearningDaysApi.d.ts +1 -1
- package/dist/esm/apis/LearningDaysApi.js +3 -3
- package/dist/esm/apis/MessagesApi.d.ts +10 -10
- package/dist/esm/apis/MessagesApi.js +19 -19
- package/dist/esm/apis/PlansApi.d.ts +71 -0
- package/dist/esm/apis/PlansApi.js +195 -0
- package/dist/esm/apis/QuizSessionsApi.d.ts +4 -4
- package/dist/esm/apis/QuizSessionsApi.js +12 -12
- package/dist/esm/apis/QuizzesApi.d.ts +1 -1
- package/dist/esm/apis/QuizzesApi.js +3 -3
- package/dist/esm/apis/ServiceTokensApi.d.ts +0 -10
- package/dist/esm/apis/ServiceTokensApi.js +0 -10
- package/dist/esm/apis/TagsApi.d.ts +0 -2
- package/dist/esm/apis/TagsApi.js +0 -2
- package/dist/esm/apis/UserContextApi.d.ts +45 -0
- package/dist/esm/apis/UserContextApi.js +108 -0
- package/dist/esm/apis/VotesApi.d.ts +5 -5
- package/dist/esm/apis/VotesApi.js +8 -8
- package/dist/esm/apis/index.d.ts +5 -0
- package/dist/esm/apis/index.js +5 -0
- package/dist/esm/models/ChatAnalysis.d.ts +68 -0
- package/dist/esm/models/ChatAnalysis.js +67 -0
- package/dist/esm/models/ChatRequest.d.ts +1 -1
- package/dist/esm/models/ChatRequest.js +3 -1
- package/dist/esm/models/CreateFeatureDto.d.ts +44 -0
- package/dist/esm/models/CreateFeatureDto.js +49 -0
- package/dist/esm/models/CreateMessagesRequestMessagesInner.d.ts +8 -4
- package/dist/esm/models/CreateMessagesResponse.d.ts +33 -0
- package/dist/esm/models/CreateMessagesResponse.js +44 -0
- package/dist/esm/models/CreatePlanDto.d.ts +38 -0
- package/dist/esm/models/CreatePlanDto.js +47 -0
- package/dist/esm/models/FeatureEntity.d.ts +62 -0
- package/dist/esm/models/FeatureEntity.js +61 -0
- package/dist/esm/models/FeatureOverrideEntity.d.ts +62 -0
- package/dist/esm/models/FeatureOverrideEntity.js +63 -0
- package/dist/esm/models/HealthCheck.d.ts +1 -8
- package/dist/esm/models/HealthCheck.js +0 -6
- package/dist/esm/models/LearningMoment.d.ts +3 -3
- package/dist/esm/models/LearningMoment.js +9 -3
- package/dist/esm/models/LearningStreakResponse.d.ts +2 -2
- package/dist/esm/models/LearningStreakResponse.js +6 -2
- package/dist/esm/models/Message.d.ts +6 -6
- package/dist/esm/models/Message.js +6 -6
- package/dist/esm/models/MessageAttachment.d.ts +61 -0
- package/dist/esm/models/MessageAttachment.js +61 -0
- package/dist/esm/models/MessagePart.d.ts +38 -0
- package/dist/esm/models/MessagePart.js +43 -0
- package/dist/esm/models/PaginatedMessages.d.ts +1 -1
- package/dist/esm/models/Plan.d.ts +56 -0
- package/dist/esm/models/Plan.js +59 -0
- package/dist/esm/models/QuizQuestion.d.ts +4 -4
- package/dist/esm/models/QuizQuestion.js +12 -4
- package/dist/esm/models/QuizResponse.d.ts +2 -2
- package/dist/esm/models/QuizResponse.js +6 -2
- package/dist/esm/models/QuizSessionSummary.d.ts +3 -3
- package/dist/esm/models/QuizSessionSummary.js +3 -3
- package/dist/esm/models/Score.d.ts +47 -0
- package/dist/esm/models/Score.js +53 -0
- package/dist/esm/models/UpdateAccountDto.d.ts +32 -0
- package/dist/esm/models/UpdateAccountDto.js +43 -0
- package/dist/esm/models/UpdateFeatureDto.d.ts +44 -0
- package/dist/esm/models/UpdateFeatureDto.js +45 -0
- package/dist/esm/models/UpdatePlanDto.d.ts +38 -0
- package/dist/esm/models/UpdatePlanDto.js +43 -0
- package/dist/esm/models/UploadUrlFile.d.ts +56 -0
- package/dist/esm/models/UploadUrlFile.js +59 -0
- package/dist/esm/models/UploadUrlResponse.d.ts +3 -3
- package/dist/esm/models/UploadUrlResponse.js +3 -3
- package/dist/esm/models/UpsertOverrideDto.d.ts +44 -0
- package/dist/esm/models/UpsertOverrideDto.js +51 -0
- package/dist/esm/models/UpsertUserContextRequest.d.ts +56 -0
- package/dist/esm/models/UpsertUserContextRequest.js +49 -0
- package/dist/esm/models/UserContext.d.ts +80 -0
- package/dist/esm/models/UserContext.js +75 -0
- package/dist/esm/models/VotesResponse.d.ts +33 -0
- package/dist/esm/models/VotesResponse.js +44 -0
- package/dist/esm/models/index.d.ts +19 -7
- package/dist/esm/models/index.js +19 -7
- package/dist/models/ChatAnalysis.d.ts +68 -0
- package/dist/models/ChatAnalysis.js +74 -0
- package/dist/models/ChatRequest.d.ts +1 -1
- package/dist/models/ChatRequest.js +3 -1
- package/dist/models/CreateFeatureDto.d.ts +44 -0
- package/dist/models/CreateFeatureDto.js +56 -0
- package/dist/models/CreateMessagesRequestMessagesInner.d.ts +8 -4
- package/dist/models/CreateMessagesResponse.d.ts +33 -0
- package/dist/models/CreateMessagesResponse.js +51 -0
- package/dist/models/CreatePlanDto.d.ts +38 -0
- package/dist/models/CreatePlanDto.js +54 -0
- package/dist/models/FeatureEntity.d.ts +62 -0
- package/dist/models/FeatureEntity.js +68 -0
- package/dist/models/FeatureOverrideEntity.d.ts +62 -0
- package/dist/models/FeatureOverrideEntity.js +70 -0
- package/dist/models/HealthCheck.d.ts +1 -8
- package/dist/models/HealthCheck.js +0 -7
- package/dist/models/LearningMoment.d.ts +3 -3
- package/dist/models/LearningMoment.js +9 -3
- package/dist/models/LearningStreakResponse.d.ts +2 -2
- package/dist/models/LearningStreakResponse.js +6 -2
- package/dist/models/Message.d.ts +6 -6
- package/dist/models/Message.js +6 -6
- package/dist/models/MessageAttachment.d.ts +61 -0
- package/dist/models/MessageAttachment.js +69 -0
- package/dist/models/MessagePart.d.ts +38 -0
- package/dist/models/MessagePart.js +50 -0
- package/dist/models/PaginatedMessages.d.ts +1 -1
- package/dist/models/Plan.d.ts +56 -0
- package/dist/models/Plan.js +66 -0
- package/dist/models/QuizQuestion.d.ts +4 -4
- package/dist/models/QuizQuestion.js +12 -4
- package/dist/models/QuizResponse.d.ts +2 -2
- package/dist/models/QuizResponse.js +6 -2
- package/dist/models/QuizSessionSummary.d.ts +3 -3
- package/dist/models/QuizSessionSummary.js +3 -3
- package/dist/models/Score.d.ts +47 -0
- package/dist/models/Score.js +60 -0
- package/dist/models/UpdateAccountDto.d.ts +32 -0
- package/dist/models/UpdateAccountDto.js +50 -0
- package/dist/models/UpdateFeatureDto.d.ts +44 -0
- package/dist/models/UpdateFeatureDto.js +52 -0
- package/dist/models/UpdatePlanDto.d.ts +38 -0
- package/dist/models/UpdatePlanDto.js +50 -0
- package/dist/models/UploadUrlFile.d.ts +56 -0
- package/dist/models/UploadUrlFile.js +66 -0
- package/dist/models/UploadUrlResponse.d.ts +3 -3
- package/dist/models/UploadUrlResponse.js +3 -3
- package/dist/models/UpsertOverrideDto.d.ts +44 -0
- package/dist/models/UpsertOverrideDto.js +58 -0
- package/dist/models/UpsertUserContextRequest.d.ts +56 -0
- package/dist/models/UpsertUserContextRequest.js +56 -0
- package/dist/models/UserContext.d.ts +80 -0
- package/dist/models/UserContext.js +82 -0
- package/dist/models/VotesResponse.d.ts +33 -0
- package/dist/models/VotesResponse.js +51 -0
- package/dist/models/index.d.ts +19 -7
- package/dist/models/index.js +19 -7
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import {
|
|
24
|
+
import { UpsertVoteRequestToJSON, VoteFromJSON, VotesResponseFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -32,12 +32,12 @@ export class VotesApi extends runtime.BaseAPI {
|
|
|
32
32
|
*/
|
|
33
33
|
listChatVotesRaw(requestParameters, initOverrides) {
|
|
34
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 listChatVotes().');
|
|
37
|
-
}
|
|
38
35
|
if (requestParameters['chatId'] == null) {
|
|
39
36
|
throw new runtime.RequiredError('chatId', 'Required parameter "chatId" was null or undefined when calling listChatVotes().');
|
|
40
37
|
}
|
|
38
|
+
if (requestParameters['xUserId'] == null) {
|
|
39
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listChatVotes().');
|
|
40
|
+
}
|
|
41
41
|
const queryParameters = {};
|
|
42
42
|
const headerParameters = {};
|
|
43
43
|
if (requestParameters['xUserId'] != null) {
|
|
@@ -54,7 +54,7 @@ export class VotesApi extends runtime.BaseAPI {
|
|
|
54
54
|
headers: headerParameters,
|
|
55
55
|
query: queryParameters,
|
|
56
56
|
}, initOverrides);
|
|
57
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
57
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VotesResponseFromJSON(jsonValue));
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
@@ -73,12 +73,12 @@ export class VotesApi extends runtime.BaseAPI {
|
|
|
73
73
|
*/
|
|
74
74
|
upsertChatVoteRaw(requestParameters, initOverrides) {
|
|
75
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 upsertChatVote().');
|
|
78
|
-
}
|
|
79
76
|
if (requestParameters['chatId'] == null) {
|
|
80
77
|
throw new runtime.RequiredError('chatId', 'Required parameter "chatId" was null or undefined when calling upsertChatVote().');
|
|
81
78
|
}
|
|
79
|
+
if (requestParameters['xUserId'] == null) {
|
|
80
|
+
throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling upsertChatVote().');
|
|
81
|
+
}
|
|
82
82
|
if (requestParameters['upsertVoteRequest'] == null) {
|
|
83
83
|
throw new runtime.RequiredError('upsertVoteRequest', 'Required parameter "upsertVoteRequest" was null or undefined when calling upsertChatVote().');
|
|
84
84
|
}
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
export * from './AccountsApi';
|
|
2
|
+
export * from './ChatAnalysisApi';
|
|
2
3
|
export * from './ChatsApi';
|
|
4
|
+
export * from './FeatureOverridesApi';
|
|
5
|
+
export * from './FeaturesApi';
|
|
3
6
|
export * from './FilesApi';
|
|
4
7
|
export * from './HealthApi';
|
|
5
8
|
export * from './LearningDaysApi';
|
|
6
9
|
export * from './LearningMomentsApi';
|
|
7
10
|
export * from './LearningStreakApi';
|
|
8
11
|
export * from './MessagesApi';
|
|
12
|
+
export * from './PlansApi';
|
|
9
13
|
export * from './QuizSessionsApi';
|
|
10
14
|
export * from './QuizzesApi';
|
|
11
15
|
export * from './ServiceTokensApi';
|
|
12
16
|
export * from './TagsApi';
|
|
17
|
+
export * from './UserContextApi';
|
|
13
18
|
export * from './VotesApi';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AccountsApi';
|
|
4
|
+
export * from './ChatAnalysisApi';
|
|
4
5
|
export * from './ChatsApi';
|
|
6
|
+
export * from './FeatureOverridesApi';
|
|
7
|
+
export * from './FeaturesApi';
|
|
5
8
|
export * from './FilesApi';
|
|
6
9
|
export * from './HealthApi';
|
|
7
10
|
export * from './LearningDaysApi';
|
|
8
11
|
export * from './LearningMomentsApi';
|
|
9
12
|
export * from './LearningStreakApi';
|
|
10
13
|
export * from './MessagesApi';
|
|
14
|
+
export * from './PlansApi';
|
|
11
15
|
export * from './QuizSessionsApi';
|
|
12
16
|
export * from './QuizzesApi';
|
|
13
17
|
export * from './ServiceTokensApi';
|
|
14
18
|
export * from './TagsApi';
|
|
19
|
+
export * from './UserContextApi';
|
|
15
20
|
export * from './VotesApi';
|
|
@@ -0,0 +1,68 @@
|
|
|
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 ChatAnalysis
|
|
16
|
+
*/
|
|
17
|
+
export interface ChatAnalysis {
|
|
18
|
+
/**
|
|
19
|
+
* Chat identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ChatAnalysis
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Chat title
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ChatAnalysis
|
|
28
|
+
*/
|
|
29
|
+
title: string;
|
|
30
|
+
/**
|
|
31
|
+
* AI-generated summary of the chat
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ChatAnalysis
|
|
34
|
+
*/
|
|
35
|
+
summary: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Inferred goal of the chat
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ChatAnalysis
|
|
40
|
+
*/
|
|
41
|
+
goal: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the goal was achieved
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof ChatAnalysis
|
|
46
|
+
*/
|
|
47
|
+
goalAchieved: boolean | null;
|
|
48
|
+
/**
|
|
49
|
+
* Subject name associated with the chat
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ChatAnalysis
|
|
52
|
+
*/
|
|
53
|
+
subject: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* Concept names extracted from the chat
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof ChatAnalysis
|
|
58
|
+
*/
|
|
59
|
+
concepts: Array<string>;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the ChatAnalysis interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfChatAnalysis(value: object): value is ChatAnalysis;
|
|
65
|
+
export declare function ChatAnalysisFromJSON(json: any): ChatAnalysis;
|
|
66
|
+
export declare function ChatAnalysisFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatAnalysis;
|
|
67
|
+
export declare function ChatAnalysisToJSON(json: any): ChatAnalysis;
|
|
68
|
+
export declare function ChatAnalysisToJSONTyped(value?: ChatAnalysis | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 ChatAnalysis interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfChatAnalysis(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('summary' in value) || value['summary'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('goal' in value) || value['goal'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('goalAchieved' in value) || value['goalAchieved'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('subject' in value) || value['subject'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('concepts' in value) || value['concepts'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function ChatAnalysisFromJSON(json) {
|
|
35
|
+
return ChatAnalysisFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ChatAnalysisFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'title': json['title'],
|
|
44
|
+
'summary': json['summary'],
|
|
45
|
+
'goal': json['goal'],
|
|
46
|
+
'goalAchieved': json['goalAchieved'],
|
|
47
|
+
'subject': json['subject'],
|
|
48
|
+
'concepts': json['concepts'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function ChatAnalysisToJSON(json) {
|
|
52
|
+
return ChatAnalysisToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function ChatAnalysisToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': value['id'],
|
|
60
|
+
'title': value['title'],
|
|
61
|
+
'summary': value['summary'],
|
|
62
|
+
'goal': value['goal'],
|
|
63
|
+
'goalAchieved': value['goalAchieved'],
|
|
64
|
+
'subject': value['subject'],
|
|
65
|
+
'concepts': value['concepts'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -18,6 +18,8 @@ import { ChatRequestAttachmentsInnerFromJSON, ChatRequestAttachmentsInnerToJSON,
|
|
|
18
18
|
export function instanceOfChatRequest(value) {
|
|
19
19
|
if (!('message' in value) || value['message'] === undefined)
|
|
20
20
|
return false;
|
|
21
|
+
if (!('chatId' in value) || value['chatId'] === undefined)
|
|
22
|
+
return false;
|
|
21
23
|
return true;
|
|
22
24
|
}
|
|
23
25
|
export function ChatRequestFromJSON(json) {
|
|
@@ -29,7 +31,7 @@ export function ChatRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
31
|
}
|
|
30
32
|
return {
|
|
31
33
|
'message': json['message'],
|
|
32
|
-
'chatId': json['chatId']
|
|
34
|
+
'chatId': json['chatId'],
|
|
33
35
|
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(ChatRequestAttachmentsInnerFromJSON)),
|
|
34
36
|
};
|
|
35
37
|
}
|
|
@@ -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 CreateFeatureDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateFeatureDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateFeatureDto
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateFeatureDto
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateFeatureDto
|
|
34
|
+
*/
|
|
35
|
+
planId: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CreateFeatureDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfCreateFeatureDto(value: object): value is CreateFeatureDto;
|
|
41
|
+
export declare function CreateFeatureDtoFromJSON(json: any): CreateFeatureDto;
|
|
42
|
+
export declare function CreateFeatureDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFeatureDto;
|
|
43
|
+
export declare function CreateFeatureDtoToJSON(json: any): CreateFeatureDto;
|
|
44
|
+
export declare function CreateFeatureDtoToJSONTyped(value?: CreateFeatureDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 CreateFeatureDto interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateFeatureDto(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('planId' in value) || value['planId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function CreateFeatureDtoFromJSON(json) {
|
|
25
|
+
return CreateFeatureDtoFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function CreateFeatureDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'name': json['name'],
|
|
33
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
34
|
+
'planId': json['planId'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function CreateFeatureDtoToJSON(json) {
|
|
38
|
+
return CreateFeatureDtoToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function CreateFeatureDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'name': value['name'],
|
|
46
|
+
'description': value['description'],
|
|
47
|
+
'planId': value['planId'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -29,16 +29,20 @@ export interface CreateMessagesRequestMessagesInner {
|
|
|
29
29
|
role: CreateMessagesRequestMessagesInnerRoleEnum;
|
|
30
30
|
/**
|
|
31
31
|
* Message content parts
|
|
32
|
-
* @type {Array<
|
|
32
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
33
33
|
* @memberof CreateMessagesRequestMessagesInner
|
|
34
34
|
*/
|
|
35
|
-
parts: Array<
|
|
35
|
+
parts: Array<{
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
}>;
|
|
36
38
|
/**
|
|
37
39
|
* File attachments
|
|
38
|
-
* @type {Array<
|
|
40
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
39
41
|
* @memberof CreateMessagesRequestMessagesInner
|
|
40
42
|
*/
|
|
41
|
-
attachments?: Array<
|
|
43
|
+
attachments?: Array<{
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
}>;
|
|
42
46
|
/**
|
|
43
47
|
* Message creation timestamp
|
|
44
48
|
* @type {Date}
|
|
@@ -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 type { Message } from './Message';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateMessagesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateMessagesResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<Message>}
|
|
22
|
+
* @memberof CreateMessagesResponse
|
|
23
|
+
*/
|
|
24
|
+
data: Array<Message>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CreateMessagesResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCreateMessagesResponse(value: object): value is CreateMessagesResponse;
|
|
30
|
+
export declare function CreateMessagesResponseFromJSON(json: any): CreateMessagesResponse;
|
|
31
|
+
export declare function CreateMessagesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMessagesResponse;
|
|
32
|
+
export declare function CreateMessagesResponseToJSON(json: any): CreateMessagesResponse;
|
|
33
|
+
export declare function CreateMessagesResponseToJSONTyped(value?: CreateMessagesResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { MessageFromJSON, MessageToJSON, } from './Message';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the CreateMessagesResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfCreateMessagesResponse(value) {
|
|
19
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function CreateMessagesResponseFromJSON(json) {
|
|
24
|
+
return CreateMessagesResponseFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function CreateMessagesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'data': (json['data'].map(MessageFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function CreateMessagesResponseToJSON(json) {
|
|
35
|
+
return CreateMessagesResponseToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function CreateMessagesResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'data': (value['data'].map(MessageToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 CreatePlanDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CreatePlanDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreatePlanDto
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CreatePlanDto
|
|
28
|
+
*/
|
|
29
|
+
rank: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreatePlanDto interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreatePlanDto(value: object): value is CreatePlanDto;
|
|
35
|
+
export declare function CreatePlanDtoFromJSON(json: any): CreatePlanDto;
|
|
36
|
+
export declare function CreatePlanDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePlanDto;
|
|
37
|
+
export declare function CreatePlanDtoToJSON(json: any): CreatePlanDto;
|
|
38
|
+
export declare function CreatePlanDtoToJSONTyped(value?: CreatePlanDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 CreatePlanDto interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreatePlanDto(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('rank' in value) || value['rank'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function CreatePlanDtoFromJSON(json) {
|
|
25
|
+
return CreatePlanDtoFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function CreatePlanDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'name': json['name'],
|
|
33
|
+
'rank': json['rank'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function CreatePlanDtoToJSON(json) {
|
|
37
|
+
return CreatePlanDtoToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function CreatePlanDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': value['name'],
|
|
45
|
+
'rank': value['rank'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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 FeatureEntity
|
|
16
|
+
*/
|
|
17
|
+
export interface FeatureEntity {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FeatureEntity
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Feature name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FeatureEntity
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Feature description
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FeatureEntity
|
|
34
|
+
*/
|
|
35
|
+
description?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* ID of the plan this feature belongs to
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof FeatureEntity
|
|
40
|
+
*/
|
|
41
|
+
planId: string;
|
|
42
|
+
/**
|
|
43
|
+
* Creation timestamp
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof FeatureEntity
|
|
46
|
+
*/
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
/**
|
|
49
|
+
* Last update timestamp
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof FeatureEntity
|
|
52
|
+
*/
|
|
53
|
+
updatedAt: Date;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the FeatureEntity interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfFeatureEntity(value: object): value is FeatureEntity;
|
|
59
|
+
export declare function FeatureEntityFromJSON(json: any): FeatureEntity;
|
|
60
|
+
export declare function FeatureEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureEntity;
|
|
61
|
+
export declare function FeatureEntityToJSON(json: any): FeatureEntity;
|
|
62
|
+
export declare function FeatureEntityToJSONTyped(value?: FeatureEntity | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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 FeatureEntity interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfFeatureEntity(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('planId' in value) || value['planId'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function FeatureEntityFromJSON(json) {
|
|
31
|
+
return FeatureEntityFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function FeatureEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'id': json['id'],
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
41
|
+
'planId': json['planId'],
|
|
42
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
43
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function FeatureEntityToJSON(json) {
|
|
47
|
+
return FeatureEntityToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function FeatureEntityToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'description': value['description'],
|
|
57
|
+
'planId': value['planId'],
|
|
58
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
59
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
60
|
+
};
|
|
61
|
+
}
|