@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.
Files changed (66) hide show
  1. package/README.md +9 -0
  2. package/dist/apis/ChatsApi.d.ts +1 -0
  3. package/dist/apis/ChatsApi.js +3 -0
  4. package/dist/apis/FilesApi.d.ts +32 -0
  5. package/dist/apis/FilesApi.js +75 -0
  6. package/dist/apis/LearningStreakApi.d.ts +31 -0
  7. package/dist/apis/LearningStreakApi.js +70 -0
  8. package/dist/apis/index.d.ts +2 -0
  9. package/dist/apis/index.js +2 -0
  10. package/dist/esm/apis/ChatsApi.d.ts +1 -0
  11. package/dist/esm/apis/ChatsApi.js +3 -0
  12. package/dist/esm/apis/FilesApi.d.ts +32 -0
  13. package/dist/esm/apis/FilesApi.js +71 -0
  14. package/dist/esm/apis/LearningStreakApi.d.ts +31 -0
  15. package/dist/esm/apis/LearningStreakApi.js +66 -0
  16. package/dist/esm/apis/index.d.ts +2 -0
  17. package/dist/esm/apis/index.js +2 -0
  18. package/dist/esm/models/ChatRequest.d.ts +7 -0
  19. package/dist/esm/models/ChatRequest.js +3 -0
  20. package/dist/esm/models/ChatRequestAttachmentsInner.d.ts +49 -0
  21. package/dist/esm/models/ChatRequestAttachmentsInner.js +57 -0
  22. package/dist/esm/models/CreateChatRequest.d.ts +26 -0
  23. package/dist/esm/models/CreateChatRequest.js +13 -0
  24. package/dist/esm/models/LearningStreakResponse.d.ts +74 -0
  25. package/dist/esm/models/LearningStreakResponse.js +67 -0
  26. package/dist/esm/models/Message.d.ts +4 -3
  27. package/dist/esm/models/Message.js +3 -2
  28. package/dist/esm/models/MessageAttachmentsInner.d.ts +55 -0
  29. package/dist/esm/models/MessageAttachmentsInner.js +59 -0
  30. package/dist/esm/models/UpdateChatRequest.d.ts +20 -0
  31. package/dist/esm/models/UpdateChatRequest.js +11 -0
  32. package/dist/esm/models/UploadUrlRequest.d.ts +39 -0
  33. package/dist/esm/models/UploadUrlRequest.js +48 -0
  34. package/dist/esm/models/UploadUrlRequestFilesInner.d.ts +49 -0
  35. package/dist/esm/models/UploadUrlRequestFilesInner.js +57 -0
  36. package/dist/esm/models/UploadUrlResponse.d.ts +33 -0
  37. package/dist/esm/models/UploadUrlResponse.js +44 -0
  38. package/dist/esm/models/UploadUrlResponseFilesInner.d.ts +56 -0
  39. package/dist/esm/models/UploadUrlResponseFilesInner.js +59 -0
  40. package/dist/esm/models/index.d.ts +7 -0
  41. package/dist/esm/models/index.js +7 -0
  42. package/dist/models/ChatRequest.d.ts +7 -0
  43. package/dist/models/ChatRequest.js +3 -0
  44. package/dist/models/ChatRequestAttachmentsInner.d.ts +49 -0
  45. package/dist/models/ChatRequestAttachmentsInner.js +65 -0
  46. package/dist/models/CreateChatRequest.d.ts +26 -0
  47. package/dist/models/CreateChatRequest.js +14 -0
  48. package/dist/models/LearningStreakResponse.d.ts +74 -0
  49. package/dist/models/LearningStreakResponse.js +74 -0
  50. package/dist/models/Message.d.ts +4 -3
  51. package/dist/models/Message.js +3 -2
  52. package/dist/models/MessageAttachmentsInner.d.ts +55 -0
  53. package/dist/models/MessageAttachmentsInner.js +67 -0
  54. package/dist/models/UpdateChatRequest.d.ts +20 -0
  55. package/dist/models/UpdateChatRequest.js +12 -0
  56. package/dist/models/UploadUrlRequest.d.ts +39 -0
  57. package/dist/models/UploadUrlRequest.js +55 -0
  58. package/dist/models/UploadUrlRequestFilesInner.d.ts +49 -0
  59. package/dist/models/UploadUrlRequestFilesInner.js +65 -0
  60. package/dist/models/UploadUrlResponse.d.ts +33 -0
  61. package/dist/models/UploadUrlResponse.js +51 -0
  62. package/dist/models/UploadUrlResponseFilesInner.d.ts +56 -0
  63. package/dist/models/UploadUrlResponseFilesInner.js +66 -0
  64. package/dist/models/index.d.ts +7 -0
  65. package/dist/models/index.js +7 -0
  66. 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 ChatRequestAttachmentsInnerMimeTypeEnum = {
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 ChatRequestAttachmentsInner interface.
26
+ */
27
+ export function instanceOfChatRequestAttachmentsInner(value) {
28
+ if (!('fileId' in value) || value['fileId'] === undefined)
29
+ return false;
30
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function ChatRequestAttachmentsInnerFromJSON(json) {
35
+ return ChatRequestAttachmentsInnerFromJSONTyped(json, false);
36
+ }
37
+ export function ChatRequestAttachmentsInnerFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'fileId': json['fileId'],
43
+ 'mimeType': json['mimeType'],
44
+ };
45
+ }
46
+ export function ChatRequestAttachmentsInnerToJSON(json) {
47
+ return ChatRequestAttachmentsInnerToJSONTyped(json, false);
48
+ }
49
+ export function ChatRequestAttachmentsInnerToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'fileId': value['fileId'],
55
+ 'mimeType': value['mimeType'],
56
+ };
57
+ }
@@ -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
  */
