@instructure/athena-api-client 4.2.0 → 4.3.0
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 +4 -0
- package/dist/apis/AdminApi.d.ts +35 -5
- package/dist/apis/AdminApi.js +96 -4
- package/dist/esm/apis/AdminApi.d.ts +35 -5
- package/dist/esm/apis/AdminApi.js +97 -5
- package/dist/esm/models/AdminConceptDiagram.d.ts +6 -0
- package/dist/esm/models/AdminConceptDiagram.js +4 -0
- package/dist/esm/models/AdminConceptDiagramDetail.d.ts +6 -0
- package/dist/esm/models/AdminConceptDiagramDetail.js +4 -0
- package/dist/esm/models/AdminConceptImage.d.ts +6 -0
- package/dist/esm/models/AdminConceptImage.js +4 -0
- package/dist/esm/models/AdminConceptImageDetail.d.ts +6 -0
- package/dist/esm/models/AdminConceptImageDetail.js +4 -0
- package/dist/esm/models/AdminConceptMediaJob.d.ts +4 -3
- package/dist/esm/models/AdminConceptMediaJob.js +2 -1
- package/dist/esm/models/AdminReviseConceptDiagramRequest.d.ts +44 -0
- package/dist/esm/models/AdminReviseConceptDiagramRequest.js +47 -0
- package/dist/esm/models/AdminReviseConceptImageRequest.d.ts +38 -0
- package/dist/esm/models/AdminReviseConceptImageRequest.js +45 -0
- package/dist/esm/models/AdminShownConceptDiagram.d.ts +6 -0
- package/dist/esm/models/AdminShownConceptDiagram.js +4 -0
- package/dist/esm/models/AdminShownConceptImage.d.ts +6 -0
- package/dist/esm/models/AdminShownConceptImage.js +4 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/AdminConceptDiagram.d.ts +6 -0
- package/dist/models/AdminConceptDiagram.js +4 -0
- package/dist/models/AdminConceptDiagramDetail.d.ts +6 -0
- package/dist/models/AdminConceptDiagramDetail.js +4 -0
- package/dist/models/AdminConceptImage.d.ts +6 -0
- package/dist/models/AdminConceptImage.js +4 -0
- package/dist/models/AdminConceptImageDetail.d.ts +6 -0
- package/dist/models/AdminConceptImageDetail.js +4 -0
- package/dist/models/AdminConceptMediaJob.d.ts +4 -3
- package/dist/models/AdminConceptMediaJob.js +2 -1
- package/dist/models/AdminReviseConceptDiagramRequest.d.ts +44 -0
- package/dist/models/AdminReviseConceptDiagramRequest.js +54 -0
- package/dist/models/AdminReviseConceptImageRequest.d.ts +38 -0
- package/dist/models/AdminReviseConceptImageRequest.js +52 -0
- package/dist/models/AdminShownConceptDiagram.d.ts +6 -0
- package/dist/models/AdminShownConceptDiagram.js +4 -0
- package/dist/models/AdminShownConceptImage.d.ts +6 -0
- package/dist/models/AdminShownConceptImage.js +4 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfAdminReviseConceptDiagramRequest = instanceOfAdminReviseConceptDiagramRequest;
|
|
17
|
+
exports.AdminReviseConceptDiagramRequestFromJSON = AdminReviseConceptDiagramRequestFromJSON;
|
|
18
|
+
exports.AdminReviseConceptDiagramRequestFromJSONTyped = AdminReviseConceptDiagramRequestFromJSONTyped;
|
|
19
|
+
exports.AdminReviseConceptDiagramRequestToJSON = AdminReviseConceptDiagramRequestToJSON;
|
|
20
|
+
exports.AdminReviseConceptDiagramRequestToJSONTyped = AdminReviseConceptDiagramRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminReviseConceptDiagramRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminReviseConceptDiagramRequest(value) {
|
|
25
|
+
if (!('instructions' in value) || value['instructions'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AdminReviseConceptDiagramRequestFromJSON(json) {
|
|
30
|
+
return AdminReviseConceptDiagramRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AdminReviseConceptDiagramRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'instructions': json['instructions'],
|
|
38
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
39
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function AdminReviseConceptDiagramRequestToJSON(json) {
|
|
43
|
+
return AdminReviseConceptDiagramRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function AdminReviseConceptDiagramRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'instructions': value['instructions'],
|
|
51
|
+
'title': value['title'],
|
|
52
|
+
'description': value['description'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 AdminReviseConceptImageRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminReviseConceptImageRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Only what should change, in plain words. The new image is made from the revised image itself with these changes applied and everything else kept. Recorded on the new revision as revisionInstructions.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminReviseConceptImageRequest
|
|
22
|
+
*/
|
|
23
|
+
instructions: string;
|
|
24
|
+
/**
|
|
25
|
+
* Alt text for the new revision. Defaults to the original's; set it when the changes make that inaccurate.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminReviseConceptImageRequest
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AdminReviseConceptImageRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAdminReviseConceptImageRequest(value: object): value is AdminReviseConceptImageRequest;
|
|
35
|
+
export declare function AdminReviseConceptImageRequestFromJSON(json: any): AdminReviseConceptImageRequest;
|
|
36
|
+
export declare function AdminReviseConceptImageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminReviseConceptImageRequest;
|
|
37
|
+
export declare function AdminReviseConceptImageRequestToJSON(json: any): AdminReviseConceptImageRequest;
|
|
38
|
+
export declare function AdminReviseConceptImageRequestToJSONTyped(value?: AdminReviseConceptImageRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfAdminReviseConceptImageRequest = instanceOfAdminReviseConceptImageRequest;
|
|
17
|
+
exports.AdminReviseConceptImageRequestFromJSON = AdminReviseConceptImageRequestFromJSON;
|
|
18
|
+
exports.AdminReviseConceptImageRequestFromJSONTyped = AdminReviseConceptImageRequestFromJSONTyped;
|
|
19
|
+
exports.AdminReviseConceptImageRequestToJSON = AdminReviseConceptImageRequestToJSON;
|
|
20
|
+
exports.AdminReviseConceptImageRequestToJSONTyped = AdminReviseConceptImageRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminReviseConceptImageRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminReviseConceptImageRequest(value) {
|
|
25
|
+
if (!('instructions' in value) || value['instructions'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AdminReviseConceptImageRequestFromJSON(json) {
|
|
30
|
+
return AdminReviseConceptImageRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AdminReviseConceptImageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'instructions': json['instructions'],
|
|
38
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AdminReviseConceptImageRequestToJSON(json) {
|
|
42
|
+
return AdminReviseConceptImageRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AdminReviseConceptImageRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'instructions': value['instructions'],
|
|
50
|
+
'description': value['description'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -151,6 +151,12 @@ export interface AdminShownConceptDiagram {
|
|
|
151
151
|
* @memberof AdminShownConceptDiagram
|
|
152
152
|
*/
|
|
153
153
|
revisesDiagramId: string | null;
|
|
154
|
+
/**
|
|
155
|
+
* The changes an admin asked for when this diagram was revised from the previous version (revisesDiagramId) by editing it, with everything else kept. Null for a fresh diagram and for a regeneration from a rewritten brief.
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof AdminShownConceptDiagram
|
|
158
|
+
*/
|
|
159
|
+
revisionInstructions: string | null;
|
|
154
160
|
/**
|
|
155
161
|
*
|
|
156
162
|
* @type {string}
|
|
@@ -86,6 +86,8 @@ function instanceOfAdminShownConceptDiagram(value) {
|
|
|
86
86
|
return false;
|
|
87
87
|
if (!('revisesDiagramId' in value) || value['revisesDiagramId'] === undefined)
|
|
88
88
|
return false;
|
|
89
|
+
if (!('revisionInstructions' in value) || value['revisionInstructions'] === undefined)
|
|
90
|
+
return false;
|
|
89
91
|
if (!('title' in value) || value['title'] === undefined)
|
|
90
92
|
return false;
|
|
91
93
|
if (!('effort' in value) || value['effort'] === undefined)
|
|
@@ -138,6 +140,7 @@ function AdminShownConceptDiagramFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
138
140
|
'costUsd': json['costUsd'],
|
|
139
141
|
'description': json['description'],
|
|
140
142
|
'revisesDiagramId': json['revisesDiagramId'],
|
|
143
|
+
'revisionInstructions': json['revisionInstructions'],
|
|
141
144
|
'title': json['title'],
|
|
142
145
|
'effort': json['effort'],
|
|
143
146
|
'brief': json['brief'],
|
|
@@ -180,6 +183,7 @@ function AdminShownConceptDiagramToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
180
183
|
'costUsd': value['costUsd'],
|
|
181
184
|
'description': value['description'],
|
|
182
185
|
'revisesDiagramId': value['revisesDiagramId'],
|
|
186
|
+
'revisionInstructions': value['revisionInstructions'],
|
|
183
187
|
'title': value['title'],
|
|
184
188
|
'effort': value['effort'],
|
|
185
189
|
'brief': value['brief'],
|
|
@@ -151,6 +151,12 @@ export interface AdminShownConceptImage {
|
|
|
151
151
|
* @memberof AdminShownConceptImage
|
|
152
152
|
*/
|
|
153
153
|
revisesImageId: string | null;
|
|
154
|
+
/**
|
|
155
|
+
* The changes an admin asked for when this image was revised from the previous version (revisesImageId) by editing it, with everything else kept. Null for a fresh image and for a regeneration from a rewritten prompt.
|
|
156
|
+
* @type {string}
|
|
157
|
+
* @memberof AdminShownConceptImage
|
|
158
|
+
*/
|
|
159
|
+
revisionInstructions: string | null;
|
|
154
160
|
/**
|
|
155
161
|
*
|
|
156
162
|
* @type {string}
|
|
@@ -86,6 +86,8 @@ function instanceOfAdminShownConceptImage(value) {
|
|
|
86
86
|
return false;
|
|
87
87
|
if (!('revisesImageId' in value) || value['revisesImageId'] === undefined)
|
|
88
88
|
return false;
|
|
89
|
+
if (!('revisionInstructions' in value) || value['revisionInstructions'] === undefined)
|
|
90
|
+
return false;
|
|
89
91
|
if (!('quality' in value) || value['quality'] === undefined)
|
|
90
92
|
return false;
|
|
91
93
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
@@ -144,6 +146,7 @@ function AdminShownConceptImageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
144
146
|
'costUsd': json['costUsd'],
|
|
145
147
|
'description': json['description'],
|
|
146
148
|
'revisesImageId': json['revisesImageId'],
|
|
149
|
+
'revisionInstructions': json['revisionInstructions'],
|
|
147
150
|
'quality': json['quality'],
|
|
148
151
|
'mimeType': json['mimeType'],
|
|
149
152
|
'width': json['width'],
|
|
@@ -189,6 +192,7 @@ function AdminShownConceptImageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
189
192
|
'costUsd': value['costUsd'],
|
|
190
193
|
'description': value['description'],
|
|
191
194
|
'revisesImageId': value['revisesImageId'],
|
|
195
|
+
'revisionInstructions': value['revisionInstructions'],
|
|
192
196
|
'quality': value['quality'],
|
|
193
197
|
'mimeType': value['mimeType'],
|
|
194
198
|
'width': value['width'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -53,6 +53,8 @@ export * from './AdminQuizSourceMaterial';
|
|
|
53
53
|
export * from './AdminRegenerateConceptDiagramRequest';
|
|
54
54
|
export * from './AdminRegenerateConceptImageRequest';
|
|
55
55
|
export * from './AdminResetLearningDataResponse';
|
|
56
|
+
export * from './AdminReviseConceptDiagramRequest';
|
|
57
|
+
export * from './AdminReviseConceptImageRequest';
|
|
56
58
|
export * from './AdminShowConceptMediaRequest';
|
|
57
59
|
export * from './AdminShownConceptDiagram';
|
|
58
60
|
export * from './AdminShownConceptImage';
|
package/dist/models/index.js
CHANGED
|
@@ -71,6 +71,8 @@ __exportStar(require("./AdminQuizSourceMaterial"), exports);
|
|
|
71
71
|
__exportStar(require("./AdminRegenerateConceptDiagramRequest"), exports);
|
|
72
72
|
__exportStar(require("./AdminRegenerateConceptImageRequest"), exports);
|
|
73
73
|
__exportStar(require("./AdminResetLearningDataResponse"), exports);
|
|
74
|
+
__exportStar(require("./AdminReviseConceptDiagramRequest"), exports);
|
|
75
|
+
__exportStar(require("./AdminReviseConceptImageRequest"), exports);
|
|
74
76
|
__exportStar(require("./AdminShowConceptMediaRequest"), exports);
|
|
75
77
|
__exportStar(require("./AdminShownConceptDiagram"), exports);
|
|
76
78
|
__exportStar(require("./AdminShownConceptImage"), exports);
|