@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,55 @@
|
|
|
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.instanceOfPaginatedMessages = instanceOfPaginatedMessages;
|
|
17
|
+
exports.PaginatedMessagesFromJSON = PaginatedMessagesFromJSON;
|
|
18
|
+
exports.PaginatedMessagesFromJSONTyped = PaginatedMessagesFromJSONTyped;
|
|
19
|
+
exports.PaginatedMessagesToJSON = PaginatedMessagesToJSON;
|
|
20
|
+
exports.PaginatedMessagesToJSONTyped = PaginatedMessagesToJSONTyped;
|
|
21
|
+
const Message_1 = require("./Message");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PaginatedMessages interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPaginatedMessages(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('nextCursor' in value) || value['nextCursor'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function PaginatedMessagesFromJSON(json) {
|
|
33
|
+
return PaginatedMessagesFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function PaginatedMessagesFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'data': (json['data'].map(Message_1.MessageFromJSON)),
|
|
41
|
+
'nextCursor': json['nextCursor'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function PaginatedMessagesToJSON(json) {
|
|
45
|
+
return PaginatedMessagesToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function PaginatedMessagesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'data': (value['data'].map(Message_1.MessageToJSON)),
|
|
53
|
+
'nextCursor': value['nextCursor'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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 ServiceToken
|
|
16
|
+
*/
|
|
17
|
+
export interface ServiceToken {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ServiceToken
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the service consumer
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ServiceToken
|
|
28
|
+
*/
|
|
29
|
+
consumerName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the token is active
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ServiceToken
|
|
34
|
+
*/
|
|
35
|
+
active: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Role assigned to the token
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ServiceToken
|
|
40
|
+
*/
|
|
41
|
+
role: ServiceTokenRoleEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Creation timestamp
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof ServiceToken
|
|
46
|
+
*/
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
/**
|
|
49
|
+
* Last update timestamp
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof ServiceToken
|
|
52
|
+
*/
|
|
53
|
+
updatedAt: Date;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const ServiceTokenRoleEnum: {
|
|
59
|
+
readonly Consumer: "consumer";
|
|
60
|
+
readonly Admin: "admin";
|
|
61
|
+
};
|
|
62
|
+
export type ServiceTokenRoleEnum = typeof ServiceTokenRoleEnum[keyof typeof ServiceTokenRoleEnum];
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the ServiceToken interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfServiceToken(value: object): value is ServiceToken;
|
|
67
|
+
export declare function ServiceTokenFromJSON(json: any): ServiceToken;
|
|
68
|
+
export declare function ServiceTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServiceToken;
|
|
69
|
+
export declare function ServiceTokenToJSON(json: any): ServiceToken;
|
|
70
|
+
export declare function ServiceTokenToJSONTyped(value?: ServiceToken | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,78 @@
|
|
|
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.ServiceTokenRoleEnum = void 0;
|
|
17
|
+
exports.instanceOfServiceToken = instanceOfServiceToken;
|
|
18
|
+
exports.ServiceTokenFromJSON = ServiceTokenFromJSON;
|
|
19
|
+
exports.ServiceTokenFromJSONTyped = ServiceTokenFromJSONTyped;
|
|
20
|
+
exports.ServiceTokenToJSON = ServiceTokenToJSON;
|
|
21
|
+
exports.ServiceTokenToJSONTyped = ServiceTokenToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ServiceTokenRoleEnum = {
|
|
26
|
+
Consumer: 'consumer',
|
|
27
|
+
Admin: 'admin'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the ServiceToken interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfServiceToken(value) {
|
|
33
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('consumerName' in value) || value['consumerName'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('role' in value) || value['role'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function ServiceTokenFromJSON(json) {
|
|
48
|
+
return ServiceTokenFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function ServiceTokenFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'consumerName': json['consumerName'],
|
|
57
|
+
'active': json['active'],
|
|
58
|
+
'role': json['role'],
|
|
59
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
60
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function ServiceTokenToJSON(json) {
|
|
64
|
+
return ServiceTokenToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function ServiceTokenToJSONTyped(value, ignoreDiscriminator = false) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'consumerName': value['consumerName'],
|
|
73
|
+
'active': value['active'],
|
|
74
|
+
'role': value['role'],
|
|
75
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
76
|
+
'updatedAt': value['updatedAt'].toISOString(),
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -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 Tag
|
|
16
|
+
*/
|
|
17
|
+
export interface Tag {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Tag
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Tag name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Tag
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the Tag interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfTag(value: object): value is Tag;
|
|
35
|
+
export declare function TagFromJSON(json: any): Tag;
|
|
36
|
+
export declare function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag;
|
|
37
|
+
export declare function TagToJSON(json: any): Tag;
|
|
38
|
+
export declare function TagToJSONTyped(value?: Tag | 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.instanceOfTag = instanceOfTag;
|
|
17
|
+
exports.TagFromJSON = TagFromJSON;
|
|
18
|
+
exports.TagFromJSONTyped = TagFromJSONTyped;
|
|
19
|
+
exports.TagToJSON = TagToJSON;
|
|
20
|
+
exports.TagToJSONTyped = TagToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Tag interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTag(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 TagFromJSON(json) {
|
|
32
|
+
return TagFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function TagFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function TagToJSON(json) {
|
|
44
|
+
return TagToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function TagToJSONTyped(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,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 UpdateChatRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateChatRequest {
|
|
18
|
+
/**
|
|
19
|
+
* New title for the chat
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateChatRequest
|
|
22
|
+
*/
|
|
23
|
+
title?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateChatRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateChatRequest(value: object): value is UpdateChatRequest;
|
|
29
|
+
export declare function UpdateChatRequestFromJSON(json: any): UpdateChatRequest;
|
|
30
|
+
export declare function UpdateChatRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateChatRequest;
|
|
31
|
+
export declare function UpdateChatRequestToJSON(json: any): UpdateChatRequest;
|
|
32
|
+
export declare function UpdateChatRequestToJSONTyped(value?: UpdateChatRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.instanceOfUpdateChatRequest = instanceOfUpdateChatRequest;
|
|
17
|
+
exports.UpdateChatRequestFromJSON = UpdateChatRequestFromJSON;
|
|
18
|
+
exports.UpdateChatRequestFromJSONTyped = UpdateChatRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateChatRequestToJSON = UpdateChatRequestToJSON;
|
|
20
|
+
exports.UpdateChatRequestToJSONTyped = UpdateChatRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateChatRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateChatRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateChatRequestFromJSON(json) {
|
|
28
|
+
return UpdateChatRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateChatRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function UpdateChatRequestToJSON(json) {
|
|
39
|
+
return UpdateChatRequestToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function UpdateChatRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'title': value['title'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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 UpdateTokenRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateTokenRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Set token active status
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof UpdateTokenRequest
|
|
22
|
+
*/
|
|
23
|
+
active: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateTokenRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateTokenRequest(value: object): value is UpdateTokenRequest;
|
|
29
|
+
export declare function UpdateTokenRequestFromJSON(json: any): UpdateTokenRequest;
|
|
30
|
+
export declare function UpdateTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTokenRequest;
|
|
31
|
+
export declare function UpdateTokenRequestToJSON(json: any): UpdateTokenRequest;
|
|
32
|
+
export declare function UpdateTokenRequestToJSONTyped(value?: UpdateTokenRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfUpdateTokenRequest = instanceOfUpdateTokenRequest;
|
|
17
|
+
exports.UpdateTokenRequestFromJSON = UpdateTokenRequestFromJSON;
|
|
18
|
+
exports.UpdateTokenRequestFromJSONTyped = UpdateTokenRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateTokenRequestToJSON = UpdateTokenRequestToJSON;
|
|
20
|
+
exports.UpdateTokenRequestToJSONTyped = UpdateTokenRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateTokenRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateTokenRequest(value) {
|
|
25
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdateTokenRequestFromJSON(json) {
|
|
30
|
+
return UpdateTokenRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdateTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'active': json['active'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function UpdateTokenRequestToJSON(json) {
|
|
41
|
+
return UpdateTokenRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateTokenRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'active': value['active'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 UpdateTokenResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateTokenResponse {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the updated token
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateTokenResponse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the service consumer
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateTokenResponse
|
|
28
|
+
*/
|
|
29
|
+
consumerName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Updated active status
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof UpdateTokenResponse
|
|
34
|
+
*/
|
|
35
|
+
active: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Success message
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateTokenResponse
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the UpdateTokenResponse interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfUpdateTokenResponse(value: object): value is UpdateTokenResponse;
|
|
47
|
+
export declare function UpdateTokenResponseFromJSON(json: any): UpdateTokenResponse;
|
|
48
|
+
export declare function UpdateTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTokenResponse;
|
|
49
|
+
export declare function UpdateTokenResponseToJSON(json: any): UpdateTokenResponse;
|
|
50
|
+
export declare function UpdateTokenResponseToJSONTyped(value?: UpdateTokenResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfUpdateTokenResponse = instanceOfUpdateTokenResponse;
|
|
17
|
+
exports.UpdateTokenResponseFromJSON = UpdateTokenResponseFromJSON;
|
|
18
|
+
exports.UpdateTokenResponseFromJSONTyped = UpdateTokenResponseFromJSONTyped;
|
|
19
|
+
exports.UpdateTokenResponseToJSON = UpdateTokenResponseToJSON;
|
|
20
|
+
exports.UpdateTokenResponseToJSONTyped = UpdateTokenResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateTokenResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateTokenResponse(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('consumerName' in value) || value['consumerName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function UpdateTokenResponseFromJSON(json) {
|
|
36
|
+
return UpdateTokenResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function UpdateTokenResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'consumerName': json['consumerName'],
|
|
45
|
+
'active': json['active'],
|
|
46
|
+
'message': json['message'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function UpdateTokenResponseToJSON(json) {
|
|
50
|
+
return UpdateTokenResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function UpdateTokenResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': value['id'],
|
|
58
|
+
'consumerName': value['consumerName'],
|
|
59
|
+
'active': value['active'],
|
|
60
|
+
'message': value['message'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './Account';
|
|
2
|
+
export * from './Chat';
|
|
3
|
+
export * from './ChatRequest';
|
|
4
|
+
export * from './CreateAccountRequest';
|
|
5
|
+
export * from './CreateChatRequest';
|
|
6
|
+
export * from './CreateTokenRequest';
|
|
7
|
+
export * from './CreateTokenResponse';
|
|
8
|
+
export * from './HealthCheck';
|
|
9
|
+
export * from './Message';
|
|
10
|
+
export * from './MessagePartsInner';
|
|
11
|
+
export * from './ModelError';
|
|
12
|
+
export * from './PaginatedChats';
|
|
13
|
+
export * from './PaginatedMessages';
|
|
14
|
+
export * from './ServiceToken';
|
|
15
|
+
export * from './Tag';
|
|
16
|
+
export * from './UpdateChatRequest';
|
|
17
|
+
export * from './UpdateTokenRequest';
|
|
18
|
+
export * from './UpdateTokenResponse';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./Account"), exports);
|
|
20
|
+
__exportStar(require("./Chat"), exports);
|
|
21
|
+
__exportStar(require("./ChatRequest"), exports);
|
|
22
|
+
__exportStar(require("./CreateAccountRequest"), exports);
|
|
23
|
+
__exportStar(require("./CreateChatRequest"), exports);
|
|
24
|
+
__exportStar(require("./CreateTokenRequest"), exports);
|
|
25
|
+
__exportStar(require("./CreateTokenResponse"), exports);
|
|
26
|
+
__exportStar(require("./HealthCheck"), exports);
|
|
27
|
+
__exportStar(require("./Message"), exports);
|
|
28
|
+
__exportStar(require("./MessagePartsInner"), exports);
|
|
29
|
+
__exportStar(require("./ModelError"), exports);
|
|
30
|
+
__exportStar(require("./PaginatedChats"), exports);
|
|
31
|
+
__exportStar(require("./PaginatedMessages"), exports);
|
|
32
|
+
__exportStar(require("./ServiceToken"), exports);
|
|
33
|
+
__exportStar(require("./Tag"), exports);
|
|
34
|
+
__exportStar(require("./UpdateChatRequest"), exports);
|
|
35
|
+
__exportStar(require("./UpdateTokenRequest"), exports);
|
|
36
|
+
__exportStar(require("./UpdateTokenResponse"), exports);
|