@instructure/athena-api-client 3.46.2 → 4.0.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.
Files changed (94) hide show
  1. package/README.md +37 -0
  2. package/dist/apis/AdminApi.d.ts +310 -1
  3. package/dist/apis/AdminApi.js +850 -20
  4. package/dist/esm/apis/AdminApi.d.ts +310 -1
  5. package/dist/esm/apis/AdminApi.js +850 -20
  6. package/dist/esm/models/AdminConceptDiagram.d.ts +165 -0
  7. package/dist/esm/models/AdminConceptDiagram.js +136 -0
  8. package/dist/esm/models/AdminConceptDiagramDetail.d.ts +203 -0
  9. package/dist/esm/models/AdminConceptDiagramDetail.js +162 -0
  10. package/dist/esm/models/AdminConceptImage.d.ts +183 -0
  11. package/dist/esm/models/AdminConceptImage.js +148 -0
  12. package/dist/esm/models/AdminConceptImageDetail.d.ts +221 -0
  13. package/dist/esm/models/AdminConceptImageDetail.js +174 -0
  14. package/dist/esm/models/AdminConceptMediaActor.d.ts +38 -0
  15. package/dist/esm/models/AdminConceptMediaActor.js +47 -0
  16. package/dist/esm/models/AdminConceptMediaConcept.d.ts +38 -0
  17. package/dist/esm/models/AdminConceptMediaConcept.js +47 -0
  18. package/dist/esm/models/AdminConceptMediaHistoryEntry.d.ts +92 -0
  19. package/dist/esm/models/AdminConceptMediaHistoryEntry.js +87 -0
  20. package/dist/esm/models/AdminConceptMediaJob.d.ts +157 -0
  21. package/dist/esm/models/AdminConceptMediaJob.js +139 -0
  22. package/dist/esm/models/AdminConceptMediaRevision.d.ts +67 -0
  23. package/dist/esm/models/AdminConceptMediaRevision.js +70 -0
  24. package/dist/esm/models/AdminConceptSearchResult.d.ts +56 -0
  25. package/dist/esm/models/AdminConceptSearchResult.js +59 -0
  26. package/dist/esm/models/AdminGenerateConceptDiagramRequest.d.ts +56 -0
  27. package/dist/esm/models/AdminGenerateConceptDiagramRequest.js +51 -0
  28. package/dist/esm/models/AdminGenerateConceptImageRequest.d.ts +50 -0
  29. package/dist/esm/models/AdminGenerateConceptImageRequest.js +49 -0
  30. package/dist/esm/models/AdminGeneratedConceptDiagram.d.ts +219 -0
  31. package/dist/esm/models/AdminGeneratedConceptDiagram.js +175 -0
  32. package/dist/esm/models/AdminGeneratedConceptImage.d.ts +237 -0
  33. package/dist/esm/models/AdminGeneratedConceptImage.js +187 -0
  34. package/dist/esm/models/AdminPaginatedConceptDiagrams.d.ts +39 -0
  35. package/dist/esm/models/AdminPaginatedConceptDiagrams.js +48 -0
  36. package/dist/esm/models/AdminPaginatedConceptImages.d.ts +39 -0
  37. package/dist/esm/models/AdminPaginatedConceptImages.js +48 -0
  38. package/dist/esm/models/AdminRegenerateConceptDiagramRequest.d.ts +44 -0
  39. package/dist/esm/models/AdminRegenerateConceptDiagramRequest.js +47 -0
  40. package/dist/esm/models/AdminRegenerateConceptImageRequest.d.ts +38 -0
  41. package/dist/esm/models/AdminRegenerateConceptImageRequest.js +45 -0
  42. package/dist/esm/models/AdminShowConceptMediaRequest.d.ts +32 -0
  43. package/dist/esm/models/AdminShowConceptMediaRequest.js +41 -0
  44. package/dist/esm/models/AdminShownConceptDiagram.d.ts +215 -0
  45. package/dist/esm/models/AdminShownConceptDiagram.js +170 -0
  46. package/dist/esm/models/AdminShownConceptImage.d.ts +233 -0
  47. package/dist/esm/models/AdminShownConceptImage.js +182 -0
  48. package/dist/esm/models/index.d.ts +19 -0
  49. package/dist/esm/models/index.js +19 -0
  50. package/dist/models/AdminConceptDiagram.d.ts +165 -0
  51. package/dist/models/AdminConceptDiagram.js +144 -0
  52. package/dist/models/AdminConceptDiagramDetail.d.ts +203 -0
  53. package/dist/models/AdminConceptDiagramDetail.js +170 -0
  54. package/dist/models/AdminConceptImage.d.ts +183 -0
  55. package/dist/models/AdminConceptImage.js +156 -0
  56. package/dist/models/AdminConceptImageDetail.d.ts +221 -0
  57. package/dist/models/AdminConceptImageDetail.js +182 -0
  58. package/dist/models/AdminConceptMediaActor.d.ts +38 -0
  59. package/dist/models/AdminConceptMediaActor.js +54 -0
  60. package/dist/models/AdminConceptMediaConcept.d.ts +38 -0
  61. package/dist/models/AdminConceptMediaConcept.js +54 -0
  62. package/dist/models/AdminConceptMediaHistoryEntry.d.ts +92 -0
  63. package/dist/models/AdminConceptMediaHistoryEntry.js +95 -0
  64. package/dist/models/AdminConceptMediaJob.d.ts +157 -0
  65. package/dist/models/AdminConceptMediaJob.js +147 -0
  66. package/dist/models/AdminConceptMediaRevision.d.ts +67 -0
  67. package/dist/models/AdminConceptMediaRevision.js +78 -0
  68. package/dist/models/AdminConceptSearchResult.d.ts +56 -0
  69. package/dist/models/AdminConceptSearchResult.js +66 -0
  70. package/dist/models/AdminGenerateConceptDiagramRequest.d.ts +56 -0
  71. package/dist/models/AdminGenerateConceptDiagramRequest.js +58 -0
  72. package/dist/models/AdminGenerateConceptImageRequest.d.ts +50 -0
  73. package/dist/models/AdminGenerateConceptImageRequest.js +56 -0
  74. package/dist/models/AdminGeneratedConceptDiagram.d.ts +219 -0
  75. package/dist/models/AdminGeneratedConceptDiagram.js +183 -0
  76. package/dist/models/AdminGeneratedConceptImage.d.ts +237 -0
  77. package/dist/models/AdminGeneratedConceptImage.js +195 -0
  78. package/dist/models/AdminPaginatedConceptDiagrams.d.ts +39 -0
  79. package/dist/models/AdminPaginatedConceptDiagrams.js +55 -0
  80. package/dist/models/AdminPaginatedConceptImages.d.ts +39 -0
  81. package/dist/models/AdminPaginatedConceptImages.js +55 -0
  82. package/dist/models/AdminRegenerateConceptDiagramRequest.d.ts +44 -0
  83. package/dist/models/AdminRegenerateConceptDiagramRequest.js +54 -0
  84. package/dist/models/AdminRegenerateConceptImageRequest.d.ts +38 -0
  85. package/dist/models/AdminRegenerateConceptImageRequest.js +52 -0
  86. package/dist/models/AdminShowConceptMediaRequest.d.ts +32 -0
  87. package/dist/models/AdminShowConceptMediaRequest.js +48 -0
  88. package/dist/models/AdminShownConceptDiagram.d.ts +215 -0
  89. package/dist/models/AdminShownConceptDiagram.js +178 -0
  90. package/dist/models/AdminShownConceptImage.d.ts +233 -0
  91. package/dist/models/AdminShownConceptImage.js +190 -0
  92. package/dist/models/index.d.ts +19 -0
  93. package/dist/models/index.js +19 -0
  94. package/package.json +1 -1
