@instructure/athena-api-client 1.0.13 → 1.0.14
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 +1 -1
- package/dist/esm/models/Message.d.ts +4 -4
- package/dist/esm/models/Message.js +3 -3
- package/dist/esm/models/MessagePartsInner.d.ts +1 -0
- package/dist/esm/models/MessagePartsInner.js +2 -8
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/models/Message.d.ts +4 -4
- package/dist/models/Message.js +3 -3
- package/dist/models/MessagePartsInner.d.ts +1 -0
- package/dist/models/MessagePartsInner.js +2 -8
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -142,7 +142,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
142
142
|
- [Message](docs/Message.md)
|
|
143
143
|
- [MessageAttachment](docs/MessageAttachment.md)
|
|
144
144
|
- [MessageCountResponse](docs/MessageCountResponse.md)
|
|
145
|
-
- [
|
|
145
|
+
- [MessagePartsInner](docs/MessagePartsInner.md)
|
|
146
146
|
- [PaginatedChats](docs/PaginatedChats.md)
|
|
147
147
|
- [PaginatedLearningMoments](docs/PaginatedLearningMoments.md)
|
|
148
148
|
- [PaginatedMessages](docs/PaginatedMessages.md)
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { MessageAttachment } from './MessageAttachment';
|
|
13
|
-
import type {
|
|
13
|
+
import type { MessagePartsInner } from './MessagePartsInner';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -36,11 +36,11 @@ export interface Message {
|
|
|
36
36
|
*/
|
|
37
37
|
role: string;
|
|
38
38
|
/**
|
|
39
|
-
* Message content parts
|
|
40
|
-
* @type {Array<
|
|
39
|
+
* Message content parts (text, tool invocations, reasoning, etc.)
|
|
40
|
+
* @type {Array<MessagePartsInner>}
|
|
41
41
|
* @memberof Message
|
|
42
42
|
*/
|
|
43
|
-
parts: Array<
|
|
43
|
+
parts: Array<MessagePartsInner>;
|
|
44
44
|
/**
|
|
45
45
|
* Message attachments with fresh signed GET URLs
|
|
46
46
|
* @type {Array<MessageAttachment>}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { MessageAttachmentFromJSON, MessageAttachmentToJSON, } from './MessageAttachment';
|
|
15
|
-
import {
|
|
15
|
+
import { MessagePartsInnerFromJSON, MessagePartsInnerToJSON, } from './MessagePartsInner';
|
|
16
16
|
/**
|
|
17
17
|
* Check if a given object implements the Message interface.
|
|
18
18
|
*/
|
|
@@ -42,7 +42,7 @@ export function MessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'id': json['id'],
|
|
43
43
|
'chatId': json['chatId'],
|
|
44
44
|
'role': json['role'],
|
|
45
|
-
'parts': (json['parts'].map(
|
|
45
|
+
'parts': (json['parts'].map(MessagePartsInnerFromJSON)),
|
|
46
46
|
'attachments': (json['attachments'].map(MessageAttachmentFromJSON)),
|
|
47
47
|
'createdAt': (new Date(json['createdAt'])),
|
|
48
48
|
'isLearningMoment': json['isLearningMoment'] == null ? undefined : json['isLearningMoment'],
|
|
@@ -59,7 +59,7 @@ export function MessageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
59
59
|
'id': value['id'],
|
|
60
60
|
'chatId': value['chatId'],
|
|
61
61
|
'role': value['role'],
|
|
62
|
-
'parts': (value['parts'].map(
|
|
62
|
+
'parts': (value['parts'].map(MessagePartsInnerToJSON)),
|
|
63
63
|
'attachments': (value['attachments'].map(MessageAttachmentToJSON)),
|
|
64
64
|
'createdAt': value['createdAt'].toISOString(),
|
|
65
65
|
'isLearningMoment': value['isLearningMoment'],
|
|
@@ -24,10 +24,7 @@ export function MessagePartsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24
24
|
if (json == null) {
|
|
25
25
|
return json;
|
|
26
26
|
}
|
|
27
|
-
return {
|
|
28
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
29
|
-
'text': json['text'] == null ? undefined : json['text'],
|
|
30
|
-
};
|
|
27
|
+
return Object.assign(Object.assign({}, json), { 'type': json['type'] == null ? undefined : json['type'], 'text': json['text'] == null ? undefined : json['text'] });
|
|
31
28
|
}
|
|
32
29
|
export function MessagePartsInnerToJSON(json) {
|
|
33
30
|
return MessagePartsInnerToJSONTyped(json, false);
|
|
@@ -36,8 +33,5 @@ export function MessagePartsInnerToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
36
33
|
if (value == null) {
|
|
37
34
|
return value;
|
|
38
35
|
}
|
|
39
|
-
return {
|
|
40
|
-
'type': value['type'],
|
|
41
|
-
'text': value['text'],
|
|
42
|
-
};
|
|
36
|
+
return Object.assign(Object.assign({}, value), { 'type': value['type'], 'text': value['text'] });
|
|
43
37
|
}
|
|
@@ -27,7 +27,7 @@ export * from './LearningStreakResponse';
|
|
|
27
27
|
export * from './Message';
|
|
28
28
|
export * from './MessageAttachment';
|
|
29
29
|
export * from './MessageCountResponse';
|
|
30
|
-
export * from './
|
|
30
|
+
export * from './MessagePartsInner';
|
|
31
31
|
export * from './PaginatedChats';
|
|
32
32
|
export * from './PaginatedLearningMoments';
|
|
33
33
|
export * from './PaginatedMessages';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -29,7 +29,7 @@ export * from './LearningStreakResponse';
|
|
|
29
29
|
export * from './Message';
|
|
30
30
|
export * from './MessageAttachment';
|
|
31
31
|
export * from './MessageCountResponse';
|
|
32
|
-
export * from './
|
|
32
|
+
export * from './MessagePartsInner';
|
|
33
33
|
export * from './PaginatedChats';
|
|
34
34
|
export * from './PaginatedLearningMoments';
|
|
35
35
|
export * from './PaginatedMessages';
|
package/dist/models/Message.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { MessageAttachment } from './MessageAttachment';
|
|
13
|
-
import type {
|
|
13
|
+
import type { MessagePartsInner } from './MessagePartsInner';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -36,11 +36,11 @@ export interface Message {
|
|
|
36
36
|
*/
|
|
37
37
|
role: string;
|
|
38
38
|
/**
|
|
39
|
-
* Message content parts
|
|
40
|
-
* @type {Array<
|
|
39
|
+
* Message content parts (text, tool invocations, reasoning, etc.)
|
|
40
|
+
* @type {Array<MessagePartsInner>}
|
|
41
41
|
* @memberof Message
|
|
42
42
|
*/
|
|
43
|
-
parts: Array<
|
|
43
|
+
parts: Array<MessagePartsInner>;
|
|
44
44
|
/**
|
|
45
45
|
* Message attachments with fresh signed GET URLs
|
|
46
46
|
* @type {Array<MessageAttachment>}
|
package/dist/models/Message.js
CHANGED
|
@@ -19,7 +19,7 @@ exports.MessageFromJSONTyped = MessageFromJSONTyped;
|
|
|
19
19
|
exports.MessageToJSON = MessageToJSON;
|
|
20
20
|
exports.MessageToJSONTyped = MessageToJSONTyped;
|
|
21
21
|
const MessageAttachment_1 = require("./MessageAttachment");
|
|
22
|
-
const
|
|
22
|
+
const MessagePartsInner_1 = require("./MessagePartsInner");
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the Message interface.
|
|
25
25
|
*/
|
|
@@ -49,7 +49,7 @@ function MessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'id': json['id'],
|
|
50
50
|
'chatId': json['chatId'],
|
|
51
51
|
'role': json['role'],
|
|
52
|
-
'parts': (json['parts'].map(
|
|
52
|
+
'parts': (json['parts'].map(MessagePartsInner_1.MessagePartsInnerFromJSON)),
|
|
53
53
|
'attachments': (json['attachments'].map(MessageAttachment_1.MessageAttachmentFromJSON)),
|
|
54
54
|
'createdAt': (new Date(json['createdAt'])),
|
|
55
55
|
'isLearningMoment': json['isLearningMoment'] == null ? undefined : json['isLearningMoment'],
|
|
@@ -66,7 +66,7 @@ function MessageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
66
|
'id': value['id'],
|
|
67
67
|
'chatId': value['chatId'],
|
|
68
68
|
'role': value['role'],
|
|
69
|
-
'parts': (value['parts'].map(
|
|
69
|
+
'parts': (value['parts'].map(MessagePartsInner_1.MessagePartsInnerToJSON)),
|
|
70
70
|
'attachments': (value['attachments'].map(MessageAttachment_1.MessageAttachmentToJSON)),
|
|
71
71
|
'createdAt': value['createdAt'].toISOString(),
|
|
72
72
|
'isLearningMoment': value['isLearningMoment'],
|
|
@@ -31,10 +31,7 @@ function MessagePartsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
31
|
if (json == null) {
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
34
|
-
return {
|
|
35
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
36
|
-
'text': json['text'] == null ? undefined : json['text'],
|
|
37
|
-
};
|
|
34
|
+
return Object.assign(Object.assign({}, json), { 'type': json['type'] == null ? undefined : json['type'], 'text': json['text'] == null ? undefined : json['text'] });
|
|
38
35
|
}
|
|
39
36
|
function MessagePartsInnerToJSON(json) {
|
|
40
37
|
return MessagePartsInnerToJSONTyped(json, false);
|
|
@@ -43,8 +40,5 @@ function MessagePartsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
43
40
|
if (value == null) {
|
|
44
41
|
return value;
|
|
45
42
|
}
|
|
46
|
-
return {
|
|
47
|
-
'type': value['type'],
|
|
48
|
-
'text': value['text'],
|
|
49
|
-
};
|
|
43
|
+
return Object.assign(Object.assign({}, value), { 'type': value['type'], 'text': value['text'] });
|
|
50
44
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export * from './LearningStreakResponse';
|
|
|
27
27
|
export * from './Message';
|
|
28
28
|
export * from './MessageAttachment';
|
|
29
29
|
export * from './MessageCountResponse';
|
|
30
|
-
export * from './
|
|
30
|
+
export * from './MessagePartsInner';
|
|
31
31
|
export * from './PaginatedChats';
|
|
32
32
|
export * from './PaginatedLearningMoments';
|
|
33
33
|
export * from './PaginatedMessages';
|
package/dist/models/index.js
CHANGED
|
@@ -45,7 +45,7 @@ __exportStar(require("./LearningStreakResponse"), exports);
|
|
|
45
45
|
__exportStar(require("./Message"), exports);
|
|
46
46
|
__exportStar(require("./MessageAttachment"), exports);
|
|
47
47
|
__exportStar(require("./MessageCountResponse"), exports);
|
|
48
|
-
__exportStar(require("./
|
|
48
|
+
__exportStar(require("./MessagePartsInner"), exports);
|
|
49
49
|
__exportStar(require("./PaginatedChats"), exports);
|
|
50
50
|
__exportStar(require("./PaginatedLearningMoments"), exports);
|
|
51
51
|
__exportStar(require("./PaginatedMessages"), exports);
|