@@ -11,6 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * @export
16
+ */
17
+ export const CreateChatRequestVisibilityEnum = {
18
+ Public: 'public',
19
+ Private: 'private'
20
+ };
14
21
  /**
15
22
  * Check if a given object implements the CreateChatRequest interface.
16
23
  */
@@ -25,7 +32,10 @@ export function CreateChatRequestFromJSONTyped(json, ignoreDiscriminator) {
25
32
  return json;
26
33
  }
27
34
  return {
35
+ 'id': json['id'] == null ? undefined : json['id'],
28
36
  'title': json['title'] == null ? undefined : json['title'],
37
+ 'chatType': json['chatType'] == null ? undefined : json['chatType'],
38
+ 'visibility': json['visibility'] == null ? undefined : json['visibility'],
29
39
  };
30
40
  }
31
41
  export function CreateChatRequestToJSON(json) {
@@ -36,6 +46,9 @@ export function CreateChatRequestToJSONTyped(value, ignoreDiscriminator = false)
36
46
  return value;
37
47
  }
38
48
  return {
49
+ 'id': value['id'],
39
50
  'title': value['title'],
51
+ 'chatType': value['chatType'],
52
+ 'visibility': value['visibility'],
40
53
  };
41
54
  }
@@ -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;
@@ -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 LearningStreakResponse interface.
16
+ */
17
+ export function instanceOfLearningStreakResponse(value) {
18
+ if (!('currentDays' in value) || value['currentDays'] === undefined)
19
+ return false;
20
+ if (!('longestDays' in value) || value['longestDays'] === undefined)
21
+ return false;
22
+ if (!('totalMissedDays' in value) || value['totalMissedDays'] === undefined)
23
+ return false;
24
+ if (!('missedDaysInCycle' in value) || value['missedDaysInCycle'] === undefined)
25
+ return false;
26
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
27
+ return false;
28
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function LearningStreakResponseFromJSON(json) {
33
+ return LearningStreakResponseFromJSONTyped(json, false);
34
+ }
35
+ export function LearningStreakResponseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'currentDays': json['currentDays'],
41
+ 'longestDays': json['longestDays'],
42
+ 'lastMomentDate': json['lastMomentDate'] == null ? undefined : (new Date(json['lastMomentDate'])),
43
+ 'totalMissedDays': json['totalMissedDays'],
44
+ 'missedDaysInCycle': json['missedDaysInCycle'],
45
+ 'lastEvaluatedAt': json['lastEvaluatedAt'] == null ? undefined : (new Date(json['lastEvaluatedAt'])),
46
+ 'createdAt': (new Date(json['createdAt'])),
47
+ 'updatedAt': (new Date(json['updatedAt'])),
48
+ };
49
+ }
50
+ export function LearningStreakResponseToJSON(json) {
51
+ return LearningStreakResponseToJSONTyped(json, false);
52
+ }
53
+ export function LearningStreakResponseToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'currentDays': value['currentDays'],
59
+ 'longestDays': value['longestDays'],
60
+ 'lastMomentDate': value['lastMomentDate'] == null ? value['lastMomentDate'] : value['lastMomentDate'].toISOString().substring(0, 10),
61
+ 'totalMissedDays': value['totalMissedDays'],
62
+ 'missedDaysInCycle': value['missedDaysInCycle'],
63
+ 'lastEvaluatedAt': value['lastEvaluatedAt'] == null ? value['lastEvaluatedAt'] : value['lastEvaluatedAt'].toISOString(),
64
+ 'createdAt': value['createdAt'].toISOString(),
65
+ 'updatedAt': value['updatedAt'].toISOString(),
66
+ };
67
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { MessageAttachmentsInner } from './MessageAttachmentsInner';
12
13
  import type { MessagePartsInner } from './MessagePartsInner';
