@instructure/athena-api-client 3.46.1 → 3.47.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 +37 -0
- package/dist/apis/AdminApi.d.ts +296 -1
- package/dist/apis/AdminApi.js +809 -20
- package/dist/esm/apis/AdminApi.d.ts +296 -1
- package/dist/esm/apis/AdminApi.js +809 -20
- package/dist/esm/models/AdminConceptDiagram.d.ts +165 -0
- package/dist/esm/models/AdminConceptDiagram.js +136 -0
- package/dist/esm/models/AdminConceptDiagramDetail.d.ts +203 -0
- package/dist/esm/models/AdminConceptDiagramDetail.js +162 -0
- package/dist/esm/models/AdminConceptImage.d.ts +183 -0
- package/dist/esm/models/AdminConceptImage.js +148 -0
- package/dist/esm/models/AdminConceptImageDetail.d.ts +221 -0
- package/dist/esm/models/AdminConceptImageDetail.js +174 -0
- package/dist/esm/models/AdminConceptMediaActor.d.ts +38 -0
- package/dist/esm/models/AdminConceptMediaActor.js +47 -0
- package/dist/esm/models/AdminConceptMediaConcept.d.ts +38 -0
- package/dist/esm/models/AdminConceptMediaConcept.js +47 -0
- package/dist/esm/models/AdminConceptMediaHistoryEntry.d.ts +92 -0
- package/dist/esm/models/AdminConceptMediaHistoryEntry.js +87 -0
- package/dist/esm/models/AdminConceptMediaRevision.d.ts +67 -0
- package/dist/esm/models/AdminConceptMediaRevision.js +70 -0
- package/dist/esm/models/AdminConceptSearchResult.d.ts +56 -0
- package/dist/esm/models/AdminConceptSearchResult.js +59 -0
- package/dist/esm/models/AdminGenerateConceptDiagramRequest.d.ts +56 -0
- package/dist/esm/models/AdminGenerateConceptDiagramRequest.js +51 -0
- package/dist/esm/models/AdminGenerateConceptImageRequest.d.ts +50 -0
- package/dist/esm/models/AdminGenerateConceptImageRequest.js +49 -0
- package/dist/esm/models/AdminGeneratedConceptDiagram.d.ts +219 -0
- package/dist/esm/models/AdminGeneratedConceptDiagram.js +175 -0
- package/dist/esm/models/AdminGeneratedConceptImage.d.ts +237 -0
- package/dist/esm/models/AdminGeneratedConceptImage.js +187 -0
- package/dist/esm/models/AdminPaginatedConceptDiagrams.d.ts +39 -0
- package/dist/esm/models/AdminPaginatedConceptDiagrams.js +48 -0
- package/dist/esm/models/AdminPaginatedConceptImages.d.ts +39 -0
- package/dist/esm/models/AdminPaginatedConceptImages.js +48 -0
- package/dist/esm/models/AdminRegenerateConceptDiagramRequest.d.ts +44 -0
- package/dist/esm/models/AdminRegenerateConceptDiagramRequest.js +47 -0
- package/dist/esm/models/AdminRegenerateConceptImageRequest.d.ts +38 -0
- package/dist/esm/models/AdminRegenerateConceptImageRequest.js +45 -0
- package/dist/esm/models/AdminShowConceptMediaRequest.d.ts +32 -0
- package/dist/esm/models/AdminShowConceptMediaRequest.js +41 -0
- package/dist/esm/models/AdminShownConceptDiagram.d.ts +215 -0
- package/dist/esm/models/AdminShownConceptDiagram.js +170 -0
- package/dist/esm/models/AdminShownConceptImage.d.ts +233 -0
- package/dist/esm/models/AdminShownConceptImage.js +182 -0
- package/dist/esm/models/index.d.ts +20 -0
- package/dist/esm/models/index.js +20 -0
- package/dist/models/AdminConceptDiagram.d.ts +165 -0
- package/dist/models/AdminConceptDiagram.js +144 -0
- package/dist/models/AdminConceptDiagramDetail.d.ts +203 -0
- package/dist/models/AdminConceptDiagramDetail.js +170 -0
- package/dist/models/AdminConceptImage.d.ts +183 -0
- package/dist/models/AdminConceptImage.js +156 -0
- package/dist/models/AdminConceptImageDetail.d.ts +221 -0
- package/dist/models/AdminConceptImageDetail.js +182 -0
- package/dist/models/AdminConceptMediaActor.d.ts +38 -0
- package/dist/models/AdminConceptMediaActor.js +54 -0
- package/dist/models/AdminConceptMediaConcept.d.ts +38 -0
- package/dist/models/AdminConceptMediaConcept.js +54 -0
- package/dist/models/AdminConceptMediaHistoryEntry.d.ts +92 -0
- package/dist/models/AdminConceptMediaHistoryEntry.js +95 -0
- package/dist/models/AdminConceptMediaRevision.d.ts +67 -0
- package/dist/models/AdminConceptMediaRevision.js +78 -0
- package/dist/models/AdminConceptSearchResult.d.ts +56 -0
- package/dist/models/AdminConceptSearchResult.js +66 -0
- package/dist/models/AdminGenerateConceptDiagramRequest.d.ts +56 -0
- package/dist/models/AdminGenerateConceptDiagramRequest.js +58 -0
- package/dist/models/AdminGenerateConceptImageRequest.d.ts +50 -0
- package/dist/models/AdminGenerateConceptImageRequest.js +56 -0
- package/dist/models/AdminGeneratedConceptDiagram.d.ts +219 -0
- package/dist/models/AdminGeneratedConceptDiagram.js +183 -0
- package/dist/models/AdminGeneratedConceptImage.d.ts +237 -0
- package/dist/models/AdminGeneratedConceptImage.js +195 -0
- package/dist/models/AdminPaginatedConceptDiagrams.d.ts +39 -0
- package/dist/models/AdminPaginatedConceptDiagrams.js +55 -0
- package/dist/models/AdminPaginatedConceptImages.d.ts +39 -0
- package/dist/models/AdminPaginatedConceptImages.js +55 -0
- package/dist/models/AdminRegenerateConceptDiagramRequest.d.ts +44 -0
- package/dist/models/AdminRegenerateConceptDiagramRequest.js +54 -0
- package/dist/models/AdminRegenerateConceptImageRequest.d.ts +38 -0
- package/dist/models/AdminRegenerateConceptImageRequest.js +52 -0
- package/dist/models/AdminShowConceptMediaRequest.d.ts +32 -0
- package/dist/models/AdminShowConceptMediaRequest.js +48 -0
- package/dist/models/AdminShownConceptDiagram.d.ts +215 -0
- package/dist/models/AdminShownConceptDiagram.js +178 -0
- package/dist/models/AdminShownConceptImage.d.ts +233 -0
- package/dist/models/AdminShownConceptImage.js +190 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.js +20 -0
- package/package.json +1 -1
|
@@ -0,0 +1,182 @@
|
|
|
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.AdminConceptImageDetailOriginEnum = exports.AdminConceptImageDetailStateEnum = void 0;
|
|
17
|
+
exports.instanceOfAdminConceptImageDetail = instanceOfAdminConceptImageDetail;
|
|
18
|
+
exports.AdminConceptImageDetailFromJSON = AdminConceptImageDetailFromJSON;
|
|
19
|
+
exports.AdminConceptImageDetailFromJSONTyped = AdminConceptImageDetailFromJSONTyped;
|
|
20
|
+
exports.AdminConceptImageDetailToJSON = AdminConceptImageDetailToJSON;
|
|
21
|
+
exports.AdminConceptImageDetailToJSONTyped = AdminConceptImageDetailToJSONTyped;
|
|
22
|
+
const AdminConceptMediaConcept_1 = require("./AdminConceptMediaConcept");
|
|
23
|
+
const AdminConceptMediaHistoryEntry_1 = require("./AdminConceptMediaHistoryEntry");
|
|
24
|
+
const AdminConceptMediaActor_1 = require("./AdminConceptMediaActor");
|
|
25
|
+
const AdminConceptMediaRevision_1 = require("./AdminConceptMediaRevision");
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.AdminConceptImageDetailStateEnum = {
|
|
30
|
+
Visible: 'visible',
|
|
31
|
+
Hidden: 'hidden',
|
|
32
|
+
Deleted: 'deleted'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
exports.AdminConceptImageDetailOriginEnum = {
|
|
38
|
+
Chat: 'chat',
|
|
39
|
+
Admin: 'admin'
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the AdminConceptImageDetail interface.
|
|
43
|
+
*/
|
|
44
|
+
function instanceOfAdminConceptImageDetail(value) {
|
|
45
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('concept' in value) || value['concept'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('origin' in value) || value['origin'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('creator' in value) || value['creator'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('creatorOutsideAccount' in value) || value['creatorOutsideAccount'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('sourceChatId' in value) || value['sourceChatId'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('hiddenAt' in value) || value['hiddenAt'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('hiddenBy' in value) || value['hiddenBy'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('deletedAt' in value) || value['deletedAt'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
if (!('deletedBy' in value) || value['deletedBy'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
70
|
+
return false;
|
|
71
|
+
if (!('inputTokens' in value) || value['inputTokens'] === undefined)
|
|
72
|
+
return false;
|
|
73
|
+
if (!('outputTokens' in value) || value['outputTokens'] === undefined)
|
|
74
|
+
return false;
|
|
75
|
+
if (!('costUsd' in value) || value['costUsd'] === undefined)
|
|
76
|
+
return false;
|
|
77
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
78
|
+
return false;
|
|
79
|
+
if (!('revisesImageId' in value) || value['revisesImageId'] === undefined)
|
|
80
|
+
return false;
|
|
81
|
+
if (!('quality' in value) || value['quality'] === undefined)
|
|
82
|
+
return false;
|
|
83
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
84
|
+
return false;
|
|
85
|
+
if (!('width' in value) || value['width'] === undefined)
|
|
86
|
+
return false;
|
|
87
|
+
if (!('height' in value) || value['height'] === undefined)
|
|
88
|
+
return false;
|
|
89
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
90
|
+
return false;
|
|
91
|
+
if (!('prompt' in value) || value['prompt'] === undefined)
|
|
92
|
+
return false;
|
|
93
|
+
if (!('modelPrompt' in value) || value['modelPrompt'] === undefined)
|
|
94
|
+
return false;
|
|
95
|
+
if (!('parent' in value) || value['parent'] === undefined)
|
|
96
|
+
return false;
|
|
97
|
+
if (!('revisions' in value) || value['revisions'] === undefined)
|
|
98
|
+
return false;
|
|
99
|
+
if (!('history' in value) || value['history'] === undefined)
|
|
100
|
+
return false;
|
|
101
|
+
if (!('historyTruncated' in value) || value['historyTruncated'] === undefined)
|
|
102
|
+
return false;
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
function AdminConceptImageDetailFromJSON(json) {
|
|
106
|
+
return AdminConceptImageDetailFromJSONTyped(json, false);
|
|
107
|
+
}
|
|
108
|
+
function AdminConceptImageDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
109
|
+
if (json == null) {
|
|
110
|
+
return json;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
'id': json['id'],
|
|
114
|
+
'concept': (0, AdminConceptMediaConcept_1.AdminConceptMediaConceptFromJSON)(json['concept']),
|
|
115
|
+
'state': json['state'],
|
|
116
|
+
'origin': json['origin'],
|
|
117
|
+
'creator': (0, AdminConceptMediaActor_1.AdminConceptMediaActorFromJSON)(json['creator']),
|
|
118
|
+
'creatorOutsideAccount': json['creatorOutsideAccount'],
|
|
119
|
+
'sourceChatId': json['sourceChatId'],
|
|
120
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
121
|
+
'hiddenAt': (json['hiddenAt'] == null ? null : new Date(json['hiddenAt'])),
|
|
122
|
+
'hiddenBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorFromJSON)(json['hiddenBy']),
|
|
123
|
+
'deletedAt': (json['deletedAt'] == null ? null : new Date(json['deletedAt'])),
|
|
124
|
+
'deletedBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorFromJSON)(json['deletedBy']),
|
|
125
|
+
'model': json['model'],
|
|
126
|
+
'inputTokens': json['inputTokens'],
|
|
127
|
+
'outputTokens': json['outputTokens'],
|
|
128
|
+
'costUsd': json['costUsd'],
|
|
129
|
+
'description': json['description'],
|
|
130
|
+
'revisesImageId': json['revisesImageId'],
|
|
131
|
+
'quality': json['quality'],
|
|
132
|
+
'mimeType': json['mimeType'],
|
|
133
|
+
'width': json['width'],
|
|
134
|
+
'height': json['height'],
|
|
135
|
+
'url': json['url'],
|
|
136
|
+
'prompt': json['prompt'],
|
|
137
|
+
'modelPrompt': json['modelPrompt'],
|
|
138
|
+
'parent': (0, AdminConceptMediaRevision_1.AdminConceptMediaRevisionFromJSON)(json['parent']),
|
|
139
|
+
'revisions': (json['revisions'].map(AdminConceptMediaRevision_1.AdminConceptMediaRevisionFromJSON)),
|
|
140
|
+
'history': (json['history'].map(AdminConceptMediaHistoryEntry_1.AdminConceptMediaHistoryEntryFromJSON)),
|
|
141
|
+
'historyTruncated': json['historyTruncated'],
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
function AdminConceptImageDetailToJSON(json) {
|
|
145
|
+
return AdminConceptImageDetailToJSONTyped(json, false);
|
|
146
|
+
}
|
|
147
|
+
function AdminConceptImageDetailToJSONTyped(value, ignoreDiscriminator = false) {
|
|
148
|
+
if (value == null) {
|
|
149
|
+
return value;
|
|
150
|
+
}
|
|
151
|
+
return {
|
|
152
|
+
'id': value['id'],
|
|
153
|
+
'concept': (0, AdminConceptMediaConcept_1.AdminConceptMediaConceptToJSON)(value['concept']),
|
|
154
|
+
'state': value['state'],
|
|
155
|
+
'origin': value['origin'],
|
|
156
|
+
'creator': (0, AdminConceptMediaActor_1.AdminConceptMediaActorToJSON)(value['creator']),
|
|
157
|
+
'creatorOutsideAccount': value['creatorOutsideAccount'],
|
|
158
|
+
'sourceChatId': value['sourceChatId'],
|
|
159
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
160
|
+
'hiddenAt': value['hiddenAt'] == null ? value['hiddenAt'] : value['hiddenAt'].toISOString(),
|
|
161
|
+
'hiddenBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorToJSON)(value['hiddenBy']),
|
|
162
|
+
'deletedAt': value['deletedAt'] == null ? value['deletedAt'] : value['deletedAt'].toISOString(),
|
|
163
|
+
'deletedBy': (0, AdminConceptMediaActor_1.AdminConceptMediaActorToJSON)(value['deletedBy']),
|
|
164
|
+
'model': value['model'],
|
|
165
|
+
'inputTokens': value['inputTokens'],
|
|
166
|
+
'outputTokens': value['outputTokens'],
|
|
167
|
+
'costUsd': value['costUsd'],
|
|
168
|
+
'description': value['description'],
|
|
169
|
+
'revisesImageId': value['revisesImageId'],
|
|
170
|
+
'quality': value['quality'],
|
|
171
|
+
'mimeType': value['mimeType'],
|
|
172
|
+
'width': value['width'],
|
|
173
|
+
'height': value['height'],
|
|
174
|
+
'url': value['url'],
|
|
175
|
+
'prompt': value['prompt'],
|
|
176
|
+
'modelPrompt': value['modelPrompt'],
|
|
177
|
+
'parent': (0, AdminConceptMediaRevision_1.AdminConceptMediaRevisionToJSON)(value['parent']),
|
|
178
|
+
'revisions': (value['revisions'].map(AdminConceptMediaRevision_1.AdminConceptMediaRevisionToJSON)),
|
|
179
|
+
'history': (value['history'].map(AdminConceptMediaHistoryEntry_1.AdminConceptMediaHistoryEntryToJSON)),
|
|
180
|
+
'historyTruncated': value['historyTruncated'],
|
|
181
|
+
};
|
|
182
|
+
}
|
|
@@ -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
|
+
* An account user in the caller's account who created or changed a library row.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AdminConceptMediaActor
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminConceptMediaActor {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminConceptMediaActor
|
|
22
|
+
*/
|
|
23
|
+
accountUserId: string;
|
|
24
|
+
/**
|
|
25
|
+
* External user ID (externalId), null if not set
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminConceptMediaActor
|
|
28
|
+
*/
|
|
29
|
+
userId: string | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AdminConceptMediaActor interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAdminConceptMediaActor(value: object): value is AdminConceptMediaActor;
|
|
35
|
+
export declare function AdminConceptMediaActorFromJSON(json: any): AdminConceptMediaActor;
|
|
36
|
+
export declare function AdminConceptMediaActorFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminConceptMediaActor;
|
|
37
|
+
export declare function AdminConceptMediaActorToJSON(json: any): AdminConceptMediaActor;
|
|
38
|
+
export declare function AdminConceptMediaActorToJSONTyped(value?: AdminConceptMediaActor | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfAdminConceptMediaActor = instanceOfAdminConceptMediaActor;
|
|
17
|
+
exports.AdminConceptMediaActorFromJSON = AdminConceptMediaActorFromJSON;
|
|
18
|
+
exports.AdminConceptMediaActorFromJSONTyped = AdminConceptMediaActorFromJSONTyped;
|
|
19
|
+
exports.AdminConceptMediaActorToJSON = AdminConceptMediaActorToJSON;
|
|
20
|
+
exports.AdminConceptMediaActorToJSONTyped = AdminConceptMediaActorToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminConceptMediaActor interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminConceptMediaActor(value) {
|
|
25
|
+
if (!('accountUserId' in value) || value['accountUserId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AdminConceptMediaActorFromJSON(json) {
|
|
32
|
+
return AdminConceptMediaActorFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AdminConceptMediaActorFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'accountUserId': json['accountUserId'],
|
|
40
|
+
'userId': json['userId'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AdminConceptMediaActorToJSON(json) {
|
|
44
|
+
return AdminConceptMediaActorToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AdminConceptMediaActorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'accountUserId': value['accountUserId'],
|
|
52
|
+
'userId': value['userId'],
|
|
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 AdminConceptMediaConcept
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminConceptMediaConcept {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminConceptMediaConcept
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AdminConceptMediaConcept
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AdminConceptMediaConcept interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAdminConceptMediaConcept(value: object): value is AdminConceptMediaConcept;
|
|
35
|
+
export declare function AdminConceptMediaConceptFromJSON(json: any): AdminConceptMediaConcept;
|
|
36
|
+
export declare function AdminConceptMediaConceptFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminConceptMediaConcept;
|
|
37
|
+
export declare function AdminConceptMediaConceptToJSON(json: any): AdminConceptMediaConcept;
|
|
38
|
+
export declare function AdminConceptMediaConceptToJSONTyped(value?: AdminConceptMediaConcept | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfAdminConceptMediaConcept = instanceOfAdminConceptMediaConcept;
|
|
17
|
+
exports.AdminConceptMediaConceptFromJSON = AdminConceptMediaConceptFromJSON;
|
|
18
|
+
exports.AdminConceptMediaConceptFromJSONTyped = AdminConceptMediaConceptFromJSONTyped;
|
|
19
|
+
exports.AdminConceptMediaConceptToJSON = AdminConceptMediaConceptToJSON;
|
|
20
|
+
exports.AdminConceptMediaConceptToJSONTyped = AdminConceptMediaConceptToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminConceptMediaConcept interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminConceptMediaConcept(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AdminConceptMediaConceptFromJSON(json) {
|
|
32
|
+
return AdminConceptMediaConceptFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AdminConceptMediaConceptFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AdminConceptMediaConceptToJSON(json) {
|
|
44
|
+
return AdminConceptMediaConceptToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AdminConceptMediaConceptToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'name': value['name'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
import type { AdminConceptMediaActor } from './AdminConceptMediaActor';
|
|
13
|
+
/**
|
|
14
|
+
* One row of a revision family, in any state (deleted versions included).
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AdminConceptMediaHistoryEntry
|
|
17
|
+
*/
|
|
18
|
+
export interface AdminConceptMediaHistoryEntry {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AdminConceptMediaHistoryEntry
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Date}
|
|
28
|
+
* @memberof AdminConceptMediaHistoryEntry
|
|
29
|
+
*/
|
|
30
|
+
createdAt: Date;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AdminConceptMediaHistoryEntry
|
|
35
|
+
*/
|
|
36
|
+
state: AdminConceptMediaHistoryEntryStateEnum;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AdminConceptMediaHistoryEntry
|
|
41
|
+
*/
|
|
42
|
+
origin: AdminConceptMediaHistoryEntryOriginEnum;
|
|
43
|
+
/**
|
|
44
|
+
* Who generated it. Null when that account user was deleted or belongs to a different account (see creatorOutsideAccount).
|
|
45
|
+
* @type {AdminConceptMediaActor}
|
|
46
|
+
* @memberof AdminConceptMediaHistoryEntry
|
|
47
|
+
*/
|
|
48
|
+
creator: AdminConceptMediaActor | null;
|
|
49
|
+
/**
|
|
50
|
+
* True when the creator exists but belongs to a different account, so their details are withheld.
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof AdminConceptMediaHistoryEntry
|
|
53
|
+
*/
|
|
54
|
+
creatorOutsideAccount: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The row this one revises; null for the original or once that row is gone.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof AdminConceptMediaHistoryEntry
|
|
59
|
+
*/
|
|
60
|
+
revisesId: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* True only for the row this detail describes.
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof AdminConceptMediaHistoryEntry
|
|
65
|
+
*/
|
|
66
|
+
isCurrent: boolean;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const AdminConceptMediaHistoryEntryStateEnum: {
|
|
72
|
+
readonly Visible: "visible";
|
|
73
|
+
readonly Hidden: "hidden";
|
|
74
|
+
readonly Deleted: "deleted";
|
|
75
|
+
};
|
|
76
|
+
export type AdminConceptMediaHistoryEntryStateEnum = typeof AdminConceptMediaHistoryEntryStateEnum[keyof typeof AdminConceptMediaHistoryEntryStateEnum];
|
|
77
|
+
/**
|
|
78
|
+
* @export
|
|
79
|
+
*/
|
|
80
|
+
export declare const AdminConceptMediaHistoryEntryOriginEnum: {
|
|
81
|
+
readonly Chat: "chat";
|
|
82
|
+
readonly Admin: "admin";
|
|
83
|
+
};
|
|
84
|
+
export type AdminConceptMediaHistoryEntryOriginEnum = typeof AdminConceptMediaHistoryEntryOriginEnum[keyof typeof AdminConceptMediaHistoryEntryOriginEnum];
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the AdminConceptMediaHistoryEntry interface.
|
|
87
|
+
*/
|
|
88
|
+
export declare function instanceOfAdminConceptMediaHistoryEntry(value: object): value is AdminConceptMediaHistoryEntry;
|
|
89
|
+
export declare function AdminConceptMediaHistoryEntryFromJSON(json: any): AdminConceptMediaHistoryEntry;
|
|
90
|
+
export declare function AdminConceptMediaHistoryEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminConceptMediaHistoryEntry;
|
|
91
|
+
export declare function AdminConceptMediaHistoryEntryToJSON(json: any): AdminConceptMediaHistoryEntry;
|
|
92
|
+
export declare function AdminConceptMediaHistoryEntryToJSONTyped(value?: AdminConceptMediaHistoryEntry | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,95 @@
|
|
|
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.AdminConceptMediaHistoryEntryOriginEnum = exports.AdminConceptMediaHistoryEntryStateEnum = void 0;
|
|
17
|
+
exports.instanceOfAdminConceptMediaHistoryEntry = instanceOfAdminConceptMediaHistoryEntry;
|
|
18
|
+
exports.AdminConceptMediaHistoryEntryFromJSON = AdminConceptMediaHistoryEntryFromJSON;
|
|
19
|
+
exports.AdminConceptMediaHistoryEntryFromJSONTyped = AdminConceptMediaHistoryEntryFromJSONTyped;
|
|
20
|
+
exports.AdminConceptMediaHistoryEntryToJSON = AdminConceptMediaHistoryEntryToJSON;
|
|
21
|
+
exports.AdminConceptMediaHistoryEntryToJSONTyped = AdminConceptMediaHistoryEntryToJSONTyped;
|
|
22
|
+
const AdminConceptMediaActor_1 = require("./AdminConceptMediaActor");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AdminConceptMediaHistoryEntryStateEnum = {
|
|
27
|
+
Visible: 'visible',
|
|
28
|
+
Hidden: 'hidden',
|
|
29
|
+
Deleted: 'deleted'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.AdminConceptMediaHistoryEntryOriginEnum = {
|
|
35
|
+
Chat: 'chat',
|
|
36
|
+
Admin: 'admin'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AdminConceptMediaHistoryEntry interface.
|
|
40
|
+
*/
|
|
41
|
+
function instanceOfAdminConceptMediaHistoryEntry(value) {
|
|
42
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('origin' in value) || value['origin'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('creator' in value) || value['creator'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('creatorOutsideAccount' in value) || value['creatorOutsideAccount'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('revisesId' in value) || value['revisesId'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('isCurrent' in value) || value['isCurrent'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
function AdminConceptMediaHistoryEntryFromJSON(json) {
|
|
61
|
+
return AdminConceptMediaHistoryEntryFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function AdminConceptMediaHistoryEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': json['id'],
|
|
69
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
70
|
+
'state': json['state'],
|
|
71
|
+
'origin': json['origin'],
|
|
72
|
+
'creator': (0, AdminConceptMediaActor_1.AdminConceptMediaActorFromJSON)(json['creator']),
|
|
73
|
+
'creatorOutsideAccount': json['creatorOutsideAccount'],
|
|
74
|
+
'revisesId': json['revisesId'],
|
|
75
|
+
'isCurrent': json['isCurrent'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function AdminConceptMediaHistoryEntryToJSON(json) {
|
|
79
|
+
return AdminConceptMediaHistoryEntryToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
function AdminConceptMediaHistoryEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
'id': value['id'],
|
|
87
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
88
|
+
'state': value['state'],
|
|
89
|
+
'origin': value['origin'],
|
|
90
|
+
'creator': (0, AdminConceptMediaActor_1.AdminConceptMediaActorToJSON)(value['creator']),
|
|
91
|
+
'creatorOutsideAccount': value['creatorOutsideAccount'],
|
|
92
|
+
'revisesId': value['revisesId'],
|
|
93
|
+
'isCurrent': value['isCurrent'],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -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;
|