@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 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
- - [MessagePart](docs/MessagePart.md)
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 { MessagePart } from './MessagePart';
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<MessagePart>}
39
+ * Message content parts (text, tool invocations, reasoning, etc.)
40
+ * @type {Array<MessagePartsInner>}
41
41
  * @memberof Message
42
42
  */
43
- parts: Array<MessagePart>;
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 { MessagePartFromJSON, MessagePartToJSON, } from './MessagePart';
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(MessagePartFromJSON)),
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(MessagePartToJSON)),
62
+ 'parts': (value['parts'].map(MessagePartsInnerToJSON)),
63
63
  'attachments': (value['attachments'].map(MessageAttachmentToJSON)),
64
64
  'createdAt': value['createdAt'].toISOString(),
65
65
  'isLearningMoment': value['isLearningMoment'],
@@ -15,6 +15,7 @@
15
15
  * @interface MessagePartsInner
16
16
  */
17
17
  export interface MessagePartsInner {
18
+ [key: string]: any | any;
18
19
  /**
19
20
  *
20
21
  * @type {string}
@@ -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 './MessagePart';
30
+ export * from './MessagePartsInner';
31
31
  export * from './PaginatedChats';
32
32
  export * from './PaginatedLearningMoments';
33
33
  export * from './PaginatedMessages';
@@ -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 './MessagePart';
32
+ export * from './MessagePartsInner';
33
33
  export * from './PaginatedChats';
34
34
  export * from './PaginatedLearningMoments';
35
35
  export * from './PaginatedMessages';
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { MessageAttachment } from './MessageAttachment';
13
- import type { MessagePart } from './MessagePart';
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<MessagePart>}
39
+ * Message content parts (text, tool invocations, reasoning, etc.)
40
+ * @type {Array<MessagePartsInner>}
41
41
  * @memberof Message
42
42
  */
43
- parts: Array<MessagePart>;
43
+ parts: Array<MessagePartsInner>;
44
44
  /**
45
45
  * Message attachments with fresh signed GET URLs
46
46
  * @type {Array<MessageAttachment>}
@@ -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 MessagePart_1 = require("./MessagePart");
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(MessagePart_1.MessagePartFromJSON)),
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(MessagePart_1.MessagePartToJSON)),
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'],
@@ -15,6 +15,7 @@
15
15
  * @interface MessagePartsInner
16
16
  */
17
17
  export interface MessagePartsInner {
18
+ [key: string]: any | any;
18
19
  /**
19
20
  *
20
21
  * @type {string}
@@ -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
  }
@@ -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 './MessagePart';
30
+ export * from './MessagePartsInner';
31
31
  export * from './PaginatedChats';
32
32
  export * from './PaginatedLearningMoments';
33
33
  export * from './PaginatedMessages';
@@ -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("./MessagePart"), exports);
48
+ __exportStar(require("./MessagePartsInner"), exports);
49
49
  __exportStar(require("./PaginatedChats"), exports);
50
50
  __exportStar(require("./PaginatedLearningMoments"), exports);
51
51
  __exportStar(require("./PaginatedMessages"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@instructure/athena-api-client",
3
3
  "private": false,
4
- "version": "1.0.13",
4
+ "version": "1.0.14",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {