@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,45 @@
|
|
|
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 ChatRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfChatRequest(value) {
|
|
18
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function ChatRequestFromJSON(json) {
|
|
23
|
+
return ChatRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function ChatRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'message': json['message'],
|
|
31
|
+
'chatId': json['chatId'] == null ? undefined : json['chatId'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function ChatRequestToJSON(json) {
|
|
35
|
+
return ChatRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'message': value['message'],
|
|
43
|
+
'chatId': value['chatId'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 CreateAccountRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateAccountRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Name of the account
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateAccountRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateAccountRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCreateAccountRequest(value: object): value is CreateAccountRequest;
|
|
29
|
+
export declare function CreateAccountRequestFromJSON(json: any): CreateAccountRequest;
|
|
30
|
+
export declare function CreateAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountRequest;
|
|
31
|
+
export declare function CreateAccountRequestToJSON(json: any): CreateAccountRequest;
|
|
32
|
+
export declare function CreateAccountRequestToJSONTyped(value?: CreateAccountRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 CreateAccountRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateAccountRequest(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function CreateAccountRequestFromJSON(json) {
|
|
23
|
+
return CreateAccountRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function CreateAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'name': json['name'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function CreateAccountRequestToJSON(json) {
|
|
34
|
+
return CreateAccountRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function CreateAccountRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': value['name'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 CreateChatRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateChatRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Optional title for the chat. Defaults to 'New Chat' if omitted.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateChatRequest
|
|
22
|
+
*/
|
|
23
|
+
title?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateChatRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCreateChatRequest(value: object): value is CreateChatRequest;
|
|
29
|
+
export declare function CreateChatRequestFromJSON(json: any): CreateChatRequest;
|
|
30
|
+
export declare function CreateChatRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateChatRequest;
|
|
31
|
+
export declare function CreateChatRequestToJSON(json: any): CreateChatRequest;
|
|
32
|
+
export declare function CreateChatRequestToJSONTyped(value?: CreateChatRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
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 CreateChatRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateChatRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function CreateChatRequestFromJSON(json) {
|
|
21
|
+
return CreateChatRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function CreateChatRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function CreateChatRequestToJSON(json) {
|
|
32
|
+
return CreateChatRequestToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function CreateChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'title': value['title'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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 CreateTokenRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateTokenRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Name of the service consumer
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateTokenRequest
|
|
22
|
+
*/
|
|
23
|
+
consumerName: string;
|
|
24
|
+
/**
|
|
25
|
+
* Role to assign to the token
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateTokenRequest
|
|
28
|
+
*/
|
|
29
|
+
role: CreateTokenRequestRoleEnum;
|
|
30
|
+
/**
|
|
31
|
+
* ID of the account to associate with the token
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateTokenRequest
|
|
34
|
+
*/
|
|
35
|
+
accountId: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const CreateTokenRequestRoleEnum: {
|
|
41
|
+
readonly Consumer: "consumer";
|
|
42
|
+
readonly Admin: "admin";
|
|
43
|
+
};
|
|
44
|
+
export type CreateTokenRequestRoleEnum = typeof CreateTokenRequestRoleEnum[keyof typeof CreateTokenRequestRoleEnum];
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the CreateTokenRequest interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfCreateTokenRequest(value: object): value is CreateTokenRequest;
|
|
49
|
+
export declare function CreateTokenRequestFromJSON(json: any): CreateTokenRequest;
|
|
50
|
+
export declare function CreateTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTokenRequest;
|
|
51
|
+
export declare function CreateTokenRequestToJSON(json: any): CreateTokenRequest;
|
|
52
|
+
export declare function CreateTokenRequestToJSONTyped(value?: CreateTokenRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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 CreateTokenRequestRoleEnum = {
|
|
18
|
+
Consumer: 'consumer',
|
|
19
|
+
Admin: 'admin'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateTokenRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfCreateTokenRequest(value) {
|
|
25
|
+
if (!('consumerName' in value) || value['consumerName'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('role' in value) || value['role'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function CreateTokenRequestFromJSON(json) {
|
|
34
|
+
return CreateTokenRequestFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function CreateTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'consumerName': json['consumerName'],
|
|
42
|
+
'role': json['role'],
|
|
43
|
+
'accountId': json['accountId'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function CreateTokenRequestToJSON(json) {
|
|
47
|
+
return CreateTokenRequestToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function CreateTokenRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'consumerName': value['consumerName'],
|
|
55
|
+
'role': value['role'],
|
|
56
|
+
'accountId': value['accountId'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -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 CreateTokenResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateTokenResponse {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the created token
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateTokenResponse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the service consumer
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateTokenResponse
|
|
28
|
+
*/
|
|
29
|
+
consumerName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Generated authentication token (only shown once)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateTokenResponse
|
|
34
|
+
*/
|
|
35
|
+
token: string;
|
|
36
|
+
/**
|
|
37
|
+
* Success message
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateTokenResponse
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the CreateTokenResponse interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfCreateTokenResponse(value: object): value is CreateTokenResponse;
|
|
47
|
+
export declare function CreateTokenResponseFromJSON(json: any): CreateTokenResponse;
|
|
48
|
+
export declare function CreateTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTokenResponse;
|
|
49
|
+
export declare function CreateTokenResponseToJSON(json: any): CreateTokenResponse;
|
|
50
|
+
export declare function CreateTokenResponseToJSONTyped(value?: CreateTokenResponse | 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 CreateTokenResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCreateTokenResponse(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('consumerName' in value) || value['consumerName'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function CreateTokenResponseFromJSON(json) {
|
|
29
|
+
return CreateTokenResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function CreateTokenResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'id': json['id'],
|
|
37
|
+
'consumerName': json['consumerName'],
|
|
38
|
+
'token': json['token'],
|
|
39
|
+
'message': json['message'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function CreateTokenResponseToJSON(json) {
|
|
43
|
+
return CreateTokenResponseToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function CreateTokenResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': value['id'],
|
|
51
|
+
'consumerName': value['consumerName'],
|
|
52
|
+
'token': value['token'],
|
|
53
|
+
'message': value['message'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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 HealthCheck
|
|
16
|
+
*/
|
|
17
|
+
export interface HealthCheck {
|
|
18
|
+
/**
|
|
19
|
+
* Health status
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof HealthCheck
|
|
22
|
+
*/
|
|
23
|
+
status: HealthCheckStatusEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const HealthCheckStatusEnum: {
|
|
29
|
+
readonly Ok: "ok";
|
|
30
|
+
};
|
|
31
|
+
export type HealthCheckStatusEnum = typeof HealthCheckStatusEnum[keyof typeof HealthCheckStatusEnum];
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the HealthCheck interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfHealthCheck(value: object): value is HealthCheck;
|
|
36
|
+
export declare function HealthCheckFromJSON(json: any): HealthCheck;
|
|
37
|
+
export declare function HealthCheckFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthCheck;
|
|
38
|
+
export declare function HealthCheckToJSON(json: any): HealthCheck;
|
|
39
|
+
export declare function HealthCheckToJSONTyped(value?: HealthCheck | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const HealthCheckStatusEnum = {
|
|
18
|
+
Ok: 'ok'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the HealthCheck interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfHealthCheck(value) {
|
|
24
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function HealthCheckFromJSON(json) {
|
|
29
|
+
return HealthCheckFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function HealthCheckFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'status': json['status'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export function HealthCheckToJSON(json) {
|
|
40
|
+
return HealthCheckToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function HealthCheckToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'status': value['status'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { MessagePartsInner } from './MessagePartsInner';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Message
|
|
17
|
+
*/
|
|
18
|
+
export interface Message {
|
|
19
|
+
/**
|
|
20
|
+
* Unique identifier
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Message
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
* ID of the chat this message belongs to
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Message
|
|
29
|
+
*/
|
|
30
|
+
chatId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Role of the message sender (user or assistant)
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Message
|
|
35
|
+
*/
|
|
36
|
+
role: string;
|
|
37
|
+
/**
|
|
38
|
+
* Message content parts
|
|
39
|
+
* @type {Array<MessagePartsInner>}
|
|
40
|
+
* @memberof Message
|
|
41
|
+
*/
|
|
42
|
+
parts: Array<MessagePartsInner>;
|
|
43
|
+
/**
|
|
44
|
+
* Message attachments
|
|
45
|
+
* @type {Array<object>}
|
|
46
|
+
* @memberof Message
|
|
47
|
+
*/
|
|
48
|
+
attachments: Array<object>;
|
|
49
|
+
/**
|
|
50
|
+
* Creation timestamp
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof Message
|
|
53
|
+
*/
|
|
54
|
+
createdAt: Date;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the Message interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfMessage(value: object): value is Message;
|
|
60
|
+
export declare function MessageFromJSON(json: any): Message;
|
|
61
|
+
export declare function MessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Message;
|
|
62
|
+
export declare function MessageToJSON(json: any): Message;
|
|
63
|
+
export declare function MessageToJSONTyped(value?: Message | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Athena API
|
|
5
|
+
* REST API for the Athena system
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { MessagePartsInnerFromJSON, MessagePartsInnerToJSON, } from './MessagePartsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the Message interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfMessage(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('chatId' in value) || value['chatId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('role' in value) || value['role'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('parts' in value) || value['parts'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('attachments' in value) || value['attachments'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
export function MessageFromJSON(json) {
|
|
34
|
+
return MessageFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function MessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'chatId': json['chatId'],
|
|
43
|
+
'role': json['role'],
|
|
44
|
+
'parts': (json['parts'].map(MessagePartsInnerFromJSON)),
|
|
45
|
+
'attachments': json['attachments'],
|
|
46
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export function MessageToJSON(json) {
|
|
50
|
+
return MessageToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function MessageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'chatId': value['chatId'],
|
|
59
|
+
'role': value['role'],
|
|
60
|
+
'parts': (value['parts'].map(MessagePartsInnerToJSON)),
|
|
61
|
+
'attachments': value['attachments'],
|
|
62
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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 MessagePartsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface MessagePartsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MessagePartsInner
|
|
22
|
+
*/
|
|
23
|
+
type?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MessagePartsInner
|
|
28
|
+
*/
|
|
29
|
+
text?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the MessagePartsInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfMessagePartsInner(value: object): value is MessagePartsInner;
|
|
35
|
+
export declare function MessagePartsInnerFromJSON(json: any): MessagePartsInner;
|
|
36
|
+
export declare function MessagePartsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessagePartsInner;
|
|
37
|
+
export declare function MessagePartsInnerToJSON(json: any): MessagePartsInner;
|
|
38
|
+
export declare function MessagePartsInnerToJSONTyped(value?: MessagePartsInner | null, ignoreDiscriminator?: boolean): any;
|