@instructure/athena-api-client 1.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.
- package/README.md +155 -0
- package/dist/apis/AccountsApi.d.ts +41 -0
- package/dist/apis/AccountsApi.js +100 -0
- package/dist/apis/ChatsApi.d.ts +105 -0
- package/dist/apis/ChatsApi.js +289 -0
- package/dist/apis/HealthApi.d.ts +28 -0
- package/dist/apis/HealthApi.js +61 -0
- package/dist/apis/MessagesApi.d.ts +34 -0
- package/dist/apis/MessagesApi.js +80 -0
- package/dist/apis/ServiceTokensApi.d.ts +81 -0
- package/dist/apis/ServiceTokensApi.js +209 -0
- package/dist/apis/TagsApi.d.ts +28 -0
- package/dist/apis/TagsApi.js +61 -0
- package/dist/apis/index.d.ts +6 -0
- package/dist/apis/index.js +24 -0
- package/dist/esm/apis/AccountsApi.d.ts +41 -0
- package/dist/esm/apis/AccountsApi.js +96 -0
- package/dist/esm/apis/ChatsApi.d.ts +105 -0
- package/dist/esm/apis/ChatsApi.js +285 -0
- package/dist/esm/apis/HealthApi.d.ts +28 -0
- package/dist/esm/apis/HealthApi.js +57 -0
- package/dist/esm/apis/MessagesApi.d.ts +34 -0
- package/dist/esm/apis/MessagesApi.js +76 -0
- package/dist/esm/apis/ServiceTokensApi.d.ts +81 -0
- package/dist/esm/apis/ServiceTokensApi.js +205 -0
- package/dist/esm/apis/TagsApi.d.ts +28 -0
- package/dist/esm/apis/TagsApi.js +57 -0
- package/dist/esm/apis/index.d.ts +6 -0
- package/dist/esm/apis/index.js +8 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/Account.d.ts +50 -0
- package/dist/esm/models/Account.js +55 -0
- package/dist/esm/models/Chat.d.ts +112 -0
- package/dist/esm/models/Chat.js +84 -0
- package/dist/esm/models/ChatRequest.d.ts +38 -0
- package/dist/esm/models/ChatRequest.js +45 -0
- package/dist/esm/models/CreateAccountRequest.d.ts +32 -0
- package/dist/esm/models/CreateAccountRequest.js +43 -0
- package/dist/esm/models/CreateChatRequest.d.ts +32 -0
- package/dist/esm/models/CreateChatRequest.js +41 -0
- package/dist/esm/models/CreateTokenRequest.d.ts +52 -0
- package/dist/esm/models/CreateTokenRequest.js +58 -0
- package/dist/esm/models/CreateTokenResponse.d.ts +50 -0
- package/dist/esm/models/CreateTokenResponse.js +55 -0
- package/dist/esm/models/HealthCheck.d.ts +39 -0
- package/dist/esm/models/HealthCheck.js +49 -0
- package/dist/esm/models/Message.d.ts +63 -0
- package/dist/esm/models/Message.js +64 -0
- package/dist/esm/models/MessagePartsInner.d.ts +38 -0
- package/dist/esm/models/MessagePartsInner.js +43 -0
- package/dist/esm/models/ModelError.d.ts +32 -0
- package/dist/esm/models/ModelError.js +43 -0
- package/dist/esm/models/PaginatedChats.d.ts +39 -0
- package/dist/esm/models/PaginatedChats.js +48 -0
- package/dist/esm/models/PaginatedMessages.d.ts +39 -0
- package/dist/esm/models/PaginatedMessages.js +48 -0
- package/dist/esm/models/ServiceToken.d.ts +70 -0
- package/dist/esm/models/ServiceToken.js +70 -0
- package/dist/esm/models/Tag.d.ts +38 -0
- package/dist/esm/models/Tag.js +47 -0
- package/dist/esm/models/UpdateChatRequest.d.ts +32 -0
- package/dist/esm/models/UpdateChatRequest.js +41 -0
- package/dist/esm/models/UpdateTokenRequest.d.ts +32 -0
- package/dist/esm/models/UpdateTokenRequest.js +43 -0
- package/dist/esm/models/UpdateTokenResponse.d.ts +50 -0
- package/dist/esm/models/UpdateTokenResponse.js +55 -0
- package/dist/esm/models/index.d.ts +18 -0
- package/dist/esm/models/index.js +20 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/Account.d.ts +50 -0
- package/dist/models/Account.js +62 -0
- package/dist/models/Chat.d.ts +112 -0
- package/dist/models/Chat.js +92 -0
- package/dist/models/ChatRequest.d.ts +38 -0
- package/dist/models/ChatRequest.js +52 -0
- package/dist/models/CreateAccountRequest.d.ts +32 -0
- package/dist/models/CreateAccountRequest.js +50 -0
- package/dist/models/CreateChatRequest.d.ts +32 -0
- package/dist/models/CreateChatRequest.js +48 -0
- package/dist/models/CreateTokenRequest.d.ts +52 -0
- package/dist/models/CreateTokenRequest.js +66 -0
- package/dist/models/CreateTokenResponse.d.ts +50 -0
- package/dist/models/CreateTokenResponse.js +62 -0
- package/dist/models/HealthCheck.d.ts +39 -0
- package/dist/models/HealthCheck.js +57 -0
- package/dist/models/Message.d.ts +63 -0
- package/dist/models/Message.js +71 -0
- package/dist/models/MessagePartsInner.d.ts +38 -0
- package/dist/models/MessagePartsInner.js +50 -0
- package/dist/models/ModelError.d.ts +32 -0
- package/dist/models/ModelError.js +50 -0
- package/dist/models/PaginatedChats.d.ts +39 -0
- package/dist/models/PaginatedChats.js +55 -0
- package/dist/models/PaginatedMessages.d.ts +39 -0
- package/dist/models/PaginatedMessages.js +55 -0
- package/dist/models/ServiceToken.d.ts +70 -0
- package/dist/models/ServiceToken.js +78 -0
- package/dist/models/Tag.d.ts +38 -0
- package/dist/models/Tag.js +54 -0
- package/dist/models/UpdateChatRequest.d.ts +32 -0
- package/dist/models/UpdateChatRequest.js +48 -0
- package/dist/models/UpdateTokenRequest.d.ts +32 -0
- package/dist/models/UpdateTokenRequest.js +50 -0
- package/dist/models/UpdateTokenResponse.d.ts +50 -0
- package/dist/models/UpdateTokenResponse.js +62 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +36 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/package.json +30 -0
|
@@ -0,0 +1,205 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { CreateTokenRequestToJSON, CreateTokenResponseFromJSON, ServiceTokenFromJSON, UpdateTokenRequestToJSON, UpdateTokenResponseFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class ServiceTokensApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new service token with the specified consumer name, role, and account ID (admin only). The generated token is only shown once.
|
|
31
|
+
* Create a new service token
|
|
32
|
+
*/
|
|
33
|
+
createServiceTokenRaw(requestParameters, initOverrides) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (requestParameters['createTokenRequest'] == null) {
|
|
36
|
+
throw new runtime.RequiredError('createTokenRequest', 'Required parameter "createTokenRequest" was null or undefined when calling createServiceToken().');
|
|
37
|
+
}
|
|
38
|
+
const queryParameters = {};
|
|
39
|
+
const headerParameters = {};
|
|
40
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
41
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
42
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
43
|
+
}
|
|
44
|
+
let urlPath = `/api/v1/tokens`;
|
|
45
|
+
const response = yield this.request({
|
|
46
|
+
path: urlPath,
|
|
47
|
+
method: 'POST',
|
|
48
|
+
headers: headerParameters,
|
|
49
|
+
query: queryParameters,
|
|
50
|
+
body: CreateTokenRequestToJSON(requestParameters['createTokenRequest']),
|
|
51
|
+
}, initOverrides);
|
|
52
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CreateTokenResponseFromJSON(jsonValue));
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Creates a new service token with the specified consumer name, role, and account ID (admin only). The generated token is only shown once.
|
|
57
|
+
* Create a new service token
|
|
58
|
+
*/
|
|
59
|
+
createServiceToken(requestParameters, initOverrides) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const response = yield this.createServiceTokenRaw(requestParameters, initOverrides);
|
|
62
|
+
return yield response.value();
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Permanently deletes a service token (admin only)
|
|
67
|
+
* Delete service token
|
|
68
|
+
*/
|
|
69
|
+
deleteServiceTokenRaw(requestParameters, initOverrides) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
if (requestParameters['id'] == null) {
|
|
72
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteServiceToken().');
|
|
73
|
+
}
|
|
74
|
+
const queryParameters = {};
|
|
75
|
+
const headerParameters = {};
|
|
76
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
77
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
78
|
+
}
|
|
79
|
+
let urlPath = `/api/v1/tokens/{id}`;
|
|
80
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
81
|
+
const response = yield this.request({
|
|
82
|
+
path: urlPath,
|
|
83
|
+
method: 'DELETE',
|
|
84
|
+
headers: headerParameters,
|
|
85
|
+
query: queryParameters,
|
|
86
|
+
}, initOverrides);
|
|
87
|
+
return new runtime.VoidApiResponse(response);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Permanently deletes a service token (admin only)
|
|
92
|
+
* Delete service token
|
|
93
|
+
*/
|
|
94
|
+
deleteServiceToken(requestParameters, initOverrides) {
|
|
95
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
yield this.deleteServiceTokenRaw(requestParameters, initOverrides);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Retrieves details of a specific service token by its ID (admin only)
|
|
101
|
+
* Get service token by ID
|
|
102
|
+
*/
|
|
103
|
+
getServiceTokenRaw(requestParameters, initOverrides) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
if (requestParameters['id'] == null) {
|
|
106
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getServiceToken().');
|
|
107
|
+
}
|
|
108
|
+
const queryParameters = {};
|
|
109
|
+
const headerParameters = {};
|
|
110
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
111
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
112
|
+
}
|
|
113
|
+
let urlPath = `/api/v1/tokens/{id}`;
|
|
114
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
115
|
+
const response = yield this.request({
|
|
116
|
+
path: urlPath,
|
|
117
|
+
method: 'GET',
|
|
118
|
+
headers: headerParameters,
|
|
119
|
+
query: queryParameters,
|
|
120
|
+
}, initOverrides);
|
|
121
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ServiceTokenFromJSON(jsonValue));
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Retrieves details of a specific service token by its ID (admin only)
|
|
126
|
+
* Get service token by ID
|
|
127
|
+
*/
|
|
128
|
+
getServiceToken(requestParameters, initOverrides) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
const response = yield this.getServiceTokenRaw(requestParameters, initOverrides);
|
|
131
|
+
return yield response.value();
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Retrieves a list of all service tokens (admin only)
|
|
136
|
+
* List all service tokens
|
|
137
|
+
*/
|
|
138
|
+
listServiceTokensRaw(initOverrides) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
const queryParameters = {};
|
|
141
|
+
const headerParameters = {};
|
|
142
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
143
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
144
|
+
}
|
|
145
|
+
let urlPath = `/api/v1/tokens`;
|
|
146
|
+
const response = yield this.request({
|
|
147
|
+
path: urlPath,
|
|
148
|
+
method: 'GET',
|
|
149
|
+
headers: headerParameters,
|
|
150
|
+
query: queryParameters,
|
|
151
|
+
}, initOverrides);
|
|
152
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ServiceTokenFromJSON));
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Retrieves a list of all service tokens (admin only)
|
|
157
|
+
* List all service tokens
|
|
158
|
+
*/
|
|
159
|
+
listServiceTokens(initOverrides) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
const response = yield this.listServiceTokensRaw(initOverrides);
|
|
162
|
+
return yield response.value();
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Updates the active status of a service token (admin only)
|
|
167
|
+
* Update service token status
|
|
168
|
+
*/
|
|
169
|
+
updateServiceTokenRaw(requestParameters, initOverrides) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
if (requestParameters['id'] == null) {
|
|
172
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateServiceToken().');
|
|
173
|
+
}
|
|
174
|
+
if (requestParameters['updateTokenRequest'] == null) {
|
|
175
|
+
throw new runtime.RequiredError('updateTokenRequest', 'Required parameter "updateTokenRequest" was null or undefined when calling updateServiceToken().');
|
|
176
|
+
}
|
|
177
|
+
const queryParameters = {};
|
|
178
|
+
const headerParameters = {};
|
|
179
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
180
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
181
|
+
headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
|
|
182
|
+
}
|
|
183
|
+
let urlPath = `/api/v1/tokens/{id}`;
|
|
184
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
185
|
+
const response = yield this.request({
|
|
186
|
+
path: urlPath,
|
|
187
|
+
method: 'PATCH',
|
|
188
|
+
headers: headerParameters,
|
|
189
|
+
query: queryParameters,
|
|
190
|
+
body: UpdateTokenRequestToJSON(requestParameters['updateTokenRequest']),
|
|
191
|
+
}, initOverrides);
|
|
192
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UpdateTokenResponseFromJSON(jsonValue));
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Updates the active status of a service token (admin only)
|
|
197
|
+
* Update service token status
|
|
198
|
+
*/
|
|
199
|
+
updateServiceToken(requestParameters, initOverrides) {
|
|
200
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
201
|
+
const response = yield this.updateServiceTokenRaw(requestParameters, initOverrides);
|
|
202
|
+
return yield response.value();
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { Tag } from '../models/index';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export declare class TagsApi extends runtime.BaseAPI {
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a list of all available tags
|
|
20
|
+
* List all tags
|
|
21
|
+
*/
|
|
22
|
+
listTagsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Tag>>>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves a list of all available tags
|
|
25
|
+
* List all tags
|
|
26
|
+
*/
|
|
27
|
+
listTags(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Tag>>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { TagFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class TagsApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves a list of all available tags
|
|
31
|
+
* List all tags
|
|
32
|
+
*/
|
|
33
|
+
listTagsRaw(initOverrides) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
const queryParameters = {};
|
|
36
|
+
const headerParameters = {};
|
|
37
|
+
let urlPath = `/api/v1/tags`;
|
|
38
|
+
const response = yield this.request({
|
|
39
|
+
path: urlPath,
|
|
40
|
+
method: 'GET',
|
|
41
|
+
headers: headerParameters,
|
|
42
|
+
query: queryParameters,
|
|
43
|
+
}, initOverrides);
|
|
44
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(TagFromJSON));
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Retrieves a list of all available tags
|
|
49
|
+
* List all tags
|
|
50
|
+
*/
|
|
51
|
+
listTags(initOverrides) {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const response = yield this.listTagsRaw(initOverrides);
|
|
54
|
+
return yield response.value();
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -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 Account
|
|
16
|
+
*/
|
|
17
|
+
export interface Account {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Account
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the account
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Account
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Creation timestamp
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof Account
|
|
34
|
+
*/
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
/**
|
|
37
|
+
* Last update timestamp
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof Account
|
|
40
|
+
*/
|
|
41
|
+
updatedAt: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the Account interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAccount(value: object): value is Account;
|
|
47
|
+
export declare function AccountFromJSON(json: any): Account;
|
|
48
|
+
export declare function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account;
|
|
49
|
+
export declare function AccountToJSON(json: any): Account;
|
|
50
|
+
export declare function AccountToJSONTyped(value?: Account | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 Account interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAccount(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 (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function AccountFromJSON(json) {
|
|
29
|
+
return AccountFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function AccountFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
39
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function AccountToJSON(json) {
|
|
43
|
+
return AccountToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function AccountToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'name': value['name'],
|
|
52
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
53
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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 Chat
|
|
16
|
+
*/
|
|
17
|
+
export interface Chat {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Chat
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Creation timestamp
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof Chat
|
|
28
|
+
*/
|
|
29
|
+
createdAt: Date;
|
|
30
|
+
/**
|
|
31
|
+
* Chat title
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Chat
|
|
34
|
+
*/
|
|
35
|
+
title: string;
|
|
36
|
+
/**
|
|
37
|
+
* Type of chat
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Chat
|
|
40
|
+
*/
|
|
41
|
+
chatType?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Last viewed timestamp
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof Chat
|
|
46
|
+
*/
|
|
47
|
+
lastViewedAt?: Date | null;
|
|
48
|
+
/**
|
|
49
|
+
* ID of the account user who owns this chat
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Chat
|
|
52
|
+
*/
|
|
53
|
+
accountUserId: string;
|
|
54
|
+
/**
|
|
55
|
+
* Chat visibility
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Chat
|
|
58
|
+
*/
|
|
59
|
+
visibility: ChatVisibilityEnum;
|
|
60
|
+
/**
|
|
61
|
+
* Optional subject ID
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof Chat
|
|
64
|
+
*/
|
|
65
|
+
subjectId?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* Latest job ID
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof Chat
|
|
70
|
+
*/
|
|
71
|
+
latestJobId?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* Scheduled analysis timestamp
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof Chat
|
|
76
|
+
*/
|
|
77
|
+
analysisScheduledFor?: Date | null;
|
|
78
|
+
/**
|
|
79
|
+
* Chat goal
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof Chat
|
|
82
|
+
*/
|
|
83
|
+
goal?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the goal has been achieved
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof Chat
|
|
88
|
+
*/
|
|
89
|
+
goalAchieved?: boolean | null;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the chat is marked for review
|
|
92
|
+
* @type {boolean}
|
|
93
|
+
* @memberof Chat
|
|
94
|
+
*/
|
|
95
|
+
forReview: boolean;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export declare const ChatVisibilityEnum: {
|
|
101
|
+
readonly Public: "public";
|
|
102
|
+
readonly Private: "private";
|
|
103
|
+
};
|
|
104
|
+
export type ChatVisibilityEnum = typeof ChatVisibilityEnum[keyof typeof ChatVisibilityEnum];
|
|
105
|
+
/**
|
|
106
|
+
* Check if a given object implements the Chat interface.
|
|
107
|
+
*/
|
|
108
|
+
export declare function instanceOfChat(value: object): value is Chat;
|
|
109
|
+
export declare function ChatFromJSON(json: any): Chat;
|
|
110
|
+
export declare function ChatFromJSONTyped(json: any, ignoreDiscriminator: boolean): Chat;
|
|
111
|
+
export declare function ChatToJSON(json: any): Chat;
|
|
112
|
+
export declare function ChatToJSONTyped(value?: Chat | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,84 @@
|
|
|
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 ChatVisibilityEnum = {
|
|
18
|
+
Public: 'public',
|
|
19
|
+
Private: 'private'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Chat interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfChat(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('accountUserId' in value) || value['accountUserId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('visibility' in value) || value['visibility'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('forReview' in value) || value['forReview'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function ChatFromJSON(json) {
|
|
40
|
+
return ChatFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function ChatFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
49
|
+
'title': json['title'],
|
|
50
|
+
'chatType': json['chatType'] == null ? undefined : json['chatType'],
|
|
51
|
+
'lastViewedAt': json['lastViewedAt'] == null ? undefined : (new Date(json['lastViewedAt'])),
|
|
52
|
+
'accountUserId': json['accountUserId'],
|
|
53
|
+
'visibility': json['visibility'],
|
|
54
|
+
'subjectId': json['subjectId'] == null ? undefined : json['subjectId'],
|
|
55
|
+
'latestJobId': json['latestJobId'] == null ? undefined : json['latestJobId'],
|
|
56
|
+
'analysisScheduledFor': json['analysisScheduledFor'] == null ? undefined : (new Date(json['analysisScheduledFor'])),
|
|
57
|
+
'goal': json['goal'] == null ? undefined : json['goal'],
|
|
58
|
+
'goalAchieved': json['goalAchieved'] == null ? undefined : json['goalAchieved'],
|
|
59
|
+
'forReview': json['forReview'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export function ChatToJSON(json) {
|
|
63
|
+
return ChatToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function ChatToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
72
|
+
'title': value['title'],
|
|
73
|
+
'chatType': value['chatType'],
|
|
74
|
+
'lastViewedAt': value['lastViewedAt'] == null ? value['lastViewedAt'] : value['lastViewedAt'].toISOString(),
|
|
75
|
+
'accountUserId': value['accountUserId'],
|
|
76
|
+
'visibility': value['visibility'],
|
|
77
|
+
'subjectId': value['subjectId'],
|
|
78
|
+
'latestJobId': value['latestJobId'],
|
|
79
|
+
'analysisScheduledFor': value['analysisScheduledFor'] == null ? value['analysisScheduledFor'] : value['analysisScheduledFor'].toISOString(),
|
|
80
|
+
'goal': value['goal'],
|
|
81
|
+
'goalAchieved': value['goalAchieved'],
|
|
82
|
+
'forReview': value['forReview'],
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -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 ChatRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ChatRequest {
|
|
18
|
+
/**
|
|
19
|
+
* The user's message to send to the AI assistant
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ChatRequest
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
* Optional ID of an existing chat to continue. If omitted, a new chat will be created.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ChatRequest
|
|
28
|
+
*/
|
|
29
|
+
chatId?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ChatRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfChatRequest(value: object): value is ChatRequest;
|
|
35
|
+
export declare function ChatRequestFromJSON(json: any): ChatRequest;
|
|
36
|
+
export declare function ChatRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChatRequest;
|
|
37
|
+
export declare function ChatRequestToJSON(json: any): ChatRequest;
|
|
38
|
+
export declare function ChatRequestToJSONTyped(value?: ChatRequest | null, ignoreDiscriminator?: boolean): any;
|