13
14
  /**
14
15
  *
@@ -41,11 +42,11 @@ export interface Message {
41
42
  */
42
43
  parts: Array<MessagePartsInner>;
43
44
  /**
44
- * Message attachments
45
- * @type {Array<object>}
45
+ * Message attachments with fresh signed GET URLs
46
+ * @type {Array<MessageAttachmentsInner>}
46
47
  * @memberof Message
47
48
  */
48
- attachments: Array<object>;
49
+ attachments: Array<MessageAttachmentsInner>;
49
50
  /**
50
51
  * Creation timestamp
51
52
  * @type {Date}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { MessageAttachmentsInnerFromJSON, MessageAttachmentsInnerToJSON, } from './MessageAttachmentsInner';
14
15
  import { MessagePartsInnerFromJSON, MessagePartsInnerToJSON, } from './MessagePartsInner';
15
16
  /**
16
17
  * Check if a given object implements the Message interface.
@@ -44,7 +45,7 @@ export function MessageFromJSONTyped(json, ignoreDiscriminator) {
44
45
  'chatId': json['chatId'],
45
46
  'role': json['role'],
46
47
  'parts': (json['parts'].map(MessagePartsInnerFromJSON)),
47
- 'attachments': json['attachments'],
48
+ 'attachments': (json['attachments'].map(MessageAttachmentsInnerFromJSON)),
48
49
  'createdAt': (new Date(json['createdAt'])),
49
50
  'isLearningMoment': json['isLearningMoment'],
50
51
  };
@@ -61,7 +62,7 @@ export function MessageToJSONTyped(value, ignoreDiscriminator = false) {
61
62
  'chatId': value['chatId'],
62
63
  'role': value['role'],
63
64
  'parts': (value['parts'].map(MessagePartsInnerToJSON)),
64
- 'attachments': value['attachments'],
65
+ 'attachments': (value['attachments'].map(MessageAttachmentsInnerToJSON)),
65
66
  'createdAt': value['createdAt'].toISOString(),
66
67
  'isLearningMoment': value['isLearningMoment'],
67
68
  };
@@ -0,0 +1,55 @@
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 MessageAttachmentsInner
16
+ */
17
+ export interface MessageAttachmentsInner {
18
+ /**
19
+ * File ID returned from the upload-url endpoint
20
+ * @type {string}
21
+ * @memberof MessageAttachmentsInner
22
+ */
23
+ fileId: string;
24
+ /**
25
+ * MIME type of the file
26
+ * @type {string}
27
+ * @memberof MessageAttachmentsInner
28
+ */
29
+ mimeType: MessageAttachmentsInnerMimeTypeEnum;
30
+ /**
31
+ * Fresh signed GET URL (expires in 30 minutes). Absent for legacy attachments without a fileId.
32
+ * @type {string}
33
+ * @memberof MessageAttachmentsInner
34
+ */
35
+ url?: string;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const MessageAttachmentsInnerMimeTypeEnum: {
41
+ readonly ImageJpeg: "image/jpeg";
42
+ readonly ImageJpg: "image/jpg";
43
+ readonly ImagePng: "image/png";
44
+ readonly ImageWebp: "image/webp";
45
+ readonly ApplicationPdf: "application/pdf";
46
+ };
47
+ export type MessageAttachmentsInnerMimeTypeEnum = typeof MessageAttachmentsInnerMimeTypeEnum[keyof typeof MessageAttachmentsInnerMimeTypeEnum];
48
+ /**
49
+ * Check if a given object implements the MessageAttachmentsInner interface.
50
+ */
51
+ export declare function instanceOfMessageAttachmentsInner(value: object): value is MessageAttachmentsInner;
52
+ export declare function MessageAttachmentsInnerFromJSON(json: any): MessageAttachmentsInner;
53
+ export declare function MessageAttachmentsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageAttachmentsInner;
54
+ export declare function MessageAttachmentsInnerToJSON(json: any): MessageAttachmentsInner;
55
+ export declare function MessageAttachmentsInnerToJSONTyped(value?: MessageAttachmentsInner | 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
+ * @export
16
+ */
17
+ export const MessageAttachmentsInnerMimeTypeEnum = {
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 MessageAttachmentsInner interface.
26
+ */
27
+ export function instanceOfMessageAttachmentsInner(value) {
28
+ if (!('fileId' in value) || value['fileId'] === undefined)
29
+ return false;
30
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ export function MessageAttachmentsInnerFromJSON(json) {
35
+ return MessageAttachmentsInnerFromJSONTyped(json, false);
36
+ }
37
+ export function MessageAttachmentsInnerFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'fileId': json['fileId'],
43
+ 'mimeType': json['mimeType'],
44
+ 'url': json['url'] == null ? undefined : json['url'],
45
+ };
46
+ }
47
+ export function MessageAttachmentsInnerToJSON(json) {
48
+ return MessageAttachmentsInnerToJSONTyped(json, false);
49
+ }
50
+ export function MessageAttachmentsInnerToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'fileId': value['fileId'],
56
+ 'mimeType': value['mimeType'],
57
+ 'url': value['url'],
58
+ };
59
+ }
@@ -21,7 +21,27 @@ export interface UpdateChatRequest {
21
21
  * @memberof UpdateChatRequest
22
22
  */
23
23
  title?: string;
24
+ /**
25
+ * Chat type.
26
+ * @type {string}
27
+ * @memberof UpdateChatRequest
28
+ */
29
+ chatType?: string;
30
+ /**
31
+ * Visibility of the chat.
32
+ * @type {string}
33
+ * @memberof UpdateChatRequest
34
+ */
35
+ visibility?: UpdateChatRequestVisibilityEnum;
24
36
  }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const UpdateChatRequestVisibilityEnum: {
41
+ readonly Public: "public";
42
+ readonly Private: "private";
43
+ };
44
+ export type UpdateChatRequestVisibilityEnum = typeof UpdateChatRequestVisibilityEnum[keyof typeof UpdateChatRequestVisibilityEnum];
25
45
  /**
26
46
  * Check if a given object implements the UpdateChatRequest interface.
27
47
  */
