@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,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,157 @@
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 { AdminConceptMediaConcept } from './AdminConceptMediaConcept';
13
+ /**
14
+ * An asynchronous admin generation of a hidden concept image or diagram draft. Poll adminGetConceptMediaJob until status is succeeded (open resultMediaId with the kind's get operation) or failed (see errorCode and errorMessage).
15
+ * @export
16
+ * @interface AdminConceptMediaJob
17
+ */
18
+ export interface AdminConceptMediaJob {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AdminConceptMediaJob
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AdminConceptMediaJob
29
+ */
30
+ kind: AdminConceptMediaJobKindEnum;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof AdminConceptMediaJob
35
+ */
36
+ operation: AdminConceptMediaJobOperationEnum;
37
+ /**
38
+ * pending: queued, not started. running: a worker is generating. succeeded and failed are final.
39
+ * @type {string}
40
+ * @memberof AdminConceptMediaJob
41
+ */
42
+ status: AdminConceptMediaJobStatusEnum;
43
+ /**
44
+ * The concept the draft is filed under, resolved at enqueue
45
+ * @type {AdminConceptMediaConcept}
46
+ * @memberof AdminConceptMediaJob
47
+ */
48
+ concept: AdminConceptMediaConcept;
49
+ /**
50
+ * How the draft's concept (see concept) was chosen. selected: conceptId was given. For a conceptName: matched_exact, an existing concept with the same name (case-insensitive, normalized); matched_similar, the nearest existing concept within the dedup distance; created, no concept matched, so a new one was created. Null for a regenerate, which files under the revised row's concept.
51
+ * @type {string}
52
+ * @memberof AdminConceptMediaJob
53
+ */
54
+ conceptResolution: AdminConceptMediaJobConceptResolutionEnum | null;
55
+ /**
56
+ * For a regenerate, the image or diagram being revised
57
+ * @type {string}
58
+ * @memberof AdminConceptMediaJob
59
+ */
60
+ sourceMediaId: string | null;
61
+ /**
62
+ * When succeeded, the new hidden draft: an image id for kind image, a diagram id for kind diagram
63
+ * @type {string}
64
+ * @memberof AdminConceptMediaJob
65
+ */
66
+ resultMediaId: string | null;
67
+ /**
68
+ * When failed, why
69
+ * @type {string}
70
+ * @memberof AdminConceptMediaJob
71
+ */
72
+ errorCode: AdminConceptMediaJobErrorCodeEnum | null;
73
+ /**
74
+ * When failed, a message to show the admin
75
+ * @type {string}
76
+ * @memberof AdminConceptMediaJob
77
+ */
78
+ errorMessage: string | null;
79
+ /**
80
+ *
81
+ * @type {Date}
82
+ * @memberof AdminConceptMediaJob
83
+ */
84
+ createdAt: Date;
85
+ /**
86
+ *
87
+ * @type {Date}
88
+ * @memberof AdminConceptMediaJob
89
+ */
90
+ startedAt: Date | null;
91
+ /**
92
+ *
93
+ * @type {Date}
94
+ * @memberof AdminConceptMediaJob
95
+ */
96
+ finishedAt: Date | null;
97
+ }
98
+ /**
99
+ * @export
100
+ */
101
+ export declare const AdminConceptMediaJobKindEnum: {
102
+ readonly Image: "image";
103
+ readonly Diagram: "diagram";
104
+ };
105
+ export type AdminConceptMediaJobKindEnum = typeof AdminConceptMediaJobKindEnum[keyof typeof AdminConceptMediaJobKindEnum];
106
+ /**
107
+ * @export
108
+ */
109
+ export declare const AdminConceptMediaJobOperationEnum: {
110
+ readonly Generate: "generate";
111
+ readonly Regenerate: "regenerate";
112
+ };
113
+ export type AdminConceptMediaJobOperationEnum = typeof AdminConceptMediaJobOperationEnum[keyof typeof AdminConceptMediaJobOperationEnum];
114
+ /**
115
+ * @export
116
+ */
117
+ export declare const AdminConceptMediaJobStatusEnum: {
118
+ readonly Pending: "pending";
119
+ readonly Running: "running";
120
+ readonly Succeeded: "succeeded";
121
+ readonly Failed: "failed";
122
+ };
123
+ export type AdminConceptMediaJobStatusEnum = typeof AdminConceptMediaJobStatusEnum[keyof typeof AdminConceptMediaJobStatusEnum];
124
+ /**
125
+ * @export
126
+ */
127
+ export declare const AdminConceptMediaJobConceptResolutionEnum: {
128
+ readonly Selected: "selected";
129
+ readonly MatchedExact: "matched_exact";
130
+ readonly MatchedSimilar: "matched_similar";
131
+ readonly Created: "created";
132
+ };
133
+ export type AdminConceptMediaJobConceptResolutionEnum = typeof AdminConceptMediaJobConceptResolutionEnum[keyof typeof AdminConceptMediaJobConceptResolutionEnum];
134
+ /**
135
+ * @export
136
+ */
137
+ export declare const AdminConceptMediaJobErrorCodeEnum: {
138
+ readonly OffTopic: "off_topic";
139
+ readonly ModerationBlocked: "moderation_blocked";
140
+ readonly Timeout: "timeout";
141
+ readonly NotFound: "not_found";
142
+ readonly GenerationFailed: "generation_failed";
143
+ readonly AuthoringFailed: "authoring_failed";
144
+ readonly SaveFailed: "save_failed";
145
+ readonly LimitReached: "limit_reached";
146
+ readonly InternalError: "internal_error";
147
+ readonly DeliveryFailed: "delivery_failed";
148
+ };
149
+ export type AdminConceptMediaJobErrorCodeEnum = typeof AdminConceptMediaJobErrorCodeEnum[keyof typeof AdminConceptMediaJobErrorCodeEnum];
150
+ /**
151
+ * Check if a given object implements the AdminConceptMediaJob interface.
152
+ */
153
+ export declare function instanceOfAdminConceptMediaJob(value: object): value is AdminConceptMediaJob;
154
+ export declare function AdminConceptMediaJobFromJSON(json: any): AdminConceptMediaJob;
155
+ export declare function AdminConceptMediaJobFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminConceptMediaJob;
156
+ export declare function AdminConceptMediaJobToJSON(json: any): AdminConceptMediaJob;
157
+ export declare function AdminConceptMediaJobToJSONTyped(value?: AdminConceptMediaJob | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,147 @@
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.AdminConceptMediaJobErrorCodeEnum = exports.AdminConceptMediaJobConceptResolutionEnum = exports.AdminConceptMediaJobStatusEnum = exports.AdminConceptMediaJobOperationEnum = exports.AdminConceptMediaJobKindEnum = void 0;
17
+ exports.instanceOfAdminConceptMediaJob = instanceOfAdminConceptMediaJob;
18
+ exports.AdminConceptMediaJobFromJSON = AdminConceptMediaJobFromJSON;
19
+ exports.AdminConceptMediaJobFromJSONTyped = AdminConceptMediaJobFromJSONTyped;
20
+ exports.AdminConceptMediaJobToJSON = AdminConceptMediaJobToJSON;
21
+ exports.AdminConceptMediaJobToJSONTyped = AdminConceptMediaJobToJSONTyped;
22
+ const AdminConceptMediaConcept_1 = require("./AdminConceptMediaConcept");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.AdminConceptMediaJobKindEnum = {
27
+ Image: 'image',
28
+ Diagram: 'diagram'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.AdminConceptMediaJobOperationEnum = {
34
+ Generate: 'generate',
35
+ Regenerate: 'regenerate'
36
+ };
37
+ /**
38
+ * @export
39
+ */
40
+ exports.AdminConceptMediaJobStatusEnum = {
41
+ Pending: 'pending',
42
+ Running: 'running',
43
+ Succeeded: 'succeeded',
44
+ Failed: 'failed'
45
+ };
46
+ /**
47
+ * @export
48
+ */
49
+ exports.AdminConceptMediaJobConceptResolutionEnum = {
50
+ Selected: 'selected',
51
+ MatchedExact: 'matched_exact',
52
+ MatchedSimilar: 'matched_similar',
53
+ Created: 'created'
54
+ };
55
+ /**
56
+ * @export
57
+ */
58
+ exports.AdminConceptMediaJobErrorCodeEnum = {
59
+ OffTopic: 'off_topic',
60
+ ModerationBlocked: 'moderation_blocked',
61
+ Timeout: 'timeout',
62
+ NotFound: 'not_found',
63
+ GenerationFailed: 'generation_failed',
64
+ AuthoringFailed: 'authoring_failed',
65
+ SaveFailed: 'save_failed',
66
+ LimitReached: 'limit_reached',
67
+ InternalError: 'internal_error',
68
+ DeliveryFailed: 'delivery_failed'
69
+ };
70
+ /**
71
+ * Check if a given object implements the AdminConceptMediaJob interface.
72
+ */
73
+ function instanceOfAdminConceptMediaJob(value) {
74
+ if (!('id' in value) || value['id'] === undefined)
75
+ return false;
76
+ if (!('kind' in value) || value['kind'] === undefined)
77
+ return false;
78
+ if (!('operation' in value) || value['operation'] === undefined)
79
+ return false;
80
+ if (!('status' in value) || value['status'] === undefined)
81
+ return false;
82
+ if (!('concept' in value) || value['concept'] === undefined)
83
+ return false;
84
+ if (!('conceptResolution' in value) || value['conceptResolution'] === undefined)
85
+ return false;
86
+ if (!('sourceMediaId' in value) || value['sourceMediaId'] === undefined)
87
+ return false;
88
+ if (!('resultMediaId' in value) || value['resultMediaId'] === undefined)
89
+ return false;
90
+ if (!('errorCode' in value) || value['errorCode'] === undefined)
91
+ return false;
92
+ if (!('errorMessage' in value) || value['errorMessage'] === undefined)
93
+ return false;
94
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
95
+ return false;
96
+ if (!('startedAt' in value) || value['startedAt'] === undefined)
97
+ return false;
98
+ if (!('finishedAt' in value) || value['finishedAt'] === undefined)
99
+ return false;
100
+ return true;
101
+ }
102
+ function AdminConceptMediaJobFromJSON(json) {
103
+ return AdminConceptMediaJobFromJSONTyped(json, false);
104
+ }
105
+ function AdminConceptMediaJobFromJSONTyped(json, ignoreDiscriminator) {
106
+ if (json == null) {
107
+ return json;
108
+ }
109
+ return {
110
+ 'id': json['id'],
111
+ 'kind': json['kind'],
112
+ 'operation': json['operation'],
113
+ 'status': json['status'],
114
+ 'concept': (0, AdminConceptMediaConcept_1.AdminConceptMediaConceptFromJSON)(json['concept']),
115
+ 'conceptResolution': json['conceptResolution'],
116
+ 'sourceMediaId': json['sourceMediaId'],
117
+ 'resultMediaId': json['resultMediaId'],
118
+ 'errorCode': json['errorCode'],
119
+ 'errorMessage': json['errorMessage'],
120
+ 'createdAt': (new Date(json['createdAt'])),
121
+ 'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
122
+ 'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
123
+ };
124
+ }
125
+ function AdminConceptMediaJobToJSON(json) {
126
+ return AdminConceptMediaJobToJSONTyped(json, false);
127
+ }
128
+ function AdminConceptMediaJobToJSONTyped(value, ignoreDiscriminator = false) {
129
+ if (value == null) {
130
+ return value;
131
+ }
132
+ return {
133
+ 'id': value['id'],
134
+ 'kind': value['kind'],
135
+ 'operation': value['operation'],
136
+ 'status': value['status'],
137
+ 'concept': (0, AdminConceptMediaConcept_1.AdminConceptMediaConceptToJSON)(value['concept']),
138
+ 'conceptResolution': value['conceptResolution'],
139
+ 'sourceMediaId': value['sourceMediaId'],
140
+ 'resultMediaId': value['resultMediaId'],
141
+ 'errorCode': value['errorCode'],
142
+ 'errorMessage': value['errorMessage'],
143
+ 'createdAt': value['createdAt'].toISOString(),
144
+ 'startedAt': value['startedAt'] == null ? value['startedAt'] : value['startedAt'].toISOString(),
145
+ 'finishedAt': value['finishedAt'] == null ? value['finishedAt'] : value['finishedAt'].toISOString(),
146
+ };
147
+ }
@@ -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;