@instructure/athena-api-client 2.10.0 → 2.11.1

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.
@@ -93,6 +93,12 @@ export interface Chat {
93
93
  * @memberof Chat
94
94
  */
95
95
  forReview: boolean;
96
+ /**
97
+ * Optional taxonomy ID the chat is scoped to
98
+ * @type {string}
99
+ * @memberof Chat
100
+ */
101
+ taxonomyId: string | null;
96
102
  }
97
103
  /**
98
104
  * @export
@@ -48,6 +48,8 @@ export function instanceOfChat(value) {
48
48
  return false;
49
49
  if (!('forReview' in value) || value['forReview'] === undefined)
50
50
  return false;
51
+ if (!('taxonomyId' in value) || value['taxonomyId'] === undefined)
52
+ return false;
51
53
  return true;
52
54
  }
53
55
  export function ChatFromJSON(json) {
@@ -71,6 +73,7 @@ export function ChatFromJSONTyped(json, ignoreDiscriminator) {
71
73
  'goal': json['goal'],
72
74
  'goalAchieved': json['goalAchieved'],
73
75
  'forReview': json['forReview'],
76
+ 'taxonomyId': json['taxonomyId'],
74
77
  };
75
78
  }
76
79
  export function ChatToJSON(json) {
@@ -94,5 +97,6 @@ export function ChatToJSONTyped(value, ignoreDiscriminator = false) {
94
97
  'goal': value['goal'],
95
98
  'goalAchieved': value['goalAchieved'],
96
99
  'forReview': value['forReview'],
100
+ 'taxonomyId': value['taxonomyId'],
97
101
  };
98
102
  }
@@ -54,6 +54,12 @@ export interface ChatRequest {
54
54
  * @memberof ChatRequest
55
55
  */
56
56
  quizContext?: ChatRequestQuizContext;
57
+ /**
58
+ * Optional taxonomy ID to scope this chat to a taxonomy. Only applied when a new chat is created. Requires an active enrollment.
59
+ * @type {string}
60
+ * @memberof ChatRequest
61
+ */
62
+ taxonomyId?: string;
57
63
  }
58
64
  /**
59
65
  * Check if a given object implements the ChatRequest interface.
@@ -38,6 +38,7 @@ export function ChatRequestFromJSONTyped(json, ignoreDiscriminator) {
38
38
  'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(ChatRequestAttachmentsInnerFromJSON)),
39
39
  'externalFileUrl': json['externalFileUrl'] == null ? undefined : ChatRequestExternalFileUrlFromJSON(json['externalFileUrl']),
40
40
  'quizContext': json['quizContext'] == null ? undefined : ChatRequestQuizContextFromJSON(json['quizContext']),
41
+ 'taxonomyId': json['taxonomyId'] == null ? undefined : json['taxonomyId'],
41
42
  };
42
43
  }
43
44
  export function ChatRequestToJSON(json) {
@@ -54,5 +55,6 @@ export function ChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
54
55
  'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(ChatRequestAttachmentsInnerToJSON)),
55
56
  'externalFileUrl': ChatRequestExternalFileUrlToJSON(value['externalFileUrl']),
56
57
  'quizContext': ChatRequestQuizContextToJSON(value['quizContext']),
58
+ 'taxonomyId': value['taxonomyId'],
57
59
  };
58
60
  }
@@ -93,6 +93,12 @@ export interface Chat {
93
93
  * @memberof Chat
94
94
  */
95
95
  forReview: boolean;
96
+ /**
97
+ * Optional taxonomy ID the chat is scoped to
98
+ * @type {string}
99
+ * @memberof Chat
100
+ */
101
+ taxonomyId: string | null;
96
102
  }
97
103
  /**
98
104
  * @export
@@ -56,6 +56,8 @@ function instanceOfChat(value) {
56
56
  return false;
57
57
  if (!('forReview' in value) || value['forReview'] === undefined)
58
58
  return false;
59
+ if (!('taxonomyId' in value) || value['taxonomyId'] === undefined)
60
+ return false;
59
61
  return true;
60
62
  }
61
63
  function ChatFromJSON(json) {
@@ -79,6 +81,7 @@ function ChatFromJSONTyped(json, ignoreDiscriminator) {
79
81
  'goal': json['goal'],
80
82
  'goalAchieved': json['goalAchieved'],
81
83
  'forReview': json['forReview'],
84
+ 'taxonomyId': json['taxonomyId'],
82
85
  };
83
86
  }
84
87
  function ChatToJSON(json) {
@@ -102,5 +105,6 @@ function ChatToJSONTyped(value, ignoreDiscriminator = false) {
102
105
  'goal': value['goal'],
103
106
  'goalAchieved': value['goalAchieved'],
104
107
  'forReview': value['forReview'],
108
+ 'taxonomyId': value['taxonomyId'],
105
109
  };
106
110
  }
@@ -54,6 +54,12 @@ export interface ChatRequest {
54
54
  * @memberof ChatRequest
55
55
  */
56
56
  quizContext?: ChatRequestQuizContext;
57
+ /**
58
+ * Optional taxonomy ID to scope this chat to a taxonomy. Only applied when a new chat is created. Requires an active enrollment.
59
+ * @type {string}
60
+ * @memberof ChatRequest
61
+ */
62
+ taxonomyId?: string;
57
63
  }
58
64
  /**
59
65
  * Check if a given object implements the ChatRequest interface.
@@ -45,6 +45,7 @@ function ChatRequestFromJSONTyped(json, ignoreDiscriminator) {
45
45
  'attachments': json['attachments'] == null ? undefined : (json['attachments'].map(ChatRequestAttachmentsInner_1.ChatRequestAttachmentsInnerFromJSON)),
46
46
  'externalFileUrl': json['externalFileUrl'] == null ? undefined : (0, ChatRequestExternalFileUrl_1.ChatRequestExternalFileUrlFromJSON)(json['externalFileUrl']),
47
47
  'quizContext': json['quizContext'] == null ? undefined : (0, ChatRequestQuizContext_1.ChatRequestQuizContextFromJSON)(json['quizContext']),
48
+ 'taxonomyId': json['taxonomyId'] == null ? undefined : json['taxonomyId'],
48
49
  };
49
50
  }
50
51
  function ChatRequestToJSON(json) {
@@ -61,5 +62,6 @@ function ChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
61
62
  'attachments': value['attachments'] == null ? undefined : (value['attachments'].map(ChatRequestAttachmentsInner_1.ChatRequestAttachmentsInnerToJSON)),
62
63
  'externalFileUrl': (0, ChatRequestExternalFileUrl_1.ChatRequestExternalFileUrlToJSON)(value['externalFileUrl']),
63
64
  'quizContext': (0, ChatRequestQuizContext_1.ChatRequestQuizContextToJSON)(value['quizContext']),
65
+ 'taxonomyId': value['taxonomyId'],
64
66
  };
65
67
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@instructure/athena-api-client",
3
3
  "private": false,
4
- "version": "2.10.0",
4
+ "version": "2.11.1",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {