@instructure/athena-api-client 1.0.3 → 1.0.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 +9 -0
- package/dist/apis/ChatsApi.d.ts +1 -0
- package/dist/apis/ChatsApi.js +3 -0
- package/dist/apis/FilesApi.d.ts +32 -0
- package/dist/apis/FilesApi.js +75 -0
- package/dist/apis/LearningStreakApi.d.ts +31 -0
- package/dist/apis/LearningStreakApi.js +70 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/ChatsApi.d.ts +1 -0
- package/dist/esm/apis/ChatsApi.js +3 -0
- package/dist/esm/apis/FilesApi.d.ts +32 -0
- package/dist/esm/apis/FilesApi.js +71 -0
- package/dist/esm/apis/LearningStreakApi.d.ts +31 -0
- package/dist/esm/apis/LearningStreakApi.js +66 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/ChatRequest.d.ts +7 -0
- package/dist/esm/models/ChatRequest.js +3 -0
- package/dist/esm/models/ChatRequestAttachmentsInner.d.ts +49 -0
- package/dist/esm/models/ChatRequestAttachmentsInner.js +57 -0
- package/dist/esm/models/CreateChatRequest.d.ts +26 -0
- package/dist/esm/models/CreateChatRequest.js +13 -0
- package/dist/esm/models/LearningStreakResponse.d.ts +74 -0
- package/dist/esm/models/LearningStreakResponse.js +67 -0
- package/dist/esm/models/Message.d.ts +4 -3
- package/dist/esm/models/Message.js +3 -2
- package/dist/esm/models/MessageAttachmentsInner.d.ts +55 -0
- package/dist/esm/models/MessageAttachmentsInner.js +59 -0
- package/dist/esm/models/UpdateChatRequest.d.ts +20 -0
- package/dist/esm/models/UpdateChatRequest.js +11 -0
- package/dist/esm/models/UploadUrlRequest.d.ts +39 -0
- package/dist/esm/models/UploadUrlRequest.js +48 -0
- package/dist/esm/models/UploadUrlRequestFilesInner.d.ts +49 -0
- package/dist/esm/models/UploadUrlRequestFilesInner.js +57 -0
- package/dist/esm/models/UploadUrlResponse.d.ts +33 -0
- package/dist/esm/models/UploadUrlResponse.js +44 -0
- package/dist/esm/models/UploadUrlResponseFilesInner.d.ts +56 -0
- package/dist/esm/models/UploadUrlResponseFilesInner.js +59 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/ChatRequest.d.ts +7 -0
- package/dist/models/ChatRequest.js +3 -0
- package/dist/models/ChatRequestAttachmentsInner.d.ts +49 -0
- package/dist/models/ChatRequestAttachmentsInner.js +65 -0
- package/dist/models/CreateChatRequest.d.ts +26 -0
- package/dist/models/CreateChatRequest.js +14 -0
- package/dist/models/LearningStreakResponse.d.ts +74 -0
- package/dist/models/LearningStreakResponse.js +74 -0
- package/dist/models/Message.d.ts +4 -3
- package/dist/models/Message.js +3 -2
- package/dist/models/MessageAttachmentsInner.d.ts +55 -0
- package/dist/models/MessageAttachmentsInner.js +67 -0
- package/dist/models/UpdateChatRequest.d.ts +20 -0
- package/dist/models/UpdateChatRequest.js +12 -0
- package/dist/models/UploadUrlRequest.d.ts +39 -0
- package/dist/models/UploadUrlRequest.js +55 -0
- package/dist/models/UploadUrlRequestFilesInner.d.ts +49 -0
- package/dist/models/UploadUrlRequestFilesInner.js +65 -0
- package/dist/models/UploadUrlResponse.d.ts +33 -0
- package/dist/models/UploadUrlResponse.js +51 -0
- package/dist/models/UploadUrlResponseFilesInner.d.ts +56 -0
- package/dist/models/UploadUrlResponseFilesInner.js +66 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +28 -28
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const UploadUrlRequestFilesInnerMimeTypeEnum = {
|
|
18
|
+
ImageJpeg: 'image/jpeg',
|
|
19
|
+
ImageJpg: 'image/jpg',
|
|
20
|
+
ImagePng: 'image/png',
|
|
21
|
+
ImageWebp: 'image/webp',
|
|
22
|
+
ApplicationPdf: 'application/pdf'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the UploadUrlRequestFilesInner interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfUploadUrlRequestFilesInner(value) {
|
|
28
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('contentLength' in value) || value['contentLength'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function UploadUrlRequestFilesInnerFromJSON(json) {
|
|
35
|
+
return UploadUrlRequestFilesInnerFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function UploadUrlRequestFilesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'mimeType': json['mimeType'],
|
|
43
|
+
'contentLength': json['contentLength'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function UploadUrlRequestFilesInnerToJSON(json) {
|
|
47
|
+
return UploadUrlRequestFilesInnerToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function UploadUrlRequestFilesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'mimeType': value['mimeType'],
|
|
55
|
+
'contentLength': value['contentLength'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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 { UploadUrlResponseFilesInner } from './UploadUrlResponseFilesInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UploadUrlResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface UploadUrlResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<UploadUrlResponseFilesInner>}
|
|
22
|
+
* @memberof UploadUrlResponse
|
|
23
|
+
*/
|
|
24
|
+
files: Array<UploadUrlResponseFilesInner>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the UploadUrlResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfUploadUrlResponse(value: object): value is UploadUrlResponse;
|
|
30
|
+
export declare function UploadUrlResponseFromJSON(json: any): UploadUrlResponse;
|
|
31
|
+
export declare function UploadUrlResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadUrlResponse;
|
|
32
|
+
export declare function UploadUrlResponseToJSON(json: any): UploadUrlResponse;
|
|
33
|
+
export declare function UploadUrlResponseToJSONTyped(value?: UploadUrlResponse | 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 { UploadUrlResponseFilesInnerFromJSON, UploadUrlResponseFilesInnerToJSON, } from './UploadUrlResponseFilesInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the UploadUrlResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfUploadUrlResponse(value) {
|
|
19
|
+
if (!('files' in value) || value['files'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function UploadUrlResponseFromJSON(json) {
|
|
24
|
+
return UploadUrlResponseFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function UploadUrlResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'files': (json['files'].map(UploadUrlResponseFilesInnerFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function UploadUrlResponseToJSON(json) {
|
|
35
|
+
return UploadUrlResponseToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function UploadUrlResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'files': (value['files'].map(UploadUrlResponseFilesInnerToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Athena API
|
|
3
|
+
* REST API for the Athena system
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UploadUrlResponseFilesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface UploadUrlResponseFilesInner {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for the file
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UploadUrlResponseFilesInner
|
|
22
|
+
*/
|
|
23
|
+
fileId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Presigned S3 PUT URL for uploading the file
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UploadUrlResponseFilesInner
|
|
28
|
+
*/
|
|
29
|
+
uploadUrl: string;
|
|
30
|
+
/**
|
|
31
|
+
* Presigned S3 GET URL for retrieving the file
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UploadUrlResponseFilesInner
|
|
34
|
+
*/
|
|
35
|
+
previewUrl: string;
|
|
36
|
+
/**
|
|
37
|
+
* Presigned S3 DELETE URL for deleting the file
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UploadUrlResponseFilesInner
|
|
40
|
+
*/
|
|
41
|
+
deleteUrl: string;
|
|
42
|
+
/**
|
|
43
|
+
* Expiry timestamp for the presigned URLs
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof UploadUrlResponseFilesInner
|
|
46
|
+
*/
|
|
47
|
+
expiresAt: Date;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the UploadUrlResponseFilesInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfUploadUrlResponseFilesInner(value: object): value is UploadUrlResponseFilesInner;
|
|
53
|
+
export declare function UploadUrlResponseFilesInnerFromJSON(json: any): UploadUrlResponseFilesInner;
|
|
54
|
+
export declare function UploadUrlResponseFilesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadUrlResponseFilesInner;
|
|
55
|
+
export declare function UploadUrlResponseFilesInnerToJSON(json: any): UploadUrlResponseFilesInner;
|
|
56
|
+
export declare function UploadUrlResponseFilesInnerToJSONTyped(value?: UploadUrlResponseFilesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 UploadUrlResponseFilesInner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfUploadUrlResponseFilesInner(value) {
|
|
18
|
+
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('uploadUrl' in value) || value['uploadUrl'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('previewUrl' in value) || value['previewUrl'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('deleteUrl' in value) || value['deleteUrl'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function UploadUrlResponseFilesInnerFromJSON(json) {
|
|
31
|
+
return UploadUrlResponseFilesInnerFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function UploadUrlResponseFilesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'fileId': json['fileId'],
|
|
39
|
+
'uploadUrl': json['uploadUrl'],
|
|
40
|
+
'previewUrl': json['previewUrl'],
|
|
41
|
+
'deleteUrl': json['deleteUrl'],
|
|
42
|
+
'expiresAt': (new Date(json['expiresAt'])),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function UploadUrlResponseFilesInnerToJSON(json) {
|
|
46
|
+
return UploadUrlResponseFilesInnerToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function UploadUrlResponseFilesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'fileId': value['fileId'],
|
|
54
|
+
'uploadUrl': value['uploadUrl'],
|
|
55
|
+
'previewUrl': value['previewUrl'],
|
|
56
|
+
'deleteUrl': value['deleteUrl'],
|
|
57
|
+
'expiresAt': value['expiresAt'].toISOString(),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './Account';
|
|
2
2
|
export * from './Chat';
|
|
3
3
|
export * from './ChatRequest';
|
|
4
|
+
export * from './ChatRequestAttachmentsInner';
|
|
4
5
|
export * from './CreateAccountRequest';
|
|
5
6
|
export * from './CreateChatRequest';
|
|
6
7
|
export * from './CreateTokenRequest';
|
|
@@ -8,7 +9,9 @@ export * from './CreateTokenResponse';
|
|
|
8
9
|
export * from './HealthCheck';
|
|
9
10
|
export * from './LearningDaysResponse';
|
|
10
11
|
export * from './LearningMoment';
|
|
12
|
+
export * from './LearningStreakResponse';
|
|
11
13
|
export * from './Message';
|
|
14
|
+
export * from './MessageAttachmentsInner';
|
|
12
15
|
export * from './MessageCountResponse';
|
|
13
16
|
export * from './MessagePartsInner';
|
|
14
17
|
export * from './ModelError';
|
|
@@ -20,3 +23,7 @@ export * from './Tag';
|
|
|
20
23
|
export * from './UpdateChatRequest';
|
|
21
24
|
export * from './UpdateTokenRequest';
|
|
22
25
|
export * from './UpdateTokenResponse';
|
|
26
|
+
export * from './UploadUrlRequest';
|
|
27
|
+
export * from './UploadUrlRequestFilesInner';
|
|
28
|
+
export * from './UploadUrlResponse';
|
|
29
|
+
export * from './UploadUrlResponseFilesInner';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export * from './Account';
|
|
4
4
|
export * from './Chat';
|
|
5
5
|
export * from './ChatRequest';
|
|
6
|
+
export * from './ChatRequestAttachmentsInner';
|
|
6
7
|
export * from './CreateAccountRequest';
|
|
7
8
|
export * from './CreateChatRequest';
|
|
8
9
|
export * from './CreateTokenRequest';
|
|
@@ -10,7 +11,9 @@ export * from './CreateTokenResponse';
|
|
|
10
11
|
export * from './HealthCheck';
|
|
11
12
|
export * from './LearningDaysResponse';
|
|
12
13
|
export * from './LearningMoment';
|
|
14
|
+
export * from './LearningStreakResponse';
|
|
13
15
|
export * from './Message';
|
|
16
|
+
export * from './MessageAttachmentsInner';
|
|
14
17
|
export * from './MessageCountResponse';
|
|
15
18
|
export * from './MessagePartsInner';
|
|
16
19
|
export * from './ModelError';
|
|
@@ -22,3 +25,7 @@ export * from './Tag';
|
|
|
22
25
|
export * from './UpdateChatRequest';
|
|
23
26
|
export * from './UpdateTokenRequest';
|
|
24
27
|
export * from './UpdateTokenResponse';
|
|
28
|
+
export * from './UploadUrlRequest';
|
|
29
|
+
export * from './UploadUrlRequestFilesInner';
|
|
30
|
+
export * from './UploadUrlResponse';
|
|
31
|
+
export * from './UploadUrlResponseFilesInner';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ChatRequestAttachmentsInner } from './ChatRequestAttachmentsInner';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -27,6 +28,12 @@ export interface ChatRequest {
|
|
|
27
28
|
* @memberof ChatRequest
|
|
28
29
|
*/
|
|
29
30
|
chatId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* File attachments to include with the message (max 10)
|
|
33
|
+
* @type {Array<ChatRequestAttachmentsInner>}
|
|
34
|
+
* @memberof ChatRequest
|
|
35
|
+
*/
|
|
36
|
+
attachments?: Array<ChatRequestAttachmentsInner>;
|
|
30
37
|
}
|
|
31
38
|
/**
|
|
32
39
|
* Check if a given object implements the ChatRequest interface.
|
|
@@ -18,6 +18,7 @@ exports.ChatRequestFromJSON = ChatRequestFromJSON;
|
|
|
18
18
|
exports.ChatRequestFromJSONTyped = ChatRequestFromJSONTyped;
|
|
19
19
|
exports.ChatRequestToJSON = ChatRequestToJSON;
|
|
20
20
|
exports.ChatRequestToJSONTyped = ChatRequestToJSONTyped;
|
|
21
|
+
const ChatRequestAttachmentsInner_1 = require("./ChatRequestAttachmentsInner");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the ChatRequest interface.
|
|
23
24
|
*/
|
|
@@ -36,6 +37,7 @@ function ChatRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
37
|
return {
|
|
37
38
|
'message': json['message'],
|
|
38
39
|
'chatId': json['chatId'] == null ? undefined : json['chatId'],
|
|
40
|
+
'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(ChatRequestAttachmentsInner_1.ChatRequestAttachmentsInnerFromJSON)),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
function ChatRequestToJSON(json) {
|
|
@@ -48,5 +50,6 @@ function ChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
50
|
return {
|
|
49
51
|
'message': value['message'],
|
|
50
52
|
'chatId': value['chatId'],
|
|
53
|
+
'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(ChatRequestAttachmentsInner_1.ChatRequestAttachmentsInnerToJSON)),
|
|
51
54
|
};
|
|
52
55
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 ChatRequestAttachmentsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface ChatRequestAttachmentsInner {
|
|
18
|
+
/**
|
|
19
|
+
* File ID returned from the upload-url endpoint
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ChatRequestAttachmentsInner
|
|
22
|
+
*/
|
|
23
|
+
fileId: string;
|
|
24
|
+
/**
|
|
25
|
+
* MIME type of the file
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ChatRequestAttachmentsInner
|
|
28
|
+
*/
|
|
29
|
+
mimeType: ChatRequestAttachmentsInnerMimeTypeEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const ChatRequestAttachmentsInnerMimeTypeEnum: {
|
|
35
|
+
readonly ImageJpeg: "image/jpeg";
|
|
36
|
+
readonly ImageJpg: "image/jpg";
|
|
37
|
+
readonly ImagePng: "image/png";
|
|
38
|
+
readonly ImageWebp: "image/webp";
|
|
39
|
+
readonly ApplicationPdf: "application/pdf";
|
|
40
|
+
};
|
|
41
|
+
export type ChatRequestAttachmentsInnerMimeTypeEnum = typeof ChatRequestAttachmentsInnerMimeTypeEnum[keyof typeof ChatRequestAttachmentsInnerMimeTypeEnum];
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ChatRequestAttachmentsInner interface.
|
|
44
|
+
*/
|
|
45
|
+
export declare function instanceOfChatRequestAttachmentsInner(value: object): value is ChatRequestAttachmentsInner;
|
|
46
|
+
export declare function ChatRequestAttachmentsInnerFromJSON(json: any): ChatRequestAttachmentsInner;
|
|
47
|
+
export declare function ChatRequestAttachmentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatRequestAttachmentsInner;
|
|
48
|
+
export declare function ChatRequestAttachmentsInnerToJSON(json: any): ChatRequestAttachmentsInner;
|
|
49
|
+
export declare function ChatRequestAttachmentsInnerToJSONTyped(value?: ChatRequestAttachmentsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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.ChatRequestAttachmentsInnerMimeTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfChatRequestAttachmentsInner = instanceOfChatRequestAttachmentsInner;
|
|
18
|
+
exports.ChatRequestAttachmentsInnerFromJSON = ChatRequestAttachmentsInnerFromJSON;
|
|
19
|
+
exports.ChatRequestAttachmentsInnerFromJSONTyped = ChatRequestAttachmentsInnerFromJSONTyped;
|
|
20
|
+
exports.ChatRequestAttachmentsInnerToJSON = ChatRequestAttachmentsInnerToJSON;
|
|
21
|
+
exports.ChatRequestAttachmentsInnerToJSONTyped = ChatRequestAttachmentsInnerToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ChatRequestAttachmentsInnerMimeTypeEnum = {
|
|
26
|
+
ImageJpeg: 'image/jpeg',
|
|
27
|
+
ImageJpg: 'image/jpg',
|
|
28
|
+
ImagePng: 'image/png',
|
|
29
|
+
ImageWebp: 'image/webp',
|
|
30
|
+
ApplicationPdf: 'application/pdf'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ChatRequestAttachmentsInner interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfChatRequestAttachmentsInner(value) {
|
|
36
|
+
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function ChatRequestAttachmentsInnerFromJSON(json) {
|
|
43
|
+
return ChatRequestAttachmentsInnerFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ChatRequestAttachmentsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'fileId': json['fileId'],
|
|
51
|
+
'mimeType': json['mimeType'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function ChatRequestAttachmentsInnerToJSON(json) {
|
|
55
|
+
return ChatRequestAttachmentsInnerToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function ChatRequestAttachmentsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'fileId': value['fileId'],
|
|
63
|
+
'mimeType': value['mimeType'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -15,13 +15,39 @@
|
|
|
15
15
|
* @interface CreateChatRequest
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateChatRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Optional caller-supplied UUID for the chat. If omitted, one is generated.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateChatRequest
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
18
24
|
/**
|
|
19
25
|
* Optional title for the chat. Defaults to 'New Chat' if omitted.
|
|
20
26
|
* @type {string}
|
|
21
27
|
* @memberof CreateChatRequest
|
|
22
28
|
*/
|
|
23
29
|
title?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional chat type. Defaults to a general chat if omitted.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateChatRequest
|
|
34
|
+
*/
|
|
35
|
+
chatType?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Visibility of the chat. Defaults to 'private' if omitted.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateChatRequest
|
|
40
|
+
*/
|
|
41
|
+
visibility?: CreateChatRequestVisibilityEnum;
|
|
24
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const CreateChatRequestVisibilityEnum: {
|
|
47
|
+
readonly Public: "public";
|
|
48
|
+
readonly Private: "private";
|
|
49
|
+
};
|
|
50
|
+
export type CreateChatRequestVisibilityEnum = typeof CreateChatRequestVisibilityEnum[keyof typeof CreateChatRequestVisibilityEnum];
|
|
25
51
|
/**
|
|
26
52
|
* Check if a given object implements the CreateChatRequest interface.
|
|
27
53
|
*/
|
|
@@ -13,11 +13,19 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateChatRequestVisibilityEnum = void 0;
|
|
16
17
|
exports.instanceOfCreateChatRequest = instanceOfCreateChatRequest;
|
|
17
18
|
exports.CreateChatRequestFromJSON = CreateChatRequestFromJSON;
|
|
18
19
|
exports.CreateChatRequestFromJSONTyped = CreateChatRequestFromJSONTyped;
|
|
19
20
|
exports.CreateChatRequestToJSON = CreateChatRequestToJSON;
|
|
20
21
|
exports.CreateChatRequestToJSONTyped = CreateChatRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CreateChatRequestVisibilityEnum = {
|
|
26
|
+
Public: 'public',
|
|
27
|
+
Private: 'private'
|
|
28
|
+
};
|
|
21
29
|
/**
|
|
22
30
|
* Check if a given object implements the CreateChatRequest interface.
|
|
23
31
|
*/
|
|
@@ -32,7 +40,10 @@ function CreateChatRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
40
|
return json;
|
|
33
41
|
}
|
|
34
42
|
return {
|
|
43
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
35
44
|
'title': json['title'] == null ? undefined : json['title'],
|
|
45
|
+
'chatType': json['chatType'] == null ? undefined : json['chatType'],
|
|
46
|
+
'visibility': json['visibility'] == null ? undefined : json['visibility'],
|
|
36
47
|
};
|
|
37
48
|
}
|
|
38
49
|
function CreateChatRequestToJSON(json) {
|
|
@@ -43,6 +54,9 @@ function CreateChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
43
54
|
return value;
|
|
44
55
|
}
|
|
45
56
|
return {
|
|
57
|
+
'id': value['id'],
|
|
46
58
|
'title': value['title'],
|
|
59
|
+
'chatType': value['chatType'],
|
|
60
|
+
'visibility': value['visibility'],
|
|
47
61
|
};
|
|
48
62
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 LearningStreakResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface LearningStreakResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof LearningStreakResponse
|
|
22
|
+
*/
|
|
23
|
+
currentDays: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof LearningStreakResponse
|
|
28
|
+
*/
|
|
29
|
+
longestDays: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof LearningStreakResponse
|
|
34
|
+
*/
|
|
35
|
+
lastMomentDate?: Date | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof LearningStreakResponse
|
|
40
|
+
*/
|
|
41
|
+
totalMissedDays: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {Array<number>}
|
|
45
|
+
* @memberof LearningStreakResponse
|
|
46
|
+
*/
|
|
47
|
+
missedDaysInCycle: Array<number>;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof LearningStreakResponse
|
|
52
|
+
*/
|
|
53
|
+
lastEvaluatedAt?: Date | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof LearningStreakResponse
|
|
58
|
+
*/
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof LearningStreakResponse
|
|
64
|
+
*/
|
|
65
|
+
updatedAt: Date;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the LearningStreakResponse interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfLearningStreakResponse(value: object): value is LearningStreakResponse;
|
|
71
|
+
export declare function LearningStreakResponseFromJSON(json: any): LearningStreakResponse;
|
|
72
|
+
export declare function LearningStreakResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LearningStreakResponse;
|
|
73
|
+
export declare function LearningStreakResponseToJSON(json: any): LearningStreakResponse;
|
|
74
|
+
export declare function LearningStreakResponseToJSONTyped(value?: LearningStreakResponse | null, ignoreDiscriminator?: boolean): any;
|