@@ -11,6 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * @export
16
+ */
17
+ export const UpdateChatRequestVisibilityEnum = {
18
+ Public: 'public',
19
+ Private: 'private'
20
+ };
14
21
  /**
15
22
  * Check if a given object implements the UpdateChatRequest interface.
16
23
  */
@@ -26,6 +33,8 @@ export function UpdateChatRequestFromJSONTyped(json, ignoreDiscriminator) {
26
33
  }
27
34
  return {
28
35
  'title': json['title'] == null ? undefined : json['title'],
36
+ 'chatType': json['chatType'] == null ? undefined : json['chatType'],
37
+ 'visibility': json['visibility'] == null ? undefined : json['visibility'],
29
38
  };
30
39
  }
31
40
  export function UpdateChatRequestToJSON(json) {
@@ -37,5 +46,7 @@ export function UpdateChatRequestToJSONTyped(value, ignoreDiscriminator = false)
37
46
  }
38
47
  return {
39
48
  'title': value['title'],
49
+ 'chatType': value['chatType'],
50
+ 'visibility': value['visibility'],
40
51
  };
41
52
  }
@@ -0,0 +1,39 @@
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 { UploadUrlRequestFilesInner } from './UploadUrlRequestFilesInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UploadUrlRequest
17
+ */
18
+ export interface UploadUrlRequest {
19
+ /**
20
+ * ID of the chat to associate the files with
21
+ * @type {string}
22
+ * @memberof UploadUrlRequest
23
+ */
24
+ chatId: string;
25
+ /**
26
+ *
27
+ * @type {Array<UploadUrlRequestFilesInner>}
28
+ * @memberof UploadUrlRequest
29
+ */
30
+ files: Array<UploadUrlRequestFilesInner>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the UploadUrlRequest interface.
34
+ */
35
+ export declare function instanceOfUploadUrlRequest(value: object): value is UploadUrlRequest;
36
+ export declare function UploadUrlRequestFromJSON(json: any): UploadUrlRequest;
37
+ export declare function UploadUrlRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadUrlRequest;
38
+ export declare function UploadUrlRequestToJSON(json: any): UploadUrlRequest;
39
+ export declare function UploadUrlRequestToJSONTyped(value?: UploadUrlRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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 { UploadUrlRequestFilesInnerFromJSON, UploadUrlRequestFilesInnerToJSON, } from './UploadUrlRequestFilesInner';
15
+ /**
16
+ * Check if a given object implements the UploadUrlRequest interface.
17
+ */
18
+ export function instanceOfUploadUrlRequest(value) {
19
+ if (!('chatId' in value) || value['chatId'] === undefined)
20
+ return false;
21
+ if (!('files' in value) || value['files'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function UploadUrlRequestFromJSON(json) {
26
+ return UploadUrlRequestFromJSONTyped(json, false);
27
+ }
28
+ export function UploadUrlRequestFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'chatId': json['chatId'],
34
+ 'files': (json['files'].map(UploadUrlRequestFilesInnerFromJSON)),
35
+ };
36
+ }
37
+ export function UploadUrlRequestToJSON(json) {
38
+ return UploadUrlRequestToJSONTyped(json, false);
39
+ }
40
+ export function UploadUrlRequestToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'chatId': value['chatId'],
46
+ 'files': (value['files'].map(UploadUrlRequestFilesInnerToJSON)),
47
+ };
48
+ }
@@ -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 UploadUrlRequestFilesInner
16
+ */
17
+ export interface UploadUrlRequestFilesInner {
18
+ /**
19
+ * MIME type of the file to upload
20
+ * @type {string}
21
+ * @memberof UploadUrlRequestFilesInner
22
+ */
23
+ mimeType: UploadUrlRequestFilesInnerMimeTypeEnum;
24
+ /**
25
+ * File size in bytes (max 7444889)
26
+ * @type {number}
27
+ * @memberof UploadUrlRequestFilesInner
28
+ */
29
+ contentLength: number;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const UploadUrlRequestFilesInnerMimeTypeEnum: {
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 UploadUrlRequestFilesInnerMimeTypeEnum = typeof UploadUrlRequestFilesInnerMimeTypeEnum[keyof typeof UploadUrlRequestFilesInnerMimeTypeEnum];
42
+ /**
43
+ * Check if a given object implements the UploadUrlRequestFilesInner interface.
44
+ */
45
+ export declare function instanceOfUploadUrlRequestFilesInner(value: object): value is UploadUrlRequestFilesInner;
46
+ export declare function UploadUrlRequestFilesInnerFromJSON(json: any): UploadUrlRequestFilesInner;
47
+ export declare function UploadUrlRequestFilesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadUrlRequestFilesInner;
48
+ export declare function UploadUrlRequestFilesInnerToJSON(json: any): UploadUrlRequestFilesInner;
49
+ export declare function UploadUrlRequestFilesInnerToJSONTyped(value?: UploadUrlRequestFilesInner | null, ignoreDiscriminator?: boolean): any;