@@ -0,0 +1,139 @@
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 { AdminConceptMediaConceptFromJSON, AdminConceptMediaConceptToJSON, } from './AdminConceptMediaConcept';
15
+ /**
16
+ * @export
17
+ */
18
+ export const AdminConceptMediaJobKindEnum = {
19
+ Image: 'image',
20
+ Diagram: 'diagram'
21
+ };
22
+ /**
23
+ * @export
24
+ */
25
+ export const AdminConceptMediaJobOperationEnum = {
26
+ Generate: 'generate',
27
+ Regenerate: 'regenerate'
28
+ };
29
+ /**
30
+ * @export
31
+ */
32
+ export const AdminConceptMediaJobStatusEnum = {
33
+ Pending: 'pending',
34
+ Running: 'running',
35
+ Succeeded: 'succeeded',
36
+ Failed: 'failed'
37
+ };
38
+ /**
39
+ * @export
40
+ */
41
+ export const AdminConceptMediaJobConceptResolutionEnum = {
42
+ Selected: 'selected',
43
+ MatchedExact: 'matched_exact',
44
+ MatchedSimilar: 'matched_similar',
45
+ Created: 'created'
46
+ };
47
+ /**
48
+ * @export
49
+ */
50
+ export const AdminConceptMediaJobErrorCodeEnum = {
51
+ OffTopic: 'off_topic',
52
+ ModerationBlocked: 'moderation_blocked',
53
+ Timeout: 'timeout',
54
+ NotFound: 'not_found',
55
+ GenerationFailed: 'generation_failed',
56
+ AuthoringFailed: 'authoring_failed',
57
+ SaveFailed: 'save_failed',
58
+ LimitReached: 'limit_reached',
59
+ InternalError: 'internal_error',
60
+ DeliveryFailed: 'delivery_failed'
61
+ };
62
+ /**
63
+ * Check if a given object implements the AdminConceptMediaJob interface.
64
+ */
65
+ export function instanceOfAdminConceptMediaJob(value) {
66
+ if (!('id' in value) || value['id'] === undefined)
67
+ return false;
68
+ if (!('kind' in value) || value['kind'] === undefined)
69
+ return false;
70
+ if (!('operation' in value) || value['operation'] === undefined)
71
+ return false;
72
+ if (!('status' in value) || value['status'] === undefined)
73
+ return false;
74
+ if (!('concept' in value) || value['concept'] === undefined)
75
+ return false;
76
+ if (!('conceptResolution' in value) || value['conceptResolution'] === undefined)
77
+ return false;
78
+ if (!('sourceMediaId' in value) || value['sourceMediaId'] === undefined)
79
+ return false;
80
+ if (!('resultMediaId' in value) || value['resultMediaId'] === undefined)
81
+ return false;
82
+ if (!('errorCode' in value) || value['errorCode'] === undefined)
83
+ return false;
84
+ if (!('errorMessage' in value) || value['errorMessage'] === undefined)
85
+ return false;
86
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
87
+ return false;
88
+ if (!('startedAt' in value) || value['startedAt'] === undefined)
89
+ return false;
90
+ if (!('finishedAt' in value) || value['finishedAt'] === undefined)
91
+ return false;
92
+ return true;
93
+ }
94
+ export function AdminConceptMediaJobFromJSON(json) {
95
+ return AdminConceptMediaJobFromJSONTyped(json, false);
96
+ }
97
+ export function AdminConceptMediaJobFromJSONTyped(json, ignoreDiscriminator) {
98
+ if (json == null) {
99
+ return json;
100
+ }
101
+ return {
102
+ 'id': json['id'],
103
+ 'kind': json['kind'],
104
+ 'operation': json['operation'],
105
+ 'status': json['status'],
106
+ 'concept': AdminConceptMediaConceptFromJSON(json['concept']),
107
+ 'conceptResolution': json['conceptResolution'],
108
+ 'sourceMediaId': json['sourceMediaId'],
109
+ 'resultMediaId': json['resultMediaId'],
110
+ 'errorCode': json['errorCode'],
111
+ 'errorMessage': json['errorMessage'],
112
+ 'createdAt': (new Date(json['createdAt'])),
113
+ 'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
114
+ 'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
115
+ };
116
+ }
117
+ export function AdminConceptMediaJobToJSON(json) {
118
+ return AdminConceptMediaJobToJSONTyped(json, false);
119
+ }
120
+ export function AdminConceptMediaJobToJSONTyped(value, ignoreDiscriminator = false) {
121
+ if (value == null) {
122
+ return value;
123
+ }
124
+ return {
125
+ 'id': value['id'],
126
+ 'kind': value['kind'],
127
+ 'operation': value['operation'],
128
+ 'status': value['status'],
129
+ 'concept': AdminConceptMediaConceptToJSON(value['concept']),
130
+ 'conceptResolution': value['conceptResolution'],
131
+ 'sourceMediaId': value['sourceMediaId'],
132
+ 'resultMediaId': value['resultMediaId'],
133
+ 'errorCode': value['errorCode'],
134
+ 'errorMessage': value['errorMessage'],
135
+ 'createdAt': value['createdAt'].toISOString(),
136
+ 'startedAt': value['startedAt'] == null ? value['startedAt'] : value['startedAt'].toISOString(),
137
+ 'finishedAt': value['finishedAt'] == null ? value['finishedAt'] : value['finishedAt'].toISOString(),
138
+ };
139
+ }
@@ -0,0 +1,67 @@
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
+ * A row linked by revision lineage: a parent or a child.
14
+ * @export
15
+ * @interface AdminConceptMediaRevision
16
+ */
17
+ export interface AdminConceptMediaRevision {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdminConceptMediaRevision
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AdminConceptMediaRevision
28
+ */
29
+ state: AdminConceptMediaRevisionStateEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AdminConceptMediaRevision
34
+ */
35
+ origin: AdminConceptMediaRevisionOriginEnum;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof AdminConceptMediaRevision
40
+ */
41
+ createdAt: Date;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const AdminConceptMediaRevisionStateEnum: {
47
+ readonly Visible: "visible";
48
+ readonly Hidden: "hidden";
49
+ readonly Deleted: "deleted";
50
+ };
51
+ export type AdminConceptMediaRevisionStateEnum = typeof AdminConceptMediaRevisionStateEnum[keyof typeof AdminConceptMediaRevisionStateEnum];
52
+ /**
53
+ * @export
54
+ */
55
+ export declare const AdminConceptMediaRevisionOriginEnum: {
56
+ readonly Chat: "chat";
57
+ readonly Admin: "admin";
58
+ };
59
+ export type AdminConceptMediaRevisionOriginEnum = typeof AdminConceptMediaRevisionOriginEnum[keyof typeof AdminConceptMediaRevisionOriginEnum];
60
+ /**
61
+ * Check if a given object implements the AdminConceptMediaRevision interface.
62
+ */
63
+ export declare function instanceOfAdminConceptMediaRevision(value: object): value is AdminConceptMediaRevision;
64
+ export declare function AdminConceptMediaRevisionFromJSON(json: any): AdminConceptMediaRevision;
65
+ export declare function AdminConceptMediaRevisionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminConceptMediaRevision;
66
+ export declare function AdminConceptMediaRevisionToJSON(json: any): AdminConceptMediaRevision;
67
+ export declare function AdminConceptMediaRevisionToJSONTyped(value?: AdminConceptMediaRevision | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
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 AdminConceptMediaRevisionStateEnum = {
18
+ Visible: 'visible',
19
+ Hidden: 'hidden',
20
+ Deleted: 'deleted'
21
+ };
22
+ /**
23
+ * @export
24
+ */
25
+ export const AdminConceptMediaRevisionOriginEnum = {
26
+ Chat: 'chat',
27
+ Admin: 'admin'
28
+ };
29
+ /**
30
+ * Check if a given object implements the AdminConceptMediaRevision interface.
31
+ */
32
+ export function instanceOfAdminConceptMediaRevision(value) {
33
+ if (!('id' in value) || value['id'] === undefined)
34
+ return false;
35
+ if (!('state' in value) || value['state'] === undefined)
36
+ return false;
37
+ if (!('origin' in value) || value['origin'] === undefined)
38
+ return false;
39
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ export function AdminConceptMediaRevisionFromJSON(json) {
44
+ return AdminConceptMediaRevisionFromJSONTyped(json, false);
45
+ }
46
+ export function AdminConceptMediaRevisionFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'id': json['id'],
52
+ 'state': json['state'],
53
+ 'origin': json['origin'],
54
+ 'createdAt': (new Date(json['createdAt'])),
55
+ };
56
+ }
57
+ export function AdminConceptMediaRevisionToJSON(json) {
58
+ return AdminConceptMediaRevisionToJSONTyped(json, false);
59
+ }
60
+ export function AdminConceptMediaRevisionToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'id': value['id'],
66
+ 'state': value['state'],
67
+ 'origin': value['origin'],
68
+ 'createdAt': value['createdAt'].toISOString(),
69
+ };
70
+ }
@@ -0,0 +1,56 @@
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 AdminConceptSearchResult
16
+ */
17
+ export interface AdminConceptSearchResult {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdminConceptSearchResult
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AdminConceptSearchResult
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AdminConceptSearchResult
34
+ */
35
+ description: string;
36
+ /**
37
+ * Library images of this concept that are not deleted
38
+ * @type {number}
39
+ * @memberof AdminConceptSearchResult
40
+ */
41
+ imageCount: number;
42
+ /**
43
+ * Library diagrams of this concept that are not deleted
44
+ * @type {number}
45
+ * @memberof AdminConceptSearchResult
46
+ */
47
+ diagramCount: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the AdminConceptSearchResult interface.
51
+ */
52
+ export declare function instanceOfAdminConceptSearchResult(value: object): value is AdminConceptSearchResult;
53
+ export declare function AdminConceptSearchResultFromJSON(json: any): AdminConceptSearchResult;
54
+ export declare function AdminConceptSearchResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminConceptSearchResult;
55
+ export declare function AdminConceptSearchResultToJSON(json: any): AdminConceptSearchResult;
56
+ export declare function AdminConceptSearchResultToJSONTyped(value?: AdminConceptSearchResult | 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
+ * Check if a given object implements the AdminConceptSearchResult interface.
16
+ */
17
+ export function instanceOfAdminConceptSearchResult(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ if (!('description' in value) || value['description'] === undefined)
23
+ return false;
24
+ if (!('imageCount' in value) || value['imageCount'] === undefined)
25
+ return false;
26
+ if (!('diagramCount' in value) || value['diagramCount'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ export function AdminConceptSearchResultFromJSON(json) {
31
+ return AdminConceptSearchResultFromJSONTyped(json, false);
32
+ }
33
+ export function AdminConceptSearchResultFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'id': json['id'],
39
+ 'name': json['name'],
40
+ 'description': json['description'],
41
+ 'imageCount': json['imageCount'],
42
+ 'diagramCount': json['diagramCount'],
43
+ };
44
+ }
45
+ export function AdminConceptSearchResultToJSON(json) {
46
+ return AdminConceptSearchResultToJSONTyped(json, false);
47
+ }
48
+ export function AdminConceptSearchResultToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'id': value['id'],
54
+ 'name': value['name'],
55
+ 'description': value['description'],
56
+ 'imageCount': value['imageCount'],
57
+ 'diagramCount': value['diagramCount'],
58
+ };
59
+ }
@@ -0,0 +1,56 @@
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 AdminGenerateConceptDiagramRequest
16
+ */
17
+ export interface AdminGenerateConceptDiagramRequest {
18
+ /**
19
+ * The existing concept the diagram is filed under, as-is. Exactly one of conceptId and conceptName is required.
20
+ * @type {string}
21
+ * @memberof AdminGenerateConceptDiagramRequest
22
+ */
23
+ conceptId?: string;
24
+ /**
25
+ * A concept name, resolved the way learner generation resolves one: an exact (case-insensitive, normalized) name match, else the nearest concept within the dedup distance, else a new concept. The diagram is then filed under that concept exactly as with conceptId; conceptResolution in the response says which happened. Exactly one of conceptId and conceptName is required.
26
+ * @type {string}
27
+ * @memberof AdminGenerateConceptDiagramRequest
28
+ */
29
+ conceptName?: string;
30
+ /**
31
+ * The brief the authoring model draws from
32
+ * @type {string}
33
+ * @memberof AdminGenerateConceptDiagramRequest
34
+ */
35
+ instructions: string;
36
+ /**
37
+ * Diagram title. Defaults to the concept's name.
38
+ * @type {string}
39
+ * @memberof AdminGenerateConceptDiagramRequest
40
+ */
41
+ title?: string;
42
+ /**
43
+ * What the diagram shows, and what later library lookups match against. Defaults to the instructions.
44
+ * @type {string}
45
+ * @memberof AdminGenerateConceptDiagramRequest
46
+ */
47
+ description?: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the AdminGenerateConceptDiagramRequest interface.
51
+ */
52
+ export declare function instanceOfAdminGenerateConceptDiagramRequest(value: object): value is AdminGenerateConceptDiagramRequest;
53
+ export declare function AdminGenerateConceptDiagramRequestFromJSON(json: any): AdminGenerateConceptDiagramRequest;
54
+ export declare function AdminGenerateConceptDiagramRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminGenerateConceptDiagramRequest;
55
+ export declare function AdminGenerateConceptDiagramRequestToJSON(json: any): AdminGenerateConceptDiagramRequest;
56
+ export declare function AdminGenerateConceptDiagramRequestToJSONTyped(value?: AdminGenerateConceptDiagramRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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 AdminGenerateConceptDiagramRequest interface.
16
+ */
17
+ export function instanceOfAdminGenerateConceptDiagramRequest(value) {
18
+ if (!('instructions' in value) || value['instructions'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function AdminGenerateConceptDiagramRequestFromJSON(json) {
23
+ return AdminGenerateConceptDiagramRequestFromJSONTyped(json, false);
24
+ }
25
+ export function AdminGenerateConceptDiagramRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'conceptId': json['conceptId'] == null ? undefined : json['conceptId'],
31
+ 'conceptName': json['conceptName'] == null ? undefined : json['conceptName'],
32
+ 'instructions': json['instructions'],
33
+ 'title': json['title'] == null ? undefined : json['title'],
34
+ 'description': json['description'] == null ? undefined : json['description'],
35
+ };
36
+ }
37
+ export function AdminGenerateConceptDiagramRequestToJSON(json) {
38
+ return AdminGenerateConceptDiagramRequestToJSONTyped(json, false);
39
+ }
40
+ export function AdminGenerateConceptDiagramRequestToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'conceptId': value['conceptId'],
46
+ 'conceptName': value['conceptName'],
47
+ 'instructions': value['instructions'],
48
+ 'title': value['title'],
49
+ 'description': value['description'],
50
+ };
51
+ }
@@ -0,0 +1,50 @@
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 AdminGenerateConceptImageRequest
16
+ */
17
+ export interface AdminGenerateConceptImageRequest {
18
+ /**
19
+ * The existing concept the image is filed under, as-is. Exactly one of conceptId and conceptName is required.
20
+ * @type {string}
21
+ * @memberof AdminGenerateConceptImageRequest
22
+ */
23
+ conceptId?: string;
24
+ /**
25
+ * A concept name, resolved the way learner generation resolves one: an exact (case-insensitive, normalized) name match, else the nearest concept within the dedup distance, else a new concept. The image is then filed under that concept exactly as with conceptId; conceptResolution in the response says which happened. Exactly one of conceptId and conceptName is required.
26
+ * @type {string}
27
+ * @memberof AdminGenerateConceptImageRequest
28
+ */
29
+ conceptName?: string;
30
+ /**
31
+ * What the image should show. Sent to the image model after the fixed style preamble.
32
+ * @type {string}
33
+ * @memberof AdminGenerateConceptImageRequest
34
+ */
35
+ instructions: string;
36
+ /**
37
+ * Alt text, and what later library lookups match against. Defaults to the instructions.
38
+ * @type {string}
39
+ * @memberof AdminGenerateConceptImageRequest
40
+ */
41
+ description?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the AdminGenerateConceptImageRequest interface.
45
+ */
46
+ export declare function instanceOfAdminGenerateConceptImageRequest(value: object): value is AdminGenerateConceptImageRequest;
47
+ export declare function AdminGenerateConceptImageRequestFromJSON(json: any): AdminGenerateConceptImageRequest;
48
+ export declare function AdminGenerateConceptImageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminGenerateConceptImageRequest;
49
+ export declare function AdminGenerateConceptImageRequestToJSON(json: any): AdminGenerateConceptImageRequest;
50
+ export declare function AdminGenerateConceptImageRequestToJSONTyped(value?: AdminGenerateConceptImageRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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 AdminGenerateConceptImageRequest interface.
16
+ */
17
+ export function instanceOfAdminGenerateConceptImageRequest(value) {
18
+ if (!('instructions' in value) || value['instructions'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function AdminGenerateConceptImageRequestFromJSON(json) {
23
+ return AdminGenerateConceptImageRequestFromJSONTyped(json, false);
24
+ }
25
+ export function AdminGenerateConceptImageRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'conceptId': json['conceptId'] == null ? undefined : json['conceptId'],
31
+ 'conceptName': json['conceptName'] == null ? undefined : json['conceptName'],
32
+ 'instructions': json['instructions'],
33
+ 'description': json['description'] == null ? undefined : json['description'],
34
+ };
35
+ }
36
+ export function AdminGenerateConceptImageRequestToJSON(json) {
37
+ return AdminGenerateConceptImageRequestToJSONTyped(json, false);
38
+ }
39
+ export function AdminGenerateConceptImageRequestToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'conceptId': value['conceptId'],
45
+ 'conceptName': value['conceptName'],
46
+ 'instructions': value['instructions'],
47
+ 'description': value['description'],
48
+ };
49
+ }